




















[hidden] { display: none !important; }

:root {

  --bg: #0a0a0c;
  --bg2: #0e0e11;
  --surface: #151518;
  --surface2: #1c1c20;
  --surface3: #27272d;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.13);
  --text: #f3f1ec;
  --muted: #a3a097;
  --faint: #8f8d85;
  --accent: #e3a55f;
  --accent-soft: rgba(227, 165, 95, 0.13);
  --on-accent: #1a1206;
  --ok: #67c094;
  --bad: #e0705f;




  --danger: var(--bad);
  --danger-soft: var(--bad-soft);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --bg-deep: #060709;
  --panel: var(--surface);
  --panel-elevated: var(--surface2);
  --surface-2: var(--surface2);
  --surface-3: var(--surface3);
  --input-bg: var(--bg2);
  --border: var(--line);
  --border-strong: var(--line2);
  --text-faint: var(--faint);
  --text-muted: var(--muted);
  --accent-hover: #ecbd84;
  --accent-press: #d4914a;
  --accent-glow: rgba(227, 165, 95, 0.2);
  --accent-ring: rgba(227, 165, 95, 0.42);
  --accent-shadow: rgba(227, 165, 95, 0.3);
  --ok-soft: rgba(103, 192, 148, 0.14);
  --warn: #e3a55f;
  --warn-soft: rgba(227, 165, 95, 0.14);
  --bad-soft: rgba(224, 112, 95, 0.14);
  --scrim: rgba(4, 5, 8, 0.72);
  --bg-grad-1: #131318;
  --bg-grad-2: rgba(227, 165, 95, 0.05);
  --radius-lg: 16px;
  --radius-md: 12px;
  --r-sm: 9px;
  --r-pill: 999px;
  --space-lg: 28px;
  --space-md: 20px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s12: 48px;
  --dur: 0.18s; --dur-fast: 0.12s; --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --sidebar-w: 248px; --maxw: 1480px;
  --z-nav: 40; --z-scrim: 55; --z-drawer: 60; --z-modal: 100; --z-popover: 110; --z-toast: 120;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-vignette: rgba(0, 0, 0, 0.46);
  --sidebar-bg: rgba(13, 13, 16, 0.96);
  --topbar-bg: rgba(9, 9, 11, 0.97);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --sidebar-bg: rgba(255, 255, 255, 0.95); --topbar-bg: rgba(246, 245, 242, 0.96);
  --bg: #f6f5f2; --bg2: #efece6; --surface: #ffffff; --surface2: #f3f1ec; --surface3: #e7e3db;
  --line: rgba(20, 18, 14, 0.10); --line2: rgba(20, 18, 14, 0.17);
  --text: #1b1915; --muted: #6c685f; --faint: #6f6b64;
  --accent: #91520f; --accent-soft: rgba(145, 82, 15, 0.12); --on-accent: #ffffff;
  --ok: #147349; --bad: #b23528;
  --bg-deep: #e7e3db; --accent-hover: #7f470d; --accent-press: #6e3d0b;
  --accent-glow: rgba(145, 82, 15, 0.18); --accent-ring: rgba(145, 82, 15, 0.40); --accent-shadow: rgba(145, 82, 15, 0.22);
  --ok-soft: rgba(20, 115, 73, 0.13); --warn: #91520f; --warn-soft: rgba(145, 82, 15, 0.13);
  --bad-soft: rgba(178, 53, 40, 0.12); --scrim: rgba(40, 36, 30, 0.50);
  --bg-grad-1: #ffffff; --bg-grad-2: rgba(145, 82, 15, 0.04); --grain-vignette: rgba(0, 0, 0, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --sidebar-bg: rgba(255, 255, 255, 0.95); --topbar-bg: rgba(246, 245, 242, 0.96);
    --bg: #f6f5f2; --bg2: #efece6; --surface: #ffffff; --surface2: #f3f1ec; --surface3: #e7e3db;
    --line: rgba(20, 18, 14, 0.10); --line2: rgba(20, 18, 14, 0.17);
    --text: #1b1915; --muted: #6c685f; --faint: #6f6b64;
    --accent: #91520f; --accent-soft: rgba(145, 82, 15, 0.12); --on-accent: #ffffff;
    --ok: #147349; --bad: #b23528;
    --bg-deep: #e7e3db; --accent-hover: #7f470d; --accent-press: #6e3d0b;
    --accent-glow: rgba(145, 82, 15, 0.18); --accent-ring: rgba(145, 82, 15, 0.40);
    --ok-soft: rgba(20, 115, 73, 0.13); --warn: #91520f; --warn-soft: rgba(145, 82, 15, 0.13);
    --bad-soft: rgba(178, 53, 40, 0.12); --scrim: rgba(40, 36, 30, 0.50);
    --bg-grad-1: #ffffff; --bg-grad-2: rgba(145, 82, 15, 0.04); --grain-vignette: rgba(0, 0, 0, 0.12);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: radial-gradient(130% 90% at 50% -10%, var(--bg-grad-1) 0%, var(--bg) 46%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
@keyframes scshim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); background-clip: padding-box; }

.dc-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; color: var(--text); margin: 0; }
.dc-eyebrow { font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0; }
.dc-mono { font-family: var(--font-mono); }
.dc-grain { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(135% 108% at 50% -8%, transparent 50%, var(--grain-vignette) 100%); }
.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
main { max-width: 1440px; margin: 0 auto; padding: var(--space-lg) 32px 48px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.panel--flat { background: transparent; border: none; padding: 0; }
.panel--compact { padding: 16px; }
.panel h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.panel h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.panel h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }















.heading-section, .panel .heading-section { font-size: 18px; font-weight: 700; margin: 0 0 12px; letter-spacing: normal; }
.heading-sub, .panel .heading-sub { font-size: 15px; font-weight: 700; margin: 0 0 8px; letter-spacing: normal; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.muted { color: var(--muted); }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.badge-ok { color: var(--ok); border-color: var(--ok); }
.badge-warn { color: var(--warn); border-color: #6a4f1d; }
.badge-bad { color: var(--bad); border-color: var(--bad); }
label { display: block; margin: 10px 0 6px; font-weight: 600; }






input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=range]),
textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  min-height: 44px;
}











input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=range]):focus,
textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
textarea { min-height: 110px; resize: vertical; }








select:not([multiple]):not([size]) { text-overflow: ellipsis; }










button, .button, .btn-primary, .btn--primary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-ui);
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
button:hover:not(:disabled), .button:hover, .btn-primary:hover, .btn--primary:hover { opacity: 0.92; }

button:disabled, .button:disabled, button.is-loading, .button.is-loading {
  background: var(--border-strong);
  color: var(--muted);
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}
button.is-loading, .button.is-loading { cursor: wait; }

button.is-loading::before, .button.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.5em;
  vertical-align: -0.12em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  button.is-loading::before, .button.is-loading::before { animation-duration: 1.6s; }
}

.req { color: var(--bad, #e85d5d); margin-left: 2px; }



.field-invalid-msg { color: var(--bad, #e85d5d); font-size: 13px; line-height: 1.4; margin: 6px 0 0; }
[aria-invalid="true"] { border-color: var(--bad, #e85d5d); }
button.secondary, .button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}



button.secondary.btn-danger, .button.secondary.btn-danger { color: var(--bad); border-color: var(--bad); }
button.secondary.btn-danger:hover, .button.secondary.btn-danger:hover { background: var(--bad-soft); }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}
.tab.active { background: var(--accent-soft); color: var(--text); border-color: var(--accent); }
.gallery-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}








.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  background: var(--bg-deep);
}
.gallery-meta { padding: 12px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th, td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.alert {
  border: 1px solid var(--bad);
  background: var(--bad-soft);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;


  overflow-wrap: anywhere;
  word-break: break-word;
}
.success {
  border: 1px solid var(--ok);
  background: var(--ok-soft);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
details.advanced { margin-top: 12px; }



input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); }




.upload-preview:empty, .result-preview:empty { display: none; }
.upload-preview, .result-preview {
  margin-top: 8px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  min-height: 160px;
  background: var(--bg-deep);
  overflow: hidden;
}
.upload-preview img, .result-preview img {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-deep);
}
.preview-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.preview-empty.bad { color: var(--bad); }








.upload-status { min-height: 18px; }

.upload-status.is-bad { color: var(--bad); }
.result-panel { position: sticky; top: 88px; }
.muted-panel { color: var(--muted); }
.artifact-missing {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: var(--surface);
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 13px;
  gap: 12px;


  padding: clamp(10px, 8%, 24px);
  text-align: center;
}
.artifact-missing--cinematic { min-height: 280px; background: linear-gradient(160deg, #0a0d14, #12161f); }


.artifact-missing--settled { min-height: 96px; }
.button-generate {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}






button.is-not-ready, button.is-not-ready:hover {
  background: var(--surface-3, var(--surface-2)) !important;
  border-color: var(--border) !important;
  color: var(--muted) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  opacity: 1;
}
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; margin-left: 4px;
  border: 1px solid var(--border); border-radius: var(--r-sm, 6px);
  background: var(--surface-2, transparent); color: var(--muted);
  font-size: 13px; line-height: 1; cursor: pointer; vertical-align: middle;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); background: var(--surface-3, var(--surface-2)); }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); }

.transcript-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 10px);
  padding: 16px 18px;
  max-height: 340px;
  overflow-y: auto;
  position: relative;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.transcript-view .ts-loading { color: var(--muted); font-size: 13px; }
.transcript-view .ts-error { color: var(--bad, var(--muted)); font-size: 13px; }
.transcript-view .ts-text { white-space: pre-wrap; }
.transcript-view .ts-pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: inherit;
}
.transcript-view .ts-segments { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.transcript-view .ts-segments summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  user-select: none;
}
.transcript-view .ts-seg { margin-top: 6px; font-size: 13px; }
.transcript-view .ts-time { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 6px; }
.ts-download {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
}
.prompt-snippet {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-actions { margin-top: 8px; font-size: 13px; }
.library-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 16px; }
.library-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel); }
.library-preview img, .library-preview video { width: 100%; aspect-ratio: 1; max-height: 220px; object-fit: contain; display: block; background: var(--bg-deep); }
.library-meta { padding: 12px; font-size: 13px; }



.library-meta h2 { margin: 0 0 6px; font-size: 15px; }
.inline-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.inline-filter input, .inline-filter select { max-width: 200px; }
.mini-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.mini-form input { max-width: 140px; padding: 6px 8px; font-size: 12px; }
.gallery-save { margin-top: 8px; }
.gallery-save > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  user-select: none;
  transition: color 0.15s, border-color 0.15s;
}
.gallery-save > summary::-webkit-details-marker { display: none; }
.gallery-save > summary::before { content: "+"; font-weight: 800; }
.gallery-save[open] > summary { color: var(--text); border-color: var(--accent); margin-bottom: 8px; }
.gallery-save[open] > summary::before { content: "−"; }
.gallery-save > summary:hover { color: var(--text); }
.mono { font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; }
.pipeline-steps { line-height: 1.8; }
.pipeline-steps li { margin-bottom: 8px; }
.picker-block { margin: 12px 0; padding: 12px; border: 1px dashed var(--border); border-radius: 8px; }







.gallery-card video { max-height: 200px; }
.upload-preview video { max-height: 180px; }
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 12px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 0.4s ease;
}
.progress-bar--cinematic { height: 6px; margin: 14px 0 0; }
.progress-fill--animated {
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-hover), var(--accent));
  background-size: 200% 100%;
  animation: progress-shimmer 2.2s linear infinite;
}
@keyframes progress-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.create-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.create-preview-col { position: sticky; top: 96px; }



.create-workspace--idle > .create-preview-col { grid-column: 1; grid-row: 1; }
.create-workspace--idle > .create-controls-col { grid-column: 2; grid-row: 1; }
.create-controls-panel {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.create-subnav, .section-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.create-subnav-link, .section-subnav-link {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.create-subnav-link.active, .section-subnav-link.active {
  background: var(--accent-soft);
  color: var(--text);
  border-color: var(--accent);
}
.hero-preview {
  min-height: 440px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);



  background: linear-gradient(160deg, var(--surface2) 0%, var(--bg2) 45%, var(--surface3) 100%);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}





.hero-preview--shaped {
  aspect-ratio: var(--skeleton-aspect);
  width: 100%;
  min-height: 0;
  max-height: 480px;
  justify-self: center;
}
.hero-preview-glow {
  position: absolute;
  inset: 20% 15%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-preview-inner { position: relative; z-index: 1; text-align: center; padding: 32px; max-width: 360px; }
.hero-preview-icon { font-size: 42px; margin-bottom: 12px; opacity: 0.7; }













.hero-preview .hero-preview-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--text); }
.hero-preview p { margin: 0; color: var(--muted); font-size: 14px; }
.hero-preview--rendering .render-skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: skeleton-sweep 2.5s ease-in-out infinite;
}
@keyframes skeleton-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.render-pulse-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-ring 2s ease infinite;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}
.render-live-message { font-size: 15px; font-weight: 600; }
.starter-cards { display: grid; gap: 10px; margin-top: 16px; }




.starter-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.starter-card:hover { border-color: var(--accent); background: var(--panel-elevated); text-decoration: none; }
.starter-card-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.starter-card-prompt { font-size: 13px; color: var(--muted); }
.recent-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.recent-thumb img, .recent-thumb video { width: 100%; height: 100%; object-fit: contain; background: var(--bg-deep); }
.render-experience { margin-bottom: 24px; }
.render-experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.render-title { font-size: 32px; font-weight: 800; margin: 0; letter-spacing: -0.03em; }
.render-hero { margin-bottom: 20px; }






