/* Met Tower Daily Routine.
   Look: frosted, finely reeded glass with light behind it; panes are lit, not shadowed; marks are etched; edges near-square.
   Hierarchy: 1) the day and who is in  2) people  3) their routes  4) detail.
   Tokens first; every color and type decision derives from them. */
:root {
  --bg: #e9edf0; --bg-2: #dfe4e9; --panel: rgba(255, 255, 255, .78); --line: #c6cfd6; --line-2: #d6dde3;
  --fg: #171d22; --fg-2: #39434b; --muted: #65717b;
  --accent: #c25e16; --accent-2: #a84f10; --accent-soft: rgba(194, 94, 22, .12);
  --good: #1f7a4d; --good-soft: rgba(31, 122, 77, .1); --amber: #8a6200; --amber-soft: rgba(255, 219, 120, .28);
  --accent-ink: #ffffff; --warn: #b3261e; --warn-soft: #fbe3e1; --off: #8d938f; --ring: 0 0 0 3px rgba(194, 94, 22, .28);
  --r: 4px; --r-sm: 3px;
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 0 0 1px rgba(120, 136, 150, .22), inset 0 1px 0 rgba(255, 255, 255, .95);
  --shadow-lift: 0 0 0 1px rgba(120, 136, 150, .3), inset 0 1px 0 rgba(255, 255, 255, 1);
  --glow: 0 0 0 1px rgba(194, 94, 22, .32), 0 0 48px -10px rgba(194, 94, 22, .38);
  --reed: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 3px, rgba(20, 30, 40, .022) 3px 4px);
  --light: radial-gradient(900px 520px at 18% -10%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%), radial-gradient(700px 480px at 92% 8%, rgba(255, 247, 232, .7), rgba(255, 247, 232, 0) 65%), radial-gradient(800px 600px at 60% 110%, rgba(204, 216, 226, .8), rgba(204, 216, 226, 0) 70%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1418; --bg-2: #151b21; --panel: rgba(30, 37, 44, .78); --line: #2a333b; --line-2: #222a31;
    --fg: #e8ecef; --fg-2: #c3cad0; --muted: #8e9aa4;
    --accent: #e8893f; --accent-2: #f09a5a; --accent-soft: rgba(232, 137, 63, .16);
    --good: #5fcf92; --good-soft: rgba(95, 207, 146, .12); --amber: #e9c05a; --amber-soft: rgba(233, 192, 90, .16); --accent-ink: #1b1208; --warn: #f08078; --warn-soft: #43201e; --off: #6e7672; --ring: 0 0 0 3px rgba(232, 137, 63, .35);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .09);
    --shadow-lift: 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .12);
    --glow: 0 0 0 1px rgba(232, 137, 63, .5), 0 0 56px -10px rgba(232, 137, 63, .6);
    --reed: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 3px, rgba(255, 255, 255, .028) 3px 4px);
    --light: radial-gradient(900px 520px at 18% -10%, rgba(120, 150, 175, .22), rgba(120, 150, 175, 0) 70%), radial-gradient(700px 480px at 92% 8%, rgba(232, 137, 63, .1), rgba(232, 137, 63, 0) 65%), radial-gradient(800px 600px at 60% 110%, rgba(60, 80, 100, .35), rgba(60, 80, 100, 0) 70%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1418; --bg-2: #151b21; --panel: rgba(30, 37, 44, .78); --line: #2a333b; --line-2: #222a31;
  --fg: #e8ecef; --fg-2: #c3cad0; --muted: #8e9aa4;
  --accent: #e8893f; --accent-2: #f09a5a; --accent-soft: rgba(232, 137, 63, .16);
  --good: #5fcf92; --good-soft: rgba(95, 207, 146, .12); --amber: #e9c05a; --amber-soft: rgba(233, 192, 90, .16); --accent-ink: #1b1208; --warn: #f08078; --warn-soft: #43201e; --off: #6e7672; --ring: 0 0 0 3px rgba(232, 137, 63, .35);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .09);
  --shadow-lift: 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .12);
  --glow: 0 0 0 1px rgba(232, 137, 63, .5), 0 0 56px -10px rgba(232, 137, 63, .6);
  --reed: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 3px, rgba(255, 255, 255, .028) 3px 4px);
  --light: radial-gradient(900px 520px at 18% -10%, rgba(120, 150, 175, .22), rgba(120, 150, 175, 0) 70%), radial-gradient(700px 480px at 92% 8%, rgba(232, 137, 63, .1), rgba(232, 137, 63, 0) 65%), radial-gradient(800px 600px at 60% 110%, rgba(60, 80, 100, .35), rgba(60, 80, 100, 0) 70%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { height: 100%; }
body { min-height: 100%; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.4; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding-block: 0 40px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; line-height: 1.05; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: .005em; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: none; box-shadow: var(--ring); }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.block { display: block; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mb8 { margin-bottom: 8px; } .mb18 { margin-bottom: 18px; }
.small-text { font-size: 13px; } .body-sm { font-size: 14px; }

/* ---------- Level 1: the app bar and the day ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-2); padding-block: 10px 10px; display: flex; flex-direction: column; gap: 8px; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))) calc(-1 * max(20px, env(safe-area-inset-right, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand .sub { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.who-bar { display: flex; align-items: center; gap: 8px; }
.menu-wrap { position: relative; }
.icon-btn.apps { color: var(--fg-2); }
.icon-btn.apps[aria-expanded="true"], .icon-btn.apps:hover { color: var(--fg); background: var(--bg-2); }
.name-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 12px 3px 3px; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--fg); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.name-btn:hover, .name-btn[aria-expanded="true"] { border-color: var(--fg-2); background: var(--bg-2); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #fff); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.avatar.big { width: 44px; height: 44px; font-size: 17px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); padding: 6px; z-index: 30; display: grid; gap: 2px; animation: rise .18s var(--ease); }
.menu-item { all: unset; box-sizing: border-box; display: block; padding: 9px 12px; border-radius: var(--r-sm); font: inherit; font-size: 14.5px; color: var(--fg); cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--bg-2); }
.apps-menu { display: grid; grid-template-columns: repeat(2, 96px); gap: 6px; padding: 10px; }
.tile { display: grid; justify-items: center; gap: 8px; padding: 12px 6px 10px; border: 0; background: transparent; cursor: pointer; width: 100%; box-sizing: border-box; border-radius: var(--r-sm); text-decoration: none; color: var(--fg); font-family: var(--display); font-weight: 600; font-size: 13px; text-align: center; transition: background .15s var(--ease); }
.tile:hover { background: var(--bg-2); }
.tile.current { opacity: .55; pointer-events: none; }
.tile-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink, #fff); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.tile-ic.pool { background: #1d7fb8; color: #fff; }
.scrim { position: fixed; inset: 0; background: rgba(12, 14, 18, .32); z-index: 18; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.profile { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 24px 64px rgba(0, 0, 0, .22); padding: 18px 20px 20px; z-index: 22; display: grid; gap: 16px; animation: rise .22s var(--ease); }
.profile .who { display: flex; align-items: center; gap: 12px; }
.profile h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; }
.prof-rows { display: grid; gap: 10px; }
.prof-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; font-size: 15px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; width: max-content; }
.seg-btn { all: unset; padding: 5px 14px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--panel); color: var(--fg); box-shadow: var(--shadow); }
.prof-week { display: grid; gap: 4px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.prof-week .mline { font-size: 14.5px; }
.prof-week .mline b { width: 36px; }
.prof-week .mline.now b { color: var(--accent); }
.tabs { display: inline-flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: .02em; color: var(--muted); transition: color .18s var(--ease), background .18s var(--ease), transform .12s var(--ease); }
.tabs button:hover { color: var(--fg); }
.tabs button:active { transform: scale(.97); }
.tabs button[aria-selected="true"] { background: var(--panel); color: var(--fg); box-shadow: var(--shadow); }
.datebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.datebar .date { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.005em; flex: 1 1 auto; min-width: 0; }
.icon-btn { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; width: 34px; height: 34px; font-size: 18px; line-height: 1; display: inline-grid; place-items: center; transition: border-color .15s var(--ease), background .15s var(--ease), transform .12s var(--ease); }
.icon-btn:hover { border-color: var(--fg-2); }
.icon-btn:active { transform: scale(.94); }
#clock { display: none; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--muted); }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; font-family: var(--display); letter-spacing: .02em; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s var(--ease), background .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease); }
.btn:hover { border-color: var(--fg-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.quiet { background: transparent; }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* ---------- Summary strip ---------- */
.view { padding-top: 14px; }
.summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.summary .bar { flex: 1 1 160px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; min-width: 0; }
.summary .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), color-mix(in srgb, var(--good) 70%, #fff)); width: 0; border-radius: 3px; transition: width .6s var(--ease); }
.summary .label { font-size: 13px; color: var(--muted); font-family: var(--display); font-weight: 600; letter-spacing: .02em; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* ---------- Day head: the date, then the live numbers ---------- */
.dayhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.daytitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.daytitle h2 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.dayitem { display: inline-block; font-size: 14px; font-weight: 600; color: var(--fg-2); background: var(--bg-2); border-radius: 999px; padding: 4px 11px; vertical-align: middle; }
.live { display: flex; gap: 10px; flex-wrap: wrap; }
.live-cell { display: grid; gap: 2px; padding: 9px 14px 10px; background: var(--bg-2); border-radius: var(--r-sm); min-width: 150px; }
.live-cell .big { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; }
#crew-cell .big { color: var(--good); }
.live-cell .bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.live-cell .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), color-mix(in srgb, var(--good) 70%, #fff)); width: 0; border-radius: 3px; transition: width .6s var(--ease); }

/* ---------- Attendance ---------- */
.roll { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid color-mix(in srgb, var(--good) 45%, var(--line)); background: var(--good-soft); color: var(--good); border-radius: 999px; padding: 7px 15px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .01em; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease), opacity .2s var(--ease); position: relative; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 7px; vertical-align: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.chip.out { border-color: var(--line); background: transparent; color: var(--muted); text-decoration: line-through; opacity: .8; }
.chip.out::before { transform: scale(.4); opacity: .6; }
button.chip:hover { transform: translateY(-1px); }
button.chip:active { transform: scale(.95); }

/* ---------- Level 2: people ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px 14px; min-width: 0; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease); position: relative; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.card.mine { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.card.mine::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: var(--r) 0 0 var(--r); background: var(--accent); }
.card.off { opacity: .7; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; }
.who h3 { margin-top: 0; font-size: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-2); }
.card.mine .who h3 { color: var(--accent); }
.head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.count { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 13px; }
.count b { color: var(--fg); font-size: 18px; }
.target { font-size: 13px; color: var(--muted); margin-top: -4px; min-height: 18px; line-height: 18px; }
.cantwrap.ghost { visibility: hidden; }
.grid.enter .card { animation: rise .42s var(--ease) both; }
.grid.enter .card:nth-child(2) { animation-delay: .05s } .grid.enter .card:nth-child(3) { animation-delay: .1s } .grid.enter .card:nth-child(4) { animation-delay: .15s } .grid.enter .card:nth-child(5) { animation-delay: .2s } .grid.enter .card:nth-child(6) { animation-delay: .25s } .grid.enter .card:nth-child(n+7) { animation-delay: .3s }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Level 3: routes ---------- */
.route { border-top: 1px solid var(--line-2); padding-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.route:first-of-type { border-top: 0; padding-top: 2px; }
.route-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.route-line input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; flex-shrink: 0; border: 2px solid var(--line); border-radius: 7px; background: var(--panel); display: grid; place-items: center; cursor: pointer; transition: border-color .15s var(--ease), background .18s var(--ease), transform .12s var(--ease); }
.route-line input[type="checkbox"]::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg) scale(0); transform-origin: center; margin-top: -3px; transition: transform .18s var(--ease); }
.route-line input[type="checkbox"]:hover:not(:disabled) { border-color: var(--good); }
.route-line input[type="checkbox"]:active:not(:disabled) { transform: scale(.9); }
.route-line input[type="checkbox"]:checked { background: var(--good); border-color: var(--good); }
.route-line input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.route-line input[type="checkbox"]:disabled { opacity: .5; cursor: default; }
.route-name { font-family: var(--display); font-weight: 700; font-size: 20px; min-width: 0; overflow-wrap: anywhere; flex: 1 1 auto; position: relative; transition: color .25s var(--ease); }
.route-name::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 2px; background: var(--muted); transform: scaleX(0); transform-origin: left center; transition: transform .3s var(--ease); }
.route.done .route-name { color: var(--muted); }
.route.done .route-name::after { transform: scaleX(1); }
.route.just-done input[type="checkbox"] { animation: pop .32s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.route-tasks { font-size: 13px; color: var(--muted); margin-left: 36px; line-height: 1.35; }
.route-line select { margin-left: auto; }
.route-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.route-head select, .flag-select { max-width: 130px; font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 2px 4px; }
.route-head select:hover, .flag-select:hover { border-color: var(--line); }
.incomplete { font-size: 13px; color: var(--amber); margin-left: 36px; }
.cantwrap { margin-left: 36px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cantbox { display: flex; gap: 6px; align-items: center; flex: 1 1 240px; }
.linkish { border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; padding: 0; transition: color .15s var(--ease); }
.linkish:hover { color: var(--fg); }
.after { border-top: 1px solid var(--line-2); padding-top: 8px; display: grid; gap: 4px; }
.after .addafter { justify-self: start; text-decoration: none; }
.after .addafter:hover { text-decoration: underline; }
.after .tag, .evening-line .tag { font-family: var(--display); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.after-input { font: inherit; font-size: 13.5px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--fg); padding: 6px 9px; width: 100%; min-width: 0; transition: border-color .15s var(--ease), background .15s var(--ease); }
.after-input:focus { background: var(--panel); border-color: var(--accent); }
.after-text { font-size: 15px; }
.cover { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 60%, var(--panel)); }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.pill.warn { background: var(--warn); color: #fff; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.off { background: var(--bg-2); color: var(--muted); }
.note { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px; color: var(--muted); max-width: 62ch; box-shadow: var(--shadow); }
.note b { color: var(--fg); }
.notes { margin-top: 14px; }
.notes textarea { width: 100%; min-height: 48px; font: inherit; font-size: 14.5px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--fg); padding: 8px 10px; margin-top: 6px; resize: vertical; transition: border-color .15s var(--ease); }
.notes textarea:focus { border-color: var(--accent); }
textarea.copybox { width: 100%; min-height: 160px; font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--fg); padding: 10px; margin-top: 10px; }

