/* ShiftForge static concept template
   Working brand. Replace centralized strings and assets after name clearance. */

:root {
  color-scheme: dark;
  --font-ui: "Segoe UI Variable", "SF Pro Text", Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Segoe UI Variable Display", "SF Pro Display", "Aptos Display", var(--font-ui);
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .08), 0 8px 24px rgb(0 0 0 / .06);
  --shadow-2: 0 18px 58px rgb(0 0 0 / .20);
  --ease: cubic-bezier(.2,.8,.2,1);
  --fast: 120ms;
  --standard: 220ms;
  --slow: 420ms;
  --sidebar-width: 238px;
  --appbar-height: 72px;
  --event-day: #53c6b8;
  --event-night: #7d8be8;
  --event-swing: #e6a653;
  --event-overtime: #e86f5a;
  --event-on-call: #5ba8e8;
  --event-training: #d8b455;
  --event-court: #a78bd8;
  --event-leave: #72b983;
  --event-sick: #d97f91;
  --event-holiday: #c95a6b;
  --event-personal: #4aafc2;
}

[data-theme="night-watch"] {
  color-scheme: dark;
  --bg: #0a1018;
  --bg-deep: #070b11;
  --surface: #101925;
  --surface-raised: #162235;
  --surface-soft: #1b293d;
  --surface-hover: #213149;
  --text: #f5f7fa;
  --text-soft: #d9e0e8;
  --muted: #9eabbb;
  --muted-2: #7c8b9c;
  --border: #29384c;
  --border-soft: #213046;
  --accent: #53c6b8;
  --accent-strong: #2fa99b;
  --accent-text: #071512;
  --warm: #e6a653;
  --danger: #e86f5a;
  --focus: #87e5d9;
  --off-bg: #1b293d;
  --grid-line: #223147;
  --overlay: rgb(2 7 13 / .74);
}

[data-theme="station-red"] {
  color-scheme: light;
  --bg: #f3f1ed;
  --bg-deep: #e9e5de;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #eae6df;
  --surface-hover: #e1dcd3;
  --text: #202327;
  --text-soft: #373b40;
  --muted: #686b70;
  --muted-2: #868583;
  --border: #d7d1c8;
  --border-soft: #e3dfd8;
  --accent: #b8443e;
  --accent-strong: #96322d;
  --accent-text: #ffffff;
  --warm: #c89133;
  --danger: #b8443e;
  --focus: #7f1d1d;
  --off-bg: #ece8e1;
  --grid-line: #e1dcd4;
  --overlay: rgb(32 18 15 / .45);
}

[data-theme="ems-pulse"] {
  color-scheme: dark;
  --bg: #061b1d;
  --bg-deep: #031214;
  --surface: #0c272a;
  --surface-raised: #113236;
  --surface-soft: #173e42;
  --surface-hover: #1e4a4e;
  --text: #f2fbfa;
  --text-soft: #d7efec;
  --muted: #a0c0be;
  --muted-2: #78a09d;
  --border: #285257;
  --border-soft: #20484c;
  --accent: #58d6be;
  --accent-strong: #2baf9a;
  --accent-text: #041714;
  --warm: #f0b85a;
  --danger: #f07a6a;
  --focus: #91f0de;
  --off-bg: #173e42;
  --grid-line: #1c4549;
  --overlay: rgb(0 12 13 / .75);
}

[data-theme="scrubs"] {
  color-scheme: light;
  --bg: #f3f8f7;
  --bg-deep: #e7f0ee;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #e4efed;
  --surface-hover: #d9e8e6;
  --text: #18312f;
  --text-soft: #294743;
  --muted: #637875;
  --muted-2: #80918f;
  --border: #c9dcda;
  --border-soft: #d8e6e4;
  --accent: #2e7d76;
  --accent-strong: #205f5a;
  --accent-text: #ffffff;
  --warm: #c78b46;
  --danger: #b9555b;
  --focus: #195e58;
  --off-bg: #e4efed;
  --grid-line: #d5e4e2;
  --overlay: rgb(13 44 41 / .45);
}

[data-theme="dispatch"] {
  color-scheme: dark;
  --bg: #111316;
  --bg-deep: #0a0c0e;
  --surface: #181b1f;
  --surface-raised: #20242a;
  --surface-soft: #292e35;
  --surface-hover: #333941;
  --text: #f1f2ee;
  --text-soft: #dcded8;
  --muted: #a6a89f;
  --muted-2: #858881;
  --border: #383e46;
  --border-soft: #30353d;
  --accent: #e2c36a;
  --accent-strong: #b99a43;
  --accent-text: #1a1608;
  --warm: #e2c36a;
  --danger: #e06d62;
  --focus: #ffe69a;
  --off-bg: #292e35;
  --grid-line: #2f353d;
  --overlay: rgb(0 0 0 / .72);
}

[data-theme="sunrise"] {
  color-scheme: light;
  --bg: #fff8ef;
  --bg-deep: #f8ecde;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f4e9dc;
  --surface-hover: #ecddcd;
  --text: #352820;
  --text-soft: #4c3a2f;
  --muted: #78685d;
  --muted-2: #97877c;
  --border: #e2d4c5;
  --border-soft: #eee2d5;
  --accent: #c45c3c;
  --accent-strong: #a9462b;
  --accent-text: #ffffff;
  --warm: #d69a43;
  --danger: #c94e49;
  --focus: #914129;
  --off-bg: #f4e9dc;
  --grid-line: #eadfd2;
  --overlay: rgb(61 32 20 / .40);
}

[data-theme="midnight-oled"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-deep: #000000;
  --surface: #080808;
  --surface-raised: #101010;
  --surface-soft: #171717;
  --surface-hover: #202020;
  --text: #fafafa;
  --text-soft: #e8e8e8;
  --muted: #a5a5a5;
  --muted-2: #808080;
  --border: #2a2a2a;
  --border-soft: #202020;
  --accent: #77e3c5;
  --accent-strong: #3fc39e;
  --accent-text: #00110c;
  --warm: #f1bb62;
  --danger: #f0796c;
  --focus: #a7f5df;
  --off-bg: #171717;
  --grid-line: #252525;
  --overlay: rgb(0 0 0 / .82);
}