.run-shell { margin-bottom: 24px; }
.run-head { margin-bottom: 18px; }
.run-title { font: 800 clamp(22px, 4vw, 28px)/1.2 var(--font-display); letter-spacing: -0.02em; margin: 6px 0 10px; overflow-wrap: anywhere; }
.run-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.run-status .token-cost { font-size: 12px; }
.run-status-line { margin: 0 0 10px; font: 600 15px/1.4 var(--font-ui); color: var(--text); }
.run-meta { margin: 0 0 10px; }
.run-stepper { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.run-step { display: inline-flex; align-items: center; gap: 7px; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; font: 600 12.5px/1.2 var(--font-ui); color: var(--muted); }
.run-step-n { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface2); font-size: 11px; }
.run-step--done { color: var(--text); border-color: var(--accent-ring); }
.run-step--done .run-step-n { background: var(--accent-soft); color: var(--accent); }
.run-step--active { color: var(--accent); border-color: var(--accent-ring); }
.run-step--review { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.run-step--review .run-step-n, .run-step--active .run-step-n { background: var(--accent); color: var(--on-accent); }
.run-step--failed { color: var(--danger, #b3453f); border-color: var(--danger, #b3453f); }
.run-actions, .run-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.run-actions { margin-top: 12px; }
.run-nav { margin: 20px 0; }
.run-action { display: contents; }
.run-action form { display: inline-flex; margin: 0; }
.run-head > .alert, .run-head > .panel.alert { margin: 0 0 10px; }





.run-gate > .gate-decision { position: sticky; bottom: 0; z-index: 3; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px var(--space-md) calc(12px + env(safe-area-inset-bottom)); margin: 0 0 var(--space-md); box-shadow: 0 -10px 24px -14px rgba(0, 0, 0, 0.35); }





html:has(.run-gate > .gate-decision) { scroll-padding-bottom: calc(var(--gate-bar-h, 80px) + 16px); }
body:has(.run-gate > .gate-decision) > .notif-toasts { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }

.run-step-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 14px; margin: 0 0 8px; border: 1px dashed var(--line2, var(--border)); border-radius: var(--radius-md); }
.run-step-line > h2 { margin: 0; font: 700 14px/1.35 var(--font-ui); color: var(--text); }
.run-step-line > p { margin: 0; font-size: 13px; }

.run-past { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 var(--space-md); margin: 0 0 8px; }
.run-past > .ux-fold-body > .panel { border: 0; background: none; padding: 0 0 4px; }
@media (max-width: 640px) {


  .run-stepper { flex-wrap: nowrap; }
  .run-step:not(.is-current) { flex: none; padding: 4px; border-color: transparent; background: none; }
  .run-step:not(.is-current) .run-step-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .run-step.is-current { flex: 0 1 auto; }
  .run-step.is-current .run-step-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}






.render-preview-stage {
  --stage-floor: 480px;
  min-height: var(--stage-floor);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.render-preview-media { width: 100%; }
.render-preview-media img, .render-preview-media video, .render-preview-media audio {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  background: #000;
}
.render-preview-media audio {
  max-height: none;
  padding: 24px 16px;
  background: transparent;
}




.render-preview-stage--player { min-height: 0; display: block; }




.hero-player { width: 100%; aspect-ratio: 16 / 9; background: #000; max-height: min(78vh, 760px); }
.hero-player video { width: 100%; height: 100%; max-height: min(78vh, 760px); object-fit: contain; display: block; background: #000; }

.scene-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; position: relative; }
.scene-strip-tile {
  position: relative; flex: 0 0 auto; width: 128px; aspect-ratio: 16 / 9;
  border: 2px solid var(--border); border-radius: 8px; overflow: hidden;
  background: #000; padding: 0; cursor: pointer;
}
.scene-strip-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.scene-strip-tile.is-current { border-color: var(--accent); }
.scene-strip-tile[disabled] { cursor: default; opacity: 0.6; }
.scene-strip-dur {
  position: absolute; right: 4px; bottom: 4px; font-size: 11px; line-height: 1;
  padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.65); color: #fff;
}
@media (max-width: 700px) {

  .render-preview-stage--player { border-left: 0; border-right: 0; border-radius: 0; }
  .scene-strip-tile { width: 104px; }
}




.render-preview-stage--audio {
  min-height: 0;
  padding: 30px 22px;
  background: linear-gradient(160deg, var(--surface2), var(--surface));
}
.render-preview-stage--audio .render-preview-media {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.render-preview-stage--audio .render-preview-media audio { width: 100%; padding: 0; }





.audio-player-card { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; padding: 26px 22px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--panel-elevated); }
.audio-player-icon { width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-ring); color: var(--accent); }
.audio-player-icon svg { width: 26px; height: 26px; }
.audio-player-title { margin: 0; font: 500 17px/1.3 var(--font-display); color: var(--text); text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.audio-player-card audio { width: 100%; padding: 0; }
.cinematic-status-bar {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel-elevated);
}
.cinematic-status-bar--live { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.cinematic-status-message { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.cinematic-status-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.status-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--muted);
}
.status-chip--backend { color: var(--warn); }
.stage-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  overflow-x: auto;










  position: relative;
}
.stage-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; }
.stage-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--input-bg);
}
.stage-step--done .stage-dot { background: var(--ok); border-color: var(--ok); }
.stage-step--active .stage-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-ring 2s ease infinite;
}
.stage-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stage-step--active .stage-label { color: var(--text); }
.stage-hint {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  max-width: 88px;
  line-height: 1.3;
  opacity: 0.85;
}
.stage-step--active .stage-hint { color: var(--accent); opacity: 1; }
.stage-step--done .stage-hint { opacity: 0.6; }
.stage-connector {
  flex: 1;
  height: 2px;
  min-width: 24px;
  background: var(--border);
  margin-bottom: 28px;
  transition: background 0.45s ease;
}
.stage-connector--done { background: linear-gradient(90deg, var(--ok), var(--accent-soft)); }



.run-stage-timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.run-stage { display: flex; gap: 12px; padding: 0 0 14px; }
.run-stage-rail { display: flex; flex-direction: column; align-items: center; width: 14px; flex: none; padding-top: 4px; }
.run-stage-rail::after { content: ''; flex: 1; width: 2px; background: var(--border); margin-top: 4px; }
.run-stage:last-child .run-stage-rail::after { display: none; }
.run-stage--done .stage-dot { background: var(--ok); border-color: var(--ok); }
.run-stage--active .stage-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-ring 2s ease infinite;
}
.run-stage--failed .stage-dot { background: var(--danger, #b3453f); border-color: var(--danger, #b3453f); }
.run-stage-body { min-width: 0; flex: 1; }
.run-stage-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.run-stage-label { font-size: 13.5px; }
.run-stage-hint { font-size: 12px; }
.render-preview-stage {
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.render-preview-stage--loading { border-color: var(--accent); }
.render-preview-stage--revealed .render-preview-reveal {
  opacity: 1;
  animation: preview-fade-in 0.55s ease forwards;
}
.render-preview-reveal { opacity: 0; }
@keyframes preview-fade-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}
.cinematic-status-message--fade {
  animation: message-fade 0.28s ease;
}
@keyframes message-fade {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
.badge--updated { animation: badge-pulse 0.4s ease; }
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.ux-guidance {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border);
  background: var(--panel-elevated);


  overflow-wrap: anywhere;
  word-break: break-word;
}
.ux-guidance--recovery { border-color: var(--warn); color: var(--warn); }
.ux-guidance--waiting { border-color: var(--accent); color: var(--accent); }
.ux-guidance--honesty { border-color: var(--accent-ring); background: var(--accent-soft); }

.credit-reach { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text); }
.credit-reach__item { display: inline-flex; gap: 6px; align-items: baseline; }
.credit-reach__item--not_covered { color: var(--muted); }
.credit-reach__mark { font-weight: 700; }
.credit-reach__state { color: var(--muted); font-weight: 400; }


.credit-news-open { display: flex; align-items: center; justify-content: center; margin: 10px 0 0; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font-weight: 600; text-decoration: none; }
.credit-news-open:hover { border-color: var(--accent); color: var(--accent); }

.wallet-paused-runs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wallet-paused-runs li a { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.wallet-paused-runs li a:hover { border-color: var(--accent); }
.wallet-paused-runs .paused-run-title { font-weight: 600; }
.wallet-paused-runs .paused-run-meta { color: var(--muted); font-size: 13px; }

.soft-source-choice p { margin: 0 0 8px; }
.soft-source-choice .soft-source-choice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.ux-guidance--blocked {
  border-color: var(--bad);
  background: rgba(255, 107, 122, 0.08);
  color: var(--text);
}
.alert--fade-in { animation: message-fade 0.35s ease; }
.review-workspace .render-preview-stage { --stage-floor: 520px; }
.review-workspace .table-compact { font-size: 14px; }

.audit-workbench {
  display: grid;





  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  align-items: start;
}
.audit-input-col,
.audit-output-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit-col-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 6px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.audit-col-header--sub {
  font-size: 9px;
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom-style: dashed;
}
.audit-prompt-block {
  margin: 0;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 13px;


  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 108px;
  overflow-y: auto;
  position: relative;
}
.audit-meta-grid {
  display: grid;


  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.audit-meta-cell {
  padding: 8px 11px;
  background: var(--panel-elevated);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.audit-meta-key {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.audit-meta-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-input-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.audit-media-item {
  flex: 1 1 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #080a0f;
}
.audit-media-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 5px 9px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.audit-media-item img,
.audit-media-item video {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  max-height: 176px;
}
.audit-media-item audio { width: 100%; display: block; padding: 10px; box-sizing: border-box; }


.audit-media-item--kept { display: flex; flex-direction: column; }
.audit-media-kept-chip { flex: 1; display: flex; align-items: center; justify-content: center; padding: 22px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }

.audit-file-chip { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 22px 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.audit-file-chip:hover { color: var(--text); }
.audit-output-col .render-preview-stage { --stage-floor: 320px; }
.audit-experience .render-preview-stage { --stage-floor: 320px; }
@media (max-width: 1100px) {


  .audit-workbench { grid-template-columns: minmax(0, 1fr); }
}
.queue-cell--updated { animation: message-fade 0.3s ease; }
.debug-drawer {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
}
.debug-drawer summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  list-style: none;
}
.debug-drawer summary::-webkit-details-marker { display: none; }
.debug-drawer-body { padding: 0 16px 16px; }
.hub-hero {
  display: block;
  position: static;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 28px;
  backdrop-filter: none;
  z-index: auto;
}
.hub-hero h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.03em; color: var(--text); }
.hub-subtitle { margin: 0; color: var(--muted); font-size: 16px; max-width: 640px; }
.hub-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}
.hub-card {
  display: block;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  text-decoration: none;
}
.hub-card-icon { font-size: 28px; display: block; margin-bottom: 12px; }



.hub-card h2 { margin: 0 0 8px; font-size: 18px; }
.hub-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cinematic-empty { padding: 48px 24px; border-radius: var(--radius-lg); background: var(--panel); }
.cinematic-empty h3 { margin: 0 0 8px; font-size: 20px; }
.empty-samples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.empty-sample {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  font-size: 12px;
  color: var(--muted);
}
.render-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.render-meta-grid { margin-top: 12px; font-size: 13px; }
.render-prompt { font-size: 14px; margin-top: 12px; line-height: 1.6; }
.bad-text { color: var(--bad); font-size: 12px; margin-top: 4px; }
.checkbox { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-weight: 500; }
.form-actions { margin-top: 16px; }




.radio-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
  font-size: 13.5px; color: var(--text); user-select: none;
}
.radio-chip input { margin: 0; }
.radio-chip:hover { border-color: var(--border-strong); }
.radio-chip:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent);
}

.radio-chip:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.field-hint, .form-hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.inline { display: inline; }
.empty-state {
  text-align: center;
  padding: 32px 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
}
.empty-state .button { margin-top: 12px; }
.health-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 12px 0;
}
.health-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface-2);
}
.health-card .label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.health-card .value { font-size: 18px; font-weight: 700; }
.production-dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.production-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 14px 0;
}
.production-stat {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-2);
}
.production-stat .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.production-stat .value { font-size: 20px; font-weight: 700; margin-top: 4px; }
.production-stat .value.ok { color: var(--ok); }
.production-stat .value.warn { color: var(--warn); }
.production-latest-thumb { max-width: 320px; margin: 12px 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.production-latest-thumb img { width: 100%; display: block; }
.scene-flow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  align-items: center;
}
.scene-flow-node {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 90px;
  background: var(--surface-2);
}
.scene-flow-num { font-weight: 700; font-size: 16px; }
.scene-flow-role { font-size: 12px; }
.scene-flow-arrow { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.scene-flow-table { margin-top: 12px; font-size: 13px; }
.artifact-lineage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  margin: 8px 0 12px;
}
.lineage-step {
  flex: 1 1 100px;
  max-width: 140px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  background: var(--bg2);
  font-size: 11px;
}
.lineage-step.done { border-color: var(--ok); }
.lineage-step.pending { opacity: 0.55; }
.lineage-label { font-weight: 700; margin-bottom: 4px; }
.lineage-media img, .lineage-media video { max-height: 72px; border-radius: 4px; }
.lineage-arrow { color: var(--muted); align-self: center; font-size: 14px; }
.timeline-strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; align-items: flex-end; }
.timeline-segment {
  height: 28px;
  border-radius: 4px;
  position: relative;
  min-width: 20px;
}
.timeline-segment-label { position: absolute; bottom: -18px; left: 2px; font-size: 10px; color: var(--muted); }
.timeline-emotions { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-top: 24px; }
.timeline-emotion { padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; }
.gallery-lineage { margin: 4px 0; font-size: 12px; }
.version-history { margin: 8px 0; font-size: 13px; }
.version-history table { font-size: 12px; }
.compare-view video { max-height: 360px; }
.scene-review-card h4 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }




.chunk-plan-preview { margin: 10px 0; padding: 10px; border: 1px dashed var(--border); border-radius: 8px; font-size: 13px; }
.chunk-plan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (max-width: 1100px) {



  .create-workspace { grid-template-columns: minmax(0, 1fr); }
  .create-preview-col, .create-controls-col { min-width: 0; max-width: 100%; }
  .create-preview-col { position: static; }
  .hero-preview { min-height: 320px; max-width: 100%; }
  .render-preview-stage { --stage-floor: 320px; max-width: 100%; }


  .create-workspace--idle > .create-preview-col, .create-workspace--idle > .create-controls-col { grid-column: auto; grid-row: auto; }
  .create-workspace--idle .hero-preview--empty { min-height: 0; place-items: stretch; }
  .create-workspace--idle .hero-preview--empty .hero-preview-glow { display: none; }
  .create-workspace--idle .hero-preview--empty .hero-preview-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; max-width: none; padding: 14px 16px; text-align: left; }
  .create-workspace--idle .hero-preview--empty .hero-preview-icon { margin: 0; grid-row: span 2; }
  .create-workspace--idle .hero-preview--empty .hero-preview-icon svg { width: 24px; height: 24px; }
  .create-workspace--idle .hero-preview--empty .hero-preview-title { margin: 0 0 2px; font-size: 15px; }
  .create-workspace--idle .hero-preview--empty p { font-size: 13px; }
}
@media (max-width: 900px) {
  .studio-layout, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .result-panel { position: static; }
  main { padding: 20px 16px 32px; }
  .render-title, .hub-hero h1 { font-size: 26px; }
}
@media (min-width: 1800px) {
  .render-preview-stage { --stage-floor: 560px; }
}
.video-process-range {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}













.video-process-range .video-process-range__title { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.video-process-range__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.radio-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  background: var(--bg);
}
.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.video-process-range__meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.video-process-range__meta .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.help-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 20px; }
.help-topic-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.help-topic { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel); }
.help-impact { display: grid; gap: 8px; margin: 12px 0 0; font-size: 13px; }
.help-impact dt { color: var(--muted); font-weight: 600; }
.help-impact dd { margin: 0 0 8px; }
.help-impact--detail { max-width: 640px; }







