/* The account page. Same tokens and the same plainness as pair.css — the two should look written
   by the same hand — but this one is read on a desk monitor, not visited once, so it is wider and
   it has a table. No product name, no logo and no brand colour is written here: the script sets
   `--accent` and `--accent-fg` from the tenant's branding at runtime, and these values are what a
   tenant with no branding gets. */

:root {
  --bg: #ffffff;
  --fg: #1b1f24;
  --muted: #5c6773;
  --line: #d9dee4;
  --soft: #f3f5f7;
  --accent: #15497a;
  --accent-fg: #ffffff;
  --error: #96221b;
  --ok: #1d6b3f;
  --warn: #8a5a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --fg: #e8ecf0;
    --muted: #9aa5b1;
    --line: #333a42;
    --soft: #1d2229;
    --accent: #7db2ec;
    --accent-fg: #15191f;
    --error: #ef8279;
    --ok: #71c894;
    --warn: #e2b04a;
  }
}

* { box-sizing: border-box; }

/* Restated with the weight to win over any author display rule — see pair.css for the bug. */
[hidden] { display: none !important; }

body {
  margin: 0;
  padding: 24px 16px;                 /* a 16px side gutter holds at phone width */
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

main { max-width: 88rem; margin: 0 auto; }   /* wider than it was: the glasses panel now sits beside the record */

h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 0.95rem; margin: 0 0 0.6rem; }
h4 { font-size: 0.95rem; margin: 1.2rem 0 0.4rem; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95em; }

/* ---------------------------------------------------------------- header */
.top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.top > div { flex: 1; min-width: 12rem; }
#brand-logo { height: 2.4rem; max-width: 10rem; object-fit: contain; }
.brand { margin: 0; font-size: 0.85rem; color: var(--muted); }
#nav { display: flex; gap: 1rem; font-size: 0.9rem; }

.who { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.lede { margin: 0 0 1rem; color: var(--muted); max-width: 48rem; }

/* ---------------------------------------------------------------- forms */
label { display: block; margin: 0.9rem 0 0.25rem; font-size: 0.9rem; font-weight: 600; }

input, select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

input:focus-visible, select:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Full-width primary buttons belong to the two forms that are the point of their panel: signing in
   and the retire confirmation. The filter form's Apply is a secondary button and must not inherit
   this, which is why the rule is scoped rather than written against every submit. */
#form-auth button[type="submit"], .retire button[type="submit"] {
  margin-top: 1.1rem;
  width: 100%;
  padding: 0.65rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Quieter than a submit: these leave the page (Stripe), page the list, or change a view. */
.secondary {
  padding: 0.45rem 0.8rem;
  font: inherit;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}
.secondary.small { padding: 0.3rem 0.6rem; font-size: 0.9rem; }

.link {
  background: none; border: 0; padding: 0;
  color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer;
}
.link.quiet { color: var(--muted); }

#auth { max-width: 24rem; }
#auth button[type="submit"] { width: 100%; }

.hint { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--muted); }
.hint.saving { color: var(--ok); font-weight: 600; }
.big { margin: 0; font-size: 1.3rem; font-weight: 600; }

/* ---------------------------------------------------------------- status lines */
#message { margin-top: 1rem; padding: 0.6rem 0.7rem; border-radius: 6px; border: 1px solid var(--line); }
#message.error { color: var(--error); border-color: var(--error); }
#message.ok { color: var(--ok); border-color: var(--ok); }

.status { margin: 0.5rem 0; padding: 0.5rem 0.7rem; border-radius: 6px; border: 1px solid var(--line); font-size: 0.9rem; }
.status.error { color: var(--error); border-color: var(--error); }
/* An upsell is an offer, so it is drawn like information and never like a failure. */
.status.upsell, #message.upsell { border-left: 4px solid var(--accent); }

.empty { color: var(--muted); margin: 0.6rem 0; }

/* ---------------------------------------------------------------- service banner */

