/* ============================================================
   Tempo 日律 · prototype styles
   Design direction: editorial instrument / warm paper + forest ink
   ============================================================ */

:root {
  --paper: #F1EDE4;
  --surface: #FBF9F4;
  --surface-2: #F5F1E8;
  --ink: #1B1A16;
  --ink-2: #5F5A50;
  --ink-3: #8A8477;
  --line: rgba(27, 26, 22, .10);
  --line-strong: rgba(27, 26, 22, .18);
  --forest: #2E4B3A;
  --forest-deep: #20362A;
  --forest-soft: #DEE6DC;
  --clay: #C0553A;
  --clay-soft: #F2DFD8;
  --amber: #C9973F;
  --amber-soft: #F3E7CF;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(27, 26, 22, .05), 0 2px 8px rgba(27, 26, 22, .04);
  --shadow-m: 0 10px 28px -8px rgba(27, 26, 22, .14);
  --shadow-device: 0 46px 90px -28px rgba(27, 26, 22, .45), 0 10px 24px rgba(27, 26, 22, .12);

  --font-display: "Iowan Old Style", "Palatino Linotype", "Hoefler Text", "Songti SC", "Noto Serif CJK SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 16% -12%, #E9E2D1 0%, transparent 58%),
    radial-gradient(900px 520px at 92% 6%, #E2E8DC 0%, transparent 55%),
    radial-gradient(700px 500px at 50% 110%, #E6E1D4 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

button { font-family: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 34px; height: 34px; }

/* ---------------- page header ---------------- */

.showcase-head {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 40px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 48px; height: 48px; color: var(--forest); flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-copy h1 span {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--ink-3);
  font-weight: 500;
}
.brand-copy p { margin: 3px 0 0; font-size: 12px; color: var(--ink-2); }

.head-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
  padding-bottom: 5px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 3px rgba(192, 85, 58, .12);
  flex: none;
}

/* ---------------- stage ---------------- */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 84px;
  padding: 8px 40px 56px;
}

.device-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.device-label {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}
.watch-col { margin-top: 74px; }

.showcase-foot {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 40px 56px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

/* ---------------- phone chrome ---------------- */

.phone {
  width: 395px;
  height: 832px;
  padding: 10px;
  border-radius: 58px;
  background: linear-gradient(155deg, #45443F 0%, #1A1A17 28%, #101010 72%, #383833 100%);
  box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, .12);
  position: relative;
}

.phone-screen {
  position: relative;
  width: 375px;
  height: 812px;
  border-radius: 48px;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 32px;
  border-radius: 20px;
  background: #080808;
  z-index: 25;
}

.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 24;
  pointer-events: none;
  color: var(--ink);
}
.sb-time { font-size: 13px; font-weight: 650; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.sb-right { display: flex; align-items: center; gap: 5px; }

.app-body { position: absolute; inset: 44px 0 0 0; }

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: 4px 20px 104px;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.is-active { display: block; }
.screen.is-active > * { animation: rise .5s cubic-bezier(.2, .7, .3, 1) both; }
.screen.is-active > *:nth-child(1) { animation-delay: .02s; }
.screen.is-active > *:nth-child(2) { animation-delay: .07s; }
.screen.is-active > *:nth-child(3) { animation-delay: .12s; }
.screen.is-active > *:nth-child(4) { animation-delay: .17s; }
.screen.is-active > *:nth-child(5) { animation-delay: .22s; }
.screen.is-active > *:nth-child(6) { animation-delay: .27s; }
.screen.is-active > *:nth-child(7) { animation-delay: .32s; }
.screen.is-active > *:nth-child(8) { animation-delay: .37s; }
.screen.is-active > *:nth-child(n+9) { animation-delay: .42s; }

/* ---------------- shared bits ---------------- */

.screen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 15px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: .13em;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.screen-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .012em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.chip-quiet { background: rgba(46, 75, 58, .08); color: var(--forest); }
.chip-live { background: rgba(192, 85, 58, .08); color: var(--clay); }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: #fff; transform: translateY(-1px); }
.icon-btn .ic { width: 16px; height: 16px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 10px;
}
.section-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
}
.muted { font-size: 9.5px; color: var(--ink-3); }
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 10px;
  color: var(--forest);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(46, 75, 58, .35);
}