.operation-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.operation-heading, .panel .operation-heading { font-size: 18px; font-weight: 700; margin: 0 0 12px; letter-spacing: normal; }
.operation-help { display: inline-flex; gap: 6px; margin-left: 4px; flex-wrap: wrap; }
.help-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-elevated);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.help-chip__label { pointer-events: none; }
.help-chip:hover { background: var(--accent-soft); text-decoration: none; }
.settings-form { display: grid; gap: 12px; max-width: 480px; margin-top: 20px; }
.settings-form label { font-weight: 600; font-size: 13px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.flash--ok { color: var(--ok); margin-bottom: 12px; }















.legal-page { max-width: 780px; margin: 0 auto; padding: 4px 0 40px; }
.legal-page--consent { max-width: 720px; }
.legal-title { font-size: clamp(20px, 3.4vw, 26px); margin: 6px 0 4px; }
.legal-stamp { margin: 8px 0 4px; font-size: 13.5px; }
.legal-langnote { margin: 10px 0; font-size: 13.5px; color: var(--muted); }
.legal-reason { margin: 10px 0; font-size: 13.5px; font-weight: 600; }
.legal-scroll { margin: 14px 0 18px; font-size: 13.5px; line-height: 1.62; }


.legal-page--consent .legal-scroll {
  max-height: 46vh; overflow-y: auto; padding: 14px 16px; position: relative;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.legal-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.legal-section { margin: 0 0 16px; }
.legal-heading { font-size: 15px; margin: 16px 0 6px; }
.legal-section:first-child .legal-heading { margin-top: 4px; }
.legal-subheading { font-size: 13.5px; margin: 12px 0 4px; color: var(--muted); }
.legal-list { margin: 4px 0 0; padding-left: 20px; }
.legal-list li { margin-bottom: 7px; }





.legal-doc h1 { font-size: clamp(19px, 3.2vw, 24px); margin: 4px 0 12px; line-height: 1.3; }
.legal-doc h2 { font-size: 16px; margin: 24px 0 8px; }
.legal-doc h3 { font-size: 14px; margin: 18px 0 6px; }
.legal-doc p { margin: 0 0 10px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 12px; padding-left: 22px; }
.legal-doc li { margin-bottom: 7px; }


.legal-doc li > ul, .legal-doc li > ol, .legal-doc li > p { margin: 7px 0 0; }
.legal-doc li > :last-child { margin-bottom: 0; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.legal-doc blockquote {
  margin: 0 0 12px; padding: 10px 14px;
  border-left: 3px solid var(--line2); border-radius: 0 8px 8px 0; background: var(--surface2);
}
.legal-doc blockquote > :last-child { margin-bottom: 0; }
.legal-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em;
  padding: 1px 5px; border-radius: 5px; background: var(--surface3);
}




.legal-doc table { border-collapse: collapse; font-size: 12.5px; min-width: 460px; }
.legal-doc th, .legal-doc td {
  border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top;
}
.legal-doc th { background: var(--surface2); font-weight: 600; }
.legal-doc td > p:last-child, .legal-doc th > p:last-child { margin-bottom: 0; }




.landing-page { max-width: 780px; margin: 0 auto; padding: 4px 0 40px; }
.landing-h1 { font-size: clamp(22px, 4vw, 30px); line-height: 1.25; margin: 8px 0 14px; }

.landing-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.landing-cta .dc-btn { flex: 0 1 auto; }




.landing-page .legal-doc h2 { font-size: 19px; margin: 30px 0 10px; }
.landing-page .legal-doc h3 { font-size: 16.5px; margin: 26px 0 8px; }
.landing-page .legal-doc p, .landing-page .legal-doc li { font-size: 14.5px; }



.landing-related, .landing-index { margin: 26px 0 0; }
.landing-index { max-width: 780px; margin: 30px auto 0; padding: 0 0 8px; }
.landing-related h2, .landing-index h2 { font-size: 16px; margin: 0 0 10px; }
.landing-related ul, .landing-index ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.landing-related a, .landing-index a { color: var(--accent); text-decoration: none; font-size: 14px; }
.landing-related a:hover, .landing-index a:hover { text-decoration: underline; }
.landing-related { border-top: 1px solid var(--line); padding-top: 18px; }



@media (pointer: coarse) {
  .landing-related a, .landing-index a { display: block; min-height: 44px; line-height: 44px; }
  .landing-related ul, .landing-index ul { gap: 2px 22px; }
}



.contact-page { max-width: 780px; margin: 0 auto; padding: 4px 0 40px; }
.contact-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }




.contact-channels li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-channels a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-channels a:hover { text-decoration: underline; }
.contact-channels a svg { flex: none; }
.contact-mark { opacity: .92; }
.contact-handle { color: var(--muted); font-size: 13px; }

@media (pointer: coarse) {


  .contact-channels a { min-height: 44px; }
}
.legal-accept {
  display: grid; gap: 10px; padding: 16px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}





















@media (max-width: 900px) {
  .legal-page--consent .legal-scroll { max-height: none; overflow-y: visible; }
  .legal-page--consent .legal-accept {
    position: sticky; bottom: 0; z-index: 2;
    margin-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 24px -12px rgba(0, 0, 0, 0.55);
  }
}
.legal-accept form { display: grid; gap: 10px; justify-items: start; }


.legal-wrap { margin: 0; font-size: 13.5px; line-height: 1.55; justify-self: stretch; }
.legal-decline { margin: 4px 0 0; font-size: 12.5px; }
.legal-cycle { margin: 12px 2px 0; font-size: 12.5px; }




.ux-fold > .ux-fold-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; user-select: none; }
.ux-fold > .ux-fold-summary::-webkit-details-marker { display: none; }
.ux-fold-title { min-width: 0; font: 700 13px/1.35 var(--font-ui); color: var(--text); }
.ux-fold-summary > h2.ux-fold-title { margin: 0; font-size: 18px; }
.ux-fold-toggle { flex: none; font: 600 12.5px/1 var(--font-ui); color: var(--accent); white-space: nowrap; }
.ux-fold-toggle::after { content: " ▾"; }
.ux-fold[open] > .ux-fold-summary .ux-fold-toggle::after { content: " ▴"; }
.ux-fold:not([open]) > .ux-fold-summary .ux-fold-hide, .ux-fold[open] > .ux-fold-summary .ux-fold-show { display: none; }
.ux-fold[open] > .ux-fold-body { margin-top: 8px; }









.gate-decision { margin-top: 12px; }



.gate-decision > .gate-decision-note > .ux-guidance { margin: 0 0 8px !important; }


.gate-default { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
@media (max-width: 900px) {



  .gate-decision {
    position: sticky; bottom: 0; z-index: 3;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    background: var(--panel);
    box-shadow: 0 -14px 14px -10px var(--panel);
  }
  .gate-decision > .dc-btn, .gate-decision > form > .dc-btn { width: 100%; min-height: 48px; justify-content: center; }




  html:has(.gate-decision) { scroll-padding-bottom: calc(var(--gate-bar-h, 80px) + 16px); }


  body:has(.gate-decision) > .notif-toasts { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }
}







@media (min-width: 901px) { .scene-table .scene-cell--prose { max-width: 34ch; } }
@media (max-width: 900px) {
  .scene-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap > .scene-table, .scene-table tbody { display: block; width: 100%; }
  .scene-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .scene-table td { display: block; grid-column: 1 / -1; min-width: 0; max-width: none; padding: 0; border: 0; overflow-wrap: anywhere; }
  .scene-table td::before { content: attr(data-label); display: inline-block; margin: 0 8px 2px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
  .scene-table td.scene-cell--at-number { grid-column: 1; grid-row: 1; font-weight: 700; }
  .scene-table td.scene-cell--at-role { grid-column: 2; grid-row: 1; font-weight: 600; }
  .scene-table td.scene-cell--at-length { grid-column: 3; grid-row: 1; text-align: right; }
  .scene-table td.scene-cell--at-number::before, .scene-table td.scene-cell--at-role::before, .scene-table td.scene-cell--at-length::before { content: none; }
  .scene-table td.scene-cell--empty { display: none; }
}
.hardware-limit-badge { font-size: 12px; }
.ux-guidance--ok {
  border-color: var(--ok, #2d6a4f);
  background: rgba(45, 106, 79, 0.08);
}









.skip-link { position: fixed; top: 8px; left: 8px; z-index: var(--z-toast); display: flex; align-items: center; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font: 700 14px/1 var(--font-ui); text-decoration: none; transform: translateY(-160%); transition: transform 0.16s var(--ease); }


.skip-link:focus { transform: translateY(0); outline: 2px solid var(--text); outline-offset: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; background: var(--surface2); }
#app-main-content:focus { outline: none; }




html[data-nav-pending]::before {
  content: ''; position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform-origin: 0 50%; animation: nav-pending 900ms ease-in-out infinite;
  z-index: var(--z-toast); pointer-events: none;
}
@keyframes nav-pending { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  html[data-nav-pending]::before { animation: none; opacity: 0.6; }
}
.app-shell { min-height: 100vh; min-height: 100dvh; }
.app-grid { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
@media (max-width: 900px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }













.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; height: 100%; width: var(--drawer-w, 286px); max-width: 85vw;
  overflow-y: auto; z-index: var(--z-drawer);
  transform: translateX(-102%);
  visibility: hidden;
  box-shadow: none;
  transition: transform 0.26s var(--ease), visibility 0s linear 0.26s;
}
[data-drawer="open"] .drawer {
  transform: translateX(0);
  visibility: visible;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.6);
  transition: transform 0.26s var(--ease), visibility 0s linear 0s;
}
.drawer-scrim {
  position: fixed; inset: 0; background: var(--scrim); z-index: var(--z-scrim); border: 0;
  opacity: 0; visibility: hidden; transition: opacity 0.26s var(--ease), visibility 0s linear 0.26s;
}
[data-drawer="open"] .drawer-scrim { opacity: 1; visibility: visible; transition: opacity 0.26s var(--ease), visibility 0s linear 0s; }

.app-sidebar {
  background: var(--sidebar-bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px; padding: 20px 14px 16px;

  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}






@media not all and (max-width: 900px) {
  [data-drawer] .app-sidebar.drawer {
    position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; width: auto; max-width: none;
    z-index: auto; transform: none; visibility: visible; box-shadow: none; transition: none;
  }
  [data-drawer] .app-scrim.drawer-scrim { display: none; }
}





.app-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 18px; }
.app-brand {
  display: flex; align-items: center; gap: 11px; padding: 6px 8px; min-width: 0;
  background: none; border: none; cursor: pointer; text-align: left; text-decoration: none;
}
.app-brand:hover { text-decoration: none; }



.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, #17171b, #08080a); color: #e3a55f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(227, 165, 95, 0.16);
}
.brand-name { font: 800 14px/1 var(--font-ui); letter-spacing: 0.01em; color: var(--text); display: block; }
.brand-sub { font: 600 9px/1 var(--font-mono); letter-spacing: 0.22em; color: var(--faint); display: block; margin-top: 2px; }
.app-nav { display: flex; flex-direction: column; gap: 3px; }
.app-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; min-height: 44px;
  color: var(--muted); font: 600 14px/1 var(--font-ui); text-decoration: none;
  border: 1px solid transparent; transition: all 0.15s var(--ease); cursor: pointer;
}
.app-nav-link svg, .app-nav-link .nav-ic { width: 19px; height: 19px; flex: none; }
.app-nav-link:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.app-nav-link.active { color: var(--text); background: var(--accent-soft); border: 1px solid var(--accent-ring); }
.app-nav-link.active svg { stroke: var(--text); }
.app-contact { display: flex; flex-direction: column; gap: 6px; }
.app-contact-label { font: 600 10.5px/1.2 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 2px; }
.app-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }







.app-contact-link { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  padding: 0 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font: 600 12px/1 var(--font-ui); text-decoration: none; }
.app-contact-link:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.app-contact-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-contact-link svg { flex: none; }



.app-contact-mark { flex: 1 1 0; min-width: 40px; padding: 0; }
.app-sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.app-account { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }












.app-account-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font-ui); color: var(--on-accent);
  background-color: var(--accent-press); background-image: linear-gradient(135deg, var(--accent-hover), var(--accent-press)); }
.app-account-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-account-name { font: 600 12.5px/1.2 var(--font-ui); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-account-email { font: 500 11px/1.2 var(--font-ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-account-out-form { flex: none; margin: 0; display: flex; }
.app-account-out { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); background: transparent; border: 0; padding: 0; cursor: pointer; }
.app-account-out:hover { color: var(--text); background: var(--surface-2, rgba(255,255,255,.06)); }
.gpu-chip { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.gpu-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(127, 127, 127, 0.16); flex: none; transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.gpu-chip--ready .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(103, 192, 148, 0.18); }

.gpu-chip--warn .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(227, 165, 95, 0.18); }



.gpu-chip--pending .dot { background: var(--muted); box-shadow: 0 0 0 3px rgba(163, 160, 151, 0.16); animation: gpuDotPulse 1.4s ease-in-out infinite; }
@keyframes gpuDotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.gpu-chip-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gpu-chip-title { font: 600 12px/1 var(--font-ui); color: var(--text); }
.gpu-chip-meta { font: 500 11.5px/1.2 var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { min-width: 0; display: flex; flex-direction: column; }






.app-brand--top { display: none; align-items: center; text-decoration: none; color: inherit; margin-right: 2px; }
@media (max-width: 900px) { .app-brand--top { display: inline-flex; } }
.app-brand--top .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
.app-brand--top .brand-mark svg { height: 15px; width: 15px; }
.app-brand--top .brand-sub { display: none; }
.app-topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 14px max(30px, env(safe-area-inset-right)) 14px max(30px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: var(--z-nav); background: var(--topbar-bg);
}
@media (max-width: 900px) { .app-topbar { padding: 11px max(16px, env(safe-area-inset-right)) 11px max(16px, env(safe-area-inset-left)); } }











@media (max-width: 480px) {
  .app-topbar { gap: 8px; }
  .app-topbar .dc-btn-primary, .app-topbar .dc-btn-outline { padding-left: 12px; padding-right: 12px; margin-left: auto; }
}
.app-burger {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text); flex: none;
}
@media (max-width: 900px) { .app-burger { display: inline-flex; } }
.topbar-search { display: flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.topbar-search input { border: none; background: none; color: var(--text); font: 500 13px/1 var(--font-ui); width: 230px; }
.topbar-search input::placeholder { color: var(--muted); }
@media (max-width: 900px) { .topbar-search { display: none; } }
.app-topbar-spacer { flex: 1; }





.lang-pick { position: relative; flex: none; }
.lang-pick-summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; user-select: none; padding: 6px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 700 11px/1 var(--font-ui); letter-spacing: 0.04em; color: var(--muted); transition: color 0.15s ease, border-color 0.15s ease; }
.lang-pick-summary::-webkit-details-marker { display: none; }
.lang-pick-summary:hover { color: var(--text); }
.lang-pick[open] > .lang-pick-summary { color: var(--text); border-color: var(--accent); }
.lang-pick-caret { transition: transform 0.15s ease; }
.lang-pick[open] .lang-pick-caret { transform: rotate(180deg); }












.lang-pick-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: var(--z-popover); width: max-content; min-width: 140px; max-width: 200px; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.lang-pick-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font: 600 12px/1.2 var(--font-ui); transition: color 0.15s ease, background 0.15s ease; }
.lang-pick-row:hover { color: var(--text); background: var(--surface-2, rgba(255, 255, 255, 0.05)); }
.lang-pick-name { flex: 1 1 auto; min-width: 0; }
.lang-pick-tick { flex: none; }
.lang-pick--settings .lang-pick-summary { font-size: 12px; letter-spacing: 0; }






.lang-flag { display: block; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }










.lang-pick-row.is-current { color: var(--on-accent); background: var(--accent); }
.job-chip { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 11px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.job-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 560px) { .job-chip { display: none; } }