/* ---------- Tables (Week, Record) ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; font-family: var(--display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-2); }
th.today, td.today { background: var(--accent-soft) !important; }
td.rname { font-weight: 700; font-family: var(--display); font-size: 15px; white-space: nowrap; }
td .sub { display: block; font-size: 12px; color: var(--muted); font-family: var(--body); font-weight: 400; }
tr.evening td { border-top: 2px solid var(--line); }
tr.clickable { cursor: pointer; }
tr.detail td { background: var(--bg-2); }
td.needs { color: var(--warn); font-weight: 700; }
td.none { color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.log li { display: grid; grid-template-columns: 60px 110px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.log li .t { font-variant-numeric: tabular-nums; color: var(--muted); }
.log li .flagbox { display: flex; gap: 6px; align-items: center; }
.log li.undone { opacity: .55; }
.flag-note { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); padding: 3px 6px; width: 100%; min-width: 0; }

/* ---------- Setup ---------- */
.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; min-width: 0; box-shadow: var(--shadow); }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { margin-bottom: 4px; }
.panel .hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; max-width: 70ch; }
.pos { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; background: var(--bg); }
.pos .full { grid-column: 1 / -1; }
.pos label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.pos label.check { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: var(--fg); }
.pos input[type="text"], .pos select, .routebox input[type="text"], .routebox textarea, .wk input, .thin-input { font: inherit; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--fg); width: 100%; min-width: 0; transition: border-color .15s var(--ease); }
.pos input:focus, .pos select:focus, .routebox input:focus, .routebox textarea:focus, .wk input:focus, .thin-input:focus { border-color: var(--accent); }
.pos .row-actions, .routebox .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.pos .row-actions { grid-column: 1 / -1; }
.routebox { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px; margin-bottom: 8px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.routebox .rhead { display: flex; gap: 6px; align-items: center; }
.routebox .rhead .order { font-family: var(--display); font-weight: 700; color: var(--muted); width: 22px; text-align: center; }
.routebox input[type="text"] { flex: 1 1 auto; font-weight: 600; }
.routebox textarea { min-height: 96px; font-size: 14px; resize: vertical; }
.wk { display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; align-items: center; }
.wk span { font-family: var(--display); font-weight: 600; color: var(--muted); }
.days { display: flex; gap: 10px; flex-wrap: wrap; }
.daychk { display: flex; gap: 4px; align-items: center; font-size: 13px; color: var(--fg); }
.thin-input { min-height: 110px; font-size: 14px; margin-top: 8px; resize: vertical; }
.select-input { min-height: 0; margin-top: 4px; }
.time-input { font: inherit; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); margin-left: 6px; }
.radio { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; align-items: center; }
.radio label { display: flex; gap: 6px; align-items: center; }
.save-row { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.status { font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 8px); background: var(--fg); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-family: var(--display); font-weight: 600; letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); z-index: 20; max-width: calc(100vw - 32px); box-shadow: var(--shadow-lift); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Sign-in ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.auth-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; width: min(100%, 380px); display: grid; gap: 12px; box-shadow: var(--shadow-lift); animation: rise .5s var(--ease) both; }
.auth-card h1 { font-size: 28px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0; }
.auth-card label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.auth-card input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--fg); transition: border-color .15s var(--ease); }
.auth-card input:focus { border-color: var(--accent); }
.auth-card .btn { justify-content: center; padding: 10px 14px; font-size: 15px; }
#auth-error { color: var(--warn); min-height: 1.2em; margin: 0; }

