/* Studio design tokens. The website preview keeps the website's own identity. */
:root {
  color-scheme: light;
  --ink: #262b36; --paper: #f3f4f7; --line: #e0e3eb; --muted: #626b7d;
  --surface: #fff; --surface-soft: #f8f9fb; --surface-raised: #fff;
  --accent: #c2a06a; --accent-ink: #302719; --accent-soft: #f7f0e3;
  --accent-text: #82602d; --field: #fff; --field-line: #d4d9e3;
  --preview: #eaedf2; --preview-well: #dce1e9; --selected: #f6f0e4;
  --positive: #3d725a; --danger: #a84440; --warning: #80602d;
  --shadow: 0 4px 24px #27354e06; --focus: #99733e;
  font-family: 'Segoe UI', Arial, sans-serif;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --ink: #e8eaf0; --paper: #11151d; --line: #2b3341; --muted: #a4adbf;
  --surface: #1a202b; --surface-soft: #1e2531; --surface-raised: #242d3b;
  --accent: #d9b67c; --accent-ink: #211c14; --accent-soft: #332e25;
  --accent-text: #e2c38f; --field: #151b25; --field-line: #3b4659;
  --preview: #1c2430; --preview-well: #101722; --selected: #302c26;
  --positive: #96c6ae; --danger: #f1a3a0; --warning: #e3c58e;
  --shadow: 0 8px 30px #00000014; --focus: #e4bf83;
}
body { color: var(--ink); background: var(--paper); }
button, .upload-button { font-size: 13px; font-weight: 500; border-radius: 8px; padding: 11px 15px; background: var(--surface); color: var(--ink); border-color: var(--line); transition: background .15s, border-color .15s, box-shadow .15s; }
button:hover, .upload-button:hover { background: var(--surface-soft); border-color: var(--field-line); }
button:disabled { opacity: .46; cursor: not-allowed; }
.primary, .upload-button { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; box-shadow: 0 2px 6px #17130b0c; }
.primary:hover, .upload-button:hover { background: #e1c18e; border-color: #e1c18e; color: #211c14; }
.primary > span { margin-left: 14px; }
.quiet, .text-button { background: transparent; color: var(--muted); }
.quiet:hover { background: var(--surface-soft); color: var(--ink); }
.text-button { color: var(--accent-text); }
input, textarea, select { color: var(--ink); background: var(--field); border: 1px solid var(--field-line); border-radius: 7px; font-size: 14px; padding: 13px 14px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, textarea:focus, select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 12%, transparent); }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
input[type=checkbox] { accent-color: var(--accent-text); }
label { font-size: 13px; font-weight: 600; margin-bottom: 24px; }
small, label small { font-size: 12px; line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }
.studio-shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { background: #171f2b; color: #b2bdce; border: 0; padding: 32px 16px 22px; gap: 0; overflow-y: auto; }
.studio-brand { display: flex; align-items: center; gap: 12px; padding: 0 5px; text-decoration: none; }
.studio-brand .brand-monogram { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 37px; height: 42px; margin: 0; padding: 0 3px 0 0; color: #25231f; background: #d4b47e; font-weight: 800; font-size: 31px; letter-spacing: -3px; border-radius: 8px 8px 8px 2px; }
.studio-brand .brand-wordmark { display: block; margin: 0; color: #eeeef1; font-size: 15px; font-weight: 750; letter-spacing: .6px; text-transform: none; }
.studio-brand .brand-wordmark small { display: block; margin-top: 5px; color: #a2aec1; font-size: 11px; font-weight: 400; letter-spacing: .2px; }
.nav-caption { font-size: 10px; color: #9aa8bd; letter-spacing: 1.5px; text-transform: uppercase; margin: 43px 12px 15px; }
.sidebar nav { gap: 7px; }
.sidebar nav button { position: relative; gap: 12px; min-height: 46px; padding: 12px; border: 1px solid transparent; border-radius: 8px; color: #afbbce; font-size: 13px; font-weight: 450; background: transparent; }
.sidebar nav button:hover { color: #f0f2f7; background: #222e3e; border-color: #334155; }
.sidebar nav button.active { background: #32332f; border-color: #56503f; color: #e7c88f; font-weight: 600; }
.sidebar nav button.active::before { content: ''; position: absolute; left: -17px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: #d4b47e; }
.sidebar nav svg, .theme-toggle svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sidebar-bottom { gap: 23px; padding-top: 34px; }
.sidebar-bottom .public-site-link { display: flex; justify-content: space-between; border: 1px solid #3c495c; border-radius: 8px; color: #d6deea; padding: 12px 14px; font-size: 12px; text-decoration: none; }
.public-site-link:hover { background: #222e3e; }
.public-site-link span { color: #d4b47e; }
.owner-label { display: flex; align-items: center; gap: 11px; color: #d6deea; font-size: 12px; padding: 0 5px; }
.owner-label small { font-size: 11px; color: #9aa8bd; margin-top: 4px; }
.owner-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 33px; height: 33px; border-radius: 50%; background: #2d3848; color: #d8bd90; font-size: 14px; }
.sidebar-bottom > .quiet { color: #a8b5c9; font-size: 12px; padding: 0 5px; min-height: 36px; }
.sidebar-bottom > .quiet:hover { background: transparent; color: #fff; }
.toolbar { min-height: 94px; padding: 20px 30px; border-bottom-color: var(--line); background: var(--surface); gap: 20px; }
.toolbar-location { display: block; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.toolbar-location > span { color: var(--field-line); margin: 0 9px; }
.save-status { gap: 8px; }
.save-status strong { color: var(--muted); font-size: 12px; font-weight: 450; }
.status-dot { background: var(--positive); width: 6px; height: 6px; }
.status-dot.unsaved { background: var(--accent-text); }
.toolbar-actions { gap: 9px; }
.toolbar-actions button { font-size: 12px; min-height: 42px; padding: 11px 15px; }
.toolbar-utilities { display: flex; gap: 6px; margin-left: auto; }
.toolbar .theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; font-size: 12px; border-color: var(--line); }
.mobile-logout { display: none; }
.editor-column { padding: 35px 28px 70px; }
.heading { margin-bottom: 28px; }
.heading h1 { font-size: 32px; line-height: 1.18; font-weight: 650; letter-spacing: -1.1px; margin: 9px 0 13px; }
.heading p:not(.overline) { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 530px; }
.overline { color: var(--accent-text); font-size: 10px; letter-spacing: 1.8px; font-weight: 650; }
.heading-actions > button { margin-top: 25px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: 17px; font-weight: 650; letter-spacing: -.35px; }
.panel-heading { margin-bottom: 28px; gap: 14px; }
.panel-heading p { color: var(--muted); font-size: 13px; }
.step-number { width: 30px; height: 30px; color: var(--accent-text); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); font-size: 12px; border-radius: 8px; }
.start-guide { color: var(--ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 10px; padding: 21px 24px; }
.start-guide strong { font-size: 14px; color: var(--ink); }
.start-guide p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.additional { padding: 0; }
.additional summary { padding: 21px 25px; font-size: 13px; color: var(--ink); }
.details-content { border-color: var(--line); padding: 25px; }
.photo-slot { gap: 17px; }
.photo-slot p, .cover-editor p { color: var(--muted); font-size: 12px; }
.photo-slot button { font-size: 12px; }
.cover-editor { background: var(--surface-soft); border-color: var(--line); border-radius: 8px; }
.empty-thumb, .cover-editor > .empty-thumb { color: var(--muted); background: var(--preview); border-color: var(--line); font-size: 12px; }
.project-list { border-color: var(--line); }
.project-row { color: var(--ink); background: var(--surface); border-color: var(--line); }
.project-row:hover { background: var(--surface-soft); }
.project-row.selected, .picker-grid button.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--selected); }
.project-row strong, .ordered-row strong { font-size: 14px; }
.project-row small, .ordered-row small { color: var(--muted); font-size: 12px; }
.ordered-row { border-color: var(--line); padding: 16px 0; }
.count, .field-note { color: var(--muted); }
.row-actions button { font-size: 12px; background: var(--surface-soft); }
.pill { color: var(--accent-text); background: var(--accent-soft); }
.ready-note { color: var(--positive); }
.show-work { background: var(--surface-soft); border-color: var(--line); }
.empty-state { padding: 45px 28px; }
.empty-state h2 { font-size: 21px; }
.empty-state p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.empty-mark { color: var(--accent-text); background: var(--accent-soft); border-color: var(--line); }
.empty { color: var(--muted); }
.upload-zone { background: var(--surface); border: 1px dashed var(--field-line); border-radius: 12px; padding: 27px; }
.upload-zone > span { color: var(--muted); font-size: 12px; }
.media-grid figure, .picker-grid button { background: var(--surface-soft); border-color: var(--line); }
.media-grid figcaption { color: var(--muted); }
.preview-panel { top: 114px; margin-top: 32px; border-color: var(--line); border-radius: 12px; background: var(--preview); box-shadow: var(--shadow); }
.preview-top { padding: 20px; gap: 12px; }
.preview-top strong { font-size: 14px; }
.preview-top > div > span { max-width: 275px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.preview-top > button { color: var(--muted); font-size: 12px; }
.preview-controls { padding: 0 18px 16px; gap: 10px; flex-wrap: wrap; }
.segmented { background: var(--preview-well); border-color: var(--line); padding: 4px; border-radius: 8px; }
.segmented button { background: transparent; color: var(--muted); border-color: transparent; font-size: 12px; padding: 8px 11px; border-radius: 5px; }
.segmented button[aria-pressed=true] { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.preview-controls select { color: var(--ink); background: var(--surface); border-color: var(--line); max-width: 180px; font-size: 12px; padding: 10px; }
.preview-mode { border-color: var(--line); padding: 15px 20px; }
.preview-mode .check-label { color: var(--ink); font-size: 12px; }
.preview-mode p, .preview-foot { color: var(--muted); font-size: 12px; line-height: 1.7; }
.preview-viewport { height: calc(100vh - 410px); min-height: 370px; background: var(--preview-well); border-color: var(--line); }
.preview-viewport iframe { border-radius: 5px; box-shadow: 0 8px 24px #0002; }
.preview-foot { padding: 12px; }
.preview-expanded .preview-viewport { height: calc(100vh - 370px); }
.history-layout { max-width: 1050px; }
.account-panel { display: flex; align-items: flex-start; gap: 19px; }
.account-emblem { display: flex; align-items: center; justify-content: center; width: 49px; height: 49px; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--line); border-radius: 12px; }
.account-emblem svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.account-panel h2 { margin: 2px 0 8px; }
.account-panel p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.account-panel strong { color: var(--ink); }
.account-panel small { font-size: 13px; line-height: 1.8; }
.activity-row { display: flex; gap: 13px; align-items: flex-start; border-bottom: 1px solid var(--line); padding: 18px 0; }
.activity-row:last-child { border: 0; }
.activity-row strong { font-size: 14px; font-weight: 500; }
.activity-row small { margin-top: 6px; font-size: 12px; }
.activity-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); margin-top: 7px; flex-shrink: 0; }
.activity-indicator.failed { background: var(--danger); }
#revoke-form { margin-top: 24px; max-width: 480px; }
#revoke-form label { margin-bottom: 16px; }
.conflict-banner, .session-banner { background: var(--accent-soft); color: var(--warning); border-color: var(--line); font-size: 13px; padding: 16px 28px; line-height: 1.8; }
.session-banner button { margin-left: 12px; }
dialog { color: var(--ink); background: var(--surface); border-color: var(--line); border-radius: 14px; box-shadow: 0 25px 100px #0004; }
dialog::backdrop { background: #0c1220a8; backdrop-filter: blur(3px); }
#publish-content > p, #reconnect-content > p:not(.overline) { color: var(--muted); font-size: 14px; }
.dialog-actions, .publication-checklist li { border-color: var(--line); }
.publication-checklist li { color: var(--muted); }
.publication-checklist li.complete { color: var(--positive); }
#reconnect-dialog { max-width: 510px; }
#reconnect-title { font-size: 26px; margin: 14px 0; }
#reconnect-form { margin-top: 25px; }
#reconnect-content #reconnect-error { color: var(--danger); }
#reconnect-error:empty { display: none; }
.login { margin-top: 10vh; background: var(--surface); border-color: var(--line); border-radius: 16px; padding: 38px; box-shadow: var(--shadow); }
.login .studio-brand { display: flex; }
.login .studio-brand .brand-wordmark { color: var(--ink); }
.login .studio-brand .brand-wordmark small { color: var(--muted); }
.login h1 { font-size: 29px; }
.login > p { color: var(--muted); font-size: 14px; }
#notice { color: var(--paper); background: var(--ink); font-size: 13px; border-radius: 9px; }
#notice.error { color: #fff; background: #843f3b; }
.skip-link { color: var(--ink); background: var(--surface); }
.section-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 24px; }
.section-add select { width: 100%; }
.section-item { border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); padding: 19px; margin-top: 16px; }
.section-item .panel-top { margin-bottom: 18px; }
.section-item .panel-top strong { font-size: 12px; color: var(--muted); }
.section-item label:last-child { margin-bottom: 0; }
@media (max-width: 1400px) {
  .studio-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .sidebar nav button { padding: 12px 10px; font-size: 12px; gap: 10px; }
  .studio-brand .brand-wordmark { font-size: 13px; }
  .studio-brand .brand-wordmark small { font-size: 10px; }
  .toolbar { padding: 18px 23px; gap: 10px; }
  .toolbar-actions button { font-size: 11px; padding: 11px 12px; }
  .toolbar .theme-toggle span { display: none; }
  .editor-column { padding: 31px 23px 65px; }
  .heading h1 { font-size: 30px; }
  .panel { padding: 24px; }
  .additional { padding: 0; }
  .heading-actions { display: block; }
  .heading-actions > button { margin-top: 16px; }
}
@media (max-width: 1100px) {
  .toolbar .preview-toggle { display: inline-block; }
  .studio-body { max-width: 850px; }
  .preview-expanded .preview-panel { margin: 24px; }
}
@media (max-width: 760px) {
  .studio-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 22px 16px 15px; gap: 20px; overflow: visible; }
  .studio-brand .brand-monogram { width: 31px; height: 35px; font-size: 27px; border-radius: 6px 6px 6px 2px; }
  .studio-brand .brand-wordmark { font-size: 15px; }
  .studio-brand .brand-wordmark small { display: inline-block; font-size: 10px; margin: 0 0 0 10px; }
  .nav-caption, .sidebar-bottom { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .sidebar nav button { min-height: 40px; font-size: 12px; padding: 10px; }
  .sidebar nav button.active::before { display: none; }
  .sidebar nav svg { width: 16px; height: 16px; }
  .toolbar { position: static; min-height: 0; flex-wrap: wrap; padding: 16px; gap: 16px; }
  .toolbar-context { flex: 1; min-width: 0; }
  .toolbar-location, .save-status strong { font-size: 11px; }
  .toolbar-utilities { margin-left: 0; }
  .toolbar .mobile-logout { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; padding: 10px; }
  .toolbar .theme-toggle { min-height: 40px; padding: 9px; }
  .toolbar-actions { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .toolbar-actions button { min-height: 44px; font-size: 11px; padding: 10px 6px; white-space: normal; }
  .primary > span { margin-left: 3px; }
  .editor-column { padding: 29px 16px 55px; }
  .heading h1 { font-size: 28px; }
  .heading p:not(.overline) { font-size: 13px; }
  input, textarea, select { font-size: 16px; }
  label { font-size: 14px; }
  .panel { padding: 23px 18px; border-radius: 10px; }
  .additional { padding: 0; }
  .additional summary { padding: 21px 18px; }
  .details-content { padding: 23px 18px; }
  .photo-slot > .thumb, .photo-slot > .empty-thumb { width: 80px; height: 73px; }
  .photo-slot button { font-size: 11px; padding: 10px; }
  .preview-expanded .preview-panel { margin: 20px 12px; }
  .preview-top { padding: 18px 15px; }
  .preview-top strong { font-size: 13px; }
  .preview-top > div > span { font-size: 11px; }
  .preview-controls { padding: 0 14px 15px; }
  .segmented button { min-height: 36px; }
  .preview-controls select { max-width: 100%; }
  .preview-mode { padding: 15px; }
  .preview-mode p, .preview-foot { font-size: 11px; }
  .preview-expanded .preview-viewport { height: 620px; min-height: 400px; }
  .account-panel { gap: 13px; }
  .account-emblem { width: 39px; height: 41px; }
  .activity-row strong { font-size: 13px; }
  .conflict-banner, .session-banner { padding: 16px; }
  .session-banner button { display: block; margin: 8px 0 0; }
  .login { margin: 5vh 16px; padding: 28px; }
  .login .studio-brand .brand-wordmark small { display: block; margin: 5px 0 0; }
  .section-add { grid-template-columns: 1fr; }
  .section-item { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.section-visibility { margin-top: 26px; }
.ordered-row > .project-row { flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; text-align: left; padding: 12px 14px; }
.section-item .row-actions { gap: 5px; }
.section-item .row-actions button { padding: 7px 10px; }

/* Themed dropdowns, including the option list and its scrollbar. */
:root { --scroll-track: transparent; --scroll-thumb: #b9c2d0; --scroll-hover: #8d9ab0; }
:root[data-theme=dark] { --scroll-thumb: #4d5a70; --scroll-hover: #71829a; }
html, body, .sidebar, dialog, .picker-grid, .project-list, .select-popup { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid transparent; background-clip: padding-box; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-hover); }
::-webkit-scrollbar-corner { background: transparent; }
.studio-select { position: relative; width: 100%; margin-top: 8px; }
select.select-source { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; clip-path: inset(50%); overflow: hidden; pointer-events: none; opacity: 0; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; text-align: left; color: var(--ink); background: var(--field); border: 1px solid var(--field-line); font-size: 14px; padding: 12px 14px; border-radius: 7px; }
.select-trigger:hover { background: var(--surface-soft); border-color: var(--focus); }
.select-trigger[aria-expanded=true] { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 12%, transparent); }
.select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); flex-shrink: 0; margin-right: 3px; }
.select-trigger[aria-expanded=true] .select-chevron { transform: rotate(225deg) translate(-1px, -1px); }
.select-popup { position: fixed; z-index: 25; overflow: auto; overscroll-behavior: contain; padding: 6px; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--field-line); border-radius: 10px; box-shadow: 0 12px 40px #0003; }
.select-option { position: relative; min-height: 40px; display: flex; align-items: center; padding: 10px 32px 10px 12px; font-size: 13px; line-height: 1.5; font-weight: 450; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.select-option.highlighted { background: var(--accent-soft); color: var(--accent-text); }
.select-option[aria-selected=true] { color: var(--accent-text); font-weight: 650; }
.select-option[aria-selected=true]::after { content: '✓'; position: absolute; right: 12px; font-size: 14px; }
.select-option[aria-disabled=true] { opacity: .4; cursor: not-allowed; }
.preview-controls .studio-select { margin: 0; flex: 1; min-width: 150px; max-width: 230px; }
.preview-controls .select-trigger { font-size: 12px; min-height: 42px; padding: 10px 12px; }
.section-add .studio-select { margin-top: 0; }
.profile-identity { color: var(--accent-text) !important; }

/* Built-in user guide and non-persistent block examples. */
.guide-intro { background: var(--accent-soft); }
.guide-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; counter-reset: guide-step; }
.guide-steps li { counter-increment: guide-step; }
.guide-steps li::before { content: '0' counter(guide-step); display: block; color: var(--accent-text); font-size: 12px; letter-spacing: 1px; margin-bottom: 12px; }
.guide-steps strong { font-size: 14px; }
.guide-steps p, .guide-area p, .block-explanation p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 9px 0; }
.guide-area { display: flex; gap: 22px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 18px 0; }
.guide-area:last-child { border: 0; padding-bottom: 0; }
.guide-area h3 { font-size: 15px; margin: 0; font-weight: 600; }
.guide-area button { flex-shrink: 0; font-size: 12px; }
.guide-area p { margin-bottom: 0; }
.guide-block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.guide-block-grid .block-explanation { background: var(--surface-soft); border: 1px solid var(--line); padding: 23px; border-radius: 10px; min-width: 0; }
.block-explanation > strong { font-size: 15px; }
.block-explanation small { display: block; font-size: 12px; }
#block-type-help { margin: -6px 0 22px; padding: 15px 17px; background: var(--surface-soft); border-left: 2px solid var(--accent); border-radius: 0 7px 7px 0; }
#block-type-help .block-explanation > strong { font-size: 13px; }
#block-type-help .block-explanation p { margin: 7px 0; }
.block-sample { border: 1px solid var(--line); background: var(--field); border-radius: 8px; padding: 17px; margin: 20px 0; font-size: 11px; }
.sample-text strong { font-size: 14px; }
.sample-text p { font-size: 11px; }
.sample-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 10px; }
.sample-services > span { padding: 14px 8px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.sample-services small { font-size: 9px; line-height: 1.6; margin-top: 7px; }
.sample-process { list-style: none; display: grid; gap: 15px; }
.sample-process li { display: flex; align-items: center; gap: 13px; }
.sample-process li > span { color: var(--accent-text); font-size: 11px; }
.sample-faq > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sample-faq > div:last-child { border: 0; }
.sample-faq > div > span { color: var(--accent-text); }
.guide-order { display: grid; gap: 8px; max-width: 500px; margin: 25px 0; }
.guide-order > span { padding: 11px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); font-size: 12px; }
.guide-order .optional { color: var(--accent-text); border: 1px dashed var(--accent); background: var(--accent-soft); margin-left: 20px; }
.guide-checklist { padding-left: 23px; font-size: 14px; line-height: 1.9; }
.guide-checklist li { padding: 6px 0 6px 5px; }
.guide-question { border-top: 1px solid var(--line); }
.guide-question summary { padding: 18px 0; cursor: pointer; font-size: 14px; line-height: 1.6; font-weight: 500; }
.guide-question p { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 0 0 20px; }
@media(max-width:760px) {
  .select-trigger { font-size: 16px; }
  .select-option { min-height: 44px; font-size: 14px; }
  .preview-controls .studio-select { min-width: 140px; max-width: 100%; }
  .guide-steps, .guide-block-grid { grid-template-columns: 1fr; gap: 20px; }
  .guide-steps li + li { border-top: 1px solid var(--line); padding-top: 20px; }
  .guide-area { align-items: flex-start; gap: 12px; }
  .guide-area button { padding: 10px; font-size: 11px; }
  .guide-block-grid .block-explanation { padding: 20px; }
}
#guide-block-types { scroll-margin-top: 125px; }

.request-description{white-space:pre-wrap;overflow-wrap:anywhere;margin:20px 0}

.design-flags{display:grid;gap:14px;margin:22px 0}.design-flags .check-label{margin:0;align-items:flex-start;line-height:1.5;gap:10px}.design-flags .check-label input{margin-top:3px;flex:0 0 auto}.design-flags+.field-note{margin-top:16px;line-height:1.7}
.ui-copy-group{border-top:1px solid var(--border,#343840);padding:16px 0}.ui-copy-group>summary{cursor:pointer;font-weight:600}.ui-copy-group textarea{min-height:70px}.manual-view-count{padding-block:12px;margin-block:15px;border-block:1px solid var(--border,#343840)}.manual-view-count .check-label{margin-top:14px;align-items:flex-start;line-height:1.5}

/* v0.11: focused media workflow, no browser-default upload surface. */
.video-uploader>.check-label{margin-top:14px;gap:10px;line-height:1.6;align-items:flex-start}.video-uploader>.check-label input{flex:0 0 auto;margin-top:3px}.video-uploader>.check-label+.field-note{margin-top:12px}.video-uploader>.field-note{line-height:1.7}
.video-settings-grid,.video-processing-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.section-background-editor>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;cursor:pointer;list-style:none}.section-background-editor>summary h2{margin:0}.section-background-editor>summary>span{font-size:11px;color:var(--muted)}.section-background-editor[open]>.details-content{padding-top:24px}.video-asset{margin-top:14px}.video-asset summary{cursor:pointer;overflow-wrap:anywhere}.video-asset summary small{display:block;font-size:11px;margin-top:5px;color:var(--muted)}.video-asset video{width:100%;max-height:240px;background:#080808;border-radius:12px;margin-bottom:18px}.video-process-actions{display:flex;flex-wrap:wrap;gap:10px}.video-uploader .upload-button{margin-top:16px}.video-progress{margin:0 26px 20px;padding:18px 22px;border:1px solid #d8bb9145;border-radius:14px;background:#181510;color:#e6d5bb}.video-progress progress{display:block;width:100%;height:7px;accent-color:#d8bb91;margin-top:12px}.video-progress p{margin:0;font-size:13px}.video-progress button{margin-top:12px}.video-progress progress::-webkit-progress-bar{background:#30291f;border-radius:10px}.video-progress progress::-webkit-progress-value{background:#d8bb91;border-radius:10px}.video-settings-grid input[type=color]{height:46px;padding:6px;width:100%}@media(max-width:700px){.video-settings-grid,.video-processing-fields{grid-template-columns:1fr}.video-progress{margin-inline:16px}}

.scroll-spotlight-settings{min-width:0;margin:24px 0;padding:22px;border:1px solid #d8bb9138;border-radius:16px}.scroll-spotlight-settings legend{padding:0 9px;font-size:13px;font-weight:600;color:var(--ink)}.scroll-spotlight-settings>.check-label{margin-bottom:14px}.scroll-spotlight-settings>.field-note{margin:0 0 18px;line-height:1.7}.scroll-spotlight-settings>.field-note:last-child{margin-bottom:0}.scroll-spotlight-settings .video-settings-grid label{min-width:0}@media(max-width:700px){.scroll-spotlight-settings{padding:17px}}
.video-web-result{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.video-web-result video{max-width:100%;max-height:280px}.video-poster-result{margin:20px 0}.video-poster-result img{display:block;max-width:100%;max-height:230px;border-radius:10px}.video-poster-result figcaption{margin-top:8px;font-size:12px;color:var(--muted)}.video-process-actions{flex-wrap:wrap}.video-processing-fields{align-items:start}
/* Design controls reuse the existing Studio panels and themed selects. */
.appearance-nav{display:flex;flex-wrap:wrap;gap:8px;margin-block:16px}
.appearance-nav a{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border:1px solid var(--border,#39332f);border-radius:9px;font-size:12px;color:inherit;text-decoration:none}
.appearance-nav a:hover{border-color:var(--accent,#d8bb91)}
.appearance-group>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;gap:12px}
.appearance-group>summary h2{margin:0;font-size:18px}
.appearance-group .video-settings-grid{margin-block:16px;align-items:start}
.appearance-group label{min-width:0}.appearance-group input[type=color]{height:42px;min-height:42px;max-width:130px;padding:4px;cursor:pointer}
.appearance-group .field-note{margin-block:12px}