.token-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 700 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--text); text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.token-chip svg { color: var(--accent); flex: none; }
.token-chip:hover { border-color: var(--accent); }
.token-chip.is-low { color: var(--danger, #e0564f); border-color: var(--danger, #e0564f); }
.token-chip.is-low svg { color: var(--danger, #e0564f); }
@media (max-width: 560px) { .token-chip { padding: 6px 9px; } }



.topup-btn { gap: 8px; }
.topup-balance { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; font-weight: 700; padding-right: 8px; border-right: 1px solid currentColor; opacity: .95; }












.topup-bonus { display: inline-flex; align-items: center; gap: 3px; }
.topup-bonus::before { content: "("; }
.topup-bonus::after { content: ")"; }
.topup-bonus svg { flex: none; }


.topup-btn:has(.topup-balance.is-low) { box-shadow: 0 0 0 2px var(--danger, #e0564f); }
@media (max-width: 560px) {
  .topup-balance { padding-right: 6px; gap: 4px; }


  .topup-bonus-num { display: none; }
  .topup-bonus::before, .topup-bonus::after { content: none; }
}

.token-cost { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.token-cost--refunded { color: var(--muted); text-decoration: line-through; }

.wallet-topup { margin: 0 0 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, var(--surface), var(--bg2)); }
.wallet-topup h3 { margin: 0 0 10px; font-size: 15px; }



.wallet-topup-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 700px) {
  .wallet-topup-grid { grid-template-columns: minmax(0, 1fr); justify-items: start; }


  .wallet-topup-grid > div:first-child { width: min(100%, 300px); }


  .wallet-va-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wallet-va-label { grid-column: 1 / -1; }
}
.wallet-qr { border-radius: 10px; background: #fff; padding: 6px; display: block; width: 100%; height: auto; }
.wallet-qr-cap { color: var(--muted); font-size: 11px; text-align: center; margin-top: 6px; }
.wallet-topup-grid > div:last-child { max-width: 560px; }
.wallet-va-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.wallet-va-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.wallet-mono { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow-x: auto; scrollbar-width: none; position: relative; }
.wallet-code { font-size: 16.5px; letter-spacing: 0.04em; }




.wallet-plain { font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.wallet-qr[data-media-view] { cursor: zoom-in; }
.wallet-qr--pending { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border, #555); border-radius: 8px; font-size: 12px; opacity: 0.7;
  text-align: center; padding: 10px; }







.wallet-details-placeholder { aspect-ratio: auto; padding: 18px 14px; margin-top: 12px; max-width: 560px; }
.wallet-topup-details { margin-top: 12px; }


.wallet-paypal-details { margin-top: 10px; }
.wallet-paypal-details .dc-btn { margin-top: 8px; }





.wallet-paypal-buttons { margin-top: 10px; max-width: 360px; }
.wallet-paypal-fallback { display: inline-block; margin-top: 8px; padding: 0; background: none;
  border: none; color: inherit; opacity: 0.75; font-size: 13px; text-decoration: underline; cursor: pointer; }
.wallet-paypal-fallback:hover { opacity: 1; }
.settings-qr-preview { margin: 10px 0 4px; }
.wallet-tier-lead { font-size: 13px; margin: 12px 0 0; }









.wallet-tier-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.wallet-tier-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 1px solid var(--line2, rgba(255,255,255,0.13)); border-radius: 12px; padding: 12px 14px;
  background: var(--bg2, rgba(255,255,255,0.03)); color: inherit; cursor: pointer; min-width: 118px; text-align: left; }
.wallet-tier-chip:hover { border-color: var(--accent, #e3a55f); }



.wallet-tier-chip--static { cursor: default; }
.wallet-tier-chip--static:hover { border-color: var(--line2, rgba(255,255,255,0.13)); }


.wallet-tier-chip.active { background: var(--accent-soft, rgba(227,165,95,0.13)); border-color: var(--accent, #e3a55f); color: var(--accent, #e3a55f); box-shadow: inset 0 0 0 1px var(--accent); }
.wtc-amt { font-weight: 700; font-size: 15px; }
.wtc-tok { font-size: 12.5px; opacity: 0.75; }
.wtc-bonus { font-size: 11.5px; color: var(--ok, #4caf7d); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; margin-top: 2px; }

.wtc-split { font-size: 11px; opacity: 0.6; }



.wtc-first { font-size: 11px; font-weight: 600; color: var(--ok, #4caf7d); }
.wallet-first-topup { margin: 10px 0 0; padding: 9px 12px; border-radius: 9px; background: color-mix(in srgb, var(--ok) 10%, transparent); border-left: 2px solid var(--ok); font-size: 13px; max-width: 62ch; }
.wallet-balance-split { color: var(--muted); font-size: 12px; margin-top: 4px; }





.wallet-topup-tabs { margin: 12px 0 10px; }
.wallet-intl .wallet-tier-lead { margin-top: 4px; }
.wallet-method-tabs { margin: 8px 0 10px; }
.wallet-copy { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  padding: 0; flex: none; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.wallet-copy svg { pointer-events: none; }
.wallet-copy .wc-ic-check { display: none; }
.wallet-copy.copied .wc-ic-check { display: block; }
.wallet-copy.copied .wc-ic-copy { display: none; }
.wallet-copy.copied { color: var(--ok, #4caf7d); }
@media (pointer: coarse) { .wallet-copy { width: 44px; height: 44px; } }
.wallet-live-region { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


.q-perk { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--ok) 9%, var(--surface)); max-width: 62ch; }
.q-perk-ic { flex: none; color: var(--ok); margin-top: 2px; }
.q-perk-title { font-weight: 700; font-size: 13.5px; margin: 0 0 3px; color: var(--text); }
.q-perk-sub { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.wallet-topup-hint { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 12%, transparent); border-left: 2px solid var(--accent); font-size: 13px; max-width: 560px; }
.wallet-topup-warn { margin: 0 0 10px; padding: 9px 12px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 16%, transparent); font-size: 13px; max-width: 62ch; }
.wallet-topup-history { margin-top: 16px; }
.wallet-topup-history h3 { margin: 0 0 8px; font-size: 14px; }
.wallet-topup-date { color: var(--muted); font-size: 11.5px; margin: 8px 0 3px; }
.wallet-topup-row { font-size: 13.5px; padding: 3px 0; }




.wallet-gateway-orders { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); max-width: 62ch; }
.wallet-gateway-orders h4 { margin: 0 0 6px; font-size: 13.5px; }
.wallet-gateway-orders ul { list-style: none; margin: 0; padding: 0; }
.wallet-gateway-order { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.wallet-gateway-order:first-child { border-top: 0; }
.wmo-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.wmo-at { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.wmo-status { font-size: 12px; border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; }
.wmo-status.is-pending { color: var(--muted); }
.wmo-status.is-failed { color: var(--danger); }
.wmo-check { margin-left: auto; font-size: 12.5px; color: var(--accent); }
@media (pointer: coarse) { .wmo-check { display: inline-flex; align-items: center; min-height: 44px; } }
.wallet-gateway-note { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.wallet-gateway-way { margin: 10px 0 0; font-size: 13px; color: var(--text); }
.wallet-gateway-way p { margin: 0 0 8px; }



.wallet-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .wallet-grid { grid-template-columns: minmax(0, 1fr); } }
.wallet-balance-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: linear-gradient(160deg, var(--surface), var(--bg2)); }
.wallet-balance-num { font: 800 44px/1 var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 6px 0 2px; }
.wallet-balance-unit { color: var(--muted); font-size: 13px; }
.wallet-stats { display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wallet-stat { font-size: 12px; color: var(--muted); }
.wallet-stat b { display: block; font: 700 16px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.wallet-redeem { margin-top: 18px; }
.wallet-redeem form { display: flex; gap: 8px; }
.wallet-redeem input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: inherit; text-transform: uppercase; font: 600 13px/1 var(--font-mono); letter-spacing: 0.06em; }
.wallet-flash { margin: 0 0 16px; padding: 11px 14px; border-radius: 10px; font-size: 13px; border: 1px solid var(--line); }
.wallet-flash.is-ok { border-color: var(--ok, #3fae6a); color: var(--ok, #3fae6a); background: color-mix(in srgb, var(--ok, #3fae6a) 12%, transparent); }
.wallet-flash.is-bad { border-color: var(--danger, #e0564f); color: var(--danger, #e0564f); background: color-mix(in srgb, var(--danger, #e0564f) 12%, transparent); }

.wallet-flash.is-note { color: var(--muted); background: color-mix(in srgb, var(--muted, #999) 8%, transparent); }
.wallet-ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
.wallet-ledger th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.wallet-ledger td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: top; }












.wallet-ledger .amt-pos { color: var(--ok); font-weight: 700; }
.wallet-ledger .amt-neg { color: var(--danger); font-weight: 700; }


.wallet-ledger .amt-arrow { margin-right: 2px; font-family: var(--font-ui); }



.wallet-ledger .amt-split { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; font-size: 11.5px; white-space: nowrap; }
.wallet-ledger .tx-type { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: var(--bg2); border: 1px solid var(--line); }
.wallet-empty { color: var(--muted); padding: 22px; text-align: center; }

.pricing-hero { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 20px; align-items: stretch; margin-bottom: 26px; }
@media (max-width: 820px) { .pricing-hero { grid-template-columns: minmax(0, 1fr); } }
.pricing-unit-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: linear-gradient(160deg, var(--surface), var(--bg2)); display: flex; flex-direction: column; gap: 10px; }
.pricing-unit-big { font: 800 26px/1.1 var(--font-ui); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pricing-unit-card .dc-btn { margin-top: auto; align-self: flex-start; }
.pricing-notes { margin: 0; padding: 4px 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.7; display: flex; flex-direction: column; gap: 4px; }
.pricing-cat { margin: 0 0 26px; }
.pricing-cat h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pricing-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }


.pricing-table th:nth-child(n+2), .pricing-table .pr-tok { text-align: right; }
.pricing-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pricing-table tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }
.pr-op { font-weight: 600; }


.pricing-table .pr-amt { white-space: nowrap; }
.pr-tok { font-variant-numeric: tabular-nums; }
.pr-tok .pr-main { font: 700 15px/1 var(--font-mono); white-space: nowrap; }
.pr-tok .pr-unit { font: 500 11px/1 var(--font-ui); color: var(--muted); margin-left: 3px; }
.pr-tok .pr-max { display: block; margin-top: 4px; font: 500 11.5px/1.35 var(--font-ui); color: var(--muted); }
.pricing-empty { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }



.pricing-topup .pricing-sub { font-size: 13px; font-weight: 700; margin: 22px 0 6px; color: var(--text); }
.pricing-lead { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0 0 10px; }
.pricing-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 10px; font-size: 13.5px; }
.pricing-methods-label { color: var(--muted); font-weight: 600; }
.pricing-method { display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); }

.billing-cfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 12px 0; }
.billing-cfg label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.billing-cfg input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: inherit; font-variant-numeric: tabular-nums; }
.voucher-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: end; margin: 12px 0; }
.voucher-code { font: 700 13px/1 var(--font-mono); letter-spacing: 0.08em; }
.app-main { flex: 1; padding: 34px max(40px, env(safe-area-inset-right)) 64px max(40px, env(safe-area-inset-left)); max-width: var(--maxw); width: 100%; margin: 0 auto; }


.site-footer { margin-top: auto; max-width: var(--maxw); width: 100%; margin-left: auto; margin-right: auto;
  padding: 16px max(40px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer-contact { margin: 0; }




.site-footer-identity { width: 100%; margin: 0; letter-spacing: 0.04em; }






.site-footer-bct { display: inline-flex; align-items: center; background: #fff; border-radius: 6px;
  padding: 5px 8px; line-height: 0; }
.site-footer-bct img { display: block; width: 115px; height: auto; }


@media (max-width: 900px) { .site-footer { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); justify-content: center; text-align: center; } .site-footer-links { justify-content: center; width: 100%; } .site-footer-contact { width: 100%; } }
@media (max-width: 900px) { .app-main { padding: 22px max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left)); } }

.edit-embed { margin: -8px 0 -40px; height: calc(100dvh - 150px); min-height: 520px; display: flex; flex-direction: column; gap: 8px; }
.edit-embed-frame { flex: 1; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #08080a; }
.edit-embed-fallback { align-self: center; margin: auto; text-align: center; }
.edit-embed-toolbar { flex: 0 0 auto; }
.edit-embed-toolbar .input-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 6px 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.edit-embed-toolbar .input-picker > label { margin: 0; font-weight: 600; color: var(--text-muted, var(--muted)); }
.edit-embed-toolbar .ip-btns { margin: 0; }
.edit-embed-toolbar .ip-sel { margin: 0; }





.pc-only { display: none; }
@media (max-width: 1023px) {
  .pc-only { display: block; margin: auto; max-width: 460px; text-align: center; padding: 26px 20px;
    background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; }
  .pc-only-ic { color: var(--accent); margin-bottom: 12px; }



  .pc-only h1 { margin: 0 0 8px; font-size: 19px; }
  .pc-only p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
  .pc-only-hint { font-size: 12.5px; margin: 18px 0 8px !important; }
  .pc-only-acts { display: flex; flex-direction: column; gap: 9px; }

  .pc-only-acts .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .edit-embed-toolbar, .edit-embed-frame, .edit-embed-fallback { display: none !important; }
}
@media (max-width: 900px) { .edit-embed { height: calc(100dvh - 120px); margin: -4px 0 -30px; } }






.pref-switch { display: inline-flex; gap: 3px; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg2); max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative; }
.pref-switch::-webkit-scrollbar { display: none; }
.pref-switch a, .pref-switch button {
  appearance: none; border: none; background: transparent; cursor: pointer; min-width: 36px; min-height: 32px;
  padding: 0 12px; border-radius: var(--r-pill); color: var(--muted); font: 700 12px/1 var(--font-ui);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.15s;
  white-space: nowrap; flex: none;
}
.pref-switch a.active, .pref-switch button.active { background: var(--accent-soft); color: var(--text); }
.pref-switch a:hover, .pref-switch button:hover { color: var(--text); text-decoration: none; }













.form-attest { margin: 8px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.form-attest a { color: var(--accent); }
.ps-wrap { position: relative; display: inline-flex; max-width: 100%; }
.ps-arrow {
  position: absolute; top: 50%; z-index: 1; width: 8px; height: 8px; margin-top: -5px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); border-radius: 1px;
  pointer-events: none; opacity: 0; transition: opacity 0.15s;


  filter: drop-shadow(0 0 3px var(--bg2)) drop-shadow(0 0 3px var(--bg2));
}
.ps-arrow-l { left: 6px; transform: rotate(135deg); }
.ps-arrow-r { right: 6px; transform: rotate(-45deg); }
.ps-wrap.ps-more-l .ps-arrow-l { opacity: 1; animation: ps-nudge-l 1.6s ease-in-out infinite; }
.ps-wrap.ps-more-r .ps-arrow-r { opacity: 1; animation: ps-nudge-r 1.6s ease-in-out infinite; }
@keyframes ps-nudge-r { 0%, 100% { translate: 0 0; opacity: 1; } 50% { translate: 3px 0; opacity: 0.7; } }
@keyframes ps-nudge-l { 0%, 100% { translate: 0 0; opacity: 1; } 50% { translate: -3px 0; opacity: 0.7; } }


.pref-switch label { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 36px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); color: var(--muted); font: 700 12px/1 var(--font-ui); cursor: pointer; white-space: nowrap; flex: none; transition: all 0.15s; }
.pref-switch label:has(input:checked) { background: var(--accent-soft); color: var(--text); }
.pref-switch label:hover { color: var(--text); }
.pref-switch label input[type='radio'] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pref-switch .ic { font-size: 16px; }





.dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font: 700 14px/1.2 var(--font-ui); text-align: center; text-decoration: none; transition: all 0.14s var(--ease); }





.dc-btn-promo { position: relative; overflow: hidden; background: linear-gradient(135deg, #166534, #15803d 55%, #1a9d54); color: #fff; box-shadow: 0 8px 22px rgba(26, 157, 84, 0.32); }
.dc-btn-promo:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; color: #fff; }
.dc-btn-promo::after { content: ''; position: absolute; top: 0; bottom: 0; width: 42%; left: -70%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-18deg); animation: dc-glint 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes dc-glint { 0% { left: -70%; } 55% { left: 140%; } 100% { left: 140%; } }







.dc-btn-primary { background: var(--accent); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 48%); color: var(--on-accent); box-shadow: 0 8px 26px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.dc-btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); text-decoration: none; box-shadow: 0 11px 30px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.dc-btn-primary:active, .dc-btn-promo:active { transform: translateY(0) scale(0.98); filter: brightness(0.97); box-shadow: 0 4px 14px var(--accent-shadow); }
.dc-btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; min-height: 44px; }
.dc-btn-ghost { background: var(--surface2); border: 1px solid var(--line); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.dc-btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.dc-btn-outline:hover { background: var(--accent-soft); text-decoration: none; transform: translateY(-1px); }
.dc-btn-ghost:hover { border-color: var(--line2); background: var(--surface-3, var(--surface2)); transform: translateY(-1px); text-decoration: none; }
.dc-btn-ghost:active, .dc-btn-outline:active { transform: translateY(0) scale(0.98); }
.dc-btn-link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: none; cursor: pointer; font: 600 13px/1 var(--font-ui); color: var(--muted); padding: 4px 2px; transition: color 0.15s; }
.dc-btn-link:hover { color: var(--text); text-decoration: none; }



.show-more-bar { display: flex; justify-content: center; gap: 10px; margin: 14px 0 2px; }
.sm-collapsed { display: none !important; }
.dc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }


.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; }

.set-inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.set-inline-form--stack { flex-direction: column; align-items: stretch; }
.set-methods { display: flex; gap: 8px; flex-wrap: wrap; }



.set-door-mark { display: inline-flex; align-items: center; }
.set-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font: 600 12.5px/1.4 var(--font-ui); color: var(--text); }
.dc-status { font: 600 11px/1 var(--font-mono); letter-spacing: 0.06em; padding: 5px 9px; border-radius: 999px; text-transform: uppercase; display: inline-flex; align-items: center; }





.dc-status-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.dc-status-run { color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.dc-status-wait { color: var(--muted); background: var(--surface2); }
.dc-status-idle { color: var(--faint); background: var(--surface2); }
.dc-status-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.dc-tile { position: relative; overflow: hidden; }
.dc-tile-grad { position: absolute; inset: 0; }
.dc-tile-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 12, 0.8), transparent 45%); }

.set-card { padding: 6px 20px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }



.set-row:has(.set-inline-form--stack) { align-items: flex-start; }
.set-row--last { border-bottom: none; }
.set-row-title { font: 700 14px/1 var(--font-ui); color: var(--text); }
.set-row-sub { font: 500 12px/1.4 var(--font-ui); color: var(--muted); margin-top: 5px; }
.set-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 560px) { .set-stat-grid { grid-template-columns: minmax(0, 1fr); } }
.set-stat { padding: 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.set-stat-label { font: 500 11px/1 var(--font-mono); color: var(--faint); margin-bottom: 7px; letter-spacing: 0.04em; }
.set-stat-value { font: 700 15px/1.2 var(--font-ui); color: var(--text); word-break: break-word; }
.set-stat-value.is-ok { color: var(--ok); }



.push-state { font: 500 12.5px/1.5 var(--font-ui); color: var(--muted); margin: 0 2px 12px; }
.push-state.is-err { color: var(--danger); }
.push-note { font: 500 12px/1.5 var(--font-ui); color: var(--faint); margin: 0 2px 14px; }


.push-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; cursor: pointer; font: 500 13.5px/1.3 var(--font-ui); color: var(--text); }
.push-toggle input { width: 20px; height: 20px; flex: 0 0 20px; cursor: pointer; }
.push-toggle input:disabled { cursor: progress; opacity: 0.6; }
.push-enable { min-height: 44px; }



.install-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 20px; border: 1px solid transparent; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 700 13.5px/1 var(--font-ui); cursor: pointer; transition: filter 0.14s var(--ease); }
.install-btn:hover { filter: brightness(1.07); }
.install-mount { display: inline-flex; }



.install-ios { display: flex; align-items: flex-start; gap: 11px; margin: 4px 2px 14px; }
.install-glyph { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.install-ios-body { display: flex; flex-direction: column; gap: 4px; }
.install-ios-title { font: 700 13.5px/1.3 var(--font-ui); color: var(--text); }
.install-ios-steps { font: 500 12.5px/1.55 var(--font-ui); color: var(--muted); }
.install-state { font: 500 12.5px/1.5 var(--font-ui); color: var(--muted); margin: 8px 2px 12px; }




.install-sheet { position: fixed; z-index: var(--z-drawer); left: 12px; right: 12px; bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); opacity: 0; transform: translateY(16px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }



.install-sheet { pointer-events: none; }
.install-sheet.is-open { opacity: 1; transform: none; pointer-events: auto; }
.install-sheet-inner { display: flex; align-items: flex-start; gap: 13px; padding: 15px 14px; border: 1px solid var(--line2); border-radius: 18px; background: var(--surface2); box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5); }
.install-sheet-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; }
.install-sheet-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.install-sheet-title { margin: 0; font: 700 14.5px/1.3 var(--font-ui); color: var(--text); }
.install-sheet-text { margin: 0 0 6px; font: 500 12.5px/1.5 var(--font-ui); color: var(--muted); }
.install-sheet .install-ios { margin: 2px 0 4px; }



.install-sheet .install-ios-title { display: none; }
.install-sheet .install-state { margin: 8px 0 0; }
.install-sheet-close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: -5px -4px 0 0; border: none; border-radius: 12px; background: none; color: var(--faint); cursor: pointer; }
.install-sheet-close:hover { color: var(--text); background: var(--surface3); }
@media (min-width: 768px) { .install-sheet { left: auto; right: 20px; width: 384px; bottom: 10px; } }




.install-sheet.is-open ~ .notif-toasts { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }







@media (prefers-reduced-motion: reduce) { .install-sheet { transition: none; transform: none; } }

.q-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.q-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.q-filter { padding: 8px 15px; border-radius: 999px; font: 600 12.5px/1 var(--font-ui); border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-decoration: none; transition: all 0.15s var(--ease); }
.q-filter:hover { color: var(--text); text-decoration: none; }
.q-filter.active { color: var(--text); background: var(--accent-soft); border-color: var(--accent-ring); }
.q-list { display: flex; flex-direction: column; gap: 11px; }
.q-row { display: flex; align-items: center; gap: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 0.15s var(--ease); }
.q-row:hover { border-color: var(--line2); }


.q-flow { border-left: 3px solid color-mix(in srgb, var(--accent) 55%, var(--line)); }
.q-flow-tag { font: 600 10px/1 var(--font-ui); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 6px; padding: 2px 6px; }




.q-flow-attention { border-left-color: var(--warn); }


.q-filter.q-filter-attention { color: var(--text); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.q-thumb-link { flex: none; display: block; }
.q-thumb { width: 74px; height: 74px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); object-fit: contain; background: var(--bg-deep); display: block; }

.q-thumb-icon { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--muted); opacity: 0.7; }



.q-thumb { position: relative; }
.q-thumb .dc-tile-grad { background: linear-gradient(150deg, var(--surface2), var(--bg2)); }
.q-thumb-img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: var(--bg-deep); }
.q-thumb-play { position: absolute; inset: 0; z-index: 3; margin: auto; opacity: 0.8; color: #fff; }


.q-sub { font: 500 12.5px/1.35 var(--font-ui); color: var(--muted); margin: -2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-body { flex: 1; min-width: 0; }
.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.q-op { font: 700 14.5px/1 var(--font-ui); color: var(--text); text-decoration: none; }
.q-op:hover { text-decoration: none; color: var(--accent); }
.q-msg { font: 500 12.5px/1.3 var(--font-ui); color: var(--muted); }
.q-msg.is-bad { color: var(--bad); }
.q-msg-sub { font: 500 11px/1.3 var(--font-mono); color: var(--faint); margin-top: 3px; }
.q-bar { height: 5px; border-radius: 999px; background: var(--surface3); overflow: hidden; max-width: 340px; margin-top: 9px; }
.q-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.3s ease; }


.compare-panel .audit-col-header { display:flex; align-items:center; gap:10px; }
.compare-side-by-side { display:grid; grid-template-columns:1fr 1fr; gap:10px; }



.compare-side-by-side .media-thumb-poster, .compare-side-by-side .media-thumb--image img { aspect-ratio: var(--cmp-ratio, 1); }
.compare-side-by-side figure { margin:0; }
.compare-side-by-side figcaption { text-align:center; color:var(--muted); font-size:13px; margin-top:6px; }
.compare-slider { position:relative; overflow:hidden; border-radius:12px; border:1px solid var(--line); background:var(--bg-deep); aspect-ratio:var(--cmp-aspect, auto); }
.compare-slider img { display:block; width:100%; height:auto; }


.compare-stage { position:relative; width:100%; height:100%; }
.compare-layers { position:relative; }
.compare-slider.is-actual { aspect-ratio:auto; }
.compare-slider.is-actual .compare-stage { position:relative; overflow:auto; max-height:min(75vh, 960px); overscroll-behavior:contain; }
.compare-slider.is-actual .compare-layers { width:var(--cmp-actual-w, 100%); }
.compare-zoom { position:absolute; top:8px; left:50%; transform:translateX(-50%); min-height:36px; padding:6px 14px; border-radius:999px; border:1px solid rgba(255,255,255,.35); background:rgba(0,0,0,.62); color:#fff; font:600 12.5px/1 var(--font-ui); cursor:pointer; }
.compare-zoom:focus-visible { outline:2px solid var(--accent, #e8a33d); outline-offset:2px; }
.compare-captions { display:flex; justify-content:space-between; gap:6px 12px; flex-wrap:wrap; margin-top:6px; color:var(--muted); font-size:13px; }


.compare-before { position:absolute; inset:0; clip-path:inset(0 50% 0 0); width:100%; height:100%; object-fit:fill; }
.compare-divider { position:absolute; top:0; bottom:0; left:50%; width:2px; background:var(--accent, #e8a33d); pointer-events:none; }
.compare-tag { position:absolute; top:10px; padding:3px 9px; border-radius:999px; font-size:12px; background:rgba(0,0,0,.55); color:#fff; pointer-events:none; }
.compare-tag--before { left:10px; }
.compare-tag--after { right:10px; }

.compare-tag--ai { top:auto; bottom:10px; right:10px; }


.compare-range, .wm-range { accent-color:var(--accent, #e8a33d); }
.compare-range { position:absolute; inset:auto 0 8px 0; width:calc(100% - 24px); margin:0 12px; }
@media (max-width:640px){ .compare-side-by-side { grid-template-columns:1fr; } }

.q-bar-fill.is-done { background: var(--ok); }
.q-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: none; }
.q-time { font: 500 11px/1 var(--font-mono); color: var(--faint); white-space: nowrap; }
.q-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.q-actions form.inline { display: inline; margin: 0; }
.q-actions { align-items: center; }





.overflow-menu { position: relative; display: inline-block; }
.overflow-menu:not(:has(> .overflow-menu-items > :not([hidden]))) { display: none; }
.overflow-menu-toggle { list-style: none; cursor: pointer; min-width: 44px; justify-content: center; font-size: 18px; line-height: 1; }
.overflow-menu-toggle::-webkit-details-marker { display: none; }
.overflow-menu-items { position: absolute; right: 0; top: calc(100% + 6px); z-index: var(--z-popover); min-width: 180px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28); }
.overflow-menu .overflow-menu-items > form { display: block; margin: 0; }
.overflow-menu-items .dc-btn { width: 100%; justify-content: flex-start; }
.q-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line2); border-radius: 16px; }
.q-empty-title { font: 600 14px/1.4 var(--font-ui); color: var(--text); margin-bottom: 5px; }
.q-empty-sub { font: 400 13px/1.5 var(--font-ui); color: var(--muted); }




@media (max-width: 560px) {
  .q-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "thumb body" "meta meta"; column-gap: 12px; row-gap: 10px; align-items: start; }
  .q-thumb-link { grid-area: thumb; }
  .q-thumb { width: 56px; height: 56px; }
  .q-body { grid-area: body; }
  .q-meta { grid-area: meta; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .q-meta > .q-actions { margin-left: auto; }
}

.lib-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.lib-tabs { width: fit-content; }
.lib-tabs button { padding: 8px 18px; }
.lib-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.lib-pill { padding: 7px 14px; border-radius: 999px; font: 600 12px/1 var(--font-ui); border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.15s var(--ease); }
.lib-pill:hover { color: var(--text); }
.lib-pill.active { color: var(--text); background: var(--accent-soft); border-color: var(--accent-ring); }
.lib-use { font: 600 11.5px/1 var(--font-ui); color: var(--accent); text-decoration: none; }
.lib-use:hover { text-decoration: none; filter: brightness(1.1); }

.home-hero { margin-bottom: 38px; }
.home-greet { font-size: clamp(27px, 5.5vw, 40px); line-height: 1.05; margin: 6px 0 8px; }
.home-greet-name { font-style: italic; color: var(--accent); }
.home-lead { font: 400 16px/1.5 var(--font-ui); color: var(--muted); max-width: 60ch; margin: 0; }


.home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0; }
.home-cta-note { font: 400 14px/1.4 var(--font-ui); color: var(--muted); }



.anon-gate { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.62); padding: 16px; }
.anon-gate-card { width: min(460px, 100%); max-height: min(92vh, 760px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.anon-gate-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 0; }
.anon-gate-title { font: 600 16px/1.3 var(--font-ui); color: var(--text); margin: 0; }
.anon-gate-hint { font: 400 13px/1.45 var(--font-ui); color: var(--muted); margin: 6px 16px 10px; }
.anon-gate-close { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.anon-gate-close:hover { color: var(--text); }




@media (pointer: coarse) { .anon-gate-close { min-height: 44px; min-width: 44px; } }
.anon-gate-frame { flex: 1 1 auto; width: 100%; border: 0; min-height: 420px; }


.list-pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 4px; }
.list-pager-range { color: var(--muted); font-size: 13px; }




.credit-news { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  background: rgba(8,6,16,.78); padding: 16px; }
.credit-news-card { position: relative; width: min(420px, 100%); max-height: 92vh; overflow: auto; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px 22px; }
.credit-news-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.credit-news-close:hover { color: var(--text); }
.credit-news-spark { font-size: 40px; line-height: 1; }
.credit-news-title { font: 700 21px/1.25 var(--font-ui); color: var(--text); margin: 10px 0 16px; }



.credit-news-list { position: relative; display: flex; flex-direction: column; gap: 12px; text-align: left; max-height: min(48vh, 480px); overflow-y: auto; }
.credit-news-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg); }
.credit-news-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.credit-news-amount { font: 700 22px/1.1 var(--font-ui); color: var(--accent); }
.credit-news-badge { font: 600 11px/1 var(--font-ui); letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); }



.credit-news-badge--gift { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.credit-news-badge--purchase { color: var(--text); border-color: var(--accent); }
.credit-news-badge--refund { color: var(--muted); }
.credit-news-row-title { font: 600 15px/1.35 var(--font-ui); color: var(--text); margin: 8px 0 2px; }
.credit-news-row-body { font: 400 13.5px/1.5 var(--font-ui); color: var(--muted); margin: 0; }
.credit-news-split { font: 400 12.5px/1.4 var(--font-ui); color: var(--muted); margin: 8px 0 0; }
.credit-news-balance { font: 400 13.5px/1.4 var(--font-ui); color: var(--muted); margin: 16px 0 0; }
.credit-news-cta { margin: 16px 0 0; width: 100%; min-height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 600 15px/1 var(--font-ui); }
@media (pointer: coarse) { .credit-news-close { min-height: 44px; min-width: 44px; } }






.whats-new { position: fixed; inset: 0; z-index: calc(var(--z-modal) - 1); display: flex; align-items: center; justify-content: center;
  padding: 16px; background: var(--scrim); }
.whats-new-card { position: relative; width: min(440px, 100%); max-height: 92vh; max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5); }
.whats-new-close { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; }
.whats-new-close:hover { color: var(--text); background: var(--surface3); }
.whats-new-eyebrow { margin: 2px 44px 14px 0; font: 700 12px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }


.whats-new-eyebrow:focus { outline: none; }
.whats-new-list { display: flex; flex-direction: column; gap: 10px; }
.whats-new-list .cl-entry { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.whats-new-earlier { margin: 12px 0 0; font-size: 13px; }



.whats-new-earlier a { display: inline-flex; align-items: center; color: var(--muted); text-decoration: underline; }
.whats-new-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; }
.whats-new-all { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; color: var(--accent); text-decoration: none; }
.whats-new-all:hover { text-decoration: underline; }
.whats-new-ok { min-height: 40px; }
html.wn-open, html.wn-open body { overflow: hidden; }
@media (max-width: 600px) {
  .whats-new { align-items: flex-end; padding: 0; }
  .whats-new-card { width: 100%; max-height: 85vh; max-height: min(85vh, 85dvh); border-radius: 18px 18px 0 0; border-bottom: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)); }


  .whats-new-foot { flex-direction: column; align-items: stretch; }
  .whats-new-ok, .whats-new-all { width: 100%; justify-content: center; }
}
@media (pointer: coarse) { .whats-new-close, .whats-new-ok, .whats-new-all, .whats-new-earlier a, .cl-btn { min-height: 44px; min-width: 44px; } }



