/* Visual system. Every screen reads these. Layout stays in base.css and desk.css.
   Text secondary is #636366 (about 6:1 on white), not the 60% label, so 13px captions stay AA.
   Filled red is #E0311A so white icons and labels clear 4.5:1. #FF3B30 is the line and the dot. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  --large-title-size: 34px; --large-title-lh: 41px; --large-title-w: 700; --large-title-track: -0.02em;
  --title1-size: 28px; --title1-lh: 34px; --title1-w: 700; --title1-track: -0.015em;
  --title2-size: 22px; --title2-lh: 28px; --title2-w: 600; --title2-track: -0.01em;
  --title3-size: 20px; --title3-lh: 25px; --title3-w: 600; --title3-track: -0.01em;
  --headline-size: 17px; --headline-lh: 22px; --headline-w: 600; --headline-track: -0.005em;
  --body-size: 17px; --body-lh: 22px; --body-w: 400; --body-track: -0.005em;
  --callout-size: 16px; --callout-lh: 21px;
  --subhead-size: 15px; --subhead-lh: 20px;
  --footnote-size: 13px; --footnote-lh: 18px;
  --caption-size: 12px; --caption-lh: 16px; --caption-w: 500; --caption-track: 0.01em;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px;
  --r-sm: 6px; --r-ctl: 10px; --r-seg: 9px; --r-card: 14px; --r-sheet: 20px; --r-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fab-clear: 88px;
  --photo-filter: none;
  --cal-pin: 168px;
  --accent-raw: #FF3B30;
  --accent-button: #E0311A;
  --accent-on: #ffffff;
  color-scheme: light;
}

.phone {
  --bg: #ffffff;
  --grouped: #F2F2F7;
  --elevated: #ffffff;
  --ink: #000000;
  --muted: #636366;
  --label-secondary: rgba(60, 60, 67, 0.6);
  --label-tertiary: rgba(60, 60, 67, 0.45);
  --separator: rgba(60, 60, 67, 0.18);
  --fill: rgba(120, 120, 128, 0.12);
  --line: var(--separator);
  --soft: var(--grouped);
  --accent: var(--accent-raw);
  --bar: rgba(255, 255, 255, 0.72);
  --scrim: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0) 48px);
  background: var(--grouped);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: calc(var(--body-lh) / var(--body-size));
  letter-spacing: var(--body-track);
}

.phone.dark {
  --bg: #000000;
  --grouped: #1C1C1E;
  --elevated: #2C2C2E;
  --ink: #ffffff;
  --muted: #C7C7CC;
  --label-secondary: rgba(235, 235, 245, 0.6);
  --label-tertiary: rgba(235, 235, 245, 0.4);
  --separator: rgba(84, 84, 88, 0.65);
  --fill: rgba(120, 120, 128, 0.24);
  --accent: #FF453A;
  --accent-button: #E0311A;
  --bar: rgba(30, 30, 30, 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .phone:not(.light) {
    --bg: #000000;
    --grouped: #1C1C1E;
    --elevated: #2C2C2E;
    --ink: #ffffff;
    --muted: #C7C7CC;
    --label-secondary: rgba(235, 235, 245, 0.6);
    --label-tertiary: rgba(235, 235, 245, 0.4);
    --separator: rgba(84, 84, 88, 0.65);
    --fill: rgba(120, 120, 128, 0.24);
    --accent: #FF453A;
    --bar: rgba(30, 30, 30, 0.6);
    color-scheme: dark;
  }
}

body {
  background: #E5E5EA;
  font-family: var(--font);
}
.phone.dark ~ *,
.phone.dark { }
@media (prefers-color-scheme: dark) {
  body:has(.phone:not(.light)) { background: #000; }
}

.is-desk { --body-size: 15px; --body-lh: 20px; }
@media (min-width: 1100px) {
  .is-desk { font-size: 15px; line-height: calc(20 / 15); }
}

.phone, .phone * {
  font-family: var(--font) !important;
}
.phone ::selection { background: rgba(224, 49, 26, 0.18); color: inherit; }
.phone h1 {
  font-size: var(--large-title-size);
  line-height: calc(var(--large-title-lh) / var(--large-title-size));
  font-weight: var(--large-title-w);
  letter-spacing: var(--large-title-track);
  background: transparent;
}
.phone p, .phone .lead, .phone li { background: transparent; }
.phone a.icon-gear, .phone button.icon-gear {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: var(--r-pill); background: var(--fill); color: var(--ink);
  box-shadow: none; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; flex: none;
}
.phone .v20-head {
  --collapse: 0;
  position: sticky; top: var(--chrome-h, 44px); z-index: 8; background: var(--grouped); padding: 4px 12px 0;
}
.phone .v20-title h1 {
  margin: 0;
  font-size: calc(var(--large-title-size) * (1 - var(--collapse)) + var(--headline-size) * var(--collapse));
  line-height: 1.15;
}
.phone .v20-range {
  margin: 0 0 2px; font-size: var(--footnote-size); line-height: 1.2; color: var(--muted);
  opacity: calc(1 - var(--collapse));
  max-height: calc(20px * (1 - var(--collapse)));
  overflow: hidden;
}
.phone .v20-strip { display: flex; align-items: center; gap: 2px; }
.phone .chev {
  width: 44px; height: 44px; min-width: 44px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--accent); padding: 0; flex: none;
}
.phone .chev::before {
  content: ""; display: block; width: 22px; height: 22px; margin: 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14.5 5.5 8 12l6.5 6.5 1.4-1.4L10.8 12l5.1-5.1z'/></svg>") center / 22px 22px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14.5 5.5 8 12l6.5 6.5 1.4-1.4L10.8 12l5.1-5.1z'/></svg>") center / 22px 22px no-repeat;
}
.phone .chev[data-act="week-next"]::before { transform: scaleX(-1); }
.phone .v20-strip .daystrip { flex: 1; min-width: 0; }
.phone .v20-tools { display: flex; align-items: center; gap: 4px; position: relative; }
.phone .v20-seg { margin: 4px 0; }
.phone .v20-head.is-pinned .v20-range { display: none; }
.phone .v20-head.is-pinned .v20-seg { margin: 0; }
.phone .v20-tools .btn-text { min-height: 32px; }
.phone .v20-head .seg button { min-height: 36px; }
.phone .icon-view {
  width: 44px; height: 44px; min-width: 44px; border: 0; border-radius: var(--r-pill);
  background: var(--fill); color: var(--ink); padding: 0;
}
.phone .icon-view::before {
  content: ""; width: 20px; height: 20px; display: block; margin: 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'><path d='M5 7h14M5 12h14M5 17h9'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'><path d='M5 7h14M5 12h14M5 17h9'/></svg>") center / 20px 20px no-repeat;
}
.phone .v20-menu { position: absolute; right: 0; top: 48px; z-index: 12; min-width: 180px; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); border: 0; }
.phone .v20-menu button[aria-checked="true"] { color: var(--accent); font-weight: 600; }
.phone .daystrip button.is-today:not([aria-selected="true"]) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.phone .daystrip .dot { width: 4px; height: 4px; border-radius: var(--r-pill); background: var(--accent); display: block; margin-top: 2px; }
.phone .daystrip button[aria-selected="true"] .dot { background: var(--accent-on); }
.phone .v20-itin .dayblock { scroll-margin-top: calc(52px + var(--cal-pin)); }
.phone .v20-itin .dayblock h2 { top: calc(44px + var(--cal-pin)); }
.phone .v-card { margin: 0 0 8px; }
.phone .v-card .ec { box-shadow: var(--shadow-sm); }
/* Gear outline (Lucide “settings”, ISC license). It was a sun: a circle with eight rays. */
.phone a.icon-gear::before, .phone button.icon-gear::before {
  content: ""; width: 22px; height: 22px; display: block; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/><circle cx='12' cy='12' r='3'/></svg>") center / 22px 22px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/><circle cx='12' cy='12' r='3'/></svg>") center / 22px 22px no-repeat;
}
.phone .ec-scrim { background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); }