[data-theme="high-contrast"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-deep: #000000;
  --surface: #000000;
  --surface-raised: #101010;
  --surface-soft: #181818;
  --surface-hover: #262626;
  --text: #ffffff;
  --text-soft: #ffffff;
  --muted: #e6e6e6;
  --muted-2: #cccccc;
  --border: #ffffff;
  --border-soft: #a0a0a0;
  --accent: #ffe600;
  --accent-strong: #ffe600;
  --accent-text: #000000;
  --warm: #ffe600;
  --danger: #ff6b6b;
  --focus: #00ffff;
  --off-bg: #181818;
  --grid-line: #ffffff;
  --overlay: rgb(0 0 0 / .88);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .55; }
.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; top: 12px; left: 12px; z-index: 9999; transform: translateY(-150%); background: var(--accent); color: var(--accent-text); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.i-calendar { --icon: url('../assets/icons/calendar.svg'); }
.i-rotation { --icon: url('../assets/icons/rotation.svg'); }
.i-sync { --icon: url('../assets/icons/sync.svg'); }
.i-holiday { --icon: url('../assets/icons/holiday.svg'); }
.i-overtime { --icon: url('../assets/icons/overtime.svg'); }
.i-swap { --icon: url('../assets/icons/swap.svg'); }
.i-family { --icon: url('../assets/icons/family.svg'); }
.i-pay { --icon: url('../assets/icons/pay.svg'); }
.i-night { --icon: url('../assets/icons/night.svg'); }
.i-on-call { --icon: url('../assets/icons/on-call.svg'); }
.i-training { --icon: url('../assets/icons/training.svg'); }
.i-court { --icon: url('../assets/icons/court.svg'); }
.i-leave { --icon: url('../assets/icons/leave.svg'); }
.i-team { --icon: url('../assets/icons/team.svg'); }
.i-themes { --icon: url('../assets/icons/themes.svg'); }
.i-settings { --icon: url('../assets/icons/settings.svg'); }
.i-search { --icon: url('../assets/icons/search.svg'); }
.i-plus { --icon: url('../assets/icons/plus.svg'); }
.i-grid { --icon: url('../assets/icons/grid.svg'); }
.i-agenda { --icon: url('../assets/icons/agenda.svg'); }
.i-week { --icon: url('../assets/icons/week.svg'); }
.i-bell { --icon: url('../assets/icons/bell.svg'); }
.i-share { --icon: url('../assets/icons/share.svg'); }
.i-lock { --icon: url('../assets/icons/lock.svg'); }
.i-left { --icon: url('../assets/icons/chevron-left.svg'); }
.i-right { --icon: url('../assets/icons/chevron-right.svg'); }
.i-home { --icon: url('../assets/icons/home.svg'); }
.i-list-check { --icon: url('../assets/icons/list-check.svg'); }
.i-cloud { --icon: url('../assets/icons/cloud.svg'); }
.i-clock { --icon: url('../assets/icons/clock.svg'); }
.i-command { --icon: url('../assets/icons/command.svg'); }
.i-menu { --icon: url('../assets/icons/menu.svg'); }
.i-close { --icon: url('../assets/icons/close.svg'); }
.i-check { --icon: url('../assets/icons/check.svg'); }
.i-eye { --icon: url('../assets/icons/eye.svg'); }
.i-printer { --icon: url('../assets/icons/printer.svg'); }
.i-download { --icon: url('../assets/icons/download.svg'); }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.display { font-family: var(--font-display); font-weight: 690; letter-spacing: -.04em; line-height: 1.02; }
.muted { color: var(--muted); }
.kicker { margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 760; }
.section-title { margin: 0; max-width: 760px; font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -.045em; line-height: 1.04; font-weight: 690; }
.section-copy { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

.button {
  appearance: none;
  border: 1px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  line-height: 1;
  font-weight: 720;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.button:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, white); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 22%, transparent); }
.button:active { transform: translateY(0); }
.button.secondary { background: var(--surface-raised); border-color: var(--border); color: var(--text); box-shadow: none; }
.button.secondary:hover { background: var(--surface-hover); }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.button.ghost:hover { background: var(--surface-soft); color: var(--text); }
.button.small { min-height: 36px; padding: 8px 12px; font-size: 13px; }
.button.icon-only { width: 42px; padding: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 720; letter-spacing: -.03em; }
.brand img { width: 32px; height: 32px; }
.brand-name { font-size: 19px; }

/* Landing site */
.landing { overflow-x: hidden; }
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 72px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 83%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; font-weight: 620; }
.site-nav a:hover { color: var(--text); background: var(--surface-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button.mobile-menu { display: none; }

.hero { position: relative; padding: 92px 0 110px; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -100px 0 0;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 16%, transparent) 0, transparent 31%),
    radial-gradient(circle at 22% 92%, color-mix(in srgb, var(--warm) 10%, transparent) 0, transparent 30%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .22;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr); align-items: center; gap: clamp(48px, 7vw, 100px); }