.cl-entry { min-width: 0; }
.cl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.cl-badge { font: 600 11px/1 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; border-radius: var(--r-pill);
  padding: 5px 9px; border: 1px solid var(--line2); color: var(--muted); }
.cl-badge--new { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.cl-badge--improved { color: var(--text); border-color: var(--accent); }
.cl-badge--fixed { color: var(--muted); }
.cl-date { font-size: 12.5px; color: var(--muted); }
.cl-unseen { font: 600 11px/1 var(--font-ui); color: var(--text); background: var(--accent-soft); border-radius: var(--r-pill); padding: 5px 9px; }
.cl-title { margin: 0 0 6px; font: 600 15.5px/1.35 var(--font-ui); color: var(--text); overflow-wrap: anywhere; }
.cl-body p { margin: 0 0 8px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.cl-body p:last-child { margin-bottom: 0; }
.cl-actions { margin: 10px 0 0; }
.cl-btn { display: inline-flex; align-items: center; }


.cl-page { max-width: 760px; }
.cl-heading { margin: 0; }
.cl-lede { margin: 6px 0 22px; color: var(--muted); }
.cl-list { display: flex; flex-direction: column; gap: 14px; }
.cl-page .cl-entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; scroll-margin-top: 84px; }
.cl-page .cl-title { font-size: 1.15rem; }
.cl-empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-md); }
@media (max-width: 640px) { .cl-page .cl-entry { padding: 14px 16px; } }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 44px; }