/* ---------- Wall display ---------- */
body.wall { font-size: 20px; }
body.wall .wrap { max-width: none; }
body.wall .tabs, body.wall .actions, body.wall .notes, body.wall .off-toggle, body.wall .route-head select, body.wall .flag-select, body.wall .icon-btn, body.wall #today-btn, body.wall #signout, body.wall #theme, body.wall .roll .status { display: none !important; }
body.wall h1 { font-size: 34px; } body.wall .who h3 { font-size: 22px; }
body.wall .grid { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }
body.wall .card { padding: 20px 22px; gap: 12px; }
body.wall .route-line input[type="checkbox"] { width: 30px; height: 30px; }
body.wall .route-name { font-size: 26px; } body.wall .route-tasks { font-size: 16px; margin-left: 42px; }
body.wall .chip { font-size: 20px; padding: 9px 20px; }
body.wall .who-bar { display: none; }
body.wall .daytitle h2 { font-size: 34px; } body.wall #clock { display: inline; font-size: 22px; color: var(--fg); }
body.wall .after-text { font-size: 20px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 520px) { h1 { font-size: 22px; } .datebar .date { font-size: 20px; } .daytitle h2 { font-size: 22px; } .pos { grid-template-columns: 1fr; } .log li { grid-template-columns: 54px 1fr; } .log li .flagbox { grid-column: 1 / -1; } .wrap { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); } .top { margin-inline: calc(-1 * max(14px, env(safe-area-inset-left, 0px))) calc(-1 * max(14px, env(safe-area-inset-right, 0px))); padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px)); } }

