/* Ambient Clarity. Shared presentation only; storage and integrations stay in index.html. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --bg: #fbf7f5;
  --panel: #fff;
  --panel2: #f5f3f1;
  --focal: #1e1e24;
  --line: #e7e3e2;
  --text: #202027;
  --muted: #686570;
  --mint: #cef063;
  --lime: #cef063;
  --gold: #7d4e11;
  --pink: #f6e4db;
  --blue: #e6e2f5;
  --danger: #a52332;
  --radius: 28px;
  --shadow: 0 8px 24px #30203206;
  --motion-tap: 140ms;
  --motion-page: 220ms;
  --motion-progress: 400ms;
  --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-padding-bottom: 110px;
  overflow-anchor: none;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 500px at 100% 0%, #ffe2d4a6, transparent),
    radial-gradient(ellipse 100% 650px at 0% 650px, #e9e0f47d, transparent),
    var(--bg);
  font: 14px/1.55 var(--font);
  min-height: 100vh;
  min-height: 100svh;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
summary,
input[type="checkbox"],
input[type="radio"] {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button,
input,
textarea,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #657928;
  outline-offset: 3px;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button {
  transition:
    background var(--motion-tap) var(--motion-ease),
    box-shadow var(--motion-tap) var(--motion-ease),
    transform var(--motion-tap) var(--motion-ease);
}
svg.icon {
  width: 21px;
  height: 21px;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button svg {
  pointer-events: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 16px;
}
p {
  margin-bottom: 12px;
}
b,
strong,
.level,
.wage-metric,
.xp-number,
.shift-cal-chip {
  font-variant-numeric: tabular-nums;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--focal);
  color: white;
  border-radius: 20px;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 12px;
}
.app {
  max-width: 1120px;
  margin: auto;
  padding: max(20px, var(--safe-top)) max(20px, var(--safe-right))
    calc(128px + var(--safe-bottom)) max(20px, var(--safe-left));
}
#authLoading {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  color: var(--muted);
}
#authLoading img {
  border-radius: 16px;
}
body:not([data-auth-state="signed-in"]) {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
body:not([data-auth-state="signed-in"]) #appShell {
  display: none;
}
html[data-standalone="true"],
html[data-standalone="true"] body {
  height: 100%;
  overflow: hidden;
}
html[data-standalone="true"] #appShell {
  position: fixed;
  top: calc(var(--visual-top, 0px) + var(--safe-top));
  left: var(--safe-left);
  right: var(--safe-right);
  height: calc(100vh - var(--safe-top) - var(--safe-bottom));
  height: calc(
    var(--visual-height, 100dvh) - var(--safe-top) - var(--safe-bottom)
  );
  overflow: hidden;
}
html[data-standalone="true"] .app {
  height: 100%;
  width: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
  scroll-padding-block: 20px 128px;
  padding: 20px 20px 128px;
}
html[data-standalone="true"] .app.modal-open {
  overflow: hidden;
}
html[data-standalone="true"] body.modal-open .app {
  overflow: hidden;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo,
.brand-mark {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--lime);
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 3px 8px #1e1e2415;
  flex: none;
}
.brand h1 {
  font-size: 15px;
  letter-spacing: -0.04em;
  margin: 2px 0 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.top-actions {
  display: flex;
  gap: 7px;
}
.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: #ffffffa6;
  border-radius: 50%;
  color: var(--text);
  flex: none;
}
.icon-button.dark {
  background: var(--focal);
  color: white;
}
.datepill {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 8px 0 12px;
  text-transform: uppercase;
}
.intro {
  margin-bottom: 24px;
}
.intro h2 {
  font-size: 30px;
  letter-spacing: -0.055em;
  margin: 12px 0 9px;
}
.intro .sub {
  max-width: 620px;
}
.mode,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  background: #edf4cd;
  padding: 5px 10px;
  color: #455918;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.kicker {
  background: #ffffffb8;
  color: #54505a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #667e17;
  flex: none;
}
.sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.card {
  background: var(--panel);
  border: 1px solid #ffffffaa;
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.hero-main {
  padding: 0;
  background: none;
  box-shadow: none;
  border: 0;
}
.priority {
  background: white;
  border: 1px solid #ffffffb8;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.priority .row {
  margin-bottom: 14px;
}
.priority h3 {
  font-size: 10px;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.priority-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.priority-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
.primary-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  background: #f5f3f1;
  padding: 5px 8px;
  border-radius: 99px;
}
.primary-chip svg {
  width: 13px;
  height: 13px;
}
.focal,
.xp-card {
  background:
    radial-gradient(ellipse at 100% 0%, #3c42264f, transparent 60%),
    var(--focal);
  border: 1px solid #15151b;
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 15px 25px #17141e17;
}
.galaxy-card {
  background:
    radial-gradient(circle at 78% 19%, #e7ddff50 0 0.7px, transparent 1.2px),
    radial-gradient(circle at 92% 60%, #e1eeff3d 0 0.6px, transparent 1.1px),
    radial-gradient(circle at 32% 82%, #f7eaff30 0 0.6px, transparent 1px),
    var(--galaxy-clouds, linear-gradient(transparent, transparent)),
    var(--focal);
}
.galaxy-momentum {
  --galaxy-clouds:
    radial-gradient(ellipse at 100% 8%, #a071da24, transparent 68%),
    radial-gradient(ellipse at 25% 100%, #75609414, transparent 65%);
}
.galaxy-tasks {
  --galaxy-clouds:
    radial-gradient(ellipse at 85% 65%, #548ebc22, transparent 64%),
    radial-gradient(ellipse at 15% 0, #375a8a24, transparent 70%);
}
.galaxy-shifts {
  --galaxy-clouds:
    radial-gradient(ellipse at 65% 100%, #3e9f8b24, transparent 70%),
    radial-gradient(ellipse at 100% 15%, #368c7b19, transparent 55%);
}
.galaxy-updates {
  --galaxy-clouds:
    radial-gradient(ellipse at 90% 25%, #d19b9122, transparent 65%),
    radial-gradient(ellipse at 10% 85%, #9882bb1c, transparent 70%);
}
.focal .eyebrow,
.xp-card .eyebrow {
  color: #d3d0da;
}
.focal .muted,
.xp-card .muted,
.focal .sub {
  color: #c8c4cf;
}
.xp-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.xp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.xp-head h2 {
  font-size: 12px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.5;
}
.xp-badge {
  background: #cef06317;
  border: 1px solid #cef06322;
  color: var(--lime);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 11px;
  white-space: nowrap;
}
.xp-center {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
}
.momentum-detail {
  min-width: 0;
  flex: 1;
}
.momentum-greeting {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.xp-card .progress-ring {
  width: 100px;
  height: 100px;
  flex: none;
}
.xp-card .xp-number {
  font-size: 30px;
}
.xp-card .ring-unit {
  font-size: 10px;
}
.xp-card .level-pill {
  justify-content: flex-start;
  padding: 6px 9px;
  margin-bottom: 8px;
}
.xp-card .xp-caption {
  text-align: left;
  line-height: 1.6;
}
.xp-card .stat {
  padding: 8px 5px;
}
.xp-card .stat svg {
  display: none;
}
.xp-card .stat b {
  font-size: 18px;
  margin: 0 0 3px;
}
.today-context {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.today-context .sub {
  font-size: 11px;
  flex: 1;
  min-width: 140px;
}
.earnings-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 12px;
}
.text-link {
  background: transparent;
  color: #495d17;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 0;
  text-align: left;
  line-height: 1.6;
}

.progress-ring {
  --percent: 0;
  width: 150px;
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--lime) calc(var(--percent) * 1%),
    #ffffff15 0
  );
}
.progress-ring:before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--focal);
}
.progress-ring .ring-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}
.xp-number {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.ring-unit {
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  color: #d0cdd6;
}
.ring-label {
  font-size: 10px;
  margin-top: 4px;
  color: #c8c4cf;
}
.level-pill {
  font-size: 11px;
  background: #ffffff0e;
  padding: 8px 12px;
  border-radius: 99px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.level {
  font-weight: 700;
}
.xp-caption {
  font-size: 11px;
  color: #c8c4cf;
  text-align: center;
}
.progress {
  height: 5px;
  border-radius: 99px;
  background: #ffffff1f;
  overflow: hidden;
  margin: 12px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
  width: 100%;
  transition: transform var(--motion-progress) var(--motion-ease);
}
.statrow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  background: #ffffff0a;
  border: 1px solid #ffffff08;
  padding: 13px 6px;
  border-radius: 17px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 19px;
  margin: 5px 0;
}
.stat span {
  font-size: 10px;
  line-height: 1.4;
  color: #d0cdd6;
  display: block;
}
.stat svg {
  width: 18px;
  height: 18px;
  color: #cecad5;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 19px;
  margin: 0;
}
.section-head p {
  font-size: 12px;
  margin: 5px 0 0;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.wide {
  grid-column: 1/-1;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.workspace-header {
  margin-bottom: 24px;
}
.workspace-header h2 {
  font-size: 30px;
  margin: 10px 0 8px;
  letter-spacing: -0.055em;
}
.workspace-header .row {
  align-items: flex-start;
}
.workspace-header .sub {
  max-width: 560px;
}
.workspace-header .btn {
  white-space: nowrap;
}
.workspace-summary {
  margin: 0 0 24px;
  padding: 24px;
}
.workspace-summary h3 {
  font-size: 21px;
  margin: 8px 0 8px;
}
.summary-layout {
  display: flex;
  align-items: center;
  gap: 24px;
}
.summary-layout .progress-ring {
  width: 116px;
  height: 116px;
  flex: none;
}
.summary-layout .xp-number {
  font-size: 29px;
}
.summary-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 16px 0 8px;
}
.summary-numbers b {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.summary-numbers span {
  font-size: 11px;
  color: #cbc7d1;
}
.summary-foot {
  border-top: 1px solid #ffffff17;
  padding-top: 14px;
  margin-top: 18px;
  font-size: 11px;
  color: #d5d1dc;
  display: flex;
  gap: 8px;
  align-items: center;
}
.summary-foot svg {
  color: var(--lime);
  width: 18px;
  height: 18px;
}
.section-surface {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.panel-title {
  font-size: 18px;
  margin: 24px 0 14px;
}
.filters,
.task-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter,
.task-tabs button {
  transition:
    transform 0.12s,
    box-shadow 0.15s;
  background: #ffffffb8;
  color: #514e58;
  font-size: 11px;
  min-height: 44px;
  border-radius: 99px;
  padding: 10px 15px;
  box-shadow: 0 2px 4px #30203204;
}
.filter[aria-pressed="true"],
.task-tabs button[aria-pressed="true"] {
  background: var(--focal);
  color: white;
}
.task-tabs {
  margin-bottom: 24px;
}
.filter-count {
  opacity: 0.8;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--lime);
  color: #28310e;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px 18px;
  min-height: 44px;
  box-shadow: 0 4px 10px #b5ce4b13;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn.secondary {
  background: #f1efed;
  color: var(--text);
  box-shadow: none;
}
.btn.dark {
  background: var(--focal);
  color: white;
  box-shadow: 0 3px 6px #17141e15;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.btn.danger {
  background: #fff0f0;
  color: var(--danger);
  border-color: #f1d5d8;
  box-shadow: none;
}
.btn.small {
  padding: 9px 13px;
  font-size: 11px;
  min-height: 44px;
}
.btn.icon-only {
  padding: 0;
  width: 44px;
  flex: none;
}
.focal .btn.secondary {
  background: #ffffff12;
  color: #fff;
}
.quick-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
}
.quick-head h2 {
  font-size: 18px;
  margin: 0;
}
.quick-head span {
  font-size: 10px;
  color: var(--muted);
}
.quickbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}
.quick {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  background: #ffffffd9;
  border: 1px solid #ffffffa6;
  box-shadow: var(--shadow);
  border-radius: 19px;
  padding: 15px 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  min-height: 62px;
}
.quick-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee7f6;
  display: grid;
  place-items: center;
  flex: none;
}
.quick:nth-child(2) .quick-icon {
  background: #e6f1cb;
}
.quick:nth-child(3) .quick-icon {
  background: #fce6d8;
}
.quick:nth-child(4) .quick-icon {
  background: #fff2c8;
}
.quick-icon svg {
  width: 18px;
  height: 18px;
}
.task-list,
.habit-list,
.shift-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.task,
.habit,
.shift {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: white;
  border: 1px solid #ffffffb8;
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.task {
  align-items: flex-start;
  flex-wrap: wrap;
}
.check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  flex: none;
  color: var(--text);
}
.check:before {
  content: "";
  width: 23px;
  height: 23px;
  border: 1.5px solid #99959f;
  border-radius: 50%;
  grid-area: 1/1;
}
.check.done:before {
  background: var(--lime);
  border-color: var(--lime);
}
.check svg {
  width: 15px;
  height: 15px;
  grid-area: 1/1;
  position: relative;
  stroke-width: 2.5;
}
.task-content,
.habit-content {
  flex: 1;
  min-width: 0;
}
.task-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
}
.task-title.done {
  text-decoration: line-through;
  color: var(--muted);
}
.task-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.task .check {
  margin: -5px 0 -5px -5px;
}
.task .task-content {
  padding-top: 3px;
}
.task .row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-basis: 100%;
  padding-left: 44px;
  gap: 8px;
  margin-top: -5px;
}
.tag {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 99px;
  background: #f1eeed;
  color: #5f5a65;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tag.high {
  background: #fbe2e0;
  color: #9b3039;
}
.tag.low {
  background: #e7f0db;
  color: #455d24;
}
.tag.done {
  background: #eff7d9;
  color: #455918;
}
.habit-icon {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eae4f2;
  font-size: 19px;
  flex: none;
}
.habit:nth-child(3n + 2) .habit-icon {
  background: #f8e8dc;
}
.habit:nth-child(3n) .habit-icon {
  background: #eef3cf;
}
.habit.done .habit-icon {
  background: #edf5cd;
}
.habit > .btn {
  margin-left: -8px;
}
.habit .check {
  margin-right: -8px;
}
.empty {
  padding: 26px 20px;
  border-radius: 22px;
  background: #ffffffa6;
  border: 1px dashed #dad4d5;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.empty svg {
  display: block;
  margin: 0 auto 10px;
  width: 25px;
  height: 25px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.small-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 12px 0 0;
}
.notice {
  background: #f5edcf;
  border: 1px solid #dfce90;
  border-radius: 18px;
  padding: 14px;
  font-size: 12px;
  color: #685021;
  margin-bottom: 16px;
}
.gentle-note {
  border-radius: 24px;
  background: #f1efedb3;
  padding: 20px;
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
}
.gentle-note .habit-icon {
  background: #e8f2bd;
}
.gentle-note strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 5px;
}
.next-active {
  padding: 18px;
  border-radius: 22px;
  background: #f5f3f1;
  font-size: 13px;
}
.next-active .row {
  justify-content: flex-start;
  align-items: flex-start;
}
.next-active p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.shift {
  flex-wrap: wrap;
  align-items: flex-start;
}
.shift .task-content {
  padding-top: 2px;
}
.shift .shift-tools {
  display: flex;
  gap: 5px;
  margin-left: auto;
  flex-basis: 100%;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.shift-pay {
  display: inline-block;
  font-size: 11px;
  margin-top: 9px;
  color: #4c561c;
  background: #f1f4e4;
  border-radius: 99px;
  padding: 5px 9px;
}
.shift .habit-icon {
  background: #e9e4f5;
}
.shift .shift-window {
  display: block;
  font-variant-numeric: tabular-nums;
}
.journal-preview {
  background: #f6f3f1;
  border-radius: 20px;
  padding: 18px;
  min-height: 105px;
}
.journal-preview p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 13px;
  color: #4e4954;
}
.journal-preview .muted {
  margin-top: 15px;
  font-size: 11px;
}
.journal-history {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.journal-entry {
  background: white;
  padding: 22px;
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.journal-entry .entry-date {
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
}
.journal-entry .entry-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  margin: 17px 0;
  color: #514c58;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.journal-entry .entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.journal-entry .entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.entry-footer .small-note {
  margin: 0;
}
.journal-quick {
  margin-bottom: 24px;
}
.journal-quick .btn {
  margin-top: 16px;
}
.journal-intro .grid {
  gap: 16px;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.list-item > div {
  min-width: 0;
}
.list-item:last-child {
  border: 0;
}
.list-item h3 {
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.list-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.grid > *,
.formgrid > *,
.card,
form,
.password-field,
.settings-page {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.formgrid {
  min-inline-size: 0;
  inline-size: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label,
form > label {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #595461;
  font-weight: 500;
}
.field label:has(input[type="checkbox"]) {
  background: #f3f0ee;
  border-radius: 18px;
  padding: 13px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  min-height: 48px;
}
.field input[type="checkbox"] {
  margin: 2px 0 !important;
}
.field label input {
  flex: none;
}
.field input[type="checkbox"],
input[type="checkbox"] {
  accent-color: #5d701e;
  width: 20px;
  min-height: 20px;
  height: 20px;
}
input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  border: 1px solid transparent;
  background: #f5f3f1;
  color: var(--text);
  border-radius: 22px;
  padding: 14px 16px;
  min-height: 50px;
  font-size: 14px;
}
input[type="date"],
input[type="time"] {
  font-variant-numeric: tabular-nums;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  inline-size: 100%;
  min-width: 0;
  max-width: 100%;
}
input::-webkit-date-and-time-value {
  text-align: start;
  min-inline-size: 0;
}
input::-webkit-datetime-edit {
  min-inline-size: 0;
  padding: 0;
}
input[type="file"] {
  padding: 13px;
  font-size: 12px;
}
input::file-selector-button {
  border: 0;
  border-radius: 99px;
  background: var(--focal);
  color: white;
  padding: 9px 12px;
  margin: 0 10px 0 0;
  font: inherit;
}
textarea {
  min-height: 136px;
  resize: vertical;
  border-radius: 22px;
  line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
  color: #76717b;
  opacity: 1;
}
select {
  padding-right: 26px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #93aa4e;
}
input:disabled {
  color: #686570;
}
.formactions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.formgrid > .field.full:has(button[type="submit"]) {
  margin-top: 8px;
}
.formgrid > .field.full > button[type="submit"] {
  align-self: stretch;
}
.form-intro {
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 24px;
}
.form-intro h3 {
  font-size: 19px;
  margin: 8px 0;
}
.form-intro p {
  font-size: 12px;
  margin: 8px 0 0;
}
.form-intro .tag {
  background: #ffffff16;
  color: #dedbe4;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.dialog-actions .btn {
  flex: 1;
}
.modal-body-footer {
  display: flex;
  margin-top: 15px;
}
.modal-body-footer > .btn {
  width: 100%;
}
.priority-choices {
  display: flex;
  gap: 8px;
}
.priority-choices button {
  transition:
    transform 0.12s,
    box-shadow 0.15s;
  flex: 1;
  min-height: 44px;
  border-radius: 99px;
  background: white;
  color: #686570;
  border: 1px solid var(--line);
  font-size: 12px;
}
.priority-choices button[aria-pressed="true"] {
  background: var(--focal);
  color: white;
  border-color: var(--focal);
}
.priority-choices button[data-priority="high"][aria-pressed="true"] {
  background: #fbe2e0;
  color: #9b3039;
  border-color: #eab8b7;
}
.priority-choices button[data-priority="low"][aria-pressed="true"] {
  background: #e7f0db;
  color: #455d24;
  border-color: #becf9d;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 70px;
}
.password-field button {
  position: absolute;
  right: 6px;
  top: 3px;
  height: 44px;
  padding: 0 12px;
  border-radius: 99px;
  font-size: 11px;
  background: transparent;
  color: #485d18;
}
.password-field button:disabled {
  display: none;
}
.profile-avatar,
#registerPhotoPreview,
#headerProfileAvatar,
#settingsHubAvatar {
  --avatar-size: 64px;
  display: grid;
  place-items: center;
  inline-size: var(--avatar-size);
  block-size: var(--avatar-size);
  min-inline-size: var(--avatar-size);
  min-block-size: var(--avatar-size);
  max-inline-size: var(--avatar-size);
  max-block-size: var(--avatar-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  flex: 0 0 var(--avatar-size);
  align-self: center;
  padding: 0;
  overflow: hidden;
  background: var(--focal);
  color: var(--lime);
  font-size: 25px;
  line-height: 1;
}
#registerPhotoPreview:empty {
  display: none;
}
#headerProfileAvatar {
  --avatar-size: 28px;
  font-size: 15px;
}
#settingsHubAvatar {
  --avatar-size: 44px;
  font-size: 20px;
}
.profile-avatar img,
#registerPhotoPreview img,
#headerProfileAvatar img,
#settingsHubAvatar img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
[data-brand-asset] img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.bottomnav {
  position: fixed;
  z-index: 20;
  bottom: calc(12px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100% - 24px - var(--safe-left) - var(--safe-right)));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 8px;
  background: var(--focal);
  border: 1px solid #ffffff12;
  border-radius: 99px;
  box-shadow: 0 12px 30px #1e1e242e;
}
.navbtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 54px;
  padding: 6px 0;
  background: transparent;
  border-radius: 99px;
  color: #cfccd5;
  font-size: 9px;
  line-height: 1.3;
  min-width: 0;
}
.navbtn svg {
  width: 21px;
  height: 21px;
}
.navbtn.active {
  color: var(--lime);
  background: #ffffff0c;
}
.navbtn.active:after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lime);
}
.shift-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.shift-toolbar strong {
  font-size: 16px;
  letter-spacing: -0.04em;
  text-align: center;
}
.shift-toolbar .btn {
  padding: 0;
  width: 44px;
  flex: none;
}
.shift-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.shift-cal-head {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 6px 0;
}
.shift-day {
  min-width: 0;
  min-height: 74px;
  border: 1px solid transparent;
  background: #f8f6f4;
  border-radius: 16px;
  padding: 6px 3px;
  text-align: center;
  overflow: hidden;
}
.shift-day.outside {
  background: transparent;
  color: #9b959e;
}
.shift-day.today {
  border-color: #747d4d;
}
.shift-day.has-shift {
  background: var(--focal);
  color: white;
}
.shift-day.has-shift .shift-cal-chip {
  color: #e2efac;
}
.shift-day-num {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.shift-cal-chip {
  display: block;
  font-size: 9px;
  line-height: 1.4;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #56505e;
}
.calendar-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 10px;
  color: var(--muted);
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.calendar-legend i {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--focal);
}
.calendar-legend span:last-child i {
  background: #d8d3d1;
}
.wage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wage-metric {
  background: #ffffff0a;
  border-radius: 20px;
  padding: 16px;
  min-width: 0;
}
.wage-metric:first-child {
  grid-column: 1/-1;
  background: transparent;
  padding: 8px 0 14px;
}
.wage-metric b {
  font-size: 20px;
  display: block;
  overflow-wrap: anywhere;
  letter-spacing: -0.04em;
}
.wage-metric:first-child b {
  font-size: 36px;
}
.wage-metric span {
  font-size: 11px;
  color: #d0cbd7;
  display: block;
  margin-top: 5px;
}
.wage-notice {
  font-size: 11px;
  margin: 16px 0 0;
  color: #d1cbd8;
}
.shift-tools-heading {
  margin: 26px 0 16px;
  font-size: 18px;
}
.settings-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.settings-menu button,
.settings-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-radius: 26px;
  background: #ffffffdc;
  color: var(--text);
  padding: 20px;
  min-height: 150px;
  position: relative;
  box-shadow: var(--shadow);
}
.settings-menu button strong,
.settings-placeholder strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 18px;
  letter-spacing: -0.02em;
}
.settings-menu button small,
.settings-placeholder small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
}
.settings-menu .menu-icon {
  width: 35px;
  height: 35px;
  background: #f2efec;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.settings-menu button:nth-child(2) .menu-icon {
  background: var(--lime);
}
.settings-menu .menu-arrow {
  position: absolute;
  right: 18px;
  top: 20px;
  color: #6c6571;
}
.settings-menu .menu-arrow svg {
  width: 15px;
  height: 15px;
}
.settings-placeholder {
  background: #f3f0edb8;
}
.settings-placeholder .tag {
  position: absolute;
  right: 14px;
  top: 24px;
}
.settings-page {
  margin-top: 20px;
}
.settings-page .card {
  width: 100%;
}
.settings-page .card h2 {
  font-size: 20px;
}
.settings-page .card h3 {
  font-size: 17px;
}
.settings-back {
  margin: 0 0 6px;
}
.settings-hero {
  margin-bottom: 26px;
}
.settings-hero h3 {
  margin: 6px 0;
  font-size: 22px;
}
.settings-hero .account-status {
  font-size: 12px;
  margin: 12px 0 0;
  color: #d4d0da;
  overflow-wrap: anywhere;
}
.settings-hero .formactions {
  margin-top: 20px;
}
.settings-hero .progress {
  margin-top: 18px;
}
.settings-section-label {
  margin: 28px 0 14px;
  font-size: 17px;
}
.settings-footer {
  text-align: center;
  margin: 30px 0;
  font-size: 11px;
  color: var(--muted);
}
.settings-page-title {
  font-size: 25px;
  margin: 18px 0;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.achievement {
  background: #f4f1ee;
  border: 1px solid #e8e2df;
  border-radius: 22px;
  padding: 18px;
}
.achievement .emoji {
  font-size: 25px;
}
.achievement b {
  display: block;
  font-size: 13px;
  margin: 10px 0;
}
.achievement p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
}
.achievement.locked {
  background: #f6f4f3;
}
.view-entry .tag {
  margin-bottom: 16px;
}
.view-entry label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-top: 18px;
}
.view-entry .entry-value {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 6px;
  padding: 12px 14px;
  background: white;
  border-radius: 16px;
}
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--visual-top, 0px);
  bottom: auto;
  height: 100vh;
  height: var(--visual-height, 100dvh);
  z-index: 40;
  background: #1b172359;
  align-items: flex-end;
  justify-content: center;
  padding: max(12px, var(--safe-top)) max(12px, var(--safe-right)) 12px
    max(12px, var(--safe-left));
  overscroll-behavior: contain;
}
.modal-backdrop.open {
  display: flex;
}
.modal-backdrop[data-closing] .modal {
  pointer-events: none;
}
.modal {
  width: min(600px, 100%);
  background:
    radial-gradient(ellipse at 100% 0, #eef2d7a3, transparent 45%), var(--bg);
  border: 1px solid #ffffffaa;
  border-radius: 32px;
  box-shadow: 0 20px 80px #17121c30;
  max-height: calc(100vh - 24px);
  max-height: calc(var(--visual-height, 100dvh) - 24px - var(--safe-top));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  padding-bottom: calc(24px + var(--safe-bottom));
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.modal h2 {
  font-size: 20px;
  margin: 0;
}
.modal-top .btn {
  background: #efebe8;
  padding: 0;
  width: 44px;
  flex: none;
}
.modal-open {
  overflow: hidden;
}
.toast {
  display: none;
  position: fixed;
  z-index: 60;
  bottom: calc(100px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--focal);
  color: white;
  box-shadow: 0 10px 30px #211a252b;
  border-radius: 22px;
  padding: 15px 20px;
  max-width: min(90vw, 520px);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.toast.show {
  display: block;
  animation: toast-in 0.18s ease-out;
}
.toast button {
  margin-left: 10px;
  border-radius: 99px;
  padding: 6px 12px;
  background: var(--lime);
  color: #28310e;
  min-height: 36px;
}
#cosmosWelcome {
  position: fixed;
  z-index: 30;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0, #ffddca99, transparent 55%),
    radial-gradient(ellipse at 0 45%, #e6dcf2a6, transparent 55%), var(--bg);
  top: var(--visual-top, 0px);
  bottom: auto;
  height: 100vh;
  height: var(--visual-height, 100dvh);
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}
#cosmosWelcomeScroll {
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 30px;
}
#cosmosWelcomeInner {
  max-width: 640px;
  margin: auto;
}
.welcome-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 42px;
  letter-spacing: -0.04em;
}
.welcome-brand .welcome-promise {
  font-size: 10px;
  color: #5c5662;
  margin-left: auto;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.welcome-hero {
  text-align: center;
  margin-bottom: 28px;
}
.welcome-hero > .brand-mark {
  width: 76px;
  height: 76px;
  font-size: 45px;
  margin: 0 auto 25px;
  box-shadow: 0 14px 24px #1e1e2420;
}
.welcome-hero h1 {
  font-size: 32px;
  letter-spacing: -0.055em;
  line-height: 1.2;
  margin: 0 auto 18px;
  max-width: 540px;
}
.welcome-hero p {
  font-size: 15px;
  color: #5e5866;
  line-height: 1.7;
}
.welcome-hero .welcome-sub {
  font-size: 13px;
}
.welcome-features {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 23px 0 30px;
}
.welcome-features span {
  display: flex;
  gap: 7px;
  align-items: center;
  border-radius: 99px;
  padding: 9px 12px;
  background: #ffffffb8;
  font-size: 11px;
  box-shadow: 0 2px 3px #24192e07;
}
.welcome-features svg {
  width: 18px;
  height: 18px;
  color: #536719;
}
#cosmosWelcomeAuth .card {
  border-radius: 32px;
  padding: 26px;
  box-shadow: 0 18px 24px #20172612;
}
#cosmosWelcomeAuth .section-head {
  align-items: flex-start;
  flex-wrap: wrap;
}
#cosmosWelcomeAuth .section-head h2 {
  font-size: 22px;
}
#cosmosWelcomeAuth .sub {
  font-size: 12px;
}
#cosmosWelcomeAuth .formgrid {
  margin-top: 24px !important;
}
#cosmosWelcomeAuth .field label {
  font-size: 12px;
}
#cosmosWelcomeAuth input {
  min-height: 55px;
  border-radius: 99px;
}
#cosmosWelcomeAuth .auth-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  margin-top: 10px;
}
#cosmosWelcomeAuth .btn {
  font-size: 12px;
  padding: 14px 12px;
}
#cosmosWelcomeAuth #cloudSignUpBtn {
  background: var(--focal);
  color: white;
}
#cosmosWelcomeAuth .small-note {
  font-size: 11px;
}
#cosmosWelcomeInner > .small-note {
  text-align: center;
  margin: 26px 0 0;
}
@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 4px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 768px) {
  .app {
    padding: max(28px, var(--safe-top)) max(32px, var(--safe-right))
      calc(140px + var(--safe-bottom)) max(32px, var(--safe-left));
  }
  .top {
    margin-bottom: 32px;
  }
  .brand h1 {
    font-size: 17px;
  }
  .hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 16px;
  }
  .priority {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .priority-title {
    font-size: 28px;
  }
  .quickbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .quick {
    font-size: 12px;
    padding: 18px 14px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .wide {
    grid-column: 1/-1;
  }
  .section-surface .task-list,
  .section-surface .habit-list {
    gap: 12px;
  }
  #todayView .grid > .card {
    align-self: start;
  }
  .workspace-header h2,
  .intro h2 {
    font-size: 36px;
  }
  .workspace-summary {
    padding: 28px;
  }
  .workspace-summary .summary-numbers {
    gap: 32px;
  }
  .workspace-summary .summary-numbers b {
    font-size: 32px;
  }
  .workspace-summary .summary-layout {
    gap: 32px;
  }
  .settings-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .settings-menu button,
  .settings-placeholder {
    min-height: 170px;
  }
  .settings-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-page .card {
    max-width: 820px;
  }
  .badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }
  .modal {
    max-height: calc(100vh - 48px);
    max-height: calc(var(--visual-height, 100dvh) - 48px - var(--safe-top));
    padding: 28px;
  }
  .shift-day {
    min-height: 94px;
    padding: 10px 4px;
  }
  .shift-cal-chip {
    font-size: 10px;
  }
  .journal-columns {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
  }
  .journal-quick {
    position: sticky;
    top: 24px;
  }
  .wage-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  .wage-metric:first-child {
    grid-column: auto;
    padding: 12px;
  }
  .shift-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .shift-tools-grid .card {
    align-self: start;
  }
  .shift-list .shift-tools {
    flex-basis: auto;
    border: 0;
    padding: 0;
  }
  .shift-list .shift {
    align-items: center;
  }
  .journal-history {
    gap: 18px;
  }
  .top-actions {
    gap: 10px;
  }
  #cosmosWelcomeScroll {
    padding-top: 32px;
  }
  #cosmosWelcomeInner {
    max-width: 600px;
  }
  .welcome-brand {
    margin-bottom: 48px;
  }
  .welcome-hero h1 {
    font-size: 40px;
  }
  .welcome-hero p {
    font-size: 17px;
  }
}
@media (max-width: 359px) {
  .app {
    padding-left: max(14px, var(--safe-left));
    padding-right: max(14px, var(--safe-right));
  }
  .card,
  .priority {
    padding: 18px;
  }
  .workspace-header h2,
  .intro h2 {
    font-size: 27px;
  }
  .top-actions {
    gap: 2px;
  }
  .top .icon-button {
    width: 44px;
    height: 44px;
  }
  .top {
    gap: 8px;
  }
  .navbtn {
    font-size: 8px;
  }
  .bottomnav {
    width: calc(100% - 20px - var(--safe-left) - var(--safe-right));
    padding: 7px 5px;
  }
  .task,
  .habit,
  .shift {
    padding: 14px;
    gap: 7px;
  }
  .habit > .btn {
    width: 38px;
  }
  .habit-icon {
    width: 33px;
    height: 33px;
  }
  .task-title {
    font-size: 13px;
  }
  .formgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .field.full {
    grid-column: auto;
  }
  .modal {
    padding: 18px;
  }
  .summary-layout {
    gap: 15px;
  }
  .summary-layout .progress-ring {
    width: 96px;
    height: 96px;
  }
  .summary-layout .xp-number {
    font-size: 25px;
  }
  .settings-menu button,
  .settings-placeholder {
    padding: 16px;
  }
  .settings-menu .menu-arrow {
    right: 12px;
  }
  .settings-placeholder .tag {
    right: 8px;
    font-size: 9px;
  }
  .welcome-brand .welcome-promise {
    display: none;
  }
  #cosmosWelcomeAuth .card {
    padding: 20px;
  }
  .quick {
    padding: 13px 10px;
    gap: 6px;
    font-size: 10px;
  }
  .shift-day {
    min-height: 64px;
    border-radius: 12px;
  }
  .shift-cal-chip {
    font-size: 8px;
  }
  .shift-toolbar strong {
    font-size: 14px;
  }
  .workspace-header .row {
    flex-wrap: wrap;
  }
}
.focal > .row > .habit-icon {
  color: var(--text);
}
.shift-day.outside {
  color: #746d78;
}
@media (max-width: 767px) {
  .settings-page .formgrid,
  #taskRemindersPanel .formgrid,
  .modal .formgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .shift-day {
    min-height: 56px;
  }
  .habit > .btn {
    width: 44px;
  }
  .modal .dialog-actions {
    padding: 12px 0 0;
  }
  .journal-columns > div + div {
    margin-top: 24px;
  }
}
/* V3 progressive interaction rules. Ambient surfaces/tokens remain unchanged. */
#profileName,
#greeting,
.task-title,
.entry-value {
  overflow-wrap: anywhere;
}
html[data-keyboard="true"] .bottomnav {
  visibility: hidden;
  pointer-events: none;
}
.modal input,
.modal select,
.modal textarea {
  scroll-margin-block: 20px;
}
@media (max-width: 767px), (pointer: coarse) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .modal-backdrop {
    align-items: center;
  }
  .bottomnav {
    bottom: max(6px, var(--safe-bottom));
  }
  .navbtn {
    min-height: 44px;
    gap: 2px;
  }
}
.progress-ring {
  transition: --percent var(--motion-progress) var(--motion-ease);
}
@property --percent {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .check:before,
  .progress-ring,
  .card,
  .navbtn.active {
    border: 1px solid CanvasText;
  }
  .progress-ring:before {
    border: 1px solid CanvasText;
  }
  .check.done:before {
    background: Highlight;
  }
  .check.done {
    color: HighlightText;
  }
}

