:root {
  --ground: #F6F5F2; --card: #FFFFFF; --ink: #1A1A1F; --muted: #5B5B66; --line: #E4E2DC;
  --accent: #B45309; --accent-ink: #8A3F06; --accent-soft: #FDF3E7; --teal: #0F766E; --teal-soft: #E7F4F2; --red: #B42318;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: var(--ground); font-size: 15px; line-height: 1.5; }
a { color: var(--accent-ink); }
.shell { display: flex; min-height: 100vh; }
nav.side { width: 220px; flex: none; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--card); }
nav.side .brand { font-weight: 800; font-size: 17px; margin: 0 8px 18px; }
nav.side .brand span { color: var(--accent); }
nav.side a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; margin-bottom: 2px; }
nav.side a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
nav.side .org { margin: 24px 8px 0; font-size: 13px; color: var(--muted); }
main { flex: 1; padding: 32px 40px; max-width: 980px; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 17px; margin: 28px 0 10px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero .big { font-size: 22px; font-weight: 700; }
button, .btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 9px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: var(--accent-ink); }
button.huge { font-size: 17px; padding: 14px 26px; border-radius: 12px; }
button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
button.danger { color: var(--red); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--ground); color: var(--muted); }
.pill.warn { background: var(--accent-soft); color: var(--accent-ink); }
.pill.ok { background: var(--teal-soft); color: var(--teal); }
.pill.bad { background: #FDECEA; color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
textarea, input, select { font: inherit; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
details summary { cursor: pointer; font-weight: 600; }
.flash { background: var(--teal-soft); color: var(--teal); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.flash.err { background: #FDECEA; color: var(--red); }
.flags { margin: 6px 0 10px; padding-left: 18px; color: var(--accent-ink); font-size: 14px; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; }
.stats div b { display: block; font-size: 22px; }
.auth { max-width: 400px; margin: 10vh auto; }
.steps li { margin-bottom: 6px; }
.done { color: var(--teal); text-decoration: line-through; }
@media (max-width: 760px) {
  .shell { display: block; }
  nav.side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px; }
  nav.side .brand { width: 100%; margin-bottom: 6px; }
  nav.side .org { display: none; }
  main { padding: 20px 16px; }
  .grid2 { grid-template-columns: 1fr; }
}
.viewing { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 7px 16px; font-size: 14px; position: sticky; top: 0; z-index: 10; }
.viewing span { font-weight: 700; }
.viewing select { width: auto; padding: 4px 8px; font-size: 13px; }
.viewing .toggle-back { padding: 5px 12px; background: var(--accent); color: #fff; border-color: var(--accent); }
.toggle-box { margin: 18px 4px 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.toggle-box .toggle { width: 100%; margin: 6px 0 8px; }
.toggle-box select { font-size: 13px; padding: 6px 8px; }
/* Messengers */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.mc-media { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #3B342E, #2A2622); display: flex; align-items: center; justify-content: center; }
.mc-media video, .mc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-initials { font-size: 54px; font-weight: 800; color: #F6C68B; letter-spacing: -0.02em; }
.mc-note { position: absolute; bottom: 10px; left: 10px; right: 10px; text-align: center; color: #fff; font-size: 13px; background: rgba(0,0,0,.45); border-radius: 8px; padding: 4px 8px; }
.mc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mc-body p { margin: 0; }
.mc-used { margin-top: auto !important; }
.mc-consent { background: var(--accent-soft); border-radius: 10px; padding: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.mc-consent input { font-size: 12px; }
.empty { text-align: center; padding: 40px 20px; }
.step-h { margin-top: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; }
.step-h .num, .num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; align-items: center; justify-content: center; font-size: 14px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.method { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.method input { width: auto; margin-top: 4px; }
.method p { margin: 4px 0 0; }
.recorder { background: #16161A; border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.recorder video { width: 100%; max-height: 360px; background: #000; display: block; }
.rec-ui { display: flex; gap: 12px; align-items: center; padding: 10px 12px; color: #fff; }
.rec-ui .muted { color: #C9C5BD; }
button.recording { background: var(--red); border-color: var(--red); }
/* Rules */
.rlist { padding-left: 22px; margin: 6px 0 12px; }
.rlist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rlist li > span:first-child, .rhead > span:first-child { flex: 1; }
.rlist:not(.editable) li, .rhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.arrow { color: var(--accent); font-weight: 700; }
.ractions { display: flex; gap: 2px; margin-left: auto; }
.ractions button { padding: 4px 8px; }
.rform { background: var(--ground); border-radius: 12px; padding: 4px 14px; margin-top: 8px; }
.chks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.chk { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
.chk input { width: auto; }
.addrule { margin: 6px 0 14px; }
.everyone { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; }
.everyone select { width: auto; flex: 1; min-width: 180px; }
.proposal { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tryres { margin: 12px 0 0; padding: 10px 14px; background: var(--teal-soft); border-radius: 10px; }
.pill + .pill { margin-left: 4px; }
.btn, button { white-space: nowrap; }
.cam-hint { color: #C9C5BD; padding: 46px 16px; text-align: center; font-size: 14px; }
.colmap td { vertical-align: middle; }
.colmap tr.matched td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.colmap select { min-width: 180px; }
.colsample { display: inline-block; background: var(--ground); border-radius: 6px; padding: 1px 6px; margin: 2px 2px 2px 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.needs-review { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.reviewed { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.impact-preview { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.saytable td { vertical-align: middle; }
.sayadd { align-items: flex-end; margin-top: 12px; }
.suggest { border-color: var(--accent); }
.sugg { align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.hear { color: var(--teal); margin-top: 4px; }
/* Getting-started checklist */
.checklist { border: 0; background: linear-gradient(135deg, #FFF8EE 0%, #FDF3E7 55%, #E7F4F2 100%); padding: 22px 24px; }
.cl-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cl-head h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -0.01em; }
.cl-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.cl-ring { --p: 0; width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--teal) calc(var(--p) * 1%), rgba(15,118,110,.15) 0); }
.cl-ring span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.cl-bar { height: 8px; border-radius: 99px; background: rgba(0,0,0,.06); margin: 14px 0 18px; overflow: hidden; }
.cl-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #E0892B); border-radius: 99px; transition: width .6s; }
.cl-next { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 12px 30px -20px rgba(120,60,0,.4); flex-wrap: wrap; }
.cl-next h3 { margin: 2px 0 4px; font-size: 18px; }
.cl-next p { margin: 0; color: var(--muted); }
.cl-next > div:nth-child(2) { flex: 1; min-width: 220px; }
.cl-icon { font-size: 34px; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
.cl-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cl-steps a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.6); }
.cl-steps .done a { color: var(--teal); background: rgba(231,244,242,.8); }
.cl-steps .now a { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.cl-check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; font-size: 13px; }
.cl-steps .done .cl-check { background: var(--teal); color: #fff; font-weight: 800; }
.celebrate { position: relative; overflow: hidden; text-align: center; background: linear-gradient(135deg, #E7F4F2, #FDF3E7); border: 0; padding: 28px; }
.celebrate h2 { font-size: 24px; margin: 0 0 6px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti span { position: absolute; top: -20px; left: calc(var(--i) * 5%); font-size: 18px; animation: fall 2.8s ease-in calc(var(--i) * 0.12s) both; }
@keyframes fall { to { transform: translateY(260px) rotate(320deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cl-icon, .confetti span { animation: none; } .confetti { display: none; } }
.cl-steps li.done { text-decoration: none; }
.writing { display: flex; gap: 10px; align-items: center; background: var(--teal-soft); border: 0; color: var(--teal); font-weight: 600; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.scroll-x { overflow-x: auto; }
table.clients { min-width: 820px; }
table.clients th { white-space: nowrap; }
table.clients td:first-child { min-width: 170px; }
/* Inbox: Messenger picker, selection and bulk bar */
.vhead { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.vwho { flex: 1; min-width: 200px; }
.pickbox { width: 18px !important; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.mpick { display: flex; gap: 8px; align-items: center; transition: background .3s; border-radius: 12px; padding: 2px 6px 2px 2px; }
.mpick.saved { background: var(--teal-soft); }
.mpick label { display: flex; flex-direction: column; gap: 0; margin: 0; font-weight: 600; }
.mpick select { width: auto; max-width: 180px; padding: 4px 8px; font-size: 13px; }
.mface { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(160deg, #3B342E, #2A2622); display: grid; place-items: center; }
.mface img { width: 100%; height: 100%; object-fit: cover; }
.mface span { color: #F6C68B; font-weight: 800; font-size: 14px; }
.vcard .flags { margin-top: 10px; }
table.routine td { vertical-align: middle; }
table.routine { min-width: 760px; }
.selall { display: flex; gap: 6px; align-items: center; font-weight: 600; margin: 0; }
.selall input { width: auto; }
.bulkbar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); margin-top: 16px; }
.bulkbar select { width: auto; padding: 6px 8px; }
.bulkbar .quiet { color: #C9C5BD; }
button.danger { color: var(--red); }
.bulkbar[hidden] { display: none; }
/* Results */
.filters { align-items: flex-end; gap: 10px; }
.filters label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.filters select { width: auto; }
.funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.fstep { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.fstep b { font-size: 26px; font-variant-numeric: tabular-nums; }
.fstep span { font-weight: 600; }
.fstep em { font-style: normal; color: var(--muted); font-size: 13px; }
.fbar, .wbar { height: 6px; border-radius: 99px; background: var(--ground); overflow: hidden; margin-top: 6px; }
.fbar span, .wbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--teal)); border-radius: 99px; }
.wbar { width: 90px; margin: 0 0 3px; }
.places { list-style: none; padding: 0; margin: 0; }
.places li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 10px; }
.tabs a { padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
table.results { min-width: 820px; }
table.results details summary { cursor: pointer; }
.evlist { margin: 6px 0; padding-left: 18px; font-size: 13px; }
@media (max-width: 760px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Sidebar groups and section tabs */
nav.side .setup { margin-top: 16px; }
nav.side .setup summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 10px; }
nav.side .setup summary::-webkit-details-marker { display: none; }
nav.side .setup summary::after { content: " ▸"; }
nav.side .setup[open] summary::after { content: " ▾"; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 10px 0 18px; }
.subtabs a { padding: 8px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.sayfix { display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.sayfix input { width: auto; flex: 1; min-width: 140px; max-width: 260px; padding: 5px 9px; font-size: 13px; }
@media (max-width: 760px) { nav.side .setup { margin-top: 0; width: 100%; } nav.side .setup summary { padding-left: 0; } }
.whatnext { margin: 8px 0 0; }
.rowacts { white-space: nowrap; }
.rowacts button { margin-right: 4px; }
.ok-tick { color: var(--teal); font-weight: 800; }
.ok-text { color: var(--teal); }
.note-line { background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
/* Connections */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.conn { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.conn-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.conn-body { flex: 1; min-width: 0; }
/* Voice picker */
.vfilters { margin-bottom: 8px; }
.vfilters input[type=search] { width: auto; flex: 1; min-width: 160px; max-width: 260px; padding: 6px 10px; }
.vfilters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.voice { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; font-weight: 400; margin: 0; }
.voice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.voice input { width: auto; margin: 0; }
.voice[hidden] { display: none; }
.vname { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.vname .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vplay-btn { width: 32px; height: 32px; border-radius: 50%; padding: 0; display: grid; place-items: center; font-size: 12px; flex: none; }
.vplay-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.vplay-btn.off { border: 1px solid var(--line); color: var(--muted); }
.vlen { white-space: nowrap; margin-left: 4px; }
.lenexplain { margin: 10px 0 0; }
/* Video tiles and the in-app player */
.vtile { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.vt-img { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; background: linear-gradient(160deg, #3B342E, #2A2622) center / cover no-repeat; overflow: hidden; }
.vt-play { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--accent-ink); display: grid; place-items: center; font-size: 14px; padding-left: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s; }
.vtile:hover .vt-play, .vtile:focus-visible .vt-play { transform: scale(1.08); }
.vtile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.vt-cap { display: flex; flex-direction: column; line-height: 1.3; }
.vtile.small .vt-img { width: 46px; border-radius: 8px; }
.vtile.small .vt-play { width: 22px; height: 22px; font-size: 9px; }
.vgrid { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
dialog.player { border: 0; border-radius: 18px; padding: 0; width: min(420px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog.player::backdrop { background: rgba(20, 18, 16, .6); }
.pl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 10px; }
.pl-screen { background: #000; height: min(68vh, 620px); display: flex; justify-content: center; align-items: center; }
.pl-screen video { height: 100%; max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.pl-mock { color: #E9E5DD; padding: 28px; text-align: center; font-size: 15px; line-height: 1.5; background: linear-gradient(160deg, #3B342E, #2A2622); height: 100%; aspect-ratio: 9 / 16; max-width: 100%; display: grid; place-items: center; box-sizing: border-box; }
.pl-mock[hidden], .pl-screen video[hidden] { display: none; }
.pl-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px 16px; }
.vt-cap { min-width: 0; } .vt-cap b, .vt-cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* Recorded voices */
.voices .vgroup { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.voice.own { border-color: var(--teal); background: var(--teal-soft); }
.passage { margin: 12px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--ground); border-radius: 10px; font-size: 17px; line-height: 1.6; }
.recorder.audio { display: grid; gap: 10px; padding: 14px; }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .08s; }
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vlist li:last-child { border-bottom: 0; }
.vlist li > span:first-of-type { display: grid; }
.vswitch { margin-top: 10px; gap: 8px; align-items: center; }
.vswitch select { width: auto; flex: 1; min-width: 0; }
/* Super Admin switches */
.toggles { display: grid; gap: 4px; }
.toggles .toggle { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 0; font-weight: 400; cursor: pointer; border-bottom: 1px solid var(--line); }
.toggles .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggles .toggle > span:last-child { display: grid; }
.toggles .switch { width: 40px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .2s; }
.toggles .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggles input:checked + .switch { background: var(--teal); }
.toggles input:checked + .switch::after { transform: translateX(18px); }
.toggles input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggles input:disabled + .switch { opacity: .5; }
button.linklike { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; font: inherit; cursor: pointer; }
/* Inbox lanes: Review → Being made → Sent */
.lanes { display: flex; align-items: stretch; gap: 8px; margin: 14px 0 20px; }
.lane { flex: 1; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.lane:hover { border-color: var(--accent); }
.lane.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.lnum { width: 26px; height: 26px; border-radius: 50%; background: var(--ground); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.lane.on .lnum { background: var(--accent); color: #fff; }
.ltext { display: flex; flex-direction: column; line-height: 1.3; }
.lcount { display: inline-block; min-width: 24px; padding: 0 8px; border-radius: 99px; background: var(--ground); font-size: 13px; font-weight: 700; text-align: center; }
.lane.busy .lcount { background: var(--accent); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.larrow { align-self: center; color: var(--muted); }
@media (max-width: 760px) { .larrow { display: none; } .lane { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; } .lane .small { display: none; } }
.allform { text-align: center; } .allform .small { margin-top: 6px; }
.gsub { margin: -6px 0 10px; }
.failnote { border-color: #F3B8B2; background: #FDECEA; color: var(--red); }
/* Donor rows */
.dlist { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.dlist.card { padding: 0; }
.drow { border-top: 1px solid var(--line); }
.drow:first-child { border-top: 0; }
.dhead { display: flex; gap: 12px; align-items: center; padding: 12px 16px; flex-wrap: wrap; }
.dhead .pickbox { margin-top: 0; }
.dwho { flex: 1; min-width: 220px; text-align: left; background: none; border: 0; padding: 0; font-weight: 400; display: flex; flex-direction: column; gap: 2px; border-radius: 0; }
.dwho::after { content: "Open ▾"; font-size: 12px; color: var(--accent-ink); font-weight: 600; }
.drow.open .dwho::after { content: "Close ▴"; }
.dpeek { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 520px; }
.drow.open .dpeek { display: none; }
.dbody { display: none; padding: 0 16px 16px 46px; }
.drow.open .dbody { display: block; }
.drow.open { background: #FFFDF9; }
.dbody .vscript { min-height: 110px; }
.dacts { margin-top: 8px; align-items: center; }
.dacts .vlen { margin-left: auto; }
@media (max-width: 760px) { .dbody { padding-left: 16px; } }
/* Being made */
.mrow { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mwho { flex: 1; min-width: 0; }
.mbar { height: 8px; border-radius: 99px; background: var(--ground); overflow: hidden; margin: 6px 0 3px; max-width: 520px; }
.mbar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 1s ease; }
.drow.making { background: var(--accent-soft); }
.drow.making .mbar span, .mrow .mbar span { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 8px, transparent 8px 16px); background-size: 200% 100%; animation: stripes 1.2s linear infinite; }
.done .mbar span, .failed .mbar span { animation: none; background-image: none; }
.done .mbar span { background: var(--teal); }
.drow.making.done { background: var(--teal-soft); }
.failed .mlabel { color: var(--red); }
@keyframes stripes { to { background-position: -32px 0; } }
@media (prefers-reduced-motion: reduce) { .mbar span, .lane.busy .lcount { animation: none !important; } }
.toast { position: sticky; bottom: 76px; margin: 12px auto 0; max-width: 520px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-align: center; font-weight: 600; z-index: 6; }
.toast[hidden] { display: none; }
.drow.done, .mrow.done { text-decoration: none; color: inherit; }
.dwho { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
/* Asking a real person to record */
.copylink { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.copylink input { flex: 1; min-width: 0; font-size: 13px; }
.rqdonor { padding: 12px 0; border-top: 1px solid var(--line); }
.rqdonor:first-of-type { border-top: 0; }
.rqdonor .vscript { margin-top: 8px; min-height: 100px; }
.drow.rec { background: #FFFDF9; }
.dwho.static { cursor: default; }
.dwho.static::after { content: none; }
.recview { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: start; }
.recview video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; }
.deny { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.deny input { flex: 1; min-width: 160px; padding: 6px 9px; font-size: 13px; }
.mreq { margin-top: 6px; gap: 6px; }
@media (max-width: 760px) { .recview { grid-template-columns: 1fr; } .recview video { max-width: 260px; } }
/* The recorder's own pages */
main.auth:has(.recpage) { max-width: 640px; }
.recpage .kicker { font-weight: 800; color: var(--accent-ink); margin: 0 0 6px; }
.recpage h1 { font-size: 26px; }
.tips ul { margin: 6px 0 12px; padding-left: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { width: auto; margin-top: 4px; }
.consent.nudge { color: var(--red); font-weight: 600; }
.progress-line { color: var(--muted); }
.reclist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ritem { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.ritem.open { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ritem.done { background: var(--teal-soft); border-color: #BFE3DD; }
.rechead { display: flex; gap: 12px; align-items: center; }
.rcheck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ground); color: var(--muted); font-size: 12px; flex: none; }
.ritem.done .rcheck { background: var(--teal); color: #fff; font-weight: 800; }
.rwho { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rnote { color: var(--accent-ink); }
.rscript { display: none; }
.rpanel { margin-top: 12px; }
.rstage { position: relative; background: #000; }
.rstage video { width: 100%; max-height: 70vh; aspect-ratio: auto; object-fit: contain; display: block; }
#live { transform: scaleX(-1); }
.rprompt { position: absolute; left: 0; right: 0; bottom: 0; max-height: 45%; overflow-y: auto; padding: 14px 16px; background: rgba(0,0,0,.62); color: #fff; font-size: 18px; line-height: 1.5; }
.rstatus { color: #fff; padding: 0 12px; min-height: 1em; }
.rstatus.bad { color: #FFB4A9; }
.rpanel .linklike { color: #F6C68B; }
.rpanel > p.small { padding: 0 12px 12px; margin: 0; }
.photobox { display: grid; gap: 10px; }
.photobox img, .photobox video { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--ground); }
.photobox video { transform: scaleX(-1); }
/* Messengers page: photo-and-voice requests */
.rqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rqparts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.rqpart { display: grid; gap: 8px; }
.rqphoto { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--ground); }
.rqpart audio { width: 100%; }
.swap label.btn { cursor: pointer; }
.ritem.done { text-decoration: none; color: inherit; }
.rec-ui[hidden], .rstage video[hidden], .rprompt[hidden] { display: none; }
.drow .dwho.static::after { content: none; }
button[hidden], .btn[hidden] { display: none; }

/* Two tiers: Videos and Stewardship, switched at the top of the sidebar. */
.tiers { display: flex; background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin: 0 0 16px; }
nav.side .tiers a { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 2px; white-space: nowrap; margin: 0; color: var(--muted); border-radius: 7px; }
nav.side .tiers a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.stewoff { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--accent-soft); border-color: #F3D9B8; }
.callcard .callscript { background: var(--ground); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.callcard form input { width: auto; }
.goalbar { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 4px; }
.goalbar i { width: 14px; height: 8px; border-radius: 3px; background: var(--line); }
.goalbar i.on { background: var(--teal); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li.tl { border-left: 3px solid var(--line); padding: 4px 0 12px 14px; margin-left: 4px; }
.timeline li.tl.sent, .timeline li.tl.done { border-left-color: var(--teal); }
.timeline li.tl.missed, .timeline li.tl.failed { border-left-color: var(--red); }
.timeline li.tl.planned, .timeline li.tl.todo { border-left-style: dashed; }
.timeline details summary { cursor: pointer; color: var(--accent-ink); margin-top: 4px; }
.plangrid td, .plangrid th { text-align: center; }
.plangrid td:first-child, .plangrid th:first-child { text-align: left; }
.plangrid input[type=checkbox] { width: 18px; height: 18px; }
label.inline { display: inline; font-weight: 400; margin: 0; }
label.inline input { width: 90px; padding: 4px 8px; }
.stewswitch { align-items: center; }
.stewswitch.toggles { display: flex; }
.stewswitch .toggle { border-bottom: 0; padding: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* KeepDonors logo in the sidebar */
nav.side a.brand { display: flex; align-items: center; gap: 8px; padding: 0 4px; margin: 0 4px 16px; background: none; }
nav.side .brand-mark { width: 30px; height: auto; }
nav.side .brand-word { height: 17px; width: auto; }