.hero h1 { margin: 0; max-width: 700px; font-size: clamp(56px, 6.8vw, 88px); }
.hero-copy { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 30px; color: var(--muted); font-size: 13px; font-weight: 570; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .icon { color: var(--accent); }

.hero-schedule {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 96%, var(--accent) 4%), var(--surface));
  box-shadow: var(--shadow-2);
}
.hero-schedule::before { content: ""; position: absolute; z-index: -1; width: 66%; height: 56%; right: -8%; top: 12%; background: color-mix(in srgb, var(--accent) 24%, transparent); filter: blur(76px); opacity: .45; }
.demo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.demo-top h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.demo-top p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.live-state { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--accent) 12%, var(--surface-soft)); color: var(--text-soft); font-size: 12px; font-weight: 660; white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.current-shift { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.shift-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--event-night) 18%, transparent); color: var(--event-night); }
.current-shift strong { display: block; font-size: 15px; }
.current-shift small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.countdown { font-family: var(--font-mono); font-size: 13px; color: var(--text-soft); text-align: right; }
.mini-week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; margin-top: 16px; }
.mini-day { min-height: 118px; padding: 10px 8px 8px; border: 1px solid var(--border-soft); border-radius: 11px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.mini-day .dow { color: var(--muted-2); font-size: 10px; letter-spacing: .08em; font-weight: 760; }
.mini-day .date { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; }
.mini-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mini-event { position: relative; display: block; margin-top: 14px; min-height: 45px; padding: 8px 7px 7px 10px; border-radius: 7px; background: var(--off-bg); color: var(--muted); font-size: 10px; line-height: 1.25; font-weight: 670; overflow: hidden; }
.mini-event::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--event-color, var(--border)); }
.mini-event.night { --event-color: var(--event-night); background: color-mix(in srgb, var(--event-night) 14%, var(--surface)); color: color-mix(in srgb, var(--event-night) 28%, var(--text)); }
.mini-event.day { --event-color: var(--event-day); background: color-mix(in srgb, var(--event-day) 14%, var(--surface)); color: color-mix(in srgb, var(--event-day) 26%, var(--text)); }
.mini-event.ot { --event-color: var(--event-overtime); background: color-mix(in srgb, var(--event-overtime) 14%, var(--surface)); color: color-mix(in srgb, var(--event-overtime) 24%, var(--text)); }
.demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.sync-stack { display: flex; align-items: center; }
.sync-bubble { width: 28px; height: 28px; display: grid; place-items: center; margin-left: -5px; border: 2px solid var(--surface-raised); border-radius: 50%; background: var(--surface-soft); color: var(--text-soft); font-size: 10px; font-weight: 760; }
.sync-bubble:first-child { margin-left: 0; }

.landing-section { padding: 118px 0; border-top: 1px solid var(--border-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 58px; }
.section-head .section-copy { max-width: 500px; margin: 0; }

.pattern-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.pattern-copy h2 { font-size: clamp(38px, 4.8vw, 60px); }
.pattern-copy p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--accent); font-weight: 700; }
.text-link:hover { gap: 12px; }
.rotation-builder { padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); }
.builder-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.builder-head strong { font-size: 16px; }
.builder-head small { color: var(--muted); }
.pattern-name { margin-top: 20px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.pattern-name b { color: var(--text); }
.schedule-rail { position: relative; display: grid; grid-template-columns: repeat(14, minmax(34px,1fr)); gap: 7px; margin-top: 25px; padding: 18px 0; }
.schedule-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--border); }
.rail-block { position: relative; z-index: 1; height: 50px; display: grid; place-items: center; border: 3px solid var(--surface); border-radius: 10px; background: var(--off-bg); color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.rail-block.work { background: var(--event-night); color: #fff; }
.rail-block.exception { background: var(--event-overtime); color: #fff; transform: translateY(-8px); }
.builder-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.legend-key { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--off-bg); }
.legend-dot.work { background: var(--event-night); }
.legend-dot.exception { background: var(--event-overtime); }

.sync-section { position: relative; overflow: hidden; background: var(--surface); }
.sync-layout { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.provider-board { border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--surface-raised); box-shadow: var(--shadow-1); }
.provider-board-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.provider-board-head strong { font-size: 15px; }
.provider-board-head span { color: var(--muted); font-size: 12px; }
.provider-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.provider-row:last-child { border-bottom: 0; }
.provider-badge { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); font-weight: 760; }
.provider-row strong { display: block; font-size: 14px; }
.provider-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 640; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status.readonly::before { background: var(--warm); }
.sync-copy h2 { font-size: clamp(38px, 4.8vw, 60px); }
.sync-copy p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.honesty-note { display: flex; gap: 12px; margin-top: 24px; padding: 16px; border-left: 3px solid var(--warm); background: color-mix(in srgb, var(--warm) 8%, transparent); color: var(--text-soft); font-size: 13px; line-height: 1.55; }
.honesty-note .icon { margin-top: 2px; color: var(--warm); }

.themes-intro { max-width: 760px; }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 52px; }
.theme-card { position: relative; min-height: 178px; overflow: hidden; border: 1px solid var(--theme-border); border-radius: 18px; background: var(--theme-bg); color: var(--theme-text); cursor: pointer; text-align: left; padding: 18px; transition: transform var(--standard) var(--ease), box-shadow var(--standard) var(--ease); }
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.theme-card.active::after { content: "✓"; position: absolute; right: 16px; top: 15px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--theme-accent); color: var(--theme-accent-text); font-weight: 800; }
.theme-swatches { display: flex; gap: 7px; }
.theme-swatches i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid color-mix(in srgb, var(--theme-text) 18%, transparent); }
.theme-card strong { display: block; margin-top: 52px; font-size: 15px; }
.theme-card span { display: block; margin-top: 3px; color: color-mix(in srgb, var(--theme-text) 67%, transparent); font-size: 12px; }

