/* ══════════════════════════════════════════════════════════════════════════
   Nocturne mobile shell — the implementation of Mobile.dc.html.

   Every number here is transcribed from the design document's style objects.
   Where the design wrote an inline style object per element, this file carries
   the same values as classes so one rule serves all eight apps.

   Layout contract (from the design):
     .screen           the 402×874 phone canvas, inset for the device chrome
     .appbar           46px bar: burger · mark · title · note · action · apps-grid
     .phonebody        the scrolling app content
     .tabbar           that app's destinations
     .fab              the app's one primary action
     .scrim + .drawer  layer 2 — the app's own drawer (the hamburger)
     .scrim + .sheet   layer 3 — the apps grid (switching app)

   --frame-top / --frame-bottom are the device insets. The canvas page and the
   framed desktop view leave them at the design's 54 / 30; a phone running the
   app full-bleed swaps in its safe-area insets. Nothing else changes.
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── the phone canvas ─────────────────────────────────────────────────── */

.screen {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding-top: var(--frame-top, 54px);
  padding-bottom: var(--frame-bottom, 30px);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow: hidden;
}

/* ─── the app bar ──────────────────────────────────────────────────────── */

.appbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.appbar__burger,
.appbar__act {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-400);
  border-radius: 999px;
}
.appbar__burger { margin-left: -7px; font-size: 15px; }
.appbar__act    { font-size: 14px; }
.appbar__mark {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-accent);
}
.appbar__title {
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appbar__note {
  flex: none;
  margin-left: auto;
  font-size: 11px;
  color: var(--color-neutral-600);
}
/* DELIBERATE DEVIATION from Mobile.dc.html.
   The note carries `margin-left: auto`, which is what pushes the action and the
   apps grid to the right edge. The apps-grid frame is the one screen that drops
   the note, so in the design document that frame's action and grid bunch up
   against the title instead of sitting top right — which contradicts the
   document's own description ("the dotted grid at top right switches app") and
   every other frame. Here the action takes over the push when no note precedes
   it, so the grid stays put on every screen. Worth fixing in the design too. */
.appbar__title + .appbar__act { margin-left: auto; }

.appbar__apps {
  flex: none;
  width: 30px;
  height: 30px;
  margin-right: -6px;
  display: grid;
  grid-template-columns: repeat(3, 3px);
  grid-template-rows: repeat(3, 3px);
  gap: 3px;
  align-content: center;
  justify-content: center;
  border-radius: 999px;
}
.appbar__apps i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-neutral-400);
}

/* ─── the scrolling body ───────────────────────────────────────────────── */

.phonebody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 76px;              /* clears the tab bar and the FAB */
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.phonebody::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* every body section keeps its content height and lets the body scroll */
.phonebody > * { flex: none; }

/* the padded head that carries a search pill (+ filter chips) */
.list-head { padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 10px; }

/* the dimmed backdrops the design canvas shows behind its overlay frames */
.peek { display: flex; flex-direction: column; }
.peek--mail { padding: 16px; gap: 18px; opacity: 0.28; }
.peek--docs { padding: 20px; gap: 14px; opacity: 0.22; }

/* ─── the tab bar ──────────────────────────────────────────────────────── */

.tabbar {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 8px 6px 10px;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
}
.tab__glyph {
  width: 56px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  color: var(--color-neutral-500);
  background: transparent;
}
.tab__label {
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--color-neutral-600);
}
.tab.is-on .tab__glyph {
  color: var(--color-accent-200);
  background: color-mix(in srgb, var(--color-accent) 20%, transparent);
}
.tab.is-on .tab__label { color: var(--color-accent-300); }

/* ─── the floating action ──────────────────────────────────────────────── */

.fab {
  position: absolute;
  right: 18px;
  bottom: calc(var(--frame-bottom, 30px) + 74px);
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-accent-200);
  border: 1px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 16%, var(--color-surface));
  box-shadow: var(--shadow-lg);
  z-index: 20;
}