.home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 44px; }



.home-flow { position: relative; overflow: hidden; display: block; padding: 15px 16px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; transition: transform 0.16s ease, border-color 0.16s ease; }
.home-flow:hover, .home-flow:focus-visible { transform: translateY(-3px); border-color: var(--accent-ring); text-decoration: none; }
.home-flow-wash { position: absolute; inset: 0; pointer-events: none; }
.home-flow-top { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.home-flow-title { font: 700 15.5px/1.25 var(--font-ui); color: var(--text); flex: 1; min-width: 0; }
.home-flow-pro { flex: none; font: 600 9px/1 var(--font-mono); letter-spacing: 0.1em; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-ring); }
.home-flow-track { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.home-flow-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }



.home-flow-plate { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 11px; object-fit: contain; object-position: center; background: var(--bg-deep); border: 1px solid var(--line2); }
.home-flow-plate--out { aspect-ratio: 16 / 9; }
.home-flow-cap { font: 600 9.5px/1 var(--font-mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.home-flow-val { font: 500 12px/1.35 var(--font-ui); color: var(--text); }
.home-flow-arrow { flex: none; width: 82px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 26px; }
.home-flow-chip { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--flow-tone) 14%, transparent); border: 1px solid color-mix(in srgb, var(--flow-tone) 34%, transparent); }
.home-flow-work { font: 400 10.5px/1.3 var(--font-ui); color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .home-flow-track { flex-direction: column; gap: 12px; }
  .home-flow-arrow { width: auto; flex-direction: row; align-items: center; gap: 9px; padding-top: 0; }
  .home-flow-work { text-align: left; }
}
.home-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.home-sec-head h2 { font: 700 19px/1 var(--font-ui); margin: 0; }
.home-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 46px; }
.home-proj { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); text-decoration: none; display: block; transition: transform 0.16s ease, border-color 0.16s ease; }
.home-proj:hover { transform: translateY(-3px); border-color: var(--line2); text-decoration: none; }
.home-proj-still { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.home-proj-badge { position: absolute; top: 11px; right: 11px; font: 600 9.5px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(6px); background: rgba(10, 10, 12, 0.6); }
.home-proj-body { display: block; padding: 15px 16px 16px; }
.home-proj-title { display: block; font: 500 19px/1.15 var(--font-display); color: var(--text); margin-bottom: 5px; }
.home-proj-meta { display: block; font: 500 12.5px/1 var(--font-ui); color: var(--muted); margin-bottom: 12px; }
.home-proj-bar { display: block; height: 5px; border-radius: 999px; background: var(--surface3); overflow: hidden; }
.home-proj-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.home-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 13px; }
.home-recent { position: relative; aspect-ratio: 1; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; padding: 0; background: var(--bg-deep); transition: transform 0.16s ease; display: block; }
.home-recent:hover { transform: translateY(-3px); }



.home-trend-cell { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.home-trend-cell .home-recent { width: 100%; }


.home-trend-act { display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px 8px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface2); color: var(--text);
  font: 600 11.5px/1.25 var(--font-ui); text-decoration: none; min-height: 32px; }


.home-trend-act:hover, .home-trend-act:active { border-color: var(--accent); color: var(--accent); }
.home-recent img { width: 100%; height: 100%; object-fit: contain; display: block; }
.home-recent-meta { position: absolute; left: 10px; right: 10px; bottom: 9px; text-align: left; }
.home-recent-op { font: 600 11.5px/1.2 var(--font-ui); color: #fff; }

.cmp-grid { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.cmp-slots { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.cmp-slots-eyebrow { font: 600 10px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; margin: 0 0 2px; }
.cmp-slot { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 13px; }
.cmp-slot.is-req { border-color: var(--line2); }
.cmp-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cmp-slot-label { font: 600 9px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cmp-req { color: var(--accent); }
.cmp-slot-hint { font: 500 9px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--faint); padding: 3px 7px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); }
.cmp-select { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 500 13px/1 var(--font-ui); }
.cmp-main { flex: 2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cmp-stage { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface2) 0%, var(--bg2) 45%, var(--surface3) 100%); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.cmp-stage-empty { text-align: center; padding: 30px; max-width: 34ch; }
.cmp-stage-eyebrow { font: 600 10px/1 var(--font-mono); letter-spacing: 0.16em; color: var(--faint); margin: 0 0 11px; }
.cmp-stage-msg { font: 500 19px/1.4 var(--font-display); color: var(--muted); margin: 0; }
.cmp-prompt { border: 1px solid var(--line2); border-radius: 16px; background: var(--surface); padding: 15px 16px 13px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28); }
.cmp-prompt textarea { width: 100%; min-height: 54px; resize: none; border: none; background: none; color: var(--text); font: 400 15px/1.5 var(--font-ui); padding: 0; }
.cmp-prompt textarea::placeholder { color: var(--muted); }
.cmp-prompt-row { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.cmp-out { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: 600 12.5px/1 var(--font-ui); color: var(--muted); }

.cr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.create-modes { display: flex; gap: 5px; padding: 5px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.create-mode { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 9px; cursor: pointer; font: 600 13.5px/1 var(--font-ui); white-space: nowrap; border: 1px solid transparent; color: var(--muted); text-decoration: none; transition: all 0.15s var(--ease); }
.create-mode:hover { color: var(--text); text-decoration: none; }
.create-mode.active { color: var(--text); background: var(--accent-soft); border-color: var(--accent-ring); }
.create-mode.active svg { stroke: var(--accent); }
.cr-grid { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.cr-main { flex: 2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cr-rail { flex: 1 1 312px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cr-stage { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface2) 0%, var(--bg2) 45%, var(--surface3) 100%); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.cr-stage-empty { text-align: center; padding: 30px; max-width: 36ch; }
.cr-stage-eyebrow { font: 600 10px/1 var(--font-mono); letter-spacing: 0.16em; color: var(--faint); margin: 0 0 11px; }
.cr-stage-msg { font: 500 19px/1.4 var(--font-display); color: var(--muted); margin: 0; }
.cr-prompt { border: 1px solid var(--line2); border-radius: 16px; background: var(--surface); padding: 15px 16px 13px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28); }
.cr-prompt textarea { width: 100%; min-height: 58px; resize: none; border: none; background: none; color: var(--text); font: 400 15px/1.5 var(--font-ui); padding: 0; }
.cr-prompt textarea::placeholder { color: var(--muted); }
.cr-prompt-row { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.rail-block { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px; }


.rail-submit { border: none; background: none; padding: 0; }
.rail-submit .dc-btn { width: 100%; justify-content: center; }




.rail-label { font: 600 12px/1 var(--font-ui); color: var(--muted); margin: 0 0 11px; }







.rail-char { background-image: linear-gradient(160deg, var(--accent-soft), transparent); border-color: var(--accent-ring); }
.asp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.asp-opt { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 11px 6px; border-radius: 10px; cursor: pointer; font: 600 11.5px/1 var(--font-ui); border: 1px solid var(--line); background: var(--bg2); color: var(--muted); transition: all 0.14s var(--ease); }
.asp-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.asp-opt:has(input:checked) { border-color: var(--accent-ring); background: var(--accent-soft); color: var(--text); }


.asp-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.asp-box { border: 1.8px solid currentColor; border-radius: 3px; }
.rail-advanced { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px 16px; }
.rail-advanced summary { cursor: pointer; font: 600 12.5px/1 var(--font-ui); color: var(--muted); list-style: none; }
.rail-advanced summary::-webkit-details-marker { display: none; }
.rail-adv-body { margin-top: 13px; display: flex; flex-direction: column; gap: 11px; }
.rail-mini { display: flex; flex-direction: column; gap: 6px; font: 500 11.5px/1 var(--font-ui); color: var(--muted); }
.rail-mini input { width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 400 13px/1 var(--font-ui); }

.cr-gate { margin: 14px 0 0; }

.rail-field { display: flex; flex-direction: column; gap: 7px; }
.rail-field + .rail-field { margin-top: 13px; }





.rail-field > label, .rail-field > .rail-field-label { font: 600 12.5px/1.3 var(--font-ui); color: var(--muted); }
.rail-field select, .rail-field input, .rail-field textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font: 400 13.5px/1.3 var(--font-ui);
  transition: border-color 0.14s var(--ease);
}
.rail-field select:focus, .rail-field input:focus, .rail-field textarea:focus { border-color: var(--accent-ring); }
.rail-field textarea { resize: vertical; min-height: 66px; }













.rail-hint { font: 500 12.5px/1.5 var(--font-ui); color: var(--muted); margin: 4px 0 0; }
.rail-note { font: 500 12px/1.5 var(--font-ui); color: var(--muted); margin: 11px 0 0; }
.rail-note a { color: var(--accent); }

.rail-radios { display: flex; flex-direction: column; gap: 9px; }
.rail-radio { display: flex; align-items: center; gap: 9px; font: 600 12.5px/1.2 var(--font-ui); color: var(--text); cursor: pointer; }
.rail-radio input { flex: none; }

.cr-prompt label.cr-prompt-label { display: block; font: 600 11px/1 var(--font-ui); letter-spacing: 0.02em; color: var(--muted); margin: 0 0 8px; }
.cr-prompt textarea[rows] { min-height: 84px; }


.cr-stage--audio { aspect-ratio: auto; min-height: 220px; background: linear-gradient(160deg, var(--surface2), var(--surface)); border-color: var(--line); }
.cr-stage-audio { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 520px; padding: 30px 24px; text-align: center; }
.cr-stage-audio-icon { width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-ring); color: var(--accent); }





.cr-stage-audio h2, .cr-stage-audio .cr-stage-audio-title { margin: 0; font: 500 17px/1.2 var(--font-display); color: var(--text); }
.cr-stage-audio audio { width: 100%; }

.cr-stage--doc { aspect-ratio: auto; min-height: 260px; align-items: stretch; justify-items: stretch; background: var(--surface); }
.cr-stage-doc { width: 100%; height: 100%; padding: 22px 24px; overflow: auto; text-align: left; font: 400 14.5px/1.7 var(--font-ui); color: var(--text); white-space: pre-wrap; position: relative; }

.cr-stage--split { aspect-ratio: auto; min-height: 300px; background: var(--surface); padding: 0; }
.cr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; height: 100%; }
.cr-split-cell { position: relative; display: grid; place-items: center; padding: 14px; min-width: 0; overflow: hidden; }
.cr-split-cell + .cr-split-cell { border-left: 1px solid var(--line); }
.cr-split-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font: 600 9.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(8,8,10,0.62); color: #fff; }
.cr-split-cell img, .cr-split-cell video { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.cr-split-empty { font: 500 12.5px/1.4 var(--font-ui); color: var(--faint); text-align: center; padding: 20px; }
@media (max-width: 620px) { .cr-split { grid-template-columns: minmax(0, 1fr); } .cr-split-cell + .cr-split-cell { border-left: 0; border-top: 1px solid var(--line); } }




.wm-stage { position: relative; display: grid; place-items: center; min-height: 320px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.wm-frame { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.wm-media { display: block; max-width: 100%; max-height: min(62vh, 560px); border-radius: 8px; object-fit: contain; }
.wm-mark { position: absolute; top: 0; left: 0; pointer-events: none; white-space: nowrap; line-height: 1.15; }
.wm-empty { position: absolute; margin: 0; padding: 20px; font: 500 12.5px/1.45 var(--font-ui); color: var(--faint); text-align: center; }
.wm-modes { display: flex; gap: 16px; flex-wrap: wrap; }
.wm-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 12px; }
.wm-grow { flex: 1; min-width: 0; }
.wm-range { width: 100%; }
.wm-color { width: 48px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }






.oc-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; min-inline-size: 0; }
.oc-tabs { margin: 16px 0 12px; }





.oc-regions { margin: 14px 0 4px; }
.oc-stage { position: relative; width: 100%; max-height: min(60vh, 540px); aspect-ratio: 4 / 3; margin-top: 8px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-md); -webkit-user-select: none; user-select: none; }
.oc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; pointer-events: none; }
.oc-layer { position: absolute; left: 0; top: 0; touch-action: none; cursor: crosshair; }
.oc-box { position: absolute; box-sizing: border-box; margin: 0; padding: 0; min-width: 0; min-height: 0; border: 2px solid var(--accent); border-radius: 4px; background: var(--accent-soft); color: inherit; font: inherit; box-shadow: none; transform: none; transition: none; cursor: move; touch-action: none; }
.oc-box:hover { background: var(--accent-soft); border-color: var(--accent-hover); box-shadow: none; transform: none; }
.oc-box:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.oc-box-num { position: absolute; top: 3px; left: 3px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font: 700 11px/1.3 var(--font-ui); pointer-events: none; }
.oc-box-handle { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; border-radius: 4px 0 2px 0; background: var(--accent); cursor: nwse-resize; }
.oc-region-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.oc-region-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.oc-region-list:empty { display: none; }
.oc-region-item { display: inline-flex; align-items: center; gap: 4px; padding: 3px 3px 3px 11px; border: 1px solid var(--line2); border-radius: var(--r-pill); background: var(--surface2); color: var(--text); font: 600 12.5px/1.2 var(--font-ui); }
.oc-region-del { display: inline-grid; place-items: center; margin: 0; padding: 0; min-width: 30px; min-height: 30px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font: 600 17px/1 var(--font-ui); box-shadow: none; transform: none; cursor: pointer; }
.oc-region-del:hover, .oc-region-del:focus-visible { color: var(--text); background: var(--surface3); box-shadow: none; transform: none; }

.oc-fieldset[data-oc-staged] .input-picker .upload-preview { display: none; }
.cr-scope-tabs { display: flex; gap: 7px; margin-bottom: 4px; }
.cr-scope-tab { flex: 1; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 13.5px/1 var(--font-ui); cursor: pointer; transition: all 0.14s var(--ease); }
.cr-scope-tab:hover { color: var(--text); border-color: var(--line2); }
.cr-scope-tab[aria-selected="true"] { border-color: var(--accent-ring); background: var(--accent-soft); color: var(--text); }



.wallet-tab-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.wallet-pay-brand { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; }
.wallet-pay-brand img { display: block; box-sizing: content-box; height: 14px; width: auto; padding: 2px 5px; border-radius: 5px; background: #fff; }
.rail-or { text-align: center; color: var(--faint); font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; margin: 11px 0; }
.scope-block { border: 1px solid var(--line); }
.scope-grid { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.scope-opt { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); transition: border-color 0.14s var(--ease), background 0.14s var(--ease); }
.scope-opt:has(input:checked) { border-color: var(--accent-ring); background: var(--accent-soft); }
.scope-opt input { margin-top: 2px; flex: none; }
.scope-opt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.scope-opt-title { font: 600 13.5px/1.2 var(--font-ui); color: var(--text); }
.scope-opt-desc { font: 500 12px/1.45 var(--font-ui); color: var(--muted); }
@media (max-width: 560px) { .create-mode { padding: 8px 11px; font-size: 12.5px; } }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 30px; }



.proj-card-wrap { position: relative; }
.proj-del-form { position: absolute; top: 44px; right: 12px; z-index: 3; margin: 0; }





.proj-del { width: 27px; height: 27px; border-radius: 50%; border: none; cursor: pointer; background: rgba(10,13,20,0.72); color: #fff; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; opacity: 0.92; transition: opacity var(--dur-fast), background var(--dur-fast); }
.proj-card-wrap:hover .proj-del, .proj-del:focus-visible { opacity: 1; }
.proj-del:hover { background: var(--bad); opacity: 1; }
.proj-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); text-decoration: none; display: block; transition: transform 0.16s ease, border-color 0.16s ease; }
.proj-card:hover { transform: translateY(-3px); border-color: var(--line2); text-decoration: none; }
.proj-still { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }


