:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  background: #d9d9d9;
  color: #141414;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
.phone {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #3d3d3d;
  --line: #c8c8c8;
  --soft: #f3f3f3;
  width: min(390px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow-x: clip;
}
.phone.dark {
  --bg: #111111;
  --ink: #f4f4f4;
  --muted: #d2d2d2;
  --line: #8d8d8d;
  --soft: #1c1c1c;
  color-scheme: dark;
}
.family-a, .family-a button, .family-a input, .family-a select, .family-a textarea {
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
}
.family-b, .family-b button, .family-b input, .family-b select, .family-b textarea {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.family-c, .family-c button, .family-c input, .family-c select {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.family-c h1, .family-c h2, .family-c .display, .family-c .title-btn {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: 500;
}
h1, h2, p { overflow-wrap: break-word; }
h1 { font-size: 32px; line-height: 1.12; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.02em; }
.family-b h1 { font-size: 22px; letter-spacing: 0; font-weight: 700; }
h2 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; font-weight: 600; }
.display { font-size: 46px; line-height: 0.98; margin: 0 0 12px; font-weight: 500; letter-spacing: -0.03em; }
.family-b .display { font-family: system-ui, sans-serif; font-weight: 700; letter-spacing: -0.03em; }
p { margin: 0 0 12px; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: 1; }
::selection { background: #141414; color: #fff; }
.dark ::selection { background: #f4f4f4; color: #111; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.chrome {
  position: sticky; top: 0; z-index: 30;
  height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 12px;
  background: var(--bg); color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: system-ui, sans-serif; font-size: 14px;
}
.chrome a, .chrome button {
  min-height: 44px; display: inline-flex; align-items: center;
  color: inherit; font: inherit; background: none; border: 0;
  text-decoration: underline; text-underline-offset: 3px; padding: 0 4px;
}

.pad { padding: 16px 16px 32px; }
.tight { padding-bottom: 8px; }
.kicker { margin: 0 0 6px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 650; }
.lead { font-size: 18px; line-height: 1.4; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 15px; margin-top: 6px; }
.error { margin: 6px 0 0; font-weight: 700; border-left: 3px solid var(--ink); padding-left: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row.gap > .btn, .row.gap > .btn.ghost { flex: 1; width: auto; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack .btn { margin-top: 0; }
.grow { min-width: 0; flex: 1; }
.hair { border-top: 1px solid var(--line); }

.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; width: 100%; padding: 10px 14px; margin-top: 8px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  text-decoration: none; font-weight: 650; text-align: center;
}
.btn.ghost, a.btn.ghost { background: transparent; color: var(--ink); }
.btn.slim, a.btn.slim { width: auto; margin-top: 0; white-space: nowrap; }
.btn-text {
  background: none; border: 0; color: inherit; font: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  min-height: 44px; padding: 0 2px; display: inline-flex; align-items: center;
}
.btn-text.block { width: 100%; justify-content: center; }
button:disabled { color: var(--muted); }

.field { margin: 12px 0; }
.field label, .fset legend { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; padding: 0; }
.fset { border: 0; margin: 16px 0; padding: 0; min-inline-size: 0; }
input[type="text"], input[type="email"], input[type="search"], input[type="time"], select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--ink); background: var(--bg); color: var(--ink);
  border-radius: 0; font-size: 16px;
}
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice-btn {
  min-height: 48px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--ink); background: transparent; color: inherit;
}
.choice-btn[aria-checked="true"] { background: var(--ink); color: var(--bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--ink); background: transparent; color: inherit;
  text-decoration: none; display: inline-flex; align-items: center; font: inherit;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.rail { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; padding: 8px 0 12px; }

.steps, .checks, .plan-list, .menu-list, .names, .log, .cmp, .route { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; }
.step-no { font-size: 22px; min-width: 24px; line-height: 1.2; }
.checks { margin: 8px 0 16px; }
.checkline {
  display: flex; gap: 12px; align-items: center; width: 100%; min-height: 64px;
  text-align: left; background: transparent; color: inherit; border: 0;
  border-bottom: 1px solid var(--line); padding: 8px 0;
}
.checkline strong, .checkline .muted { display: block; }
.box {
  width: 28px; height: 28px; border: 1px solid var(--ink);
  display: grid; place-items: center; flex: 0 0 auto;
}
.checkline[aria-pressed="true"] .box { background: var(--ink); color: var(--bg); }
.count { font-variant-numeric: tabular-nums; }
.count strong { font-size: 40px; line-height: 1; }

.dayhead {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding: 4px 12px 0;
}
.daytitle { width: 100%; }
.dayhead h1, .mini h2, .daytitle h2 { font-size: 26px; margin: 0; }
.dayhead button, .col-c .row > button {
  min-height: 44px; min-width: 44px; padding: 8px; background: none; border: 0; color: inherit; font: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.agenda { padding-bottom: 8px; }
a.event {
  display: grid; grid-template-columns: 108px 1fr; gap: 8px; align-items: start;
  min-height: 56px; padding: 10px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
a.event time { font-variant-numeric: tabular-nums; font-size: 15px; }
a.event strong { display: block; font-size: 18px; font-weight: 600; }
a.event span span { display: block; color: var(--muted); font-size: 15px; }
.gapline, .note-line { margin: 0; padding: 8px 0; }
.family-a .gapline { font-style: italic; }
.weeknav {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center;
  padding: 4px 8px 0;
}
.weeknav p { margin: 0; text-align: center; }
.weeknav .kicker { display: block; }
.weeknav button {
  min-height: 44px; min-width: 44px; padding: 8px; background: none; border: 0; color: inherit;
  font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.daystrip { display: grid; grid-template-columns: repeat(7, 1fr); overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.daystrip button {
  min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 0; border-right: 1px solid var(--line); background: transparent; color: inherit; padding: 4px 0;
}
.daystrip button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.daystrip button:disabled { color: var(--muted); text-decoration: none; background: var(--soft); }
.week-group h3 { margin: 12px 16px 0; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.hit.is-out { color: var(--muted); cursor: default; }
.hourgrid { display: grid; grid-template-columns: 52px 1fr; padding: 0 8px 24px; }
.h-label, .h-slot { height: 64px; }
.h-label { font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.h-col { position: relative; border-left: 1px solid var(--line); }
.h-slot { border-top: 1px solid var(--line); }
.block-ev {
  position: absolute; left: 4px; right: 4px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--ink); border-left-width: 4px;
  text-decoration: none; padding: 4px 8px; overflow: hidden; display: flex; flex-direction: column; gap: 2px;
}
.block-ev .avatar { width: 22px; height: 22px; font-size: 9px; }
.block-ev strong { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-ev span { font-size: 13px; }
.dayblock { scroll-margin-top: 48px; }
.dayblock h2 {
  position: sticky; top: 44px; z-index: 4; background: var(--bg);
  margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--ink); font-size: 18px;
}
.dayblock h2 span { font-weight: 500; }
.dayblock .agenda { padding: 0 16px 8px; }
.head-c { align-items: flex-end; }

.plan-item { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.hit {
  display: flex; width: 100%; min-height: 48px; align-items: center; gap: 8px;
  padding: 10px 0; text-align: left; text-decoration: none; background: transparent;
  border: 0; color: inherit; font: inherit;
}
.plan-item .hit { width: auto; flex: 1; }
.hit strong, .hit .muted, .hit .grow > span { display: block; }
.menu-list .hit { padding-left: 16px; padding-right: 16px; border-bottom: 1px solid var(--line); }
.menu-list { border-top: 1px solid var(--line); }

.inbox-card { border-top: 1px solid var(--ink); padding: 12px 0; }
.inbox-card h2 { margin: 0 0 6px; }
.inbox-card h2 a { color: inherit; display: flex; align-items: center; min-height: 44px; }
.preview { background: var(--soft); padding: 12px; margin-top: 8px; }
.preview p:last-child { margin-bottom: 0; }

.facts div { display: grid; grid-template-columns: 104px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; }
.names li { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.dock, .tabbar {
  position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(390px, 100%); display: flex; gap: 8px; padding: 8px;
  background: var(--bg); border-top: 1px solid var(--ink);
}
.dock .btn { margin-top: 0; }
.tabbar { gap: 0; padding: 0; }
.tabbar button {
  flex: 1; min-height: 52px; background: transparent; color: inherit; border: 0;
  border-right: 1px solid var(--line); font: inherit; font-weight: 650;
}
.tabbar button[aria-current="page"] { background: var(--ink); color: var(--bg); }
article.dock-page, .dock-page { padding-bottom: 88px; }
.fold { padding: 0 0 12px; }

.seg { display: flex; border-bottom: 1px solid var(--ink); }
.seg button {
  flex: 1; min-height: 48px; padding: 8px 6px; background: transparent; color: inherit;
  border: 0; border-right: 1px solid var(--line); font: inherit;
}
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.topbar { display: flex; gap: 8px; align-items: stretch; padding: 8px; }
.topbar .seg { flex: 1; border: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.topbar .slim { align-self: center; }

.title-btn {
  font-size: 34px; line-height: 1.1; min-height: 48px; padding: 0 0 4px;
  background: none; border: 0; border-bottom: 1px solid var(--ink); color: inherit; text-align: left;
}
.menu { border: 1px solid var(--ink); margin-top: 8px; background: var(--bg); }
.menu button {
  display: flex; width: 100%; min-height: 48px; align-items: center; text-align: left;
  padding: 8px 12px; background: var(--bg); color: inherit; border: 0; border-bottom: 1px solid var(--line); font: inherit;
}

.cmp li { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cmp a { color: inherit; display: flex; align-items: center; min-height: 44px; }
.cmp dl { display: grid; grid-template-columns: 1.3fr 0.9fr 0.5fr; gap: 8px; margin: 8px 0; }
.cmp dt { font-size: 13px; color: var(--muted); }
.cmp dd { margin: 4px 0 0; }
.route li { padding: 4px 0 12px; }
.route h2 { margin: 0 0 4px; }
.route h2 a { color: inherit; display: flex; align-items: center; min-height: 44px; }
.leg { margin: 4px 0 8px; padding: 4px 0 4px 12px; border-left: 1px solid var(--ink); }
.alt { border-top: 1px solid var(--ink); padding-top: 12px; margin-top: 8px; }

.sheet-back, .modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 40; }
.sheet {
  position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(390px, 100%); max-height: min(82dvh, 700px); overflow: auto;
  background: var(--bg); color: var(--ink); border-top: 1px solid var(--ink);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; background: var(--bg); padding: 4px 0; }
.sheet-bar h2 { margin: 0; font-size: 20px; }
.modal-back { z-index: 60; display: grid; place-items: end center; padding: 16px; }
.modal { width: min(360px, 100%); background: var(--bg); color: var(--ink); border: 1px solid var(--ink); padding: 16px; margin-bottom: 8px; }
.modal h2 { font-size: 22px; }

.digits { display: flex; gap: 6px; margin: 12px 0 4px; }
.digit {
  width: 48px; height: 52px; flex: 1 1 0; text-align: center; font-size: 22px; padding: 0;
  border: 1px solid var(--ink); background: var(--bg); color: var(--ink);
}
.confirmed { font-weight: 700; }

.regblock { margin: 8px 0 20px; }
.regbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.regbar p { margin: 0; flex: 1; }
.regbar .btn { width: auto; margin: 0; }
.editor { padding: 4px 0 16px; }
.log li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.card { border-top: 1px solid var(--ink); }
.card .hit { padding-left: 0; padding-right: 0; }
.card-link {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 64px; margin: 8px 0; padding: 8px 0;
  color: inherit; text-decoration: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.profile-kicker { text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; font-weight: 650; }

.off-head h1 { margin-bottom: 8px; }
.off-head .seg { margin: 0 -16px; }
.off-ind { margin: 0; font-size: 14px; }
.off-a .off-ind { padding-top: 8px; }
.off-b .off-ind { padding: 10px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.off-c .off-ind {
  position: fixed; z-index: 16; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(min(390px, 100%) - 24px);
  white-space: nowrap;
  border: 1px solid var(--ink); background: var(--bg); padding: 8px 12px;
}
.frame { border: 1px solid var(--ink); padding: 12px 12px 4px; }
.off-c.has-cap { padding-bottom: 64px; }

.done { position: relative; min-height: calc(100dvh - 44px); display: flex; flex-direction: column; justify-content: flex-end; }
.done .display { font-size: 42px; }
canvas.confetti {
  position: fixed; z-index: 25; top: 0; bottom: 0; left: 50%;
  width: min(390px, 100%); transform: translateX(-50%);
  pointer-events: none;
}
.back { margin: 0 0 8px; }

/* Photo options. Type stays black on white; the picture carries the color. */
.photo-card, .mosaic-card, .rail-card, .thumb-row {
  color: inherit; text-decoration: none;
}
.photo-card { display: flex; flex-direction: column; margin: 0 0 8px; }
.photo-card img, .hero, .rail-card img, .mosaic img, .thumb-row img {
  display: block; width: 100%; object-fit: cover; background: #e6e6e6;
}
.photo-card img { height: 176px; }
.photo-cap {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 0 12px; background: var(--bg); color: var(--ink);
}
.photo-cap time { font-variant-numeric: tabular-nums; font-size: 14px; }
.photo-cap strong { font-size: 18px; line-height: 1.25; }
.photo-cap span { color: var(--muted); font-size: 14px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.ph-grid .photo-card { margin: 0; }
.ph-grid .photo-card.is-col { grid-column: 1 / -1; }
.stack-thumbs { display: flex; align-items: center; padding: 4px 0; }
.stack-thumbs img { width: 40px; height: 40px; object-fit: cover; margin-left: -10px; border: 2px solid var(--bg); background: #ddd; }
.stack-thumbs img:first-child { margin-left: 0; }
.stop-line { display: block; font-size: 14px; }
.feed-col { display: block; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.feed-col .cover { width: 100%; height: 180px; object-fit: cover; display: block; }
.feed-col .photo-cap { padding: 8px 16px 12px; }
.ph-grid .photo-card img { height: 112px; }
.ph-grid .photo-cap { padding-bottom: 0; }
.ph-grid .photo-cap strong { font-size: 15px; }
.mosaic-card { display: block; margin: 0 0 14px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mosaic img { height: 86px; }
.photo-rail {
  display: flex; gap: 12px; overflow-x: auto; max-width: 100%;
  padding: 0 16px 4px; scroll-snap-type: x mandatory;
}
.rail-card { flex: 0 0 188px; display: flex; flex-direction: column; min-height: 44px; scroll-snap-align: start; }
.rail-card img { width: 188px; height: 124px; }
.rail-card > span { display: flex; align-items: center; min-height: 44px; padding: 6px 0 8px; font-weight: 650; }
.thumb-list { list-style: none; margin: 0; padding: 0; }
.thumb-row {
  display: flex; gap: 12px; align-items: center; min-height: 72px;
  padding: 8px 16px; border-bottom: 1px solid var(--line);
}
.thumb-row img { width: 72px; height: 72px; flex: 0 0 auto; }
.thumb-row strong, .thumb-row .muted { display: block; }
.hero { height: 210px; }
.has-float { padding-bottom: 132px; }
.switch-e.menu-open { padding-bottom: 240px; }
.float-cluster {
  position: fixed; z-index: 22; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: calc(min(390px, 100%) - 16px);
}
.float-pill { display: flex; background: var(--bg); border: 1px solid var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.float-pill button, .float-gear {
  min-height: 48px; padding: 0 12px; background: var(--bg); color: var(--ink);
  border: 0; font: inherit; font-weight: 650;
}
.float-pill button + button { border-left: 1px solid var(--ink); }
.float-pill button[aria-current="page"] { background: var(--ink); color: var(--bg); }
.float-gear { border: 1px solid var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.float-gear[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fab-slot {
  position: fixed; z-index: 22; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: min(390px, 100%); display: flex; flex-direction: column; align-items: flex-end;
  gap: 8px; padding: 0 14px; pointer-events: none;
}
.fab, .fab-menu { pointer-events: auto; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.fab-menu { width: 188px; background: var(--bg); border: 1px solid var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.fab-menu button {
  display: flex; width: 100%; min-height: 48px; align-items: center; padding: 0 14px;
  background: var(--bg); color: var(--ink); border: 0; border-bottom: 1px solid var(--line);
  font: inherit; text-align: left;
}

.fork {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; min-height: 72px; margin-top: 12px; padding: 14px;
  text-align: left; background: transparent; color: inherit;
  border: 1px solid var(--ink); font: inherit;
}
.fork span { color: var(--muted); font-size: 15px; }
.place-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.place {
  display: flex; gap: 10px; align-items: center; width: 100%; min-height: 64px;
  padding: 8px; text-align: left; background: transparent; color: inherit;
  border: 1px solid var(--ink); font: inherit;
}
.place img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.place span span { display: block; color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero { width: 100%; object-fit: cover; margin: 8px 0; }
.photo-edits, .stop-edits { list-style: none; margin: 0; padding: 0; }
.photo-edit, .stop-edit {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.photo-edit img, .chip img { width: 44px; height: 44px; object-fit: cover; }
.photo-edit button, .stop-edit button {
  min-height: 44px; padding: 8px 10px; background: transparent; color: inherit;
  border: 1px solid var(--ink); font: inherit;
}
.edit-rows { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.edit-line {
  display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 0; background: transparent; color: inherit; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; text-align: left;
}
.edit-line strong { font-weight: 650; text-align: right; }
.edit-body { padding: 4px 0 12px; }
.menu-list button {
  display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 0; background: transparent; color: inherit; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; text-align: left;
}
.menu-list button strong { font-weight: 550; text-align: right; max-width: 58%; }
.hist-list { list-style: none; margin: 0; padding: 0; }
.hist {
  display: flex; gap: 8px; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.hist > span { flex: 1; }
.avatars { display: flex; flex-wrap: wrap; gap: 4px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: var(--bg);
}
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(358px, calc(100% - 24px)); background: var(--ink); color: var(--bg);
  padding: 12px; display: flex; gap: 8px; align-items: center;
}
.toast p { margin: 0; flex: 1; }
.toast .btn { background: var(--bg); color: var(--ink); margin: 0; }
.has-toast { padding-bottom: 96px; }
.guest-rows { list-style: none; margin: 0; padding: 0; }
.guest-rows li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--line); }
.xcard { border-top: 1px solid var(--ink); padding: 12px 0 16px; }
.xcard h2 { margin: 0 0 6px; font-size: 22px; }
.xcard img { width: 100%; height: 120px; object-fit: cover; margin-bottom: 8px; }
.overlap { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--ink); }
.by { margin: 6px 0; }
.slot { border-top: 1px solid var(--ink); padding: 8px 0 4px; }
.slot h2 { margin: 8px 0; font-size: 18px; }
.slot ul { list-style: none; margin: 0; padding: 0; }
.slot li { padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.slot li strong, .slot li .muted { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  canvas.confetti { display: none; }
}

.avatars.is-over { gap: 0; }
.avatars.is-over .avatar { margin-left: -8px; box-shadow: 0 0 0 1px var(--bg); }
.avatars.is-over .avatar:first-child { margin-left: 0; }
.avatars.is-spaced { gap: 6px; }
.avatar.is-more { background: var(--ink); color: var(--bg); }

.spec h2 { margin: 22px 16px 8px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 0 12px 8px; }
.spec-grid .wide { grid-column: 1 / -1; }
.spec-letter { margin: 0; font-weight: 700; font-size: 18px; }
.spec-name { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.spec-block { min-width: 0; }
.spec-card { margin-top: 6px; }
.spec-block .kicker { margin-top: 10px; }

.ec { display: flex; flex-direction: column; min-height: 0; color: inherit; text-decoration: none; background: var(--bg); border: 1px solid var(--ink); overflow: hidden; }
.ec-photo { width: 100%; height: 96px; object-fit: cover; display: block; }
.ec-body { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 4px; }
.ec-title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; line-height: 1.25; }
.ec-title i { width: 14px; height: 2px; background: currentColor; flex: none; }
.ec-title strong { font-weight: 650; }
.ec-meta { color: var(--muted); font-size: 13px; }
.ec-time { font-size: 14px; }
.ec-time > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ec-d { position: relative; display: block; min-height: 148px; background: #141414; color: #fff; }
.ec-d .ec-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ec-scrim { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; background: #141414; }
.ec-d .ec-title { color: #fff; }
.ec-d .avatar { background: #fff; color: #141414; border-color: #fff; }
.ec-d .avatar.is-more { background: transparent; color: #fff; border-color: #fff; }

.board { display: grid; margin: 0 8px 20px; }
.board-hours, .board-bars, .board-lane { position: relative; }
.board-hour { position: absolute; left: 0; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.board-lane { border-left: 1px solid var(--line); }
.rail-bar { position: absolute; width: 8px; background: var(--ink); }
.board-card, .peek, .more-box { position: absolute; }
.board-card .ec, .peek-card .ec, .more-box .ec { height: 100%; border: 0; }
.board-card, .more-box { border: 1px solid var(--ink); background: var(--bg); overflow: hidden; }
.board-card .ec-a, .board-card .ec-b, .peek-card .ec-a, .peek-card .ec-b, .more-box .ec-a, .more-box .ec-b { display: flex; flex-direction: column; }
.board-card .ec-photo, .peek-card .ec-photo, .more-box .ec-photo { flex: 1 1 0; height: auto; min-height: 0; }
.board-card .ec-d, .peek-card .ec-d, .more-box .ec-d { min-height: 0; }
.board-card .avatar, .peek-card .avatar, .more-box .avatar { width: 22px; height: 22px; font-size: 9px; }
.board-card .ec-title strong, .peek-card .ec-title strong, .more-box .ec-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek { display: flex; flex-direction: column; overflow: hidden; }
.peek-view { flex: 1; min-height: 0; overflow: hidden; }
.peek-track { display: flex; height: 100%; }
.peek-card { flex: 0 0 84%; height: 100%; padding-right: 8px; }
.peek-card .ec { border: 0; background: var(--elevated, #fff); }
.peek-pager { display: flex; align-items: center; gap: 0; min-height: 44px; }
.peek-pager button { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; }
.peek-pager button::after { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; border: 1px solid var(--ink); }
.peek-pager button[aria-current="true"]::after { background: var(--ink); }
.peek-pager span { margin-left: auto; padding-right: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.more-box { display: flex; flex-direction: column; }
.more-row { flex: none; min-height: 44px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--ink); background: var(--bg); color: inherit; padding: 8px 10px; font: inherit; }
.rail-c { display: flex; flex-direction: column; gap: 8px; }
.rail-c .ec { margin: 0; }

.ph-frame { position: relative; background: #141414; min-height: 120px; }
.ph-frame > img { width: 100%; height: 168px; object-fit: cover; display: block; }
.ph-empty { display: flex; min-height: 140px; align-items: center; justify-content: center; color: #fff; }
.round-back {
  position: absolute; z-index: 2; top: 8px; left: 8px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--bg); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 20px; line-height: 1;
}
.ph-badge {
  position: absolute; right: 8px; bottom: 8px; min-width: 44px; height: 32px; padding: 0 8px;
  border-radius: 999px; background: #141414; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.ph-b .ph-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; background: #141414; }
.ph-dots button { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; }
.ph-dots button::after { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; border: 1px solid #fff; }
.ph-dots button[aria-current="true"]::after { background: #fff; }
.ph-thumbs { display: flex; gap: 8px; padding: 8px 12px 0; overflow-x: auto; }
.ph-thumbs button { flex: none; width: 72px; height: 52px; padding: 0; border: 1px solid var(--ink); background: none; }
.ph-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-thumbs button[aria-current="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.back-bar { position: relative; height: 60px; }

.nav-round, .nav-pill {
  min-width: 56px; min-height: 56px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font: inherit; font-weight: 650; display: inline-flex; align-items: center; justify-content: center;
}
.nav-pill { padding: 0 16px; }
.nav-slot:not(.is-demo) {
  position: fixed; z-index: 25; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(390px, 100%); display: flex; justify-content: flex-end; padding: 0 16px; pointer-events: none;
}
.nav-slot:not(.is-demo).is-bar {
  bottom: 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--ink);
}
.nav-slot:not(.is-demo) .btn,
.nav-slot:not(.is-demo) .nav-round,
.nav-slot:not(.is-demo) .nav-pill { pointer-events: auto; }
.nav-slot.is-bar .btn { margin-top: 0; }
.nav-stage { position: relative; min-height: 132px; border: 1px solid var(--line); }
.nav-stage .note-line { padding: 12px; }
.nav-slot.is-demo { position: absolute; right: 12px; bottom: 12px; }
.nav-slot.is-demo.is-bar { left: 8px; right: 8px; }
.detail-new.has-nav { padding-bottom: 128px; }
.detail-stops { list-style: none; margin: 0 0 12px; padding: 0; }
.detail-stops li { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.detail-new .seg { margin-bottom: 12px; }