/* ---------- Morning timeline ---------- */
.timeline { margin: 2px 0 16px; padding: 18px 8px 24px; }
.tl-track { position: relative; height: 4px; border-radius: 2px; background: var(--line); }
.tl-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, var(--line)), var(--accent)); transition: width 1s linear; }
.tl-tick { position: absolute; top: 10px; transform: translateX(-50%); font-family: var(--display); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.tl-tick i { display: block; width: 1px; height: 6px; background: var(--line); margin: -10px auto 4px; }
.tl-mark { position: absolute; top: -24px; transform: translateX(-50%); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .02em; color: var(--fg-2); white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: left .6s var(--ease); }
.tl-mark b { width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--fg-2); order: 2; margin-top: 2px; transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.tl-mark.hit { color: var(--good); }
.tl-mark.hit b { background: var(--good); border-color: var(--good); transform: scale(1.15); }
.tl-now { position: absolute; top: -8px; width: 2px; height: 20px; background: var(--accent); transform: translateX(-50%); border-radius: 1px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); transition: left 1s linear; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 85%, transparent); } }
body.wall .timeline { padding: 26px 10px 30px; } body.wall .tl-mark { font-size: 16px; } body.wall .tl-tick { font-size: 14px; }

/* ---------- Minutes on each route; Tonight block ---------- */
.mins { margin-left: auto; font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 2px 9px; flex-shrink: 0; }
.route.done .mins { opacity: .6; }
.tonight { margin-top: 4px; padding: 10px 12px 11px; border-radius: var(--r-sm); background: var(--amber-soft); border-left: 4px solid var(--amber); display: grid; gap: 6px; position: relative; }
.tonight .tag { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.tonight .route-name { font-size: 17px; }
.tonight.done .route-name { color: var(--muted); }
.tonight.just-done input[type="checkbox"] { animation: pop .32s var(--ease); }
.items { border-top: 1px solid var(--line-2); padding-top: 8px; display: grid; gap: 3px; }
.items .tag { font-family: var(--display); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.item-line { font-size: 15px; }
.holiday { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 3px 10px; vertical-align: middle; margin-left: 8px; }
.month { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: calc(100dvh - 206px); min-height: 400px; }
.mhead { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.mhead span { padding: 8px 10px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; flex: 1; min-height: 0; }
.mcell { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left; min-height: 0; overflow: hidden; padding: 6px 8px 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font: inherit; color: var(--fg); cursor: pointer; transition: background .15s var(--ease); }
.mcell:nth-child(7n) { border-right: 0; }
.mcell:hover { background: var(--bg-2); }
.mcell.dim { background: var(--bg); color: var(--muted); cursor: default; }
.mcell.past:not(.today) { opacity: .72; }
.mcell.today { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.mcell.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.mcell:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.mnum { display: block; font-family: var(--display); font-weight: 700; font-size: 13px; margin-bottom: 3px; flex: none; }
.mcell.today .mnum { color: var(--accent); }
.mline { font-size: 11.5px; line-height: 1.25; color: var(--fg-2); display: flex; gap: 5px; align-items: baseline; min-width: 0; }
.mline b { font-family: var(--display); font-weight: 700; color: var(--fg); flex: none; }
.mline.eod { color: var(--amber); margin-top: 3px; }
.mline.eod b { color: var(--amber); }
.mout { font-size: 11.5px; color: var(--muted); text-decoration: line-through; }
.mhol { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin-bottom: 3px; }
.mini { display: none; }
.mitem { font-size: 11.5px; color: var(--fg); padding-left: 8px; border-left: 2px solid var(--accent); margin-top: 3px; line-height: 1.3; }
.day-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 22; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: -16px 0 48px rgba(0, 0, 0, .18); padding: 18px 20px 24px; display: grid; gap: 14px; align-content: start; animation: slide .26s var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.dp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-head h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; }
.dp-plan { display: grid; grid-template-columns: 1fr; gap: 5px; }
.dp-plan .mline { font-size: 14px; justify-content: space-between; }
.dp-plan .mline b { font-weight: 600; }
.dp-edit { display: grid; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.dp-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.dp-row label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.dp-row label.daychk.big { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fg); padding-bottom: 7px; }
.dp-items { display: grid; gap: 6px; }
.dp-item { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; padding: 6px 10px; background: var(--bg-2); border-radius: var(--r-sm); }
.dp-add { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 4px; }
.needs { color: var(--warn); font-weight: 600; }
@media (max-width: 760px) {
  /* Phone: the month stays a seven-column grid that fits the screen; the chosen day's detail sits under it. */
  .month { height: auto; min-height: 0; }
  .mhead span { padding: 6px 0; font-size: 10px; text-align: center; }
  .mcell { min-height: 54px; padding: 4px 3px 5px; align-items: center; }
  .mcell.dim { opacity: .35; }
  .mnum { font-size: 12.5px; margin-bottom: 2px; text-align: center; }
  .mcell .mline, .mcell .mout, .mcell .mitem, .mcell .mhol { display: none; }
  .mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
  .mc { font-family: var(--display); font-weight: 700; font-size: 9.5px; letter-spacing: .02em; line-height: 1; padding: 3px 3px; border-radius: 4px; background: var(--bg-2); color: var(--fg-2); }
  .mc.eod { background: var(--amber-soft); color: var(--amber); }
  .mc.out { text-decoration: line-through; color: var(--muted); background: transparent; }
  .mc.dot { width: 6px; height: 6px; padding: 0; border-radius: 50%; background: var(--accent); align-self: center; }
  .day-panel { position: static; width: auto; margin-top: 12px; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 14px 16px; animation: rise .22s var(--ease); }
  .dp-head h3 { font-size: 18px; }
  .dp-add { grid-template-columns: 1fr; }
  .top { padding-top: 8px; }
  .top-row { gap: 8px 10px; }
  .brand { order: 0; }
  .who-bar { order: 1; margin-left: auto; }
  .tabs { order: 2; flex: 1 1 100%; display: flex; }
  .tabs button { flex: 1; padding: 7px 4px; font-size: 14px; }
  .datebar { gap: 8px; }
  .datebar .date { font-size: 19px; }
  .name-btn #who-label { display: none; }
  .name-btn { padding: 3px; }
  .summary .actions { margin-left: auto; }
  .dayhead { margin-bottom: 12px; }
  .daytitle h2 { font-size: 24px; }
  .live { width: 100%; }
  .live-cell { flex: 1 1 0; min-width: 0; padding: 8px 12px 9px; }
  .live-cell .big { font-size: 21px; }
  .live-cell .small-text { font-size: 12px; }
}
}
body.wall .tonight .route-name { font-size: 24px; }
body.wall .item-line { font-size: 20px; }

.tablewrap td.small-text { white-space: nowrap; }

.after-text .linkish { margin-left: 6px; font-size: 14px; }

/* round 5: quiet check-off moment, pulled-off, crew number, insights */
.ring { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--good) var(--pct, 0%), var(--line) 0); transition: background .4s var(--ease); }
.ring i { position: absolute; inset: 4px; border-radius: 50%; background: var(--panel); }
.ring .count { position: relative; font-size: 12px; }
.complete-line { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--good); animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes tickdraw { from { transform: rotate(-45deg) scale(0); opacity: 0; } to { transform: rotate(-45deg) scale(1); opacity: 1; } }
.route.just-done input[type="checkbox"]:checked::after { animation: tickdraw .28s var(--ease); }
.pulls { display: grid; gap: 4px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.pull-line { font-size: 14px; }
.pull-line .tag, .pullwrap .tag { font-family: var(--display); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); }
.pullbox { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; }
.chip.small { padding: 4px 11px; font-size: 13px; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; }
.panel.ins { margin: 0; }
.panel.ins h2 { margin-top: 0; }
.panel.ins .mline { font-size: 14.5px; justify-content: space-between; margin: 3px 0; }
.panel.ins .ml { margin-left: 2px; margin-bottom: 8px; }
ul.plain { margin: 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }
details.person { border-top: 1px solid var(--line-2); padding: 8px 0; }
details.person summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 16px; }
details.person .mline { font-size: 14.5px; justify-content: space-between; margin: 3px 0; }
.rules { max-width: 720px; }
.panel.ins.wide { grid-column: 1 / -1; }

