/* Snag Market v2 shell. Tokens follow the Phase 1 design. */
:root {
  --ground: #F6F6F7; --surface: #FFFFFF; --side: #0F1012; --side-2: #1A1C20; --side-active: #1F2126;
  --side-text: #B9BCC3; --side-meta: #9DA1A9; --side-border: #2A2D33;
  --text: #111214; --text-2: #3A3D43; --muted: #62666E; --faint: #8A8E96;
  --border: #E6E7EA; --border-strong: #D4D6DA; --row: #F0F1F3; --hover: #F7F7F8;
  --shadow: 0 1px 2px rgba(16, 17, 20, .04);
  --ring: 0 0 0 3px rgba(201, 0, 2, .12);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --brand: #C90002; --brand-hover: #9E0002; --brand-tint: #FCEBEB; --brand-icon: #FF5A5A;
  --green-bg: #E7F5EC; --green: #0D6B35; --amber-bg: #FDF3E1; --amber: #7A4A00;
  --blue-bg: #E8EEFD; --blue: #1E40AF; --red-bg: #FCEBEB; --red: #A30002;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text-2); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, strong, b { color: var(--text); }
.num { font-variant-numeric: tabular-nums; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
.btn:hover, .pill:hover, .tab:hover, .side-link:hover, .film-card:hover, .offer-row:hover, .inbox-item:hover, .switcher-item:hover, .usermenu-panel a:hover, .icon-btn:hover, .crumbs a:hover, .side-brand:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 232px; max-width: 100%; background: var(--side); color: var(--side-text); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: #fff; font-weight: 600; font-size: 15px; }
.side-brand img { height: 40px; width: auto; display: block; }
.side-brand:hover { color: #fff; }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: var(--side-text); font-size: 14px; }
.side-link:hover { color: #fff; background: var(--side-2); }
.side-link.is-active { background: var(--side-active); color: #fff; font-weight: 500; }
.side-link.is-active svg { color: var(--brand-icon); }

.switcher { position: relative; }
.switcher summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--side-2); border: 1px solid var(--side-border); border-radius: 10px; color: #fff; cursor: pointer; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switcher-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-meta { font-size: 12px; color: var(--side-meta); }
.switcher-menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--side-2); border: 1px solid var(--side-border); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.switcher-menu form { margin: 0; }
.switcher-item { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.switcher-item:hover, .switcher-item.is-current { background: var(--side-active); }
.switcher-new { color: var(--side-text); font-size: 13px; }

.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.agency-bar { background: #111214; color: #E6E7EA; font-size: 13px; padding: 8px 32px; }
.agency-bar strong { color: #fff; font-weight: 600; }
.top { height: 64px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumb-sep { color: #A3A7AE; margin: 0 6px; }
.crumb-current { color: var(--text); font-weight: 500; }
.top-right { display: flex; align-items: center; gap: 12px; }
.icon-btn { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-2); }
.icon-btn:hover { background: var(--ground); color: var(--text); }
.dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.usermenu { position: relative; }
.avatar { list-style: none; width: 36px; height: 36px; border-radius: 50%; background: #E8E9EC; color: var(--text-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.avatar::-webkit-details-marker { display: none; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(15,16,18,.08); padding: 6px; }
.usermenu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--row); margin-bottom: 4px; display: flex; flex-direction: column; font-size: 13px; }
.usermenu-head span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.usermenu-panel a, .usermenu-panel button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--ground); }
.usermenu-panel form { margin: 0; }

.content { padding: 32px 40px 64px; max-width: 1600px; width: 100%; margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 700px) { .content { padding: 20px 16px 40px; } .top { padding: 0 16px; } .agency-bar { padding: 8px 16px; } }

.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(30, 64, 175, .12); }
.flash-success { border-color: rgba(13, 107, 53, .14); } .flash-error { border-color: rgba(163, 0, 2, .14); } .flash-warning { border-color: rgba(122, 74, 0, .14); }
.flash-success { background: var(--green-bg); color: var(--green); }
.flash-error { background: var(--red-bg); color: var(--red); }
.flash-warning { background: var(--amber-bg); color: var(--amber); }

/* Building blocks */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.page-head h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--muted); max-width: 720px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab { padding: 10px 0; margin-bottom: -1px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; }
.tab .count { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #F1F2F4; color: var(--text-2); font-size: 11px; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-head > div:first-child { min-width: 0; flex: 1; }
.card-head > .btn, .card-head > a.btn, .card-head > form, .card-head > div:last-child:not(:first-child) { flex: none; }
.card-head + .todo, .card-head + .table-wrap .table tr:first-child td, .card-head + .thread .thread-item:first-child { border-top: 0; }
.card-head h2, .card h2 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -0.005em; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; max-width: 640px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text); min-width: 0; }
.field input, .field select, .field textarea, .filter-bar select, .filter-bar input[type=search], select.input-sm, .inbox-compose textarea {
  width: 100%; min-height: 40px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 400;
  background-color: #fff; color: var(--text); transition: border-color .12s, box-shadow .12s; }
.field input::placeholder, .field textarea::placeholder, .filter-bar input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar select:focus, .filter-bar input:focus, select.input-sm:focus, .inbox-compose textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
select, .field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2362666E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field input[type=file] { padding: 5px 6px; min-height: 40px; color: var(--muted); font-size: 13px; }
input[type=file]::file-selector-button { height: 28px; margin-right: 10px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--hover); }
.field input[type=date] { font-variant-numeric: tabular-nums; }
.field textarea { resize: vertical; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--ground); color: var(--muted); }
.field .help { font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.45; }
label .help { color: var(--faint); }
.field .err { font-weight: 400; color: var(--red); font-size: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form.labeled { align-items: flex-start; }
.inline-form.labeled > .btn, .inline-form.labeled > button { margin-top: 25px; }
.inline-form .field { flex: 1 1 200px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(201, 0, 2, .18); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--brand-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow); }
.btn-secondary:hover { background: var(--hover); color: var(--text); border-color: #C5C8CD; }
.btn-danger { background: #fff; color: var(--red); border-color: var(--border-strong); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-ghost.danger:hover { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); color: var(--red); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; padding: 10px 12px; white-space: nowrap; background: #FAFAFB; border-bottom: 1px solid var(--border); }
.table thead + tbody tr:first-child td { border-top: 0; }
.table th.actions, .table th:has(> .muted:only-child) { text-align: right; }
.table tbody tr:hover td { background: #FCFCFD; }
.table td strong, .table td a strong { font-weight: 500; }
.table a:not(.btn) { color: var(--text); }
.table a:not(.btn):hover { color: var(--brand); }
.table .mono, .table .num { white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table td { padding: 14px 12px; border-top: 1px solid var(--row); vertical-align: middle; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline-flex; gap: 6px; margin: 0; }
.table-wrap { overflow-x: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1; background: #F1F2F4; color: var(--text-2); white-space: nowrap; }
.chip-green { background: var(--green-bg); color: var(--green); }
.chip-amber { background: var(--amber-bg); color: var(--amber); }
.chip-blue { background: var(--blue-bg); color: var(--blue); }
.chip-red { background: var(--red-bg); color: var(--red); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.code, code { font-family: var(--mono); font-size: .92em; }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.empty a { font-weight: 500; }
.person { display: flex; flex-direction: column; }
.person { gap: 2px; min-width: 0; }
.person span { color: var(--muted); font-size: 13px; }
.copy { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--ground); font-family: var(--mono); font-size: 13px; }

/* Forms: choices */
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--text); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.choice { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--text-2); cursor: pointer; }
.choice input { width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.form-card { display: flex; flex-direction: column; gap: 20px; }
.content > form.card.form-card, .content > .card.form-card, .form-narrow { max-width: 760px; width: 100%; }
.form-card > h2 { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--row); }
.form-card > h2:first-child, .form-card > .err-box + h2, .form-card > input[type=hidden] + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.form-card .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
.err-box { padding: 12px 14px; border-radius: 8px; background: var(--red-bg); color: var(--red); font-size: 14px; border: 1px solid rgba(163, 0, 2, .14); }

/* Layout */
.with-side { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.with-side > .primary { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.with-side > .secondary { flex: 1 1 320px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1000px) { .with-side > .secondary { max-width: none; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.stat-value { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.stat-note { font-size: 12px; color: var(--faint); }
.kv { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--border-strong); background: #fff; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; }
.pill:hover { color: var(--text); background: var(--ground); }
.pill.is-active { background: #111214; border-color: #111214; color: #fff; }
.pill .count { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* Film header */
.film-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.poster { width: 112px; height: 164px; border-radius: 10px; box-shadow: 0 4px 14px rgba(16,17,20,.12); background: #1F2126; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 22px; overflow: hidden; flex: none; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.film-head-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.film-head-body h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.film-meta { color: var(--muted); }
.film-figures { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 4px; }
.film-figures { gap: 32px; }
.film-figures strong { font-size: 20px; font-weight: 600; display: block; font-variant-numeric: tabular-nums; }
.film-figures span { font-size: 12px; color: var(--muted); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Snags */
.snag-name { display: flex; align-items: center; gap: 12px; }
.thumb { width: 56px; height: 36px; border-radius: 6px; background: #E8E9EC; flex: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.timeline { position: relative; height: 28px; background: #F1F2F4; border-radius: 6px; overflow: hidden; }
.timeline span { position: absolute; top: 4px; bottom: 4px; background: var(--brand); border-radius: 3px; }
.timeline-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 4px; }
.problems { margin: 0; padding-left: 18px; color: var(--amber); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.todo { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--row); }
.todo strong { font-weight: 500; }
.todo:first-child { border-top: 0; }
.todo-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
details.inline-edit > summary { list-style: none; cursor: pointer; color: var(--text); font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
details.inline-edit > summary:hover { text-decoration-color: currentColor; }
details.inline-edit > summary::-webkit-details-marker { display: none; }
details.inline-edit[open] > summary { margin-bottom: 12px; }
.seg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.seg { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; background: #fff; }
.seg:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.seg img, .seg .noimg { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #E8E9EC; display: block; }
.seg-body { padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
.chip-dark { background: #111214; color: #fff; }
.with-side .secondary .choices-grid { grid-template-columns: 1fr 1fr; }
.choice.pill { padding: 0 12px 0 10px; }
.choice.pill { align-items: center; }
.choice.pill input { margin: 0; }
.choice.pill:has(input:checked) { border-color: #9EA2A9; background: #F4F4F5; color: var(--text); }
.btn:disabled { opacity: .6; cursor: progress; }
.progress { height: 10px; border-radius: 6px; background: #F1F2F4; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); width: 0; transition: width .4s ease; }

/* ── Licensing ─────────────────────────────────────────────────────────── */
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.film-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.film-card:hover { box-shadow: 0 6px 20px rgba(16,17,20,.08); transform: translateY(-1px); }
.film-card:hover { border-color: var(--border-strong); }
.film-card-art { aspect-ratio: 16 / 9; height: auto; background: #1F2126 center/cover no-repeat; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px; color: #E6E7EA; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.film-card-art .chip { font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.film-card-art > span:last-child { white-space: nowrap; }
.film-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.film-card-body .title { font-size: 16px; font-weight: 600; }
.film-card-body .sub { font-size: 13px; color: var(--text-2); }
.film-card-figs { display: flex; gap: 16px; font-size: 13px; }
.film-card-figs strong { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.film-card-note { font-size: 12px; color: var(--muted, #6B7079); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar select, .filter-bar input[type=search] { width: auto; height: 36px; min-height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.filter-bar input[type=search] { min-width: 240px; }
.filter-sep { width: 1px; height: 24px; background: var(--border-strong); }
.disclose { border-color: #F2C6C6; }
.disclose-item { display: flex; gap: 12px; padding: 12px; background: #FCEBEB; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.disclose-item .note { color: #4A1A1A; }
.thread { display: flex; flex-direction: column; }
.thread-item { display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--row); }
.thread-item:first-child { border-top: none; }
.thread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); margin-top: 6px; }
.thread-item.is-current .thread-dot { background: var(--brand); }
.thread-item .who { font-size: 13px; color: var(--text-2); }
.terms-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.terms-big { margin: 0; }
.terms-big dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.terms-big dd { margin: 4px 0 0; font-weight: 600; font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.terms-big dd.mono { font-family: var(--sans); }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-pair > * { min-width: 0; }
.date-pair input, .date-pair select { width: 100%; min-width: 0; box-sizing: border-box; }
.date-pair.money { grid-template-columns: 1fr 96px; }
.chip-light { background: #fff; color: #111214; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.price-input { display: inline-flex; align-items: center; gap: 4px; height: 34px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 8px; background: #fff; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.price-input:focus-within { border-color: var(--text); }
.price-input input { border: none; outline: none; width: 84px; font: inherit; color: var(--text); background: transparent; padding: 0; }
.price-input:has(input:disabled) { background: var(--ground); }
.rate-table td, .rate-table th { white-space: nowrap; }
select.input-sm { width: auto; height: 32px; min-height: 32px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.rate-table td, .rate-table tbody th { padding-top: 6px; padding-bottom: 6px; }

/* ── Demand & campaigns ────────────────────────────────────────────────── */
.offer-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--row); color: var(--text); }
.offer-row:first-child { border-top: none; }
.offer-row:hover { background: var(--ground); }
.offer-row.is-current { background: #FFF6F6; box-shadow: inset 3px 0 0 var(--brand); }
.offers-split .secondary { flex-basis: 420px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.checks li { padding-left: 22px; position: relative; }
.checks li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.checks li.ok::before { content: "✓"; color: var(--green); }
.checks li.bad::before { content: "✕"; color: var(--red); }
.steps { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.steps li { flex: 1 1 150px; display: flex; gap: 10px; align-items: flex-start; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; background: #F1F2F4; color: var(--muted); }
.steps li.done .step-dot { background: var(--brand); color: #fff; }
.steps li.current .step-dot { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.steps .step-label { font-size: 14px; font-weight: 500; }
.steps li.current .step-label { font-weight: 600; }
.steps .step-sub { font-size: 12px; color: var(--muted); }
.creative-preview { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 10px; background: #111214; color: #fff; }
.creative-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #2A2D33; }
.creative-preview .cta { margin-left: auto; background: var(--brand); color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ── Messages ─────────────────────────────────────────────────────────── */
.inbox { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; min-height: 560px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 70vh; }
.inbox-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--row); color: var(--text); }
.inbox-item:hover { background: var(--ground); }
.inbox-item.is-current { background: var(--hover); box-shadow: inset 2px 0 0 var(--text); }
.inbox-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.inbox-top .muted { font-size: 12px; }
.inbox-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.inbox-preview .dot-unread { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.dot-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.inbox-section { padding: 14px 16px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.inbox .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; }
.inbox-thread { display: flex; flex-direction: column; min-width: 0; }
.inbox-head { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.inbox-msgs { flex: 1; overflow-y: auto; max-height: 56vh; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 72%; display: flex; flex-direction: column; gap: 4px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble { padding: 10px 12px; border-radius: 12px; background: #F1F2F4; font-size: 14px; line-height: 1.45; }
.msg.mine .msg-bubble { background: #111214; color: #fff; }
.msg.mine .msg-bubble a { color: #fff; }
.msg-meta { font-size: 11px; color: var(--muted); }
.inbox-compose { border-top: 1px solid var(--border); padding: 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.inbox-compose textarea { resize: vertical; }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } .inbox-list { max-height: 260px; border-right: none; border-bottom: 1px solid var(--border); } }

/* ── Snag Connect ─────────────────────────────────────────────────────── */
.code-block { margin: 0; padding: 14px 16px; border-radius: 10px; background: #0B0B0D; color: #D4D4D8; font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.code-inline { font-family: var(--mono); font-size: 13px; background: #fff; border: 1px solid var(--border-strong); border-radius: 6px; padding: 6px 8px; word-break: break-all; }

/* ---- polish additions ---- */
.side-note { font-size: 13px; color: var(--muted); }
.side-note span { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.side-note:hover { color: var(--muted); text-decoration: none; } .side-note:hover span { text-decoration-color: currentColor; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.danger-zone h2 { font-size: 14px; } .danger-zone p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.table td.nowrap, .table .cat { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.table td.mono, .table .mono { font-size: 13px; color: var(--text-2); }
.choice.pill input { accent-color: var(--text); }
.label-cat { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.label-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.label-cat-head strong { font-size: 14px; font-weight: 600; }
.label-group { margin-top: 14px; }
.label-group-name { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.kv dd.mono, .kv .mono { font-family: var(--sans); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.pager-links { display: inline-flex; gap: 8px; }
.btn[aria-disabled=true] { opacity: .45; pointer-events: none; box-shadow: none; }
.toolbar { display: flex; flex-direction: column; gap: 16px; }
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-top: 1px solid var(--row); }
.notif:first-child { border-top: 0; }
.notif-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; flex: none; background: transparent; }
.notif.is-unread .notif-dot { background: var(--brand); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 500; color: var(--text); }
.notif:not(.is-unread) .notif-title { font-weight: 400; color: var(--text-2); }
.notif-title a { color: inherit; }
.notif-body p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.notif-meta { display: flex; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--faint); }
.notif .btn { flex: none; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.switch-row strong { display: block; font-weight: 500; font-size: 14px; }
.switch-row span { display: block; font-size: 13px; color: var(--muted); }
.switch-row input[type=checkbox], .table td.center input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--text); }
.switch-row input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: 10px; background: #D4D6DA; position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch-row input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch-row input[type=checkbox]:checked { background: var(--text); }
.switch-row input[type=checkbox]:checked::after { transform: translateX(16px); }
.switch-row input[type=checkbox]:focus-visible { outline: none; box-shadow: var(--ring); }
.table .center { text-align: center; }
.avatar-row { display: flex; align-items: center; gap: 20px; }
.avatar-row .field { flex: 1; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #E8E9EC; color: var(--text-2); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex: none; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.field input:disabled { background: var(--ground); color: var(--muted); }
.filter-bar select { min-width: 150px; }
.filter-bar input[type=search] { min-width: 220px; }
.table tbody th { background: none; border-bottom: 0; border-top: 1px solid var(--row); color: var(--text); font-size: 14px; white-space: normal; }
.table thead + tbody tr:first-child th { border-top: 0; }
.th-sub { display: block; font-weight: 400; color: var(--faint); margin-top: 2px; white-space: normal; max-width: 220px; }
.rate-table thead th { vertical-align: bottom; }
.field select, .filter-bar select, select.input-sm { padding-right: 34px; background-position: right 10px center; }
.rate-table { table-layout: fixed; }
.rate-table thead th:first-child { width: 220px; }

/* ---- auth pages ---- */
.auth-body { background: #fff; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; padding: 32px 48px; }
.auth-logo { display: inline-flex; align-self: flex-start; }
.auth-logo img { display: block; height: 36px; width: auto; }
.auth-form { width: 100%; max-width: 400px; margin: auto; padding: 48px 0; display: flex; flex-direction: column; gap: 20px; }
.auth-form h1, .auth-card h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.auth-lede { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.auth-fields .field input { min-height: 44px; }
.auth-fields .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 13px; font-weight: 500; color: var(--muted); }
.label-row a:hover { color: var(--text); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.pw-wrap button:hover { background: var(--hover); color: var(--text); }
.btn-block { width: 100%; height: 44px; font-size: 15px; }
.btn-google img { width: 18px; height: 18px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth-switch a { font-weight: 500; }
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.auth-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.auth-foot { font-size: 12px; color: var(--faint); }
.auth-foot a { color: var(--muted); }
.auth-aside { background: #0F1013; color: #E6E7EA; padding: 48px; display: flex; align-items: center; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(201, 0, 2, .22), transparent); pointer-events: none; }
.auth-aside-inner { position: relative; width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.auth-kicker { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #8A8E96; }
.auth-aside h2 { margin: -12px 0 0; color: #fff; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; max-width: 440px; }
.auth-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #2A2D35, #15171C 60%, #1E1214); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.auth-scene span { position: absolute; display: block; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.auth-scene .s1 { left: 6%; bottom: 0; width: 26%; height: 62%; }
.auth-scene .s2 { left: 36%; bottom: 0; width: 18%; height: 40%; background: rgba(255, 255, 255, .04); }
.auth-scene .s3 { right: 8%; top: 12%; width: 22%; height: 30%; background: rgba(255, 210, 160, .08); }
.auth-box { position: absolute; left: 52%; top: 34%; width: 20%; height: 30%; border: 2px solid var(--brand); border-radius: 6px; box-shadow: 0 0 0 4px rgba(201, 0, 2, .15); }
.auth-box span { position: absolute; top: -22px; left: -2px; padding: 2px 6px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 600; }
.auth-overlay { position: absolute; left: 4%; right: 4%; bottom: 6%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(15, 16, 19, .82); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .08); }
.auth-overlay strong { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.auth-overlay small { display: block; color: #A3A7AE; font-size: 11px; }
.auth-overlay b { padding: 6px 10px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.auth-timeline { position: relative; height: 4px; margin-top: -10px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.auth-timeline i { position: absolute; top: -3px; width: 3px; height: 10px; border-radius: 2px; background: var(--brand); }
.auth-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .08); }
.auth-roles li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.auth-roles strong { color: #fff; font-weight: 500; width: 96px; flex: none; }
.auth-roles span { color: #A3A7AE; }
.auth-center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 40px 16px; background: var(--ground); }
.auth-center .auth-logo { align-self: center; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; display: flex; flex-direction: column; gap: 20px; margin: auto 0; }
.auth-card.wide { max-width: 720px; }
.auth-card.doc { max-width: 760px; margin: 0; }
.auth-card .auth-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--ground); color: var(--text); }
.auth-card .auth-icon.red { background: var(--red-bg); color: var(--red); }
.auth-card .auth-icon.green { background: var(--green-bg); color: var(--green); }
.auth-card .auth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-note { margin: 0; font-size: 13px; color: var(--muted); }
.otp { display: flex; gap: 8px; align-items: center; }
.otp input { width: 48px; height: 56px; min-height: 0; padding: 0; text-align: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); background: #fff; }
.otp input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.otp.has-error input { border-color: var(--red); }
.otp .dash { width: 10px; height: 2px; background: var(--border-strong); margin: 0 2px; }
.org-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.org-type { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 44px; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer; font-weight: 400; }
.org-type input { position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.org-type strong { font-size: 14px; font-weight: 600; color: var(--text); }
.org-type span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.org-type:hover { border-color: #B9BCC2; }
.org-type:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.org-type:has(input:focus-visible) { box-shadow: var(--ring); }
.doc-body h2 { margin: 28px 0 8px; font-size: 16px; font-weight: 600; }
.doc-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 24px 20px; }
  .org-types { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
  .auth-fields .row2 { grid-template-columns: 1fr; }
  .otp input { width: 42px; height: 50px; }
}
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--brand); font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { color: var(--faint); cursor: default; text-decoration: none; }
.btn:disabled, .btn[disabled] { background: #E6E7EA; border-color: #E6E7EA; color: var(--faint); box-shadow: none; cursor: not-allowed; }
.btn-secondary:disabled { background: #fff; border-color: var(--border); }
.auth-aside { position: sticky; top: 0; height: 100vh; }
.btn.is-busy:disabled { background: var(--brand); border-color: transparent; color: #fff; opacity: .7; cursor: progress; }
.switcher-static { padding: 10px 12px; background: var(--side-2); border: 1px solid var(--side-border); border-radius: 10px; color: #fff; }
[hidden] { display: none !important; }
.upload-progress { display: flex; flex-direction: column; gap: 6px; }

/* ── Analytics ─────────────────────────────────────────── */
.stat-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
.stat-delta.up { color: var(--green); }
.stat-delta.down { color: var(--red); }
.stat-delta.flat { color: var(--faint); }
.stat-delta svg { width: 10px; height: 10px; }
.range-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.range-bar .note { color: var(--faint); font-size: 12px; }
.charts-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.chart { position: relative; padding: 8px 12px 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--row); stroke-width: 1; }
.chart .grid line.base { stroke: var(--border-strong); }
.chart .axis text { fill: var(--faint); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .series { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .xhair { stroke: var(--border-strong); stroke-width: 1; visibility: hidden; }
.chart .dot { fill: var(--brand); stroke: #fff; stroke-width: 2; visibility: hidden; }
.chart.hover .xhair, .chart.hover .dot { visibility: visible; }
.chart-tip { position: absolute; pointer-events: none; background: #111214; color: #fff; border-radius: 8px; padding: 6px 9px; font-size: 12px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .1s; z-index: 2; }
.chart-tip strong { color: #fff; font-weight: 600; display: block; font-variant-numeric: tabular-nums; }
.chart-tip span { color: #B9BCC3; }
.chart.hover .chart-tip { opacity: 1; }
.chart-empty { padding: 48px 20px; text-align: center; color: var(--faint); font-size: 13px; }
.share { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.share .bar { flex: 1; height: 6px; background: var(--row); border-radius: 3px; overflow: hidden; }
.share .bar span { display: block; height: 100%; background: var(--text-2); border-radius: 3px; }
.share .val { min-width: 54px; text-align: right; font-variant-numeric: tabular-nums; }
.impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; }
.impact > div { padding: 16px 20px; border-top: 1px solid var(--row); }
.impact .k { font-size: 12px; color: var(--muted); }
.impact .v { font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 2px; }
.impact .v small { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 6px; }
.heat { padding: 20px; }
.heat-track { position: relative; height: 56px; background: var(--ground); border-radius: 6px; border: 1px solid var(--border); }
.heat-block { position: absolute; top: 6px; bottom: 6px; border-radius: 4px; box-shadow: 0 0 0 2px var(--surface); cursor: default; }
.heat-block:hover, .heat-block:focus-visible { outline: 2px solid #111214; outline-offset: 1px; z-index: 1; }
.heat-axis { position: relative; height: 22px; margin-top: 6px; }
.heat-axis span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.heat-axis span:first-child { transform: none; }
.heat-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.heat-legend .ramp { display: inline-flex; gap: 2px; }
.heat-legend .ramp i { width: 18px; height: 10px; border-radius: 2px; display: block; }