/* ─── layer 2: the app's own drawer ────────────────────────────────────── */

.scrim {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: color-mix(in srgb, #05060a 62%, transparent);
}
.drawer {
  position: absolute;
  top: var(--frame-top, 54px);
  bottom: 0;
  left: 0;
  width: 278px;
  z-index: 45;
  box-sizing: border-box;
  padding: 14px 14px 34px;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-right: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg);
}
.drawer__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 16px;
}
.drawer__dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--color-accent);
}
.drawer__brand {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
}
.drawer__close {
  margin-left: auto;
  font-size: 15px;
  color: var(--color-neutral-500);
}
.drawer__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  scrollbar-width: none;
}
.drawer__list::-webkit-scrollbar { width: 0; display: none; }
.drawer__section {
  height: 30px;
  display: flex;
  align-items: flex-end;
  padding: 0 8px 4px;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  border-top: 1px solid var(--color-divider);
}
.drawer__row {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
}
.drawer__glyph {
  flex: none;
  width: 17px;
  text-align: center;
  font-size: 14px;
  color: var(--color-neutral-500);
}
.drawer__label {
  min-width: 0;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-neutral-300);
}
.drawer__badge {
  flex: none;
  margin-left: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--color-neutral-500);
}
.drawer__row.is-on { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.drawer__row.is-on .drawer__glyph { color: var(--color-accent-200); }
.drawer__row.is-on .drawer__label { color: var(--color-text); }
.drawer__row.is-on .drawer__badge { color: var(--color-accent-200); }

/* ─── layer 3: the apps grid ───────────────────────────────────────────── */

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  box-sizing: border-box;
  padding: 10px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 26px 26px 0 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg);
}
.sheet__grab {
  flex: none;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  align-self: center;
  background: var(--color-neutral-700);
}
.sheet__head {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 2px 0;
  font-size: 14px;
}
.sheet__hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--color-neutral-600);
}
.sheet__grid {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.appcell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 2px;
}
.apptile {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--color-neutral-300);
  border: 1px solid var(--color-divider);
  background: color-mix(in srgb, var(--color-neutral-800) 55%, transparent);
}
.appcell__name {
  font-size: 11px;
  white-space: nowrap;
  color: var(--color-neutral-400);
}
.appcell.is-on .apptile {
  color: var(--color-accent-200);
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 20%, transparent);
}
.appcell.is-on .appcell__name { color: var(--color-accent-300); }
.apptile__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-200);
  border: 1px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 30%, var(--color-surface));
}
.sheet__me {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px 2px;
  border-top: 1px solid var(--color-divider);
}
.metile {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-accent-300);
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
}
.sheet__me-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sheet__me-name { font-size: 13px; }
.sheet__me-sub  { font-size: 10px; color: var(--color-neutral-600); }
.sheet__gear    { margin-left: auto; font-size: 14px; color: var(--color-neutral-500); }

/* ─── shared content atoms ─────────────────────────────────────────────── */

.searchpill {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--color-divider);
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  font-size: 13px;
  color: var(--color-neutral-600);
}
.chip {
  flex: none;
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--color-divider);
  background: transparent;
  color: var(--color-neutral-400);
}
.chip.is-on {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
  color: var(--color-text);
}
.chiprow { display: flex; gap: 6px; }
.chiprow--scroll { overflow-x: auto; scrollbar-width: none; }
.chiprow--scroll::-webkit-scrollbar { height: 0; display: none; }

.listrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-divider) 45%, transparent);
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}
.para {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-neutral-200);
  text-wrap: pretty;
}
.h2 {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  padding-top: 4px;
}

/* ─── Docs · Trail ─────────────────────────────────────────────────────── */

