/* Account page, on top of /assets/site.css. */

/* Sign-in: one centred card, two steps (form, then "check your inbox"). */
.signin { max-width: 25rem; margin: 6vh auto 0; }
.signin-card { padding: 32px 28px; text-align: left; }
.signin-mark { width: 44px; height: 44px; margin-bottom: 20px; }
.signin h1 { font-size: 1.6rem; margin-bottom: 8px; }
.signin .hint { line-height: 1.5; }
.signin .hint.small { font-size: 0.85rem; margin-top: 10px; }
.signin form label { margin-top: 20px; }
.signin .btn.wide { margin-top: 16px; }
.turnstile { margin-top: 14px; min-height: 65px; }
.signin-or { display: flex; align-items: center; gap: 12px; margin-top: 2px; color: var(--muted); font-size: 0.85rem; }
.signin-or::before, .signin-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.signin .signin-or + .btn.wide { margin-top: 12px; }
.turnstile:empty { display: none; }
.form-error { color: var(--bad); font-size: 0.9rem; margin-top: 10px; min-height: 1.4em; }
.sent-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
#sent-step .btn { margin-top: 20px; }
.center { text-align: center; margin-top: 18px; font-size: 0.85rem; }

/* Settings (settings.js): a list of groups and their pages. On a phone one
   at a time, sliding; from 900px (as `wide` in settings.js) side by side. */
