/* Zenith Works — white page, the logo's navy (#01153C) for structure, its coral (#F0513C) only for what needs action */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-glow: none;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-glass: #ffffff;
  --text: #13213f;
  --heading: #01153c;
  --muted: #5b6680;
  --faint: #6f7a92;
  --line: #edf0f5;
  --line-2: #dde2ec;
  --primary: #01153c;
  --primary-hover: #0d2758;
  --primary-fg: #ffffff;
  --accent: #f0513c;
  --accent-hover: #db4430;
  --accent-soft: #fdece9;
  --accent-ink: #c2381f;
  --on-accent: #ffffff;
  --link: #1f4596;
  --ring-track: #edf0f5;
  --focus: 0 0 0 3px rgba(31, 69, 150, .22);
  --navy: #01153c;
  --navy-soft: #eef2f9;
  --bar: #01153c;
  --bar-text: #b9c4db;
  --bar-on: #ffffff;
  --bar-on-text: #01153c;

  --p-lilac: #eef2f9;
  --p-mint: #eef2f9;
  --p-peach: #fdece9;
  --p-butter: #fdece9;

  --ok: #1d6b47;     --ok-soft: #e7f5ee;
  --danger: #b3261e; --danger-soft: #fdeceb;
  --warn: #8a5300;   --warn-soft: #fff3dc;
  --info: #1f4596;   --info-soft: #eef2f9;
  --neutral-soft: #eff1f5;

  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 16px 40px -16px rgba(29, 29, 38, .22);
  --sb-w: 232px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Dark is only used if someone chooses it with the toggle. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020d26;
  --surface: #07163a;
  --surface-2: #0d1e47;
  --surface-glass: #020d26;
  --text: #e3e8f3;
  --heading: #ffffff;
  --muted: #9aa6c3;
  --faint: #8592b1;
  --line: #15274f;
  --line-2: #22365f;
  --primary: #e3e8f3;
  --primary-hover: #ffffff;
  --primary-fg: #01153c;
  --accent: #f0513c;
  --accent-hover: #f46a57;
  --accent-soft: rgba(240, 81, 60, .15);
  --accent-ink: #f7826f;
  --on-accent: #ffffff;
  --link: #93b2ef;
  --ring-track: #15274f;
  --focus: 0 0 0 3px rgba(147, 178, 239, .3);
  --navy-soft: #0d1e47;
  --bar: #0d1e47;
  --bar-text: #9aa6c3;
  --bar-on: #e3e8f3;
  --bar-on-text: #01153c;
  --p-lilac: #0d1e47;
  --p-mint: #0d1e47;
  --p-peach: rgba(240, 81, 60, .14);
  --p-butter: rgba(240, 81, 60, .14);
  --ok: #6fd6a5;     --ok-soft: rgba(111, 214, 165, .12);
  --danger: #ff8f7e; --danger-soft: rgba(255, 143, 126, .12);
  --warn: #f2c261;   --warn-soft: rgba(242, 194, 97, .12);
  --info: #93b2ef;   --info-soft: rgba(147, 178, 239, .12);
  --neutral-soft: rgba(255, 255, 255, .07);
  --shadow-lg: 0 16px 40px -16px rgba(0, 0, 0, .6);
}
:root[data-theme="dark"] .nav { border: 1px solid var(--line-2); box-shadow: none; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg-glow), var(--bg); background-attachment: fixed; color: var(--text);
  font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--link); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 .25rem; color: var(--heading); }
h2 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .9rem; color: var(--heading); }
h3 { font-size: .72rem; font-weight: 700; margin: 0 0 .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
::selection { background: rgba(240, 81, 60, .2); }
svg.i { width: 18px; height: 18px; flex-shrink: 0; }
kbd { font: 600 .7rem/1 var(--font); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
:focus-visible { outline: none; box-shadow: var(--focus); }
.when-dark { display: none !important; }
:root[data-theme="dark"] .when-dark { display: inline-flex !important; }
:root[data-theme="dark"] .when-light { display: none !important; }

/* page transitions (Chrome/Edge/Safari 18+; no-op elsewhere) */
@view-transition { navigation: auto; }
.appbar { view-transition-name: appbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* ---------- shell ---------- */
.shell { display: block; min-height: 100vh; }
.badge-count { margin-left: 2px; background: var(--accent); color: #fff; border-radius: 999px; font-size: .66rem; font-weight: 600;
  min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; line-height: 1; }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 32px 12px;
  background: var(--surface-glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; }
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
  background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface); border-color: var(--line); color: var(--heading); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent);
  color: var(--on-accent); font-size: .62rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.appbar-mark img { width: 34px; display: block; }
.only-mobile { display: none !important; }

/* account menu */
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--surface); border-color: var(--line); }
.menu .who strong { display: block; font-size: .84rem; color: var(--heading); line-height: 1.2; }
.menu .who span { display: block; font-size: .72rem; color: var(--muted); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; padding: 8px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .16s var(--ease); z-index: 40; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu-head strong { display: block; color: var(--heading); }
.menu-head span { display: block; font-size: .78rem; color: var(--muted); word-break: break-all; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 0;
  background: none; color: var(--text); font: 500 .87rem var(--font); cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop svg { color: var(--muted); }
.menu-pop .danger-item { color: var(--danger); }
.menu-pop .danger-item svg { color: var(--danger); }

.avatar { --av: var(--accent); width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--av) 16%, var(--surface)); color: var(--av); font-weight: 700; font-size: .78rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--av) 30%, transparent); }
.avatar.sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar.lg { width: 44px; height: 44px; font-size: .95rem; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

.main { flex: 1; width: 100%; max-width: 1440px; padding: 14px 32px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 24px; }
.page-head .muted { font-size: .92rem; }

/* entrance motion */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.main > *, .bento > * { animation: rise .45s var(--ease) both; }
.main > *:nth-child(2), .bento > *:nth-child(2) { animation-delay: .04s; }
.main > *:nth-child(3), .bento > *:nth-child(3) { animation-delay: .08s; }
.main > *:nth-child(4), .bento > *:nth-child(4) { animation-delay: .12s; }
.main > *:nth-child(n+5), .bento > *:nth-child(n+5) { animation-delay: .16s; }
.main > .toasts { animation: none; }
.main > .subnav, .main > .page-head, .main > .dash { animation: none; }  /* the navy band must not fade in from white */

/* ---------- cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px; }
.card.attention { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 75%); }
.card.attention h2 { color: var(--accent-ink); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head a { font-size: .82rem; display: inline-flex; align-items: center; gap: 4px; }
.card-head a svg { width: 14px; height: 14px; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2.wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat .label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat .value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--heading); line-height: 1.2; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.stat .chip { position: absolute; top: 18px; right: 18px; }
.chip { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.chip.blue { background: var(--info-soft); color: var(--info); }
.chip.green { background: var(--ok-soft); color: var(--ok); }
.chip.amber { background: var(--warn-soft); color: var(--warn); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; background: var(--surface-2);
  border-bottom-color: var(--line); white-space: nowrap; }
thead th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
thead th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
thead th { border-bottom: 0; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; background: var(--surface-2); color: var(--heading); }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: var(--surface-2); }
.compact td, .compact th { padding: 9px 10px; font-size: .87rem; }
.person { display: flex; align-items: center; gap: 10px; }
.person > div { min-width: 0; }

/* ---------- forms ---------- */
form.inline { display: inline; }
label { display: block; font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=date], input[type=month], input[type=number], input[type=tel], select, textarea, input[type=file] {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; background: var(--surface);
  color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--line-2) 60%, var(--muted)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: var(--focus); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
input[type=file] { padding: 8px; }
input[type=file]::file-selector-button { font: 600 .82rem var(--font); padding: 6px 12px; margin-right: 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); cursor: pointer; }
textarea { min-height: 84px; resize: vertical; }
.field { margin-bottom: 16px; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--link); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span3 { grid-column: 1 / -1; }
.help { font-size: .78rem; color: var(--muted); margin-top: 5px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 20px 6px; margin: 0 0 20px; background: var(--surface-2); }
legend { font-weight: 700; color: var(--heading); padding: 0 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid transparent; background: var(--primary); color: var(--primary-fg); font: inherit; font-weight: 600; font-size: .88rem;
  cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(29, 29, 38, .2), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background .15s, border-color .15s, box-shadow .2s, transform .1s; }
