/* Zoneline — Dreamer Studio */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

:root {
  --paper: #f5f2ec;
  --paper-deep: #ede8df;
  --surface: #fcfbf8;
  --ink: #1d1c1a;
  --ink-2: #4b4842;
  --ink-3: #86827a;
  --ink-4: #b5b0a7;
  --line: rgba(29, 28, 26, 0.08);
  --line-2: rgba(29, 28, 26, 0.13);
  --fill: rgba(29, 28, 26, 0.05);
  --fill-2: rgba(29, 28, 26, 0.08);
  --accent: #35604e;
  --accent-ink: #284a3c;
  --accent-soft: rgba(53, 96, 78, 0.11);
  --accent-line: rgba(53, 96, 78, 0.45);
  --ring: 0 0 0 4px rgba(53, 96, 78, 0.2);
  --warm: #b8743f;
  --night: #55607a;

  --t-night: #dde2ec;
  --t-dawn: #e9e1e0;
  --t-morning: #f5e7d6;
  --t-day: #f8f4eb;
  --t-golden: #f3e4cc;
  --t-dusk: #ebdad6;
  --t-late: #e2e1ea;

  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 16px;
  --r-s: 11px;
  --shadow-1: 0 1px 2px rgba(29, 28, 26, 0.05), 0 2px 8px rgba(29, 28, 26, 0.04);
  --shadow-2: 0 1px 1px rgba(29, 28, 26, 0.03), 0 10px 30px -10px rgba(29, 28, 26, 0.12), 0 30px 70px -30px rgba(29, 28, 26, 0.16);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);

  --font-ui: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --info-col: 304px;
  --gutter: 28px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss03";
  font-optical-sizing: auto;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 50% -120px, #fbf7f0 0%, rgba(251, 247, 240, 0) 70%),
    linear-gradient(180deg, #f6f3ed 0%, var(--paper) 40%, #f2eee7 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); }
::selection { background: rgba(53, 96, 78, 0.18); }

.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 {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
.display em, .display-2 em { font-style: italic; color: var(--accent); }
.display-2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.lede {
  margin: 26px auto 0;
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- buttons & controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-size: 15.5px; font-weight: 560; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-ink {
  background: var(--ink); color: #fbfaf7;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 1px 2px rgba(29, 28, 26, 0.2), 0 6px 16px -6px rgba(29, 28, 26, 0.35);
}
.btn-ink:hover { background: #000; transform: translateY(-1px); }
.btn-ink.is-done { background: var(--accent); }
.btn-soft { background: rgba(29, 28, 26, 0.065); color: var(--ink); }
.btn-soft:hover { background: rgba(29, 28, 26, 0.1); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn:active { transform: translateY(0) scale(0.98); }

.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 13px;
  border: 0; border-radius: 999px;
  background: var(--fill); color: var(--ink-2);
  font-size: 13.5px; font-weight: 520; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover { background: var(--fill-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.chip-quiet { background: transparent; color: var(--ink-3); }
.chip-quiet:hover { background: var(--fill); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--fill); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn-sm { width: 30px; height: 30px; }
.icon-btn-sm svg { width: 15px; height: 15px; }

.link-btn {
  padding: 0; border: 0; background: none; color: var(--accent-ink);
  font-weight: 560; text-decoration: underline; text-decoration-color: rgba(53, 96, 78, 0.35); text-underline-offset: 3px;
}
.link-btn:hover { text-decoration-color: currentColor; }

.segmented {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill);
}
.segmented button {
  height: 30px; min-width: 46px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 560;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.segmented button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(29, 28, 26, 0.1), 0 0 0 0.5px rgba(29, 28, 26, 0.08); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 242, 236, 0.72);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; }
.mark-bg { fill: var(--ink); }
.mark-track { fill: #6c6862; }
.mark-thumb { fill: #fbfaf7; }
.brand-word { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(36px, 5vw, 56px); text-align: center; }
.hero-inner { max-width: 940px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ---------- planner ---------- */

.planner-section { position: relative; padding-bottom: clamp(72px, 9vw, 120px); outline: none; }
.planner-section::before {
  content: ""; position: absolute; inset: -40px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 260px at 18% 30%, rgba(240, 205, 168, 0.45), transparent 70%),
    radial-gradient(460px 300px at 84% 40%, rgba(186, 201, 226, 0.5), transparent 70%),
    radial-gradient(360px 220px at 52% 80%, rgba(198, 219, 204, 0.4), transparent 70%);
  filter: blur(8px);
}

.glass {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.planner { border-radius: var(--r-xl); padding: 22px 30px 26px; }

.planner-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.date-group { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.date-group .chip { margin-left: 6px; }
.date-group .chip + .chip { margin-left: 2px; }
.head-actions { display: flex; align-items: center; gap: 10px; }

.date-field { position: relative; }
.date-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  transition: background-color 0.2s;
}
.date-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.date-field:hover .date-btn { background: var(--fill); }
.date-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: 0; padding: 0; margin: 0; font-size: 16px; cursor: pointer;
  -webkit-appearance: none; appearance: none; color-scheme: light;
}
.date-input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.anchor-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); }
.dst-notes:empty { display: none; }
.dst-notes { display: grid; gap: 6px; margin-top: 12px; }
.dst-note {
  position: relative; margin: 0;
  padding: 10px 14px 10px 30px; border-radius: 14px;
  background: rgba(244, 228, 204, 0.55); color: #6b4a2b; font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(184, 116, 63, 0.16);
}
.dst-note.is-today { background: rgba(221, 226, 236, 0.75); color: #3e4861; box-shadow: inset 0 0 0 1px rgba(85, 96, 122, 0.16); }
.dst-dot { position: absolute; left: 14px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.dst-note .link-btn { white-space: nowrap; }

.grid, .row {
  display: grid;
  grid-template-columns: var(--info-col) minmax(0, 1fr);
  column-gap: var(--gutter);
}

.scrub-row { align-items: center; margin-top: 18px; padding-bottom: 6px; }
.scrub-meta { display: flex; flex-direction: column; gap: 2px; }
.scrub-kicker { font-size: 14px; font-weight: 600; }
.scrub-hint { font-size: 12.5px; color: var(--ink-3); }

.scrubber {
  position: relative; height: 70px;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  border-radius: 16px;
}
.scrubber:focus-visible { box-shadow: none; }
.scrubber:focus-visible .scrub-thumb { box-shadow: 0 0 0 0.5px rgba(29, 28, 26, 0.12), 0 2px 6px rgba(29, 28, 26, 0.12), var(--ring); }
.is-scrubbing .scrubber { cursor: grabbing; }
.scrub-track {
  position: absolute; left: 0; right: 0; top: 22px; height: 10px; border-radius: 999px;
  background: #e5e1d9;
  box-shadow: inset 0 1px 2px rgba(29, 28, 26, 0.09), 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.scrub-windows { position: absolute; inset: 0; }
.scrub-win { position: absolute; top: 0; bottom: 0; background: rgba(53, 96, 78, 0.2); transition: background-color 0.25s; }
.scrub-win.is-stretch { background: rgba(184, 116, 63, 0.26); }
.scrub-win.is-selected { background: rgba(53, 96, 78, 0.5); }
.scrub-win.is-stretch.is-selected { background: rgba(184, 116, 63, 0.55); }
.scrub-now { position: absolute; top: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #c2553d; }
.scrub-thumb {
  position: absolute; left: 0; top: 11px; height: 32px; min-width: 92px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(29, 28, 26, 0.12), 0 2px 6px rgba(29, 28, 26, 0.12), 0 10px 22px -8px rgba(29, 28, 26, 0.22);
  font-size: 13.5px; font-weight: 620; font-variant-numeric: tabular-nums; letter-spacing: -0.005em; white-space: nowrap;
  will-change: transform;
  transition: transform 0.22s var(--ease), box-shadow 0.2s;
  pointer-events: none;
}
.is-scrubbing .scrub-thumb { transition: none; box-shadow: 0 0 0 0.5px rgba(29, 28, 26, 0.14), 0 4px 10px rgba(29, 28, 26, 0.14), 0 16px 30px -10px rgba(29, 28, 26, 0.28); }
.scrub-needle { position: absolute; top: 45px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: var(--ink); pointer-events: none; }
.scrub-ticks { position: absolute; left: 0; right: 0; top: 52px; height: 16px; pointer-events: none; }
.tick {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: 11px; font-weight: 520; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.tick.at-start { transform: none; }

.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.row {
  grid-template-areas: "info band" "hours band";
  row-gap: 8px; align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.row.is-new { animation: rise 0.45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.row-info { grid-area: info; display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: hsl(var(--hue, 30) 38% 89%); color: hsl(var(--hue, 30) 30% 30%);
  font-size: 14px; font-weight: 640;
  box-shadow: inset 0 0 0 1px hsl(var(--hue, 30) 30% 50% / 0.12);
}
.row-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.name {
  width: 100%; min-width: 0; margin: 0 0 0 -7px; padding: 2px 7px; height: 28px;
  border: 0; border-radius: 9px; background: transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.name::placeholder { color: var(--ink-4); }
.name:hover { background: var(--fill); }
.name:focus { outline: none; background: #fff; box-shadow: 0 0 0 1px var(--line-2), var(--ring); }
.zone-btn {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%;
  margin: 0 0 0 -7px; padding: 2px 7px; border: 0; border-radius: 8px; background: transparent;
  font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
  transition: background-color 0.2s;
}
.zone-btn:hover { background: var(--fill); }
.zone-city { overflow: hidden; text-overflow: ellipsis; }
.zone-offset { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.zone-chev { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.row-time { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rt-clock { display: inline-flex; align-items: baseline; gap: 3px; }
.rt-main { font-size: 22px; font-weight: 520; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ink-2); transition: color 0.2s; }
.rt-period { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }
.rt-status { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.row.is-working .rt-main { color: var(--ink); }
.row.is-working .rt-status { color: var(--accent); }
.row.is-night .rt-status { color: var(--night); }

.row-hours { grid-area: hours; display: flex; align-items: center; gap: 6px; padding-left: 46px; min-width: 0; }
.hours-label { font-size: 12.5px; color: var(--ink-3); margin-right: 2px; }
.hours-dash { color: var(--ink-4); }
.select-wrap { position: relative; display: inline-flex; }
.hsel {
  -webkit-appearance: none; appearance: none;
  height: 30px; padding: 0 26px 0 11px; border: 0; border-radius: 999px;
  background: var(--fill); color: var(--ink-2);
  font-size: 13px; font-weight: 540; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.hsel:hover { background: var(--fill-2); color: var(--ink); }
.hsel:focus-visible { box-shadow: var(--ring); }
.select-chev { position: absolute; right: 8px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; pointer-events: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.anchor-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 600;
}
.anchor-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row-tools .icon-btn { color: var(--ink-3); opacity: 0.55; transition: opacity 0.2s, background-color 0.2s, color 0.2s; }
.row:hover .row-tools .icon-btn, .row-tools .icon-btn:focus-visible { opacity: 1; }
.remove-btn:hover { color: #a3412c; background: rgba(163, 65, 44, 0.08); }
@media (hover: none) { .row-tools .icon-btn { opacity: 1; } }

.band {
  grid-area: band; position: relative; height: 50px; border-radius: 14px; overflow: hidden; isolation: isolate;
  background: var(--t-day);
  box-shadow: inset 0 0 0 1px rgba(29, 28, 26, 0.05);
  touch-action: pan-y; cursor: pointer;
}
.cell { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-start; box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.55); }
.cell:last-child { box-shadow: none; }
.t-night { background: var(--t-night); }
.t-dawn { background: var(--t-dawn); }
.t-morning { background: var(--t-morning); }
.t-day { background: var(--t-day); }
.t-golden { background: var(--t-golden); }
.t-dusk { background: var(--t-dusk); }
.t-late { background: var(--t-late); }
.hl {
  position: relative; z-index: 3; padding-left: 5px;
  font-size: 10.5px; font-weight: 560; color: rgba(29, 28, 26, 0.42); font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.hl.in-work { color: rgba(29, 28, 26, 0.72); }
.work {
  position: absolute; top: 4px; bottom: 4px; z-index: 1; border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(29, 28, 26, 0.09), 0 1px 3px rgba(29, 28, 26, 0.08);
}
.win {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  background: rgba(53, 96, 78, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--accent-line);
  border-radius: 6px;
  transition: left 0.3s var(--ease), width 0.3s var(--ease);
}
.dst-mark { position: absolute; top: 0; bottom: 0; z-index: 3; width: 0; border-left: 1.5px dashed rgba(85, 96, 122, 0.7); }
.mark {
  position: absolute; top: 0; bottom: 0; z-index: 4; width: 2px; margin-left: -1px;
  background: var(--ink); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
  transition: left 0.22s var(--ease);
  pointer-events: none;
}
.is-scrubbing .mark { transition: none; }

.row.skeleton { grid-template-areas: "info band"; }
.sk {
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(29, 28, 26, 0.045) 0%, rgba(29, 28, 26, 0.085) 50%, rgba(29, 28, 26, 0.045) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.sk-info { grid-area: info; height: 56px; }
.sk-band { grid-area: band; height: 50px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.planner[data-state="loading"] .scrub-thumb { opacity: 0; }
.planner[data-state="empty"] .scrub-row,
.planner[data-state="empty"] .anchor-note { display: none; }
.planner[data-state="error"] .rows,
.planner[data-state="error"] .scrub-row { display: none; }

.empty-team { padding: 40px 0 28px; text-align: center; border-top: 1px solid var(--line); margin-top: 18px; }
.empty-title { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: 1.1; }
.empty-copy { margin: 10px auto 0; max-width: 420px; color: var(--ink-3); font-size: 15px; }
.planner-error { margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; background: rgba(163, 65, 44, 0.07); color: #7b3424; font-size: 14.5px; }

.planner-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line);
}
.add-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px 0 6px;
  border: 0; border-radius: 999px; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--accent-ink);
  transition: background-color 0.2s;
}
.add-btn:hover { background: var(--accent-soft); }
.add-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 2px 6px -2px rgba(53, 96, 78, 0.6); }
.add-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.presets-label { font-size: 12.5px; color: var(--ink-3); margin-right: 4px; }

/* ---------- windows ---------- */

.windows { margin-top: 56px; }
.windows-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.windows-sub { margin: 0; max-width: 560px; color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 26px 22px; border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(29, 28, 26, 0.03), 0 18px 40px -26px rgba(29, 28, 26, 0.22);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
  animation: rise 0.5s var(--ease) both;
}
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card.is-selected { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(53, 96, 78, 0.09), 0 18px 40px -24px rgba(29, 28, 26, 0.26); }
.card.is-stretch.is-selected { border-color: rgba(184, 116, 63, 0.5); box-shadow: 0 0 0 3px rgba(184, 116, 63, 0.1), 0 18px 40px -24px rgba(29, 28, 26, 0.26); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-rank { font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.01em; }
.card-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap;
}
.card.is-partial .card-badge { background: var(--fill); color: var(--ink-2); }
.card.is-stretch .card-badge { background: rgba(184, 116, 63, 0.13); color: #7a4a22; }
.card-time {
  margin: 26px 0 0; font-family: var(--font-display); font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.02; letter-spacing: -0.015em; font-variant-numeric: lining-nums;
}
.card-sub { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); }
.card-people { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cp {
  display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline;
  font-size: 14px;
}
.cp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.cp-name { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-time { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.cp-day { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.cp-note { grid-column: 2 / -1; font-size: 12.5px; color: var(--ink-3); margin-top: -2px; }
.cp.is-off .cp-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.cp.is-off .cp-name, .cp.is-off .cp-time { color: var(--ink-3); }
.cp.is-stretch .cp-dot { background: var(--warm); }
.cp.is-stretch .cp-note { color: #8a5730; }
.cp.is-night .cp-dot { background: var(--night); }
.cp.is-night .cp-note { color: var(--night); }
.card-show {
  align-self: flex-start; margin-top: auto; padding: 0; height: 34px; border: 0; background: none;
  font-size: 14px; font-weight: 600; color: var(--accent-ink);
  position: relative; top: 10px;
}
.card-show:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-show[aria-pressed="true"] { color: var(--ink-3); }
.card-people + .card-show { margin-top: 18px; }
.card.is-filler {
  justify-content: center; gap: 10px; min-height: 200px;
  background: rgba(255, 255, 255, 0.35); border: 1px dashed var(--line-2); box-shadow: none;
}
.card.is-filler .btn { align-self: flex-start; margin-top: 6px; }
.card.is-wide { grid-column: 1 / -1; align-items: center; text-align: center; }
.filler-title { margin: 0; font-family: var(--font-display); font-size: 27px; line-height: 1.1; }
.filler-copy { margin: 0; color: var(--ink-3); font-size: 14.5px; max-width: 380px; }

/* ---------- marketing sections ---------- */

.features { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.features .display-2 { max-width: 760px; }
.feature-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.feature-list li { padding-top: 22px; border-top: 1px solid var(--line-2); }
.f-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); color: var(--accent); }
.f-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-list h3 { margin: 20px 0 8px; font-size: 17px; font-weight: 620; letter-spacing: -0.01em; }
.feature-list p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; text-wrap: pretty; }

.dst { padding: 0 0 clamp(72px, 9vw, 120px); }
.dst-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); position: relative; overflow: hidden; }
.dst-inner::before {
  content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, rgba(186, 201, 226, 0.55), transparent);
}
.dst-copy p { margin: 0 0 16px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
.dst-copy .dst-live { color: var(--ink); font-size: 18.5px; }
.dst-copy .btn { margin-top: 10px; }

.who { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; }
.who-grid article { padding: 4px 36px 0; border-left: 1px solid var(--line-2); }
.who-grid article:first-child { padding-left: 0; border-left: 0; }
.who-grid h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.08; letter-spacing: -0.01em; }
.who-grid p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

.closing { padding: clamp(80px, 10vw, 136px) 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(700px 300px at 50% 100%, rgba(240, 205, 168, 0.3), transparent 70%); }
.closing p { margin: 20px auto 0; max-width: 520px; color: var(--ink-2); font-size: 17px; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: rgba(255, 255, 255, 0.28); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px 56px; }
.footer-brand p { margin: 12px 0 0; max-width: 400px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.footer-brand a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; font-weight: 560; }
.footer-brand a:hover { text-decoration-color: currentColor; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 24px; }
.footer-cols div { display: flex; flex-direction: column; gap: 9px; }
.footer-h { margin: 0 0 4px; font-size: 13px; font-weight: 620; color: var(--ink); }
.footer-cols a, .footer-muted { font-size: 14px; color: var(--ink-2); text-decoration: none; overflow-wrap: break-word; }
.footer-cols a:hover { color: var(--ink); }
.footer-muted.small { font-size: 12.5px; color: var(--ink-3); }
.footer-legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* ---------- zone sheet ---------- */

.sheet {
  width: min(540px, 100% - 32px); max-width: none; max-height: none;
  margin: 10vh auto auto; padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: visible;
}
.sheet::backdrop { background: rgba(29, 28, 26, 0.24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in 0.32s var(--ease); }
.sheet[open]::backdrop { animation: fade-in 0.3s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet-inner {
  display: flex; flex-direction: column; max-height: min(620px, 78vh);
  border-radius: 26px; overflow: hidden;
  background: rgba(252, 251, 248, 0.97);
  box-shadow: 0 0 0 1px rgba(29, 28, 26, 0.06), 0 30px 80px -20px rgba(29, 28, 26, 0.35);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 6px 24px; }
.sheet-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; }
.search { position: relative; margin: 8px 16px 6px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
#zone-search {
  width: 100%; height: 46px; padding: 0 16px 0 42px; border: 0; border-radius: 14px;
  background: var(--fill); font-size: 15.5px; -webkit-appearance: none; appearance: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}
#zone-search::placeholder { color: var(--ink-3); }
#zone-search:focus { outline: none; background: #fff; box-shadow: 0 0 0 1px var(--line-2), var(--ring); }
.zone-list { list-style: none; margin: 0; padding: 6px 8px 12px; overflow-y: auto; overscroll-behavior: contain; }
.zone-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 13px; cursor: pointer; }
.zone-opt.is-active { background: rgba(29, 28, 26, 0.055); }
.zo-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.zo-city { font-size: 15px; font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zo-region { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zo-side { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.zo-time { font-size: 14px; font-weight: 540; color: var(--ink-2); white-space: nowrap; }
.zo-off { font-size: 12px; color: var(--ink-3); }
.zo-check { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zone-opt.is-current .zo-city { color: var(--accent-ink); }
.zone-empty { padding: 26px 16px 30px; color: var(--ink-3); font-size: 14.5px; text-align: center; }
.zone-empty strong { color: var(--ink); font-weight: 600; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100% - 32px));
  padding: 12px 14px 12px 20px; border-radius: 18px;
  background: rgba(29, 28, 26, 0.92); color: #f6f3ee;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -14px rgba(29, 28, 26, 0.5);
  font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-action { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 13.5px; font-weight: 600; }
.toast-action:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- legal pages & 404 ---------- */

.doc { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 112px); }
.doc-inner { max-width: 700px; }
.doc h1 { margin: 0 0 12px; }
.doc .updated { margin: 0 0 40px; color: var(--ink-3); font-size: 14px; }
.doc h2 { margin: 40px 0 10px; font-size: 19px; font-weight: 620; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.doc ul { padding-left: 20px; }
.doc a { text-decoration-color: var(--line-2); text-underline-offset: 3px; }

.lost { min-height: calc(100vh - 64px - 240px); display: grid; place-items: center; padding: 80px 0; text-align: center; }
.lost .display { font-size: clamp(56px, 9vw, 112px); }
.lost p { margin: 20px auto 30px; max-width: 460px; color: var(--ink-2); font-size: 17px; }
.lost-band { width: min(420px, 100%); height: 14px; margin: 0 auto 40px; border-radius: 999px; background: linear-gradient(90deg, var(--t-night), var(--t-dawn) 22%, var(--t-morning) 34%, var(--t-day) 52%, var(--t-golden) 70%, var(--t-dusk) 82%, var(--t-late)); box-shadow: inset 0 0 0 1px rgba(29, 28, 26, 0.05); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  :root { --info-col: 268px; --gutter: 22px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .dst-inner { grid-template-columns: 1fr; gap: 24px; }
  .who-grid { grid-template-columns: 1fr; gap: 0; }
  .who-grid article { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .who-grid article:first-child { padding-top: 26px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .planner { padding: 16px 16px 18px; border-radius: 26px; }
  .planner-section .wrap { width: min(100% - 20px, 1180px); }
  .grid, .row { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-areas: "info" "band" "hours"; row-gap: 10px; padding: 14px 0 12px; }
  .row.skeleton { grid-template-areas: "info" "band"; }
  .row-hours { padding-left: 0; gap: 4px; }
  .hours-label { display: none; }
  .select-wrap { min-width: 0; flex: 0 1 auto; }
  .hsel { min-width: 0; max-width: 100%; padding: 0 24px 0 10px; }
  .anchor-badge { padding: 0 8px 0 6px; }
  .band { height: 44px; border-radius: 12px; }
  .hl.minor { display: none; }
  .hl { padding-left: 4px; font-size: 10px; }
  .cell.at-end .hl { display: none; }
  .scrub-row { margin-top: 12px; }
  .scrub-meta { flex-direction: row; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
  .tick.minor { display: none; }
  .planner-head { gap: 10px; }
  .date-group { width: 100%; justify-content: space-between; gap: 2px; }
  .date-group .chip { margin-left: 0; }
  .date-field { flex: 1; min-width: 0; display: flex; justify-content: center; }
  .date-btn { font-size: 15px; padding: 0 8px; }
  .date-group .chip[data-action="today"] { display: none; }
  .date-group .chip[data-action="next-dst"] { order: 5; flex: 1 0 100%; justify-content: center; margin-top: 6px; }
  .head-actions { width: 100%; justify-content: space-between; }
  .planner-foot { flex-direction: column; align-items: stretch; }
  .add-btn { align-self: flex-start; }
  .presets { gap: 6px; }
  .presets-label { width: 100%; }
  .windows { margin-top: 40px; }
  .section-title { font-size: 34px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 22px 20px 18px; border-radius: 24px; }
  .card-time { font-size: 36px; margin-top: 20px; }
  .card.is-filler { min-height: 0; padding: 26px 22px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 40px; }
  .who-grid { margin-top: 32px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols div:nth-child(3) { grid-column: 1 / -1; }
  .sheet { width: 100%; margin: auto 0 0; }
  .sheet-inner { max-height: 86vh; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }
  .hero-cta .btn { flex: 1 1 auto; }
  .nav .btn-sm { padding: 0 14px; }
}

@media (max-width: 380px) {
  .rt-main { font-size: 19px; }
  .anchor-badge { font-size: 0; gap: 0; padding: 0 6px; }
}

.doc code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; padding: 1px 5px; border-radius: 6px; background: var(--fill); }

@media (pointer: coarse) {
  .hsel, .name, #zone-search { font-size: 16px; }
  .hsel { height: 34px; }
}

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