.phone h1, .phone .display {
  font-weight: var(--large-title-w);
  font-size: var(--large-title-size);
  line-height: calc(var(--large-title-lh) / var(--large-title-size));
  letter-spacing: var(--large-title-track);
  background: transparent;
}
.phone .display { font-size: var(--large-title-size); line-height: calc(var(--large-title-lh) / var(--large-title-size)); letter-spacing: var(--large-title-track); font-weight: var(--large-title-w); }
.phone h2 {
  font-weight: var(--title3-w);
  font-size: var(--title3-size);
  line-height: calc(var(--title3-lh) / var(--title3-size));
  letter-spacing: var(--title3-track);
}
.phone p { font-weight: var(--body-w); letter-spacing: var(--body-track); }
.phone .kicker, .phone .profile-kicker {
  font-size: var(--footnote-size);
  line-height: calc(var(--footnote-lh) / var(--footnote-size));
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.phone .muted, .phone .hint, .phone .ec-meta, .phone .photo-cap span { color: var(--muted); }
.phone .pad { padding: var(--s-4) var(--s-4) var(--s-7); }
@media (min-width: 1100px) {
  .is-desk .pad { padding: var(--s-6) var(--s-7) var(--s-8); }
}

.phone .btn, .phone a.btn {
  background: var(--accent-button);
  color: var(--accent-on);
  border: 0;
  border-radius: var(--r-ctl);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  min-height: 44px;
}
.phone .btn.ghost, .phone a.btn.ghost {
  background: var(--fill);
  color: var(--ink);
  box-shadow: none;
}
.phone .btn-text, .phone a.btn-text {
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--accent);
  background: transparent;
  font-weight: 600;
  min-height: 44px;
}
.phone button:disabled { color: var(--muted); }