.btn:hover { background: var(--primary-hover); text-decoration: none; box-shadow: 0 6px 16px -6px rgba(29, 29, 38, .45); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 16px; height: 16px; }
.btn.accent { background: linear-gradient(180deg, #f46a57, var(--accent)); color: #fff; box-shadow: 0 1px 2px rgba(240, 81, 60, .3), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn.accent:hover { background: var(--accent-hover); box-shadow: 0 8px 20px -6px rgba(240, 81, 60, .55); }
.btn.secondary { background: var(--surface); color: var(--heading); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
.btn.ghost { background: transparent; color: var(--link); padding: 5px 9px; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.small { padding: 6px 12px; font-size: .8rem; border-radius: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .73rem; font-weight: 600;
  text-transform: capitalize; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.role::before { display: none; }
.s-pending, .s-draft, .s-waiting { background: var(--warn-soft); color: var(--warn); }
.s-pending::before { animation: pulse 1.8s infinite; }
.s-approved, .s-locked, .s-active { background: var(--ok-soft); color: var(--ok); }
.s-settled, .s-paid { background: var(--info-soft); color: var(--info); }
.s-booked { background: var(--ok-soft); color: var(--ok); }
.adv-requested, .adv-none { background: var(--neutral-soft); color: var(--muted); }
.adv-to_pay { background: var(--accent-soft); color: var(--accent-ink); }
.adv-part { background: var(--warn-soft); color: var(--warn); }
.adv-paid { background: var(--ok-soft); color: var(--ok); }
.adv-wait { color: var(--accent-ink); }
[hidden] { display: none !important; }
.att { display: inline-block; min-width: 20px; padding: 1px 3px; border-radius: 5px; text-align: center; font-size: .72rem; font-weight: 700; }
.c-P, .c-S, .c-W { background: var(--ok-soft); color: var(--ok); }
.c-T, .c-L { background: var(--info-soft); color: var(--info); }
.c-U, .c-D { background: var(--warn-soft); color: var(--warn); }
.c-A { background: var(--danger-soft); color: var(--danger); }
.c-E, .c-H, .c-O { background: var(--neutral-soft); color: var(--muted); }
.att-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; font-size: .78rem; color: var(--muted); }
.att-legend span { display: inline-flex; align-items: center; gap: 5px; }
.att-grid th, .att-grid td { padding: 5px 2px; text-align: center; font-size: .72rem; }
.att-grid .who { position: sticky; left: 0; z-index: 1; padding-right: 10px; background: var(--surface); text-align: left; white-space: nowrap; font-size: .82rem; }
.s-rejected, .s-exited { background: var(--danger-soft); color: var(--danger); }
.s-cancelled, .s-skipped, .s-closed { background: var(--neutral-soft); color: var(--muted); }
.role { background: var(--info-soft); color: var(--info); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- flash / toasts ---------- */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.flash.success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.flash.error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.toasts { position: fixed; z-index: 60; top: 76px; right: 24px; display: grid; gap: 10px; width: min(400px, calc(100vw - 32px)); }
.toast { margin: 0; background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease); }
.toast > svg { color: var(--ok); }
.toast.error > svg { color: var(--danger); }
.toast span { flex: 1; }
.toast.success, .toast.error { background: var(--surface); border-color: var(--line); }
.toast.success { border-left: 4px solid var(--ok); }
.toast.error { border-left: 4px solid var(--danger); }
.toast-x { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 4px; border-radius: 8px; display: grid; }
.toast-x:hover { background: var(--surface-2); color: var(--text); }
.toast-x svg { width: 16px; height: 16px; }
.toast.leaving { opacity: 0; transform: translateX(16px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 16px 26px; border-left: 2px solid var(--line); position: relative; margin-left: 7px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 9px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-2); }
.timeline li.approved::before { background: var(--ok); border-color: var(--ok); }
.timeline li.rejected::before { background: var(--danger); border-color: var(--danger); }
.timeline li.pending::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(240, 81, 60, .16); }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; font-weight: 600; color: var(--heading); }
.empty { color: var(--muted); padding: 14px 0; }

/* ---------- command palette ---------- */
.cmdk { width: min(620px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.cmdk[open] { animation: pop .18s var(--ease); }
.cmdk::backdrop { background: rgba(29, 29, 38, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--faint); }
.cmdk-input svg { width: 20px; height: 20px; }
.cmdk-input input { border: 0; padding: 0; font-size: 1.02rem; background: none; box-shadow: none !important; }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.cmdk-list li[role=option] { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; color: var(--text); font-weight: 500; }
.cmdk-list li[role=option] svg { color: var(--muted); }
.cmdk-list li[role=option] span { flex: 1; }
.cmdk-list li[role=option] kbd { visibility: hidden; }
.cmdk-list li[aria-selected=true] { background: var(--accent-soft); color: var(--heading); }
.cmdk-list li[aria-selected=true] svg { color: var(--accent-ink); }
.cmdk-list li[aria-selected=true] kbd { visibility: visible; }
.cmdk-group { padding: 10px 12px 4px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--faint); background: var(--surface-2); }
.cmdk-foot kbd { margin-right: 3px; }

/* ---------- dashboard bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.bento > .card, .bento > .stat { margin: 0; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }


@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; color: var(--heading); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .meta { font-size: .78rem; color: var(--muted); }
.date-tile { width: 48px; flex-shrink: 0; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: var(--surface); }
.date-tile .m { display: block; background: var(--accent); color: var(--on-accent); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 0; }
.date-tile .d { display: block; font-size: 1.15rem; font-weight: 800; color: var(--heading); padding: 3px 0 4px; }
.countdown { font-size: .74rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.type-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--info-soft); color: var(--info); }
.type-ico.leave { background: var(--accent-soft); color: var(--accent-ink); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 8px; color: var(--muted); font-size: .88rem; }
.empty-state .chip { width: 46px; height: 46px; border-radius: 14px; }

/* ---------- first-login welcome ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.welcome { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 28px; padding: 30px 32px;
  border-radius: 24px; background: var(--surface); border: 1px solid transparent; box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate;
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(120deg, var(--accent), #f7826f 50%, var(--accent));
  background-origin: border-box; background-clip: padding-box, border-box; animation: rise .5s var(--ease) both; }
.welcome::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 81, 60, .14), transparent 65%); }
.welcome::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; left: -160px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 81, 60, .10), transparent 65%); }
.welcome .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-ink);
  padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); }
.welcome .eyebrow svg { width: 14px; height: 14px; }
.welcome h2 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 14px 0 8px; }
.welcome .welcome-msg { margin: 0 0 22px; color: var(--muted); font-size: .98rem; max-width: 640px; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.2s ease-in-out .6s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.quickstart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: qs; }
.quickstart li { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .2s var(--ease), border-color .2s; }
.quickstart li:hover { transform: translateY(-2px); border-color: var(--line-2); }
.quickstart li.todo { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); background: var(--warn-soft); }
.quickstart .chip { width: 36px; height: 36px; border-radius: 11px; }
.quickstart .chip svg { width: 17px; height: 17px; }
.quickstart strong { display: block; color: var(--heading); font-size: .9rem; line-height: 1.3; }
.quickstart span { display: block; color: var(--muted); font-size: .8rem; margin: 2px 0 6px; line-height: 1.45; }
.quickstart a { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; }
.quickstart a svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.quickstart a:hover svg { transform: translateX(2px); }
.welcome .tip { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .82rem; color: var(--muted); }
.welcome .tip svg { width: 15px; height: 15px; color: var(--faint); }
.welcome-feedback { align-self: stretch; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 20px;
  background: linear-gradient(160deg, #1b4539, #12332b 60%, #0d2620); color: #cfe0d6; position: relative; overflow: hidden; }
.welcome-feedback::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 81, 60, .4), transparent 70%); pointer-events: none; }
.welcome-feedback h3 { color: #8e9bb8; margin: 0; }
.welcome-feedback .q { margin: 0; color: #fff; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.welcome-feedback textarea { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; min-height: 88px; }
.welcome-feedback textarea::placeholder { color: #8090b0; }
.welcome-feedback textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 81, 60, .25); }
.welcome-feedback .btn.ghost { color: #cfe0d6; }
.welcome-feedback .btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.welcome-feedback .help { color: #7f8db0; margin: 0; position: relative; z-index: 1; }
.welcome-feedback .actions { position: relative; z-index: 1; margin-top: auto; }

.emoji-rate { display: flex; gap: 8px; }
.emoji-rate label { margin: 0; flex: 1; cursor: pointer; }
.emoji-rate input { position: absolute; opacity: 0; pointer-events: none; }
.emoji-rate span { display: grid; place-items: center; height: 50px; border-radius: 14px; font-size: 1.5rem; background: var(--surface-2);
  border: 1px solid var(--line); filter: grayscale(.7); opacity: .75; transition: transform .15s var(--ease), filter .15s, opacity .15s, background .15s, border-color .15s; }
.emoji-rate label:hover span { filter: none; opacity: 1; transform: translateY(-2px) scale(1.06); }
.emoji-rate input:checked + span { filter: none; opacity: 1; transform: scale(1.1); background: var(--accent-soft); border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 81, 60, .2); }
.emoji-rate input:focus-visible + span { box-shadow: var(--focus); }
.welcome-feedback .emoji-rate span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.welcome-feedback .emoji-rate input:checked + span { background: rgba(240, 81, 60, .2); border-color: var(--accent); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg a { display: block; padding: 7px 14px; border-radius: 10px; font-size: .84rem; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.seg a:hover { text-decoration: none; color: var(--heading); }
.seg input:checked + span, .seg a.on { background: var(--surface); color: var(--heading); box-shadow: var(--shadow); }
.seg input:focus-visible + span { box-shadow: var(--focus); }
.section-tabs { display: flex; width: fit-content; max-width: 100%; margin-bottom: 18px; }
.team-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; max-height: 240px; overflow-y: auto; }

.rate-bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 8px; }
.rate-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.rate-bars i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), #f7826f); }
.rate-bars span { font-size: .85rem; line-height: 1; }
.feedback-list li { align-items: flex-start; padding: 14px 0; }
.feedback-list li.is-new .title::after { content: "New"; margin-left: 8px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.feedback-list .face { font-size: 1.05rem; margin-left: 4px; }
.fb-msg { margin: 6px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); white-space: pre-line; }

/* ---------- onboarding ---------- */
.s-sent { background: var(--info-soft); color: var(--info); }
.s-accepted, .s-joined { background: var(--ok-soft); color: var(--ok); }
.s-submitted { background: var(--accent-soft); color: var(--accent-ink); }
.s-declined, .s-withdrawn { background: var(--neutral-soft); color: var(--muted); }
.req { color: var(--accent-ink); }
.field-error { font-size: .78rem; color: var(--danger); margin-top: 5px; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent); }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; line-height: 1.6; }
.kv.tight { grid-template-columns: 1fr auto; gap: 6px 12px; }
.kv.tight dd { text-align: right; font-variant-numeric: tabular-nums; }

.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stage { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: inherit; text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
.stage:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--line-2); }
.stage .chip { grid-row: span 2; }
.stage .n { font-size: 1.6rem; font-weight: 800; color: var(--heading); line-height: 1; letter-spacing: -.02em; }
.stage .l { font-size: .82rem; font-weight: 600; color: var(--text); }
.stage .h { grid-column: 1 / -1; font-size: .72rem; color: var(--faint); margin-top: 8px; }
.stage.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 81, 60, .14); }
.stage.hot::after { content: ""; position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 81, 60, .2); animation: pulse 1.8s infinite; }