/* Above everything else, bordered rather than filled: a solid red block reads as a crash.
   `warn` is grace (a card to fix), `error` is write-blocked (work really is restricted), and
   `ended` is dormant or closed — drawn in the accent, NOT in red, because that banner's job is
   to say the records are still here, and red says the opposite before a word is read. */
#service-banner {
  margin: 0 0 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 6px;
  font-size: 0.9rem;
}
#service-banner.warn { border-left-color: var(--warn); }
#service-banner.error { border-left-color: var(--error); color: var(--error); }
#service-banner.ended { border-left-color: var(--accent); }

/* ---------------------------------------------------------------- plan and billing */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 640px) { .two-up { grid-template-columns: 1fr; } }

#plan p, #billing p { margin: 0.2rem 0 0; }
#billing button { margin-top: 0.8rem; }
#billing .hint { margin-top: 0.5rem; max-width: 30rem; }

/* The cancellation line is a fact the customer chose, stated plainly. Not red. */
.ends { margin-top: 0.6rem; padding: 0.5rem 0.7rem; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 6px 6px 0; font-size: 0.9rem; }

/* ---------------------------------------------------------------- glasses */
.devices { list-style: none; margin: 0; padding: 0; }

.devices li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.devices .empty { border-bottom: 0; }

.device-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.device-head .actions { display: flex; gap: 1rem; font-size: 0.9rem; }
.device-head .rename { display: flex; gap: 0.5rem; align-items: center; flex: 1; max-width: 28rem; }
.device-head .rename input { padding: 0.35rem 0.5rem; }

.devices .meta { font-size: 0.85rem; color: var(--muted); }
.dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.4rem; background: var(--muted); vertical-align: 0.05em; }
.dot.ready { background: var(--ok); }

.pill {
  align-self: flex-start;
  margin-top: 0.2rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
}
.pill.billed { color: var(--fg); border-color: var(--fg); }

/* The retire form. Framed, because it is the one place on this page where a click moves money and
   is hard to undo, and it should not look like the rename field next to it. Framed in the line
   colour, not in red: serious is not the same as alarming. */
.retire {
  margin: 0.8rem 0 0.4rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  max-width: 36rem;
}
.retire h3 { margin-top: 0; }
.retire .effect { margin: 0 0 0.3rem; font-weight: 600; }
.retire input, .retire select { background: var(--bg); }
.retire #retire-details { margin-top: 0.4rem; }
.retire .row { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.retire button[type="submit"] { margin-top: 0; width: auto; padding: 0.55rem 1rem; }
.retire .danger { background: var(--error); color: #fff; }
.retire .force { margin-top: 1rem; padding: 0.7rem 0.8rem; border: 1px solid var(--error); border-radius: 6px; }
.retire .unsynced { margin: 0 0 0.5rem; color: var(--error); font-size: 0.9rem; }
.retire .unsynced p { margin: 0; }
.retire .unsynced ul { margin: 0.3rem 0 0 1.1rem; padding: 0; }
/* These li sit inside the device list's li and would inherit its row borders and flex layout. */
.retire .unsynced li { display: list-item; padding: 0.1rem 0; border: 0; }
.retire .check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; font-size: 0.9rem; margin: 0; }
.retire .check input { width: auto; margin-top: 0.25rem; }

/* ---------------------------------------------------------------- calls */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: end;
  padding: 0.7rem 0.8rem; margin-bottom: 0.8rem;
  border: 1px solid var(--line); border-radius: 8px;
}
.filters label { margin: 0; flex-basis: 100%; }
.filters > label { flex-basis: auto; margin-right: -0.4rem; }
.filters input, .filters select { width: auto; min-width: 9rem; padding: 0.4rem 0.5rem; }
.filters .secondary { padding: 0.42rem 0.8rem; }
@media (max-width: 640px) {
  .filters input, .filters select { width: 100%; }
  .filters > label { flex-basis: 100%; margin: 0.3rem 0 0; }
}