.phone input[type="text"], .phone input[type="email"], .phone input[type="search"], .phone input[type="time"], .phone select, .phone .digit {
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--fill);
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  width: 100%;
}
.phone .choice-btn, .phone .chip, .phone .fork, .phone .place {
  border: 0;
  border-radius: var(--r-card);
  background: var(--elevated);
  box-shadow: var(--shadow-sm);
}
.phone .choice-btn[aria-checked="true"], .phone .chip[aria-pressed="true"] {
  background: var(--elevated);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.phone .place img, .phone .chip img, .phone .photo-edit img { border-radius: var(--r-sm); }

.phone .seg, .phone .desk-topnav, .phone .float-pill {
  background: var(--fill);
  border: 0;
  border-radius: var(--r-seg);
  padding: 2px;
  gap: 2px;
}
.phone .seg button, .phone .desk-topnav button, .phone .float-pill button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  min-height: 44px;
}
.phone .seg button[aria-selected="true"], .phone .seg button[aria-pressed="true"],
.phone .desk-topnav button[aria-selected="true"],
.phone .float-pill button[aria-current="page"] {
  background: var(--elevated);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.phone .chrome, .phone .dock, .phone .tabbar, .phone .sheet-bar, .phone .dayblock h2 {
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--separator);
}
.phone .chrome { border-bottom: 0.5px solid var(--separator); }
.phone .tabbar button[aria-current="page"] { background: transparent; color: var(--accent); font-weight: 600; }
.phone .dock, .phone .tabbar, .phone .float-pill, .phone .fab, .phone .nav-round, .phone .round-back {
  box-shadow: var(--shadow-lg);
}
.phone .float-pill, .phone .fab, .phone .fab-menu { border: 0; border-radius: var(--r-pill); }
.phone .fab { background: var(--accent-button); color: var(--accent-on); }
.phone .fab-menu { border-radius: var(--r-card); overflow: hidden; }

.phone .daystrip { border: 0; gap: 4px; padding: 4px 8px 8px; background: transparent; }
.phone .daystrip button { border: 0; border-radius: var(--r-ctl); min-height: 52px; }
.phone .daystrip button[aria-selected="true"], .phone .week-h.is-on, .phone .week-h[aria-pressed="true"] {
  background: var(--accent-button);
  color: var(--accent-on);
}
.phone .daystrip button:disabled, .phone .week-h.is-out { background: transparent; color: var(--muted); }