.feature-flow { display: grid; gap: 100px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-copy h3 { margin: 0; font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.08; }
.feature-copy p { color: var(--muted); font-size: 17px; line-height: 1.68; }
.feature-list { display: grid; gap: 12px; margin-top: 24px; }
.feature-list span { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: 14px; }
.feature-list .icon { margin-top: 2px; color: var(--accent); }
.feature-visual { min-height: 360px; display: grid; align-content: center; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.holiday-visual { padding: 24px; }
.holiday-month { display: grid; gap: 10px; }
.holiday-item { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface-raised); }
.holiday-date { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--event-holiday) 14%, transparent); color: var(--event-holiday); font-family: var(--font-mono); font-weight: 760; }
.holiday-item strong { display: block; font-size: 14px; }
.holiday-item small { display: block; color: var(--muted); font-size: 12px; }
.holiday-type { padding: 6px 9px; border-radius: var(--radius-pill); background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 700; }
.family-visual { position: relative; padding: 24px; }
.family-legend { display: flex; gap: 16px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.family-legend span { display: inline-flex; align-items: center; gap: 7px; }
.family-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.family-dot.partner { background: var(--event-court); }
.family-grid { display: grid; grid-template-columns: 74px repeat(7, minmax(0,1fr)); gap: 5px; align-items: center; }
.family-grid .label { color: var(--muted); font-size: 12px; font-weight: 700; }
.family-cell { min-height: 36px; border-radius: 8px; background: var(--off-bg); }
.family-cell.me { background: color-mix(in srgb, var(--accent) 50%, var(--surface)); }
.family-cell.partner { background: color-mix(in srgb, var(--event-court) 48%, var(--surface)); }
.family-cell.overlap { background: linear-gradient(135deg, var(--accent) 0 48%, var(--event-court) 52% 100%); }
.free-window { margin-top: 18px; padding: 13px 15px; display: flex; justify-content: space-between; gap: 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--surface-soft)); }
.free-window strong { font-size: 13px; }
.free-window span { color: var(--muted); font-size: 12px; }
.pay-visual { padding: 24px; }
.pay-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pay-total strong { display: block; font-family: var(--font-display); font-size: 38px; letter-spacing: -.04em; }
.pay-total small { color: var(--muted); }
.pay-bars { display: grid; gap: 16px; margin-top: 22px; }
.pay-row { display: grid; grid-template-columns: 84px 1fr 48px; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
.pay-bar { height: 10px; border-radius: var(--radius-pill); background: var(--surface-soft); overflow: hidden; }
.pay-bar i { display: block; height: 100%; border-radius: inherit; background: var(--bar-color, var(--accent)); }
.swap-visual { padding: 24px; }
.swap-card { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); }
.swap-people { display: flex; align-items: center; gap: 11px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-soft); color: var(--text-soft); font-weight: 760; }
.swap-arrow { margin-left: auto; color: var(--accent); }
.swap-detail { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.shift-date b { display: block; font-size: 13px; }
.shift-date span { color: var(--muted); font-size: 11px; }
.swap-approval { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 12px; }

.security-band { background: var(--surface); }
.security-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.security-layout h2 { font-size: clamp(38px, 4.6vw, 58px); }
.security-layout p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.boundary-list { display: grid; gap: 10px; }
.boundary-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-soft); font-size: 14px; }
.boundary-item .icon { color: var(--accent); }

.final-cta { padding: 130px 0; text-align: center; }
.final-cta .section-title { margin-inline: auto; max-width: 850px; }
.final-cta .section-copy { margin-inline: auto; }
.final-cta .hero-actions { justify-content: center; }
.site-footer { padding: 34px 0 46px; border-top: 1px solid var(--border); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.footer-note { margin-top: 28px; color: var(--muted-2); font-size: 11px; line-height: 1.6; }

/* App shell */
.app-page { overflow: hidden; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); background: var(--bg); }
.app-sidebar { position: relative; z-index: 30; height: 100vh; padding: 19px 14px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--surface); }
.sidebar-brand { height: 44px; display: flex; align-items: center; padding: 0 8px; }
.sidebar-nav { display: grid; gap: 4px; margin-top: 30px; }
.nav-item { position: relative; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border-radius: 11px; color: var(--muted); font-size: 13px; font-weight: 630; }
.nav-item:hover { background: var(--surface-soft); color: var(--text); }
.nav-item.active { background: var(--surface-soft); color: var(--text); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--accent); }
.nav-item .nav-count { margin-left: auto; min-width: 22px; height: 20px; display: grid; place-items: center; padding-inline: 6px; border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--muted); font-size: 10px; }
.sidebar-section-label { margin: 24px 12px 7px; color: var(--muted-2); font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-spacer { flex: 1; }
.profile-card { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border-soft); border-radius: 13px; background: var(--surface-raised); }
.profile-card .avatar { width: 36px; height: 36px; font-size: 12px; background: color-mix(in srgb, var(--accent) 16%, var(--surface-soft)); color: var(--accent); }
.profile-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.profile-card small { display: block; color: var(--muted); font-size: 10px; }
.profile-card button { appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer; }

.app-main { min-width: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.app-topbar { height: var(--appbar-height); flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); }
.icon-button.mobile-sidebar-toggle { display: none; }
.search-trigger { min-width: 240px; max-width: 360px; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--muted); cursor: pointer; }
.search-trigger span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.keycap { margin-left: auto; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-soft); color: var(--muted-2); font-family: var(--font-mono); font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { appearance: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-button:hover { background: var(--surface-soft); color: var(--text); }
.notification-button { position: relative; }
.notification-button::after { content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.sync-button { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text-soft); cursor: pointer; font-size: 12px; font-weight: 660; }
.sync-button .live-dot { width: 6px; height: 6px; }

.app-workspace { flex: 1; min-height: 0; overflow: auto; padding: 22px 24px 28px; }
.workspace-inner { width: min(1660px, 100%); margin-inline: auto; }
.workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.date-heading { display: flex; align-items: center; gap: 12px; }
.date-heading h1 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; line-height: 1.1; }
.date-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.month-nav { display: flex; gap: 4px; }
.month-nav .icon-button { width: 34px; height: 34px; border-color: transparent; }
.workspace-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.segmented { min-height: 38px; display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.segmented button { appearance: none; min-height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 650; }
.segmented button.active { background: var(--surface-soft); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.today-button { min-height: 38px; }

.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; scrollbar-width: none; }
.summary-strip::-webkit-scrollbar { display: none; }
.summary-cell { min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.summary-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-soft); color: var(--accent); }
.summary-cell strong { display: block; font-size: 13px; }
.summary-cell small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.summary-cell .summary-value { margin-left: auto; font-family: var(--font-mono); color: var(--text-soft); font-size: 13px; font-weight: 700; text-align: right; }