.proj-still-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }




.proj-still-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(3); filter: blur(24px) saturate(1.15); opacity: 0.5; }
.proj-kind { position: absolute; top: 12px; left: 12px; font: 600 9.5px/1 var(--font-mono); letter-spacing: 0.12em; padding: 5px 9px; border-radius: 999px; background: rgba(10, 10, 12, 0.6); color: #fff; }
.proj-status { position: absolute; top: 12px; right: 12px; font: 600 9.5px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(6px); background: rgba(10, 10, 12, 0.55); }




.home-proj-badge.dc-status-ok, .proj-status.dc-status-ok { color: #67c094; }
.home-proj-badge.dc-status-run, .proj-status.dc-status-run { color: #e3a55f; }
.home-proj-badge.dc-status-bad, .proj-status.dc-status-bad { color: #e0705f; }
.home-proj-badge.dc-status-wait, .proj-status.dc-status-wait { color: #a3a097; background: rgba(10, 10, 12, 0.6); }
.home-proj-badge.dc-status-idle, .proj-status.dc-status-idle { color: #8f8d85; background: rgba(10, 10, 12, 0.6); }
.proj-body { display: block; padding: 17px 18px 18px; }
.proj-title { display: block; font: 500 22px/1.1 var(--font-display); color: var(--text); margin-bottom: 6px; }
.proj-meta { display: block; font: 500 12.5px/1 var(--font-ui); color: var(--muted); margin-bottom: 15px; }
.proj-bar { display: block; height: 5px; border-radius: 999px; background: var(--surface3); overflow: hidden; margin-bottom: 10px; }
.proj-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.proj-foot { display: flex; align-items: center; justify-content: space-between; }
.proj-stage { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--font-ui); color: var(--accent); }
.proj-stage::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.proj-updated { font: 500 11px/1 var(--font-mono); color: var(--faint); }
.proj-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.proj-type { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 0.15s ease; }
.proj-type:hover { border-color: var(--line2); text-decoration: none; }
.proj-type svg { color: var(--accent); flex: none; }
.proj-type span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.proj-type b { font: 700 14px/1.1 var(--font-ui); }
.proj-type i { font: 400 12px/1.4 var(--font-ui); color: var(--muted); font-style: normal; }

.pd-back { margin-bottom: 14px; display: inline-block; }
.pd-hero { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); margin: 0 0 26px; min-height: 200px; display: flex; align-items: flex-end; }
.pd-hero-grad { position: absolute; inset: 0; }
.pd-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 10, 0.9), rgba(8, 8, 10, 0.25) 60%, transparent); }
.pd-hero-body { position: relative; padding: 26px 28px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pd-hero-kind { font: 600 9.5px/1 var(--font-mono); letter-spacing: 0.14em; padding: 5px 10px; border-radius: 999px; background: rgba(10, 10, 12, 0.55); color: #fff; }
.pd-hero-title { font: 500 clamp(26px, 5.5vw, 38px)/1.02 var(--font-display); margin: 13px 0 7px; color: #fff; }
.pd-hero-meta { font: 500 13.5px/1 var(--font-ui); color: rgba(255, 255, 255, 0.72); margin: 0; }
.pd-section-title { font: 700 16px/1 var(--font-ui); margin: 0 0 15px; }
.pd-stepper { display: flex; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow-x: auto; margin-bottom: 14px; position: relative; }
.pd-step { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 80px; text-align: center; }
.pd-step-dot { width: 13px; height: 13px; border-radius: 50%; flex: none; border: 2px solid var(--line2); background: transparent; }
.pd-step.is-done .pd-step-dot { border-color: var(--ok); background: var(--ok); }
.pd-step.is-active .pd-step-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pd-step-label { font: 700 11.5px/1.2 var(--font-ui); color: var(--text); }
.pd-step.is-pending .pd-step-label { color: var(--muted); }
.pd-step-sub { font: 600 9px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--faint); }
.pd-step.is-active .pd-step-sub { color: var(--accent); }
.pd-conn { flex: 1; height: 2px; min-width: 16px; margin-top: 5px; background: var(--line2); }
.pd-conn.is-done { background: var(--ok); }


.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s6); }
.page-head h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.page-head .page-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 64ch; }
.page-head-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }


.btn-icon { display: inline-flex; align-items: center; gap: 7px; }
.btn-icon .ic { font-size: 17px; }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 3px var(--accent-ring); }


.asset-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.asset-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); transition: border-color var(--dur-fast), transform var(--dur-fast); display: flex; flex-direction: column; }
.asset-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.asset-del { position: absolute; top: 7px; right: 7px; z-index: 3; width: 27px; height: 27px; border-radius: 50%; border: none; cursor: pointer; background: rgba(10,13,20,0.62); color: #fff; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; opacity: 0.6; transition: opacity var(--dur-fast), background var(--dur-fast); }
.asset-card:hover .asset-del { opacity: 1; }
.asset-del:hover { background: var(--bad); opacity: 1; }





.asset-media { position: relative; }


.asset-fav { position: absolute; bottom: 7px; right: 7px; z-index: 3; width: 27px; height: 27px; border-radius: 50%; border: none; cursor: pointer; background: rgba(10,13,20,0.62); color: #fff; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; opacity: 0.6; transition: opacity var(--dur-fast), color var(--dur-fast); }
.asset-card:hover .asset-fav, .asset-fav:focus-visible { opacity: 1; }
.asset-fav.is-fav { opacity: 1; color: #ffc94d; }


.voice-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; margin: 0 8px; vertical-align: middle; }
.voice-chip { font: 500 11px/1 var(--font-ui); padding: 3px 8px; border-radius: var(--r-pill); background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.voice-chip--more { background: transparent; }
.voice-facet-set { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; margin: 0 0 var(--s4); }
.voice-facet-set > legend { font: 600 13px/1 var(--font-ui); padding: 0 6px; }
.voice-facet-boxes { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.voice-facet-box { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13px; cursor: pointer; }
.voice-facet-box input { width: 17px; height: 17px; }


.voice-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 var(--s4); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface2); }
.voice-filter-title { font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.voice-filter-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.voice-filter-sel select { min-height: 34px; font-size: 13px; padding: 4px 8px; max-width: 160px; }
.voice-filter-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.voice-filter-legend { font-size: 12px; color: var(--muted); margin-right: 2px; }


.voice-fchip { font: 500 12px/1 var(--font-ui); min-height: 32px; padding: 7px 11px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.voice-fchip:hover { border-color: var(--accent); color: var(--text); }
.voice-fchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.voice-filter-empty { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; color: var(--muted); }





.voice-filtered-out { display: none !important; }
.lib-hidden { display: none; }
@media (pointer: coarse) { .asset-fav { width: 44px; height: 44px; font-size: 18px; opacity: 1; }
  .voice-fchip { min-height: 44px; padding: 12px 14px; }
  .voice-filter-sel select { min-height: 44px; } }
.asset-thumb { position: relative; aspect-ratio: 1; cursor: pointer; overflow: hidden; display: block; border: 0; padding: 0; width: 100%;

  background-color: var(--bg-deep); }


.asset-card[data-cat="character"] .asset-thumb,
.asset-card[data-cat="costume"] .asset-thumb,
.asset-card[data-cat="item"] .asset-thumb {
  background-color: var(--surface-2);
  background-image:
    linear-gradient(45deg, var(--border) 25%, transparent 25%),
    linear-gradient(-45deg, var(--border) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--border) 75%),
    linear-gradient(-45deg, transparent 75%, var(--border) 75%);
  background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.asset-thumb img, .asset-thumb video { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }


.asset-thumb-loading::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, var(--surface) 25%, var(--surface3) 50%, var(--surface) 75%);
  background-size: 220% 100%; animation: scshim 1.5s linear infinite; }
.asset-thumb img.is-loading, .asset-thumb .asset-poster.is-loading { opacity: 0; }
.asset-thumb img, .asset-thumb .asset-poster { transition: opacity 0.35s var(--ease); }
.asset-thumb--audio { background-image: none; background-color: var(--surface-2); }
.asset-thumb--audio { display: grid; place-items: center; color: var(--accent); font-size: 34px; }
.asset-thumb--video { background: var(--surface-3); }
.asset-poster { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.asset-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.asset-thumb-play .pbtn { width: 46px; height: 46px; border-radius: 50%; background: rgba(8, 10, 16, 0.5); display: grid; place-items: center; color: #fff; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.asset-thumb:hover .asset-thumb-play .pbtn { background: rgba(8, 10, 16, 0.72); transform: scale(1.06); }
.asset-kind { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 8px; border-radius: var(--r-pill); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(8,10,16,0.72); color: #fff; }






.asset-meta { padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.asset-name { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-sub { font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-actions { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; margin-top: auto; }




.op-section { margin-bottom: 26px; }
.op-section-title { font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px; }




.op-section-title--hot { display: inline-flex; align-items: center; gap: 7px; }
.op-section-title--hot .op-flame { color: #f97316; filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.55)); animation: op-flame-flicker 1.7s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes op-flame-flicker { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12) rotate(-2deg); opacity: 0.82; } }
.op-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.op-card { display: flex; align-items: flex-start; gap: 13px; padding: 14px 15px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.op-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.op-card-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.op-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.op-card-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.op-card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.op-card--soon { opacity: 0.6; cursor: default; }
.op-card--soon:hover { border-color: var(--border); transform: none; }
.soon-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--warn); background: var(--warn-soft); padding: 1px 6px; border-radius: var(--r-pill); }
.tech-details { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.tech-details > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; list-style: none; user-select: none; }
.tech-details > summary::-webkit-details-marker { display: none; }
.tech-details > summary::before { content: '▸ '; color: var(--text-faint); }
.tech-details[open] > summary::before { content: '▾ '; }


.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: clamp(12px, 4vw, 48px); background: var(--scrim); }
.lightbox.is-open { display: flex; animation: lb-in var(--dur) var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage { position: relative; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: 82vh; border-radius: var(--radius-md); display: block; margin: 0 auto; background: #000; }


.lightbox-media-wrap .audio-player-card { width: min(560px, 92vw); }



.lightbox-stage img.is-preview { filter: blur(6px); transform: scale(1.01); transition: filter var(--dur) var(--ease); }











.cost-estimate-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; margin-right: 10px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface2); border: 1px solid var(--line); font: 600 12px/1 var(--font-ui); color: var(--muted); opacity: 1; transition: opacity var(--dur-fast) var(--ease); }
.cost-estimate-chip[data-estimate-stale] { visibility: hidden; opacity: 0; }
.cost-estimate-chip[data-insufficient="1"] { color: var(--bad); border-color: var(--bad); }


.cost-grant-note { display: block; width: 100%; font: 500 12.5px/1.45 var(--font-ui); color: var(--text); }
.lightbox-media-wrap { animation: lb-pop var(--dur) var(--ease); }
@keyframes lb-pop { from { transform: scale(0.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 20, 26, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; cursor: pointer; display: grid; place-items: center;

  padding: 0; line-height: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.lightbox-close:hover { background: rgba(44, 48, 60, 0.75); transform: scale(1.09); }
.lightbox-close:active { transform: scale(0.95); }
.lightbox-close svg { width: 19px; height: 19px; display: block; }
.lightbox-cap { color: #fff; font-size: 13px; opacity: 0.85; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }


.lightbox-bar { display: flex; align-items: center; gap: 10px; }
.lightbox-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px;
  border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 20, 26, 0.55); color: #fff; font: 600 13px/1 var(--font-ui);
  cursor: pointer; text-decoration: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lightbox-btn:hover { background: rgba(44, 48, 60, 0.75); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(18, 20, 26, 0.55);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lightbox-nav:hover { background: rgba(44, 48, 60, 0.75); }




.lightbox-prev { left: -8px; }
.lightbox-next { right: -8px; }
@media (max-width: 700px) {
  .lightbox-close { top: 8px; right: 8px; }
  .lightbox-bar { flex-wrap: wrap; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}



.media-thumb { cursor: pointer; display: block; padding: 0; border: 0; background: transparent; width: 100%; position: relative; }







.media-thumb--video { min-height: 44px; }
.media-thumb-poster, .media-thumb--image img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; display: block; background: var(--bg-deep); }
.media-thumb-play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, 0.45); border-radius: 999px; pointer-events: none; }
.media-thumb-play svg { width: 22px; height: 22px; }
.media-thumb--audio { display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left; color: var(--text); }
.media-thumb-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--surface-2, var(--surface)); color: var(--accent, currentColor); }
.media-thumb-icon svg { width: 20px; height: 20px; }
.media-thumb-cap { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }













.media-grid { --tile-min: 160px; --tile-gap: 10px; --tile-floor: calc((100% - var(--tile-gap)) / 2); --tile-repeat: auto-fill; --tile-aspect: 1;
  display: grid; grid-template-columns: repeat(var(--tile-repeat), minmax(min(var(--tile-min), var(--tile-floor)), 1fr)); gap: var(--tile-gap); align-items: start; }
.media-grid > * { min-width: 0; margin: 0; }
.media-grid--clip { --tile-min: 220px; }
.media-grid--mini { --tile-min: 120px; --tile-gap: 8px; }
.media-grid--card { --tile-min: 230px; --tile-gap: 12px; --tile-floor: 100%; --tile-repeat: auto-fit; }



.media-grid--pair { grid-template-columns: repeat(var(--tile-count, 2), minmax(0, 1fr)); }
.media-grid:not(.media-grid--card) > :has(> .media-grid--pair) { grid-column: span 2; }
.media-grid .media-thumb-poster, .media-grid .media-thumb--image img { aspect-ratio: var(--tile-aspect); }

.scene-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.scene-review-actions form.inline { margin: 0; }
.deliverable-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ordinal-cell { position: relative; min-width: 0; }
.ordinal-badge { position: absolute; top: 8px; left: 8px; z-index: 2; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(10, 12, 16, 0.72); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); font: 700 13px/24px var(--font-ui, inherit); text-align: center; pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }


.pick-label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }

.input-picker .ip-file { display: none; }
.ip-btns { display: flex; gap: 6px; margin: 4px 0 6px; flex-wrap: wrap; }
.ip-btn { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font-size: 0.86rem; cursor: pointer; min-height: 34px; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.ip-btn:hover { background: var(--surface-3, var(--surface-2)); border-color: var(--accent); }






.ip-btn--help { background: transparent; border-style: dashed; color: var(--muted); }
.ip-btn--help:hover { color: var(--accent); }
.ip-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--accent); }
.ip-linkrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }




.ip-btn--help { flex-basis: 100%; text-align: left; }


.ip-url-input { flex: 1; min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--input-bg); color: var(--text); }



.ip-btn:disabled { opacity: 0.6; cursor: progress; }




.ip-link-msg { margin: 2px 0 6px; font-size: 0.82rem; color: var(--text-muted); }
.ip-link-msg.is-error { color: var(--danger); }
.ip-sel { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--input-bg); margin: 4px 0 6px; }
.ip-sel-thumb { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--bg-deep); }
.ip-sel-thumb--icon { display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.ip-sel-name { flex: 1; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-sel-clear { border: none; background: none; color: var(--text-dim, var(--text)); font-size: 1.1rem; cursor: pointer; width: 26px; height: 26px; padding: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.ip-sel-clear:hover { background: var(--surface-2); }



.svc-notice { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 16px; }
.svc-notice-scrim { position: absolute; inset: 0; background: var(--scrim); }
.svc-notice-panel { position: relative; max-width: 460px; width: 100%; background: var(--panel-elevated, var(--surface2)); color: var(--text); border: 1px solid var(--surface3); border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55); text-align: center; }
.svc-notice-title { margin: 0 0 10px; font: 700 1.05rem/1.3 var(--font-ui); }
.svc-notice-body { margin: 0 0 18px; font-size: 0.92rem; line-height: 1.55; color: var(--text-dim, var(--text)); }
.svc-notice-close { border: none; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 600 0.9rem/1 var(--font-ui); padding: 11px 20px; cursor: pointer; }
.svc-notice-close:hover { filter: brightness(1.08); }
.ipm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 16px; animation: ipm-fade 0.14s var(--ease); }
@keyframes ipm-fade { from { opacity: 0; } to { opacity: 1; } }


html.ipm-open, html.ipm-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ipm-overlay { animation: none; } }
.ipm-panel { width: min(760px, 96vw); max-height: 84vh; display: flex; flex-direction: column; background: var(--surface-1, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 18px 60px rgba(0,0,0,0.4); }
.ipm-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ipm-close { border: none; background: none; color: var(--text); font-size: 1.3rem; cursor: pointer; width: 34px; height: 34px; padding: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.ipm-close:hover { background: var(--surface-2); }
.ipm-tools { display: flex; gap: 8px; align-items: center; padding: 10px 16px; flex-wrap: wrap; }
.ipm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ipm-chip { padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 0.8rem; cursor: pointer; }
.ipm-chip.is-active { border-color: var(--accent); background: var(--accent-soft, var(--surface-2)); }




.ipm-vsel { width: auto; max-width: 100%; min-height: 0; padding: 5px 8px 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 0.8rem; cursor: pointer; }
.ipm-vsel.is-active { border-color: var(--accent); background: var(--accent-soft, var(--surface-2)); }
.ipm-search { margin-left: auto; min-width: 160px; min-height: 32px; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--input-bg); color: var(--text); }
.ipm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; padding: 12px 16px 16px; overflow-y: auto; position: relative; }
.ipm-item { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); padding: 6px; cursor: pointer; text-align: left; }
.ipm-item:hover { border-color: var(--accent); }
.ipm-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: var(--bg-deep); }
.ipm-item-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; background: var(--input-bg); border-radius: 6px; font-size: 1.6rem; }
.ipm-item-name { font-size: 0.78rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ipm-empty { grid-column: 1 / -1; text-align: center; color: var(--text-dim, var(--text)); padding: 24px 0; }


.ipm-retry { margin-left: 8px; background: none; border: 1px solid var(--line); color: var(--accent);
  border-radius: 8px; padding: 4px 10px; font: inherit; cursor: pointer; }
.ipm-retry:hover { background: var(--surface-2, var(--surface)); }




.ipm-more-row { grid-column: 1 / -1; text-align: center; padding: 10px 0 4px; }
.ipm-group { grid-column: 1 / -1; margin: 6px 0 -4px; padding-top: 6px; border-top: 1px solid var(--border); }
.ipm-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ipm-group-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim, var(--text)); }





