/* ThumbUHD — YouTube-themed dark / light desk */

:root {
  --bg: #0f0f0f;
  --bg-soft: #181818;
  --surface: #212121;
  --surface-2: #272727;
  --ink: #f1f1f1;
  --muted: #aaaaaa;
  --line: #3f3f3f;
  --line-strong: #525252;
  --yt: #ff0000;
  --yt-ink: #ff4e45;
  --yt-deep: #cc0000;
  --yt-soft: rgba(255, 0, 0, 0.14);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --warn: #ffb020;
  --warn-soft: rgba(255, 176, 32, 0.12);
  --danger: #ff6b5c;
  --danger-soft: rgba(255, 107, 92, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --wrap: 1160px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Segoe UI Mono", monospace;
  --header: 64px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f9f9f9;
  --bg-soft: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --ink: #0f0f0f;
  --muted: #606060;
  --line: #e5e5e5;
  --line-strong: #d0d0d0;
  --yt: #ff0000;
  --yt-ink: #cc0000;
  --yt-deep: #b00000;
  --yt-soft: rgba(255, 0, 0, 0.08);
  --ok: #0d9c5a;
  --ok-soft: #e5f8ee;
  --warn: #9a5a12;
  --warn-soft: #fff4e0;
  --danger: #b3261e;
  --danger-soft: #fde8e6;
  --shadow: 0 1px 2px rgba(15, 15, 15, 0.06), 0 10px 28px rgba(15, 15, 15, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 15, 15, 0.12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html, body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 12% -8%, color-mix(in srgb, var(--yt) 22%, transparent), transparent 58%),
    radial-gradient(700px 360px at 92% 0%, color-mix(in srgb, var(--yt) 8%, transparent), transparent 50%);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(900px 420px at 12% -8%, color-mix(in srgb, var(--yt) 10%, transparent), transparent 58%),
    radial-gradient(700px 360px at 92% 0%, color-mix(in srgb, var(--yt) 5%, transparent), transparent 50%);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--yt-ink); text-underline-offset: 2px; }