.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 296px; gap: 12px; align-items: start; }
.calendar-panel { min-width: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.calendar-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--border); }
.calendar-toolbar-left, .calendar-toolbar-right { display: flex; align-items: center; gap: 12px; }
.calendar-toolbar strong { font-size: 13px; }
.legend-inline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }
.legend-inline span { display: inline-flex; align-items: center; gap: 5px; }
.legend-inline i { width: 7px; height: 7px; border-radius: 2px; background: var(--legend); }
.toggle-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; cursor: pointer; }
.switch { position: relative; width: 34px; height: 20px; flex: 0 0 auto; border-radius: var(--radius-pill); background: var(--surface-soft); border: 1px solid var(--border); transition: background var(--fast); }
.switch::after { content: ""; position: absolute; width: 14px; height: 14px; top: 2px; left: 2px; border-radius: 50%; background: var(--muted); transition: transform var(--fast), background var(--fast); }
.toggle-label input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-label input:checked + .switch { background: color-mix(in srgb, var(--accent) 32%, var(--surface)); border-color: var(--accent); }
.toggle-label input:checked + .switch::after { transform: translateX(14px); background: var(--accent); }

.calendar-view { display: none; }
.calendar-view.active { display: block; }
.month-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border-bottom: 1px solid var(--grid-line); }
.month-weekdays div { min-height: 36px; display: flex; align-items: center; padding: 0 10px; border-right: 1px solid var(--grid-line); color: var(--muted-2); font-size: 10px; font-weight: 760; letter-spacing: .08em; }
.month-weekdays div:last-child { border-right: 0; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); grid-template-rows: repeat(6, minmax(108px, 1fr)); }
.day-cell { position: relative; min-width: 0; min-height: 108px; padding: 7px; border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); background: var(--surface); }
.day-cell:nth-child(7n) { border-right: 0; }
.day-cell:nth-last-child(-n+7) { border-bottom: 0; }
.day-cell.outside { background: color-mix(in srgb, var(--bg) 34%, var(--surface)); }
.day-cell.outside .day-number { color: var(--muted-2); }
.day-cell.today { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.day-cell.today::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px var(--accent); }
.day-head { height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.day-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--text-soft); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.today .day-number { background: var(--accent); color: var(--accent-text); }
.day-meta { color: var(--muted-2); font-size: 9px; }
.day-events { display: grid; gap: 4px; margin-top: 3px; }
.event-chip { position: relative; min-width: 0; min-height: 25px; display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--event-color) 26%, var(--border-soft)); border-radius: 7px; background: color-mix(in srgb, var(--event-color) 14%, var(--surface)); color: color-mix(in srgb, var(--event-color) 34%, var(--text)); font-size: 9px; font-weight: 680; line-height: 1.2; cursor: pointer; }
.event-chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--event-color); }
.event-chip .event-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-chip .event-time { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.event-chip.type-night { --event-color: var(--event-night); }
.event-chip.type-day { --event-color: var(--event-day); }
.event-chip.type-overtime { --event-color: var(--event-overtime); }
.event-chip.type-training { --event-color: var(--event-training); }
.event-chip.type-court { --event-color: var(--event-court); }
.event-chip.type-leave { --event-color: var(--event-leave); }
.event-chip.type-holiday { --event-color: var(--event-holiday); }
.event-chip.type-personal { --event-color: var(--event-personal); }
.event-chip.type-on-call { --event-color: var(--event-on-call); }
.event-chip.type-off { --event-color: var(--muted-2); background: var(--off-bg); color: var(--muted); }
.event-chip.holiday-event { border-style: dashed; }
body.holidays-hidden .holiday-event { display: none; }
.more-events { padding-left: 4px; color: var(--muted); font-size: 9px; }

.week-view { min-height: 684px; }
.week-header { display: grid; grid-template-columns: 64px repeat(7,minmax(0,1fr)); border-bottom: 1px solid var(--grid-line); }
.week-header > div { min-height: 52px; display: grid; place-items: center; border-right: 1px solid var(--grid-line); color: var(--muted); font-size: 10px; }
.week-header > div:last-child { border-right: 0; }
.week-header strong { display: block; color: var(--text); font-size: 13px; }
.week-timeline { position: relative; display: grid; grid-template-columns: 64px repeat(7,minmax(0,1fr)); height: 630px; overflow: hidden; }
.time-column, .week-column { position: relative; border-right: 1px solid var(--grid-line); }
.week-column:last-child { border-right: 0; }
.hour-label { position: absolute; right: 8px; transform: translateY(-8px); color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; }
.hour-line { position: absolute; left: 64px; right: 0; height: 1px; background: var(--grid-line); }
.week-block { position: absolute; left: 6px; right: 6px; padding: 8px; border-left: 3px solid var(--event-color); border-radius: 8px; background: color-mix(in srgb, var(--event-color) 16%, var(--surface)); color: var(--text-soft); font-size: 10px; font-weight: 680; overflow: hidden; }
.week-block small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.week-block.type-night { --event-color: var(--event-night); }
.week-block.type-day { --event-color: var(--event-day); }
.week-block.type-overtime { --event-color: var(--event-overtime); }
.week-block.type-training { --event-color: var(--event-training); }
.week-block.type-court { --event-color: var(--event-court); }
.week-block.type-personal { --event-color: var(--event-personal); }
.current-time-line { position: absolute; z-index: 3; left: 64px; right: 0; height: 2px; background: var(--danger); }
.current-time-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

.agenda-view { min-height: 684px; padding: 8px 18px 24px; }
.agenda-date { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.agenda-date:last-child { border-bottom: 0; }
.agenda-date-label { color: var(--muted); font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.agenda-date-label strong { display: block; margin-top: 3px; color: var(--text); font-family: var(--font-display); font-size: 25px; letter-spacing: -.03em; }
.agenda-events { display: grid; gap: 8px; }
.agenda-event { display: grid; grid-template-columns: 5px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 14px 13px 0; border-radius: 12px; background: var(--surface-raised); }
.agenda-event::before { content: ""; width: 5px; align-self: stretch; border-radius: 0 4px 4px 0; background: var(--event-color); }
.agenda-event.type-night { --event-color: var(--event-night); }
.agenda-event.type-day { --event-color: var(--event-day); }
.agenda-event.type-overtime { --event-color: var(--event-overtime); }
.agenda-event.type-training { --event-color: var(--event-training); }
.agenda-event.type-court { --event-color: var(--event-court); }
.agenda-event.type-personal { --event-color: var(--event-personal); }
.agenda-event.type-holiday { --event-color: var(--event-holiday); }
.agenda-event.type-off { --event-color: var(--muted-2); }
.agenda-event strong { display: block; font-size: 12px; }
.agenda-event small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.agenda-time { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }

.side-rail { display: grid; gap: 12px; }
.rail-panel { border: 1px solid var(--border); border-radius: 15px; background: var(--surface); overflow: hidden; }
.rail-panel-head { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--border-soft); }
.rail-panel-head h2 { margin: 0; font-size: 12px; font-weight: 700; }
.rail-panel-head button { appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 650; }
.now-card { padding: 14px; }
.now-status { display: flex; align-items: center; gap: 10px; }
.now-status .shift-symbol { width: 38px; height: 38px; }
.now-status strong { display: block; font-size: 12px; }
.now-status small { color: var(--muted); font-size: 10px; }
.now-countdown { margin-top: 14px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.countdown-cell { padding: 9px 5px; border-radius: 9px; background: var(--surface-soft); text-align: center; }
.countdown-cell b { display: block; font-family: var(--font-mono); font-size: 14px; }
.countdown-cell span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.next-list { display: grid; }
.next-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); }
.next-item:last-child { border-bottom: 0; }
.next-date { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-soft); color: var(--text-soft); font-family: var(--font-mono); font-size: 10px; font-weight: 760; }
.next-item strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-item small { display: block; color: var(--muted); font-size: 9px; }
.next-item .event-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--event-color); }
.pay-mini { padding: 14px; }
.pay-mini-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pay-mini-total strong { font-family: var(--font-display); font-size: 25px; letter-spacing: -.04em; }
.pay-mini-total span { color: var(--muted); font-size: 9px; }
.mini-progress { height: 7px; margin-top: 12px; overflow: hidden; border-radius: var(--radius-pill); background: var(--surface-soft); }
.mini-progress i { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--accent); }
.pay-breakdown { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.pay-breakdown div { text-align: center; }
.pay-breakdown b { display: block; font-family: var(--font-mono); font-size: 11px; }
.pay-breakdown span { color: var(--muted); font-size: 8px; }
.provider-mini-list { padding: 6px 14px 10px; }
.provider-mini { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 42px; }
.provider-mini .provider-badge { width: 28px; height: 28px; border-radius: 8px; font-size: 9px; }
.provider-mini strong { font-size: 10px; }
.provider-mini small { display: block; color: var(--muted); font-size: 8px; }
.provider-mini .status { font-size: 0; }
.provider-mini .status::before { width: 7px; height: 7px; }

.mobile-bottom-nav { display: none; }

/* Popovers, drawers, modal */
.popover { position: fixed; z-index: 120; width: min(380px, calc(100vw - 24px)); padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-raised); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--fast), transform var(--fast), visibility var(--fast); }
.popover.open { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-popover { top: 64px; right: 74px; }
.popover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.popover-head strong { font-size: 13px; }
.popover-head button { appearance: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.popover-head button:hover { background: var(--surface-soft); color: var(--text); }
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-option { appearance: none; min-height: 76px; padding: 10px; border: 1px solid var(--theme-border); border-radius: 12px; background: var(--theme-bg); color: var(--theme-text); cursor: pointer; text-align: left; }
.theme-option.active { box-shadow: inset 0 0 0 2px var(--theme-accent); }
.theme-option .theme-swatches i { width: 16px; height: 16px; border-radius: 5px; }
.theme-option strong { display: block; margin-top: 10px; font-size: 11px; }

.drawer-backdrop, .modal-backdrop { position: fixed; z-index: 150; inset: 0; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity var(--standard), visibility var(--standard); }
.drawer-backdrop.open, .modal-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: absolute; top: 0; right: 0; width: min(430px, 100vw); height: 100%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform var(--standard) var(--ease); }
.drawer-backdrop.open .drawer { transform: translateX(0); }
.drawer-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 0; font-size: 17px; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 20px; }
.drawer-copy { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.integration-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.integration-card .provider-badge { width: 40px; height: 40px; }
.integration-card strong { display: block; font-size: 13px; }
.integration-card small { display: block; color: var(--muted); font-size: 10px; }
.integration-actions { text-align: right; }
.integration-actions .status { display: flex; justify-content: flex-end; font-size: 10px; }
.integration-actions button { margin-top: 5px; appearance: none; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 10px; font-weight: 700; }
.feed-box { margin-top: 20px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface-raised); }
.feed-box label { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.feed-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 8px; }
.feed-row input { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.feed-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.modal { position: absolute; left: 50%; top: 50%; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 28px); overflow: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-2); transform: translate(-50%, -48%) scale(.98); transition: transform var(--standard) var(--ease); }
.modal-backdrop.open .modal { transform: translate(-50%, -50%) scale(1); }
.modal-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label, .field legend { color: var(--text-soft); font-size: 11px; font-weight: 680; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); color: var(--text); }
.field textarea { min-height: 80px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.type-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; }
.type-option label { min-height: 54px; display: grid; place-items: center; gap: 3px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); color: var(--muted); cursor: pointer; font-size: 9px; text-align: center; }
.type-option label::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--type-color); }
.type-option input:checked + label { border-color: var(--type-color); color: var(--text); box-shadow: inset 0 0 0 1px var(--type-color); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 20px; }