.doc-pad { padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.doc-title {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.doc-bullets { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.bullet { display: flex; gap: 11px; align-items: flex-start; }
.bullet__mark {
  flex: none;
  width: 2px;
  align-self: stretch;
  min-height: 18px;
  background: var(--color-accent-700);
}
.bullet__text { font-size: 14px; line-height: 1.5; color: var(--color-neutral-300); }

/* ─── Mail · Ferry ─────────────────────────────────────────────────────── */

.mailrow { align-items: flex-start; }
.mailrow__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 6px;
  background: transparent;
}
.mailrow.is-unread .mailrow__dot { background: var(--color-accent); }
.mailrow__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mailrow__top { display: flex; align-items: baseline; gap: 8px; }
.mailrow__from {
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-neutral-400);
}
.mailrow__time {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--color-neutral-600);
}
.mailrow__subject {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-neutral-500);
}
.mailrow__snippet {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-neutral-600);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.mailrow.is-unread .mailrow__from    { color: var(--color-text); }
.mailrow.is-unread .mailrow__subject { color: var(--color-neutral-200); }

/* ─── Sheets · Ledger ──────────────────────────────────────────────────── */

.sh-formula {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 16px 12px;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.sh-formula__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--color-accent-300);
}
.sh-formula__note { font-size: 12px; line-height: 1.45; color: var(--color-neutral-400); }
.sh-headrow { flex: none; display: flex; border-bottom: 1px solid var(--color-divider); }
.sh-gut {
  flex: none;
  width: 26px;
  border-right: 1px solid color-mix(in srgb, var(--color-divider) 50%, transparent);
}
.sh-head {
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  border-right: 1px solid color-mix(in srgb, var(--color-divider) 50%, transparent);
  flex: 1;
  min-width: 0;
}
.sh-head--num { flex: none; justify-content: flex-end; }
.sh-row {
  display: flex;
  align-items: stretch;
  height: 38px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-divider) 40%, transparent);
  background: transparent;
}
.sh-row.is-sel { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.sh-num {
  flex: none;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--color-neutral-700);
  border-right: 1px solid color-mix(in srgb, var(--color-divider) 50%, transparent);
}
.sh-row.is-sel .sh-num { color: var(--color-accent-300); }
.sh-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-neutral-200);
  border-right: 1px solid color-mix(in srgb, var(--color-divider) 50%, transparent);
}
.sh-cell {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--color-neutral-300);
}
.sh-cell--hours {
  width: 62px;
  border-right: 1px solid color-mix(in srgb, var(--color-divider) 50%, transparent);
}
.sh-cell--total { width: 82px; }
.sh-row.is-sel .sh-cell--total {
  color: var(--color-text);
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}
.sh-tabs {
  flex: none;
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sh-tabs::-webkit-scrollbar { height: 0; display: none; }

/* ─── Calendar · Tide ──────────────────────────────────────────────────── */

.cal-strip {
  flex: none;
  display: flex;
  padding: 10px 10px 12px;
  gap: 2px;
  border-bottom: 1px solid var(--color-divider);
}
.cal-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0 6px;
  border-radius: var(--radius-sm);
  background: transparent;
}
.cal-day.is-on { background: color-mix(in srgb, var(--color-accent) 16%, transparent); }
.cal-day__dow { font-size: 10px; letter-spacing: 0.1em; color: var(--color-neutral-600); }
.cal-day__n {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-neutral-300);
}
.cal-day.is-on .cal-day__n { color: var(--color-accent-200); }
.cal-day__pip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-neutral-700);
}
.cal-day.is-on .cal-day__pip { background: var(--color-accent); }
.cal-day__pip.is-empty { background: transparent; }
.cal-banner {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--color-accent) 32%, transparent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}
.cal-banner__text { font-size: 12px; color: var(--color-accent-200); }
.cal-banner__cta  { margin-left: auto; font-size: 12px; color: var(--color-accent-300); }
.cal-list { padding: 8px 16px 20px; display: flex; flex-direction: column; }
.cal-item { display: flex; gap: 12px; min-height: 56px; }
.cal-item__gutter {
  flex: none;
  width: 52px;
  padding-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cal-time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--color-neutral-400); }