/* ---------------- today: score ---------------- */

.score-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px 20px 15px;
  color: #F7F3E8;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(201, 151, 63, .30), transparent 55%),
    radial-gradient(90% 120% at -10% 110%, rgba(220, 228, 218, .18), transparent 58%),
    linear-gradient(155deg, #33523F 0%, #2A4434 45%, #1C2F24 100%);
  box-shadow: 0 20px 34px -20px rgba(28, 47, 36, .85);
}
.score-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)' opacity='0.22'/%3E%3C/svg%3E");
}
.score-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(247, 243, 232, .62);
}
.score-delta { color: #E8D9A8; letter-spacing: .02em; }
.score-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}
.score-num {
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.score-max { font-size: 12px; color: rgba(247, 243, 232, .5); }

.ruler { position: relative; height: 30px; margin: 10px 0 2px; z-index: 1; }
.ruler-track {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(247, 243, 232, .16);
}
.ruler-band {
  position: absolute;
  top: 2px;
  height: 9px;
  border-radius: 5px;
  background: rgba(247, 243, 232, .14);
  border: 1px solid rgba(247, 243, 232, .16);
}
.ruler-marker {
  position: absolute;
  top: -1px;
  width: 2px;
  height: 15px;
  border-radius: 2px;
  background: #E8D9A8;
  box-shadow: 0 0 0 3px rgba(232, 217, 168, .14);
}
.ruler-marker::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E8D9A8;
}
.ruler-labels {
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: .04em;
  color: rgba(247, 243, 232, .45);
}
.score-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(247, 243, 232, .12);
  font-size: 9.5px;
  color: rgba(247, 243, 232, .62);
  letter-spacing: .03em;
}

/* ---------------- today: dimensions ---------------- */

.dims { border-top: 1px solid var(--line); }
.dim {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.dim-main { display: flex; align-items: center; gap: 10px; }
.dim-label { width: 34px; font-size: 12.5px; color: var(--ink-2); flex: none; }
.dim-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(27, 26, 22, .07);
  overflow: hidden;
}
.dim-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #5C7A63, var(--forest));
  transition: width .7s cubic-bezier(.2, .7, .3, 1);
}
.dim-val {
  width: 22px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.dim-trend { display: flex; color: var(--forest); }
.dim-trend.down { color: var(--clay); }
.dim-trend .ic { width: 14px; height: 14px; }
.dim-note {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding-left: 44px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-3);
  transition: max-height .3s ease, padding-top .3s ease;
}
.dim.is-open .dim-note { max-height: 80px; padding-top: 6px; }

/* ---------------- today: advice ---------------- */

.advice-list { display: flex; flex-direction: column; gap: 8px; }
.advice {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-s);
}
.advice-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--forest-soft);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex: none;
}
.advice-icon .ic { width: 17px; height: 17px; }
.advice h4 { margin: 0 0 3px; font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.advice p { margin: 0; font-size: 10.5px; line-height: 1.65; color: var(--ink-2); }

/* ---------------- charts ---------------- */

.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 10px;
  box-shadow: var(--shadow-s);
}
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  padding: 0 2px;
  font-size: 9px;
  color: var(--ink-3);
}
.chart-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }
.legend-line { width: 10px; height: 2px; border-radius: 1px; background: var(--clay); }
.legend-band { width: 10px; height: 7px; border-radius: 2px; background: rgba(46, 75, 58, .16); }

/* ---------------- plan ---------------- */