.phone .sheet, .phone .modal, .phone .desk-dialog {
  border: 0;
  border-radius: var(--r-sheet);
  background: var(--elevated);
  box-shadow: var(--shadow-lg);
}
.phone .sheet { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.phone .ec, .phone .block-ev, .phone .photo-card, .phone .fork, .phone .xcard, .phone .inbox-card,
.phone .frame, .phone .preview, .phone .drag-card, .phone .feed-col, .phone .rail-card, .phone .mosaic-card {
  border: 0;
  border-radius: var(--r-card);
  background: var(--elevated);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.phone .block-ev, .phone .board-card, .phone .more-box {
  border-radius: 12px;
  background: var(--accent-tint, color-mix(in srgb, var(--accent) 12%, var(--elevated)));
  box-shadow: none;
  border-left: 3px solid var(--accent);
}
.phone .board-card .ec, .phone .more-box .ec { background: transparent; box-shadow: none; }
.phone .peek-card .ec { background: var(--elevated); box-shadow: var(--shadow-sm); border: 0; }
.phone .rail-bar { display: none; }
.phone .board-hour, .phone .h-label, .phone .week-hour { color: var(--muted); font-size: var(--caption-size); font-weight: 500; }
.phone .board-lane, .phone .h-col, .phone .week-col { border-left: 0.5px solid var(--separator); }
.phone .h-slot { border-top: 0.5px solid var(--separator); }
.phone .now-line {
  position: absolute; left: 0; width: 22px; right: auto; height: 2px; background: var(--accent);
  z-index: 1; pointer-events: none;
}
.phone .board-card, .phone .more-box, .phone .peek, .phone .v-card { position: relative; z-index: 2; }
.phone .now-line::before {
  content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px;
  border-radius: var(--r-pill); background: var(--accent);
}

.phone .avatars { display: inline-flex; flex-wrap: nowrap; align-items: center; overflow: visible; }
.phone .avatar {
  width: 24px; min-width: 24px; height: 24px; flex: none;
  border: 0; border-radius: var(--r-pill);
  box-shadow: 0 0 0 2px var(--elevated);
  background: var(--fill); color: var(--ink);
  font-size: 10px; font-weight: 600; overflow: hidden;
}
.phone .avatars.is-over .avatar + .avatar { margin-left: -6px; }
.phone .avatar.is-more { background: var(--fill); color: var(--ink); }
.phone .board-card .avatar, .phone .peek-card .avatar, .phone .block-ev .avatar { width: 22px; height: 22px; }

.phone img, .phone .photo-card img, .phone .ec-photo, .phone .hero, .phone .cover, .phone .mosaic img, .phone .thumb-row img, .phone .rail-card img {
  border-radius: var(--r-sm);
  filter: var(--photo-filter);
}
.phone .ph-frame, .phone .hero {
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  overflow: hidden;
}
.phone .ph-frame > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; max-height: 292px; }
.phone .detail-new.has-nav, .phone .desk-detail-body { padding-bottom: 112px; }
.phone .ph-frame::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 72px;
  background: var(--scrim); pointer-events: none;
}
.phone .ec-d .ec-scrim {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
  border-radius: 0 0 var(--r-card) var(--r-card);
}
.phone .ph-badge { background: var(--bar); color: var(--ink); box-shadow: var(--shadow-sm); }
.phone .round-back {
  width: 44px; height: 44px; border: 0; border-radius: var(--r-pill);
  background: var(--bar); color: transparent;
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(180%) blur(20px);
}
.phone .round-back::after,
.phone .nav-round::after {
  content: ""; width: 20px; height: 20px; display: block;
  background: currentColor;
}
.phone .round-back::after {
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 6.5 8 12l6.5 5.5'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 6.5 8 12l6.5 5.5'/></svg>") center / 20px 20px no-repeat;
}
.phone .nav-round {
  width: 56px; height: 56px; min-width: 56px; min-height: 56px;
  background: var(--accent-button); color: var(--accent-on); border: 0;
}
.phone .nav-round span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.phone .nav-round::after {
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7M9 7h8v8'/></svg>") center / 22px 22px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7M9 7h8v8'/></svg>") center / 22px 22px no-repeat;
}
.phone .nav-pill { background: var(--accent-button); color: var(--accent-on); border: 0; border-radius: var(--r-pill); }