.cal-len  { font-size: 10px; color: var(--color-neutral-700); }
.cal-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-neutral-800) 62%, transparent);
  border-left: 2px solid var(--color-neutral-600);
}
.cal-card--work {
  background: color-mix(in srgb, var(--color-accent) 13%, transparent);
  border-left-color: var(--color-accent);
}
.cal-card--book {
  background: color-mix(in srgb, var(--color-accent) 26%, transparent);
  border-left-color: var(--color-accent-300);
}
.cal-card__title { font-size: 14px; line-height: 1.3; color: var(--color-text); }
.cal-card__meta  { font-size: 11px; color: var(--color-neutral-500); }

/* ─── Contacts · Manifest ──────────────────────────────────────────────── */

.people-wrap { position: relative; }
.az {
  position: absolute;
  top: 6px;
  right: 5px;
  bottom: 6px;
  width: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  z-index: 3;
}
.az i {
  font-size: 8px;
  line-height: 10px;
  height: 10px;
  font-style: normal;
  color: var(--color-neutral-800);
}
.az i.is-live { color: var(--color-neutral-500); }
.people-sec__letter {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--color-neutral-600);
  background: color-mix(in srgb, var(--color-surface) 75%, transparent);
}
.person { padding-right: 30px; }
.person__avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-accent-300);
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
}
.person__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person__name,
.person__company,
.person__contact { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__name    { font-size: 15px; }
.person__company { font-size: 11px; color: var(--color-neutral-600); }
.person__contact { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--color-neutral-500); }

/* ─── Drive · Harbour ──────────────────────────────────────────────────── */

.file__tile {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--color-accent-300);
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
}
.file__tile--folder {
  color: var(--color-neutral-400);
  background: color-mix(in srgb, var(--color-neutral-700) 40%, transparent);
}
.file__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file__name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file__meta { font-size: 11px; color: var(--color-neutral-600); }
.file__star {
  flex: none;
  margin-left: auto;
  font-size: 11px;
  color: transparent;
}
.file.is-starred .file__star { color: var(--color-accent); }
.storage { padding: 16px; display: flex; flex-direction: column; gap: 7px; }
.storage__track {
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--color-divider) 70%, transparent);
}
.storage__fill { height: 5px; border-radius: 3px; background: var(--color-accent); }
.storage__label { font-size: 11px; color: var(--color-neutral-600); }

/* ─── Slides · Stage ───────────────────────────────────────────────────── */

.slides-pad { padding: 16px; }
.hero-slide {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(168deg,
    color-mix(in srgb, var(--color-surface) 92%, var(--color-bg)), var(--color-bg));
}
.hero-slide__kicker {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-neutral-500);
}
.hero-slide__title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-slide__body {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-neutral-400);
  max-width: 84%;
}
.slides-bar { display: flex; align-items: center; gap: 10px; padding: 14px 2px 4px; }
.slides-bar__count { font-size: 12px; color: var(--color-neutral-500); }
.slides-bar__acts { margin-left: auto; display: flex; gap: 6px; }
.ghostbtn, .solidbtn {
  height: 30px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.ghostbtn {
  padding: 0 12px;
  border: 1px solid var(--color-divider);
  color: var(--color-neutral-400);
}
.solidbtn {
  padding: 0 14px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent-200);
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
}
.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
}
.thumb { display: flex; flex-direction: column; gap: 4px; }
.thumb__surface {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--color-divider);
  background: linear-gradient(168deg,
    color-mix(in srgb, var(--color-surface) 92%, var(--color-bg)), var(--color-bg));
}
.thumb__surface--section {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--color-accent) 34%, var(--color-bg)),
    color-mix(in srgb, var(--color-accent) 16%, var(--color-bg)));
}
.thumb__kicker {
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}
.thumb__title {
  font-family: var(--font-heading);
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.thumb__n { font-size: 10px; font-variant-numeric: tabular-nums; color: var(--color-neutral-700); }

/* ─── Forms · Intake ───────────────────────────────────────────────────── */

.form-pad { padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 22px; }
.form-head { display: flex; flex-direction: column; gap: 8px; }
.form-head__title {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: -0.02em;
}
.form-head__blurb { font-size: 13px; line-height: 1.55; color: var(--color-neutral-500); }
.field-block { display: flex; flex-direction: column; gap: 8px; }
.field-block__labelrow { display: flex; align-items: baseline; gap: 8px; }
.field-block__label { font-size: 14px; }
.field-block__req {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-300);
}
.field-input {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-divider);
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  font-size: 14px;
  color: var(--color-neutral-600);
}
.choice { display: flex; flex-direction: column; gap: 10px; }
.choice__row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 30px;
  font-size: 14px;
  color: var(--color-neutral-300);
}
.choice__dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--color-neutral-700);
}
.choice__row.is-on { color: var(--color-text); }
.choice__row.is-on .choice__dot {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-accent);
}
.form-foot { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.submitbtn {
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-accent);
  font-size: 14px;
  color: var(--color-accent-200);
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
}
.form-foot__note { font-size: 11px; color: var(--color-neutral-600); }