.plan-area { margin-top: 10px; }
.plan-list { display: flex; flex-direction: column; gap: 6px; }
.plan-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan-time {
  width: 78px;
  flex: none;
  font-size: 9.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.plan-title { font-size: 12px; font-weight: 500; line-height: 1.4; }
.plan-kind { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.k-focus { background: var(--forest); }
.k-rest { background: var(--amber); }
.k-light { background: var(--clay); }
.k-move { background: #7C8B6F; }
.plan-hint {
  margin-top: 8px;
  font-size: 9.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.plan-hint .ic {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  color: var(--forest);
  animation: spin .9s linear infinite;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .18s, box-shadow .2s;
}
.btn .ic { width: 16px; height: 16px; }
.btn-primary {
  background: var(--forest);
  color: #F7F3E8;
  box-shadow: 0 14px 24px -14px rgba(46, 75, 58, .95);
}
.btn-primary:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .7; cursor: default; transform: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(27, 26, 22, .04); }
.btn-danger { background: rgba(192, 85, 58, .12); color: var(--clay); }
.btn-danger:hover { background: rgba(192, 85, 58, .18); }
.btn-block { width: 100%; margin-top: 4px; }
.btn-sm { height: 36px; padding: 0 13px; font-size: 11px; border-radius: 10px; }

.skeleton {
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(27, 26, 22, .05) 25%, rgba(27, 26, 22, .09) 37%, rgba(27, 26, 22, .05) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

/* ---------------- timeline ---------------- */

.week-strip { display: flex; gap: 4px; padding: 4px 0 12px; }
.day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 0 6px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.day:hover { background: rgba(27, 26, 22, .045); }
.day.is-active { background: var(--ink); color: #F7F3E8; }
.day-wd { font-size: 9px; letter-spacing: .08em; }
.day-num { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1; }
.day-dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.day-dot.on { background: var(--clay); }
.day.is-active .day-dot.on { background: #E8D9A8; }

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ink-3);
  padding-bottom: 4px;
}
.timeline-meta .ic { width: 12px; height: 12px; }

.tl-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.tl-group-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.ep {
  display: grid;
  grid-template-columns: 38px 14px 1fr;
  gap: 5px;
  position: relative;
  padding-bottom: 9px;
  cursor: pointer;
}
.ep-time {
  font-size: 10px;
  color: var(--ink-3);
  padding-top: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.ep-end { display: block; opacity: .55; }
.ep-axis { position: relative; display: flex; justify-content: center; padding-top: 17px; }
.ep-axis::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -9px;
  width: 1px;
  background: var(--line);
}
.ep:last-child .ep-axis::before { display: none; }
.ep-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 3px var(--paper);
}
.ep-dot.kind-meeting { background: #6E8A74; }
.ep-dot.kind-call { background: var(--amber); }
.ep-dot.kind-commute { background: #8FA08A; }
.ep-dot.kind-meal { background: #B9A88F; }
.ep-dot.kind-admin { background: #A9A396; }
.ep-dot.kind-walk { background: #6F8F7A; }

.ep-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.ep:hover .ep-card {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-s);
}
.ep-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ep-top h4 { margin: 0; font-size: 12.5px; font-weight: 650; line-height: 1.45; }
.ep-hr {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  color: var(--clay);
  flex: none;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.ep-hr .ic { width: 11px; height: 11px; }
.ep-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  font-size: 9.5px;
  color: var(--ink-3);
}
.ep-meta .ic { width: 10px; height: 10px; }
.dot-sep { width: 2px; height: 2px; border-radius: 50%; background: var(--ink-3); opacity: .5; margin: 0 2px; }
.ep-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(46, 75, 58, .08);
  color: var(--forest);
  letter-spacing: .02em;
}
.wave { display: flex; align-items: center; gap: 2px; height: 18px; flex: none; }
.wave i { width: 2px; border-radius: 1px; background: rgba(46, 75, 58, .32); }

.empty-state {
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-3);
}
.empty-state .ic { width: 26px; height: 26px; opacity: .5; margin-bottom: 10px; }
.empty-state h4 { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.empty-state p { margin: 0; font-size: 10.5px; line-height: 1.6; }

/* ---------------- report ---------------- */

.quote-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: .55;
  color: var(--forest);
  opacity: .22;
  margin-bottom: 4px;
}
.quote-card p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: .004em;
}
.quote-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--ink-3);
}
.quote-foot .ic { color: var(--forest); }

.alloc-bar { display: flex; gap: 2px; height: 12px; margin: 2px 0 12px; }
.alloc-seg { border-radius: 2px; }
.seg-0 { background: var(--forest); }
.seg-1 { background: #6E8A74; }
.seg-2 { background: var(--clay); }
.seg-3 { background: var(--amber); }
.alloc-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; }
.alloc-item { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink-2); }
.alloc-item i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.alloc-item b { margin-left: auto; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2px 14px;
  box-shadow: var(--shadow-s);
  margin-bottom: 8px;
}
.panel-flush { padding: 0 14px; }

.output { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.output:last-child { border-bottom: 0; }
.output > .ic { width: 15px; height: 15px; color: var(--forest); flex: none; margin-top: 2px; }
.output h4 { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.5; }
.output span { display: block; margin-top: 3px; font-size: 9.5px; color: var(--ink-3); }

.decision { display: flex; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.55; }
.decision:last-child { border-bottom: 0; }
.decision .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--forest); margin-top: 7px; flex: none; }