.sessions { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sessions th { text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--muted); padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); }
.sessions td { padding: 0.6rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
/* Scoped to the CALLS table by id, not to the shared `.sessions` layout class. The inspections
   table reuses that class for its grid but its rows open nothing -- the row action is the download
   button in the last cell -- and a pointer cursor on a row that does not respond to a click is a
   promise the page cannot keep. account.js says why there is no inspection detail view. */
#sessions-table tbody tr { cursor: pointer; }
#sessions-table tbody tr:hover, #sessions-table tbody tr:focus-visible { background: var(--soft); outline: none; }
.sessions .num { text-align: right; font-variant-numeric: tabular-nums; }
.sessions .none { color: var(--muted); }
.sessions td:first-child { font-weight: 600; }

/* On a phone the table becomes stacked cards: each cell carries its column name in data-label. */
@media (max-width: 640px) {
  .sessions thead { display: none; }
  .sessions tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  .sessions td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; border: 0; text-align: left; }
  .sessions td::before { content: attr(data-label); color: var(--muted); font-size: 0.8rem; }
  .sessions .num { text-align: left; }
}

.more { margin: 1rem 0; }

/* ---------------------------------------------------------------- one call */
#session h2 { margin-top: 0.3rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 1rem; margin: 0 0 1.2rem; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Timeline beside the stills on a wide screen, above them on a narrow one. The stills get the
   width: they are the thing being looked at. */
.session-body { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(0, 2.2fr); gap: 2rem; align-items: start; }
/* Measured against the main area, not the window: beside the glasses panel the main area is
   narrower than the screen. A browser with no container queries keeps the two columns. */
@container home-main (max-width: 52rem) { .session-body { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; max-height: 70vh; overflow: auto; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 3rem auto 1fr; gap: 0.5rem; padding: 0.25rem 0 0.25rem 0.8rem; align-items: baseline; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .ev { font-weight: 600; white-space: nowrap; }
.timeline .detail { color: var(--muted); overflow-wrap: anywhere; grid-column: 2 / -1; }
.timeline .link { font-size: 0.85rem; }

.stills-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.stills-head h3 { margin: 0; }
.count { color: var(--muted); font-weight: 400; }

/* The two orders, as one control. The checked one is filled in the accent, so which view is on
   is visible from across the room. */
.seg { display: inline-flex; border: 1px solid var(--accent); border-radius: 6px; overflow: hidden; }
.seg button {
  padding: 0.4rem 0.8rem; font: inherit; font-size: 0.9rem; cursor: pointer;
  color: var(--accent); background: none; border: 0;
}
.seg button + button { border-left: 1px solid var(--accent); }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.seg button:disabled { cursor: not-allowed; }

#stills-hint { margin: 0.5rem 0 0.8rem; }

.group h4 { padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.8rem; margin-top: 0.6rem; }

/* A still before its bytes arrive is a grey box of the right shape (width/height attributes give
   the browser the ratio), so a grid of forty 1.5 MB images lays out at once and fills in as they
   load instead of jumping. */
.still {
  margin: 0; cursor: zoom-in; border-radius: 6px; overflow: hidden;
  background: var(--soft); border: 1px solid var(--line);
}
.still img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0; transition: opacity 0.2s; }
.still img[width] { aspect-ratio: auto; }
.still.loaded img { opacity: 1; }
.still.failed img { opacity: 0; }
.still.failed::after { content: "Could not load this still"; display: block; padding: 0.4rem 0.6rem; font-size: 0.8rem; color: var(--error); }
.still figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 0.5rem; padding: 0.35rem 0.6rem; font-size: 0.8rem; color: var(--muted); }
.still .tag { color: var(--fg); font-weight: 600; }
/* A marked picture (annotation): the same tile, labelled so it is never mistaken for a raw still. */
.still .tag.marked { color: #8a6d00; background: #fff4b3; border-radius: 4px; padding: 0 6px; margin-left: 6px; }

/* ---------------------------------------------------------------- the viewer */
#viewer {
  width: min(100vw, 100%); height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #0b0d10; color: #e8ecf0;
  display: none; grid-template-rows: auto 1fr;
}
#viewer[open] { display: grid; }
#viewer::backdrop { background: rgba(0, 0, 0, 0.85); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0.8rem; font-size: 0.9rem; background: #15181c; }
.viewer-nav { display: flex; gap: 0.6rem; align-items: center; }
.viewer-nav button, .viewer-nav a {
  font: inherit; color: #e8ecf0; background: none; border: 1px solid #3a424b; border-radius: 6px;
  padding: 0.2rem 0.6rem; cursor: pointer; text-decoration: none;
}
.viewer-nav button:disabled { opacity: 0.35; }
/* Fitted by default; a click makes it natural size inside a scrolling pane, and THAT is the zoom.
   A 4032×3024 still that can only ever be scaled to fit would throw away the one thing it is for.
   Flex + margin:auto rather than grid centring: auto margins centre a small image and still let a
   large one scroll from its top-left corner, where grid centring would clip that corner. */