.settings { position: relative; overflow-x: clip; padding-top: 8px; }
.settings-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.settings-side .eyebrow { margin-bottom: 10px; }
.settings-list { padding: 0; overflow: hidden; }
.settings-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.settings-row:last-child { border-bottom: 0; }
.settings-row:hover { background: var(--surface-2); }
.settings-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-title { font-weight: 500; }
.row-sum { color: var(--muted); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sum:empty::before { content: "\00a0"; }
.settings-row .chev, .page-back svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.settings-row .chev { color: var(--muted); }
.settings-groups { display: grid; gap: 12px; }
/* Your account at the top, as a tile of its own. */
.settings-row.set-account { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.set-account .avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent); color: var(--bg); font: 800 1.1rem var(--display); }
.set-account .row-title { font-weight: 700; overflow-wrap: anywhere; }
/* Settings as tiles, two to a row. */
.set-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.set-tile { display: grid; align-content: start; gap: 2px; min-height: 112px; padding: 14px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; }
.set-tile:hover { border-color: var(--line-strong); }
.set-tile svg { width: 22px; height: 22px; margin-bottom: auto; padding-bottom: 14px; box-sizing: content-box; fill: none; stroke: var(--accent); color: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.set-tile .row-title { font-weight: 700; }
.set-tile .row-sum { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.set-tile .row-sum.off { color: var(--warn-ink); font-weight: 600; }
.set-tile .row-sum.todo { color: var(--accent); font-weight: 600; }
.set-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.settings-row.inline { cursor: default; flex-wrap: wrap; }
.settings-row.inline:hover { background: none; }
/* About: the words, then its links as rows like the list's. */
.about-text { display: grid; gap: 10px; }
.about-text p { margin: 0; }
a.settings-row { text-decoration: none; }
/* Two or three choices as pills on one track (settings-pages.js Pills): radios
   underneath, kept inside their pill so none sticks out past the page. */
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.segmented label { position: relative; margin: 0; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.segmented.full { display: flex; width: 100%; }
.segmented.full label { flex: 1; min-width: 0; }
.segmented.full span { text-align: center; padding: 8px 10px; }
.segmented span { display: block; padding: 6px 12px; border-radius: 999px; font-size: 0.875rem; color: var(--muted); cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px rgb(0 0 0 / 0.12); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
/* In the dark the chosen pill is a step lighter than the track: the card's own colour barely shows on it. */
:root[data-theme="dark"] .segmented input:checked + span { background: color-mix(in srgb, var(--ink) 14%, var(--surface)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .segmented input:checked + span { background: color-mix(in srgb, var(--ink) 14%, var(--surface)); }
}
/* Your trips: groups of one-line rows, a setting's name on the left and its
   control on the right; on a narrow screen a wide control goes under. */
.trips { display: grid; gap: 20px; }
.trips-group > .eyebrow { margin: 0 0 8px 16px; }
.trips-group .group-hint { margin: 8px 16px 0; font-size: 0.85rem; }
.field { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field > label, .field-label { flex: 1 1 10rem; margin: 0; font-size: 1rem; color: var(--ink); }
.field-sub { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--muted); }
.field-control { flex: 0 1 auto; display: flex; justify-content: flex-end; min-width: 0; max-width: 100%; }
.field-control select { width: auto; max-width: 100%; min-width: 11rem; }
/* "Pick the stop nearest me" and the like belong to the row above. */
.field:has(+ .field-note) { border-bottom: 0; padding-bottom: 4px; }
.field-note { padding-top: 0; padding-bottom: 12px; justify-content: flex-start; }
@media (max-width: 560px) {
  .field-control:has(> select) { flex-basis: 100%; }
  .field-control > select { width: 100%; }
}
.field-note .link-btn { padding: 0; }
/* A wide control on its own line, under the setting's name (the pace, a link to import). */
.field.stack { display: grid; justify-content: stretch; gap: 10px; }
.field.stack > label { margin: 0; }
/* A choice from a long list as its value and a chevron, as a row in the list does. */
.field-control select.plain {
  appearance: none; field-sizing: content; width: auto; min-width: 0; padding: 6px 24px 6px 6px; border: 0; border-radius: 8px; text-align: right; text-align-last: right; color: var(--muted); cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a847e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") right 2px center / 18px no-repeat;
}
.field-control select.plain:hover { background-color: var(--surface-2); }
/* The value stays beside the name, however narrow: it's short, and the name wraps first. */
.field:has(select.plain) { flex-wrap: nowrap; }
.field:has(select.plain) > label { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) {
  .field-control:has(> select.plain) { flex-basis: auto; }
  .field-control > select.plain { width: auto; max-width: 62vw; }
}
/* A box and its button (a NUSMods link and Import, a key's name and Create) side by side, even on a phone. */
.trips-group .row { flex-wrap: nowrap; }
.trips-group .row .btn { width: auto; flex: none; }
/* − value +, for small steps. */
.stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.stepper button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font: 600 1.05rem/1 var(--font); cursor: pointer; }
.stepper button:disabled { opacity: 0.4; cursor: default; }
.stepper output { min-width: 4.6rem; text-align: center; font-variant-numeric: tabular-nums; }
/* Rows that aren't fields (a list, the classes) in a group's card, and its last row: "+ Add …". */
.group-body { padding: 4px 16px; border-bottom: 1px solid var(--line); }
.group-body:last-child { border-bottom: 0; }
.add-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--ink); font: 500 0.95rem var(--font); text-align: left; cursor: pointer; }
.add-row::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--surface-2); font-weight: 600; }
.add-row:hover { background: var(--surface-2); }
.add-row[aria-expanded="true"] { border-bottom: 1px solid var(--line); }
.add-form { padding-top: 0; padding-bottom: 14px; }
/* Scrolled into view on opening: clear of the app's tab bar, with a little room. */
.add-form { scroll-margin-bottom: 16px; }
body.app .add-form { scroll-margin-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); }
/* Delete account: the only red on any page, alone in its card at the foot. */
.settings-row.danger-row .row-title { color: var(--bad); }
.unit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.unit .unit-and { display: inline; margin: 0; font-size: inherit; color: inherit; }
.unit input[type="time"] { width: auto; padding: 6px 10px; border: 0; background: var(--surface-2); }
.trips .list { margin: 0; padding: 0 16px; }
/* A checkbox drawn as an on/off switch. */
.switch { appearance: none; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; flex: none; transition: background 0.15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); transition: transform 0.15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
/* On the dark theme's bright orange, a dark knob: white was 2.3:1. */
:root[data-theme="dark"] .switch:checked::after { background: #1c1917; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .switch:checked::after { background: #1c1917; }
}
/* Forced colours (Windows' contrast themes): the system's own colours for
   what is on (a switch, the chosen pill or style, a ride on the line). */
@media (forced-colors: active) {
  .switch { forced-color-adjust: none; border: 1px solid ButtonText; background: Canvas; }
  .switch::after { background: ButtonText; box-shadow: none; }
  .switch:checked { background: Highlight; border-color: Highlight; }
  .switch:checked::after { background: HighlightText; }
  .segmented input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .style-choice.on .widget { border-color: Highlight; }
  .journey .line .ride .rail::after, .route-line .bar { forced-color-adjust: none; background: CanvasText; }
  .ob-tile.on, .ob-pace.on { border-color: Highlight; }
}
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }

.settings-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 4px 16px 0; font-size: 0.875rem; }
.settings-foot a { color: var(--muted); }
.settings-foot a[aria-current] { color: var(--accent); }
.settings-page { display: grid; gap: 16px; align-content: start; min-width: 0; background: var(--bg); }
.page-head { display: flex; align-items: center; gap: 4px; margin: 0 0 -4px -8px; }
.page-head h2, .settings-title { font-size: 1.35rem; outline: none; margin: 0; }
.page-back { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.page-back:hover { background: var(--surface-2); }
.page-back:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* The view sliding away, kept where it was on screen while the new one comes in. */
.settings .leaving { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.settings-page:not(.leaving) { position: relative; z-index: 2; }
@media (max-width: 899.98px) {
  .settings.page-open .settings-side:not(.leaving) { display: none; }
}
@media (min-width: 900px) {
  /* At least 20rem, and wider when the card's trip line needs it: its stops
     don't shrink, so a fixed 20rem let the card spill over the column beside. */
  .settings { display: grid; grid-template-columns: minmax(20rem, min-content) minmax(0, 1fr); gap: 24px; align-items: start; }
  .settings-side { position: sticky; top: 16px; }
  .page-back { display: none; }
  .page-head { margin-left: 0; }
  .settings-row[aria-current], .set-tile[aria-current] { background: var(--accent-soft); }
  .set-tile[aria-current], .settings-row.set-account[aria-current] { border-color: var(--accent); }
  .settings-row[aria-current] .chev { color: var(--accent); }
}

/* A card's own heading; not the Now card's headline (when to go, Done for
   today), which is a heading too but sized by the card's style. */
.card h2:where(:not(.go, .done-label)) { font-size: 1.15rem; margin-bottom: 4px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.tight input { width: 7.5rem; }
.row.tight span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) {
  .row { flex-wrap: wrap; }
  .row .btn { width: 100%; }
}
.btn.wide { width: 100%; }
.locate { margin-top: 10px; font-size: 0.9rem; }

/* Preview: when to set off. A class leads with it; the next bus sits below a rule. */
/* A class: one colour for "go" (the countdown), ink for the bus, grey for the
   rest. Red only when the plan arrives late. */
.widget .catch { margin-top: 8px; font-weight: 600; color: var(--ink); }
.widget .arrive { color: var(--muted); font-size: 0.9rem; }
.widget .catch.late, .widget .arrive.late, .widget .big.late { color: var(--bad-ink); }
.widget .small-print { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.widget .go-now { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.widget .countdown { margin-top: 2px; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--accent); }
.widget .countdown.gone { color: var(--muted); }
.widget .leave { margin-top: 8px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
/* The trip's phase, the same on every device, and the server's buttons. */
.widget .phase { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); }
.widget .ride { margin: 2px 0 10px; }
.widget .ride progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; accent-color: var(--accent); }
.widget .ride progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.widget .ride progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.widget .ride progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.widget .warning { margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--warn-ink); }
.widget .notice { margin-bottom: 10px; font-size: 0.9rem; color: var(--warn-ink); }
.widget .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* A trip by bus or on foot (journey.js): Route, Ticket or Steps, as on Android. */
.journey .big.late, .journey .under.late, .journey .late { color: var(--bad-ink); }
.journey .under { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.bus-badge { display: inline-block; padding: 1px 7px; border-radius: 6px; font-weight: 800; font-size: 0.8rem; line-height: 1.4; }
.bus-badge.big { display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border-radius: 16px; font-size: 1.6rem; flex: none; }
/* A public bus: the fare sign after its number, a touch lighter than the number. */
.bus-badge .fare { margin-left: 0.3em; font-weight: 600; }
.bus-badge.big .fare { font-size: 0.6em; vertical-align: 0.35em; }
/* On foot: someone walking where the bus's badge would be. */
.bus-badge.big.walk { color: var(--ink); background: var(--surface-2); }
.route-line { display: flex; align-items: flex-start; margin: 18px 0 4px; }
.route-line .above { display: grid; place-items: center; height: 24px; }
.route-line .point { display: grid; justify-items: center; width: 76px; flex: none; text-align: center; }
/* Four points (the walk on from the stop to a room): each only as wide as its words, so the line still fits a phone. */
.route-line.walk-on .point { width: auto; min-width: 44px; max-width: 72px; }
.route-line .dot { width: 14px; height: 14px; margin: 2px 0; border-radius: 50%; background: var(--ink); }
.route-line .you .dot { background: var(--accent); }
.route-line .name { margin-top: 4px; max-width: 100%; overflow-wrap: anywhere; line-height: 1.25; font-weight: 600; font-size: 0.9rem; }
.route-line .time, .route-line .takes { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.route-line .stretch { flex: 1; display: grid; justify-items: center; min-width: 0; }
.route-line .stretch.ride { flex: 1.4; }
.route-line .bar { width: 100%; height: 5px; margin: 6.5px 0; border-radius: 3px; }
.route-line .walk .bar { height: 3px; margin: 7.5px 0; background: radial-gradient(circle, var(--muted) 1.5px, transparent 2px) 0 50% / 8px 3px repeat-x; }
.route-line .takes { margin-top: 4px; }
.journey .tags { display: flex; gap: 6px; margin-top: 12px; }
.journey .tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.journey .tag.live { color: var(--good-ink); background: color-mix(in srgb, var(--good) 12%, transparent); }
.journey .backup { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.ticket-bus { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.ticket-time { font: 700 1.5rem/1.2 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ticket-time span { font: 600 0.9rem var(--font); letter-spacing: 0; color: var(--muted); }
.ticket-go { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); }
.ticket-go .go { font: 700 1.25rem/1.2 var(--display); color: var(--accent); }
.ticket-go.late { background: color-mix(in srgb, var(--bad-ink) 12%, transparent); }
.ticket-go.late .go { color: var(--bad-ink); }
.ticket-go .by { font-size: 0.8rem; color: var(--muted); }
.ticket-go .by.late { color: var(--bad-ink); }
.ticket-go .arrives { text-align: right; font-weight: 600; font-size: 0.9rem; }
/* "Leave in 6 min": one line, the time in the accent (journey.js LeaveHead). */
.journey .lead { margin: 2px 0 4px; font: 800 2.1rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.journey .lead .go, .journey .lead.go { color: var(--accent); }
.journey .lead.late { color: var(--bad-ink); }
.journey .steps-under { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.journey .steps-under .under { margin-right: 4px; }
/* Steps: the trip as a line, as on a route map. Time | the line | what's there. */
.journey .line { list-style: none; margin: 18px 0 0; padding: 0; }
.journey .line .pt { display: grid; grid-template-columns: 5.2rem 22px minmax(0, 1fr); column-gap: 12px; min-height: 64px; }
.journey .line .pt.end { min-height: 0; }
.journey .line .time { padding-top: 1px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.journey .line .what { display: grid; align-content: start; gap: 2px; padding-bottom: 14px; min-width: 0; }
/* A long stop's name wraps rather than being cut off: it's where to catch the bus. */
.journey .line .what strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.journey .line .what small { color: var(--muted); font-size: 0.85rem; }
.journey .line .end .what { padding-bottom: 0; }
.journey .line .late .time, .journey .line .late .what small { color: var(--bad-ink); }
/* The dot, then the line on to the next point: dotted for a walk, the bus's colour for a ride. */
.journey .line .rail { position: relative; }
.journey .line .rail::before { content: ''; position: absolute; z-index: 1; top: 3px; left: 3px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); }
.journey .line .start .rail::before { background: var(--accent); border-color: var(--accent); }
.journey .line .end .rail::before { top: 0; left: 0; width: 22px; height: 22px; border: 6px solid var(--accent); }
.journey .line .end.late .rail::before { border-color: var(--bad-ink); }
.journey .line .walk .rail::after, .journey .line .ride .rail::after { content: ''; position: absolute; top: 20px; bottom: -4px; left: 8px; width: 6px; border-radius: 3px; }
.journey .line .walk .rail::after { left: 9px; width: 4px; background: radial-gradient(circle, var(--muted) 1.8px, transparent 2.2px) 50% 0 / 4px 9px repeat-y; }
.journey .line .ride .rail::after { background: var(--ride, var(--ink)); }
.journey .line .bus-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.journey .line .bus-line small { white-space: nowrap; }
.journey .backup-box { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 0.9rem; color: var(--muted); }
.journey .tag.live .dot { width: 7px; height: 7px; }

.banner {
  border-radius: var(--radius); padding: 14px 16px; font-size: 0.95rem;
  background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
}

/* Timetable */
.classes { padding-bottom: 6px; }
.day { margin: 14px 0 4px; font: 600 0.75rem/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* A class: its name, then when and its stop; opened, the stop to change and Remove. */
.cls { border-top: 1px solid var(--line); font-size: 0.93rem; }
.cls:first-of-type, .day + .cls { border-top: 0; }
.cls summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; cursor: pointer; list-style: none; }
.cls summary::-webkit-details-marker { display: none; }
.cls summary::after { content: ""; width: 7px; height: 7px; border: solid var(--faint); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); align-self: center; transition: transform 0.15s; }
.cls[open] summary::after { transform: rotate(-135deg); }
.cls .what { display: grid; min-width: 0; }
.cls .name { overflow-wrap: anywhere; }
.cls .where { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.cls-edit { display: flex; gap: 10px; align-items: center; padding: 0 0 10px; }
.cls-edit select { flex: 1; min-width: 0; padding: 6px 8px; font-size: 0.88rem; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.85rem; padding: 10px 8px; border-radius: 6px; }
.remove:hover { color: var(--bad); }
.warn-text { color: var(--warn); font-weight: 600; margin: 10px 0 4px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; align-items: end; }
.grid .wide { grid-column: 1 / -1; }
.grid .btn { margin-top: 12px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }

.list { list-style: none; margin: 10px 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.list li:first-child { border-top: 0; }
.list .meta { color: var(--muted); font-size: 0.82rem; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggestion { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.93rem; line-height: 1.4; }
#trip-choices h3, #trip-history h3 { margin: 18px 0 4px; font-size: 1rem; }
#trip-history .btn { margin-top: 8px; }

/* Devices */
.pairing { text-align: center; }
.qr { display: grid; place-items: center; }
.qr svg { width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 8px; }
.code-input { font: 700 1.3rem/1.2 ui-monospace, "SF Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
.code-input::placeholder { color: var(--muted); opacity: 1; }
.code { font: 700 1.7rem/1 ui-monospace, "SF Mono", monospace; letter-spacing: 0.16em; margin: 14px 0 4px; }

/* Bottom right, clear of the buttons in the content column. A problem
   stays, with × to close it, so it can be clicked. */
.toast { position: fixed; z-index: 25; bottom: 18px; right: 18px; max-width: calc(100vw - 36px); display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; border-radius: 18px; background: var(--ink); color: var(--bg); font-size: 0.85rem; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.toast.show { opacity: 1; }
.toast.error.show, .toast.has-action.show { pointer-events: auto; }
/* Undo: a pill in the toast's own colours, readable on it in either theme. */
.toast-action { flex: none; margin: -4px -6px -4px 6px; padding: 3px 12px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.toast-action:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }
.toast-action:focus-visible { outline-color: var(--bg); outline-offset: -2px; }
.toast-close { flex: none; margin: -6px -8px -6px 0; padding: 4px 10px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.toast-close:focus-visible { outline-color: var(--bg); outline-offset: -2px; }

/* ---------- Onboarding ----------
   Motion is short and quiet: steps slide 16px and fade, the progress bar
   grows, choices change colour. Reduced motion gets none of it. */
:root { --ob-ease: cubic-bezier(0.2, 0.8, 0.2, 1); }

.onboard { max-width: 34rem; margin: 5vh auto 0; }
.onboard.leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.24s ease-in, transform 0.24s ease-in; }
.ob-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ob-count { font: 600 0.75rem/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.ob-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.ob-card h1 { font-size: 1.6rem; margin-bottom: 8px; outline: none; }
.ob-sub { color: var(--muted); line-height: 1.55; margin: 0 0 8px; }
.ob-mark { width: 44px; height: 44px; margin-bottom: 18px; }
.ob-list { margin: 16px 0 4px; padding-left: 1.1rem; line-height: 1.8; }
.ob-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.ob-grow { flex: 1; }

.ob-in-fwd { animation: ob-in-fwd 0.26s var(--ob-ease) both; }
.ob-in-back { animation: ob-in-back 0.26s var(--ob-ease) both; }
.ob-out-fwd, .ob-out-back { transition: opacity 0.16s ease-in, transform 0.16s ease-in; opacity: 0; }
.ob-out-fwd { transform: translateX(-16px); }
.ob-out-back { transform: translateX(16px); }
@keyframes ob-in-fwd { from { opacity: 0; transform: translateX(16px); } }
@keyframes ob-in-back { from { opacity: 0; transform: translateX(-16px); } }

/* Walking pace: three cards, one chosen. */
.ob-paces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px; }
.ob-pace {
  display: grid; align-content: start; gap: 4px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.ob-pace:hover { border-color: var(--accent); }
.ob-pace.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.ob-pace:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-pace-eg { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.ob-pace .hint { font-size: 0.8rem; line-height: 1.35; }

.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.ob-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ob-app { display: grid; align-content: start; gap: 4px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color 0.15s ease-out; }
.ob-app:hover { border-color: var(--accent); }
@media (max-width: 560px) { .ob-apps { grid-template-columns: 1fr; } }

/* The account page arrives after setup, and the "new" card on older accounts. */
#app:not([hidden]) { animation: ob-appear 0.3s var(--ob-ease) both; }
@keyframes ob-appear { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .ob-in-fwd, .ob-in-back, #app:not([hidden]) { animation: none; }
  .ob-line::after, .ob-pace, .ob-app, .onboard.leaving, .ob-out-fwd, .ob-out-back { transition: none; }
  .ob-out-fwd, .ob-out-back { transform: none; }
}

/* ---------- Destination search ---------- */
.search { position: relative; }
/* The browser's clear button is its own blue: an X in the page's muted ink instead. */
.search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-left: 6px; cursor: pointer;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search-list {
  position: absolute; z-index: 20; left: 0; top: calc(100% + 4px);
  width: max(100%, min(22rem, calc(100vw - 32px)));
  margin: 0; padding: 6px; list-style: none; max-height: 22rem; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  animation: search-in 0.12s ease-out both;
}
@keyframes search-in { from { opacity: 0; transform: translateY(-4px); } }
.search-list.flip { left: auto; right: 0; }
.search-sub { margin: 0; padding: 0; list-style: none; }
.search-group { padding: 8px 10px 4px; font: 600 0.7rem/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.search-list [role=option] { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.search-list [role=option].active, .search-list [role=option]:hover { background: var(--surface-2); }
.search-title { font-size: 0.93rem; color: var(--ink); }
.search-meta { font-size: 0.8rem; color: var(--muted); }
.search-empty { padding: 10px; color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .search-list { animation: none; } }

/* API keys: the new key, shown once. */
.new-key { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.new-key .warn-text { margin: 0 0 8px; }
.new-key code { font: 0.8rem/1.4 ui-monospace, "SF Mono", monospace; word-break: break-all; }
.new-key .row code { flex: 1; user-select: all; }
.new-key .hint code { display: block; margin-top: 4px; }

/* "Is this wrong?" under the preview. */
/* Under the answer, not part of it: no louder than the time beside it. */
.report-open { font-size: 0.8rem; padding: 8px 0; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
/* Its sheet: up from the foot of the screen, where the link is; a card in the middle on a wide one. */
.report-sheet {
  position: fixed; inset: auto 0 0; width: 100%; max-width: 520px; max-height: min(92dvh, 720px); margin: 0 auto;
  padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 -8px 40px rgb(0 0 0 / 0.25); overflow: auto; overscroll-behavior: contain;
}
.report-sheet::backdrop { background: rgb(0 0 0 / 0.5); }
.report-sheet[open] { animation: report-up 0.22s ease-out; }
@keyframes report-up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .report-sheet[open] { animation: none; } }
@media (min-width: 720px) { .report-sheet { inset: 0; margin: auto; height: fit-content; border-radius: 24px; } .report-grab { display: none; } }
.report-inner { padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); }
.report-inner form, .report-sent { display: grid; gap: 0; }
.report-grab { width: 32px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 16px; opacity: 0.7; }
.report-sheet h2 { margin: 0; font: 600 1.3rem/1.25 var(--display); }
.report-sheet h2:focus { outline: none; }
.report-quote { position: relative; margin-top: 14px; padding: 12px 14px 12px 26px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: 0.95rem; }
.report-quote::before { content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--accent); }
.report-pick { margin: 16px 0 8px; font-size: 0.85rem; }
.report-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.report-chip { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 0.9rem; cursor: pointer; }
.report-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.report-chip[aria-pressed="true"]::before { content: "✓ "; font-weight: 700; }
@media (forced-colors: active) { .report-chip[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; } }
.report-note { margin-top: 14px; width: 100%; min-height: 5.5em; resize: vertical; font: inherit; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.report-note:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.report-who { margin: 12px 0 0; font-size: 0.85rem; }
.report-who strong { color: var(--ink); font-weight: 600; }
.report-send { width: 100%; margin-top: 16px; min-height: 50px; border-radius: 25px; }
.report-error { margin: 8px 0 0; color: var(--bad); }
.report-error:empty { display: none; }
.report-sent { text-align: center; padding-top: 8px; }
.report-tick { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); font-size: 1.8rem; font-weight: 700; }
.report-sent .hint { margin: 6px 0 0; }
.report-sent .btn:not(.accent) { background: var(--surface-2); color: var(--ink); }

/* Favourites. */
#place-form .search { flex: 1; }
#place-form input { width: 100%; }
.list li.place { flex-direction: column; align-items: stretch; }
.place-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* "Not right?": correcting what the phone worked out, quietly (phase 8). */
.linkish { background: none; border: 0; padding: 10px 4px; color: var(--muted); font: inherit; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--ink); }
/* Who's signed in, at the top of Account: in the web app (no header there),
   and on the account page when its header has no room for these buttons. */
.field.account-who { flex-wrap: nowrap; gap: 12px; }
.account-who .avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent); color: var(--bg); font: 800 1.05rem var(--display); }
.field-email { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
/* Appearance: the theme, one choice per line. */
.theme-choice { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.theme-choice legend { padding: 0; margin-bottom: 4px; font-size: 0.9rem; color: var(--muted); }
.theme-choice .check { margin: 0; }
.ob-clock { margin-top: 18px; }
@media (min-width: 640px) { .narrow-only { display: none; } }
@media (max-width: 639.98px) { .nav-links #add-email, .nav-links #logout { display: none; } }

/* Settings › Appearance: the card styles in one card, each with a made-up
   trip drawn in its own box, edged in the accent when it's the one chosen. */
.style-choice { display: block; margin: 0; padding: 14px 16px; font-size: 1rem; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--line); }
.style-choice:last-child { border-bottom: 0; }
.style-choice .style-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.style-choice .style-head input { flex: none; width: auto; margin: 3px 0 0; accent-color: var(--accent); }
.style-choice .style-head .hint { display: block; margin: 2px 0 0; }
.style-choice .widget { box-shadow: none; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg); pointer-events: none; }
.style-choice.on .widget { border: 2px solid var(--accent); padding: 13px; }
/* About: the mark and the name over the words. */
.about-head { display: flex; align-items: center; gap: 12px; }
.about-head img { width: 44px; height: 44px; border-radius: 12px; }
.about-head strong { font: 700 1.2rem var(--display); }
.about-text { padding: 0 4px; }

/* Send feedback (settings-pages.js Feedback): one card like a message. The
   From line, the note as the card's own body (no box inside the box), then
   the counter and Send. */
.compose { padding: 0; overflow: hidden; }
.compose-from { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 16px; border-bottom: 1px solid var(--line); }
.compose-key { flex: none; min-width: 2.6rem; color: var(--muted); font-size: 0.9rem; }
.compose-who { min-width: 0; overflow-wrap: anywhere; }
.compose textarea {
  display: block; width: 100%; min-height: 9.5em; max-height: 16em; padding: 14px 16px; resize: vertical;
  border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; line-height: 1.5;
}
.compose textarea:focus { outline: none; }
/* The note is the card's body, so the card shows where the focus is. */
.compose:focus-within:has(textarea:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-top: 1px solid var(--line); }
.compose-count { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; transition: color 0.2s; }
.compose-count.near { color: var(--warn); }
.compose-msg { margin: 10px 4px 0; }
.compose-wrong { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; }
.compose-wrong svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compose-wrong p { margin: 0; }
.compose-wrong .row-title, .compose-wrong .hint { display: block; }
.compose-wrong .hint { margin: 2px 0 0; }

/* Done for today, or nothing to catch (preview.js DayDone): the label large
   on a panel, a night sky after your day, then your favourites as tiles. */
.done-panel { position: relative; overflow: hidden; padding: 28px 22px 24px; border-radius: 28px; background: var(--surface-2); }
.done-panel.night { padding-top: 104px; color: #f2efeb; background: linear-gradient(#121a33, #181a30, #1c1b26); }
.done-label { position: relative; font: 800 2.35rem/1.1 var(--display); letter-spacing: -0.02em; }
.done-detail { position: relative; margin-top: 8px; color: var(--muted); }
.done-panel.night .done-detail { color: #c9c3bd; }
.night-sky { position: absolute; inset: 0; pointer-events: none; }
.night-sky .star { position: absolute; width: 2.6px; height: 2.6px; border-radius: 50%; background: #fff; }
/* A crescent: the moon, with the sky's own colour over most of it. */
.night-sky .moon { position: absolute; top: 28px; right: 36px; width: 56px; height: 56px; border-radius: 50%; background: #fde9c9; -webkit-mask: radial-gradient(circle at 76% 28%, transparent 25px, #000 26px); mask: radial-gradient(circle at 76% 28%, transparent 25px, #000 26px); }
.day-done .going { margin: 22px 0 10px; }
.place-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.place-tile {
  display: grid; align-content: space-between; gap: 18px; min-height: 84px; padding: 14px; text-align: left;
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; cursor: pointer;
}
.place-tile:hover { border-color: var(--line-strong); }
.place-tile strong { overflow-wrap: anywhere; }
.place-tile span { font-size: 0.8rem; color: var(--muted); }
.done-hint { margin: 12px 0 0; font-size: 0.85rem; }

/* A stop's sign (Nearby in the web app, your stops in setup): its name on a
   plate a shade off the card, the bus mark in the accent, what's there under
   it. Not inverted: in the dark a near-white plate glared off every stop. */
.stop-sign { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stop-sign.nearest { border-radius: 18px; }
.stop-sign .plate { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 8px 0 14px; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); border-bottom: 1px solid var(--line); color: var(--ink); }
.stop-sign.nearest .plate { min-height: 46px; }
.stop-sign .plate-bus { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.stop-sign .plate-name { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: inherit; font: 700 0.95rem var(--font); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.stop-sign.nearest .plate-name { font-size: 1.05rem; }
.stop-sign .plate-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.stop-sign .plate-walk { flex: none; padding-right: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.sign-services { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 14px; }
.sign-services .svc-tag, .ob-bus .svc-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4em; padding: 2px 7px; border-radius: 6px; background: var(--svc); color: var(--svc-ink, var(--bg)); font-weight: 700; font-size: 0.8rem; }

/* Setup's progress, as a route: a stop per step, the line filled up to this one. */
.ob-line { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 18px; padding: 0; list-style: none; }
.ob-line::before, .ob-line::after { content: ''; position: absolute; top: 7px; left: 12.5%; height: 4px; border-radius: 2px; }
.ob-line::before { right: 12.5%; background: var(--line-strong); }
.ob-line::after { width: calc(75% * var(--done)); background: var(--accent); transition: width 0.32s var(--ob-ease); }
.ob-line li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.ob-stop { width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 4px solid var(--line-strong); background: var(--bg); }
.ob-line .passed .ob-stop { border-color: var(--accent); background: var(--accent); }
.ob-line .here .ob-stop { border-color: var(--accent); }
.ob-line .here, .ob-line .passed { color: var(--ink); }
/* Halls as tiles, two to a row; the chosen one filled and ticked. */
.ob-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.ob-tile { position: relative; display: grid; align-content: center; gap: 2px; min-height: 64px; padding: 11px 13px; text-align: left; font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; cursor: pointer; }
.ob-tile .hint { font-size: 0.8rem; }
.ob-tile.on { padding: 10px 34px 10px 12px; background: var(--accent-soft); border: 2px solid var(--accent); }
.ob-tile.on::after { content: ''; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ob-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-label { margin: 18px 0 8px; }
/* Where most students live: bigger than the rest, so most people are done at a glance. */
.ob-tiles.ob-common, .ob-tiles.ob-rest { margin-top: 0; }
.ob-common .ob-tile { min-height: 76px; font-size: 1rem; }
.ob-signs { display: grid; gap: 8px; }
/* Pace: a running track, the lap's time at your pace in the infield. */
.ob-track { position: relative; margin-top: 18px; }
.ob-track svg { display: block; width: 100%; height: auto; }
.ob-track .infield { fill: #cfe5c3; }
.ob-track .you { fill: var(--accent); }
.ob-track-text { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: #14532d; }
.ob-track-text strong { font: 800 2.4rem/1 var(--display); letter-spacing: -0.03em; }
.ob-track-text span { font-size: 0.8rem; font-weight: 600; }
.ob-lap { text-align: center; margin: 6px 0 0; font-size: 0.85rem; }
/* Busy buses: the switch, then what it does: the earlier bus instead of the packed one. */
.ob-busy { margin-top: 14px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 18px; }
.ob-busy-row { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 0; color: var(--ink); font-size: 1rem; cursor: pointer; }
.ob-busy-row > span { display: grid; gap: 2px; flex: 1; }
.ob-busy-eg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 10px; }
.ob-bus { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.ob-bus.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.ob-bus.off { background: var(--surface-2); color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ob-track .infield { fill: #1e3a26; }
  :root:not([data-theme="light"]) .ob-track-text { color: #bbf7d0; }
}
:root[data-theme="dark"] .ob-track .infield { fill: #1e3a26; }
:root[data-theme="dark"] .ob-track-text { color: #bbf7d0; }

/* An account with no email: adding one, at the top of Account, where it can't be missed. */
.add-email { display: grid; gap: 8px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.add-email h3 { margin: 0; font-size: 1.1rem; }
.add-email .hint { margin: 0; line-height: 1.5; }
.add-email .btn { margin-top: 6px; }
/* In the list, the line under "No email" says what to do, in the accent. */
.set-account .row-sum.add { color: var(--accent); font-weight: 600; }

/* The next class on a card of its own (preview.js UpcomingCard). */
.upcoming { display: grid; gap: 4px; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.upcoming .eyebrow { margin: 0 0 2px; color: var(--accent); }
.upcoming strong { font: 700 1.35rem/1.25 var(--font); }
.upcoming span { color: var(--muted); }
.done-panel.night .upcoming { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.14); }
.done-panel.night .upcoming strong { color: #f2efeb; }
.done-panel.night .upcoming span { color: #c9c3bd; }
.done-panel.night .upcoming .eyebrow { color: #fb923c; }