.todo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.todo:last-child { border-bottom: 0; }
.todo .box {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  transition: background .2s, border-color .2s;
}
.todo .box .ic { width: 11px; height: 11px; color: #fff; opacity: 0; }
.todo.done .box { background: var(--forest); border-color: var(--forest); }
.todo.done .box .ic { opacity: 1; }
.todo.done span { color: var(--ink-3); text-decoration: line-through; }
.todo span { font-size: 12px; line-height: 1.5; }

.ask-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-s);
  margin-bottom: 8px;
}
.ask-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.ask-chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 5px 9px;
  font: inherit;
  font-size: 9.5px;
  cursor: pointer;
  transition: .2s;
}
.ask-chip:hover { border-color: var(--forest); color: var(--forest); background: rgba(46, 75, 58, .06); }
.ask-log { display: flex; flex-direction: column; gap: 7px; }
.ask-log:empty { display: none; }
.msg {
  max-width: 90%;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.65;
  animation: rise .3s ease both;
}
.msg.user { align-self: flex-end; background: var(--forest); color: #F7F3E8; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.typing { color: var(--ink-3); font-style: italic; }
.ask-input { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.ask-input input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  font-size: 11.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ask-input input::placeholder { color: var(--ink-3); }
.ask-input input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(46, 75, 58, .10); }
.ask-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--forest);
  color: #F7F3E8;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.ask-send .ic { width: 15px; height: 15px; }

.foot-note { margin: 12px 2px 0; font-size: 9px; line-height: 1.65; color: var(--ink-3); }

/* ---------------- record ---------------- */