/* sandbox build only: the strip and no sign-out */
.sandbar { font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; color: var(--fg-2); text-align: center; padding: 7px 12px; margin: 0 calc(-1 * max(20px, env(safe-area-inset-left, 0px))) 0 calc(-1 * max(20px, env(safe-area-inset-right, 0px))); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.sandbar a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
body.sandbox #signout, body.sandbox #profile-signout { display: none; }

/* ---------- Glass: the light field, the panes, the marks (release 27) ---------- */
/* the light field and the reeding sit on the body, behind everything */
body { background-color: var(--bg); background-image: var(--reed), var(--light); background-attachment: fixed, fixed, fixed, fixed; }
.top { background: color-mix(in srgb, var(--bg) 55%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .5); }
:root[data-theme="dark"] .top { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05); }

/* panes */
.card, .panel, .live-cell, .tablewrap, .month, .note, .day-panel, .menu, .auth-card, .profile-card {
  background: var(--panel); background-image: var(--reed); border: 0; border-radius: var(--r); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
}
.card:hover { transform: none; box-shadow: var(--shadow-lift); }
.card.mine { border: 0; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .95); background-image: var(--reed), radial-gradient(420px 260px at 0% 0%, var(--accent-soft), transparent 70%); }
.card.mine::before { display: none; }
.live-cell { padding: 10px 14px 11px; }
.live-cell .bar { background: color-mix(in srgb, var(--line) 70%, transparent); border-radius: 2px; }
.live-cell .bar i { border-radius: 2px; }