@media (max-width: 359px) {
  .brand .logo {
    width: 32px;
    height: 32px;
  }
  .brand h1 {
    font-size: 14px;
  }
  .brand {
    gap: 8px;
  }
  .xp-card {
    padding: 16px;
  }
  .xp-card .progress-ring {
    width: 88px;
    height: 88px;
  }
  .xp-center {
    gap: 12px;
  }
}

/* Native dialog top layer supplies background inertness; no window alerts. */
body.confirmation-open,
html[data-standalone="true"] body.confirmation-open .app {
  overflow: hidden;
}
.cosmos-dialog {
  position: fixed;
  inset-inline: 0;
  top: calc(var(--visual-top, 0px) + max(12px, var(--safe-top)));
  bottom: auto;
  margin: auto;
  margin-top: max(
    12px,
    calc(
      (
          var(--visual-height, 100dvh) - var(--safe-top) - var(--safe-bottom) -
            480px
        ) /
        2
    )
  );
  inline-size: min(
    520px,
    calc(100% - 32px - var(--safe-left) - var(--safe-right))
  );
  max-block-size: calc(100vh - 48px);
  max-block-size: calc(
    var(--visual-height, 100dvh) - 48px - var(--safe-top) - var(--safe-bottom)
  );
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e9e3e0;
  border-radius: 28px;
  padding: 26px;
  background:
    radial-gradient(ellipse at 100% 0%, #f1eee8, transparent 65%), #fbf9f7;
  color: var(--text);
  box-shadow: 0 20px 70px #1e1e2433;
}
.cosmos-dialog::backdrop {
  background: #1b17236b;
}
.cosmos-dialog h2 {
  margin: 0 0 16px;
  font-size: 22px;
}
.confirmation-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.7;
  color: #514b57;
}
.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.cosmos-dialog[data-closing] {
  pointer-events: none;
}
@media (max-width: 359px) {
  .cosmos-dialog {
    padding: 20px;
  }
  .confirmation-actions .btn {
    flex: 1 1 100%;
  }
}
