/* PeakHour Admin: console-style design system.
   One set of tokens at the top. To re-brand, change --primary and friends only. */
:root {
  --primary: #1a73e8; --primary-h: #1765cc; --primary-t: #e8f0fe; --on-primary: #fff;
  --bg: #f8f9fa; --surface: #fff; --soft: #f1f3f4; --line: #dadce0; --line-2: #bdc1c6;
  --text: #202124; --text-2: #5f6368; --text-3: #80868b;
  --ok: #188038; --ok-bg: #e6f4ea;
  --warn: #b06000; --warn-bg: #fef7e0;
  --danger: #c5221f; --danger-bg: #fce8e6; --danger-solid: #d93025;
  --info: #1967d2; --info-bg: #e8f0fe;
  --dark-bg: #3c4043;
  --hover: rgba(60, 64, 67, .06); --focus: rgba(26, 115, 232, .35);
  --shadow-1: 0 1px 2px rgba(60, 64, 67, .15), 0 1px 3px 1px rgba(60, 64, 67, .08);
  --shadow-3: 0 4px 8px 3px rgba(60, 64, 67, .15), 0 1px 3px rgba(60, 64, 67, .3);
  --r: 8px; --r-sm: 4px; --tap: 40px; --side: 256px; --top: 56px;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8ab4f8; --primary-h: #aecbfa; --primary-t: #2b3a55; --on-primary: #202124;
    --bg: #202124; --surface: #292a2d; --soft: #35363a; --line: #3c4043; --line-2: #5f6368;
    --text: #e8eaed; --text-2: #bdc1c6; --text-3: #9aa0a6;
    --ok: #81c995; --ok-bg: #1e3a29; --warn: #fdd663; --warn-bg: #3d3318;
    --danger: #f28b82; --danger-bg: #442523; --danger-solid: #f28b82;
    --info: #8ab4f8; --info-bg: #2b3a55; --dark-bg: #5f6368;
    --hover: rgba(232, 234, 237, .08); --focus: rgba(138, 180, 248, .45);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5); --shadow-3: 0 4px 12px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 500; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
