:root {
  --primary: #bdff74;
  --secondary: #ac91ff;
  --on-primary: #10150b;
  --primary-ink: color-mix(in srgb, var(--primary) 75%, #f4fff1);
  --secondary-ink: color-mix(in srgb, var(--secondary) 78%, #fcf5ff);
  --bg: #0c0d12;
  --surface: #14161e;
  --raised: #1b1e28;
  --line: #2c303d;
  --muted: #a8acbc;
  --text: #f7f7fc;
  --danger: #ff9ba9;
  --page: min(1760px, calc(100% - clamp(32px, 7vw, 156px)));
  color-scheme: dark;
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  accent-color: var(--primary);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 79% 0%, color-mix(in srgb, var(--secondary) 9%, transparent), transparent 56%), radial-gradient(ellipse at 6% 15%, color-mix(in srgb, var(--primary) 5%, transparent), transparent 49%) }
h1, h2, h3, p { margin: 0 }
button, input, a { font: inherit }
a { color: inherit; text-decoration: none }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .55 }
:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 3px }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.svg-defs { position: absolute; width: 0; height: 0; pointer-events: none }
svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle }
.top { border-bottom: 1px solid #ffffff12; background: #101117d9 }
.top-content { width: var(--page); min-height: 68px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px }
.brand, .top-actions, .engine { display: flex; align-items: center; gap: 12px }
.brand { font-size: 24px; line-height: 1; font-weight: 770; letter-spacing: -.055em; white-space: nowrap }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--primary); color: var(--on-primary); box-shadow: 0 0 22px color-mix(in srgb, var(--primary) 22%, transparent) }
.brand-mark svg { fill: currentColor; stroke-width: 0; width: 24px; height: 24px }
.brand-tail { color: var(--primary-ink) }
.top-actions { gap: 21px }
.engine { color: var(--muted); font-size: 13px; white-space: nowrap; gap: 8px; margin-left: 6px }
.engine i, .capture-specs i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary) }
.engine.disconnected i { background: var(--danger); box-shadow: none }
main { width: var(--page); margin: 30px auto 46px }
section[id] { scroll-margin-top: 20px }
.hero {
  isolation: isolate; position: relative; overflow: hidden; min-height: 270px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, .45fr); gap: clamp(12px, 1.6vw, 28px); align-items: center;
  padding: clamp(16px, 2vw, 32px) 0 clamp(20px, 3.3vw, 52px);
  background: radial-gradient(ellipse at 88% 45%, color-mix(in srgb, var(--secondary) 12%, transparent), transparent 59%);
}
.hero-content { position: relative; z-index: 1; width: 100% }
h1 { line-height: 1.02; font-size: clamp(36px, 4.45vw, 74px); font-weight: 760; letter-spacing: -.07em }
.hero h1 { font-size: clamp(35px, 3.95vw, 65px) }
h1 em { color: var(--primary-ink); font-style: normal }
.hero-content > p { margin: 13px 0 24px; color: #c3c4d2; font-size: clamp(14px, 1.2vw, 16px); max-width: 470px }
.profile-card { width: min(100%, 247px); justify-self: center; filter: drop-shadow(0 12px 14px #0007) }
.profile-card img, .profile-card canvas {
  display: block; width: 100%; height: auto;
  clip-path: polygon(
    8.82% 100.00%, 8.82% 44.12%, 7.53% 44.71%, 5.59% 42.55%, 7.10% 40.00%, 6.02% 39.02%,
    7.10% 36.67%, 5.81% 35.88%, 7.31% 33.33%, 6.02% 31.96%, 7.53% 29.61%, 6.02% 26.67%,
    7.53% 23.14%, 5.16% 21.76%, 7.10% 19.41%, 5.81% 18.04%, 9.25% 17.25%, 7.53% 15.49%,
    5.81% 12.35%, 7.53% 13.73%, 9.46% 16.08%, 9.25% 12.35%, 10.54% 13.73%, 10.54% 16.47%,
    11.83% 14.90%, 13.33% 15.49%, 13.55% 9.61%, 15.05% 9.80%, 15.70% 7.45%, 17.42% 6.86%,
    17.20% 8.43%, 16.13% 8.82%, 15.70% 11.37%, 18.92% 10.98%, 19.35% 8.82%, 22.37% 10.59%,
    23.87% 9.02%, 24.73% 7.65%, 24.52% 4.90%, 26.45% 3.92%, 28.39% 5.69%, 27.10% 6.86%,
    29.89% 6.27%, 32.26% 5.69%, 31.61% 3.92%, 32.69% 3.53%, 33.98% 4.90%, 37.85% 4.12%,
    39.78% 2.35%, 40.65% 5.10%, 39.35% 7.45%, 42.80% 8.43%, 44.09% 6.27%, 44.95% 7.65%,
    47.10% 6.86%, 47.74% 3.53%, 49.03% 0.20%, 49.68% 0.59%, 49.25% 4.51%, 50.11% 4.90%,
    51.61% 0.20%, 52.26% 0.39%, 51.83% 4.31%, 53.55% 6.08%, 54.62% 9.41%, 56.34% 7.25%,
    55.91% 4.90%, 57.63% 4.12%, 57.85% 2.55%, 60.43% 1.96%, 61.29% 2.55%, 59.35% 3.73%,
    59.35% 5.69%, 63.01% 6.27%, 64.95% 5.88%, 66.02% 3.73%, 66.88% 5.10%, 68.39% 4.31%,
    69.68% 4.12%, 70.75% 1.18%, 71.18% 1.18%, 69.89% 5.29%, 69.25% 6.08%, 70.54% 8.43%,
    72.69% 7.84%, 73.76% 6.08%, 76.13% 5.69%, 76.77% 6.86%, 78.06% 8.82%, 79.35% 6.27%,
    80.65% 6.27%, 81.72% 5.49%, 81.94% 8.43%, 82.80% 9.61%, 83.66% 6.08%, 85.81% 1.57%,
    86.24% 1.96%, 85.38% 4.71%, 83.87% 9.41%, 83.23% 11.57%, 86.24% 11.76%, 87.96% 10.98%,
    90.32% 8.82%, 93.33% 5.10%, 93.76% 5.29%, 91.40% 9.22%, 89.03% 11.37%, 91.83% 10.98%,
    94.84% 9.02%, 96.77% 6.08%, 97.42% 6.27%, 95.48% 9.22%, 92.47% 11.57%, 96.34% 11.76%,
    97.85% 10.78%, 97.20% 12.94%, 99.14% 14.90%, 97.85% 16.47%, 99.14% 18.43%, 97.85% 20.20%,
    99.57% 22.16%, 98.06% 23.53%, 99.14% 25.49%, 97.63% 27.84%, 98.92% 29.61%, 97.85% 32.35%,
    99.14% 34.12%, 97.85% 36.27%, 98.71% 38.04%, 96.77% 40.20%, 97.42% 42.35%, 95.70% 44.12%,
    94.84% 44.71%, 94.84% 100.00%
  );
}
.hero form { display: flex; align-items: stretch; gap: 9px; max-width: 585px }
.input-group, .filter { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #0f1119e8; color: var(--muted); min-width: 0 }
.input-group { flex: 1; padding: 0 13px; gap: 7px; border-color: color-mix(in srgb, var(--primary) 25%, var(--line)) }
.input-group > span { color: var(--primary-ink); font-weight: 800; font-size: 19px }
input { color: var(--text); border: 1px solid #484b5d; background: #101219; border-radius: 9px; padding: 10px 12px; min-width: 0 }
input::placeholder { color: #a0a3b4 }
.input-group input, .filter input { border: 0; background: transparent; width: 100%; padding: 12px 0; outline: 0 }
.input-group:focus-within, .filter:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent) }
.filter { padding: 0 9px; width: min(43%, 200px); gap: 6px; font-size: 12px }
.filter svg { width: 15px; height: 15px; color: var(--secondary-ink) }
.filter input { padding: 9px 0 }
.primary, .secondary, .danger, .icon, .text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  border-radius: 8px; font-weight: 660; transition: background .18s, filter .18s, transform .18s, border-color .18s; padding: 8px 12px;
}
.primary { color: var(--on-primary); border: 1px solid color-mix(in srgb,var(--primary) 76%, #fff); background: var(--primary); padding: 11px 15px; box-shadow: 0 3px 19px color-mix(in srgb, var(--primary) 18%, transparent) }
.primary:hover { filter: brightness(1.12) }
.primary:active, .secondary:active, .icon:active { transform: translateY(1px) }
.secondary, .icon { border: 1px solid var(--line); color: var(--text); background: var(--raised); font-size: 13px }
.secondary:hover, .icon:hover { background: color-mix(in srgb, var(--secondary) 16%, var(--raised)); border-color: color-mix(in srgb, var(--secondary) 38%, var(--line)) }
.icon { padding: 7px; min-width: 35px; min-height: 35px }
.danger { background: var(--danger); border: 1px solid var(--danger); color: #311119 }
.text-button { background: transparent; color: var(--primary-ink); border: 0; font-size: 13px; padding: 5px 0 }
.text-button:hover { text-decoration: underline }
.text-button svg { width: 14px; height: 14px }
.capture-specs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 17px; font-size: 12px; color: #c5c5d4 }
.capture-specs span { display: flex; gap: 7px; align-items: center }
.capture-specs span + span::before { content: ""; width: 1px; height: 10px; margin-right: 7px; background: color-mix(in srgb, var(--secondary) 49%, transparent) }
.capture-specs i { width: 5px; height: 5px }
.content-section { padding: clamp(19px, 2.5vw, 35px) 0; border-top: 1px solid var(--line) }
.section-head, .pref-head, .setting { display: flex; gap: 12px; align-items: center; justify-content: space-between }
.section-head { margin-bottom: 12px }
h2 { font-size: clamp(23px, 2.25vw, 32px); letter-spacing: -.05em; line-height: 1.14 }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 4px }
.empty-message, .archive-notice { color: var(--muted); font-size: 14px; padding: 4px 0 }
.archive-notice { color: var(--secondary-ink); margin-bottom: 10px }
.empty-message strong { color: var(--text) }
.empty-message .text-button { margin-left: 4px }
.watch-list, .active-list, .clips { display: grid; gap: 9px }
.watch-row, .active-row { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); padding: 12px 0; animation: enter .22s both }
.watch-info, .active-info { flex: 1; min-width: 0 }
.watch-info strong, .active-info strong, .clip h3 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.watch-info p, .active-info small { font-size: 12px; color: var(--primary-ink) }
.watch-info small, .active-info > span { color: var(--muted); display: block; font-size: 11px; overflow-wrap: anywhere }
.active-row[data-status="recording"] { border-color: color-mix(in srgb, var(--primary) 32%, var(--line)) }
.active-info small { color: var(--secondary-ink); display: block }
.active-row[data-status="recording"] .active-info small { color: var(--primary-ink) }
.session-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--secondary) }
.active-row[data-status="recording"] .session-dot { background: var(--primary); box-shadow: 0 0 11px var(--primary); animation: pulse 1.8s ease-in-out infinite }
.active-actions { display: flex; flex-direction: column; align-items: end; gap: 5px; flex: 0 0 auto }
.active-actions time { color: var(--primary-ink); font: 650 19px/1.15 Consolas, monospace; font-variant-numeric: tabular-nums }
.active-actions button { padding: 4px 7px; font-size: 11px }
.clips { grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr)) }
.clip-group { margin-top: 22px }
.clip-group + .clip-group { margin-top: 30px }
.clip-group-heading { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px }
.clip-group h3 { font-size: 17px; color: var(--secondary-ink); overflow-wrap: anywhere }
.clip-group-heading span { font-size: 12px; color: var(--muted) }
.clip { overflow: hidden; border: 1px solid var(--line); background: #101219; border-radius: 11px; animation: enter .26s both }
.thumbnail { width: 100%; height: 142px; position: relative; display: grid; place-items: center; overflow: hidden; border: 0; color: #fff; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--secondary) 22%, #222438), #131521) }
.thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.thumbnail span { z-index: 1; padding: 6px 11px; border-radius: 6px; background: #151620e8; border: 1px solid #ffffff70; font-size: 13px; font-weight: 650; transition: transform .2s }
.thumbnail:hover span { transform: scale(1.12) }
.thumbnail small { position: absolute; z-index: 1; bottom: 7px; right: 7px; background: #111c; border-radius: 4px; padding: 1px 6px }
.clip-content { padding: 11px }
.clip h3 { font-size: 15px }
.clip-date, .clip-quality { color: var(--muted); font-size: 12px; min-height: 18px }
.clip-quality { color: var(--secondary-ink) }
.clip-actions { margin-top: 10px; display: flex; gap: 6px; align-items: center }
.clip-actions .delete { margin-left: auto; color: var(--danger) }
.locked { display: grid; min-height: calc(100vh - 180px); place-items: center }
.sign-in, .preferences, dialog { background: #1a1c26; border: 1px solid color-mix(in srgb, var(--secondary) 29%, var(--line)); border-radius: 17px; color: var(--text); box-shadow: 0 19px 55px #0009 }
.sign-in { width: min(100%, 425px); padding: 30px; animation: enter .28s both }
.sign-in h1 { font-size: 38px; margin: 15px 0 9px }
.sign-in > p, dialog form > p { color: var(--muted) }
.sign-in form { display: grid; margin-top: 21px; gap: 8px }
.sign-in label, dialog label { font-weight: 650; font-size: 13px }
.sign-in input { text-transform: uppercase }
.sign-in .primary { margin-top: 4px }
.error { font-size: 13px; color: var(--danger) !important }
.error:empty { display: none }
.preferences { position: fixed; right: max(16px, calc((100vw - min(1760px, 93vw))/2)); top: 76px; z-index: 3; padding: 17px; width: min(365px, calc(100% - 32px)); animation: enter .22s ease-out both }
.preferences { max-height: calc(100vh - 92px); overflow: auto }
.pref-head { margin-bottom: 12px }
.theme-settings { border: 0; margin: 0; padding: 0 0 7px; min-width: 0 }
.theme-settings legend, .setting strong, .storage strong { display: block; font-weight: 670 }
.theme-colours { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 3px }
.theme-colours label { display: grid; grid-template-columns: auto auto; align-items: center; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px }
.theme-colours input { padding: 2px; width: 36px; height: 28px; cursor: pointer; justify-self: end }
.theme-colours output { grid-column: 1 / -1 }
.setting, .storage { padding: 13px 0; border-top: 1px solid var(--line) }
.setting code, .theme-colours output, .storage p { font-size: 12px; color: var(--muted); overflow-wrap: anywhere }
.storage summary { cursor: pointer; font-weight: 650 }
.issue-form { display: grid; gap: 7px; margin-top: 9px; font-size: 13px }
textarea { width: 100%; min-width: 0; resize: vertical; padding: 8px; color: var(--text); background: #101219; border: 1px solid #484b5d; border-radius: 8px; font: 12px/1.4 Consolas, monospace; overflow-wrap: anywhere }
#activate-form > p { color: var(--muted); font-size: 13px }
dialog { width: min(430px, calc(100% - 30px)); padding: 20px; animation: enter .23s both }
dialog::backdrop { background: #06080dbb; backdrop-filter: blur(4px) }
dialog form { display: grid; gap: 10px }
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 8px }
.player { width: min(850px, calc(100% - 30px)) }
.player video { display: block; width: 100%; max-height: 73vh; background: #090a0e; border-radius: 8px }
.toast { position: fixed; max-width: min(420px, calc(100% - 32px)); bottom: 20px; right: 20px; z-index: 5; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); padding: 10px 14px; box-shadow: 0 8px 24px #0008; animation: enter .2s both }
@keyframes enter { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }
@keyframes pulse { 50% { opacity: .45 } }
@media (max-width: 820px) { .top-actions { gap: 9px } .top-content { min-height: 60px } }
@media (max-width: 600px) { :root { --page: calc(100% - 28px) } main { margin-top: 19px } .hero { grid-template-columns: 1fr; gap: 15px; padding-top: 6px } .profile-card { width: min(46vw, 183px) } .engine { display: none } .section-head { gap: 8px } .library-section .section-head { flex-wrap: wrap } .library-section .filter { width: 100% } }
@media (max-width: 390px) { .capture-specs { gap: 3px 8px } .capture-specs span + span::before { margin-right: 0 } .brand { font-size: 19px } .brand-mark { width: 29px; height: 29px } .top-content, .top-actions { gap: 6px } .top-actions .secondary { padding: 7px 8px } .hero form { flex-wrap: wrap } .hero form .input-group { flex-basis: 100% } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important } }

.settings-actions { display: flex; align-items: center; gap: 10px }

.key-help { display: block; margin: 16px auto 0 }
.offer-price { font-size: clamp(48px, 12vw, 76px); font-weight: 800; color: var(--primary-ink, var(--primary)); margin: 20px 0 8px; line-height: 1 }
.offer-price span { font-size: 22px }
.offer-promise { font-weight: 750; color: var(--secondary-ink, var(--secondary)); line-height: 1.6 }
#key-offer .dialog-actions { flex-wrap: wrap; margin-top: 24px }
#key-offer .dialog-actions > * { flex: 1; text-align: center }