/* near-square edges everywhere that was a pill */
.btn, .chip, .chip.small, .tabs, .tabs button, .seg, .seg-btn, .pill, .mins, .dayitem, .holiday, .name-btn, .icon-btn, .tile-ic, .menu-item, .after-input, .flag-select, .auth-card input, select, input[type="text"], input[type="time"], textarea { border-radius: var(--r-sm); }
.tabs { background: color-mix(in srgb, var(--panel) 60%, transparent); border-color: color-mix(in srgb, var(--line) 60%, transparent); padding: 2px; }
.tabs button[aria-selected="true"] { background: var(--panel); box-shadow: 0 0 0 1px rgba(120, 136, 150, .25), inset 0 1px 0 rgba(255, 255, 255, .9); }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .08); }
.chip { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.chip.out { background: transparent; }
.tonight { border-left-width: 3px; border-radius: var(--r-sm); background: var(--amber-soft); }
.items, .after, .pulls, .route { border-top-color: color-mix(in srgb, var(--line) 60%, transparent); }

/* etched marks: the box is a line cut into the glass; a tick fills nothing, it is a stroke */
.route-line input[type="checkbox"] { border-radius: 3px; border-color: color-mix(in srgb, var(--fg) 32%, transparent); background: transparent; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .06); }
.route-line input[type="checkbox"]:checked { background: transparent; border-color: var(--good); }
.route-line input[type="checkbox"]::after { border-color: var(--good); border-width: 0 0 2.5px 2.5px; }
.route-line input[type="checkbox"]:hover:not(:disabled) { border-color: var(--good); }
.route.done .route-name { color: var(--muted); }
.ring { background: conic-gradient(var(--good) var(--pct, 0%), color-mix(in srgb, var(--line) 80%, transparent) 0); }
.ring i { background: var(--panel); }

/* the ground should show through the empty areas, so the view does not paint over it */
.view, .wrap { background: transparent; }
.sandbar { background: color-mix(in srgb, var(--panel) 70%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.auth { background: var(--bg); background-image: var(--reed), var(--light); }

/* motion: a pen stroke, no bounce */
.route.just-done input[type="checkbox"] { animation: none; }
@media (max-width: 760px) {
  .card, .panel, .live-cell { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--panel) 100%, transparent); }
  body { background-attachment: scroll; }
}