#viewer .scroll { display: flex; overflow: auto; min-height: 0; }
#viewer-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; object-fit: contain; cursor: zoom-in; }
#viewer-img.natural { max-width: none; max-height: none; cursor: zoom-out; }

.support { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* The download of an inspection package: the one thing on this page that leaves with the customer.
   Styled as a button rather than a link because it performs an action, and kept quiet rather than
   accented because every row has one and a column of primary buttons reads as an alarm. */
.download {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.download:hover { border-color: var(--accent); color: var(--accent); }
.download:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- features */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.features .feature { border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.features .feature p { margin: 0; flex: 1; }
.feature-head { display: flex; justify-content: space-between; gap: 0.5rem; width: 100%; align-items: baseline; }
.pill.offer { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- the offer panel (offer.js) */
dialog.qv-offer { max-width: 30rem; width: calc(100% - 32px); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.2rem 1.3rem; background: var(--bg); color: var(--fg); }
dialog.qv-offer::backdrop { background: rgb(0 0 0 / 45%); }
.qv-offer h2 { margin: 0 2rem 0.4rem 0; }
.qv-offer-close { position: absolute; top: 0.6rem; right: 0.7rem; background: none; border: 0;
  font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
dialog.qv-offer { position: fixed; }
.qv-offer-summary { margin: 0 0 0.6rem; font-weight: 600; }
.qv-offer-learn { color: var(--muted); margin: 0 0 0.8rem; }
.qv-offer-box { border-top: 1px solid var(--line); padding-top: 0.8rem; display: flex;
  flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.qv-offer-box p { margin: 0; }
.qv-offer-state.ok { color: var(--ok); }
.qv-offer-msg:empty { display: none; }
.qv-offer-was { opacity:.7; }
.qv-offer-better { font-weight:600; }
.qv-offer-done { font-size:1.05em; font-weight:700; }
.qv-offer-ready { margin-top:8px; }
.qv-offer-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; margin: 0; }
.qv-offer-facts dt { color: var(--muted); }
.qv-offer-facts dd { margin: 0; }
.qv-offer-form { display: flex; flex-direction: column; gap: 0.35rem; width: 100%; }
.qv-offer-form input, .qv-offer-form textarea { width: 100%; font: inherit; padding: 0.4rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
.qv-offer-form button { align-self: flex-start; margin-top: 0.4rem; }

/* ---------------------------------------------------------------- home */
#nav a.current { font-weight: 600; text-decoration: none; }
.locked-feature { border: 1px dashed var(--line); border-radius: 8px; padding: 0.75rem 0.9rem;
  margin: 0 0 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.locked-feature p { margin: 0; color: var(--muted); }
.forms-list { list-style: none; margin: 0; padding: 0; }
.forms-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.forms-list li.more, .forms-list li.empty { border-bottom: 0; }
.device-action { display: block; margin-top: 0.4rem; }
.button-link { display: inline-block; padding: 0.35rem 0.8rem; border-radius: 6px; text-decoration: none;
  background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.settings-title { font-size: 1.25rem; }

/* Walk-through recordings on a call's record (account.js renderRecordings). */
.recordings { margin: 1rem 0; }
.recordings h3 { margin-bottom: 0.4rem; }
.recording { border: 1px solid var(--line, #ccc); border-radius: 8px; padding: 0.6rem 0.8rem; margin-bottom: 0.6rem; }
.recording-facts { margin: 0 0 0.4rem; font-size: 0.9rem; }
.recording-player { display: block; width: 100%; max-width: 720px; max-height: 60vh; background: #000; border-radius: 6px; }
.recording-actions { display: flex; gap: 1rem; align-items: center; margin: 0.5rem 0 0; flex-wrap: wrap; }
.link.danger { color: var(--error); }

/* The transcript under a recording (account.js transcriptBlock). Each line is a button that seeks
   the player; the time sits in a fixed column so the text lines up. */
.transcript { margin-top: 0.8rem; }
.transcript h4 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.transcript-lines { list-style: none; margin: 0.4rem 0; padding: 0; max-height: 50vh; overflow-y: auto; max-width: 720px; }
.transcript-line { display: flex; gap: 0.6rem; width: 100%; text-align: left; background: none; border: 0;
  padding: 0.25rem 0.3rem; font: inherit; color: inherit; cursor: pointer; border-radius: 4px; }
.transcript-line:hover, .transcript-line:focus-visible { background: rgba(127, 127, 127, 0.15); }
.transcript-time { flex: 0 0 4.5rem; font-variant-numeric: tabular-nums; opacity: 0.75; }

/* ---------------------------------------------------------------- the layout (owner, Nov 24 2026)
   The glasses in a left panel that stays put while the record scrolls; the main area holds the
   calls, a call, the forms, or Account. At tablet and phone width the panel becomes a strip at the
   top that folds its list away (the toggle) but always shows Join for a pair in a call. */
.home { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.main { min-width: 0; container: home-main / inline-size; }

.sidebar {
  position: sticky; top: 1rem;
  max-height: calc(100vh - 2rem); overflow-y: auto;
  padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--soft);
}
.sidebar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sidebar-head h2 { margin: 0 0 0.3rem; }
.sidebar .devices li { padding: 0.6rem 0; }
.sidebar .devices li:last-child { border-bottom: 0; }
.sidebar .retire { background: var(--bg); padding: 0.8rem; }
.sidebar .more { margin: 0.6rem 0 0; font-size: 0.9rem; }
.presence { font-size: 0.9rem; }
.dot.live { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Folded-panel controls: only at narrow widths. */
#glasses-toggle, .glasses-strip { display: none; }
.glasses-strip { margin: 0; align-items: center; gap: 0.4rem 0.6rem; flex-wrap: wrap; }

.views { display: flex; flex-wrap: wrap; gap: 0 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 0.4rem; }
.views a {
  padding: 0.5rem 0.8rem; margin-bottom: -1px; color: var(--muted); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.views a:hover { color: var(--fg); }
.views a.current { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
.main > section > h2:first-child { margin-top: 1.2rem; }
#session > p:first-child { margin: 1rem 0 0; }

@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; gap: 1rem; }
  .sidebar { position: static; max-height: none; overflow: visible; }
  #glasses-toggle { display: inline; }
  .glasses-strip { display: flex; }
  .sidebar:not(.open) .sidebar-body { display: none; }
  .sidebar.open .glasses-strip { display: none; }
}
@media (max-width: 640px) {
  .views a { padding: 0.45rem 0.55rem; font-size: 0.9rem; }
}
