﻿:root {
  color-scheme: dark;
  --bg: #0e1113;
  --panel: #191e21;
  --panel-2: #20262a;
  --panel-3: #121618;
  --surface: #171c1f;
  --surface-raised: #20262b;
  --line: #323941;
  --line-soft: #242b31;
  --text: #f6f8fa;
  --muted: #aeb7c0;
  --dim: #7f8993;
  --blue: #1e88ff;
  --blue-2: #005dc8;
  --green: #41d475;
  --danger: #f45b69;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.30);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.20);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
* { scrollbar-color: #46515a #15191c; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #15191c; }
*::-webkit-scrollbar-thumb { background: #46515a; border: 2px solid #15191c; border-radius: 999px; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #12171a 0, var(--bg) 280px);
  color: var(--text);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, select, input[type="text"], summary { transition: border-color .14s ease, background-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease; }
button:focus-visible, select:focus-visible, input[type="text"]:focus-visible, summary:focus-visible, .tab:focus-visible { outline: 2px solid rgba(30,136,255,.85); outline-offset: 2px; }
button:active:not(:disabled) { transform: translateY(1px); }

.landing-page[hidden], .app-shell[hidden], .login-modal[hidden] { display: none; }

.landing-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(circle at 72% 18%, rgba(30,136,255,.16), transparent 34%), linear-gradient(180deg, #151a1d 0, #0c0f11 100%); }
.landing-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px clamp(20px, 4vw, 72px); border-bottom: 1px solid rgba(255,255,255,.06); }
.landing-nav-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.landing-hero { width: min(1280px, calc(100vw - 40px)); margin: 0 auto; display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); gap: clamp(28px, 5vw, 76px); align-items: center; padding: clamp(42px, 8vw, 104px) 0; }
.landing-copy { display: grid; gap: 18px; align-content: center; }
.landing-kicker { color: #9dd0ff; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.landing-copy h1 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .96; letter-spacing: 0; }
.landing-copy h1.hero-cash-title { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; max-width: 720px; }
.landing-copy p { font-size: 18px; max-width: 620px; margin: 0; }
.landing-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.landing-actions .secondary.large { min-width: 170px; min-height: 72px; font-size: 18px; color: #d8ecff; border-color: rgba(30,136,255,.45); background: rgba(30,136,255,.08); }
.landing-actions .secondary.large:hover { background: rgba(30,136,255,.14); border-color: var(--blue); }
.text-action { border: 0; background: transparent; color: #d8ecff; padding: 10px 0; font-weight: 750; min-height: auto; }
.text-action:hover { color: white; background: transparent; }
.landing-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.landing-stats span, .landing-plans article { border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.035); padding: 14px; }
.landing-stats strong, .landing-stats small { display: block; }
.landing-stats strong { font-size: 20px; color: white; margin-bottom: 4px; }
.landing-stats small { color: var(--muted); }
.landing-preview { border: 1px solid rgba(255,255,255,.10); border-radius: 8px; background: linear-gradient(180deg, rgba(32,38,42,.96), rgba(16,20,22,.96)); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 18px; }
.landing-preview-head, .landing-preview-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 750; }
.landing-preview-head strong { color: #d8ecff; }
.landing-preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 16px; align-items: center; }
.landing-preview-grid > div { display: grid; gap: 9px; text-align: center; font-weight: 800; }
.landing-preview-grid b { color: var(--blue); text-align: center; font-size: 30px; }
.mock-card { min-height: 300px; border-radius: 8px; border: 1px solid var(--line); background: #080a0b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); display: grid; place-items: center; overflow: hidden; padding: 20px; }
.mock-card-art { width: min(76%, 160px); aspect-ratio: 2.5 / 3.5; border: 5px solid #f1efe8; border-radius: 7px; background: linear-gradient(180deg, #f6f2e5 0 14%, #cbe6ff 14% 58%, #f6f2e5 58% 100%); box-shadow: 0 18px 34px rgba(0,0,0,.42); display: grid; grid-template-rows: 1fr auto auto; gap: 5px; padding: 8px; color: #0d1720; text-align: left; transform: rotate(-3deg); }
.mock-card-art i { border-radius: 6px; background: radial-gradient(circle at 68% 22%, #fff 0 8%, transparent 9%), linear-gradient(135deg, #1e88ff, #48d27d 48%, #ffca58); display: block; }
.mock-card-art strong { font-size: 17px; line-height: 1; color: #0b1014; }
.mock-card-art small { color: #385066; font-size: 11px; }
.back-art { background: linear-gradient(180deg, #f6f2e5 0 16%, #dfe6eb 16% 100%); transform: rotate(2deg); }
.back-art i { background: repeating-linear-gradient(180deg, #2d3b48 0 3px, transparent 3px 15px), linear-gradient(90deg, transparent 0 44%, #ff5f6d 44% 56%, transparent 56% 100%); }
.landing-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.landing-dashboard div { border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.035); padding: 10px 12px; display: grid; gap: 2px; }
.landing-dashboard span, .landing-dashboard small { color: var(--muted); font-size: 12px; }
.landing-dashboard strong { color: #50dd7a; font-size: 22px; line-height: 1.1; }
.landing-preview-row span { border: 1px solid var(--line-soft); border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.035); }
.landing-plans { width: min(1280px, calc(100vw - 40px)); margin: 0 auto 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.landing-plans strong, .landing-plans span { display: block; }
.landing-plans strong { margin-bottom: 6px; font-size: 18px; }
.landing-plans span { color: var(--muted); }

.login-modal { position: fixed; inset: 0; z-index: 90; background: rgba(4, 8, 11, .78); display: grid; place-items: center; padding: 22px; }
.login-dialog { width: min(440px, 100%); border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #20262a, #15191b); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
.login-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.login-head h2 { margin-bottom: 4px; }
.login-head p { margin-bottom: 0; }
.login-head button { width: 38px; height: 38px; padding: 0; border-radius: 6px; border: 1px solid var(--line); color: var(--text); background: #252b30; font-size: 22px; line-height: 1; }
.login-dialog label { color: var(--muted); display: grid; gap: 7px; font-weight: 750; }
.signup-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.signup-fields label { min-width: 0; }
.signup-fields input { width: 100%; min-width: 0; }
.signup-fields[hidden], .confirm-password-field[hidden] { display: none; }
.turnstile-panel { border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.025); padding: 10px; display: grid; gap: 8px; justify-items: start; min-width: 0; overflow: hidden; }
.turnstile-panel small { font-size: 12px; line-height: 1.35; }
.login-status { min-height: 20px; margin: -4px 0 0; color: #ffd28a; font-size: 13px; }
.login-dialog small { color: var(--muted); }

.window-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #141719;
  border-bottom: 1px solid #23282c;
}

.brand-lockup { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: block; flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(30,136,255,.22)); }
.app-account { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.app-account button { min-height: 34px; padding: 6px 11px; }
.window-actions { display: flex; gap: 18px; align-items: center; }
.window-actions span { width: 14px; height: 14px; border: 1px solid #c5cbd1; display: block; border-radius: 2px; opacity: .8; }
.window-actions span:first-child { height: 1px; border: 0; background: #c5cbd1; }
.window-actions span:last-child { border: 0; position: relative; }
.window-actions span:last-child::before, .window-actions span:last-child::after { content: ""; position: absolute; inset: 6px 0 auto 0; height: 1px; background: #c5cbd1; transform: rotate(45deg); }
.window-actions span:last-child::after { transform: rotate(-45deg); }

.app-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); min-height: calc(100vh - 44px); }
.sidebar { position: sticky; top: 0; align-self: start; box-sizing: border-box; height: 100vh; overflow-y: auto; background: linear-gradient(180deg, #181d20 0%, #111517 100%); border-right: 1px solid var(--line-soft); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; }
.logo-panel { text-align: center; padding: 14px 12px 8px; }
.logo-cards { height: 78px; position: relative; width: 98px; margin: 0 auto 8px; }
.logo-cards span { position: absolute; width: 50px; height: 66px; border: 3px solid var(--blue); border-radius: 7px; background: linear-gradient(145deg, rgba(30,136,255,.2), transparent); }
.logo-cards span:first-child { left: 14px; top: 8px; transform: rotate(-18deg); }
.logo-cards span:last-child { right: 11px; top: 15px; transform: rotate(18deg); }
.logo-panel h1 { margin: 0 0 8px; font-size: 27px; letter-spacing: 0; }
.logo-panel p { margin: 0; color: var(--muted); line-height: 1.45; }

.workflow-nav { display: grid; gap: 6px; }
.nav-item { color: #dfe7ee; text-decoration: none; min-height: 48px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; gap: 14px; padding: 0 14px; }
.nav-item span { color: #b8c6d4; width: 24px; text-align: center; font-size: 20px; }
.nav-item.active { background: linear-gradient(90deg, rgba(30,136,255,.25), rgba(30,136,255,.09)); border-color: rgba(30,136,255,.45); box-shadow: inset 3px 0 0 var(--blue); }
.nav-item.active span { color: #d8ecff; }
.nav-item:not(.active):hover { background: #20262a; border-color: var(--line-soft); }

.how-card, .credit-card, .stats-card { border-top: 1px solid var(--line); padding: 20px 18px 0; }
.how-card h2, .credit-card p, .stats-card p { margin: 0 0 12px; font-size: 16px; }
.how-card ol { margin: 0; padding-left: 20px; color: #e5e9ed; line-height: 1.55; }
.how-card li { margin: 0 0 10px; }
.stats-card { border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px; background: rgba(255,255,255,.025); box-shadow: var(--shadow-soft); }
.stats-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.stats-head p { margin: 0; }
.stats-head strong { color: #d8ecff; font-size: 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.stats-grid span { border: 1px solid var(--line-soft); border-radius: 7px; background: rgba(255,255,255,.025); padding: 10px; min-width: 0; }
.stats-grid b, .stats-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-grid b { font-size: 18px; color: var(--green); margin-bottom: 3px; }
.stats-grid small { color: var(--muted); font-size: 12px; }
.top-sessions { border-top: 1px solid var(--line-soft); margin-top: 14px; padding-top: 12px; }
.top-sessions > strong { display: block; margin-bottom: 8px; font-size: 14px; }
.top-sessions ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.top-sessions li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; border: 1px solid var(--line-soft); border-radius: 6px; padding: 7px 8px; background: rgba(255,255,255,.018); }
.top-sessions b { color: var(--green); font-size: 12px; }
.stats-card button { width: 100%; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 9px; margin-top: 12px; }
.stats-card button:hover { background: #20262a; color: var(--text); }
.credit-card { margin-top: auto; border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px; background: rgba(255,255,255,.025); box-shadow: var(--shadow-soft); }
.credit-card strong { font-size: 24px; display: block; margin-bottom: 10px; }
.meter { height: 7px; border-radius: 999px; background: #30373d; overflow: hidden; margin-bottom: 14px; }
.meter span { height: 100%; width: 0%; display: block; background: linear-gradient(90deg, #48d977, var(--green)); }
.credit-card.over-limit { border-color: rgba(244, 91, 105, .65); background: rgba(244, 91, 105, .08); }
.credit-card.over-limit p, .credit-card.over-limit strong { color: #ff7b89; }
.credit-card.over-limit .meter span { background: linear-gradient(90deg, #ff5f6f, #cf2638); }
.credit-card small { display: block; color: var(--muted); margin: -2px 0 12px; line-height: 1.35; }
.credit-card button { width: 100%; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 9px; margin-top: 8px; }
#viewPlansButton { color: #d8ecff; border-color: rgba(30,136,255,.55); background: rgba(30,136,255,.08); }

.main-area { padding: 18px; display: grid; gap: 16px; align-content: start; }
.panel { background: linear-gradient(180deg, rgba(25,30,33,.96), rgba(18,22,24,.98)); border: 1px solid var(--line-soft); border-radius: 8px; box-shadow: var(--shadow); }
.import-panel, .library-panel, .preview-panel, .export-panel, .dashboard-panel, .inline-capture-panel { padding: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; min-width: 0; }
.section-heading > div:first-child { min-width: 0; }
.section-heading.compact { margin-bottom: 22px; }
.section-heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hide-section-button { min-height: 38px; padding: 8px 13px !important; color: var(--muted) !important; }
.hidden-sections-bar { border: 1px solid rgba(30,136,255,.32); border-radius: 8px; background: rgba(30,136,255,.07); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: var(--shadow-soft); }
.hidden-sections-bar[hidden] { display: none; }
.hidden-sections-bar span { color: #d8ecff; font-weight: 750; }
.hidden-sections-bar div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hidden-sections-bar button { min-height: 36px; padding: 7px 12px; }
h2, h3, p { margin-top: 0; }
h2 { font-size: 21px; margin-bottom: 6px; letter-spacing: 0; }
h3 { font-size: 15px; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.45; }
.import-actions, .tool-buttons, .slot-actions, .pair-controls, .export-submit, .replacement-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.primary, .secondary, .tool-buttons button, .slot-actions button, .pair-controls button, .export-submit button, .replacement-head button { border-radius: 7px; border: 1px solid var(--line); color: var(--text); background: var(--surface-raised); padding: 11px 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.primary { background: linear-gradient(180deg, #2a95ff, var(--blue-2)); border-color: #2281e7; font-weight: 750; box-shadow: 0 8px 18px rgba(30,136,255,.18), inset 0 1px 0 rgba(255,255,255,.16); }
.primary:hover:not(:disabled) { background: linear-gradient(180deg, #3da0ff, #0967d6); }
.secondary:hover, .tool-buttons button:hover, .slot-actions button:hover, .pair-controls button:hover, .replacement-head button:hover { background: #303840; border-color: #4b5660; }
.large { min-width: 190px; min-height: 72px; font-size: 18px; }

.drop-zone { min-height: 102px; border: 1px dashed #59626b; border-radius: 8px; display: flex; align-items: center; gap: 18px; padding: 18px; background: rgba(255,255,255,.025); }
.drop-zone.dragging { border-color: var(--blue); background: rgba(30,136,255,.12); }
.drop-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(180deg, #263039, #1b2228); color: #d8ecff; font-size: 31px; border: 1px solid var(--line-soft); }
.drop-zone p { margin-bottom: 0; }
.capture-strip { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(30,136,255,.07); padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.capture-strip p { margin: 4px 0 0; }
.capture-strip button { white-space: nowrap; }
.inline-capture-host[hidden] { display: none; }
.inline-capture-host { display: grid; gap: 12px; }
.inline-capture-host .replacement-dialog { width: 100%; max-height: none; overflow: visible; box-shadow: none; background: rgba(255,255,255,.025); }
.inline-capture-host .replacement-head { border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.inline-capture-host .replacement-actions { display: none; }

.dashboard-panel .section-heading strong { color: #d8ecff; border: 1px solid rgba(30,136,255,.45); border-radius: 6px; background: rgba(30,136,255,.08); padding: 8px 11px; white-space: nowrap; }
.dashboard-options { border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.025); padding: 10px 12px; margin-bottom: 12px; }
.dashboard-options summary { color: #d8ecff; cursor: pointer; font-weight: 700; }
.dashboard-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px 12px; margin-top: 12px; }
.dashboard-option-grid label { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.dashboard-option-grid input { width: 16px; height: 16px; accent-color: var(--blue); }
[data-dashboard-section][hidden] { display: none !important; }
.dashboard-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 10px; }
.metric-card { min-width: 0; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.025); padding: 14px; display: grid; gap: 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.metric-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.metric-card strong { color: var(--text); font-size: 28px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-card small { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-card.primary-metric { border-color: rgba(65,212,117,.55); background: rgba(65,212,117,.075); }
.metric-card.primary-metric strong { color: var(--green); }
.dashboard-lower { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 10px; }
.speed-band, .session-note { border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.025); padding: 14px; }
.speed-band-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--muted); font-weight: 700; }
.speed-band-head strong { color: var(--text); }
.speed-track { height: 10px; border-radius: 999px; background: #30373d; overflow: hidden; margin-bottom: 10px; }
.speed-track span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--green)); }
.speed-band small, .session-note small { color: var(--muted); }
.session-note { display: grid; gap: 6px; }
.session-note span { color: var(--muted); font-weight: 700; }
.session-note strong { font-size: 18px; color: #d8ecff; }
.dashboard-charts { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chart-card { border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.025); padding: 14px; display: grid; gap: 8px; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--muted); font-weight: 700; }
.chart-head strong { color: #d8ecff; }
.chart-card svg { width: 100%; height: 118px; display: block; border-radius: 6px; background: #111517; overflow: visible; }
.chart-card line { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.chart-card polyline { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(65, 212, 117, .28)); }
.chart-card.declining polyline { stroke: var(--danger); filter: drop-shadow(0 0 8px rgba(244, 91, 105, .28)); }
.chart-card small { color: var(--muted); }
.session-replay { margin-top: 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.025); padding: 14px; }
.replay-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; align-items: start; }
.replay-head h3 { margin-bottom: 4px; }
.replay-head p { margin-bottom: 0; }
.replay-head strong { color: #d8ecff; border: 1px solid rgba(30,136,255,.45); border-radius: 6px; background: rgba(30,136,255,.08); padding: 7px 10px; white-space: nowrap; }
.replay-layout { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 10px; }
.replay-list { display: grid; gap: 8px; align-content: start; }
.replay-list button { border: 1px solid var(--line); border-radius: 7px; background: #20262a; color: var(--text); padding: 10px; text-align: left; display: grid; gap: 3px; }
.replay-list button:hover { background: #283037; }
.replay-list button.active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.replay-list small { color: var(--muted); }
.replay-chart-card { border: 1px solid var(--line-soft); border-radius: 8px; background: #15191b; padding: 14px; display: grid; gap: 8px; }
.replay-chart-card svg { width: 100%; height: 150px; display: block; border-radius: 6px; background: #111517; }
.replay-chart-card line { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.replay-chart-card polyline { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(65, 212, 117, .28)); }
.replay-chart-card #replayTrendGhost { stroke: rgba(255,255,255,.18); stroke-width: 2; filter: none; }
.replay-chart-card #replayTrendCursor { fill: var(--green); stroke: #111517; stroke-width: 3; filter: drop-shadow(0 0 8px rgba(65, 212, 117, .45)); }
.replay-chart-card.declining polyline { stroke: var(--danger); filter: drop-shadow(0 0 8px rgba(244, 91, 105, .28)); }
.replay-chart-card.declining #replayTrendGhost { stroke: rgba(255,255,255,.18); filter: none; }
.replay-chart-card.declining #replayTrendCursor { fill: var(--danger); filter: drop-shadow(0 0 8px rgba(244, 91, 105, .45)); }
.replay-chart-card small { color: var(--muted); }
.replay-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.replay-controls button { border-radius: 6px; border: 1px solid var(--line); color: var(--text); background: #252b30; min-height: 38px; padding: 0 13px; }
.replay-controls button:hover:not(:disabled) { background: #303840; }
.replay-controls button:disabled { opacity: .45; }
.replay-timeline { color: var(--muted); display: grid; gap: 7px; font-weight: 700; }
.replay-timeline input { width: 100%; accent-color: var(--blue); }

.content-grid { display: grid; grid-template-columns: minmax(440px, 1.15fr) minmax(360px, .85fr); gap: 16px; align-items: stretch; }
.tabs { display: flex; border-bottom: 1px solid var(--line-soft); margin: -6px -22px 16px; padding: 0 22px; overflow-x: auto; }
.tab { background: transparent; border: 0; color: var(--muted); padding: 14px 18px; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 650; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab:hover:not(.active) { color: #d8ecff; background: rgba(255,255,255,.025); }
.tab span { color: inherit; opacity: .8; }
.library-tools { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
.library-tools label, .export-settings label { color: var(--muted); display: grid; gap: 7px; }
select, input[type="text"], input[type="email"], input[type="password"] { color: var(--text); background: #171c20; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; min-height: 42px; }
.selection-buttons { display: flex; gap: 7px; align-items: center; margin-right: auto; }
.selection-buttons button { min-height: 38px; border-radius: 7px; border: 1px solid var(--line); color: var(--text); background: var(--surface-raised); padding: 0 12px; }
.selection-buttons button:hover:not(:disabled) { background: #2b3339; border-color: #4a5560; }
.tool-buttons button { width: 42px; height: 42px; padding: 0; }
.tool-buttons .pair-selected-tool { width: auto; min-width: 118px; padding: 0 12px; color: #d8ecff; border-color: rgba(30,136,255,.55); white-space: nowrap; }
.tool-buttons .pair-selected-tool:hover:not(:disabled) { background: rgba(30,136,255,.12); border-color: var(--blue); }
.tool-buttons .delete-tool { color: #ff9aa5; border-color: rgba(244, 91, 105, .48); }
.tool-buttons .delete-tool:hover:not(:disabled) { background: rgba(244, 91, 105, .16); border-color: var(--danger); }
.image-grid { min-height: 384px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; align-content: start; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-gutter: stable; }
.image-card { position: relative; border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px; background: var(--surface-raised); min-width: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease, transform .14s ease; }
.image-card:hover { border-color: #46515a; background: #242b30; }
.image-card[draggable="true"] { cursor: grab; }
.image-card.dragging { opacity: .48; cursor: grabbing; transform: scale(.98); }
.image-card.drop-before::before,
.image-card.drop-after::before { content: ""; position: absolute; top: 8px; bottom: 8px; width: 4px; border-radius: 999px; background: var(--blue); box-shadow: 0 0 14px rgba(30,136,255,.65); z-index: 5; }
.image-card.drop-before::before { left: -9px; }
.image-card.drop-after::before { right: -9px; }
.image-card.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(30,136,255,.18); }
.image-card.current-pair-source { border-color: #f4bc5b; box-shadow: 0 0 0 2px rgba(244,188,91,.34), 0 0 18px rgba(244,188,91,.18); }
.image-card.current-pair-source .thumb-wrap { outline: 2px solid rgba(244,188,91,.72); outline-offset: 2px; }
.image-card.current-pair-source::after { content: attr(data-current-side); position: absolute; right: 9px; top: 38px; z-index: 2; border: 1px solid rgba(244,188,91,.65); border-radius: 4px; background: rgba(11,13,15,.88); color: #ffd68a; font-size: 11px; font-weight: 800; line-height: 1; padding: 4px 6px; }
.select-box { position: absolute; left: 9px; top: 9px; width: 22px; height: 22px; border: 1px solid #7f8993; background: rgba(18,21,23,.78); border-radius: 4px; z-index: 2; }
.image-card.selected .select-box::after { content: "✓"; color: var(--green); font-weight: 800; }
.delete-image { position: absolute; right: 9px; top: 9px; width: 24px; height: 24px; border: 1px solid rgba(244, 91, 105, .55); border-radius: 4px; background: rgba(18,21,23,.82); color: #ff9aa5; z-index: 2; line-height: 1; padding: 0; }
.delete-image:hover { background: rgba(244, 91, 105, .18); border-color: var(--danger); }
.thumb-wrap { aspect-ratio: 4 / 5; border-radius: 7px; background: #0d1012; display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.035); }
.thumb { max-width: 100%; max-height: 100%; object-fit: contain; transform: rotate(var(--rot)); transition: transform .16s ease; cursor: zoom-in; }
.image-meta strong, .image-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-meta strong { font-size: 14px; margin-bottom: 4px; }
.image-meta span { color: var(--muted); font-size: 13px; }
.role-select { width: 100%; margin-top: 9px; min-height: 36px; padding: 7px 9px; }
.library-footer { border-top: 1px solid var(--line-soft); margin: 16px -22px -4px; padding: 14px 22px 0; display: flex; justify-content: space-between; color: var(--muted); }

.pair-preview { display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); gap: 18px; align-items: center; }
.preview-panel { align-self: start; }
.preview-slot h3 { text-align: center; color: #e7edf3; }
.preview-frame { height: 310px; border: 1px solid var(--line-soft); border-radius: 8px; background: #101416; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.preview-frame img { max-width: none; max-height: none; object-fit: contain; transform: rotate(var(--rot)); transform-origin: center; cursor: zoom-in; }
.preview-frame img[hidden] { display: none; }
.chain { color: var(--blue); font-size: 30px; text-align: center; border: 0; background: transparent; border-radius: 6px; padding: 8px 0; }
.chain:hover:not(:disabled) { background: rgba(30,136,255,.12); }
.chain:disabled { opacity: .38; cursor: not-allowed; }
.slot-actions { justify-content: center; margin-top: 10px; }
.slot-actions button { padding: 9px 12px; }
.replace-slot { border-color: rgba(30,136,255,.65) !important; color: #b8dcff !important; }
.pair-controls { justify-content: flex-end; margin: 22px 0 14px; }
.current-pair { border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px; background: rgba(255,255,255,.025); }
.current-pair strong { display: block; font-size: 19px; margin-bottom: 14px; }
.pair-warning { border-radius: 6px; padding: 9px 10px; background: rgba(65, 212, 117, .11); color: #9df0ba; font-size: 13px; margin-bottom: 0; }
.pair-warning.warn { background: rgba(244, 188, 91, .13); color: #ffd28a; }
.pair-warning.danger { background: rgba(244, 91, 105, .15); color: #ff9aa5; }

.export-panel { display: grid; grid-template-columns: 1.15fr .85fr auto; gap: 18px; align-items: end; }
.format-cards { display: grid; grid-template-columns: repeat(2, minmax(112px, 1fr)); gap: 12px; }
.format-card { border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-raised); padding: 16px 12px; display: grid; gap: 8px; text-align: center; min-height: 138px; align-content: center; transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease; }
.format-card:hover { border-color: #46515a; background: #242b30; }
.format-card input { position: absolute; opacity: 0; pointer-events: none; }
.format-card.active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.format-card span { color: var(--muted); line-height: 1.45; font-size: 14px; }
.export-settings { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 12px; }
.checkline { grid-column: 1 / -1; display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; }
.folder-picker { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 7px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: rgba(255,255,255,.025); }
.folder-picker span { color: var(--muted); }
.folder-picker small { color: var(--dim); grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-submit { flex-direction: column; align-items: stretch; }
.settings-panel { padding: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 14px; }
.settings-grid label { color: var(--muted); display: grid; gap: 7px; }
.settings-actions { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.settings-actions span { color: var(--muted); }

.empty-note { color: var(--dim); text-align: center; grid-column: 1 / -1; padding: 86px 20px; border: 1px dashed var(--line); border-radius: 8px; }
.version-badge { position: fixed; right: 14px; bottom: 10px; z-index: 20; color: #9aa6b2; background: rgba(15, 19, 22, .84); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; font-size: 12px; pointer-events: none; }

.replacement-modal, .upgrade-modal, .zoom-modal { position: fixed; inset: 0; z-index: 50; background: rgba(4, 8, 11, .72); display: grid; place-items: center; padding: 22px; }
.zoom-modal { z-index: 70; background: rgba(4, 8, 11, .88); }
.replacement-modal[hidden], .upgrade-modal[hidden], .zoom-modal[hidden] { display: none; }
.zoom-dialog { position: relative; width: fit-content; height: fit-content; max-width: calc(100vw - 44px); max-height: calc(100vh - 44px); border: 0; border-radius: 8px; background: transparent; box-shadow: none; display: grid; grid-template-rows: minmax(0, auto) auto; gap: 10px; padding: 0; overflow: visible; }
.zoom-dialog img { align-self: center; justify-self: center; display: block; max-width: none; max-height: none; border: 1px solid var(--line); border-radius: 8px; background: #0d1012; box-shadow: var(--shadow); object-fit: contain; transform: rotate(var(--rot)); transform-origin: center; }
.zoom-dialog strong { color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom-close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; color: white; background: rgba(12,15,17,.78); font-size: 24px; line-height: 1; padding: 0; }
.zoom-close:hover { background: rgba(244, 91, 105, .82); border-color: rgba(255,255,255,.72); }
.replacement-dialog { width: min(1638px, 100%); max-height: min(1196px, calc(100vh - 44px)); overflow: auto; display: grid; grid-template-rows: auto auto auto; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #20262a, #171b1e); box-shadow: var(--shadow); padding: 18px; }
.replacement-head, .upgrade-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.replacement-head h2, .upgrade-head h2 { margin-bottom: 4px; }
.replacement-head p, .upgrade-head p { margin-bottom: 0; }
.replacement-head button, .upgrade-head button { width: 40px; height: 40px; padding: 0; font-size: 22px; line-height: 1; }
.replacement-actions { flex-wrap: wrap; }
.replacement-grid { overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding-right: 4px; }
.replacement-grid[hidden] { display: none; }
.replacement-choice-card { position: relative; min-width: 0; }
.replacement-choice { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #20262a; color: var(--text); padding: 10px; text-align: left; display: grid; gap: 8px; }
.replacement-choice.active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.replacement-choice:hover { background: #283037; }
.replacement-choice-delete { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border: 1px solid rgba(244, 91, 105, .55); border-radius: 4px; background: rgba(18,21,23,.82); color: #ff9aa5; z-index: 2; line-height: 1; padding: 0; }
.replacement-choice-delete:hover { background: rgba(244, 91, 105, .18); border-color: var(--danger); }
.replacement-thumb { aspect-ratio: 4 / 5; border-radius: 6px; background: #121517; display: grid; place-items: center; overflow: hidden; }
.replacement-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; transform: rotate(var(--rot)); }
.replacement-choice strong, .replacement-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replacement-choice small { color: var(--muted); }
.camera-panel { position: relative; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); padding: 12px; display: grid; gap: 10px; }
.camera-panel[hidden] { display: none; }
.camera-view-options { display: flex; gap: 14px; flex-wrap: wrap; padding-right: 42px; }
.camera-view-options label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.camera-view-options input { accent-color: var(--blue); width: 16px; height: 16px; }
.camera-view-options .camera-device-field { margin-left: auto; }
.camera-device-field select { min-height: 34px; padding: 6px 10px; min-width: 210px; }
.camera-refresh { min-height: 34px; padding: 6px 10px; }
.camera-reference { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr); gap: 18px; align-items: center; min-height: 312px; }
.camera-reference[hidden] { display: none; }
.camera-reference-slot { min-width: 0; display: grid; gap: 8px; justify-items: center; }
.camera-reference-slot span { color: var(--text); font-weight: 700; font-size: 14px; }
.camera-reference-image-frame { position: relative; width: 100%; height: 338px; border-radius: 7px; background: #0d1012; display: grid; place-items: center; overflow: hidden; }
.camera-reference-empty { width: 100%; height: 100%; border: 1px dashed var(--line); border-radius: 7px; color: var(--dim); background: #0d1012; display: grid; place-items: center; text-align: center; padding: 14px; }
.camera-reference-empty[hidden] { display: none; }
.camera-reference-slot img { max-width: none; max-height: none; justify-self: center; object-fit: contain; transform: rotate(var(--rot)); transform-origin: center; border-radius: 6px; background: #0d1012; }
.camera-reference-slot img[hidden] { display: none; }
.camera-reference-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.camera-reference-actions button { border-radius: 6px; border: 1px solid var(--line); color: var(--text); background: #252b30; min-width: 42px; height: 42px; padding: 0 12px; }
.camera-reference-actions button:hover:not(:disabled) { background: #303840; }
.camera-reference-replace { position: absolute; right: 10px; top: 10px; z-index: 3; width: 30px; height: 30px; border: 1px solid rgba(244, 91, 105, .72); border-radius: 6px; color: white; background: rgba(244, 91, 105, .88); font-size: 20px; line-height: 1; padding: 0; }
.camera-reference-replace:hover:not(:disabled) { background: var(--danger); border-color: #ffb0b8; }
.camera-reference-replace:disabled { opacity: .25; cursor: not-allowed; }
.camera-reference-chain { color: var(--blue); font-size: 39px; text-align: center; }
.camera-preview-frame { position: relative; display: grid; width: 100%; height: clamp(360px, 52vw, 655px); background: #07090a; border-radius: 7px; overflow: hidden; place-items: center; }
.camera-preview-frame video,
.camera-preview-frame .thirds-grid { grid-area: 1 / 1; }
.camera-preview-frame video { align-self: center; justify-self: center; width: var(--camera-content-width, 100%); height: var(--camera-content-height, 100%); max-width: none; max-height: none; background: #07090a; border-radius: 7px; object-fit: contain; transform: rotate(var(--camera-rot, 0deg)) scale(var(--camera-scale, 1)); transform-origin: center; transition: transform .16s ease, width .16s ease, height .16s ease; }
.thirds-grid { align-self: center; justify-self: center; width: var(--thirds-width, 100%); height: var(--thirds-height, 100%); pointer-events: none; z-index: 1; border-radius: 7px; transform: rotate(var(--camera-rot, 0deg)) scale(var(--camera-scale, 1)); transform-origin: center; transition: transform .16s ease, width .16s ease, height .16s ease; background-image: linear-gradient(to right, transparent calc(33.333% - 1px), rgba(255,255,255,.72) calc(33.333% - 1px), rgba(255,255,255,.72) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent calc(66.666% - 1px), rgba(255,255,255,.72) calc(66.666% - 1px), rgba(255,255,255,.72) calc(66.666% + 1px), transparent calc(66.666% + 1px)), linear-gradient(to bottom, transparent calc(33.333% - 1px), rgba(255,255,255,.72) calc(33.333% - 1px), rgba(255,255,255,.72) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent calc(66.666% - 1px), rgba(255,255,255,.72) calc(66.666% - 1px), rgba(255,255,255,.72) calc(66.666% + 1px), transparent calc(66.666% + 1px)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.38); }
.camera-close { position: absolute; right: 18px; top: 18px; z-index: 3; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; color: white; background: rgba(12,15,17,.78); font-size: 20px; line-height: 1; padding: 0; }
.camera-close:hover { background: rgba(244, 91, 105, .82); border-color: rgba(255,255,255,.72); }
.camera-tuning { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto; gap: 10px; align-items: end; }
.camera-tuning[hidden] { display: none; }
.camera-tuning label { color: var(--muted); display: grid; gap: 7px; }
.camera-tuning label span { display: flex; justify-content: space-between; gap: 10px; }
.camera-tuning label b { color: var(--text); font-weight: 700; }
.camera-tuning input { width: 100%; accent-color: var(--blue); }
.camera-tuning button { min-height: 42px; white-space: nowrap; }
.camera-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.camera-actions .camera-rotate { width: 42px; padding: 0; font-size: 17px; }
.camera-panel small { color: var(--muted); text-align: center; }

.upgrade-dialog { width: min(780px, 100%); max-height: min(820px, calc(100vh - 44px)); overflow: auto; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #20262a, #171b1e); box-shadow: var(--shadow); padding: 18px; }
.plan-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan-summary article { border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(30,136,255,.055); padding: 12px; }
.plan-summary strong, .plan-summary span { display: block; }
.plan-summary strong { margin-bottom: 5px; color: white; }
.plan-summary span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.upgrade-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.upgrade-tabs button { border: 0; color: var(--muted); background: #1a1f22; padding: 12px; }
.upgrade-tabs button.active { color: white; background: linear-gradient(180deg, var(--blue), var(--blue-2)); }
.upgrade-grid { display: grid; gap: 10px; }
.upgrade-option { border: 1px solid var(--line); border-radius: 7px; background: #20262a; color: var(--text); padding: 14px; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; text-align: left; }
.upgrade-option:hover { border-color: rgba(30,136,255,.72); background: #273039; }
.upgrade-option strong, .upgrade-option small { display: block; }
.upgrade-option small { color: var(--muted); margin-top: 3px; }
.upgrade-option em { border-radius: 999px; color: white; background: var(--blue); padding: 4px 8px; font-style: normal; font-size: 12px; }
.upgrade-option b { font-size: 16px; }
.purchase-panel, .purchase-success { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); padding: 14px; display: grid; gap: 12px; }
.purchase-panel[hidden], .purchase-success[hidden] { display: none; }
.payment-row { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-soft); padding-top: 10px; color: var(--muted); }
.payment-row strong { color: var(--text); }
.purchase-panel small, .upgrade-balance { color: var(--muted); margin: 0; }
.purchase-success strong { color: var(--green); font-size: 18px; }

@media (max-width: 1400px) {
  .app-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .content-grid, .export-panel, .settings-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-lower, .dashboard-charts, .replay-layout { grid-template-columns: 1fr; }
  .export-submit { flex-direction: row; }
}

@media (max-width: 760px) {
  .landing-hero, .landing-plans { grid-template-columns: 1fr; }
  .plan-summary { grid-template-columns: 1fr; }
  .landing-stats, .landing-dashboard { grid-template-columns: 1fr; }
  .landing-preview-grid { grid-template-columns: 1fr; }
  .landing-preview-grid b { display: none; }
  .signup-fields { grid-template-columns: 1fr; }
  .window-bar { display: none; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .workflow-nav { grid-template-columns: repeat(2, 1fr); }
  .section-heading, .library-tools { display: block; }
  .import-actions, .tool-buttons, .selection-buttons, .capture-strip { margin-top: 12px; flex-wrap: wrap; }
  .pair-preview { grid-template-columns: 1fr; }
  .chain { display: none; }
  .format-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .library-footer { display: grid; gap: 6px; }
}