.ipm-grid--voices { display: flex; flex-direction: column; gap: 6px; }
.ipm-vrow { display: flex; gap: 8px; align-items: center; }




.ipm-vrow-pick { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-width: 0; background: none; border: none; padding: 6px 4px; cursor: pointer; color: var(--text); }
.ipm-vrow-name { width: 100%; color: var(--text); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ipm-vrow-meta { width: 100%; color: var(--text-dim, var(--muted)); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ipm-vrow-play { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); cursor: pointer; }
.ipm-vrow-play:hover { border-color: var(--accent); }
.ipm-vrow-play:disabled { opacity: 0.4; cursor: default; border-color: var(--border); }
.ipm-vrow-fav { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; }
.ipm-vrow-fav:hover { border-color: var(--accent); }
.ipm-vrow-fav.is-fav { color: #ffc94d; }

.notif { position: relative; display: inline-flex; }
.notif-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text); cursor: pointer; }
.notif-bell svg { display: block; }
.notif-bell:hover { background: var(--surface-2); }
.notif-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 1; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-height: 420px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 12px 34px rgba(0,0,0,.35); z-index: var(--z-popover); }














@media (max-width: 640px) {
  .notif { position: static; }
  .notif-panel { left: 12px; right: 12px; width: auto; max-height: min(420px, 68vh); }
}
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.notif-markread { border: none; background: none; color: var(--accent); font-size: 12.5px; cursor: pointer; padding: 4px 0; }
.notif-list { overflow-y: auto; padding: 6px; position: relative; }
.notif-empty { text-align: center; color: var(--muted); padding: 22px 0; font-size: 13px; margin: 0; }
.notif-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px; border: none; border-radius: var(--r-sm); background: none; cursor: pointer; text-align: left; color: var(--text); }
.notif-item:hover { background: var(--surface-2); }
.notif-item.is-unread { background: var(--accent-soft); }
.notif-item.is-unread:hover { background: var(--accent-soft); filter: brightness(1.06); }
.notif-thumb { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; object-fit: contain; background: var(--bg-deep); border: 1px solid var(--border); }
.notif-thumb--ph { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; }
.notif-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.notif-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-meta .ok { color: var(--ok, #34c477); }
.notif-meta .err { color: var(--danger, #e5484d); }









.notif-toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; z-index: var(--z-toast); }
.notif-toast { display: flex; align-items: center; gap: 10px; max-width: 320px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-sm); box-shadow: 0 8px 26px rgba(0,0,0,.3); cursor: pointer; font-size: 13.5px; animation: notifIn .22s ease-out; overflow: hidden; }
.notif-toast.is-fail { border-left-color: var(--danger, #e5484d); }





.save-media-note { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto; z-index: var(--z-toast); display: flex; align-items: flex-start; gap: 8px; padding: 12px 8px 12px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-sm); box-shadow: 0 8px 26px rgba(0,0,0,.3); font-size: 14px; line-height: 1.45; }
.save-media-note-text { flex: 1; min-width: 0; }
.save-media-note-text p { margin: 0; }
.save-media-note-text p + p { margin-top: 6px; }
.save-media-note-close { flex: none; min-width: 44px; min-height: 44px; margin: -12px -4px -12px 0; padding: 0; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
a[data-save-state="preparing"] { cursor: progress; opacity: .85; }
a[data-save-state="ready"] { box-shadow: 0 0 0 2px var(--accent); }
@keyframes notifIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }









.notif-msgs { padding: 6px 6px 2px; border-bottom: 1px solid var(--border); }
.notif-group-head { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 4px 9px 2px; }
.notif-msg { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 9px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; }
.notif-msg:hover { background: var(--surface-2); }
.notif-msg.is-unread { background: var(--accent-soft); }
.notif-msg-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); }
.notif-msg-dot.is-read { background: transparent; }
.notif-msgs-all { display: flex; align-items: center; min-height: 44px; padding: 0 9px; font-size: 12.5px; color: var(--accent); text-decoration: none; }
.notif-msgs-all:hover { text-decoration: underline; }
.inbox-strip { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 8px 8px 8px 14px; background: var(--accent-soft); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-md); max-width: 100%; box-sizing: border-box; }
.inbox-strip-txt { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; padding: 4px 0; margin: -4px 0; }
.inbox-strip-from { font-size: 12.5px; color: var(--muted); }
.inbox-strip-title { font-weight: 600; overflow-wrap: anywhere; }
.inbox-strip-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.inbox-strip-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 13px; color: var(--accent); }
.inbox-strip-read { display: inline-flex; align-items: center; min-height: 44px; }
.inbox-strip-x { min-width: 44px; min-height: 44px; border: none; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: var(--r-sm); }
.inbox-strip-x:hover { background: var(--surface-2); color: var(--text); }
.inbox-page { max-width: 720px; margin: 0 auto; min-width: 0; }
.inbox-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.inbox-head h1 { margin: 0 0 4px; }
.inbox-head .muted { margin: 0; }
.inbox-markall { margin: 0; }
.inbox-markall button { min-height: 44px; }
.inbox-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.inbox-list li + li { border-top: 1px solid var(--border); }
.inbox-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; color: var(--text); text-decoration: none; }
.inbox-row:hover { background: var(--surface-2); }
.inbox-row.is-unread { background: var(--accent-soft); }
.inbox-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--accent); }
.inbox-dot.is-read { background: transparent; }
.inbox-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox-row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row.is-unread .inbox-row-title { font-weight: 700; }
.inbox-row-body { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row-time { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.inbox-empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-md); }
.inbox-older { margin: 14px 0 0; text-align: center; }
.inbox-older a, .inbox-back a { display: inline-flex; align-items: center; min-height: 44px; }
.inbox-back { margin: 0 0 8px; }
.inbox-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; min-width: 0; }
.inbox-from { display: flex; align-items: center; gap: 8px; padding: 0 0 10px; margin: 0 0 12px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }
.inbox-from-ic { flex: 0 0 auto; color: var(--accent); }
.inbox-date { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.inbox-text { overflow: hidden; padding: .35em 0; margin: -.35em 0; }
.inbox-title { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.3; overflow-wrap: anywhere; }
.inbox-body { white-space: pre-line; line-height: 1.6; overflow-wrap: anywhere; }
.inbox-actions { margin: 18px 0 0; }
.inbox-btn { display: inline-flex; align-items: center; min-height: 44px; }
.inbox-btn.is-preview { cursor: default; }
.inbox-safety { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .inbox-strip { margin: 0 0 12px; }
  .inbox-strip-actions { width: 100%; justify-content: flex-end; }
  .inbox-card { padding: 14px 16px; }
  .inbox-row { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}



















.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; position: relative; }
.table-wrap > table { min-width: 0; }
.table-wrap--wide > table { min-width: 560px; }

pre, pre.mono { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }

.copy-btn, .help-icon, .asset-del, .proj-del { min-width: 32px; min-height: 32px; }
@media (pointer: coarse) {

  input, textarea, select { font-size: 16px !important; }
  .copy-btn, .help-icon, .asset-del, .proj-del, .q-filter, .lib-pill, .tab, .pref-switch a, .pref-switch button, .ip-btn, .create-mode, .notif-bell, .ipm-close, .lang-pick-summary, .app-account-out, .ip-sel-clear, .lightbox-close, .ipm-retry { min-height: 44px; min-width: 44px; }









  .ip-url-input, .ipm-search, .cur-btn, .home-trend-act, .app-contact-link, .skip-link, .svc-notice-close { min-height: 44px; }



  .compare-range { min-height: 44px; inset: auto 0 12px 0; }
  .compare-range::-webkit-slider-thumb { width: 28px; height: 28px; }


  .wm-range { min-height: 44px; }
  .wm-range::-webkit-slider-thumb { width: 28px; height: 28px; }
  .wm-color { min-height: 44px; }


  .dc-btn, .cr-scope-tab { min-height: 44px; }



  .oc-region-del { min-width: 44px; min-height: 44px; }


  .oc-box-handle { width: 28px; height: 28px; right: -14px; bottom: -14px; border-radius: 6px; }
















  label:has(> input[type=checkbox]), label:has(> input[type=radio]) { min-height: 44px; }








  label:where(:has(> input[type=checkbox]), :has(> input[type=radio])) { display: flex; align-items: center; gap: 8px; }












  summary { min-height: 44px; align-content: center; }



















  button[type="submit"] { min-height: 44px; }







  :where(button, .button, .btn-primary, .btn--primary) { min-height: 44px; align-content: center; }



  .site-footer-links a, .site-footer-contact a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .site-footer-links { row-gap: 0; }


  .ipm-chip, .ipm-vsel { min-height: 38px; }
  .asset-card .asset-del { opacity: 1; }
  .proj-card-wrap .proj-del { opacity: 1; }












  .topbar-search input, .mini-form input, .rail-mini input, .wallet-redeem input,
  .rail-field input, .rail-field select, .cmp-select { min-height: 44px; }

  .notif-markread, .job-chip, .ac-mode { min-height: 44px; }





  .q-op, .ts-download, .help-chip, .section-subnav-link {
    min-height: 44px; display: inline-flex; align-items: center; }




  .gallery-actions a, .console-owner a, .tap-link {
    min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
  .q-op { min-width: 44px; }
}


@media (max-width: 1100px) {
  .review-workspace .render-preview-stage { --stage-floor: 320px; }
  .review-workspace .hero-preview { min-height: 320px; }
}

@media (max-height: 640px) {
  .edit-embed { min-height: 0; height: calc(100dvh - 96px); }
}
























@media print {





  :root, :root[data-theme] {
    --bg: #ffffff; --bg2: #ffffff; --bg-deep: #ffffff;
    --surface: #ffffff; --surface2: #ffffff; --surface3: #ffffff;
    --bg-grad-1: #ffffff; --bg-grad-2: #ffffff;
    --sidebar-bg: #ffffff; --topbar-bg: #ffffff;
    --text: #000000; --muted: #333333; --faint: #444444;
    --line: #bbbbbb; --line2: #999999;
    --accent: #000000; --accent-soft: transparent; --accent-glow: transparent;
    --accent-ring: transparent; --accent-shadow: transparent; --scrim: transparent;
    --on-accent: #ffffff;
    color-scheme: light;
  }
  @page { margin: 14mm 12mm; }


  html, body { background: #ffffff; color: #000000; }
  body { orphans: 3; widows: 3; }



  .skip-link, .app-scrim, .app-sidebar, .app-topbar, .site-footer,
  .install-sheet, .notif-toasts, .save-media-note, .svc-notice, .ipm-overlay, .lightbox, .whats-new { display: none !important; }


  .app-grid { display: block; min-height: 0; }
  .app-shell { min-height: 0; }
  .app-main { padding: 0; max-width: none; }


  .legal-page { max-width: 100%; padding: 0; }

  .legal-scroll {
    max-height: none !important; overflow: visible !important;
    margin: 0; padding: 0; border: 0; background: transparent;
    font-size: 11pt; line-height: 1.5;
  }
  .legal-title { font-size: 18pt; }
  .legal-stamp, .legal-reason { font-size: 11pt; }

  .legal-section { break-inside: avoid; }
  .legal-heading, .legal-subheading { break-after: avoid; }
  .legal-heading { font-size: 13pt; }
  .legal-list li { break-inside: avoid; }


  .legal-accept, .legal-decline, .legal-cycle { display: none !important; }





  .legal-doc { font-size: 10.5pt; line-height: 1.45; }
  .legal-doc h1 { font-size: 16pt; }
  .legal-doc h2 { font-size: 12.5pt; }
  .legal-doc h3 { font-size: 11pt; }
  .legal-doc h1, .legal-doc h2, .legal-doc h3 { break-after: avoid; }
  .legal-doc li, .legal-doc tr { break-inside: avoid; }
  .legal-doc hr { border-top: 1px solid #999999; }
  .legal-doc blockquote {
    border-left: 2px solid #000000; background: transparent; padding: 4pt 0 4pt 8pt;
  }
  .legal-doc code { background: transparent; }




  .legal-doc .table-wrap { overflow: visible !important; max-width: none !important; }
  .legal-doc table { min-width: 0 !important; width: 100%; font-size: 9pt; }
  .legal-doc th, .legal-doc td { border: 1px solid #000000; padding: 3pt 5pt; }
  .legal-doc th { background: transparent; }


  .legal-doc thead { display: table-header-group; }
}