a:hover { color: var(--yt); }
:focus-visible { outline: 2px solid var(--yt); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 40;
  background: var(--yt); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.wrap.narrow { width: min(760px, calc(100% - 32px)); }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 8px;
  color: var(--yt-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -.03em; font-weight: 750; }
h1 { font-size: clamp(1.75rem, 4vw, 2.65rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.28rem, 2.4vw, 1.72rem); margin: 0 0 10px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 48rem; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar-inner, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-inner { min-height: var(--header); justify-content: space-between; }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand-lockup { width: 210px; height: 36px; color: var(--ink); }
.brand-sub { fill: var(--muted); opacity: .9; }
.brand-lockup.is-live .brand-screen { animation: brand-in .45s cubic-bezier(.2,.85,.2,1) both; }
.brand-lockup.is-live .brand-arrow { animation: brand-arrow .55s ease .12s both; }
.brand-lockup.is-live .brand-bar { animation: brand-bar .5s ease .2s both; }
.brand:hover .brand-arrow { transform: translateY(1px); }
@keyframes brand-in { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes brand-arrow { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes brand-bar { from { transform: scaleX(.2); transform-origin: left; } to { transform: none; } }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-link {
  border: 0; background: none; color: var(--ink); font: 600 14px var(--font); cursor: pointer;
  padding: 8px 12px; border-radius: 10px; text-decoration: none;
}
.nav > a:hover, .nav-link:hover, .nav > a.is-active, .nav-link.is-active {
  background: var(--yt-soft); color: var(--yt-ink);
}
.nav-flyout { position: relative; }
.flyout {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 22;
}
.nav-flyout:hover .flyout, .nav-flyout:focus-within .flyout { display: block; }
.flyout a { display: block; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.flyout a:hover { background: var(--bg-soft); }
.flyout strong { display: block; }
.flyout span { color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent;
  font: 700 14px/1 var(--font); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--yt); color: #fff; }
.btn-primary:hover { background: var(--yt-deep); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-soft { background: var(--yt-soft); color: var(--yt-ink); }
.btn-block { width: 100%; }
.btn[hidden] { display: none !important; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  font: 650 13px var(--font);
}
.theme-toggle:hover { border-color: var(--yt); }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: none; }
.theme-icon svg { display: block; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); padding: 9px 8px; flex-direction: column; justify-content: space-between; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--ink); display: block; border-radius: 2px; }

.hero { padding: 28px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip {
  display: inline-flex; align-items: center; padding: 5px 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 13px;
}

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 20px;
  position: relative; z-index: 1;
}
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1.15rem; }
.panel-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req { color: var(--danger); }
.help { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }

input[type="text"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; font: inherit; background: var(--bg); color: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 3px solid color-mix(in srgb, var(--yt) 35%, transparent); border-color: var(--yt);
}
.grid-2, .grid-3 { display: grid; gap: 12px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.status.is-bad { color: var(--danger); }
.status.is-ok { color: var(--ok); }

.loader {
  display: flex; align-items: center; gap: 14px;
  margin: 16px 0 0; padding: 14px 16px;
  background: var(--yt-soft); border: 1px solid color-mix(in srgb, var(--yt) 35%, var(--line));
  border-radius: 14px;
}
.loader[hidden], .skeleton[hidden] { display: none !important; }
.loader-title { margin: 0 0 4px; font-weight: 750; }
.loader-text { margin: 0; color: var(--muted); font-size: 13.5px; }
.loader-spin, .btn-spin {
  width: 28px; height: 28px; flex: 0 0 auto;
  border: 3px solid color-mix(in srgb, var(--yt) 25%, transparent);
  border-top-color: var(--yt); border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-spin { width: 16px; height: 16px; border-width: 2px; }
.btn-primary .btn-spin {
  border-color: rgba(255, 255, 255, .35);
  border-top-color: #fff;
}
.btn.is-loading { opacity: .85; pointer-events: none; }
.downloader.is-busy input,
.downloader.is-busy textarea { opacity: .7; }
.skel {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, var(--line) 0%, var(--surface) 45%, var(--line) 100%);
  background-size: 180% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}
.skel-poster { width: 160px; max-width: 40vw; aspect-ratio: 16/9; }
.skel-copy { flex: 1; min-width: 160px; display: grid; gap: 8px; }
.skel-line { height: 12px; width: 100%; }
.skel-w80 { width: 80%; }
.skel-w60 { width: 60%; }
.skel-w50 { width: 50%; }
.skel-w30 { width: 30%; }
.skeleton { margin-top: 8px; }
.skeleton-meta { margin-bottom: 8px; }
.thumb-frame.is-loading .thumb-shimmer {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 45%, #1a1a1a 100%);
  background-size: 180% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}
[data-theme="light"] .thumb-frame.is-loading .thumb-shimmer {
  background: linear-gradient(90deg, #e8e8e8 0%, #f4f4f4 45%, #e8e8e8 100%);
  background-size: 180% 100%;
}
.thumb-frame.is-loading img { opacity: 0; }
.thumb-frame img.is-ready { opacity: 1; transition: opacity .25s ease; }
.meta-card.is-loading img { opacity: .35; }
.meta-poster-wrap { position: relative; width: 160px; max-width: 40vw; }
.meta-poster-wrap img { width: 100%; }
.meta-poster-wrap.is-loading .thumb-shimmer {
  position: absolute; inset: 0; border-radius: 10px; z-index: 1;
  background: linear-gradient(90deg, var(--line) 0%, var(--surface) 45%, var(--line) 100%);
  background-size: 180% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-spin, .btn-spin, .skel, .thumb-shimmer { animation: none; }
}

.section { padding: 52px 0; position: relative; z-index: 1; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.cards, .bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card, .desk-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; color: inherit; text-decoration: none; box-shadow: var(--shadow);
}
.card:hover, .desk-card:hover { border-color: color-mix(in srgb, var(--yt) 50%, var(--line)); box-shadow: var(--shadow-lg); color: inherit; }
.icon-badge {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--yt-soft); color: var(--yt); font-weight: 800; font-size: 12px; margin-bottom: 12px;
}
.steps { display: grid; gap: 12px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.step b {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--yt); color: #fff; font-size: 12px; margin-right: 6px;
}

.meta-card {
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 16px 0;
}
.meta-card img {
  width: 160px; max-width: 40vw; border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; background: #000;
}
.meta-card h3 { margin: 0 0 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 12.5px; color: var(--muted);
}
.pill.is-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.is-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

.thumb-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 16px;
}
.thumb-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.thumb-card.is-missing { opacity: .55; }
.thumb-frame {
  position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden;
}
.thumb-frame img { width: 100%; height: 100%; object-fit: contain; background: #111; }
.thumb-card.ratio-9-16 .thumb-frame { aspect-ratio: 9 / 16; max-height: 360px; margin: 0 auto; width: min(100%, 200px); }
.thumb-missing {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 13px; padding: 12px; text-align: center;
}
.thumb-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.thumb-body h3 { margin: 0; font-size: 15px; }
.thumb-meta { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.overlay-safe {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 28%, transparent 42%),
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, transparent 18%);
}
.overlay-safe .ov-title {
  position: absolute; left: 8px; right: 48px; bottom: 22px;
  height: 10px; border-radius: 3px; background: #fff; opacity: .9;
}
.overlay-safe .ov-sub {
  position: absolute; left: 8px; width: 42%; bottom: 8px;
  height: 7px; border-radius: 3px; background: #ccc; opacity: .7;
}
.overlay-safe .ov-time {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.82); color: #fff; font: 700 10px var(--font);
  padding: 2px 5px; border-radius: 3px;
}
.devices { display: grid; gap: 16px; margin-top: 16px; }
.device {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.device-screen { background: #000; border-radius: 10px; overflow: hidden; position: relative; }
.device-screen.is-loading .thumb-shimmer {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 45%, #1a1a1a 100%);
  background-size: 180% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}
.device-screen.is-loading img { opacity: 0; }
.device-screen img.is-ready { opacity: 1; transition: opacity .25s ease; }
.device-screen img { width: 100%; display: block; }
.device.phone { max-width: 280px; }
.device.phone .device-screen { aspect-ratio: 9/16; }
.device.phone .device-screen img { height: 100%; object-fit: cover; object-position: center; }
.device.desktop .device-screen { aspect-ratio: 16/9; }
.device.desktop .device-screen img { width: 100%; height: 100%; object-fit: cover; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.swatch {
  width: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
}
.swatch i { display: block; height: 56px; }
.swatch span { display: block; padding: 6px 8px; font: 12px var(--mono); color: var(--muted); }

.compare-row { display: grid; gap: 14px; margin-top: 16px; }
.compare-col img { width: 100%; border-radius: 12px; background: #000; }

.history { display: grid; gap: 8px; margin-top: 8px; }
.history button {
  text-align: left; border: 1px solid var(--line); background: var(--bg); color: inherit;
  border-radius: 10px; padding: 10px 12px; font: 13px var(--mono); cursor: pointer; word-break: break-all;
}
.history-block { margin-top: 18px; }

.prose { max-width: 760px; }
.prose.wide { max-width: none; }
.prose h2, .prose h3 { margin-top: 1.55em; scroll-margin-top: 84px; }
.prose h2 + p, .prose h3 + p { font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0 24px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }
.prose pre {
  overflow: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font: 13px/1.55 var(--mono);
  margin: 12px 0 22px;
  white-space: pre-wrap;
  word-break: break-word;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }
.callout {
  background: var(--yt-soft); border-left: 4px solid var(--yt); padding: 12px 14px;
  border-radius: 0 10px 10px 0; margin: 16px 0;
}
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 24px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.byline { color: var(--muted); font-size: 13.5px; margin: -4px 0 18px; }
.guide-groups { display: grid; gap: 36px; }

.faq { padding: 16px 0 52px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 700; }
.faq-body { padding: 0 16px 14px; color: var(--muted); }

.crumbs { padding: 14px 0 0; font-size: 13.5px; position: relative; z-index: 1; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--yt-ink); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-strong); }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { background: var(--bg-soft); position: sticky; top: 0; }

.footer {
  background: var(--bg-soft); color: var(--muted); padding: 40px 0 24px;
  margin-top: 8px; border-top: 1px solid var(--line); position: relative; z-index: 1;
}
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--yt); }
.footer h2 { color: var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 8px 0; }
.footer-grid { display: grid; gap: 24px; }
.footer-base { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-brand { margin-bottom: 10px; }

.toast-live {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 999px;
  z-index: 50; font: 650 14px var(--font); box-shadow: var(--shadow-lg); max-width: calc(100% - 24px);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .cards, .bento { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .devices { grid-template-columns: 280px 1fr; align-items: start; }
  .compare-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .desk-card:first-child { grid-column: span 1; }
}
@media (max-width: 900px) {
  .hide-sm { display: none !important; }
  .theme-label { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header);
    background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 10px 16px 16px; max-height: calc(100vh - var(--header)); overflow: auto;
  }
  body.nav-open .nav { display: flex; }
  .nav-flyout { width: 100%; }
  .flyout { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 8px; background: transparent; }
}
@media (max-width: 520px) {
  .wrap { width: min(var(--wrap), calc(100% - 20px)); }
  .panel { padding: 16px; border-radius: 14px; }
  .meta-card img { width: 100%; max-width: none; }
  h1 { letter-spacing: -.04em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-lockup.is-live .brand-screen,
  .brand-lockup.is-live .brand-arrow,
  .brand-lockup.is-live .brand-bar { animation: none; }
}