.feature-modal .modal { width: min(880px, calc(100vw - 24px)); }
.feature-body { display: grid; gap: 18px; }
.feature-intro { margin: 0; max-width: 68ch; color: var(--muted); font-size: 13px; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.feature-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.feature-card { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); }
.feature-card h3 { margin: 0 0 6px; font-size: 14px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.feature-card .metric { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 24px; color: var(--text); }
.feature-form { display: grid; gap: 14px; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feature-list { display: grid; gap: 8px; }
.feature-row-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 54px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface-raised); }
.feature-row-item strong, .feature-row-item small { display: block; }
.feature-row-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.feature-row-item .button { min-height: 34px; }
.pattern-editor { display: grid; grid-template-columns: repeat(14,minmax(34px,1fr)); gap: 5px; overflow-x: auto; padding-bottom: 4px; }
.pattern-editor label { display: grid; gap: 5px; color: var(--muted); font: 9px var(--font-mono); text-align: center; }
.pattern-editor select { min-width: 46px; height: 42px; padding: 0 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: 9px var(--font-mono); }
.notice { padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--accent) 8%, var(--surface-raised)); color: var(--text-soft); font-size: 11px; line-height: 1.55; }
.danger-zone { border-color: color-mix(in srgb, var(--event-overtime) 55%, var(--border)); }
.button.danger { background: var(--event-overtime); color: #fff; }
.inline-check { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 11px; }
.inline-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.command-modal .modal { top: 18%; transform: translate(-50%, 0) scale(.98); }
.command-modal.open .modal { transform: translate(-50%, 0) scale(1); }
.command-input { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.command-input input { min-width: 0; flex: 1; height: 40px; border: 0; outline: 0; background: transparent; color: var(--text); }
.command-results { padding: 8px; }
.command-result { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: var(--text-soft); cursor: pointer; text-align: left; font-size: 12px; }
.command-result:hover { background: var(--surface-soft); }
.command-result small { margin-left: auto; color: var(--muted); }

.toast-region { position: fixed; z-index: 300; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-raised); box-shadow: var(--shadow-2); animation: toast-in var(--standard) var(--ease); }
.toast-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.toast strong { display: block; font-size: 11px; }
.toast small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.toast button { appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* Theme card tokens */
.theme-night { --theme-bg:#0a1018; --theme-text:#f5f7fa; --theme-border:#29384c; --theme-accent:#53c6b8; --theme-accent-text:#071512; }
.theme-station { --theme-bg:#fff; --theme-text:#202327; --theme-border:#d7d1c8; --theme-accent:#b8443e; --theme-accent-text:#fff; }
.theme-ems { --theme-bg:#061b1d; --theme-text:#f2fbfa; --theme-border:#285257; --theme-accent:#58d6be; --theme-accent-text:#041714; }
.theme-scrubs { --theme-bg:#f3f8f7; --theme-text:#18312f; --theme-border:#c9dcda; --theme-accent:#2e7d76; --theme-accent-text:#fff; }
.theme-dispatch { --theme-bg:#111316; --theme-text:#f1f2ee; --theme-border:#383e46; --theme-accent:#e2c36a; --theme-accent-text:#1a1608; }
.theme-sunrise { --theme-bg:#fff8ef; --theme-text:#352820; --theme-border:#e2d4c5; --theme-accent:#c45c3c; --theme-accent-text:#fff; }
.theme-oled { --theme-bg:#000; --theme-text:#fafafa; --theme-border:#2a2a2a; --theme-accent:#77e3c5; --theme-accent-text:#00110c; }
.theme-contrast { --theme-bg:#000; --theme-text:#fff; --theme-border:#fff; --theme-accent:#ffe600; --theme-accent-text:#000; }

/* Responsive */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy-block { max-width: 800px; }
  .hero-schedule { max-width: 850px; }
  .theme-grid { grid-template-columns: repeat(2,1fr); }
  .calendar-layout { grid-template-columns: minmax(0,1fr) 260px; }
  .summary-strip { grid-template-columns: repeat(2,1fr); }
  .calendar-toolbar-right .legend-inline { display: none; }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .icon-button.mobile-menu { display: grid; }
  .header-actions .button.secondary { display: none; }
  .pattern-layout, .sync-layout, .feature-row, .security-layout { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-copy { order: 0; }
  .section-head { align-items: start; flex-direction: column; }
  .section-head .section-copy { margin-top: 0; }
  .feature-flow { gap: 72px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; left: 0; top: 0; width: min(280px, 88vw); transform: translateX(-100%); transition: transform var(--standard) var(--ease); box-shadow: var(--shadow-2); }
  .app-sidebar.open { transform: translateX(0); }
  .app-page.sidebar-open::after { content: ""; position: fixed; z-index: 20; inset: 0; background: var(--overlay); }
  .icon-button.mobile-sidebar-toggle { display: grid; }
  .calendar-layout { grid-template-columns: 1fr; }
  .side-rail { grid-template-columns: repeat(2,1fr); }
  .side-rail .rail-panel:last-child { grid-column: 1/-1; }
  .app-workspace { padding-bottom: 88px; }
  .mobile-bottom-nav { position: fixed; z-index: 80; left: 50%; bottom: 10px; width: min(520px, calc(100vw - 20px)); min-height: 60px; display: grid; grid-template-columns: repeat(5,1fr); padding: 5px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow-2); backdrop-filter: blur(18px); transform: translateX(-50%); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { appearance: none; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
  .mobile-bottom-nav .active { background: var(--surface-soft); color: var(--text); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { height: 64px; }
  .brand-name { font-size: 17px; }
  .hero { padding: 66px 0 82px; }
  .hero h1 { font-size: clamp(48px, 14vw, 67px); }
  .hero-copy { font-size: 17px; }
  .hero-actions .button { flex: 1 1 180px; }
  .hero-schedule { padding: 14px; border-radius: 20px; }
  .mini-week { grid-template-columns: repeat(4,1fr); }
  .mini-day:nth-child(n+5) { display: none; }
  .current-shift { grid-template-columns: auto 1fr; }
  .countdown { grid-column: 2; text-align: left; }
  .landing-section { padding: 82px 0; }
  .section-title { font-size: 38px; }
  .section-copy { font-size: 16px; }
  .schedule-rail { grid-template-columns: repeat(7,1fr); }
  .rail-block:nth-child(n+8) { display: none; }
  .theme-grid { grid-template-columns: 1fr; }
  .theme-card { min-height: 145px; }
  .feature-visual { min-height: 300px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .app-topbar { height: 62px; padding: 0 12px; }
  .search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .search-trigger span:nth-child(2), .search-trigger .keycap { display: none; }
  .sync-button span:not(.live-dot), .topbar-actions > .button .button-label { display: none; }
  .sync-button { width: 40px; justify-content: center; padding: 0; }
  .app-workspace { padding: 14px 10px 88px; }
  .workspace-head { align-items: stretch; flex-direction: column; }
  .workspace-actions { justify-content: space-between; }
  .workspace-actions .button.small { flex: 1; }
  .segmented { order: 2; width: 100%; }
  .segmented button { flex: 1; justify-content: center; }
  .summary-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; }
  .summary-cell { min-width: 220px; scroll-snap-align: start; }
  .calendar-panel { border-radius: 13px; }
  .calendar-toolbar { min-height: 50px; padding-inline: 10px; }
  .calendar-toolbar-right { display: none; }
  .month-weekdays div { min-height: 31px; justify-content: center; padding: 0; font-size: 9px; }
  .month-grid { grid-template-rows: repeat(6, 82px); }
  .day-cell { min-height: 82px; padding: 4px; }
  .day-head { height: 20px; }
  .day-number { width: 20px; height: 20px; font-size: 9px; }
  .day-meta, .event-time { display: none !important; }
  .event-chip { min-height: 20px; padding: 3px 4px 3px 6px; border-radius: 5px; font-size: 7px; }
  .event-chip:nth-child(n+3) { display: none; }
  .more-events { font-size: 7px; }
  .side-rail { grid-template-columns: 1fr; }
  .side-rail .rail-panel:last-child { grid-column: auto; }
  .week-view, .agenda-view { min-height: 560px; }
  .week-header { grid-template-columns: 40px repeat(7,minmax(42px,1fr)); min-width: 560px; }
  .week-timeline { grid-template-columns: 40px repeat(7,minmax(42px,1fr)); min-width: 560px; }
  .week-view { overflow-x: auto; }
  .hour-line, .current-time-line { left: 40px; }
  .agenda-view { padding-inline: 10px; }
  .agenda-date { grid-template-columns: 54px minmax(0,1fr); gap: 10px; }
  .agenda-event { grid-template-columns: 4px minmax(0,1fr); }
  .agenda-time { grid-column: 2; }
  .theme-popover { right: 8px; top: 56px; }
  .theme-options { grid-template-columns: 1fr; max-height: 66vh; overflow: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .type-options { grid-template-columns: repeat(2,1fr); }
  .feature-grid, .feature-grid.three { grid-template-columns: 1fr; }
  .feature-modal .modal { top: 8px; max-height: calc(100vh - 16px); transform: translate(-50%, 0) scale(.98); }
  .feature-modal.open .modal { transform: translate(-50%, 0) scale(1); }
  .pattern-editor { grid-template-columns: repeat(14,48px); }
  .command-modal .modal { top: 8px; }
}

@media (max-width: 430px) {
  .header-actions .button .button-label { display: none; }
  .header-actions .button { width: 42px; padding: 0; }
  .demo-top { align-items: flex-start; }
  .live-state { font-size: 0; padding: 9px; }
  .demo-footer { align-items: flex-start; flex-direction: column; }
  .holiday-item { grid-template-columns: 46px minmax(0,1fr); }
  .holiday-type { grid-column: 2; justify-self: start; }
  .family-grid { grid-template-columns: 50px repeat(7, minmax(26px,1fr)); }
  .app-topbar .notification-button { display: none; }
  .date-heading h1 { font-size: 28px; }
  .date-heading p { max-width: 220px; }
}

@media print {
  .site-header, .app-sidebar, .app-topbar, .workspace-actions, .summary-strip, .side-rail, .calendar-toolbar, .mobile-bottom-nav { display: none !important; }
  body, .app-main, .app-workspace { overflow: visible !important; height: auto !important; background: white !important; color: black !important; }
  .app-shell { display: block; }
  .calendar-panel { border: 1px solid #999; }
  .month-grid { grid-template-rows: repeat(6, 1.35in); }
  .day-cell, .month-weekdays div { border-color: #bbb; background: white !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Native-button normalization for app-specific controls */
.sidebar-nav button.nav-item { appearance: none; width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.sidebar-nav button.nav-item:hover { background: var(--surface-soft); }
.agenda-event { appearance: none; width: 100%; border: 0; color: inherit; text-align: left; cursor: pointer; }
.week-block { appearance: none; border-top: 0; border-right: 0; border-bottom: 0; color: inherit; cursor: pointer; text-align: left; }

@media (max-width: 960px) {
  .site-nav.open {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 70px;
    display: grid;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-2);
  }
  .site-nav.open a { min-height: 46px; }
}
