/* AvatarOwner brand. Calm, premium, trustworthy. Never purple. */
:root {
  --ink: #0f1b2d;          /* deep navy, headings and dark bands */
  --ink-soft: #24344d;
  --text: #1c2430;
  --muted: #5b6675;
  --paper: #faf8f4;        /* warm white page */
  --card: #ffffff;
  --line: #e4e0d8;
  --accent: #1f6f6b;       /* deep teal */
  --accent-dark: #17534f;
  --accent-soft: #e3efed;
  --ok: #2e7d4f;
  --warn: #b7791f;
  --bad: #b23b3b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .97rem; }
.nav a:hover { color: var(--accent); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .93rem; }

/* Hero */
.hero { padding: 64px 0 56px; }
@media (min-width: 900px) { .hero { padding: 96px 0 80px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* Camera rig illustration */
.rig { background: var(--ink); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); color: #cfd8e3; }
.rig svg { width: 100%; height: auto; }
.rig-cap { font-size: .88rem; margin: 14px 0 0; text-align: center; color: #9fb0c3; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section-alt .step { background: var(--paper); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

.promise { display: grid; gap: 18px; }
@media (min-width: 820px) { .promise { grid-template-columns: repeat(2, 1fr); } }
.promise-item { display: flex; gap: 14px; align-items: flex-start; }
.promise-item svg { width: 26px; height: 26px; flex: none; color: var(--accent); margin-top: 3px; }
.promise-item p { margin: 0; color: var(--muted); }
.promise-item strong { color: var(--ink); display: block; }

/* Dark call to action band */
.band { background: var(--ink); color: #dbe3ec; padding: 64px 0; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #aebdcc; max-width: 34em; margin: 0 auto 26px; }

/* Footer */
.site-foot { padding: 32px 0 40px; font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-foot a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.site-foot a:first-child { margin-left: 0; }
.site-foot a:hover { color: var(--accent); }

/* ---------- App pages (step 2) ---------- */
.nav a.on { color: var(--accent); font-weight: 600; }
form.inline { display: inline; margin: 0; }
.section-tight { padding: 36px 0 56px; }
.page-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 .2em; }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.alert { border-radius: 12px; padding: 12px 16px; margin: 18px 0; border: 1px solid; }
.alert p { margin: 0 0 .4em; } .alert p:last-child { margin: 0; }
.alert-ok { background: #e8f3ec; border-color: #bfdcc9; color: #1f5a37; }
.alert-key { background: var(--accent-soft); border-color: #bcd8d4; color: var(--ink); }
.temp-pw { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.temp-pw code { font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; min-height: 46px; padding: 10px 14px; font: 1rem var(--sans); color: var(--text);
  background: #fff; border: 1px solid #d3cec4; border-radius: 10px; outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.err { color: var(--bad); font-size: .9rem; margin: 6px 0 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }

/* Password eye */
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 38px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye.is-on { color: var(--accent); }
.pw-eye svg { width: 22px; height: 22px; }
.pw-eye .eye-shut { display: none; }
.pw-eye.is-on .eye-open { display: none; }
.pw-eye.is-on .eye-shut { display: block; }

/* Login pages */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-wrap { width: 100%; max-width: 420px; padding: 32px 16px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-bottom: 22px; }
.auth-brand svg { width: 40px; height: 40px; }
.auth-card { padding: 28px 24px; }
.auth-card .alert { margin-top: 0; }
.auth-title { font-size: 1.6rem; }
.auth-link { text-align: center; margin: 18px 0 0; font-size: .95rem; }
.auth-foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.profile-head p { margin: 0; }
.avatar-initials { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; letter-spacing: .03em; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.block-head h2 { margin: 0; font-size: 1.45rem; }
.empty { text-align: center; padding: 36px 24px; }
.empty svg { width: 120px; margin: 0 auto 12px; }
.empty p { max-width: 34em; margin-left: auto; margin-right: auto; }
.status-steps { list-style: none; counter-reset: s; padding: 0; margin: 22px auto 0; display: grid; gap: 10px; max-width: 760px; text-align: left; }
@media (min-width: 760px) { .status-steps { grid-template-columns: repeat(4, 1fr); } }
.status-steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .92rem; color: var(--muted); }
.status-steps li::before { content: counter(s); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; align-items: center; justify-content: center; margin-right: 6px; }
.status-steps b { color: var(--ink); }
.grid-2 { display: grid; gap: 18px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.form-card { padding: 22px; }
.form-card h3 { margin-bottom: 14px; }
.storage { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; margin-top: 18px; flex-wrap: wrap; }
.storage h3, .storage p { margin: 0; }
.storage-num { font-size: 1.1rem; color: var(--muted); }
.storage-num b { color: var(--ink); font-size: 1.4rem; }

/* Admin users */
.add-user { margin: 22px 0 18px; }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.table-card { overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.t-right { text-align: right; }
@media (max-width: 719px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 16px; }
  .table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .85rem; }
  .table td.t-right { justify-content: flex-end; }
}

/* ---------- Studio setup (step 3) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .9rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.lead-sm { max-width: 46em; }
.stepper { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.stepper li { font-size: .88rem; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.stepper li.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.notice { border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; border: 1px solid; }
.notice-bad { background: #f8e9e9; border-color: #e6c3c3; color: #7d2a2a; }
.notice-warn { background: #fbf3e4; border-color: #ead7b0; color: #6b4a12; }
.allow { display: flex; gap: 20px; align-items: flex-start; padding: 26px; }
.allow svg { width: 64px; flex: none; }
.allow h2 { font-size: 1.35rem; }
.select { width: 100%; min-height: 44px; padding: 8px 12px; font: 1rem var(--sans); color: var(--text); background: #fff; border: 1px solid #d3cec4; border-radius: 10px; }
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cams { display: grid; gap: 18px; }
@media (min-width: 980px) { .cams { grid-template-columns: repeat(3, 1fr); } }
.cam { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.cam.is-live { border-color: #9cc9c3; }
.cam.is-bad { border-color: #e6c3c3; }
.cam-head { display: flex; gap: 12px; align-items: center; }
.cam-head h3 { margin: 0; font-size: 1.1rem; }
.cam-head p { margin: 0; }
.cam-badge { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.preview { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 10px; overflow: hidden; }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8fa1b5; font-size: .92rem; }
.q-badge { position: absolute; left: 10px; top: 10px; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(15, 27, 45, .78); color: #fff; }
.q-good { background: rgba(31, 111, 107, .92); }
.q-ok { background: rgba(183, 121, 31, .92); }
.q-low { background: rgba(178, 59, 59, .92); }
.cam-info { color: var(--muted); margin: 0; }
.cam-msg { color: var(--bad); margin: 0; }
.phone-cam { display: flex; gap: 16px; align-items: center; padding: 16px 20px; margin-top: 18px; opacity: .8; }
.phone-cam svg { width: 26px; flex: none; }
.phone-cam h3 { margin: 0 0 2px; font-size: 1.05rem; }
.phone-cam p { margin: 0; }
.meter { height: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: #9fb0c3; border-radius: 999px; transition: width .08s linear; }
.meter i.good { background: var(--ok); }
.meter i.hot { background: var(--bad); }
.meter-wrap p { margin: 8px 0 0; color: var(--muted); }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin-top: 18px; }
.summary h3 { margin: 0 0 4px; font-size: 1.1rem; }
.summary p { margin: 0; }
.summary.is-ready { border-color: #9cc9c3; background: #f4faf9; }

/* Microphones */
.mics { padding: 20px; margin-top: 18px; }
.mics h3 { margin: 0 0 6px; font-size: 1.1rem; }
.mic-slot { display: grid; gap: 10px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.mic-slot:first-of-type { margin-top: 10px; }
@media (min-width: 820px) { .mic-slot { grid-template-columns: 190px 1fr 1fr; gap: 18px; } }
.mic-name { display: flex; gap: 10px; align-items: center; }
.mic-name b { display: block; color: var(--ink); }
.mic-name span.small { display: block; }
.small-badge { width: 30px; height: 30px; border-radius: 8px; font-size: .9rem; }
.mic-slot.is-live .small-badge { background: var(--accent); }
.meter-wrap p { min-height: 1.3em; }

/* Framing guides and clap flash on the previews */
.guides { position: absolute; inset: 0; pointer-events: none; }
.guides i { position: absolute; display: block; }
.g-v { left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(255,255,255,.55); }
.g-eye { left: 8%; right: 8%; top: 38%; border-top: 2px solid rgba(31,111,107,.95); }
.g-head { left: 50%; top: 12%; width: 30%; height: 68%; transform: translateX(-50%); border: 2px dashed rgba(250,248,244,.8); border-radius: 50% / 45%; }
.g-label { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: .75rem; color: #fff; background: rgba(15,27,45,.7); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.flash { position: absolute; inset: 0; background: #fff; }

/* Calibration */
.calib { padding: 22px; margin-top: 18px; }
.calib-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.calib-head h2 { font-size: 1.45rem; margin: 0 0 4px; }
.calib-head p { margin: 0; }
.calib-score { font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.calib .notice { margin: 14px 0 0; }
.calib-tests { display: grid; gap: 12px; margin-top: 16px; }
.test { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper); }
.test.t-pass { border-color: #bfdcc9; }
.test.t-warn { border-color: #ead7b0; }
.test.t-fix { border-color: #e6c3c3; }
.test-head { display: flex; gap: 12px; align-items: flex-start; }
.test-head > div { flex: 1; }
.test-head h3 { margin: 0 0 2px; font-size: 1.05rem; }
.test-head p { margin: 0; }
.test-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; flex: none; }
.test.t-pass .test-num { background: var(--ok); }
.test.t-warn .test-num { background: var(--warn); }
.test.t-fix .test-num { background: var(--bad); }
.read-line { margin: 10px 0 0 40px; padding: 10px 14px; background: #fff; border-left: 3px solid var(--accent); border-radius: 6px; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.guide-toggle { margin: 10px 0 0 40px; }
.test-out { margin: 0 0 0 40px; }
.test-out:not(:empty) { margin-top: 10px; }
.countdown { font-weight: 600; color: var(--ink); }
.countdown span { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; margin-right: 6px; }
.countdown.live { color: var(--accent); }
.res { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; align-items: baseline; padding: 6px 0; font-size: .93rem; border-top: 1px dashed var(--line); }
.res:first-child { border-top: 0; }
.res b { color: var(--ink); white-space: nowrap; }
.res span:last-child { color: var(--text); }
.res-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 1px 8px; color: #fff; }
.res-pass .res-tag { background: var(--ok); }
.res-warn .res-tag { background: var(--warn); }
.res-fix .res-tag { background: var(--bad); }
.res-info .res-tag { background: transparent; padding: 0; }
@media (max-width: 600px) { .res { grid-template-columns: auto 1fr; } .res span:last-child { grid-column: 1 / -1; } .read-line, .guide-toggle, .test-out { margin-left: 0; } }

/* Left or right side picker for cameras B and C */
.side-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.side-pick span { margin-right: 4px; }
.side-pick button { min-height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer; }
.side-pick button:hover { border-color: var(--accent); }
.side-pick button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Record page (step 4) ---------- */
.btn-stop { background: var(--bad); color: #fff; }
.btn-stop:hover { background: #8f2f2f; color: #fff; }
.notice-ok { background: #e8f3ec; border-color: #bfdcc9; color: #1f5a37; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rec-cams { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .rec-cams { grid-template-columns: 2fr 1fr; }
  .rec-cams .rec-cam[data-slot="A"] { grid-row: span 2; }
}
.rec-cam { padding: 10px; }
.rec-cam .cam-msg { margin-top: 8px; }
.rec-cam.is-bad { border-color: #e6c3c3; }
.rec-mics { display: grid; gap: 12px; padding: 16px 18px; margin-top: 14px; }
@media (min-width: 760px) { .rec-mics { grid-template-columns: repeat(3, 1fr); } }
.rec-mic { display: flex; gap: 10px; align-items: center; }
.rec-mic.is-live .small-badge { background: var(--accent); }
.rec-mic.is-bad .small { color: var(--bad); }
.rec-mic-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.rec-mic-body .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; margin-top: 14px; position: sticky; bottom: 12px; z-index: 5; }
.rec-state { display: flex; gap: 12px; align-items: center; flex: 1 1 260px; }
.rec-state b { display: block; font-size: 1.05rem; color: var(--ink); }
.rec-state .small { display: block; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #c9cfd6; flex: none; }
.is-recording .rec-dot { background: var(--bad); animation: rec-blink 1.2s infinite; }
@keyframes rec-blink { 50% { opacity: .35; } }
.rec-time { font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 700; color: var(--ink); min-width: 4ch; }
.rec-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rec-title { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; width: 200px; max-width: 100%; }
.clap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 50; background: rgba(250, 248, 244, .55); }
.clap span { font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; color: var(--ink); background: #fff; border: 3px solid var(--accent); border-radius: 20px; padding: 18px 36px; box-shadow: var(--shadow); }
.uploads { padding: 18px 20px; margin-top: 14px; }
.uploads-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.uploads-head h3 { margin: 0 0 10px; font-size: 1.1rem; }
.up-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.up-row .meter { grid-column: 1 / -1; }
.up-row .up-num { grid-column: 1 / -1; color: var(--muted); }
@media (min-width: 760px) {
  .up-row { grid-template-columns: auto 160px 1fr 190px; }
  .up-row .meter, .up-row .up-num { grid-column: auto; }
  .up-row .up-num { text-align: right; }
}
.uploads .notice { margin: 12px 0 0; }

/* ---------- Recordings vault ---------- */
.block-head.first { margin-top: 0; align-items: flex-start; }
.take-list { display: grid; gap: 10px; margin-top: 14px; }
.take-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; color: inherit; text-decoration: none; }
.take-row:hover { border-color: var(--accent); }
.take-row b { display: block; color: var(--ink); }
.pill { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill-ok { background: #e8f3ec; color: #1f5a37; }
.pill-warn { background: #fbf3e4; color: #6b4a12; }
.take-files { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 900px) { .take-files { grid-template-columns: 1fr 1fr; } }
.take-file { padding: 16px; display: grid; gap: 12px; align-content: start; }
.take-file-head { display: flex; gap: 10px; align-items: flex-start; }
.take-file-head b { display: block; color: var(--ink); }
.take-file-head .small { display: block; }
.take-file video { width: 100%; border-radius: 10px; background: var(--ink); aspect-ratio: 16 / 9; }
.take-file audio { width: 100%; }
.take-file .btn { justify-self: start; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-color: #e6c3c3; }
.danger-zone h3 { margin: 0 0 4px; font-size: 1.05rem; }
.danger-zone p { margin: 0; }
.stepper li a { color: inherit; text-decoration: none; }

/* ---------- Left side bar menu (Mark, Nov 17 2026) ---------- */
.top-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: 264px; max-width: 84vw; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px 18px; background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; transform: translateX(-102%); transition: transform .2s ease; }
.side.is-open { transform: none; box-shadow: 0 10px 40px rgba(15, 27, 45, .18); }
.side-shade { position: fixed; inset: 0; z-index: 35; background: rgba(15, 27, 45, .35); }
.side-brand { padding: 0 8px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.side-nav a svg { width: 21px; height: 21px; flex: none; color: var(--muted); }
.side-nav a:hover { background: var(--paper); color: var(--ink); }
.side-nav a.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.side-nav a.on svg { color: var(--accent); }
.side-nav a:focus-visible, .menu-btn:focus-visible { outline: 3px solid #9cc9c3; outline-offset: 2px; }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.side-user { padding: 0 8px; min-width: 0; }
.side-user b { display: block; color: var(--ink); }
.side-user span { display: block; font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.menu-open { overflow: hidden; }
@media (min-width: 1000px) {
  .top-bar, .side-shade { display: none !important; }
  .side { transform: none; transition: none; box-shadow: none; }
  .page { margin-left: 264px; }
  body.menu-open { overflow: auto; }
}