.phone .hit strong, .phone .desk-row strong, .phone .ec-title strong, .phone .block-ev strong, .phone .photo-cap strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone .ec-title { align-items: baseline; }
.phone .ec-title i { display: none; }
.phone .ec-time > span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.phone .board-card.is-title .ec-meta,
.phone .board-card.is-title .ec-time,
.phone .board-card.is-title .avatars,
.phone .board-card.is-title .ec-photo,
.phone .board-card.is-title .ec-stops,
.phone .board-card.is-nophoto .ec-photo { display: none; }
.phone .board-card .ec-photo, .phone .peek-card .ec-photo, .phone .more-box .ec-photo { min-height: 0; }
.phone .hist {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  column-gap: 12px; align-items: center;
}
.phone .hist .avatars { width: 28px; }
.phone .hist .avatar { width: 22px; height: 22px; font-size: 10px; }
.phone .hist > span { min-width: 0; }
.phone .hist.is-undone strong { text-decoration: line-through; }
.phone .desk-row, .phone .hit { align-items: center; }
.phone .detail-new.has-nav, .phone .has-float { padding-bottom: 96px; }
.phone .detail-new.has-nav {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 44px);
  overflow: hidden;
  padding-bottom: 0;
}
.phone .detail-new.has-nav .pad { flex: 1 1 auto; min-height: 0; overflow: auto; padding-bottom: var(--s-4); }
.phone .detail-new.has-nav .pad { padding-bottom: var(--fab-clear); }
.phone .has-float { padding-bottom: var(--fab-clear); }
.phone .nav-slot:not(.is-demo) {
  position: fixed;
  right: max(16px, calc((100vw - min(390px, 100vw)) / 2 + 16px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: auto;
  width: 56px;
  height: 56px;
  margin: 0;
  z-index: 25;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.is-desk .nav-slot:not(.is-demo) { right: 16px; }
.is-desk .desk-detail {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 44px);
  overflow: hidden;
}
.is-desk .desk-detail-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding-bottom: var(--s-6); }

.phone .menu, .phone .desk-side, .phone .desk-list, .phone .desk-panel, .phone .desk-drawer {
  border-color: var(--separator);
}
.phone .desk-side button[aria-current="page"] {
  background: var(--fill);
  color: var(--accent);
  border-radius: var(--r-ctl);
}
.phone .error { border-left-color: var(--accent-button); }

@media (prefers-reduced-motion: no-preference) {
  .phone .sheet, .phone .modal, .phone .desk-dialog, .phone .desk-panel {
    transition: transform 240ms var(--ease), opacity 240ms var(--ease);
  }
  .phone .btn:active, .phone .chip:active, .phone .choice-btn:active, .phone .ec:active, .phone .desk-row:active {
    transform: scale(0.97);
  }
}
@media (hover: hover) and (min-width: 1100px) {
  .phone .ec:hover, .phone .photo-card:hover, .phone .block-ev:hover, .phone .desk-row:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone .sheet, .phone .modal, .phone .desk-dialog, .phone .btn, .phone .ec { transition: none; }
}

/* Specimen helpers */
.tok-block { margin: 0 0 var(--s-7); }
.tok-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; }
.tok-swatch { width: 104px; min-height: 64px; border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: var(--s-2); font-size: var(--caption-size); }
.tok-space { height: 12px; background: var(--accent-button); border-radius: var(--r-pill); }
.tok-radius, .tok-elev { width: 88px; height: 56px; background: var(--elevated); }
.tok-dark {
  background: #1C1C1E; color: #fff; border-radius: var(--r-card); padding: var(--s-4); margin-top: var(--s-3);
}
.tok-dark .tok-swatch { color: #000; }
.t-large { font-weight: 700; font-size: 34px; line-height: 41px; letter-spacing: -0.02em; margin: 0; }
.t-1 { font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: -0.015em; margin: 0; }
.t-2 { font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; margin: 0; }
.t-3 { font-weight: 600; font-size: 20px; line-height: 25px; letter-spacing: -0.01em; margin: 0; }
.t-head { font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -0.005em; margin: 0; }
.t-body { font-weight: 400; font-size: 17px; line-height: 22px; letter-spacing: -0.005em; margin: 0; }
.t-call { font-weight: 400; font-size: 16px; line-height: 21px; margin: 0; }
.t-sub { font-weight: 400; font-size: 15px; line-height: 20px; margin: 0; }
.t-foot { font-weight: 400; font-size: 13px; line-height: 18px; margin: 0; color: var(--muted); }
.t-cap { font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: 0.01em; margin: 0; color: var(--muted); }