/* ─── interaction states ───────────────────────────────────────────────────
   The system's rule: every interactive element carries a hover tint, a pressed
   state one step past the base, and the 2px accent :focus-visible ring —
   never a browser default. The design canvas is static, so these are the
   implementation's own addition, drawn from the accent ramp as the guide says. */

[data-act] { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
[data-act]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.appbar__burger:hover, .appbar__act:hover, .appbar__apps:hover,
.drawer__close:hover, .sheet__gear:hover {
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
}
.appbar__burger:active, .appbar__act:active, .appbar__apps:active {
  background: color-mix(in srgb, var(--color-text) 15%, transparent);
}
.tab:hover  .tab__glyph { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.tab:active .tab__glyph { background: color-mix(in srgb, var(--color-text) 13%, transparent); }
.tab.is-on:hover  .tab__glyph { background: color-mix(in srgb, var(--color-accent) 28%, transparent); }
.tab.is-on:active .tab__glyph { background: color-mix(in srgb, var(--color-accent) 36%, transparent); }
.fab:hover  { background: color-mix(in srgb, var(--color-accent) 26%, var(--color-surface)); }
.fab:active { background: color-mix(in srgb, var(--color-accent) 36%, var(--color-surface)); }
.drawer__row:hover  { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.drawer__row:active { background: color-mix(in srgb, var(--color-text) 13%, transparent); }
.drawer__row.is-on:hover  { background: color-mix(in srgb, var(--color-accent) 26%, transparent); }
.drawer__row.is-on:active { background: color-mix(in srgb, var(--color-accent) 34%, transparent); }
.appcell:hover  .apptile { border-color: var(--color-accent-600); }
.appcell:active .apptile { background: color-mix(in srgb, var(--color-accent) 28%, transparent); }
.listrow[data-act]:hover  { background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.listrow[data-act]:active { background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.chip:hover     { border-color: color-mix(in srgb, var(--color-text) 30%, transparent); }
.chip.is-on:hover { border-color: var(--color-accent-400); }
.searchpill:hover { border-color: color-mix(in srgb, var(--color-text) 30%, transparent); }
.ghostbtn:hover   { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.solidbtn:hover, .submitbtn:hover { background: color-mix(in srgb, var(--color-accent) 24%, transparent); }
.solidbtn:active, .submitbtn:active { background: color-mix(in srgb, var(--color-accent) 34%, transparent); }
.sh-row[data-act]:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.cal-day:hover  { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.cal-day.is-on:hover { background: color-mix(in srgb, var(--color-accent) 24%, transparent); }
.thumb:hover .thumb__surface { box-shadow: 0 0 0 1px var(--color-accent-600); }

/* Overlays animate in; the design shows them landed. */
@media (prefers-reduced-motion: no-preference) {
  .scrim  { animation: nc-fade 160ms ease both; }
  .drawer { animation: nc-slide-left 200ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .sheet  { animation: nc-slide-up 220ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
}
@keyframes nc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nc-slide-left { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes nc-slide-up  { from { transform: translateY(100%); }  to { transform: none; } }
