/* Local Take app.
   Agent pages wear the brokerage's colors (set inline as --brand and --accent).
   Everything else wears Local Take: evergreen, amber, plain sturdy type. */
@font-face {
  font-family: "Schibsted";
  src: url("/static/fonts/SchibstedGrotesk.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --lt: #0F3B2E;
  --lt-deep: #0A2A21;
  --amber: #F2A33A;
  --ink: #1E2A25;
  --muted: #4E5B55;
  --mist: #F4F6F3;
  --line: #D5DDD8;
  --paper: #FFFFFF;
  --ok: #1F7A4D;
  --warn: #8A5300;
  --bad: #A3262E;
  --brand: var(--lt);
  --accent: var(--amber);
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Schibsted", var(--ui);
  --display: "Brand", var(--head);
  --radius-frame: 30px;
  --radius-control: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--ui); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* App chrome */
.top { background: var(--lt); color: #fff; }
.top .inner { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 6px 20px; align-items: center; flex-wrap: wrap; }
.top .logo { display: block; margin-right: auto; }
.top .logo img { height: 26px; width: auto; display: block; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: #fff; text-decoration: none; opacity: .78; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.top nav a.on { opacity: 1; background: rgba(255, 255, 255, .12); }
.top nav a:hover { opacity: 1; }
.top form { margin: 0; }
.top .who { font-size: 14px; opacity: .78; }
.top button { background: none; border: 1px solid rgba(255, 255, 255, .35); color: #fff; font: 14px var(--ui); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
main.wide { max-width: 1160px; margin: 0 auto; padding: 28px 24px 64px; }
main.narrow { max-width: 440px; margin: 0 auto; padding: 56px 20px 64px; }
main.wide h1, main.narrow h1 { font: 800 32px/1.15 var(--head); letter-spacing: -0.015em; margin: 0 0 6px; color: var(--lt); }
main.wide h2 { font: 700 20px/1.3 var(--head); margin: 36px 0 12px; color: var(--lt); }
.sub { color: var(--muted); margin: 0 0 20px; }
.flash { padding: 12px 14px; border-radius: var(--radius-control); margin: 0 0 18px; }
.flash.ok { background: #E6F4EC; color: var(--ok); }
.flash.bad { background: #FBEDEE; color: var(--bad); }

/* Sign in */
.signin-mark { display: block; height: 40px; width: auto; margin: 0 0 36px; }
.signin p { color: var(--muted); }

/* Brokerage band on agent pages */
.band { background: var(--brand); color: #fff; padding: 18px 20px 16px; }
.band-inner { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.band img { height: 46px; width: auto; display: block; }
.band .wordmark { font: 600 22px/1.1 var(--display); }
.band form { margin: 0 0 0 auto; }
.band button { background: none; border: 1px solid rgba(255, 255, 255, .45); color: #fff; font: 14px var(--ui); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
main.agent { max-width: 480px; margin: 0 auto; padding: 26px 20px 32px; }
main.agent h1 { font: 600 34px/1.12 var(--display); margin: 0 0 8px; letter-spacing: -0.01em; }
main.agent h2 { font: 600 19px/1.3 var(--ui); margin: 32px 0 12px; }
.lede { color: var(--muted); margin: 0 0 8px; max-width: 34em; }
.fine { color: var(--muted); font-size: 14px; }
.powered { text-align: center; padding: 8px 20px 40px; font-size: 13px; color: var(--muted); }
.powered img { height: 14px; width: auto; vertical-align: -2px; margin-left: 4px; }

/* The phone frame: the one bold element on the agent page */
.frame-wrap { display: flex; justify-content: center; margin: 4px 0 0; }
.frame {
  position: relative; width: min(100%, 290px); aspect-ratio: 9 / 16;
  border-radius: var(--radius-frame); overflow: hidden;
  background: var(--mist); border: 2px dashed var(--line);
  display: grid; place-items: center; text-align: center; cursor: pointer;
}
.frame.has-clip { border: 0; background: #000; cursor: default; }
.frame input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.frame.has-clip input[type=file] { display: none; }
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .empty { padding: 24px; pointer-events: none; }
.frame .empty strong { display: block; font: 600 24px/1.2 var(--display); color: var(--brand); margin-bottom: 6px; }
.frame .lens { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--brand); margin: 0 auto 16px; display: grid; place-items: center; }
.frame .lens::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); }
.preview-bar {
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
  background: color-mix(in srgb, var(--brand) 90%, transparent); color: #fff;
  border-radius: 10px; padding: 6px 14px 7px; text-align: center; white-space: nowrap;
  font: 600 13px/1.25 var(--display); box-shadow: inset 0 -3px 0 var(--accent);
}
.progress { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-size: 15px; text-align: left; }
.progress .track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin-top: 6px; overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.swap { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--brand); font: 500 15px var(--ui); padding: 8px; cursor: pointer; }

/* Forms */
textarea, input[type=text], input[type=email], input[type=url], input[type=number], select {
  width: 100%; font: 16px/1.4 var(--ui); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-control); padding: 12px 14px;
}
textarea { min-height: 84px; resize: vertical; }
label.field { display: block; font-weight: 600; margin: 20px 0 8px; }
label.field span { font-weight: 400; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; font-weight: 600; }
label.check input { width: 20px; height: 20px; accent-color: var(--lt); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; align-items: end; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--ui); border-radius: var(--radius-control); padding: 14px 18px;
  border: 0; background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; min-height: 44px;
}
.btn.block { display: flex; width: 100%; margin-top: 24px; }
.btn.quiet { background: var(--mist); color: var(--brand); }
.btn.small { padding: 9px 12px; font-size: 14px; min-height: 36px; }
.btn.danger { background: #FBEDEE; color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.alert { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-control); background: #FBEDEE; color: var(--bad); }

/* Lists and pills */
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { border-top: 1px solid var(--line); }
.recent a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; text-decoration: none; color: var(--ink); }
.recent .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { flex: none; display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--muted); white-space: nowrap; }
.pill.ready, .pill.pass, .pill.Active { background: #E6F4EC; color: var(--ok); }
.pill.review, .pill.Invited { background: #EAF1EE; color: var(--lt); }
.pill.changes, .pill.failed, .pill.blocked, .pill.Off { background: #FBEDEE; color: var(--bad); }
.pill.needs-review, .pill.No-email { background: #FFF4E0; color: var(--warn); }

/* Status steps: a real sequence */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0 6px; padding: 0; }
.steps li { font-size: 13px; color: var(--muted); }
.steps li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.steps li.done::before { background: var(--brand); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now::before { background: var(--accent); }
.note-box { margin-top: 20px; padding: 16px; border-left: 4px solid var(--bad); background: #FBEDEE; border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.result video { width: 100%; max-width: 320px; aspect-ratio: 9 / 16; display: block; margin: 20px auto 0; border-radius: 22px; background: #000; }
.copy-row { display: flex; gap: 10px; margin-top: 10px; }
.copy-row .btn { flex: 1; }

.posted-line { margin: 2px 0 0; font-weight: 600; color: var(--lt); }

/* Posting queue */
main.wide h2 .count { display: inline-block; min-width: 26px; padding: 1px 8px; margin-left: 6px; border-radius: 999px; background: var(--mist); color: var(--muted); font: 600 13px/1.6 var(--ui); text-align: center; vertical-align: 3px; }
.post-list { display: grid; gap: 16px; }
.post-item { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 18px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); border: 1px solid #E3E9E5; }
.post-thumb { width: 132px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; display: block; box-shadow: var(--shadow-md); }
.post-who { margin: 0 0 10px; }
.post-caption { font-size: 15px; min-height: 0; background: var(--mist); }
.post-item .row-actions { margin-top: 10px; }
.mark-posted { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.mark-posted fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mark-posted legend { font-weight: 600; margin-bottom: 2px; padding: 0; }
.mark-posted label.check { margin: 6px 0 0; font-weight: 500; }
.mark-posted label.field { margin: 12px 0 6px; }
.mark-posted input[type=url] { width: 100%; font: 16px/1.4 var(--ui); border: 1.5px solid var(--line); border-radius: var(--radius-control); padding: 10px 12px; }
.mark-posted .btn { justify-self: start; margin-top: 12px; }
@media (max-width: 760px) { .post-item { grid-template-columns: 1fr; } .post-thumb { width: 120px; } }

/* Agent sign-off on a finished video */
.signoff { margin: 20px 0 0; padding: 14px 16px; border-radius: var(--radius-control); display: grid; gap: 2px; font-size: 15px; }
.signoff strong { font-size: 16px; }
.signoff span { color: var(--muted); }
.signoff.ok, .signoff.done { background: #E6F4EC; color: var(--ok); }
.signoff.changes { background: #FFF4E0; color: var(--warn); }
.signoff a { color: inherit; }
.decide { margin: 0; }
.ask-change { margin-top: 12px; }
.ask-change summary { list-style: none; cursor: pointer; }
.ask-change summary::-webkit-details-marker { display: none; }
.ask-change[open] summary { margin-bottom: 4px; }
.ask-change .btn.block { margin-top: 12px; }
.result .decide .btn.block { margin-top: 20px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-control); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; background: var(--mist); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.current td { background: #FFFBF3; }

/* Dashboard */
.goal { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: center; padding: 26px 28px; border-radius: 18px; background: var(--lt); color: #fff; margin: 18px 0 8px; }
.goal .big { font: 800 64px/1 var(--head); letter-spacing: -0.03em; grid-row: span 2; }
.goal .big small { font-size: 26px; }
.goal p { margin: 0; opacity: .9; }
.goal .meter { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .18); position: relative; overflow: visible; }
.goal .meter .fill { height: 100%; border-radius: 5px; background: var(--amber); }
.goal .meter .mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; }
.bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.bars .col { display: grid; grid-template-rows: 20px 120px 20px; gap: 4px; text-align: center; font-size: 12px; color: var(--muted); }
.bars .pct, .bars .lab { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.bars .cur .pct, .bars .cur .lab { color: var(--ink); font-weight: 700; }
.bars .area { position: relative; display: flex; align-items: flex-end; background: var(--mist); border-radius: 6px; }
.bars .bar { display: block; width: 100%; border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bars .bar.hit { background: var(--lt); }
.bars .bar.miss { background: #9FB3AA; }
.bars .goal-line { position: absolute; left: -2px; right: -2px; border-top: 2px dashed var(--amber); z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cards a { display: block; text-decoration: none; color: var(--ink); font-size: 14px; }
.cards img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #000; display: block; margin-bottom: 6px; }

/* Team */
details.person { border-top: 1px solid var(--line); }
details.person summary { list-style: none; display: grid; grid-template-columns: 1.4fr 1.4fr auto auto; gap: 12px; align-items: center; padding: 12px 4px; cursor: pointer; }
details.person summary::-webkit-details-marker { display: none; }
details.person summary .name { font-weight: 600; }
details.person summary .meta { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
details.person .edit { padding: 4px 4px 22px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.row-actions form { margin: 0; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px 22px; }

/* Admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 18px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--mist); color: var(--ink); text-decoration: none; font-size: 15px; }
.tabs a.on { background: var(--lt); color: #fff; }
.job-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 32px; }
.job-grid video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 18px; }
pre.report { white-space: pre-wrap; background: var(--mist); padding: 14px; border-radius: var(--radius-control); font: 14px/1.5 var(--ui); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.actions form { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
video.lib-thumb { width: 180px; height: 110px; object-fit: contain; background: #000; border-radius: 8px; display: block; }
td audio { width: 240px; max-width: 100%; }
.picker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.picker select { width: auto; }

@media (max-width: 760px) {
  .job-grid { grid-template-columns: 1fr; }
  details.person summary { grid-template-columns: 1fr auto; }
  details.person summary .meta, details.person summary .hide-sm { display: none; }
  .goal { grid-template-columns: 1fr; }
  .goal .big { grid-row: auto; }
  .bars { gap: 4px; }
  .bars .col { font-size: 10px; }
  .top .who { display: none; }
  .top .logo img { height: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ------------------------------------------------------------------------------------------------
   Polish: soft shadows, hover and press feedback on things you can click, calm focus rings.
   Movement stays on interactive elements. Agent pages use the brokerage's colors (--brand, --accent).
   ------------------------------------------------------------------------------------------------ */
:root {
  --shadow-sm: 0 1px 2px rgba(15, 59, 46, .06), 0 2px 8px -4px rgba(15, 59, 46, .12);
  --shadow-md: 0 2px 6px -2px rgba(15, 59, 46, .10), 0 18px 36px -22px rgba(15, 59, 46, .35);
  --shadow-lg: 0 30px 60px -36px rgba(10, 42, 33, .55), 0 12px 28px -18px rgba(10, 42, 33, .30);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html { scroll-behavior: smooth; }
::selection { background: var(--amber); color: var(--lt); }

/* Buttons lift on hover and press in on click. */
.btn { transition: transform .16s var(--ease), box-shadow .2s ease, background-color .2s ease, filter .2s ease; }
.btn:not(.quiet):not(.danger) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 14px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
@media (hover: hover) {
  .btn:not(:disabled):hover { transform: translateY(-1px); }
  .btn:not(.quiet):not(.danger):not(:disabled):hover {
    filter: brightness(1.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 26px -14px color-mix(in srgb, var(--brand) 80%, transparent);
  }
  .btn.quiet:not(:disabled):hover { background: color-mix(in srgb, var(--brand) 9%, var(--mist)); box-shadow: var(--shadow-sm); }
  .btn.danger:not(:disabled):hover { background: #F7DDE0; }
}
.btn:not(:disabled):active { transform: translateY(0) scale(.98); transition-duration: .06s; }
.btn:focus-visible, .top nav a:focus-visible, .tabs a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Top bar links */
.top nav a { transition: opacity .15s ease, background-color .15s ease; }
.top nav a:hover { background: rgba(255, 255, 255, .08); }
.top button, .band button { transition: background-color .15s ease, border-color .15s ease; }
.top button:hover, .band button:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }

/* Form fields: a soft ring when you're typing. */
textarea, input[type=text], input[type=email], input[type=url], input[type=number], select {
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea:hover, input[type=text]:hover, input[type=email]:hover, input[type=url]:hover, input[type=number]:hover, select:hover { border-color: #B9C6BF; }
textarea:focus, input[type=text]:focus, input[type=email]:focus, input[type=number]:focus, select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}

/* Surfaces float on soft shadows instead of hard lines. */
.table-wrap, .panel { box-shadow: var(--shadow-sm); border-color: #E3E9E5; background: var(--paper); }
.goal { box-shadow: var(--shadow-md); }
.job-grid video, .result video { box-shadow: var(--shadow-lg); }
.note-box, .flash, .alert { box-shadow: var(--shadow-sm); }
pre.report { box-shadow: inset 0 0 0 1px #E3E9E5; }

/* Rows and lists you can click get a gentle highlight. */
tbody tr { transition: background-color .15s ease; }
tbody tr:hover td { background: #F8FAF8; }
tr.current:hover td { background: #FFF6E6; }
.recent a { border-radius: 10px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; transition: background-color .15s ease; }
.recent a:hover { background: var(--mist); }
details.person summary { border-radius: 10px; transition: background-color .15s ease; }
details.person summary:hover { background: #F8FAF8; }
.tabs a { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.tabs a:not(.on):hover { background: #E8EEEA; }
.tabs a.on { box-shadow: 0 6px 14px -8px rgba(15, 59, 46, .6); }

/* Video thumbnails on the dashboard are links: they lift. */
.cards a { transition: transform .2s var(--ease); }
.cards img { box-shadow: var(--shadow-md); transition: box-shadow .2s ease; }
@media (hover: hover) {
  .cards a:hover { transform: translateY(-3px); }
  .cards a:hover img { box-shadow: var(--shadow-lg); }
}

/* The upload frame: the record button breathes, and the frame warms up when you point at it. */
.frame { transition: border-color .2s ease, background-color .2s ease, box-shadow .25s ease, transform .2s var(--ease); }
.frame.has-clip { box-shadow: var(--shadow-lg); }
@media (hover: hover) {
  .frame:not(.has-clip):hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
    background: color-mix(in srgb, var(--brand) 4%, var(--mist));
    transform: translateY(-2px);
  }
}
.frame:not(.has-clip):focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.frame .lens::after { animation: lt-breathe 2.4s ease-in-out infinite; }
@keyframes lt-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82); } }
.progress .fill { box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }

/* Status steps: the current step glows like a recording light while the video is being worked on. */
#job[data-status="queued"] .steps li.now::before,
#job[data-status="editing"] .steps li.now::before,
#job[data-status="review"] .steps li.now::before {
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 45%, #fff) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: lt-sweep 1.6s linear infinite;
}
@keyframes lt-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.steps li::before { transition: background-color .3s ease; }

/* Editor surfaces */
.stage { box-shadow: var(--shadow-lg); }
.words, .tl-scroll, .ed-side fieldset { box-shadow: var(--shadow-sm); border-color: #E3E9E5; }
.w { transition: background-color .12s ease, color .12s ease; }
.seg button { transition: background-color .15s ease, color .15s ease; }
.seg button:not(.on):hover { background: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame .lens::after, #job .steps li.now::before { animation: none !important; }
  .btn, .cards a, .frame { transition: none !important; transform: none !important; }
}

/* The Local Take Method: weekly takes, the script card, streaks, and results */
.streak { display: flex; gap: 14px; align-items: center; margin: 18px 0 4px; padding: 14px 16px; border-radius: 16px; background: var(--mist); border: 1px solid #E3E9E5; }
.streak-num { flex: none; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 26px; display: grid; place-items: center; font: 800 26px/1 var(--head); background: var(--paper); color: var(--brand); box-shadow: var(--shadow-sm); }
.streak.done .streak-num { background: var(--accent); color: var(--ink); }
.streak-text { display: grid; gap: 2px; font-size: 15px; color: var(--muted); }
.streak-text strong { color: var(--ink); font-size: 16px; }
.takes { display: grid; gap: 14px; }
.take { padding: 16px 16px 14px; border-radius: 16px; background: var(--paper); border: 1px solid #E3E9E5; box-shadow: var(--shadow-sm); border-top: 4px solid var(--accent); }
.take-kind { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--brand); }
.take-hook { margin: 0 0 12px; font: 600 19px/1.35 var(--display); color: var(--ink); }
.take-line { margin: 0 0 8px; font-size: 15px; }
.take-line span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.take-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.take-actions form { margin: 0; }
.script { list-style: none; counter-reset: brick; padding: 0; margin: 22px 0 14px; display: grid; gap: 14px; }
.script li { counter-increment: brick; position: relative; padding: 16px 16px 12px 58px; border-radius: 16px; background: var(--mist); }
.script li::before { content: counter(brick); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--head); background: var(--accent); color: var(--ink); }
.script .brick { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.script .opt { font-weight: 500; }
.script .say { margin: 4px 0 6px; font: 600 22px/1.35 var(--display); color: var(--ink); }
.script .fine { margin: 0; }
.tallies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tallies div { padding: 12px; border-radius: 14px; background: var(--mist); display: grid; gap: 2px; }
.tallies strong { font: 800 26px/1.1 var(--head); color: var(--brand); }
.tallies span { font-size: 14px; color: var(--muted); }
.fact-form { padding-top: 6px; margin-top: 10px; }
.fact-form .btn { margin-top: 16px; }
tr.muted-row td { color: var(--muted); background: #FAFBFA; }
h3.week-h { font: 700 17px/1.3 var(--head); color: var(--lt); margin: 26px 0 8px; }
.agent-takes { border-top: 1px solid var(--line); padding: 10px 0; }
.agent-name { margin: 0 0 4px; font-weight: 700; }
details.take-edit { border-radius: 10px; }
details.take-edit summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: baseline; padding: 8px 6px; border-radius: 10px; flex-wrap: wrap; }
details.take-edit summary::-webkit-details-marker { display: none; }
details.take-edit summary:hover { background: var(--mist); }
details.take-edit .meta { color: var(--muted); font-size: 14px; flex: 1 1 240px; min-width: 0; }
details.take-edit .kw { font: 700 12px/1.6 var(--ui); letter-spacing: .02em; padding: 0 8px; border-radius: 6px; background: #FFF4E0; color: var(--warn); }
details.take-edit form { padding: 0 6px 6px; }
details.take-edit input[type=text] { width: 100%; }
.results-cell { min-width: 190px; }
.result-line { display: block; font-size: 14px; margin-bottom: 6px; }
.log-results summary { list-style: none; cursor: pointer; display: inline-flex; }
.log-results summary::-webkit-details-marker { display: none; }
.log-results form { margin-top: 10px; display: grid; gap: 4px; }
.result-fields { display: grid; grid-template-columns: repeat(3, minmax(70px, 1fr)); gap: 8px; }
.result-fields label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.result-fields input { padding: 8px 10px; }
.log-results label.field { margin: 8px 0 4px; font-size: 14px; }
.log-results input[type=text] { padding: 8px 10px; }
.log-results .btn { justify-self: start; margin-top: 8px; }
.top-video { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid #E3E9E5; box-shadow: var(--shadow-sm); border-left: 4px solid var(--amber); color: var(--ink); text-decoration: none; max-width: 520px; }
.top-video strong { font-size: 18px; color: var(--lt); }
.note-line { padding: 10px 14px; border-radius: var(--radius-control); background: #FFF4E0; color: var(--warn); }
@media (hover: hover) { .take, .top-video { transition: box-shadow .2s ease, transform .2s var(--ease); } .top-video:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } }
@media (max-width: 420px) { .script li { padding-left: 50px; } .script .say { font-size: 20px; } .tallies strong { font-size: 22px; } }

/* Sign-in code */
input.code { font: 700 28px/1.2 var(--head); letter-spacing: .3em; text-align: center; padding: 14px; }
.code-form .btn.block { margin-top: 14px; }

/* Upload page: notes under the frame and the button */
.file-info { text-align: center; margin: 10px 0 0; }
.progress-note { text-align: center; margin: 10px 0 0; }

/* ------------------------------------------------------------------------------------------------
   Film page: the camera fills the phone. The script scrolls at the top, right under the lens,
   so the agent's eyes stay near the camera while they read.
   ------------------------------------------------------------------------------------------------ */
body.film { background: #000; color: #fff; overflow: hidden; height: 100dvh; overscroll-behavior: none; }
.cam { position: fixed; inset: 0; background: #000; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cam video.mirror { transform: scaleX(-1); }
.cam #review { object-fit: contain; }
.cam::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .62) 72%, rgba(0, 0, 0, 0) 100%);
  opacity: 0; transition: opacity .25s ease;
}
.cam.live-on:not(.reviewing)::before { opacity: 1; }
.prompter {
  position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 66px); height: 34%; overflow: hidden; z-index: 2;
  padding: 10px 22px 0;
  -webkit-mask-image: linear-gradient(transparent 0, #000 18px, #000 78%, transparent);
  mask-image: linear-gradient(transparent 0, #000 18px, #000 78%, transparent);
  opacity: 0; transition: opacity .25s ease; cursor: pointer;
}
.cam.live-on .prompter { opacity: 1; }
.prompter-scroll { will-change: transform; max-width: 560px; margin: 0 auto; }
.prompter .cue { margin: 0 0 2px; font: 700 13px/1.3 var(--ui); color: var(--accent); }
.prompter .cue.end { margin-top: 18px; padding-bottom: 40vh; color: rgba(255, 255, 255, .6); }
.prompter .say { margin: 0 0 18px; font: 700 27px/1.32 var(--head); letter-spacing: -0.005em; text-wrap: pretty; }
.prompter.paused .say { opacity: .55; }
.hud { position: absolute; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.hud-top { top: 0; padding-top: calc(env(safe-area-inset-top) + 12px); justify-content: space-between; }
.hud-bottom { bottom: 0; padding-bottom: calc(env(safe-area-inset-bottom) + 22px); justify-content: space-between; }
.hud-btn {
  min-height: 44px; min-width: 44px; padding: 10px 14px; border-radius: 999px; border: 0;
  background: rgba(0, 0, 0, .5); color: #fff; font: 600 15px/1 var(--ui); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hud-btn.round { padding: 0; width: 44px; font-size: 22px; }
.speed { display: flex; align-items: center; gap: 6px; visibility: hidden; }
.cam.live-on .speed { visibility: visible; }
.cam.reviewing .speed { visibility: hidden; }
.speed-label { font-size: 13px; opacity: .8; }
.cam.recording .speed-label { display: none; }
.timer { font: 700 17px/1 var(--ui); font-variant-numeric: tabular-nums; padding: 8px 12px; border-radius: 999px; background: #C62828; }
.rec { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer; }
.rec span { width: 60px; height: 60px; border-radius: 50%; background: #E53935; transition: all .2s var(--ease); }
.cam.recording .rec span { width: 30px; height: 30px; border-radius: 7px; }
.rec:disabled { opacity: .5; }
.hud-bottom { display: grid; grid-template-columns: 1fr auto 1fr; }
.hud-bottom #flip { grid-column: 1; justify-self: start; }
.hud-bottom .rec { grid-column: 2; }
.hud-bottom #pause { grid-column: 3; justify-self: end; }
.countdown { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font: 800 120px/1 var(--head); color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); pointer-events: none; }
.turn { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .turn { display: grid; place-items: center; position: absolute; inset: 0; z-index: 10; margin: 0; padding: 24px; background: #000; font: 700 22px/1.3 var(--head); text-align: center; }
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 88dvh; overflow-y: auto;
  background: var(--paper); color: var(--ink); border-radius: 24px 24px 0 0;
  padding: 22px 20px calc(env(safe-area-inset-bottom) + 22px); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .6);
}
.sheet > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.sheet h1, .sheet h2 { font: 700 24px/1.2 var(--display); margin: 0 0 8px; color: var(--ink); }
.sheet p { color: var(--muted); margin: 0 0 8px; }
.sheet .tips { margin: 12px auto 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.sheet label.field { margin-top: 14px; }
.sheet .btn.block { margin-top: 14px; }
.cam #start { top: auto; }
.cam.reviewing #done { max-height: 52dvh; }
.cam.reviewing #review { bottom: auto; height: 50dvh; top: 0; }
.film .progress { position: static; background: none; color: var(--ink); padding: 0; margin-top: 16px; display: grid; gap: 4px; }
.film .progress .track { background: var(--mist); }
.save-copy { display: block; text-align: center; margin-top: 14px; font-size: 15px; color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .rec span, .prompter { transition: none; } }

/* Home screen tip */
.home-tip { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; margin: 16px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid #E3E9E5; box-shadow: var(--shadow-sm); font-size: 14px; color: var(--muted); }
.home-tip img { border-radius: 10px; display: block; }
.home-tip div { display: grid; gap: 2px; }
.home-tip strong { color: var(--ink); font-size: 15px; }
.home-tip button { border: 0; background: var(--mist); color: var(--brand); font: 600 14px var(--ui); padding: 10px 12px; border-radius: 10px; cursor: pointer; min-height: 40px; }

/* Agent page: the two ways to send a clip, side by side */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.quick .btn { padding: 14px 10px; font-size: 15px; line-height: 1.2; text-align: center; }
.take-hook { margin-bottom: 4px; }
input.code::placeholder { color: #C9D3CD; }

/* Several clips for one video */
.clip-list { list-style: none; counter-reset: clip; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.clip-list li { counter-increment: clip; display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.clip-list li::before { content: counter(clip); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--ui); background: var(--accent); color: var(--ink); }
.clip-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-tools { display: flex; gap: 4px; flex: none; }
.clip-tools button { border: 0; background: var(--mist); color: var(--brand); font: 600 13px var(--ui); padding: 8px 10px; border-radius: 8px; cursor: pointer; min-height: 36px; }

/* Upload composer: pick, note, send */
.composer { margin-top: 18px; }
.for-take { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 8px 8px 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, var(--paper)); font-weight: 600; font-size: 15px; }
.for-take button { border: 0; background: var(--paper); color: var(--brand); font: 600 13px var(--ui); padding: 8px 10px; border-radius: 8px; cursor: pointer; min-height: 36px; }
.send-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 16px; }
.send-row textarea { min-height: 50px; height: 50px; resize: none; padding: 13px 14px; overflow-y: auto; }
.send-row .btn { min-width: 92px; min-height: 50px; }
.progress-line { margin-top: 10px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.progress-line .track { height: 6px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.progress-line .fill { height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.clip-x { border: 0; background: var(--mist); color: var(--brand); font: 600 13px var(--ui); padding: 8px 10px; border-radius: 8px; cursor: pointer; min-height: 36px; flex: none; }
.composer-foot { margin: 14px 0 0; }
.take-hook a { color: inherit; text-decoration: none; }
.composer .frame { width: min(100%, 250px); }
.composer .frame.has-clip { width: 150px; border-radius: 20px; }
.composer .frame.has-clip .preview-bar { font-size: 8px; padding: 3px 7px 4px; border-radius: 6px; }

/* One coaching tip with each finished video */
.coach-tip { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius-control); background: color-mix(in srgb, var(--accent) 16%, var(--paper)); border-left: 4px solid var(--accent); display: grid; gap: 2px; font-size: 15px; }
.coach-tip strong { font-size: 14px; color: var(--brand); }
.pick-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #FFF4E0; color: var(--warn); font-size: 14px; }

/* Five steps: Sent, Editing, Final check, Your OK, Posted */
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps li.now.bad { color: var(--bad); }
.steps li.now.bad::before { background: var(--bad); animation: none !important; }
.stopped { display: inline-block; margin: 18px 0 4px; padding: 4px 12px; border-radius: 999px; background: #FBEDEE; color: var(--bad); font-weight: 700; font-size: 14px; }
/* Status pills by what they mean for the agent */
.pill.action { background: #FFF4E0; color: var(--warn); }
.pill.ok, .pill.done { background: #E6F4EC; color: var(--ok); }
.pill.bad { background: #FBEDEE; color: var(--bad); }
.pill.wait { background: #EAF1EE; color: var(--lt); }
.pill.gone { background: var(--mist); color: var(--muted); }
/* Contact line at the bottom of every page */
.help-line { text-align: center; font-size: 13px; color: var(--muted); padding: 0 20px 28px; margin: 0; }
.help-line a { color: inherit; }
.banner { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-control); background: #FFF4E0; color: var(--warn); font-size: 15px; }
.first-steps { margin: 18px 0 4px; padding: 14px 16px 14px 36px; border-radius: 16px; background: var(--mist); color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.first-steps strong { color: var(--ink); }
.undo-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.undo-row form { margin: 0; }
.undo-row button { border: 0; background: var(--paper); color: var(--brand); font: 600 14px var(--ui); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.goal.empty { grid-template-columns: 1fr; gap: 14px; }
.goal.empty .btn { justify-self: start; background: var(--amber); color: var(--lt); }
.goal .goal-when { grid-column: 1 / -1; font-size: 14px; opacity: .85; }

/* Film page: last 30 seconds, and the save link when it matters most */
.timer.ending { background: #b3261e; color: #fff; }
.save-copy.strong { display: block; text-align: center; padding: 14px; border-radius: 12px; background: #fff; color: #111; font-weight: 600; text-decoration: none; }
/* Upload page: a clip that can't be sent */
.clip-list li.blocked .clip-name { color: #b3261e; }
.frame.is-paused { opacity: .5; pointer-events: none; }

/* Story bank, Talk it out, and who the videos are for ------------------------------------ */
.setup-card { display: block; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 16%, var(--paper)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--paper)); color: var(--ink); text-decoration: none; }
.setup-card strong { display: block; font: 700 18px/1.3 var(--head); color: var(--brand); }
.setup-card span { display: block; margin-top: 4px; color: var(--muted); }
.talk-cta { margin: 26px 0 8px; padding: 16px; border-radius: 16px; background: var(--mist); }
.talk-cta h2 { margin: 0 0 4px; font-size: 19px; }
.talk-cta p { margin: 0 0 12px; color: var(--muted); }
.take.mine { border-top-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 14px/1.2 var(--ui); padding: 9px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.chip:hover, .chip:focus-visible { border-color: var(--brand); color: var(--brand); }
.stack { display: grid; gap: 8px; }
.stack .btn { margin-top: 8px; }
.step-count { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--brand); }
.talk-q { font-size: clamp(26px, 7vw, 34px); line-height: 1.15; }
.talk { display: grid; gap: 10px; margin-top: 8px; }
.mic-wrap { display: grid; justify-items: center; gap: 10px; padding: 22px 0 10px; }
.mic { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--brand); background: var(--paper); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mic span { width: 74px; height: 74px; border-radius: 50%; background: var(--brand); transition: all .2s ease; }
.mic.on { border-color: #E53935; }
.mic.on span { width: 34px; height: 34px; border-radius: 8px; background: #E53935; }
.mic:disabled { opacity: .5; }
.mic-state { margin: 0; font-weight: 600; text-align: center; min-height: 1.4em; }
#playback { width: 100%; max-width: 360px; }
.hook-pick { border: 0; padding: 0; margin: 6px 0 4px; display: grid; gap: 10px; }
.hook-option { display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; align-items: start; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; }
.hook-option:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--paper)); }
.hook-option input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand); }
.hook-text { font: 600 19px/1.35 var(--display); color: var(--ink); }
.hook-notes { grid-column: 2; display: grid; gap: 2px; }
.note { font-size: 13px; color: var(--muted); }
.note.fix { color: var(--bad); font-weight: 600; }
.note.good { color: var(--ok); }
.hook-check { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 3px; }
.hook-check .note::before { margin-right: 6px; }
.hook-check .note.good::before { content: "\2713"; }
.hook-check .note.fix::before { content: "\2717"; }
.hook-check .note.tip::before { content: "\2192"; }
.said { margin: 22px 0 0; color: var(--muted); }
.said summary { cursor: pointer; font-weight: 600; }
.delete-row { margin-top: 18px; }
.linkish { border: 0; background: none; color: var(--bad); font: 500 14px var(--ui); text-decoration: underline; cursor: pointer; padding: 8px 0; }
.interview-card { margin: 18px 0; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.interview-card h2 { margin: 0 0 4px; font-size: 19px; }
.interview-card p { margin: 0 0 12px; color: var(--muted); }
.fill.indeterminate { width: 40%; animation: lt-slide 1.4s ease-in-out infinite; }
@keyframes lt-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .fill.indeterminate { animation: none; width: 100%; opacity: .5; } }
.for-who { margin: -4px 0 12px; font-weight: 600; color: var(--brand); }
.points { margin: 4px 0 6px; padding-left: 20px; display: grid; gap: 6px; }
.script .points li { padding: 0; background: none; border-radius: 0; position: static; counter-increment: none; font: 500 18px/1.4 var(--ui); }
.script .points li::before { content: none; }
.prompter .points { list-style: disc; padding-left: 26px; margin: 0 0 18px; }
.prompter .points li { font: 600 22px/1.32 var(--head); margin-bottom: 8px; }
.mention { margin: 22px 0 8px; }
.mention summary { list-style: none; }
.mention summary::-webkit-details-marker { display: none; }
.mention[open] summary { margin-bottom: 10px; }
.trust { margin: 18px 0; padding: 16px; border-radius: 16px; background: var(--mist); }
.trust h2 { margin: 0 0 4px; }
.trust .big { font: 800 44px/1 var(--head); color: var(--lt); margin: 6px 0; }
.trust p { margin: 0; }
.quotes { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; }
main .interview-card h2, main .talk-cta h2 { margin-top: 0; }
main .talk-cta > .btn.block { margin-top: 0; }
.hook-option { grid-template-columns: 26px 1fr; }
.hook-type { grid-column: 2; justify-self: start; font: 700 12px/1 var(--ui); color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--paper)); padding: 5px 8px; border-radius: 999px; }
.hook-option input { grid-row: 1 / span 2; }
.hook-screen { grid-column: 2; font-size: 13px; color: var(--muted); }
.hook-screen::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--accent); }

/* Keyword replies, sharing, film day */
.replies { display: grid; gap: 14px; margin-top: 16px; }
.reply-card { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); scroll-margin-top: 16px; }
.reply-card.focus { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.reply-card h2 { margin: 0; font-size: 20px; letter-spacing: .02em; }
.reply-card textarea, .reply-kit textarea, .share textarea { width: 100%; }
.linkish { background: none; border: 0; padding: 6px 0; color: var(--brand); text-decoration: underline; font: inherit; font-size: 15px; cursor: pointer; }
.reply-kit, .share { margin: 22px 0 8px; padding: 16px; border-radius: 16px; background: var(--mist); }
.reply-kit h2, .share h2 { margin: 0 0 4px; font-size: 19px; }
.tools-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 8px; }
.tools-row a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tools-row strong { font: 700 16px/1.3 var(--head); color: var(--brand); }
.tools-row span { font-size: 14px; color: var(--muted); }
@media (max-width: 420px) { .tools-row { grid-template-columns: 1fr; } }
.day-list { padding-left: 22px; display: grid; gap: 10px; margin: 16px 0; }
.day-list li { padding-left: 4px; }
.day-list .take-kind { display: block; margin: 0; }
.day-list .take-hook { display: block; font-weight: 600; }
.day-add { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.day-pos { margin: 0 0 4px; font-weight: 700; color: var(--accent); }
.settings .setting { padding: 16px; border-radius: 16px; border: 1px solid var(--line); margin: 0 0 14px; }
.settings .setting p { margin: 8px 0 0; }
.big-check { margin-top: 0 !important; font-size: 18px; }
.settings input[type=text] { width: 100%; }
.value, .reach { margin: 18px 0; padding: 16px; border-radius: 16px; background: var(--mist); }
.value h2, .reach h2 { margin: 0 0 4px; }
.value .big { font: 800 44px/1 var(--head); color: var(--lt); margin: 6px 0; }
.time-box { margin: 0 0 24px; }

/* Public pages: share links and the recruiting page */
.watch video { width: 100%; max-height: 78vh; border-radius: 18px; background: #000; display: block; }
.watch h1 { font-size: 24px; margin: 16px 0 6px; }
.watch-who { margin: 0 0 16px; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.showcase-grid figure { margin: 0; }
.showcase-grid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #000; display: block; }
.showcase-grid figcaption { display: grid; gap: 2px; margin-top: 8px; font-size: 15px; }
.join { margin: 28px 0 8px; padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 16%, var(--paper)); }
.join p { margin: 0 0 12px; font-weight: 600; }
.lead-add { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.lead-add .field { margin: 0; font-weight: 500; font-size: 15px; }
.lead-add input { width: 100%; }
.recent li form { display: inline; margin-left: 8px; }
.reply-step { margin: 14px 0 4px; font-size: 15px; color: var(--muted); font-weight: 700; }
.kw-results { margin: 6px 0 0; font-weight: 600; color: var(--ok); }
.closing-line { font-weight: 700; margin: 14px 0 6px; }
.commission summary { cursor: pointer; color: var(--lt); font-weight: 600; margin-top: 8px; }
.inline-form { display: grid; gap: 8px; max-width: 360px; margin-top: 8px; }
.value table { margin-top: 12px; }
.pick-list { list-style: none; padding: 0; margin: 12px 0; }
.pick-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.pick-list .name { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pick-list form { flex: none; margin: 0; }
.ring { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 600 12px/1.5 var(--ui); background: var(--mist); color: var(--muted); vertical-align: 1px; }
.ring-narrow { background: color-mix(in srgb, var(--accent) 22%, var(--paper)); color: var(--ink); }
.ring-wild { background: color-mix(in srgb, var(--brand) 12%, var(--paper)); color: var(--brand); }
.worked { margin: 0 0 14px; padding: 12px 14px 12px 32px; border-radius: 14px; background: var(--mist); display: grid; gap: 6px; }
.demo-band { margin: 0; padding: 8px 16px; text-align: center; background: #FFF4D6; color: #6B4A00; font: 600 14px/1.4 var(--ui); }
.fix-preview { width: 100%; max-height: 52vh; border-radius: 16px; background: #000; display: block; margin: 10px 0; }
.fix-modes { display: flex; gap: 8px; margin: 12px 0 4px; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.fix-words { line-height: 2.2; margin: 10px 0 16px; }
.word { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 17px/1.2 var(--ui); padding: 6px 8px; border-radius: 10px; cursor: pointer; margin: 2px 0; }
.word.cut { text-decoration: line-through; color: var(--muted); background: var(--mist); opacity: .7; }
.word.fixed { border-color: var(--brand); color: var(--brand); }
.word-input { width: 9em; font: inherit; padding: 2px 4px; }
.self-post { margin: 18px 0; padding: 16px; border-radius: 16px; background: var(--mist); }
.self-post h2 { margin: 14px 0 6px; font-size: 19px; }
.post-steps { padding-left: 22px; margin: 0 0 10px; display: grid; gap: 4px; }
.checks { border: 0; padding: 0; margin: 0; }
tr.overdue td { background: #fff4e5; }
.late { color: #9a3b00; }
.plan-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 12px 0; }
.plan-form select { max-width: 100%; }
.pill.plan-dfy { background: #e7f0fb; color: #0b4f8a; }
