@font-face { font-family: 'Lexend'; src: url('/fonts/Lexend-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/fonts/Lexend-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/fonts/Lexend-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/fonts/Lexend-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

/* Black and white, one accent. */
:root {
  --bg: #0b0b0d;
  --surface: #151518;
  --surface-2: #1c1c21;
  --line: #2a2a31;
  --line-strong: #3b3b44;
  --text: #f4f4f5;
  --muted: #9b9ba4;
  --faint: #63636c;
  --primary-bg: #f4f4f5;
  --primary-text: #0b0b0d;
  --accent: #5cadcb;
  --accent-ink: #86c6de;
  --accent-soft: rgba(92, 173, 203, .14);
  --danger: #ff8a80;
  --danger-soft: rgba(255, 138, 128, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: clip;
}
h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 32px 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* ---------- Top bar & tabs ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(11, 11, 13, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: .01em; }
.brand svg { width: 22px; height: 23px; display: block; }
.top-right { display: flex; align-items: center; gap: 10px; }
.counter {
  font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap;
}
.counter.full { background: var(--primary-bg); color: var(--primary-text); }
.avatar-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; font-weight: 500; font-size: 13px; text-decoration: none;
}
.tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.tabs a.on { background: var(--primary-bg); color: var(--primary-text); }
.tabs .spacer { flex: 1; }
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px;
}
.banner.solid { background: var(--primary-bg); color: var(--primary-text); }
.banner a, .banner button { color: inherit; font-weight: 500; }

/* ---------- Layout ---------- */
.view { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
.view.wide { max-width: 1120px; }
.view.board { max-width: none; padding-left: 12px; padding-right: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel + .panel { margin-top: 16px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 2px 10px; flex-wrap: wrap; }
.section-title:first-child { margin-top: 4px; }

/* ---------- Buttons & inputs ---------- */
.btn {
  appearance: none; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 12px; min-height: 40px;
  font-weight: 400; font-size: 14px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { border-color: #55555f; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-text); font-weight: 500; }
.btn.primary:hover { background: #ffffff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #06161d; font-weight: 500; }
.btn.accent:hover { background: #70bad6; }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 32px; padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn .ico { width: 16px; height: 16px; flex: none; }
.link-btn { appearance: none; border: 0; background: none; padding: 0; color: var(--accent-ink); cursor: pointer; }

label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 42px; outline: none; font-weight: 300;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239b9ba4' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92, 173, 203, .25); outline: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; background: var(--surface-2); }
.check input { accent-color: var(--accent); margin: 0; }
.check:has(input:checked) { border-color: var(--accent); }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.error { color: var(--danger); font-size: 14px; }
details > summary { cursor: pointer; }

/* ---------- Login ---------- */
.auth { max-width: 380px; margin: 8vh auto 0; }
.auth .logo-lg { width: 44px; height: 46px; margin: 0 auto 16px; display: block; }
.auth h1 { text-align: center; margin-bottom: 4px; }
.auth p.lead { text-align: center; margin-bottom: 24px; }

/* ---------- Sheets ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out;
}
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--surface);
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  animation: up .2s ease-out;
}
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 20px; border-bottom: 1px solid var(--line); padding: 22px; }
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet textarea#msg { min-height: 210px; font-size: 15px; }
.close-x { appearance: none; border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; flex: none; }
.detail-photo { margin: -18px -16px 16px; aspect-ratio: 4 / 5; max-height: 62vh; background: linear-gradient(160deg, #24242b, #141418); position: relative; overflow: hidden; }
@media (min-width: 640px) { .detail-photo { margin: -22px -22px 18px; border-radius: 20px 20px 0 0; } }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 300; color: var(--faint); }
.detail-photo .close-x { position: absolute; top: 12px; right: 12px; background: rgba(11, 11, 13, .7); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { color: var(--accent-ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(68px + env(safe-area-inset-top)); transform: translate(-50%, -12px);
  background: var(--primary-bg); color: var(--primary-text); padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 400;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile .num { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.tile .lbl { font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; font-size: 12px; color: var(--muted); white-space: nowrap; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin: 0 4px 4px 0; border: 1px solid var(--line); }
.tag.ok { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.tag.off { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tag.solid { background: var(--primary-bg); color: var(--primary-text); border-color: transparent; }
.drop { display: block; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 16px; text-align: center; background: var(--surface); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.map-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .map-grid { grid-template-columns: repeat(3, 1fr); } }
.preview td { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.preview th.mapped { color: var(--accent-ink); }
.invite-box { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px; }
.invite-box .mono { word-break: break-all; }
.person { display: grid; gap: 6px; }
.tpl-body { white-space: pre-wrap; font-size: 14px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 8px; }
.ph { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { appearance: none; border: 1px dashed var(--line-strong); background: var(--surface-2); border-radius: 999px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.log { list-style: none; margin: 0; padding: 0 16px; }
.log li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log li:last-child { border-bottom: 0; }
.log time { flex: none; width: 104px; color: var(--muted); font-size: 13px; }
.log b { font-weight: 500; }
.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-row:last-of-type { border-bottom: 0; }
.big-code { font-size: 20px; font-weight: 500; letter-spacing: .02em; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--accent); }
.intro { margin-bottom: 12px; }

/* ---------- Toolbar ---------- */
.toolbar { display: grid; gap: 8px; margin-bottom: 12px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.filters select { min-height: 38px; padding: 7px 26px 7px 10px; font-size: 14px; background-position: right 9px center; }
@media (min-width: 900px) { .toolbar.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); } }
.list-meta { margin: 0 2px 10px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.load-more { margin-top: 16px; }

/* ---------- Stage strip ---------- */
.strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px; }
.strip::-webkit-scrollbar { display: none; }
.strip button {
  flex: none; appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap;
}
.strip button b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.strip button.on { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-text); }
.strip button.on b { color: var(--primary-text); }

/* ---------- Stage & status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 11.5px; letter-spacing: .01em; font-weight: 500; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); background: transparent;
}
.pill.s-contacted, .pill.st-draft, .pill.d-in_review { color: var(--text); }
.pill.s-replied, .pill.st-approved_internal { border-color: var(--accent); color: var(--accent-ink); }
.pill.s-call_booked { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.pill.s-registered { border-color: var(--text); color: var(--text); }
.pill.s-approved, .pill.st-approved_selekt, .pill.d-approved { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-text); }
.pill.s-live, .pill.d-live { background: var(--accent); border-color: var(--accent); color: #06161d; }
.pill.s-do_not_contact, .pill.d-rejected { border-color: rgba(255, 138, 128, .5); color: var(--danger); }
.pill.quiet { font-weight: 400; }

/* ---------- Creator rows (mobile list) ---------- */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--line); }
.row-btn {
  appearance: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px;
}
.row-btn:hover { background: var(--surface-2); }
.thumb {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, #24242b, #141418); color: var(--faint); font-size: 14px; flex: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .initials { font-size: inherit; }
.row-main { min-width: 0; display: grid; gap: 2px; }
.row-main .nm { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main .sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main .sub.accent { color: var(--accent-ink); }
.row-side { display: grid; justify-items: end; gap: 4px; }
.star { color: var(--accent); font-size: 12px; }
.due { color: var(--accent-ink); }
.due.over { color: var(--text); font-weight: 500; }

/* ---------- Kanban (desktop) ---------- */
.board-wrap { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 120px; display: flex; flex-direction: column; }
.col.over { border-color: var(--accent); background: var(--accent-soft); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.col-head b { font-weight: 500; }
.col-body { display: grid; gap: 8px; padding: 8px; }
.kcard {
  appearance: none; text-align: left; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 10px;
}
.kcard:hover { border-color: var(--line-strong); }
.kcard[draggable=true] { cursor: grab; }
.kcard .thumb { width: 32px; height: 32px; font-size: 11px; }
.kcard .nm { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard .sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-more { margin: 0 8px 8px; }

/* ---------- Today ---------- */
.target { display: grid; gap: 6px; }
.target .big { font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.target .big span { font-size: 15px; color: var(--muted); font-weight: 300; }
.next { display: grid; gap: 14px; }
.next-head { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.next-head .thumb { width: 72px; height: 72px; font-size: 22px; }
.next-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 3px; gap: 3px; }
.seg label { display: block; text-align: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--primary-bg); color: var(--primary-text); font-weight: 500; }
.triage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.triage .btn { padding: 8px 4px; font-size: 13px; min-width: 0; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.pair .btn { min-width: 0; }
.mini-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Card sheet ---------- */
.sheet-section { border-top: 1px solid var(--line); padding-top: 14px; }
.sheet-section > h3 { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; }
.timeline .when { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.note-item { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; }
.note-item p { white-space: pre-wrap; }
.note-item .meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; gap: 8px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; border: 0; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: #06161d; }

/* ---------- Scripts & content ---------- */
.note-fixed { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; display: grid; gap: 4px; }
.note-fixed b { font-weight: 500; }
.item { appearance: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; display: grid; gap: 4px; padding: 14px; }
.item:hover { background: var(--surface-2); }
.item .top-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.item .nm { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; }
.media-box { border-radius: var(--radius); overflow: hidden; background: #000; display: grid; place-items: center; max-height: 62vh; }
.media-box img, .media-box video { max-width: 100%; max-height: 62vh; display: block; }
.picker { position: relative; }
.picker-list { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); max-height: 240px; overflow: auto; }
.picker-list button { appearance: none; border: 0; background: none; width: 100%; text-align: left; padding: 9px 12px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.picker-list button:hover { background: var(--surface); }
.picker-list .thumb { width: 28px; height: 28px; font-size: 10px; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }

/* ---------- Results ---------- */
.figs { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.figs li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14.5px; }
.figs li + li { border-top: 1px solid var(--line); }
.figs .v { font-weight: 500; font-variant-numeric: tabular-nums; }
.figs li.sep { border-top: 1px solid var(--line-strong); }
.view-banner { padding: 8px 12px 0; background: var(--bg); }
.minw { min-width: 0; }
.blk { display: block; }
.link-btn.plain { color: inherit; font: inherit; text-align: left; }
.link-btn.left { text-align: left; }
.timeline li.tight { margin-top: -4px; }
.filters.two { grid-template-columns: 1fr 1fr; }
select.compact { min-height: 32px; padding: 4px 26px 4px 10px; font-size: 13px; width: auto; }
.pick-empty { padding: 9px 12px; }
a.tile { text-decoration: none; display: block; }
.pair .btn { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-head .thumb { width: 52px; height: 52px; font-size: 16px; }
.section-title select.compact { flex: none; }
.btn.open-draft { min-height: 50px; font-size: 15px; }

/* ---------- Performance ---------- */
.seg.three { grid-template-columns: repeat(3, 1fr); }
.rate-row { align-items: center; }
.rate { display: grid; justify-items: end; gap: 4px; min-width: 88px; }
.rate b { font-weight: 500; font-variant-numeric: tabular-nums; }
.meter { display: block; width: 80px; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }
.row-btn.ranked { grid-template-columns: 22px 44px minmax(0, 1fr) auto; }
.rank { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.pill.tag-double_down { background: var(--accent); border-color: var(--accent); color: #06161d; }
.pill.tag-watch { color: var(--text); }
.pill.tag-underperforming { border-color: rgba(255, 138, 128, .5); color: var(--danger); }
.checklist { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 6px 12px 10px; margin: 0; display: grid; gap: 2px; }
.checklist legend { padding: 0 4px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 14.5px; }
.check-row + .check-row { border-top: 1px solid var(--line); }
.check-row input { accent-color: var(--accent); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.checked { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.checked .yes { color: var(--text); }
.checked .no { color: var(--muted); }
.item .wrap, .item .sub.wrap { white-space: normal; }
.item .sub.accent { color: var(--accent-ink); }
.form-grid.nums { grid-template-columns: 1fr 1fr; }