.stepper { list-style: none; display: flex; gap: 0; margin: 0 0 22px; padding: 0; counter-reset: s; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; color: var(--faint); position: relative; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 12px; background: var(--line); border-radius: 2px; }
.stepper li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface);
  font-size: .78rem; color: var(--faint); flex-shrink: 0; }
.stepper li.done { color: var(--text); }
.stepper li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.done::after { background: var(--ok); }
.stepper li.now { color: var(--heading); }
.stepper li.now span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px rgba(240, 81, 60, .16); }

.copy-field { display: flex; gap: 8px; }
.copy-field input { font-size: .82rem; color: var(--muted); background: var(--surface-2); }

.offer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.offer-layout > .card { margin: 0; }
.ctc-live { position: sticky; top: 84px; margin: 0; }
.ctc-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; color: var(--heading); }
.ctc-big small { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.ctc-big span { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ctc-big em { flex-basis: 100%; font-style: normal; font-size: .76rem; color: var(--muted); font-weight: 600; }

.form-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.form-toc a { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.form-toc a:hover { color: var(--heading); text-decoration: none; border-color: var(--line-2); }
.master-form fieldset { scroll-margin-top: 90px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; padding: 14px 0 4px; margin-top: 4px;
  background: linear-gradient(180deg, transparent, var(--surface) 35%); }
.rows-editor input { min-width: 110px; padding: 7px 10px; border-radius: 9px; }
.rows-editor td { padding: 5px 6px; border-bottom: 0; }
.rows-editor tbody tr:hover td { background: none; }
.rows-editor .btn.ghost svg { width: 15px; height: 15px; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.doc-slot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--surface); }
.doc-slot.need { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.doc-slot.done { border-style: solid; border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-soft); }
.doc-slot.picked { border-style: solid; border-color: var(--link); }
.doc-slot .chip { width: 34px; height: 34px; border-radius: 10px; }
.doc-slot .chip svg { width: 16px; height: 16px; }
.doc-slot strong { display: block; font-size: .85rem; color: var(--heading); line-height: 1.3; }
.doc-slot .meta { display: block; font-size: .74rem; color: var(--muted); word-break: break-all; }
.file-pick { display: inline-block; margin: 6px 0 0; cursor: pointer; }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-pick span { display: inline-block; font-size: .76rem; font-weight: 600; color: var(--link); padding: 3px 10px; border-radius: 8px;
  background: var(--info-soft); max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.file-pick input:focus-visible + span { box-shadow: var(--focus); }

/* candidate pages */
.join-body { min-height: 100vh; display: flex; flex-direction: column; }
.join-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(16px, calc(50% - 440px));
  background: linear-gradient(135deg, #1b4539, #12332b 60%, #0d2620); color: #cfe0d6; font-size: .8rem; font-weight: 600; }
.join-top img { height: 42px; }
.join-main { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px 48px; }
.join-foot { text-align: center; color: var(--faint); font-size: .76rem; padding: 18px 16px 28px; }
.join-hero { position: relative; margin: 0 -16px 20px; padding: 36px 32px 34px; color: #fff; overflow: hidden; border-radius: 0 0 28px 28px;
  background: radial-gradient(500px 260px at 90% 120%, rgba(240, 81, 60, .55), transparent 60%), linear-gradient(135deg, #1b4539, #12332b 60%, #0d2620); }
.join-hero.slim { padding: 26px 32px 28px; }
.join-hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; color: #ffd2ca; padding: 5px 12px;
  border-radius: 999px; background: rgba(240, 81, 60, .18); }
.join-hero .eyebrow svg { width: 14px; height: 14px; }
.join-hero h1 { color: #fff; font-size: 2.1rem; margin: 14px 0 8px; }
.join-hero p { color: #c3cce0; margin: 0; max-width: 600px; font-size: 1rem; }
.join-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
.join-card.center { text-align: center; padding: 48px 28px; margin-top: 28px; }
.join-card.center .chip.big { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; }
.join-card.center .chip.big svg { width: 26px; height: 26px; }
.join-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.join-grid .join-card { margin: 0; }
.join-card.accept { border: 1px solid transparent; background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(120deg, var(--accent), #f7826f);
  background-origin: border-box; background-clip: padding-box, border-box; }
.join-card.decline summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.sig-input { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.4rem !important; padding: 8px 14px !important; }
.offer-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.offer-facts > div { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.offer-facts span { display: block; font-size: .72rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.offer-facts b { display: block; color: var(--heading); font-size: 1rem; margin-top: 3px; }
.offer-facts small { display: block; color: var(--muted); font-size: .78rem; }
.offer-facts .hl { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.offer-facts .hl b { font-size: 1.25rem; color: var(--accent-ink); }
.status-ok { display: flex; gap: 12px; align-items: center; background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); color: var(--ok); }
.progress-card { padding: 18px 22px; }
.progress-head { display: flex; justify-content: space-between; font-size: .88rem; color: var(--heading); }
.progress-head span { font-weight: 800; color: var(--accent-ink); }
.bar { height: 8px; border-radius: 999px; background: var(--ring-track); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #f7826f); transition: width .6s var(--ease); }

/* ---------- login ---------- */
.signin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; width: 100%; max-width: 430px;
  box-shadow: var(--shadow-lg); animation: rise .5s var(--ease) both; }
.signin-card .logo { width: 120px; display: block; margin-bottom: 26px; }
.signin-card h1 { font-size: 1.6rem; }
.gbtn { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 13px; border: 1px solid var(--line-2);
  border-radius: 14px; background: var(--surface); font-weight: 600; color: var(--text); transition: background .15s, border-color .15s, box-shadow .2s; }
.gbtn:hover { background: var(--surface-2); text-decoration: none; box-shadow: var(--shadow); }
.divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: var(--faint); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- responsive ---------- */
/* ---------- white, roomy layout ---------- */
body { font-size: 15px; }
h1 { font-size: 2.1rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
h2 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 1.1rem; }
h3 { font-size: .85rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
label { font-weight: 500; }

/* ---------- top bar: logo, floating navy pill menu, actions ---------- */
.appbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 14px 40px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 600; font-size: 1rem; letter-spacing: -.015em; white-space: nowrap; justify-self: start; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 24px; width: auto; display: block; }
:root[data-theme="dark"] .brand-mark { content: url("img/mark-white.png"); }
.nav { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--bar); box-shadow: 0 10px 26px -14px rgba(1, 21, 60, .55); }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; color: var(--bar-text); font-size: .88rem; font-weight: 500;
  white-space: nowrap; transition: background .15s, color .15s; }
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover, .nav-item:hover .nav-link, .nav-item:focus-within .nav-link { color: #fff; background: rgba(255, 255, 255, .09); text-decoration: none; }
.nav-link.active, .nav-item:hover .nav-link.active, .nav-item:focus-within .nav-link.active { background: var(--bar-on); color: var(--bar-on-text); }
/* hover panel: what's inside a space, in plain words */
.nav-panel { position: absolute; left: 50%; top: 100%; padding-top: 14px; width: 440px; transform: translateX(-50%) translateY(6px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s, transform .16s var(--ease), visibility .16s; z-index: 40; }
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%); transition-delay: .08s; }
.nav-item:first-child .nav-panel { left: 0; transform: translateY(6px); }
.nav-item:first-child:hover .nav-panel, .nav-item:first-child:focus-within .nav-panel { transform: none; }
.nav-item:last-child .nav-panel, .nav-item:nth-last-child(2) .nav-panel { left: auto; right: 0; transform: translateY(6px); }
.nav-item:last-child:hover .nav-panel, .nav-item:last-child:focus-within .nav-panel,
.nav-item:nth-last-child(2):hover .nav-panel, .nav-item:nth-last-child(2):focus-within .nav-panel { transform: none; }
.nav-panel-in { background: var(--surface); border-radius: 20px; padding: 10px; box-shadow: 0 24px 50px -18px rgba(1, 21, 60, .38), 0 2px 8px rgba(1, 21, 60, .06); }
:root[data-theme="dark"] .nav-panel-in { background: var(--surface-2); box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .7); }
.nav-panel-head { padding: 8px 12px 10px; }
.nav-panel-head strong { display: block; color: var(--heading); font-weight: 600; }
.nav-panel-head span { color: var(--muted); font-size: .84rem; }
.nav-panel-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.nav-panel-pages a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--heading); font-weight: 400; }
.nav-panel-pages a:hover { background: var(--surface-2); text-decoration: none; }
:root[data-theme="dark"] .nav-panel-pages a:hover { background: var(--surface); }
.nav-panel-pages a.on { background: var(--navy-soft); }
.nav-panel-pages b { display: flex; align-items: center; gap: 4px; font-weight: 500; font-size: .9rem; }
.nav-panel-pages span:not(.badge-count) { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.nav-panel-new { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 10px 6px 4px; }
.nav-panel-new a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-ink); font-size: .84rem; }
.nav-panel-new a:hover { background: var(--accent); color: #fff; text-decoration: none; }
.nav-panel-new svg { width: 15px; height: 15px; }
.appbar-actions { justify-self: end; }
.icon-btn:hover { background: var(--surface-2); border-color: transparent; }
.icon-btn.on { background: var(--navy-soft); color: var(--heading); }
.menu summary:hover, .menu[open] summary { background: var(--surface-2); border-color: transparent; }
.avatar { background: var(--navy-soft); color: var(--heading); box-shadow: none; }

/* pages inside the current space */
.subnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 2px 0 26px; }
.subnav-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--heading); margin-right: 12px; padding-right: 16px;
  border-right: 1px solid var(--line-2); }
.subnav-title svg { color: var(--accent); }
.subnav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .9rem; }
.subnav a:hover { background: var(--surface-2); color: var(--heading); text-decoration: none; }
.subnav a.on { background: var(--navy-soft); color: var(--heading); }

.main { max-width: 1180px; margin: 0 auto; padding: 16px 40px 72px; display: flex; flex-direction: column; }
.main > * { min-width: 0; order: 2; }
.main > .subnav { order: -1; }
.main > .page-head { order: 0; }
.main > .section-tabs { order: 1; }
.page-head { margin: 10px 0 28px; align-items: flex-start; }
.page-sub { color: var(--muted); margin-top: 6px; }

.card, .stat { box-shadow: none; border-color: var(--line); border-radius: var(--radius); }
.card { padding: 28px 30px; margin-bottom: 24px; }
.stat { padding: 24px 26px; }
.stat:hover { box-shadow: none; transform: none; }
.stat .chip, .card-head .chip { display: none; }
.stat .label { font-weight: 400; font-size: .86rem; }
.stat .value { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; }
.card.attention { background: var(--p-lilac); border-color: transparent; }
.card.attention h2 { color: var(--heading); }
.grid { gap: 24px; }

th, thead th { background: transparent; text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 500; color: var(--muted); }
thead th { border-bottom: 1px solid var(--line-2); border-radius: 0 !important; padding-top: 0; }
th, td { padding: 16px 12px; }
.compact td, .compact th { padding: 12px 10px; }
tbody tr:hover td { background: var(--surface-2); }
tr.total td { background: transparent; }

.btn { border-radius: 11px; box-shadow: none; padding: 10px 20px; font-weight: 500; }
.btn:hover { box-shadow: none; }
.btn.small { border-radius: 9px; padding: 6px 13px; }
.btn.secondary { box-shadow: none; }
.btn.accent { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn.accent:hover { background: var(--accent-hover); box-shadow: none; }
input[type=text], input[type=email], input[type=date], input[type=month], input[type=number], input[type=tel], select, textarea, input[type=file] { border-radius: 10px; }
fieldset { background: transparent; }
legend { font-weight: 600; }
.pill { padding: 4px 12px; font-weight: 500; }
.pill::before { display: none; }

.section-tabs { display: flex; flex-wrap: nowrap; gap: 28px; width: auto; max-width: none; padding: 0; margin-bottom: 28px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; overflow-x: auto; scrollbar-width: none; }
.section-tabs a { padding: 0 1px 12px; margin-bottom: -1px; border-radius: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.section-tabs a.on { background: none; box-shadow: none; color: var(--heading); border-bottom-color: var(--accent); }

.dash { max-width: 980px; }
/* home: navy greeting banner with the logo's coral dash */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 34px 36px; border-radius: 24px;
  background: var(--navy); color: #c9d3e8; margin-top: 6px; }
:root[data-theme="dark"] .hero { background: var(--surface-2); border: 1px solid var(--line-2); }
.hero-date { font-size: .86rem; color: #8e9bba; }
.hero h1 { color: #fff; font-size: 2.2rem; margin: 4px 0 0; }
.hero-dash { display: block; width: 42px; height: 6px; border-radius: 3px; background: var(--accent); margin: 14px 0 12px; }
.hero p { margin: 0; max-width: 520px; }
.hero-actions { display: flex; gap: 10px; align-items: center; }
.btn.on-navy { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn.on-navy:hover { background: rgba(255, 255, 255, .18); }
.newreq { position: relative; }
.newreq summary { list-style: none; }
.newreq summary::-webkit-details-marker { display: none; }
.newreq .menu-pop { width: 230px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tile { display: block; padding: 22px 24px; border-radius: 20px; background: var(--navy-soft); color: var(--heading); transition: transform .2s var(--ease); }
.tile:hover { text-decoration: none; transform: translateY(-2px); }
.tile .l { color: var(--muted); font-weight: 400; font-size: .9rem; }
.tile .v { font-size: 2.1rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tile.coral { background: var(--accent-soft); }
.tile.coral .l { color: var(--accent-ink); }
.tile.coral .v { color: var(--accent-ink); }
.dash-head { margin: 10px 0 32px; }
.dash-head p { margin: 6px 0 0; color: var(--muted); }
.block { display: block; border-radius: 22px; padding: 28px 32px; color: var(--heading); }
a.block:hover { text-decoration: none; opacity: .86; }
.block-today { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--p-lilac); padding: 34px 36px; }
.block-today strong { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.block-today span { color: var(--muted); }
.block-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.block .l { color: var(--muted); font-weight: 400; }
.block .v { font-size: 2.3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-top: 8px; }
.block.mint { background: var(--p-mint); }
.block.peach { background: var(--p-peach); }
.dash-section { margin-top: 48px; }
.dash-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dash-section-head h2 { margin: 0; }
.dash-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.dash-two .dash-section + .dash-section { margin-top: 48px; }
.quiet { color: var(--muted); padding: 18px 0; margin: 0; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li, .row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); color: inherit; }
.rows > li:last-child, .row:last-child { border-bottom: 0; }
a.row:hover { text-decoration: none; background: var(--surface-2); margin: 0 -14px; padding-inline: 14px; border-radius: 12px; }
.row .t, .rows .t { display: block; font-weight: 500; color: var(--heading); }
.row .t { font-size: 1.04rem; }
.row .m, .rows .m { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.row-side { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.row-amt { text-align: right; font-variant-numeric: tabular-nums; }
.row-amt b { display: block; font-weight: 500; color: var(--heading); }
.row-amt small { color: var(--muted); font-size: .82rem; font-weight: 400; }
.row-status { min-width: 92px; text-align: right; }
.list-filter { display: flex; gap: 10px; margin-bottom: 8px; }
.list-filter select { max-width: 180px; }
/* ---------- sign-in: navy night, the logo's coral dash draws itself in ---------- */
.signin { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 24px; overflow: hidden;
  background: #01153c; color: #fff; isolation: isolate; }
.signin-orbs i { position: absolute; z-index: -1; border-radius: 50%; animation: orb 14s ease-in-out infinite; }
.signin-orbs i:nth-child(1) { width: 62vmax; height: 62vmax; left: -22vmax; top: -30vmax; background: radial-gradient(circle closest-side, rgba(25, 64, 140, .8), rgba(16, 48, 111, .4) 45%, rgba(1, 21, 60, 0) 100%); }
.signin-orbs i:nth-child(2) { width: 46vmax; height: 46vmax; right: -16vmax; bottom: -22vmax; background: radial-gradient(circle closest-side, rgba(240, 81, 60, .34), rgba(240, 81, 60, 0) 100%); animation-delay: -5s; animation-duration: 17s; }
.signin-orbs i:nth-child(3) { width: 22vmax; height: 22vmax; right: 12vw; top: 9vh; border: 1.5px solid rgba(143, 168, 222, .22); animation-delay: -8s; animation-duration: 20s; }
.signin-orbs i:nth-child(4) { width: 9vmax; height: 9vmax; left: 14vw; bottom: 12vh; border: 1.5px solid rgba(240, 81, 60, .35); animation-delay: -2s; animation-duration: 11s; }
@keyframes orb { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(2.5vmax, -2vmax) scale(1.04); } 66% { transform: translate(-1.5vmax, 1.5vmax) scale(.98); } }
.signin-card { position: relative; width: 100%; max-width: 360px; text-align: center; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; animation: none; }
.signin-mark img { width: 128px; height: auto; display: block; margin: 0 auto; animation: rise .7s var(--ease) both; }
.signin-dash { display: block; width: 52px; height: 7px; margin: 22px auto 30px; border-radius: 4px; background: #f0513c; transform-origin: left center;
  animation: draw 1s .35s var(--ease) both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.signin-card h1 { color: #fff; font-size: 2.6rem; font-weight: 600; letter-spacing: -.035em; margin: 0 0 6px; animation: rise .6s .55s var(--ease) both; }
.signin-sub { margin: 0 0 34px; color: #8e9bba; font-size: 1rem; animation: rise .6s .65s var(--ease) both; }
.signin .gbtn { border: 0; border-radius: 14px; background: #fff; color: #01153c; padding: 14px; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55);
  animation: rise .6s .75s var(--ease) both; transition: transform .15s, box-shadow .2s; }
.signin .gbtn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 18px 40px -12px rgba(240, 81, 60, .45); text-decoration: none; }
.signin .flash { text-align: left; }
.signin-dev { margin-top: 28px; color: #6f7ea3; font-size: .84rem; }
.signin-dev summary { cursor: pointer; }
.signin-dev summary:hover { color: #b9c4db; }
.signin-dev form { margin-top: 12px; text-align: left; }
.support-form { text-align: left; display: grid; gap: 6px; }
.support-form label { color: #b9c4db; margin: 6px 0 0; }
.support-form input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.support-form .gbtn { margin-top: 14px; }
.signin-dev select { background-color: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.signin-dev select option { color: #01153c; }
.signin-dev .btn { background: #f0513c; color: #fff; }

@media (max-width: 900px) {
  .hero { padding: 24px 22px; border-radius: 20px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn, .newreq { flex: 1; }
  .newreq summary { width: 100%; }
  .tile { padding: 18px 20px; }
  .tile .v { font-size: 1.6rem; }
  .block-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .block { padding: 20px 22px; }
  .block .v { font-size: 1.55rem; }
  .block-today { padding: 24px; }
  .dash-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dash-two .dash-section { margin-top: 40px; }
  .row { align-items: flex-start; }
  .row-side { flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
  .row-status { min-width: 0; }
}

.welcome { background: var(--surface); background-image: none; border: 1px solid var(--line); box-shadow: none; }
.welcome::before, .welcome::after, .welcome-feedback::after, .welcome-feedback::before { display: none; }
.welcome h2 { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; }
.welcome .eyebrow { background: var(--accent-soft); color: var(--accent-ink); }
.welcome-feedback { background: var(--p-lilac); color: var(--text); }
.welcome-feedback h3, .welcome-feedback .help { color: var(--muted); }
.welcome-feedback .q { color: var(--heading); font-weight: 600; }
.welcome-feedback textarea { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.welcome-feedback textarea::placeholder { color: var(--faint); }
.welcome-feedback .btn.ghost { color: var(--accent-ink); }
.welcome-feedback .btn.ghost:hover { background: var(--surface); }
.welcome-feedback .emoji-rate span { background: var(--surface); border-color: var(--line-2); }

.join-top { background: var(--surface); color: var(--muted); border-bottom: 1px solid var(--line); }
.join-hero { background: var(--p-lilac); color: var(--text); margin: 0 0 20px; border-radius: 22px; }
.join-hero::before, .join-hero::after { display: none; }
.join-hero h1 { color: var(--heading); }
.join-hero p { color: var(--muted); }
.join-hero .eyebrow { background: var(--surface); border-color: var(--line); color: var(--accent-ink); }

.signin-card { box-shadow: none; }

/* ---------- soft blocks instead of lines ---------- */
.card, .stat, .stage, .welcome, .join-card, .offer-facts > div, .quickstart li, .seg { border: 0; background: var(--surface-2); }
.card.attention { background: var(--accent-soft); }
.menu-pop, .cmdk { border: 0; }
fieldset { border: 0; background: var(--surface); border-radius: 18px; padding: 18px 20px 8px; }
.card fieldset { box-shadow: none; }
legend { padding: 0 2px; margin-bottom: 4px; }
.btn.secondary { background: var(--navy-soft); border-color: transparent; color: var(--heading); }
.btn.secondary:hover { background: color-mix(in srgb, var(--navy-soft) 70%, var(--line-2)); }
.card .btn.secondary { background: var(--surface); }
.card .btn.secondary:hover { background: var(--navy-soft); }
table { border-collapse: separate; border-spacing: 0 6px; margin: -6px 0; }
thead th { border: 0; padding: 6px 14px 2px; font-size: .8rem; }
td { border-bottom: 0; background: var(--surface); }
tbody td:first-child { border-radius: 12px 0 0 12px; }
tbody td:last-child { border-radius: 0 12px 12px 0; }
tbody tr:hover td { background: var(--navy-soft); }
.card tbody tr:hover td { background: color-mix(in srgb, var(--surface) 55%, var(--navy-soft)); }
tr.total td { background: var(--navy-soft); font-weight: 600; }
.rows-editor table { margin: 0; }
.rows-editor td, .rows-editor tbody tr:hover td { background: transparent; }
.att-grid { border-spacing: 0 3px; }
.rows > li, .row, .list li { border-bottom: 0; }
.rows > li, .row { padding: 16px 0; }
.date-tile { border: 0; background: var(--surface-2); }
.subnav a.on { background: var(--primary); color: var(--primary-fg); }
.subnav a:not(.on) .badge-count { margin-left: 2px; }

/* ---------- the wordmark: "Works" handwritten in the logo's coral ---------- */
.works { font-family: "Kalam", "Segoe Script", cursive; font-weight: 700; color: var(--accent); font-size: 1.32em; line-height: 1;
  letter-spacing: 0; margin-left: .04em; position: relative; top: .04em; }
.signin-sub .works { font-size: 1.35em; }

/* ---------- dotted "graph paper" behind every inner page ---------- */
body { background-color: var(--bg); background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.7px);
  background-size: 22px 22px; background-attachment: fixed; }
:root { --dot: rgba(1, 21, 60, .085); }
:root[data-theme="dark"] { --dot: rgba(255, 255, 255, .06); }

.pending-box { padding: 14px 18px; border-radius: 14px; background: var(--warn-soft); color: var(--text); margin-bottom: 14px; }
.pending-box strong { display: block; color: var(--warn); margin-bottom: 4px; }

.month-preview { padding: 14px 16px; border-radius: 14px; background: var(--bg); margin-bottom: 10px; }
.month-preview.blocked { opacity: .75; }

/* ---------- news ---------- */
.news-banner { background: var(--accent); color: #fff; }
.news-banner-in { max-width: 1180px; margin: 0 auto; padding: 9px 40px; display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.news-banner-tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .2); padding: 2px 8px; border-radius: 999px; }
.news-banner a { color: #fff; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-banner button { background: none; border: 0; color: #fff; cursor: pointer; display: grid; padding: 4px; border-radius: 8px; }
.news-banner button:hover { background: rgba(255, 255, 255, .18); }
.news-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.news-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow);
  color: var(--heading); border-top: 4px solid var(--navy-soft); transition: transform .2s var(--ease); }
.news-card.important { border-top-color: var(--accent); }
.news-card:hover { text-decoration: none; transform: translateY(-2px); }
.news-card strong { font-weight: 600; font-size: 1rem; }
.news-card-date { font-size: .78rem; color: var(--muted); }
.news-card-body { font-size: .88rem; color: var(--muted); font-weight: 400; }
.news-item { padding: 22px 0; }
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item h2 { margin: 6px 0 8px; font-size: 1.2rem; }
.news-item.important h2 { color: var(--accent-ink); }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); }
.news-body { white-space: pre-line; color: var(--text); }

/* ---------- navy band on top of every page, tinted page, white floating cards ---------- */
:root { --band: #01153c; --band-2: #0d2152; --band-text: #b9c4db; --band-muted: #8e9bba;
  --card-shadow: 0 1px 2px rgba(1, 21, 60, .05), 0 12px 30px -16px rgba(1, 21, 60, .22); }
:root:not([data-theme="dark"]) { --bg: #f2f5fa; --surface-2: #f5f7fb; }
:root[data-theme="dark"] { --band: #071a42; --band-2: #102a5e; --card-shadow: 0 12px 30px -16px rgba(0, 0, 0, .7); }
.full-bleed, .subnav, .main > .page-head { box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(-1px -100vmax); background: var(--band); }
/* the top bar is already full width; no clip, so the menu panels can hang below it */
.appbar { position: sticky; background: var(--band); box-shadow: 0 1px 0 var(--band); backdrop-filter: none; -webkit-backdrop-filter: none; padding-bottom: 12px; border-bottom: 0; }
.brand { color: #fff; }
.brand-mark { content: url("img/mark-white-lg.png"); height: 26px; }
.nav { background: var(--band-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .nav { border: 0; }
.appbar .icon-btn { color: var(--band-text); }
.appbar .icon-btn:hover, .appbar .icon-btn.on { background: rgba(255, 255, 255, .1); color: #fff; }
.appbar .icon-btn .dot { border-color: var(--band); }
.appbar .menu summary:hover, .appbar .menu[open] summary { background: rgba(255, 255, 255, .1); }
.appbar .menu .who strong { color: #fff; }
.appbar .menu .who span { color: var(--band-muted); }
.appbar .avatar { background: rgba(255, 255, 255, .12); color: #fff; }
.main { padding-top: 0 !important; }
.subnav { margin: 0; padding: 8px 0 6px; }
.subnav a { color: var(--band-text); }
.subnav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.subnav a.on { background: #fff; color: #01153c; }
.main > .page-head { margin: 0 0 28px; padding: 26px 0 30px; color: var(--band-text); align-items: flex-end; }
.main > .page-head:has(+ :is(.card, .grid, .tiles, .rows-page, .pipeline, .offer-layout, form.card)) { padding-bottom: 76px; }
.main > .page-head + :is(.card, .grid, .tiles, .rows-page, .pipeline, .offer-layout, form.card) { margin-top: -76px; position: relative; z-index: 1; }
.main > .page-head h1 { color: #fff; }
.main > .page-head h1::after { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--accent); margin-top: 12px; }
.main > .page-head .page-sub, .main > .page-head .muted, .main > .page-head .help { color: var(--band-muted); }
.main > .page-head a:not(.btn) { color: #fff; }
.main > .page-head .btn { background: var(--accent); color: #fff; border-color: transparent; }
.main > .page-head .btn:hover { background: var(--accent-hover); }
.main > .page-head .btn.secondary, .main > .page-head .btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.main > .page-head .btn.secondary:hover, .main > .page-head .btn.ghost:hover { background: rgba(255, 255, 255, .18); }
.main > .page-head .btn.danger { background: var(--danger); }
.main > .page-head select, .main > .page-head input { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.main > .page-head select option { color: #01153c; }
/* home: the greeting banner is the band */
.hero { border-radius: 0; margin: 0; padding: 22px 0 84px; background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(-1px -100vmax 0); }
:root[data-theme="dark"] .hero { background: var(--band); border: 0; }
.hero + .tiles { margin-top: -56px; position: relative; z-index: 1; }
.dash { max-width: none; }
/* white cards that float on the tinted page */
.card, .stat, .stage, .welcome, .join-card, .offer-facts > div, .rows-page, .tile, .pipeline .stage { background: var(--surface); box-shadow: var(--card-shadow); }
.rows-page { border-radius: var(--radius); padding: 6px 26px; margin-bottom: 24px; }
.rows-page .quiet { padding: 22px 0; }
a.row:hover { margin: 0 -14px; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 24px; }
.tile { border-radius: 20px; }
.tile.navy { background: var(--band); color: #fff; }
.tile.navy .l { color: var(--band-muted); }
.tile.navy .v { color: #fff; }
.tile.coral { background: var(--accent-soft); box-shadow: none; }
:root[data-theme="dark"] .tile.coral { background: #3a1a1d; }
.tile .v { font-size: 1.8rem; }
fieldset { background: var(--surface-2); }
.card .btn.secondary { background: var(--navy-soft); }
.card .btn.secondary:hover { background: color-mix(in srgb, var(--navy-soft) 70%, var(--line-2)); }
td { background: transparent; }
tbody tr:nth-child(odd) td { background: var(--surface-2); }
tbody tr:hover td, .card tbody tr:hover td { background: var(--navy-soft); }
.list-filter { margin-bottom: 14px; }
.list-filter select { background-color: var(--surface); border-color: transparent; box-shadow: var(--card-shadow); }

@media (max-width: 1200px) {
  .span-3 { grid-column: span 6; } .span-4 { grid-column: span 6; } .span-8, .span-7, .span-5 { grid-column: span 12; }
}
@media (max-width: 1320px) {
  .nav-link svg { display: none; }
  .menu .who { display: none !important; }
}
@media (max-width: 1160px) {
  .appbar { padding: 12px 20px; }
  .brand-name { display: none; }
  .nav-link { padding: 8px 11px; font-size: .84rem; }
}
@media (max-width: 1000px) {
  .only-mobile { display: grid !important; }
  .only-desktop { display: none !important; }
  .appbar { grid-template-columns: auto 1fr; padding: 10px 14px; gap: 8px; }
  .appbar .nav { display: none; }
  .brand-name { display: inline; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles .tile:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .tiles .tile { padding: 16px 18px; }
  .tile .v { font-size: 1.45rem; }
  .main > .page-head { padding-top: 18px; }
  .subnav a { white-space: nowrap; }
    .card.paycard { overflow: hidden; }
  .menu summary { padding: 2px; }
  .main { padding: 10px 16px 104px; }
  h1 { font-size: 2rem; }
  .g2, .g2.wide-left, .g3, .form-grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { gap: 14px; }
  .bento > * { grid-column: span 12 !important; }
  .bento > .stat { grid-column: span 6 !important; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .offer-layout, .join-grid { grid-template-columns: 1fr; }
  .ctc-live { position: static; order: -1; }
  .offer-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper li { font-size: 0; gap: 0; }
  .stepper li span { font-size: .72rem; }
  .join-hero { padding: 26px 20px; }
  .join-hero h1 { font-size: 2.2rem; }
  .join-card { padding: 18px; }
  .welcome { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; border-radius: 20px; }
  .welcome h2 { font-size: 1.45rem; }
  .quickstart { grid-template-columns: 1fr; }
  .welcome .tip { display: none; }
  .emoji-rate span { height: 44px; font-size: 1.3rem; }
  .stat .value { font-size: 1.45rem; }
  .stat .chip { display: none; }
  .card { overflow-x: auto; padding: 18px; border-radius: 16px; }
  th, td { padding: 9px 10px; }
  .form-grid .span2 { grid-column: auto; }
  .kv { grid-template-columns: 120px 1fr; }
  .toasts { top: auto; bottom: 92px; right: 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px; background: var(--bar);
    box-shadow: 0 14px 30px -12px rgba(1, 21, 60, .55); }
  .tabbar a, .dock-more summary { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; border-radius: 16px;
    color: var(--bar-text); font: 500 .66rem var(--font); cursor: pointer; list-style: none; }
  .dock-more summary::-webkit-details-marker { display: none; }
  .tabbar a:hover { text-decoration: none; color: #fff; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar .active { color: var(--bar-on-text); background: var(--bar-on); }
  .dock-more[open] summary { color: #fff; background: rgba(255, 255, 255, .12); }
  .dock-sheet { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); max-height: 70vh; overflow-y: auto; padding: 8px; border-radius: 22px;
    background: var(--surface); box-shadow: 0 -10px 40px -10px rgba(1, 21, 60, .35); animation: rise .2s var(--ease); }
  :root[data-theme="dark"] .dock-sheet { background: var(--surface-2); }
  .dock-group { padding: 10px 10px 6px; }
  .dock-group strong { display: flex; align-items: center; gap: 8px; color: var(--heading); font-weight: 600; margin-bottom: 6px; }
  .dock-group strong svg { color: var(--accent); width: 18px; height: 18px; }
  .dock-group a { display: inline-block; margin: 0 4px 6px 0; padding: 7px 13px; border-radius: 999px; background: var(--navy-soft); color: var(--heading); font-weight: 500; font-size: .86rem; }
  .dock-group a.on { background: var(--primary); color: var(--primary-fg); }
  .tabbar .dot { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
    background: var(--accent); color: var(--on-accent); font-style: normal; font-size: .6rem; display: grid; place-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
@media print {
  .appbar, .tabbar, .subnav, .toasts, .no-print { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  body { background: #fff; }
  .card, .stat { box-shadow: none; }
}