i.fa-solid, i.fa-regular, i.fa-brands { line-height: 1; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- shell ---------- */
.top { position: fixed; z-index: 30; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font-size: 18px; cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--hover); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 6px; display: block; }
.brand-name { font-size: 18px; font-weight: 500; letter-spacing: -.1px; }
.brand-sub { font-size: 18px; color: var(--text-2); font-weight: 400; }
.top-sep { width: 1px; height: 24px; background: var(--line); margin: 0 8px; flex: none; display: none; }
.top-title { display: none; flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; padding: 4px 10px 4px 9px; border-radius: 99px; white-space: nowrap; background: var(--soft); color: var(--text-2); border: 1px solid var(--line); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.pill.p-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.p-ok::before { background: var(--ok); }
.pill.p-off, .pill.p-down { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.pill.p-off::before, .pill.p-down::before { background: var(--danger-solid); }

.side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(84vw, 300px); background: var(--surface); color: var(--text); padding: calc(var(--top) + 8px) 0 12px; transform: translateX(-102%); transition: transform .2s ease; overflow-y: auto; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.side ul { list-style: none; margin: 0; padding: 0 8px 0 0; }
.nav-group { padding: 16px 24px 6px; font-size: 11px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: var(--text-3); }
.nav-group:first-child { padding-top: 8px; }
.side a { display: flex; align-items: center; gap: 16px; min-height: 40px; padding: 0 16px 0 24px; border-radius: 0 20px 20px 0; color: var(--text); font-weight: 500; font-size: 14px; }
.side a:hover { background: var(--hover); text-decoration: none; }
.side a.active { background: var(--primary-t); color: var(--primary); }
.side a.danger:not(.active) { color: var(--danger); }
.side a.danger.active { background: var(--danger-bg); color: var(--danger); }
.side .ico { width: 20px; text-align: center; font-size: 16px; color: var(--text-2); flex: none; }
.side a.active .ico { color: inherit; }
.side a.danger .ico { color: inherit; }
.side-foot { margin-top: auto; padding: 14px 24px 0; font-size: 11px; color: var(--text-3); word-break: break-all; border-top: 1px solid var(--line); }
.scrim { position: fixed; z-index: 35; inset: 0; background: rgba(32, 33, 36, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
body.drawer-open .side { transform: none; box-shadow: var(--shadow-3); }
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.view { padding: calc(var(--top) + 16px) 14px 40px; max-width: 1200px; margin: 0 auto; outline: none; }
@media (max-width: 639px) { .top { gap: 4px; } .top .pill { margin-left: auto; } .brand-sub { display: none; } }
@media (min-width: 640px) { .top-sep { display: block; } .top-title { display: block; text-align: left; } }
@media (min-width: 900px) {
  .side { transform: none; width: var(--side); top: var(--top); padding-top: 8px; box-shadow: none; }
  .menu-btn, .scrim { display: none; }
  .top { padding-left: 20px; }
  .view { margin-left: var(--side); max-width: none; padding: calc(var(--top) + 24px) 32px 56px; }
  .view > .page { max-width: 1240px; }
}

/* ---------- layout bits ---------- */
.page { display: flex; flex-direction: column; gap: 16px; }
.page-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; min-height: 40px; }
.page-h h2 { font-size: 22px; font-weight: 400; letter-spacing: -.1px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.end { justify-content: flex-end; }
.grow { flex: 1 1 200px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.g-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
@media (min-width: 900px) { .g-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-h h2 { font-size: 16px; font-weight: 500; }
.card-a { display: flex; flex-wrap: wrap; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 500; }

/* ---------- stat tiles ---------- */
.stat { display: block; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: inherit; min-width: 0; }
a.stat:hover { text-decoration: none; box-shadow: var(--shadow-1); border-color: var(--line-2); }
.stat.warn { border-color: transparent; background: var(--warn-bg); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.stat .l { color: var(--text-2); font-size: 13px; font-weight: 500; }
.stat .stat-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-t); color: var(--primary); font-size: 14px; flex: none; }
.stat.warn .stat-ico { background: var(--warn); color: var(--warn-bg); }
.stat .n { font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.stat .s { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.seg { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--soft); gap: 2px; }
.seg > i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--c); vertical-align: -1px; }

/* ---------- buttons, inputs ---------- */
.btn { min-height: var(--tap); padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--primary); font: inherit; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; touch-action: manipulation; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--primary-t); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn i { font-size: 13px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover:not(:disabled) { background: var(--primary-h); border-color: var(--primary-h); box-shadow: var(--shadow-1); }
.btn.yellow { background: var(--primary-t); border-color: transparent; color: var(--primary); }
.btn.yellow:hover:not(:disabled) { filter: brightness(.96); }
.btn.danger { background: var(--danger-solid); border-color: var(--danger-solid); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.danger { color: #202124; } }
.btn.danger:hover:not(:disabled) { filter: brightness(1.08); background: var(--danger-solid); }
.btn.ghost-danger { color: var(--danger); border-color: var(--line-2); }
.btn.ghost-danger:hover:not(:disabled) { background: var(--danger-bg); border-color: var(--danger-bg); }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.input, select.input, textarea.input { width: 100%; min-height: var(--tap); padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; }
.input:hover { border-color: var(--text-3); }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-l { font-weight: 500; font-size: 13px; color: var(--text-2); }
.field-h { font-size: 12px; color: var(--text-3); }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-err { background: var(--danger-bg); color: var(--danger); border-radius: var(--r-sm); padding: 10px 12px; font-weight: 500; }
.search { position: relative; }
.search .input { padding-left: 40px; }
.search::before { content: "\f002"; font: var(--fa-font-solid, normal 900 13px/1 "Font Awesome 6 Free"); font-size: 13px; -webkit-font-smoothing: antialiased; display: inline-block; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; z-index: 1; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--text-2); font: inherit; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-bottom: -1px; }
.tab:hover { color: var(--text); background: var(--hover); }
.tab .c { font-size: 12px; background: var(--soft); border-radius: 99px; padding: 0 8px; color: var(--text-2); }
.tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.tab.on .c { background: var(--primary-t); color: var(--primary); }
.chip-btn { border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 99px; }
.chip-btn:hover { filter: brightness(.95); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.card .tablewrap { border: 0; border-radius: 0; margin: 0 -16px -16px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--text-2); padding: 12px 16px; background: var(--surface); white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl.clickable tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.wrap { white-space: normal; min-width: 180px; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 99px; background: var(--soft); color: var(--text-2); white-space: nowrap; text-transform: capitalize; line-height: 1.6; }
.b-green { background: var(--ok-bg); color: var(--ok); }
.b-amber { background: var(--warn-bg); color: var(--warn); }
.b-red { background: var(--danger-bg); color: var(--danger); }
.b-blue { background: var(--info-bg); color: var(--info); }
.b-dark { background: var(--dark-bg); color: #fff; }
.b-yellow { background: var(--primary-t); color: var(--primary); }

/* ---------- key/value, people ---------- */
.kv { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--text-2); font-size: 13px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-t); color: var(--primary); display: grid; place-items: center; font-weight: 500; font-size: 18px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.head h2 { font-size: 22px; font-weight: 400; overflow-wrap: anywhere; }
.reason { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 10px 12px; font-weight: 500; }
.simple-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.simple-list li { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.simple-list li:first-child { border-top: 0; }

/* ---------- states ---------- */
.state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.state-err { border-color: var(--danger-solid); background: var(--danger-bg); }
.state-ico { font-size: 28px; color: var(--text-3); margin-bottom: 4px; }
.state-err .state-ico { color: var(--danger); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.dim { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* ---------- chart ---------- */
.chartbox { width: 100%; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--text-3); font-size: 10px; font-family: var(--font); }
.chart .bar { fill: var(--primary); }
.chart g:hover .bar { fill: var(--primary-h); }
.chart .hit { fill: transparent; }

/* ---------- modal (bottom sheet on phones) ---------- */
.backdrop { position: fixed; z-index: 60; inset: 0; background: rgba(32, 33, 36, .6); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--surface); width: 100%; max-height: 92vh; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-3); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 8px; gap: 10px; }
.modal-h h2 { font-size: 20px; font-weight: 400; }
.modal .x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.modal .x:hover { background: var(--hover); }
.modal-b { padding: 8px 24px 16px; overflow-y: auto; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 24px calc(16px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.modal-f .btn { flex: 1 1 120px; }
@media (min-width: 700px) {
  .backdrop { align-items: center; }
  .modal { width: 520px; border-radius: 8px; }
  .modal.wide { width: 760px; }
  .modal-f .btn { flex: 0 0 auto; }
}

/* ---------- toast (snackbar) ---------- */
.toasts { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 560px; width: 100%; padding: 14px 16px; border-radius: var(--r-sm); background: #323232; color: #fff; font-weight: 400; box-shadow: var(--shadow-3); transition: opacity .3s, transform .3s; display: flex; align-items: center; gap: 12px; }
.toast i { font-size: 16px; flex: none; }
.toast.t-ok i { color: #81c995; }
.toast.t-err i { color: #f28b82; }
.toast.out { opacity: 0; transform: translateY(8px); }

@media print { .top, .side, .scrim, .toasts { display: none !important; } .view { margin: 0; padding: 0; } }

/* ---------- additions ---------- */
.proof { max-width: 100%; max-height: 420px; border-radius: var(--r); border: 1px solid var(--line); display: block; margin: 0 auto; background: var(--soft); }
.stat-n { font-size: 28px; font-weight: 400; color: var(--text); }
.stars { color: #f9ab00; letter-spacing: 2px; white-space: nowrap; font-size: 12px; }
.stars .off { color: var(--line-2); }
.rate { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rate i { color: #f9ab00; font-size: 12px; }
.quote { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Danger Zone + Log ---- */
.dz-intro { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-solid); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.dz-intro-h { display: flex; align-items: center; gap: 10px; }
.dz { border-left: 4px solid var(--line-2); }
.dz.dz-low { border-left-color: var(--info); }
.dz.dz-medium { border-left-color: #f9ab00; }
.dz.dz-high { border-left-color: var(--danger-solid); }
.dz.dz-critical { border-left-color: var(--text); border-color: var(--danger-solid); }
.dz.loading { opacity: .55; pointer-events: none; }
.dz-desc { margin: 0 0 12px; color: var(--text-2); }
.dz-lines { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dz-lines li { display: flex; align-items: baseline; gap: 10px; }
.dz-lines li > span:nth-child(2) { flex: 1; min-width: 0; }
.dz-n { min-width: 52px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.dz-n.dz-delete { color: var(--danger); }
.dz-n.dz-update { color: var(--warn); }
.dz-n.dz-info { color: var(--text-3); }
.dz-tag { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--text-3); }
.dz-tag.dz-delete { background: var(--danger-bg); color: var(--danger); }
.dz-tag.dz-update { background: var(--warn-bg); color: var(--warn); }
.dz-total { font-weight: 500; padding: 10px 12px; background: var(--soft); border-radius: var(--r-sm); margin-bottom: 12px; }
.dz-keeps { margin-bottom: 12px; color: var(--ok); font-weight: 500; }
.dz-items { margin-bottom: 12px; }
.dz-items summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 500; }
.dz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.dz-actions .btn { flex: 1 1 180px; }
.dz-warn, .dz-ok { display: flex; align-items: flex-start; gap: 10px; border-radius: var(--r-sm); padding: 10px 12px; font-weight: 500; }
.dz-warn { background: var(--warn-bg); color: var(--warn); }
.dz-ok { background: var(--ok-bg); color: var(--ok); }
.dz-warn i, .dz-ok i { margin-top: 3px; }
.dz-done { background: var(--ok-bg); color: var(--text); border: 1px solid var(--ok); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.dz-done strong { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.jsonbox { margin: 4px 0 0; padding: 10px 12px; background: var(--soft); border-radius: var(--r-sm); overflow-x: auto; max-height: 50vh; font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (pointer: coarse) { :root { --tap: 44px; } .btn.sm { min-height: 38px; } }
@media (prefers-reduced-motion: reduce) { .side, .scrim, .spin { transition: none; animation-duration: 2s; } }

div.rate { display: flex; }
.row > .input, .row > select.input { width: auto; flex: 0 1 200px; }
.row > .grow { flex: 1 1 200px; }