.record-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 18px;
}
.record-wrap { position: relative; width: 138px; height: 138px; display: grid; place-items: center; }
.record-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(192, 85, 58, .22);
  animation: halo 3.2s ease-out infinite;
}
.record-btn {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(160deg, #CB6A4E, #A9452D);
  color: #FBF3EE;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 32px -14px rgba(169, 69, 45, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .18s ease;
}
.record-btn:hover { transform: scale(1.03); }
.record-btn:active { transform: scale(.97); }
.record-stage.is-recording .record-halo { animation-duration: 1.5s; border-color: rgba(192, 85, 58, .5); }
.record-stage.is-recording .record-btn { background: linear-gradient(160deg, #B54E36, #8E3524); }
.record-timer {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 25px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.record-hint { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); }
.record-live { height: 15px; margin-top: 7px; font-size: 10px; color: var(--clay); letter-spacing: .02em; }

.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border-bottom: 0; }
.setting-l { flex: 1; min-width: 0; }
.setting-title { display: block; font-size: 12px; font-weight: 500; }
.setting-desc { display: block; margin-top: 2px; font-size: 9.5px; line-height: 1.5; color: var(--ink-3); }

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  border: 0;
  background: rgba(27, 26, 22, .16);
  cursor: pointer;
  flex: none;
  transition: background .22s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .22s cubic-bezier(.3, .8, .4, 1);
}
.switch.on { background: var(--forest); }
.switch.on::after { transform: translateX(18px); }
.switch.is-disabled { opacity: .45; cursor: not-allowed; }

.clip-list { border-top: 1px solid var(--line); }
.empty-line {
  margin: 0;
  padding: 22px 0;
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.clip { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.clip:last-child { border-bottom: 0; }
.clip-time { width: 88px; flex: none; font-size: 9.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.clip-body { flex: 1; min-width: 0; }
.clip-body h4 { margin: 0; font-size: 12px; font-weight: 500; }
.clip-body span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--ink-3); }
.status { flex: none; font-size: 9px; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }
.status.done { background: rgba(46, 75, 58, .10); color: var(--forest); }
.status.processing { background: rgba(201, 151, 63, .18); color: #845E1E; }

/* ---------------- privacy ---------------- */

.privacy-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 10px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(160deg, #E5EBDF, #D3DED4);
}
.privacy-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  color: var(--forest);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.privacy-icon .ic { width: 20px; height: 20px; }
.privacy-hero h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.privacy-hero p { margin: 0; font-size: 10.5px; line-height: 1.7; color: #3F4A40; }

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.list-row:last-child { border-bottom: 0; }
.list-row-l { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.list-row-l .ic { width: 15px; height: 15px; color: var(--ink-2); }
.chev { color: var(--ink-3); }
.list-row.danger .list-row-l, .list-row.danger .list-row-l .ic { color: var(--clay); }

.version-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 2px;
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: .03em;
}

/* ---------------- tab bar ---------------- */

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  padding: 8px 10px 0;
  display: flex;
  align-items: flex-start;
  background: rgba(251, 249, 244, .93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  z-index: 30;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 0 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 9px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .2s;
}
.tab .ic { width: 21px; height: 21px; }
.tab.is-active { color: var(--forest); }
.tab:hover { color: var(--ink); }
.tab-mic {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  margin: -25px auto 0;
  padding: 0;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: linear-gradient(160deg, #3D5D47, #233A2C);
  color: #F7F3E8;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 22px -9px rgba(35, 58, 44, .9);
}
.tab-mic .ic { width: 23px; height: 23px; }
.tab-mic.is-active { box-shadow: 0 0 0 4px rgba(46, 75, 58, .16), 0 12px 22px -9px rgba(35, 58, 44, .9); }

.home-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: rgba(27, 26, 22, .28);
  z-index: 31;
}

/* ---------------- sheet & toast ---------------- */

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(24, 22, 18, .38);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  max-height: 82%;
  overflow-y: auto;
  padding: 8px 20px 30px;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  box-shadow: 0 -18px 40px -20px rgba(27, 26, 22, .4);
  transform: translateY(103%);
  transition: transform .34s cubic-bezier(.32, .72, 0, 1);
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet.is-open { transform: translateY(0); }
.sheet-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 2px auto 16px; }
.sheet h3 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.35; }
.sheet-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; font-size: 10px; color: var(--ink-3); }
.sheet-quote {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--forest);
  border-radius: 0 10px 10px 0;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.sheet-block { margin-top: 15px; }
.sheet-text { margin: 0; font-size: 12.5px; line-height: 1.7; }
.metric b.sm { font-size: 11px; }
.sheet-block h4 { margin: 0 0 6px; font-size: 9.5px; letter-spacing: .13em; color: var(--ink-3); font-weight: 650; }
.sheet-block ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sheet-block li { position: relative; padding-left: 14px; font-size: 12px; line-height: 1.55; }
.sheet-block li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--forest);
}
.sheet-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.metric { background: var(--paper); border-radius: 10px; padding: 9px 10px; }
.metric span { display: block; font-size: 9px; color: var(--ink-3); margin-bottom: 2px; }
.metric b { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
.sheet-actions .btn-icon { flex: 0 0 46px; padding: 0; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 98px;
  z-index: 60;
  max-width: 86%;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(27, 26, 22, .93);
  color: #F7F3E8;
  font-size: 10.5px;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .26s, transform .26s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- watch ---------------- */

.watch-case {
  position: relative;
  width: 212px;
  height: 252px;
  padding: 12px;
  border-radius: 56px;
  background: linear-gradient(150deg, #55554F 0%, #2B2B27 38%, #151513 78%, #3B3B36 100%);
  box-shadow: 0 34px 60px -26px rgba(20, 20, 16, .65), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.watch-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background: #050505;
  color: #F2F0E8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.watch-crown {
  position: absolute;
  right: -7px;
  top: 74px;
  z-index: 2;
  width: 9px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3A3A36, #6E6E66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.watch-side {
  position: absolute;
  right: -5px;
  top: 134px;
  width: 6px;
  height: 48px;
  border-radius: 3px;
  background: #3A3A36;
}

.wf { width: 100%; padding: 24px 16px 16px; text-align: center; }
.wf-time { font-size: 38px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.wf-date { margin-top: 4px; font-size: 10px; color: #9A968C; }
.wf-comp { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.wf-ring {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#7FA98A 0 77%, rgba(255, 255, 255, .12) 77% 100%);
}
.wf-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #050505; }
.wf-ring b { position: relative; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wf-metrics { display: flex; flex-direction: column; gap: 5px; text-align: left; font-size: 9.5px; color: #B6B2A7; }
.wf-metrics i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; margin-right: 4px; }
.i-forest { background: #8FBE9C; }
.i-clay { background: #C9634A; }

.wr { width: 100%; padding: 16px 16px 14px; text-align: center; }
.wr-label { font-size: 9px; letter-spacing: .16em; font-weight: 650; color: #C9634A; }
.wr-timer { margin: 4px 0 10px; font-family: var(--font-mono); font-size: 26px; font-variant-numeric: tabular-nums; }
.wr-ring {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(201, 99, 74, .55);
  background: rgba(201, 99, 74, .14);
  color: #E5A08C;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.wr-ring .ic { width: 20px; height: 20px; }
.wr-ring::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(201, 99, 74, .28);
  animation: pulse 1.9s ease-out infinite;
}
.wr-meta { display: flex; justify-content: center; gap: 10px; margin-top: 12px; font-size: 9px; color: #B6B2A7; }
.wr-meta span { display: inline-flex; align-items: center; gap: 3px; }
.wr-meta .ic { width: 9px; height: 9px; }

.ws { width: 100%; padding: 20px 18px; text-align: center; }
.ws-check {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(127, 169, 138, .16);
  color: #8FBE9C;
  display: grid;
  place-items: center;
}
.ws-check .ic { width: 20px; height: 20px; }
.ws h4 { margin: 0; font-size: 13px; font-weight: 600; }
.ws .dur { margin: 2px 0 8px; font-family: var(--font-mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.ws p { margin: 0; font-size: 9px; line-height: 1.7; color: #9A968C; }

.watch-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(27, 26, 22, .06);
}
.watch-switch button {
  border: 0;
  background: none;
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 10px;
  color: var(--ink-2);
  cursor: pointer;
  transition: .2s;
}
.watch-switch button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }

.watch-note { max-width: 252px; display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.watch-note p { margin: 0; display: flex; gap: 8px; font-size: 10px; line-height: 1.65; color: var(--ink-2); }
.watch-note p span { flex: none; padding-top: 1px; font-family: var(--font-mono); font-size: 9px; color: var(--clay); }

/* ---------------- motion ---------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
@keyframes halo {
  0% { transform: scale(.9); opacity: .9; }
  70% { transform: scale(1.16); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes pulse {
  0% { transform: scale(.88); opacity: .8; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .9s linear infinite; }

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

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

@media (max-width: 1040px) {
  .stage { gap: 48px; }
}

@media (max-width: 860px) {
  .showcase-head { padding: 28px 20px 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .stage { flex-direction: column; align-items: center; gap: 48px; padding: 4px 16px 40px; }
  .watch-col { margin-top: 0; }
  .showcase-foot { flex-direction: column; padding: 16px 20px 40px; }
  .phone { transform: scale(.88); transform-origin: top center; }
  .phone-col { height: 750px; }
}

@media (max-width: 400px) {
  .phone { transform: scale(.78); }
  .phone-col { height: 660px; }
}
