:root {
    --yellow: #F5E712;
    --ink: #0E0E0C;
    --ink-soft: #2A2A26;
    --paper: #F6F4EA;
    --line: #E4E2D6;
    --grey: #6E6D66;
    --red: #C8412C;
    --green: #2E7D32;
    --display: "Roboto", system-ui, sans-serif;
    --body: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--body); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, .brand, button, .btn { font-family: var(--display); }
a { color: inherit; }

/* top bar */
.bar { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.25rem; background: var(--ink); color: var(--paper); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(245,231,18,0.4); }
.bar .who { font-family: var(--display); font-weight: 700; min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review .bar { flex-wrap: nowrap; gap: 0.6rem; }
.review .bar button, .review .bar .btn { padding: 0.5rem 0.8rem; white-space: nowrap; flex-shrink: 0; }
.review .bar .brand { flex-shrink: 0; }
.bar .who small { font-weight: 400; opacity: 0.65; margin-left: 0.4rem; }
.bar .spacer { flex: 1; }
.status { font-size: 0.85rem; opacity: 0.8; min-width: 8rem; text-align: right; white-space: nowrap; }
.status.warn { color: var(--yellow); opacity: 1; }
.review .bar .status { overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
@media (max-width: 1500px) { .review .bar .brand-name { display: none; } }   /* the logo alone on the crowded review bar */

/* buttons */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font-weight: 700; font-size: 0.9rem;
    padding: 0.6rem 1rem; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); cursor: pointer; text-decoration: none; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.ghost, button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.bar button, .bar .btn { border-color: var(--yellow); }
.bar .ghost { color: var(--paper); border-color: rgba(246,244,234,0.4); }
button:focus-visible, .btn:focus-visible, select:focus-visible, .drop:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }

/* upload page */
.wrap { max-width: 760px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.kicker { font-family: var(--display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 0.7em; }
.kicker::before { content: ""; width: 2.2em; height: 2px; background: currentColor; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; margin: 0.6rem 0 0.8rem; }
.lede { font-size: 1.05rem; line-height: 1.5; max-width: 56ch; opacity: 0.85; }
.lede.small { font-size: .8rem; max-width: 100%; }
.error { margin: 1.5rem 0 0; padding: 0.9rem 1.1rem; border-left: 4px solid var(--red); background: #fff; line-height: 1.45; }
.error b { font-family: var(--display); display: block; margin-bottom: 0.2rem; }

.drop { display: block; margin-top: 1.8rem; border: 3px dashed var(--ink); background: #fff; padding: 2rem 1rem; text-align: center; cursor: pointer; transition: background 0.15s; }
.drop.over { background: var(--yellow); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { font-family: var(--display); font-size: 1.15rem; display: block; }
.drop span { font-size: 0.9rem; opacity: 0.7; }

.checklist { list-style: none; margin-top: 1.2rem; border-top: 3px solid var(--ink); }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0.6rem; align-items: baseline; padding: 0.65rem 0.2rem; border-bottom: 1px solid var(--line); }
.checklist .tick { font-family: var(--display); font-weight: 700; color: var(--grey); }
.checklist li.ok .tick { color: var(--green); }
.checklist .what b { font-family: var(--display); }
.checklist .what small { display: block; opacity: 0.6; margin-top: 0.1rem; }
.checklist .file { font-size: 0.8rem; opacity: 0.7; text-align: right; overflow-wrap: anywhere; max-width: 16rem; }
.extra { margin-top: 0.6rem; font-size: 0.85rem; color: var(--red); }

.row { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin-top: 1.6rem; }
.field label { display: block; font-family: var(--display); font-weight: 700; font-size: 0.8rem; margin-bottom: 0.3rem; }
select { font: inherit; padding: 0.55rem 0.7rem; border: 2px solid var(--ink); background: #fff; min-width: 14rem; }
.row .go { margin-left: auto; }
.row.options .field { flex: 1 1 14rem; }
.row.options select { width: 100%; min-width: 0; }
/* new report: From Google */
.google .field { margin-top: 0.9rem; }
.google select, .google input[type=date] { width: 100%; min-width: 0; font: inherit; padding: 0.55rem 0.7rem; border: 2px solid var(--ink); background: #fff; }
.google .presets { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.45rem; font-size: 0.82rem; }
.hint { margin-top: 2rem; font-size: 0.85rem; opacity: 0.65; line-height: 1.5; }

/* review page */
.review { display: flex; flex-direction: column; height: 100dvh; }
.facts h2 span { display: block; font-family: var(--body); font-size: 0.82rem; font-weight: 400; opacity: 0.65; margin-top: 0.15rem; }
.facts pre { padding: 0.8rem; background: var(--paper); white-space: pre-wrap; font-size: 0.8rem; line-height: 1.45; }
.frame { flex: 1; min-height: 0; background: var(--ink); }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 1000px) {
    .review .bar { flex-wrap: wrap; }
    .review .bar .brand { order: -2; }
    .review .bar .who { flex-basis: 100%; order: -1; }
}
@media (max-width: 700px) {
    .bar .spacer { display: none; }
    .status { text-align: left; min-width: 0; width: 100%; order: 10; white-space: normal; }
    .row .go { margin-left: 0; width: 100%; }
    .row .go button { width: 100%; }
    .checklist li { grid-template-columns: 1.6rem 1fr; }
    .checklist .file { grid-column: 2; text-align: left; max-width: none; }
}

/* login */
.wrap.narrow { max-width: 420px; }
.stack { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.stack input:not([type=checkbox]) { width: 100%; font: inherit; padding: 0.6rem 0.7rem; border: 2px solid var(--ink); background: #fff; }
.stack input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.stack button { align-self: flex-start; }

/* log out */
.logout { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; flex-shrink: 0; }
.logout span { opacity: 0.7; }
button.link { background: none; border: 0; padding: 0.3rem 0; color: inherit; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; opacity: 0.8; }
button.link:hover { opacity: 1; }

/* download menu */
.menu { position: relative; flex-shrink: 0; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; color: var(--ink); border: 2px solid var(--ink);
    min-width: 17rem; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.menu-list button { background: #fff; border: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; text-align: left; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.7rem 0.9rem; }
.menu-list button:last-child { border-bottom: 0; }
.menu-list button:hover { background: var(--yellow); }
.menu-list small { font-family: var(--body); font-weight: 400; font-size: 0.78rem; opacity: 0.7; }

/* rebuild + banner */
.rebuild { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.rebuild select { min-width: 0; padding: 0.4rem 0.5rem; font-size: 0.85rem; }
.rebuild button { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.error.banner { margin: 0; border-left-width: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) { .menu-list { right: auto; left: 0; } .rebuild select { width: 100%; } }

/* navigation */
.nav { display: flex; gap: 1.1rem; margin-left: 0.8rem; font-family: var(--display); font-weight: 700; font-size: 0.9rem; }
.nav a { text-decoration: none; opacity: 0.7; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { opacity: 1; border-bottom-color: var(--yellow); }
/* admin: tabs under the page title */
.tabs { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; margin: 1.2rem 0 1.4rem; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
.tabs a { text-decoration: none; opacity: 0.6; padding: 0.5rem 0; margin-bottom: -1px; border-bottom: 3px solid transparent; }
.tabs a:hover, .tabs a[aria-current] { opacity: 1; border-bottom-color: var(--yellow); }

/* client library */
.wrap.wide { max-width: 980px; }
.back { display: inline-block; font-size: 0.85rem; margin-bottom: 1.2rem; opacity: 0.7; }
h2.section { font-size: 1.5rem; letter-spacing: -0.02em; margin: 2.4rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--ink); }
.notice { margin-top: 1.2rem; padding: 0.8rem 1rem; border-left: 4px solid var(--green); background: #fff; }
.empty { margin-top: 1.5rem; padding: 1.5rem; background: #fff; border: 1px dashed var(--grey); }
table.list { width: 100%; border-collapse: collapse; margin-top: 1rem; background: #fff; font-size: 0.92rem; }
table.list th { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: left; padding: 0.6rem 0.8rem; border-bottom: 2px solid var(--ink); }
table.list td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list .r { text-align: right; }
table.list a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
table.list.compact td { padding: 0.35rem 0.8rem; }
table.list.sends .to { overflow-wrap: anywhere; }
table.list.sends .subject { display: block; opacity: 0.65; margin: 0.15rem 0 0; }
table.list .path { font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; overflow-wrap: anywhere; }
.actions { white-space: nowrap; }
.actions a { margin-right: 0.8rem; }
form.inline { display: inline; }
button.link.danger { color: var(--red); }
.tag { font-size: 0.72rem; margin-left: 0.5rem; padding: 0.1rem 0.45rem; background: var(--yellow); font-family: var(--display); font-weight: 700; }
.hint.top { margin-top: 0.3rem; }

/* settings form */
.settings fieldset { border: 0; background: #fff; padding: 1.2rem 1.3rem 1.4rem; margin-top: 1.2rem; }
.settings legend { font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding: 0; float: left; width: 100%; }
.settings legend + * { clear: both; }
.settings .field { margin-top: 0.9rem; }
.settings input:not([type=checkbox]):not([type=hidden]), .settings select { width: 100%; font: inherit; font-size: 0.92rem; padding: 0.5rem 0.6rem; border: 2px solid var(--ink); background: #fff; min-width: 0; }
.settings table input { border-width: 1px; padding: 0.35rem 0.5rem; }
.settings input::placeholder { color: #9a998f; }
.settings small { display: block; font-size: 0.78rem; opacity: 0.65; margin-top: 0.25rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 0.9rem; }
.checks label { display: flex; align-items: center; gap: 0.4rem; }
.checks small { display: inline; margin: 0; }
details.names { margin-top: 1rem; font-size: 0.85rem; }
details.names summary { cursor: pointer; }
details.names p { margin-top: 0.4rem; line-height: 1.6; overflow-wrap: anywhere; opacity: 0.8; }
.row.end { justify-content: flex-end; }
button.ghost.dark { color: var(--ink); border-color: var(--ink); background: transparent; }
.client-link { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.85rem; }
.client-link span { opacity: 0.65; }

@media (max-width: 700px) {
    .grid2 { grid-template-columns: 1fr; }
    .nav { margin-left: 0; }
    table.list:not(.compact) th:nth-child(2), table.list:not(.compact) td:nth-child(2) { display: none; }
    .settings fieldset { padding: 1rem; }
    .row.end button { width: 100%; }
}

/* review workflow */
.flow { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 0.88rem; }
.flow .spacer { flex: 1; }
.flow button, .flow .btn { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.flow-text { opacity: 0.8; }
.chip { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; border: 2px solid var(--ink); white-space: nowrap; }
.chip.draft { background: #fff; }
.chip.reviewed { background: var(--yellow); }
.chip.sent { background: var(--ink); color: var(--yellow); }
.notice.banner { margin: 0; border-left-width: 6px; }
.warn-text { color: var(--red); }
small { font-size: 0.78rem; }
td small { opacity: 0.75; margin-left: 0.3rem; }

.count.important { margin-left: 0.5rem; padding: 0.1rem 0.45rem; background: var(--red); color: #fff; font-size: 0.75rem; vertical-align: middle; }
.warnings ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.warnings li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.6rem; padding: 0.45rem 0.7rem; border-left: 4px solid var(--yellow); background: var(--paper); line-height: 1.45; }
.warnings li.important { border-left-color: var(--red); }
.warnings li b { font-family: var(--display); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.warnings li.important b { color: var(--red); }
.warnings em { font-style: normal; opacity: 0.65; margin-left: 0.3rem; }

/* review: the warnings, Facts for review and Send to client popups */
.pop { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 2px solid var(--ink);
        background: #fff; color: var(--ink); font-size: 0.88rem; box-shadow: 8px 8px 0 var(--ink); }
.pop::backdrop { background: rgba(14, 14, 12, 0.55); }
.pop-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
             padding: 0.8rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.pop-head h2 { font-size: 1.25rem; }
.pop-head form { margin: 0; }
.pop .close { font-size: 1.1rem; padding: 0.2rem 0.4rem; text-decoration: none; }
.pop-body { display: grid; gap: 1.2rem; padding: 1rem 1.25rem 1.25rem; }
.pop-body section + section { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.send h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.share { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.5rem; margin-top: 0.7rem; padding: 0.6rem; background: var(--paper); }
.share.new { outline: 3px solid var(--yellow); }
.share input { font: inherit; font-size: 0.82rem; padding: 0.4rem 0.5rem; border: 1px solid var(--ink); background: #fff; min-width: 0; }
.share small { grid-column: 1 / -1; opacity: 0.75; }
.share .copy { padding: 0.35rem 0.8rem; font-size: 0.82rem; }
.row.tight { margin-top: 0.8rem; gap: 0.5rem; align-items: center; }
.row.tight select, .row.tight input { font: inherit; font-size: 0.85rem; padding: 0.45rem 0.5rem; border: 2px solid var(--ink); background: #fff; min-width: 0; flex: 1; }
.row.tight button { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.stack.tight { gap: 0.6rem; margin-top: 0.4rem; }
.stack.tight .field label { font-size: 0.78rem; }
.stack textarea { width: 100%; font: inherit; font-size: 0.88rem; padding: 0.5rem 0.6rem; border: 2px solid var(--ink); background: #fff; resize: vertical; line-height: 1.45; }
.stack.tight input:not([type=checkbox]) { padding: 0.45rem 0.6rem; font-size: 0.88rem; }
.send .checks { margin-top: 0; }
.send .checks select { font: inherit; font-size: 0.8rem; padding: 0.15rem 0.3rem; margin-left: 0.3rem; }

/* period overview */
.period-pick { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.period-pick label { font-family: var(--display); font-weight: 700; font-size: 0.85rem; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1rem; }
.tally .t { display: flex; flex-direction: column; padding: 0.8rem 1rem; background: #fff; text-decoration: none; border-top: 4px solid var(--ink); font-size: 0.85rem; }
.tally .t b { font-family: var(--display); font-size: 2rem; line-height: 1; }
.tally .reviewed { border-top-color: var(--yellow); }
.tally .sent { border-top-color: var(--green); }
.settings .field.wide { grid-column: 1 / -1; order: 10; }

/* expired client link */
body.expired { background: var(--yellow); }
.expired-logo { width: 56px; border-radius: 22%; box-shadow: 0 0 0 2px var(--ink); margin-bottom: 1.5rem; }
.lede.pt { margin-top: 1rem; }

@media (max-width: 800px) {
    .warnings li { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* admin */
.inline-edit { display: inline-block; margin-right: 0.8rem; }
.inline-edit summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit[open] summary { margin-bottom: 0.4rem; }
.inline-edit form { white-space: normal; }

/* review: slides and versions menus */
.menu-list.wide-list { min-width: 300px; max-height: 70vh; overflow-y: auto; }
.menu-list .slide-row { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-bottom: 1px solid var(--line); }
.menu-list .slide-row span { flex: 1; font-size: 0.85rem; }
.menu-list .slide-row.hidden span { opacity: 0.5; text-decoration: line-through; }
.menu-list .slide-row button { width: auto; flex: none; padding: 0.25rem 0.6rem; font-size: 0.75rem; border: 1px solid var(--ink); }
.menu-list .slide-row button:disabled { opacity: 0.35; }
.menu-list form { margin: 0; }
.menu-list form button { width: 100%; }
.menu-empty { margin: 0; padding: 0.7rem 0.9rem; font-size: 0.85rem; opacity: 0.7; }
#undo, #redo { padding-left: 0.6rem; padding-right: 0.6rem; }

/* admin dashboard. Report status is an ordered ramp (draft -> reviewed -> sent), one hue light to dark; the
   empty part of a meter is the track. Bars stay thin, rounded only at the data end, 2px surface gaps. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
.stat { background: #fff; padding: 1rem 1.1rem; border-top: 4px solid var(--ink); display: flex; flex-direction: column; gap: 0.2rem; }
.stat .label { font-family: var(--display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.stat b { font-family: var(--display); font-size: 2.2rem; line-height: 1.1; }
.stat small { opacity: 0.7; }
.suggestions { list-style: none; display: grid; gap: 0.5rem; margin-top: 1rem; }
.suggestions li { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; background: #fff; padding: 0.75rem 1rem; border-left: 4px solid var(--yellow); line-height: 1.45; }
.suggestions a { font-family: var(--display); font-weight: 700; font-size: 0.85rem; white-space: nowrap; text-decoration: none; }
.suggestions a:hover { text-decoration: underline; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4rem; }
.chart { background: #fff; padding: 1.2rem 1.3rem; min-width: 0; }
.chart.wide { grid-column: 1 / -1; }
.chart h3 { font-family: var(--display); font-size: 1.05rem; }
.chart .sub { font-size: 0.85rem; opacity: 0.65; margin-top: 0.2rem; }
.sent { --c: #2A2A26; } .reviewed { --c: #6E6D66; } .draft { --c: #A9A79B; } .none { --c: var(--line); }
.meter { display: flex; gap: 2px; height: 24px; margin-top: 1.2rem; }
.meter .seg { background: var(--c); min-width: 6px; }
.meter .seg:first-child { border-radius: 4px 0 0 4px; } .meter .seg:last-child { border-radius: 0 4px 4px 0; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.9rem; font-size: 0.85rem; }
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.legend .key { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.hbars { display: grid; gap: 0.5rem; margin-top: 1rem; }
.hbars .hb { display: grid; grid-template-columns: minmax(4rem, 8rem) 1fr; gap: 0.7rem; align-items: center; font-size: 0.88rem; }
.hbars .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .track { display: flex; align-items: center; gap: 0.5rem; }
.hbars .bar { height: 18px; min-width: 2px; background: #2A2A26; border-radius: 0 4px 4px 0; }
.hbars b, .columns b { font-family: var(--display); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.columns { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 1rem; border-bottom: 1px solid var(--line); }
.columns .col { display: flex; flex-direction: column; align-items: center; }
.columns .plot { height: 160px; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.columns .stack { position: relative; width: min(24px, 70%); display: flex; flex-direction: column; gap: 2px; }
.columns .stack span { background: var(--c); min-height: 2px; }
.columns .stack span:first-of-type { border-radius: 4px 4px 0 0; }
.columns .stack b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 0.25rem; }
.columns .x { font-size: 0.75rem; opacity: 0.7; padding: 0.4rem 0; text-align: center; line-height: 1.2; }
.columns .x small { display: block; opacity: 0.8; }
.table-view { margin-top: 0.8rem; font-size: 0.85rem; }
.table-view summary { cursor: pointer; }
[data-tip] { cursor: default; outline-offset: 2px; }
[data-tip]:hover, [data-tip]:focus-visible { filter: brightness(1.15); }
.hbars .hb:hover .bar, .columns .col:hover .stack { filter: brightness(1.3); }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--paper); padding: 0.45rem 0.65rem; font-size: 0.8rem; line-height: 1.45; white-space: pre-line; max-width: 16rem; }
@media (max-width: 800px) {
    .charts { grid-template-columns: 1fr; }
    .columns { gap: 1px; }
    .columns .stack b { font-size: 0.65rem; }
    .suggestions li { flex-direction: column; gap: 0.3rem; }
}

/* login: one centred card, Microsoft first, the admins' password form folded underneath */
body.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-card { width: min(380px, 100%); text-align: center; }
.login-logo { width: 44px; height: 44px; border-radius: 22%; }
.login-card h1 { font-size: 1.6rem; margin-top: 1rem; }
.login-app { font-size: 0.85rem; opacity: 0.6; margin-top: 0.2rem; }
.login-card .error { margin-top: 1.2rem; text-align: left; }
.btn.ms { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 1.4rem; padding: 0.8rem 1rem;
          background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 700; border: 2px solid var(--ink); }
.btn.ms:hover { filter: brightness(0.97); }
.login-note { font-size: 0.8rem; opacity: 0.7; margin-top: 0.5rem; }
.login-password { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); text-align: left; }
.login-password summary { cursor: pointer; text-align: center; font-size: 0.85rem; opacity: 0.75; }
.login-password .stack { margin-top: 1rem; }
.login-card .hint { margin-top: 1.4rem; text-align: center; }
.login-card form { text-align: left; }

/* Tap & Review QR code flyers */
.row.title-row { justify-content: space-between; align-items: center; margin-top: 0; }
.row.title-row h1 { margin-bottom: 0.4rem; }
.pop-body.settings { gap: 0; }
.pop-body.settings .field:first-of-type { margin-top: 0.4rem; }
