:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #f5f5f5;
  --text-secondary: #d4d4d4;
  --muted: #a3a3a3;
  --line: #262626;
  --line-strong: #3d3d3d;
  --primary: #e5192c;
  --accent: #ff4d55;
  --sidebar: #070707;
  --surface: #111111;
  --surface-raised: #1a1a1a;
  color: var(--ink);
  background: #0a0a0a;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .42; cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #ff8a8f; outline-offset: 3px; }
svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.8px; font-weight: 650; margin-bottom: 9px; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.35px; margin-bottom: 8px; }
h3 { font-size: 14px; font-weight: 620; margin-bottom: 10px; }
p { line-height: 1.65; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.shell { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--muted); padding: 29px 16px 18px; position: fixed; inset: 0 auto 0 0; width: 212px; display: flex; flex-direction: column; z-index: 10; }
.brand { color: var(--ink); font-size: 28px; letter-spacing: -1.3px; font-weight: 720; display: flex; align-items: center; gap: 11px; padding: 0 13px; text-decoration: none; }
.brand-dot { color: var(--accent); margin-left: -10px; }
.brand-symbol { width: 24px; height: 25px; border: 2px solid var(--line); border-radius: 5px; position: relative; display: block; }
.brand-symbol::after { content: ''; position: absolute; inset: 5px -6px -5px 6px; border: 2px solid var(--line); border-radius: 5px; background: var(--sidebar); }
.workspace-switch { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-strong); border-radius: 7px; margin: 29px 0 28px; padding: 12px 10px; }
.workspace-avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-raised); color: var(--ink); font-size: 12px; font-weight: 650; flex: none; }
.workspace-switch strong { display: block; font-size: 11px; color: var(--ink); font-weight: 550; }
.workspace-switch small { display: block; font-size: 10px; margin-top: 4px; color: var(--muted); }
.workspace-dot { width: 5px; height: 5px; border-radius: 50%; background: #152b24; margin-left: auto; }
.nav-label { font-size: 9px; color: var(--muted); letter-spacing: 1.5px; font-weight: 600; padding: 0 12px; margin-bottom: 11px; }
.nav-button { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: transparent; color: var(--muted); padding: 12px; border-radius: 6px; text-align: left; font-size: 12px; margin-bottom: 5px; }
.nav-button.active { background: var(--surface-raised); color: var(--ink); box-shadow: inset 3px 0 #f4414d; }
.nav-button:hover { background: var(--surface-raised); color: var(--ink); }
.nav-button svg { width: 17px; height: 17px; }
.project-nav-label { margin-top: 30px; }
.sidebar-project { display: flex; gap: 9px; font-size: 11px; padding: 10px 12px; color: var(--muted); }
.sidebar-project span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-project svg { width: 15px; height: 15px; color: var(--muted); }
.sidebar-bottom { margin-top: auto; }
.local-note { padding: 18px 10px; display: flex; gap: 9px; font-size: 10px; line-height: 1.65; color: var(--muted); }
.local-note svg { width: 15px; margin-top: 3px; }
.sidebar-footer { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line-strong); padding: 18px 9px 0; color: var(--muted); font-size: 11px; }
.sidebar-footer small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.workspace-avatar.small { width: 28px; height: 28px; background: var(--surface-raised); color: var(--muted); }
.content { grid-column: 2; min-width: 0; }
.topbar { height: 64px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); padding: 0 34px; gap: 15px; }
.breadcrumb { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 11px; min-width: 0; }
.breadcrumb strong { font-weight: 500; color: var(--text-secondary); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.breadcrumb svg { width: 12px; height: 12px; color: var(--muted); }
.environment { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; color: var(--muted); white-space: nowrap; }
.environment i { width: 5px; height: 5px; background: #152b24; border-radius: 50%; }
.page { padding: 32px 34px; max-width: 1550px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.page-heading h2 { font-size: 23px; }
.subtext { color: var(--muted); font-size: 12px; margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-secondary); text-decoration: none; font-size: 12px; font-weight: 550; min-height: 37px; white-space: nowrap; box-shadow: 0 1px 2px #33312c05; }
.button:hover { background: var(--surface); border-color: var(--line); }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--ink); box-shadow: 0 2px 3px #892e3416; }
.button.primary:hover { background: var(--primary); }
.button.small { padding: 8px 11px; min-height: 33px; font-size: 11px; }
.button.small svg { width: 15px; height: 15px; }
.button.full { width: 100%; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0; background: transparent; font-size: 11px; font-weight: 550; color: var(--accent); }
.text-button svg { width: 13px; height: 13px; }
.text-button:hover { color: var(--accent); text-decoration: underline; }
.quick-import { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 22px 24px 16px; box-shadow: 0 2px 5px #2a282403; }
.quick-import-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 17px; }
.quick-import-heading h2 { font-size: 14px; margin: 0 0 4px; }
.quick-import-heading p { font-size: 11px; color: var(--muted); margin: 0; }
.feature-icon { height: 35px; width: 35px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 7px; }
.quick-import form { display: flex; gap: 10px; }
.url-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 0 13px; background: var(--surface); flex: 1; }
.url-input svg { color: var(--muted); width: 16px; }
.url-input input { width: 100%; min-width: 0; background: transparent; border: 0; padding: 12px 0; color: var(--text-secondary); font-size: 12px; }
.url-input input:focus-visible { outline-offset: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); }
.quick-import-foot { display: flex; justify-content: space-between; margin-top: 11px; gap: 12px; font-size: 10px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 30px; }
.stat-card { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 8px; padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.stat-card.selected { border-color: var(--line); }
.stat-card:hover { border-color: var(--line); }
.stat-card span { color: var(--muted); font-size: 10px; }
.stat-card strong { display: block; font-size: 24px; font-weight: 600; margin-top: 9px; line-height: 1; letter-spacing: -.6px; }
.stat-card .stat-icon { width: 33px; height: 33px; background: var(--surface); color: var(--muted); border-radius: 7px; display: grid; place-items: center; }
.stat-icon.ready { background: #152b24; color: #8cdbb7; }
.stat-icon.review { background: #242424; color: #ff6b72; }
.stat-icon.processing { background: var(--surface); color: var(--accent); }
.stat-icon svg { width: 16px; height: 16px; }
.section-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 24px 0 17px; }
.section-title { display: flex; align-items: center; gap: 9px; }
.section-title h2 { font-size: 14px; margin: 0; }
.section-title h3 { margin: 0; }
.count { display: inline-block; background: var(--surface); color: var(--muted); padding: 3px 7px; border-radius: 5px; font-size: 10px; vertical-align: middle; font-weight: 500; }
.filters { display: flex; gap: 10px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; }
.search svg { width: 14px; height: 14px; color: var(--muted); }
.search input { background: transparent; border: 0; outline: none; width: 166px; color: var(--text-secondary); font-size: 11px; }
.view-toggle { display: inline-flex; background: var(--surface); padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 5px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 4px; padding: 6px; color: var(--muted); }
.icon-button svg { width: 16px; height: 16px; }
.icon-button.active { background: white; color: var(--accent); box-shadow: 0 1px 3px #2d2b2812; }
.icon-button:hover { background: var(--surface); color: var(--text-secondary); }
.empty-state { border: 1px dashed var(--line); border-radius: 8px; padding: 42px 22px; min-height: 250px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 47px; height: 47px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 11px; margin-bottom: 16px; }
.empty-icon svg { width: 23px; height: 23px; }
.empty-state h3 { font-size: 15px; margin-bottom: 8px; }
.empty-state p { max-width: 400px; color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 19px; }
.project-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); text-align: left; padding: 0; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.project-card:hover { box-shadow: 0 6px 20px #44423e0c; border-color: var(--line); }
.project-thumbnail { height: 167px; background: var(--surface); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-thumbnail iframe { position: absolute; top: 24px; left: 0; width: 1200px; height: 660px; transform: scale(.27); transform-origin: top left; border: 0; background: var(--surface); pointer-events: none; }
.thumbnail-browser { height: 24px; position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; padding: 0 12px; background: var(--surface); }
.thumbnail-browser span { height: 4px; width: 4px; background: var(--surface-raised); border-radius: 50%; }
.thumbnail-open { position: absolute; right: 12px; bottom: 11px; display: flex; align-items: center; gap: 7px; background: var(--surface); color: var(--muted); padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: 9px; opacity: 0; }
.thumbnail-open svg { width: 12px; height: 12px; }
.project-card:hover .thumbnail-open { opacity: 1; }
.thumbnail-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 11px; }
.thumbnail-placeholder svg { width: 29px; height: 29px; }
.project-body { padding: 17px 17px 13px; }
.project-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-name h3 { font-size: 13px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-name svg { height: 13px; width: 13px; color: var(--muted); }
.project-body>p { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 8px 0 16px; }
.project-meta { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.project-meta>span:last-child { font-size: 9px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: var(--muted); background: var(--surface); border-radius: 4px; font-size: 9px; line-height: 1.2; white-space: nowrap; }
.status i { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.status.ready { color: #8cdbb7; background: #152b24; }
.status.processing, .status.queued { color: var(--muted); background: var(--surface); }
.status.incompatible { color: #ff6b72; background: #242424; }
.status.failed { color: #ffb07a; background: #2b1a10; }
.dashboard-help { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 19px 0; margin-top: 12px; color: var(--muted); font-size: 11px; }
.dashboard-help>span { display: flex; align-items: center; gap: 8px; }
.dashboard-help svg { height: 15px; width: 15px; }
.table-wrap { border: 1px solid var(--line); border-radius: 7px; overflow: auto; }
.project-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.project-table th { text-align: left; font-weight: 550; font-size: 10px; background: var(--surface); color: var(--muted); padding: 13px 17px; white-space: nowrap; }
.project-table td { padding: 12px 17px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); white-space: nowrap; }
.project-table-name { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; }
.project-table-name svg { color: var(--muted); }
.project-table-name strong { display: block; font-size: 12px; color: var(--text-secondary); font-weight: 550; }
.project-table-name small { display: block; font-size: 10px; color: var(--muted); max-width: 280px; overflow: hidden; text-overflow: ellipsis; margin-top: 5px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.notice { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 17px 19px; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 20px; }
.notice>svg { margin-top: 3px; color: var(--muted); }
.notice strong { color: var(--muted); font-size: 12px; }
.notice p { margin: 6px 0 0; font-size: 11px; }
.error { border: 1px solid var(--line); background: #2b1a10; color: #ffb07a; padding: 12px; border-radius: 5px; font-size: 12px; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere; }
.loading { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 80px 30px; color: var(--muted); font-size: 12px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--line); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
.spinner.large { width: 28px; height: 28px; border-width: 3px; margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
#notifications { position: fixed; bottom: 20px; right: 22px; max-width: 380px; z-index: 50; }
.toast { padding: 13px 18px; margin-top: 8px; background: var(--surface-raised); color: var(--ink); border-radius: 7px; font-size: 12px; box-shadow: 0 6px 30px #3c3a3533; }
.toast.error { background: #2b1a10; color: var(--ink); }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 12px; width: calc(100% - 32px); max-width: 545px; color: var(--ink); box-shadow: 0 20px 100px #1e1d1a55; }
dialog::backdrop { background: #1c1c1cb8; backdrop-filter: blur(3px); }
.modal-head { padding: 27px 28px 17px; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head h2 { font-size: 23px; margin: 16px 0 8px; }
.modal-head p { font-size: 12px; color: var(--muted); margin: 0; }
.modal-icon { display: grid; place-items: center; background: var(--surface); color: var(--accent); width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; }
.modal-body { padding: 0 28px 26px; }
.tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 8px; font-size: 12px; color: var(--muted); }
.tab.active { color: var(--accent); border-bottom-color: var(--line); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.field { display: block; font-size: 11px; color: var(--muted); font-weight: 550; margin-bottom: 17px; min-width: 0; }
.field input, .field textarea, .field select { display: block; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 10px 11px; margin-top: 7px; color: var(--text-secondary); font-size: 12px; font-weight: 400; min-width: 0; }
.field textarea { min-height: 115px; resize: vertical; line-height: 1.6; }
.field textarea.code-input { min-height: 180px; font-family: ui-monospace, monospace; font-size: 11px; }
.field small { display: block; margin-top: 7px; font-size: 10px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.field input[type=file] { font-size: 10px; padding: 7px; line-height: 1.8; }
.field input[type=file]::file-selector-button { border: 1px solid var(--line); background: var(--surface); border-radius: 3px; padding: 5px; margin-right: 6px; color: var(--muted); font-size: 10px; cursor: pointer; }
.field-help { font-size: 10px; color: var(--muted); line-height: 1.65; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); cursor: pointer; }
.checkbox-field input { accent-color: var(--primary); margin: 0; width: 14px; height: 14px; flex: none; }
.checkbox-field strong { display: block; font-size: 12px; color: var(--muted); font-weight: 550; }
.checkbox-field small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); line-height: 1.6; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-card { padding: 25px; }
.guide-card h2 { font-size: 16px; margin: 17px 0 10px; }
.guide-card p { margin: 0; color: var(--muted); font-size: 12px; }
.step { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--surface); padding: 6px 8px; border-radius: 5px; }
.editor-header { background: var(--surface); display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.editor-project-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.editor-project-title>div { min-width: 0; }
.editor-project-title h1 { font-size: 18px; letter-spacing: -.4px; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.editor-project-title p { font-size: 10px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 340px; margin: 0; }
.editor-project-title p span { margin: 0 9px; }
.back-button { transform: rotate(180deg); border: 1px solid var(--line); }
.editor-header-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.editor-header-actions>.status { margin-right: 3px; }
.editor-tabs { display: flex; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
.editor-tab { display: flex; align-items: center; gap: 8px; padding: 15px 0; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; font-size: 11px; white-space: nowrap; }
.editor-tab svg { width: 15px; height: 15px; }
.editor-tab.active { color: var(--accent); border-bottom-color: var(--line); }
.editor-tab span { font-size: 9px; padding: 1px 5px; background: var(--surface); color: var(--muted); border-radius: 4px; }
.canvas-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 52px; padding: 9px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.canvas-caption { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.canvas-caption>svg { width: 14px; height: 14px; }
.canvas-caption-detail { color: var(--muted); margin-left: 5px; font-size: 9px; }
.canvas-actions { display: flex; align-items: center; gap: 12px; }
.canvas-actions .icon-button svg { width: 14px; height: 14px; }
.comparison-button { font-size: 10px; background: transparent; border: 0; border-radius: 3px; padding: 5px 9px; color: var(--muted); }
.comparison-button.active { background: var(--surface); color: var(--muted); box-shadow: 0 1px 3px #34322e0e; }
.history-controls { display: flex; gap: 5px; padding-left: 9px; border-left: 1px solid var(--line); }
.editor-layout { display: grid; grid-template-columns: 204px minmax(0, 1fr) 265px; height: calc(100vh - 252px); min-height: 540px; }
.elements-panel { background: var(--surface); border-right: 1px solid var(--line); min-width: 0; overflow: auto; }
.panel-title { padding: 19px 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-title h2 { font-size: 12px; margin: 0; font-weight: 600; }
.panel-title>svg { color: var(--muted); width: 14px; height: 14px; }
.panel-description { font-size: 9px; color: var(--muted); padding: 8px 16px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.panel-padding { padding: 15px; font-size: 11px; }
.target-list { padding: 9px 7px; }
.target-button { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid transparent; border-radius: 5px; background: var(--surface); padding: 10px 8px; text-align: left; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.target-button>svg { width: 13px; height: 13px; color: var(--muted); }
.target-button>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.target-button.active { background: var(--surface); border-color: var(--line); color: var(--accent); }
.target-button.active>svg { color: var(--accent); }
.target-button:hover { background: var(--surface); }
.target-kind { font-size: 8px; color: var(--muted); flex: none; margin-left: auto; }
.preview-stage { background-color: var(--surface); background-image: radial-gradient(var(--surface-raised) .65px, transparent .65px); background-size: 12px 12px; padding: 22px; overflow: auto; display: flex; justify-content: center; align-items: flex-start; min-width: 0; }
.preview-device { width: 100%; height: 100%; min-height: 480px; background: var(--surface); box-shadow: 0 4px 20px #3837320e; border: 1px solid var(--line); border-radius: 5px; display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; }
.preview-stage.mobile .preview-device { width: 392px; max-width: none; }
.preview-address { height: 27px; display: flex; align-items: center; gap: 4px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.preview-address>span { width: 4px; height: 4px; border-radius: 50%; background: var(--surface-raised); }
.preview-address small { font-size: 8px; color: var(--muted); margin-left: auto; }
.preview-stage iframe { border: 0; width: 100%; height: 100%; background: var(--surface); flex: 1; min-height: 430px; }
.inspector { background: var(--surface); border-left: 1px solid var(--line); overflow: auto; min-width: 0; }
.inspector .panel-title { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
#target-editor { padding: 18px 16px; }
.selected-element { display: flex; gap: 10px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.selected-icon { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--accent); display: grid; place-items: center; }
.selected-icon svg { width: 15px; height: 15px; }
.selected-element strong { font-size: 11px; font-weight: 550; display: block; }
.selected-element small { font-size: 9px; color: var(--muted); margin-top: 4px; display: block; }
#target-editor h3 { font-size: 11px; margin-bottom: 14px; }
#target-editor .field { font-size: 10px; }
#target-editor .field input, #target-editor .field select, #target-editor .field textarea { font-size: 11px; padding: 8px; }
#target-editor .field small { font-size: 9px; }
#target-editor .button { font-size: 11px; }
.video-source { border: 1px solid var(--line); border-radius: 5px; padding: 10px; margin-bottom: 16px; color: var(--muted); }
.video-source span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.video-source strong { display: block; color: var(--text-secondary); font-size: 11px; margin-top: 4px; }
.video-source small { display: block; font-size: 9px; line-height: 1.5; margin-top: 5px; overflow-wrap: anywhere; }
.video-source-mode { border: 0; padding: 0; margin: 0 0 16px; }
.video-source-mode legend { color: var(--muted); font-size: 10px; font-weight: 550; margin-bottom: 8px; }
.video-source-mode label { display: flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; font-size: 10px; margin: 8px 0; }
.video-source-mode input { accent-color: var(--accent); margin: 0; }
.style-form { padding-top: 21px; margin-top: 22px; border-top: 1px solid var(--line); }
.style-form h3 { display: flex; gap: 8px; align-items: center; }
.style-form h3 svg { width: 14px; height: 14px; color: var(--muted); }
.inspector-empty { padding: 10px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.inspector-empty .button { white-space: normal; margin-top: 9px; }
.editor-page { max-width: 1400px; padding: 30px; }
.editor-page .page-heading { margin-bottom: 23px; }
.editor-page .page-heading h2 { font-size: 20px; }
.bulk-panel { padding: 21px 24px; margin-bottom: 25px; }
.bulk-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bulk-panel h3 svg { width: 15px; height: 15px; color: var(--muted); }
.bulk-panel p { color: var(--muted); font-size: 11px; margin-bottom: 18px; }
.bulk-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 15px; align-items: start; }
.bulk-fields>.button { margin-top: 23px; }
.bulk-fields .field { margin-bottom: 0; }
.links-table { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.links-table-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; background: var(--surface); padding: 15px 24px; font-size: 10px; color: var(--muted); font-weight: 550; }
.link-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; padding: 24px; border-top: 1px solid var(--line); }
.link-label { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.link-label strong { font-size: 11px; font-weight: 550; }
.link-label code { font-size: 9px; color: var(--muted); font-weight: 400; margin-left: 7px; }
.link-number { font-size: 9px; color: var(--muted); padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.link-row .field { margin-bottom: 11px; }
.link-destination-form { padding-top: 2px; }
.link-options { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 23px; align-items: start; }
.settings-panel { padding: 25px; }
.panel-heading { border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 23px; }
.panel-heading h3 { font-size: 14px; margin-bottom: 7px; }
.panel-heading p { font-size: 11px; color: var(--muted); margin: 0; }
.integration-field { display: flex; align-items: flex-start; gap: 15px; margin: 0 0 10px; }
.integration-field .field { flex: 1; }
.integration-logo { width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 7px; font-size: 21px; font-weight: 700; display: grid; place-items: center; margin-top: 21px; color: var(--muted); background: var(--surface); flex: none; }
.integration-logo.meta { color: var(--muted); }
.integration-logo.google { color: #8cdbb7; font-size: 18px; }
.integration-logo.ads { color: #ff6b72; font-size: 18px; }
.consent-setting { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin-top: 10px; }
.consent-setting .checkbox-field { align-items: flex-start; }
.consent-setting input { margin-top: 2px; }
.form-footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.form-footer>span { font-size: 10px; color: var(--muted); }
.settings-aside>.panel { padding: 23px; margin-bottom: 20px; }
.settings-aside h3 { font-size: 13px; }
.settings-aside p { font-size: 11px; color: var(--muted); }
.settings-aside .notice { margin-top: 0; }
.aside-icon { display: inline-flex; background: var(--surface); color: var(--accent); border: 1px solid var(--line); padding: 9px; border-radius: 7px; margin-bottom: 17px; }
.check-results { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 17px; font-size: 11px; }
.check-results>strong { color: var(--muted); font-size: 11px; font-weight: 550; }
.check-results>small { display: block; color: var(--muted); font-size: 9px; margin-top: 10px; }
.check-result { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--muted); font-size: 10px; }
.check-result>svg { height: 14px; width: 14px; color: #8cdbb7; }
.check-result small { display: block; margin-top: 4px; color: var(--muted); }
.check-results pre { overflow: auto; font-size: 10px; max-height: 180px; }
.seo-preview { margin-top: 20px; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; overflow-wrap: anywhere; }
.seo-preview>small { font-size: 9px; color: var(--muted); }
.seo-preview>strong { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--accent); display: block; margin: 8px 0; }
.seo-preview p { font-size: 11px; margin: 0; }
.project-details dl { display: grid; grid-template-columns: 1fr 1.6fr; gap: 13px; font-size: 10px; margin: 20px 0 0; }
.project-details dt { color: var(--muted); }
.project-details dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.publish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; }
.publish-card { padding: 28px; }
.publish-icon { display: inline-flex; width: 41px; height: 41px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); border-radius: 9px; margin-bottom: 21px; }
.publish-icon.export { background: #152b24; border-color: var(--line); color: #8cdbb7; }
.publish-card h3 { font-size: 15px; }
.publish-card .section-title { flex-wrap: wrap; margin-bottom: 11px; }
.publish-card p { font-size: 12px; color: var(--muted); margin-bottom: 23px; }
.tag { color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; font-size: 8px; letter-spacing: .5px; padding: 4px 6px; }
.publish-facts { display: flex; flex-direction: column; gap: 13px; padding-bottom: 26px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.publish-facts>span { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 10px; }
.publish-facts svg { width: 14px; height: 14px; color: var(--muted); }
.published-result { margin-top: 22px; padding: 16px; background: #152b24; border: 1px solid var(--line); border-radius: 6px; }
.published-link { display: flex; align-items: center; gap: 8px; margin: 13px 0 8px; color: #8cdbb7; font-size: 11px; }
.published-link svg { height: 13px; width: 13px; }
.published-result code { font-size: 9px; color: #8cdbb7; overflow-wrap: anywhere; }
.publish-review { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; padding: 23px; }
.publish-review h3 { font-size: 13px; margin-bottom: 7px; }
.publish-review p { font-size: 11px; color: var(--muted); margin: 0; }
.diagnostic-row { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; margin-bottom: 10px; font-size: 12px; overflow-wrap: anywhere; }
.diagnostic-row>svg { color: var(--muted); height: 16px; width: 16px; margin-top: 2px; }
.diagnostic-row strong { font-weight: 500; color: var(--muted); }
.diagnostic-source { margin-top: 8px; font-size: 10px; }
@media (min-width: 1550px) { .page { padding: 40px 46px; } .dashboard { padding-top: 42px; } .projects-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); } .editor-layout { grid-template-columns: 225px minmax(0, 1fr) 285px; } }
@media (max-width: 1250px) { .shell { grid-template-columns: 186px minmax(0, 1fr); } .sidebar { width: 186px; padding-left: 12px; padding-right: 12px; } .workspace-switch { padding: 11px 8px; } .workspace-switch strong { font-size: 10px; } .brand { font-size: 26px; } .page { padding: 28px; } .editor-layout { grid-template-columns: 172px minmax(0, 1fr) 240px; } .editor-header { padding: 18px 20px; } .editor-header-actions>.status { display: none; } .editor-project-title h1 { max-width: 230px; } .editor-project-title p { max-width: 230px; } .canvas-caption-detail { display: none; } .target-kind { display: none; } .stat-card { padding: 16px 13px; } .stat-card .stat-icon { width: 27px; height: 27px; } .stat-card span { font-size: 9px; } .preview-stage { padding: 15px; } .settings-layout { grid-template-columns: 1.4fr 1fr; gap: 18px; } .settings-panel { padding: 20px; } }
@media (max-width: 1050px) { .editor-layout { grid-template-columns: 165px minmax(0, 1fr); height: auto; min-height: 0; } .preview-stage { height: 650px; } .inspector { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; } #target-editor { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 22px; align-items: start; } .selected-element { border: 0; } .style-form { margin-top: 0; padding-top: 0; border: 0; } .editor-project-title h1 { max-width: 180px; } .editor-header-actions { gap: 5px; } .editor-header-actions .button { font-size: 10px; padding: 7px 9px; } .editor-project-title p { max-width: 190px; } .editor-tabs { gap: 20px; padding: 0 20px; } .settings-layout { grid-template-columns: 1fr; } .settings-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; } .settings-aside>.panel { margin: 0; } .publish-grid { gap: 16px; } .publish-card { padding: 22px; } .quick-import-foot { font-size: 9px; } }
@media (max-width: 800px) { .shell { grid-template-columns: 68px minmax(0, 1fr); } .sidebar { width: 68px; padding: 23px 9px; align-items: center; } .brand { font-size: 0; padding: 0; gap: 0; margin-bottom: 30px; } .brand-dot { display: none; } .brand-symbol { width: 23px; height: 23px; } .workspace-switch, .nav-label, .sidebar-bottom, .sidebar-project { display: none; } .nav-button { padding: 13px; margin-bottom: 7px; } .nav-button span { display: none; } .nav-button.active { box-shadow: inset 2px 0 #f4414d; } .topbar { padding: 0 24px; } .page { padding: 25px; } .stats { gap: 9px; } .stat-card { padding: 14px 12px; } .stat-card .stat-icon { display: none; } .stat-card strong { font-size: 23px; } .bulk-fields { grid-template-columns: 1fr 1fr; } .bulk-fields>.button { grid-column: 1 / -1; justify-self: end; margin: 0; } .editor-header { flex-wrap: wrap; gap: 15px; } .editor-project-title h1, .editor-project-title p { max-width: 400px; } .editor-header-actions { margin-left: auto; } .editor-tabs { gap: 22px; } .canvas-toolbar { padding: 9px 16px; } .canvas-caption { font-size: 9px; } .canvas-actions { gap: 7px; } .history-controls { gap: 1px; padding-left: 4px; } .editor-layout { grid-template-columns: 152px minmax(0, 1fr); } #target-editor { grid-template-columns: 1fr 1fr; } .selected-element { grid-column: 1 / -1; padding: 0; margin: 0; } }
@media (max-width: 600px) { .shell { display: block; } .sidebar { position: static; width: 100%; padding: 15px 18px; flex-direction: row; gap: 20px; } .brand { font-size: 23px; gap: 10px; margin: 0 auto 0 0; letter-spacing: -1px; } .brand-dot { display: inline; margin-left: -10px; } .brand-symbol { width: 19px; height: 21px; } .sidebar nav { display: flex; gap: 4px; } .nav-button { padding: 9px; width: auto; margin: 0; } .nav-button svg { width: 16px; height: 16px; } .topbar { height: 48px; padding: 0 18px; } .breadcrumb { gap: 8px; font-size: 10px; } .environment { font-size: 8px; padding: 5px 7px; } .page { padding: 24px 18px; } h1 { font-size: 24px; } .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 23px; } .page-heading>.button { padding: 9px 11px; font-size: 10px; } .page-heading>.button svg { width: 14px; height: 14px; } .subtext { font-size: 11px; } .quick-import { padding: 18px; } .quick-import form { flex-direction: column; gap: 9px; } .quick-import form>.button { align-self: stretch; } .quick-import-heading p { font-size: 10px; } .quick-import-foot { flex-direction: column; gap: 9px; font-size: 9px; line-height: 1.6; } .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 23px; } .stat-card .stat-icon { display: grid; } .stat-card span { font-size: 10px; } .stat-card strong { font-size: 22px; } .section-toolbar { flex-wrap: wrap; gap: 14px; } .filters { width: 100%; } .search { flex: 1; } .search input { width: 100%; min-width: 0; } .section-title h2 { font-size: 14px; } .projects-grid { grid-template-columns: 1fr; } .project-thumbnail { height: 175px; } .project-thumbnail iframe { transform: scale(.30); } .dashboard-help { align-items: flex-start; flex-direction: column; line-height: 1.6; gap: 12px; } .dashboard-help>span { align-items: flex-start; } .empty-state { padding: 32px 18px; } .empty-state h3 { font-size: 14px; } .empty-state p { font-size: 11px; } .empty-state .button { font-size: 11px; padding: 9px 12px; } .guide-grid { grid-template-columns: 1fr; gap: 14px; } .guide-card { padding: 22px; } .modal-head { padding: 22px; } .modal-body { padding: 0 22px 22px; } .editor-header { padding: 18px; } .editor-project-title h1 { max-width: 280px; font-size: 17px; } .editor-project-title p { max-width: 280px; } .editor-header-actions { width: 100%; justify-content: flex-end; gap: 8px; } .editor-header-actions .button { font-size: 10px; } .editor-tabs { gap: 20px; padding: 0 18px; } .editor-tab { font-size: 10px; } .editor-tab svg { width: 13px; height: 13px; } .canvas-toolbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; } .canvas-actions { margin-left: auto; } .canvas-caption { display: none; } .editor-layout { display: flex; flex-direction: column; } .elements-panel { max-height: 205px; border: 0; border-bottom: 1px solid var(--line); } .panel-title { padding: 14px 15px 0; } .panel-description { padding-bottom: 8px; } .target-list { display: flex; overflow-x: auto; padding: 9px 12px; gap: 6px; } .target-button { width: 145px; flex-shrink: 0; padding: 9px; font-size: 10px; border-color: var(--line); margin: 0; } .preview-stage { height: 610px; padding: 12px; justify-content: flex-start; } .preview-stage.mobile .preview-device { width: 392px; max-width: none; } .preview-device { min-height: 550px; } .inspector { max-height: none; } #target-editor { display: block; padding: 20px; } .selected-element { margin-bottom: 20px; } .style-form { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 25px; } .field-grid { gap: 0 14px; } .editor-page .page-heading h2 { font-size: 21px; } .bulk-panel { padding: 18px; } .bulk-fields { grid-template-columns: 1fr; gap: 14px; } .bulk-fields>.button { width: 100%; } .links-table-head { display: none; } .link-row { grid-template-columns: 1fr; gap: 24px; padding: 20px; } .link-row:first-child { border-top: 0; } .link-destination-form { padding-top: 20px; border-top: 1px solid var(--line); } .settings-aside { grid-template-columns: 1fr; } .settings-panel { padding: 20px; } .form-footer { flex-wrap: wrap; justify-content: flex-end; } .form-footer>span { margin-right: auto; } .integration-field { gap: 10px; } .integration-logo { width: 28px; height: 28px; font-size: 17px; } .publish-grid { grid-template-columns: 1fr; } .publish-review { flex-direction: column; align-items: flex-start; padding: 20px; } .publish-review>.button { width: 100%; } .notice { padding: 15px; font-size: 11px; } .notice>svg { width: 15px; height: 15px; } .page-heading .status { display: none; } #notifications { right: 16px; left: 16px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* Product controls stay readable at standard browser zoom. */
.nav-button { font-size: 13px; }
.button { font-size: 13px; }
.button.small { font-size: 12px; }
.subtext, .quick-import-heading p, .settings-aside p { font-size: 13px; }
.quick-import-heading h2, .section-title h2 { font-size: 15px; }
.quick-import form input { font-size: 13px; }
.quick-import-foot { font-size: 11px; }
.stat-card span { font-size: 11px; }
.search input, .text-button, .comparison-button { font-size: 12px; }
.project-name h3 { font-size: 14px; }
.project-body>p { font-size: 11px; }
.status { font-size: 10px; }
.editor-tab { font-size: 12px; }
.canvas-caption { font-size: 11px; }
.target-button { font-size: 12px; }
.target-kind { font-size: 9px; }
.panel-description { font-size: 10px; }
#target-editor h3, #target-editor .field { font-size: 12px; }
#target-editor .field input, #target-editor .field select, #target-editor .field textarea { font-size: 12px; }
#target-editor .field small, .field small { font-size: 10px; }
#target-editor .button { font-size: 12px; }
.field { font-size: 12px; }
.field input, .field textarea, .field select { font-size: 13px; }
.checkbox-field, .panel-heading p, .bulk-panel p, .link-label strong { font-size: 12px; }
.publish-card p { font-size: 13px; }
.publish-facts>span, .publish-review p { font-size: 12px; }
@media (max-width: 600px) {
  .subtext { font-size: 12px; }
  .quick-import-foot { font-size: 10px; }
  .stat-card span { font-size: 11px; }
  .editor-header-actions .button { font-size: 11px; }
  .editor-tabs { gap: 19px; }
  .editor-tab { font-size: 12px; }
  .target-button { font-size: 11px; }
}
/* Accessible contrast for editing and configuration workflows. */
.subtext, .quick-import-heading p, .quick-import-foot, .dashboard-help,
.stat-card span, .project-body>p, .project-meta>span:last-child,
.panel-description, .panel-padding, .field-help, .field small,
.settings-aside p, .panel-heading p, .bulk-panel p, .publish-card p,
.publish-facts>span, .publish-review p, .form-footer>span,
.checkbox-field, .checkbox-field small, .guide-card p,
.project-details dt, .project-details dd, .inspector-empty,
.link-label code, .target-kind, .selected-element small,
.editor-project-title p, .canvas-caption, .canvas-caption-detail,
.check-results>small, .check-result, .check-result small,
.project-table th, .project-table td, .project-table-name small {
  color: var(--muted);
}
.field, .checkbox-field strong, .diagnostic-row strong { color: var(--muted); }
.editor-tab, .target-button, .target-button>svg { color: var(--muted); }
.editor-tab.active, .target-button.active, .target-button.active>svg { color: var(--accent); }
.nav-button { color: var(--muted); font-size: 13px; }
.nav-button.active { color: var(--ink); }
.target-button, .field, #target-editor .field,
#target-editor .field input, #target-editor .field select,
#target-editor .field textarea, .link-label strong { font-size: 13px; }
#target-editor h3, .panel-title h2 { font-size: 14px; }
.field small, #target-editor .field small, .field-help,
.panel-description, .form-footer>span, .checkbox-field small,
.publish-facts>span, .canvas-caption-detail, .inspector-empty { font-size: 11px; }
.target-kind, .selected-element small, .editor-project-title p { font-size: 10px; }
@media (max-width: 600px) {
  .target-button { font-size: 13px; width: 165px; }
}

.capture-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;font-size:12px;color:var(--muted)}.capture-summary>span:first-child{display:flex;align-items:center;gap:9px}.capture-summary strong{font-weight:550}.capture-summary svg{height:16px;width:16px}@media(max-width:600px){.capture-summary{align-items:flex-start;flex-direction:column;gap:10px}}
/* Workspace lifecycle and page operations. */
.editor-tabs { flex-wrap: wrap; gap: 0 24px; overflow: visible; }
.editor-tab { padding: 13px 0; }
.project-card { position: relative; overflow: visible; }
.project-card[hidden] { display: none; }
.billing-plan.preselected { outline: 2px solid #e5192c; outline-offset: 2px; }
.project-card>.project-thumbnail { width: 100%; display: block; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0; text-align: left; cursor: pointer; }
.project-title-button { min-width: 0; background: transparent; padding: 0; border: 0; text-align: left; }
.project-title-button h3 { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.project-menu { position: relative; flex: none; }
.project-menu-trigger { padding: 5px; }
.project-menu-list { position: absolute; right: 0; top: calc(100% + 5px); width: 208px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 7px 25px #3a383220; padding: 5px; z-index: 15; text-align: left; }
.project-menu-list>button, .project-menu-list>a { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; background: none; border: 0; font-size: 12px; color: var(--muted); text-decoration: none; border-radius: 4px; text-align: left; }
.project-menu-list>button:hover, .project-menu-list>a:hover { background: var(--surface); }
.project-menu-list svg { height: 14px; width: 14px; }
.project-actions-cell { position: relative; }
.project-table .project-menu-list { position: fixed; top: auto; right: 48px; }
.archive-filter.active { background: var(--surface); color: var(--accent); border-color: var(--line); }
.filters { flex-wrap: wrap; }
.sections-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(265px, 1fr); gap: 23px; align-items: start; }
.sections-list, .section-templates { padding: 23px; }
.sections-list .panel-heading, .section-templates .panel-heading { margin-bottom: 12px; }
.section-row { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.section-row:last-child { border-bottom: 0; padding-bottom: 5px; }
.section-position { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; color: var(--muted); font-size: 10px; flex: none; }
.section-row-main { flex: 1; min-width: 0; }
.section-row-main strong { display: block; font-size: 13px; font-weight: 550; color: var(--text-secondary); overflow-wrap: anywhere; }
.section-row-main small { font-size: 10px; color: var(--muted); display: block; margin-top: 4px; }
.section-actions { display: flex; align-items: center; gap: 3px; }
.section-actions .icon-button { padding: 5px; }
.section-actions svg { width: 14px; height: 14px; }
.rotate-up { display: flex; transform: rotate(-90deg); }
.rotate-down { display: flex; transform: rotate(90deg); }
.inline-confirm { width: 100%; border: 1px solid var(--line); background: #2b1a10; padding: 13px; border-radius: 5px; margin-top: 5px; }
.inline-confirm p { font-size: 12px; color: #ffb07a; margin-bottom: 10px; }
.inline-confirm .button-row { justify-content: flex-end; }
.button.danger { background: #2b1a10; border-color: var(--line-strong); color: var(--ink); }
.template-options { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.template-option { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 13px; cursor: pointer; }
.template-option:has(input:checked) { background: var(--surface); border-color: var(--line); }
.template-option input { accent-color: var(--primary); margin: 2px 0 0; }
.template-option strong { font-size: 12px; font-weight: 550; color: var(--muted); display: block; }
.template-option small { font-size: 11px; color: var(--muted); display: block; line-height: 1.6; margin-top: 5px; }
.template-note { margin-top: 13px; }
.forms-notice { margin-top: 0; margin-bottom: 24px; }
.form-config-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-config-card { padding: 23px; }
.form-config-heading { display: flex; flex-direction: column; gap: 17px; margin-bottom: 23px; }
.form-config-heading h3 { font-size: 15px; margin-bottom: 6px; }
.form-config-heading>div>small { font-size: 10px; color: var(--muted); }
.form-config-heading .checkbox-field { padding-top: 15px; border-top: 1px solid var(--line); }
.field-inventory { width: 100%; border-collapse: collapse; font-size: 12px; background: white; }
.field-inventory th { padding: 12px 14px; background: var(--surface); font-size: 10px; text-align: left; font-weight: 550; color: var(--muted); }
.field-inventory td { padding: 13px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.field-inventory td strong { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.field-inventory td small { display: block; font-size: 10px; margin-top: 4px; color: var(--muted); }
.success-message-field { margin: 22px 0 0; }
.sticky-form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 18px 0; margin-top: 7px; }
.sticky-form-footer>span { font-size: 11px; color: var(--muted); margin-right: auto; }
.analytics-settings { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px; }
.analytics-settings h3 { font-size: 14px; margin-bottom: 6px; }
.analytics-settings p { font-size: 12px; color: var(--muted); margin: 0; }
.analytics-settings form { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; flex-shrink: 0; }
.results-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.results-timeline { padding: 23px; margin-top: 24px; }
.results-timeline .panel-heading { margin-bottom: 18px; }
.results-empty { padding: 25px 15px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; }
.lead-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.lead-card { padding: 22px; }
.lead-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.lead-card header>span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.lead-card header strong { font-weight: 550; }
.lead-card header svg { height: 14px; width: 14px; }
.lead-card header>small { font-size: 10px; color: var(--muted); }
.lead-card dl { display: grid; grid-template-columns: minmax(70px, 1fr) 2fr; gap: 12px; margin: 20px 0 0; font-size: 12px; }
.lead-card dt { color: var(--muted); overflow-wrap: anywhere; }
.lead-card dd { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.results-leads-empty { min-height: 230px; }
.version-notice { margin-top: 0; margin-bottom: 23px; }
.version-list { padding: 5px 23px; }
.version-row { display: flex; align-items: center; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.version-row:last-child { border-bottom: 0; }
.version-icon { width: 34px; height: 34px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; }
.version-icon svg { width: 16px; height: 16px; }
.version-row>div { flex: 1; }
.version-row strong { display: block; font-size: 13px; font-weight: 550; color: var(--muted); }
.version-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.validation-panel { padding: 23px; margin-bottom: 23px; }
.validation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.validation-heading h3 { margin-bottom: 6px; font-size: 14px; }
.validation-heading p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.validation-checks { margin-top: 20px; border-top: 1px solid var(--line); }
.validation-check { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.validation-check:last-child { border: 0; padding-bottom: 0; }
.validation-check>span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #242424; color: #ff6b72; flex: none; }
.validation-check.passed>span { background: #152b24; color: #8cdbb7; }
.validation-check.informational>span { background: #1f2430; color: #9fb3d6; }
.validation-check.informational small, .validation-check.passed small { color: var(--muted); font-size: 11px; }
.validation-check svg { width: 14px; height: 14px; }
.validation-check>div { flex: 1; }
.validation-check strong { color: var(--muted); font-size: 12px; font-weight: 550; }
.validation-check p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.validation-check>small { font-size: 10px; color: #8cdbb7; }
@media(max-width:1250px) { .sections-layout { grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr); gap: 18px; } .sections-list, .section-templates { padding: 18px; } .analytics-settings { align-items: flex-start; flex-direction: column; gap: 18px; } .form-config-list { grid-template-columns: 1fr; } .editor-tabs { gap: 0 21px; } }
@media(max-width:800px) { .sections-layout { grid-template-columns: 1fr; } .lead-list { grid-template-columns: 1fr; } .template-options { display: grid; grid-template-columns: 1fr 1fr; } .editor-tabs { gap: 0 20px; } .editor-tab { font-size: 11px; padding: 12px 0; } .section-row-main { min-width: 150px; } }
@media(max-width:600px) { .editor-tabs { gap: 0; padding: 5px 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); } .editor-tab { gap: 6px; font-size: 11px; padding: 11px 5px; justify-content: center; } .editor-tab>span { display: none; } .editor-tab svg { height: 13px; width: 13px; } .filters { gap: 8px; } .filters .archive-filter { order: 3; width: 100%; justify-content: center; } .template-options { display: flex; } .section-actions { margin-left: auto; } .sticky-form-footer { align-items: flex-start; flex-direction: column; } .sticky-form-footer>.button { width: 100%; } .results-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; } .results-stats .stat-card { padding: 14px 10px; } .results-stats .stat-card span { font-size: 10px; } .results-stats .stat-icon { display: none; } .analytics-settings { padding: 19px; } .analytics-settings form { align-items: flex-start; flex-direction: column; width: 100%; } .analytics-settings form>.button { width: 100%; } .form-config-card,.results-timeline,.lead-card { padding: 18px; } .version-list { padding: 0 16px; } .version-row { gap: 10px; flex-wrap: wrap; } .version-row>.button { margin-left: 44px; } .validation-panel { padding: 18px; } .validation-heading { flex-direction: column; } .validation-check { align-items: flex-start; flex-wrap: wrap; } .validation-check>.text-button { margin-left: 40px; } .project-menu-list { width: 205px; } }
.experiment-panel { padding: 24px; margin-top: 28px; }
.experiment-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.experiment-heading h3 { font-size: 16px; margin-bottom: 8px; }
.experiment-heading p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.experiment-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.experiment-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.experiment-route { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: #152b24; border: 1px solid var(--line); border-radius: 6px; margin-top: 23px; }
.experiment-route>span { display: flex; gap: 8px; align-items: center; color: #8cdbb7; font-size: 11px; }
.experiment-route a { display: flex; align-items: center; gap: 8px; color: #8cdbb7; font-size: 12px; margin-left: auto; }
.experiment-route svg { width: 14px; height: 14px; }
.experiment-route code { font-size: 10px; color: #8cdbb7; width: 100%; overflow-wrap: anywhere; }
.experiment-table { margin-top: 24px; }
.experiment-note { font-size: 11px; color: var(--muted); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.8; }
.experiment-empty { display: flex; align-items: flex-start; gap: 18px; background: var(--surface); border: 1px dashed var(--line); padding: 23px; border-radius: 7px; }
.experiment-empty strong { font-size: 13px; font-weight: 550; color: var(--muted); }
.experiment-empty p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 8px 0 16px; }
.experiment-icon { display: grid; place-items: center; width: 37px; height: 37px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); flex: none; }
@media(max-width:800px) { .experiment-fields { grid-template-columns: 1fr 1fr; } .experiment-fields>.field:last-child { grid-column: 1/-1; } }
@media(max-width:600px) { .experiment-panel { padding: 18px; } .experiment-heading { flex-direction: column; gap: 12px; } .experiment-form-footer { align-items: flex-start; flex-direction: column; } .experiment-form-footer>.button { width: 100%; } .experiment-route { align-items: flex-start; flex-direction: column; gap: 12px; } .experiment-route a { margin-left: 0; } .experiment-empty { flex-direction: column; gap: 15px; padding: 18px; } }
.project-thumbnail .thumbnail-browser { position: absolute; top: 0; left: 0; right: 0; }

/* A captured form keeps every screen editable without running its source scripts. */
.step-navigator { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.step-navigator-intro { display: flex; align-items: center; gap: 12px; min-width: 0; }
.step-navigator-intro > svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.step-navigator-intro label { font-size: 13px; font-weight: 750; color: var(--ink); }
.step-navigator-intro p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.step-navigator-controls { display: flex; align-items: center; gap: 8px; min-width: 0; }
.step-counter { white-space: nowrap; font-size: 11px; color: var(--muted); margin-right: 4px; font-variant-numeric: tabular-nums; }
.step-navigator-controls select { width: 260px; max-width: 32vw; padding: 9px 30px 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 12px; text-overflow: ellipsis; }
.step-navigator-controls .icon-button { flex-shrink: 0; background: white; border: 1px solid var(--line); }
.has-steps .editor-layout { height: calc(100vh - 332px); }
@media (max-width: 1100px) {
  .step-navigator { flex-wrap: wrap; }
  .step-navigator-controls { flex: 1; }
  .step-navigator-controls select { width: 100%; max-width: none; }
}
@media (max-width: 640px) {
  .step-navigator { padding: 14px 16px; gap: 12px; }
  .step-navigator-controls { width: 100%; }
  .step-navigator-controls select { min-width: 0; flex: 1; }
  .step-navigator-intro p { font-size: 11px; }
  .has-steps .editor-layout { height: auto; }
}

.auth-loading { min-height: 100vh; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .95fr) minmax(440px, 1.05fr); }
.auth-story { padding: 50px 64px; background: var(--sidebar); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 70px; }
.auth-story .brand { padding: 0; }
.auth-story h1 { font-size: clamp(40px, 4.3vw, 68px); line-height: 1.08; letter-spacing: -2.8px; margin: 25px 0; font-weight: 640; }
.auth-story h1 em { color: var(--accent); font-style: normal; }
.auth-story p { max-width: 370px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.auth-story > small { color: var(--muted); font-size: 11px; }
.auth-eyebrow { font-size: 10px; letter-spacing: 2px; color: var(--accent); font-weight: 650; }
.auth-features { margin-top: 35px; display: grid; gap: 17px; color: var(--muted); font-size: 12px; }
.auth-features span { display: flex; gap: 12px; align-items: center; }
.auth-features svg { color: var(--accent); }
.auth-main { display: flex; justify-content: center; align-items: center; padding: 50px 36px; background: var(--surface); }
.auth-card { width: 100%; max-width: 370px; }
.auth-mark { display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--accent); margin-bottom: 25px; }
.auth-card h2 { font-size: 27px; letter-spacing: -.8px; }
.auth-card > .subtext { margin-bottom: 28px; }
.auth-card .field { margin-bottom: 19px; }
.auth-card input { min-height: 45px; }
.auth-card button[type=submit] { min-height: 45px; margin-top: 6px; }
.auth-terms { align-items: flex-start; margin: 0 0 14px; font-size: 12px; line-height: 1.5; }
.auth-terms input { margin-top: 3px; }
.auth-legal { margin-top: 8px; }
.auth-legal a { color: inherit; text-decoration: underline; padding: 8px 2px; }
.auth-terms a { color: inherit; text-decoration: underline; }
.auth-switch { text-align: center; margin: 25px 0 0; color: var(--muted); font-size: 12px; }
.auth-switch button { margin-left: 4px; }
.auth-notice { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--text-secondary); font-size: 12px; line-height: 1.6; margin-bottom: 22px; }
.account-identity { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity small { overflow: hidden; text-overflow: ellipsis; display: block; }
.logout-button { color: var(--muted); flex-shrink: 0; width: 27px; height: 29px; }
.logout-button:hover { background: var(--surface-raised); color: white; }
.admin-eyebrow { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; font-weight: 650; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-billing-notice { margin-bottom: 24px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.admin-metric { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.admin-metric span { font-size: 12px; color: var(--muted); }
.admin-metric strong { font-size: 29px; letter-spacing: -.8px; }
.admin-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-summary { padding: 24px; }
.admin-summary h2 { font-size: 16px; }
.admin-summary dl { margin: 18px 0 22px; }
.admin-summary dl > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 0; gap: 12px; }
.admin-summary dt { color: var(--muted); }
.admin-summary dd { margin: 0; font-weight: 650; }
.admin-recent { display: flex; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.admin-recent small { display: block; margin-top: 5px; color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.admin-table th { text-align: left; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 600; }
.admin-table th, .admin-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.admin-table td small { display: block; margin-top: 5px; color: var(--muted); }
.admin-subscription-form { display: grid; grid-template-columns: minmax(160px, 1.1fr) minmax(140px, 1fr) minmax(120px, .7fr) auto; gap: 18px; align-items: end; padding: 22px; border-top: 1px solid var(--line); }
.admin-subscription-form .field { margin-bottom: 0; }
.admin-subscription-form .form-error { grid-column: 1 / -1; }
.admin-subscription-form .form-error:empty { display: none; }
.admin-customer { align-self: center; min-width: 0; }
.admin-customer small, .admin-customer span { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; overflow-wrap: anywhere; }
.admin-customer span { color: var(--muted); }
.admin-plans-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 24px; align-items: start; }
.admin-plan-form { padding: 22px; border-top: 1px solid var(--line); }
.admin-plan-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.admin-new-plan { padding: 24px; }
@media (max-width: 1100px) { .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-subscription-form { grid-template-columns: 1fr 1fr; } .admin-customer { grid-column: 1 / -1; } .admin-subscription-form > button { grid-column: 1 / -1; } .auth-story { padding: 40px; } }
@media (max-width: 760px) { .auth-layout { grid-template-columns: 1fr; } .auth-story { padding: 28px; gap: 0; } .auth-story > div, .auth-story > small { display: none; } .auth-main { padding: 40px 24px 60px; align-items: flex-start; } .auth-card h2 { font-size: 25px; } .admin-overview-grid, .admin-plans-layout { grid-template-columns: 1fr; } .admin-metric { padding: 17px; } .admin-metric strong { font-size: 23px; } .admin-tabs { gap: 6px; } .admin-tabs .button { padding: 9px 12px; font-size: 11px; } .admin-subscription-form { grid-template-columns: 1fr; } .admin-summary { padding: 20px; } }
@media (max-width: 800px) {
  .sidebar .sidebar-bottom { display: block; }
  .sidebar-bottom .local-note, .sidebar-footer .account-identity, .sidebar-footer .workspace-avatar { display: none; }
  .sidebar-footer { padding: 12px 0 0; border: 0; }
  .auth-story .brand { font-size: 28px; gap: 11px; margin-bottom: 0; }
}
@media (max-width: 600px) {
  .sidebar { gap: 9px; padding: 15px 14px; }
  .sidebar .sidebar-bottom { margin-top: 0; }
  .sidebar-footer { padding: 0; }
  .sidebar .brand { gap: 7px; font-size: 21px; }
  .sidebar nav { gap: 0; }
}

/* Replica / Obscura — visual language of lenses, focus and perception. */
body { background: radial-gradient(ellipse at 80% 0, #24232155, transparent 55%), #0a0a0a; }
::selection { color: #fff; background: #e5192c; }
.sidebar { border-right: 1px solid var(--line); }
.brand { font-weight: 600; letter-spacing: -1.5px; }
.brand-dot { color: var(--accent); }
.brand-symbol { width: 30px; height: 20px; border: 1.5px solid var(--accent); border-radius: 75% 15%; transform: rotate(45deg); flex-shrink: 0; }
.brand-symbol::after { width: 10px; height: 10px; inset: 3.5px auto auto 8.5px; border: 1px solid var(--accent); border-radius: 50%; background: #ff4d55; box-shadow: inset 0 0 0 3px #191817, 0 0 14px #f6525d55; }
.brand-symbol::before { content: ''; position: absolute; inset: -5px; border: 1px solid #ff4d5522; border-radius: inherit; }
.workspace-switch { background: #ffffff03; }
.workspace-avatar { background: #343330; color: #f97982; }
.nav-button.active { background: linear-gradient(90deg, #373634, #252422); box-shadow: inset 2px 0 var(--accent); color: #f8969d; }
.nav-button:hover { background: #282725; }
.topbar { background: #0a0a0ad9; }
.breadcrumb strong { color: var(--text-secondary); }
.button { border-radius: 8px; transition: background .18s, border-color .18s; }
.button:hover { background: #2a2a29; border-color: #656565; }
.button.primary { background: #e5192c; border-color: #d24a53; color: #fff; box-shadow: inset 0 1px #ffffff22, 0 3px 12px #0002; }
.button.primary:hover { background: #c93c46; }
.text-button, .text-button:hover { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: var(--accent); }
input, textarea, select { accent-color: var(--primary); }
input::placeholder, textarea::placeholder { color: #949494; }
.panel, .project-card, .quick-import, .stat-card { box-shadow: 0 4px 20px #00000014; }
.quick-import { background: linear-gradient(110deg, #232221, #171716 65%); border-color: #41403d; }
.feature-icon { background: #353431; color: var(--accent); border-color: #4a4a4a; }
.project-card:hover { border-color: #646464; }
.stat-card.selected { border-color: #9c9c9c; }
.editor-tab.active, .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.target-button.selected { background: #32312f; border-color: #747474; }
.preview-stage { background-color: #0e0e0e; background-image: radial-gradient(#3d3d3b 1px, transparent 1px); background-size: 18px 18px; }
.preview-device, .project-thumbnail iframe { background: #fff; color-scheme: light; }
dialog { color: var(--ink); box-shadow: 0 32px 100px #0009; }
dialog::backdrop { background: #070706cc; backdrop-filter: blur(5px); }
.auth-layout { background: #0a0a0a; }
.auth-story { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 43%, #3f3d3955, transparent 65%), #070707; border-right: 1px solid #2f2e2c; padding: 44px 56px; }
.auth-story .brand { position: relative; z-index: 2; }
.auth-story h1 { position: relative; z-index: 2; font-size: clamp(38px, 4vw, 62px); line-height: 1.08; letter-spacing: -2.5px; font-weight: 500; }
.auth-story h1 em { color: #c8c8c8; font-style: normal; }
.auth-story p { color: #b8b8b8; max-width: 370px; }
.auth-eyebrow { color: #bcbcbc; letter-spacing: 2.4px; }
.auth-main { background: radial-gradient(ellipse at 100% 100%, #2a29272f, transparent 70%), #141413; }
.auth-card { max-width: 380px; }
.auth-card h2 { font-weight: 500; }
.auth-card input { background: #1b1a19; border-color: #3d3d3b; min-height: 49px; }
.auth-card input:focus { border-color: #cc5c64; }
.auth-card button[type=submit] { min-height: 49px; }
.auth-mark { background: #282725; border-color: #474643; color: #c8c8c8; }
.auth-features { color: #bebebe; }
.auth-story > small { color: #a8a8a8; position: relative; z-index: 2; }
.admin-metric { background: linear-gradient(140deg, #232221, #111111 75%); }
.admin-metric strong { font-weight: 550; }
@media(max-width: 800px) { .brand-symbol { width: 26px; height: 18px; } .brand-symbol::after { inset: 2.5px auto auto 6.5px; } }
@media(max-width: 760px) { .auth-story { padding: 28px; border-right: 0; border-bottom: 1px solid var(--line); } }
.auth-story { gap: 28px; }
.auth-story-content { width: 100%; max-width: 490px; margin: 0 auto; }
.auth-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9px; }
.auth-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #e7666f; box-shadow: 0 0 12px #f6505b; }
.vision-art { position: relative; height: 230px; width: 100%; margin: 12px 0 20px; display: grid; place-items: center; }
.vision-eye { width: 255px; height: 145px; border: 1px solid #9c9c9c; border-radius: 80% 15%; transform: rotate(45deg); display: grid; place-items: center; background: radial-gradient(ellipse, #9696961c, transparent 70%); box-shadow: 0 0 40px #c0424b16, inset 0 0 30px #c0424b16; }
.vision-iris { position: relative; width: 120px; height: 120px; border: 1px solid #acacac; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #b0b0b049 0deg 1deg, #4645422a 1deg 5deg), radial-gradient(circle, #080808 25%, #8e8e8e 26%, #252422 55%, #b2b2b2 56%, #0a0a0a 59%); box-shadow: 0 0 28px #c8535b3b; }
.vision-iris-ring { position: absolute; inset: 12px; border: 1px solid #c4c4c480; border-radius: 50%; }
.vision-pupil { position: absolute; inset: 39px; background: #090909; border-radius: 50%; box-shadow: 0 0 0 3px #b2b2b266, 0 0 20px #090909; }
.vision-glint { position: absolute; width: 7px; height: 7px; top: 33px; left: 43px; border-radius: 50%; background: #fa9097; box-shadow: 0 0 16px #fff; }
.vision-orbit { position: absolute; width: 210px; height: 210px; border: 1px solid #98989822; border-radius: 50%; }
.vision-orbit-outer { width: 225px; height: 225px; border-style: dashed; }
.vision-coordinate { position: absolute; color: #aaaaaa; font: 8px ui-monospace, monospace; letter-spacing: 2px; }
.vision-coordinate-top { left: 0; top: 40px; }
.vision-coordinate-bottom { right: 0; bottom: 18px; }
.vision-star { position: absolute; width: 12px; height: 12px; background: #b4b4b4; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
.vision-star-one { left: 12%; bottom: 55px; }
.vision-star-two { right: 10%; top: 36px; width: 8px; height: 8px; }
.auth-story h1 { font-size: clamp(36px, 3.5vw, 52px); margin: 18px 0; }
.auth-story p { font-size: 13px; margin-bottom: 20px; }
.auth-features { gap: 14px; flex-wrap: wrap; font-size: 10px; }
.auth-story-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; border-top: 1px solid #343330; padding-top: 20px; font-size: 10px; }
.auth-card-eyebrow { display: block; color: #b4b4b4; font-size: 9px; letter-spacing: 2px; margin-bottom: 14px; }
.auth-lens { width: 24px; height: 16px; border: 1px solid #c8c8c8; border-radius: 75% 15%; transform: rotate(45deg); display: grid; place-items: center; }
.auth-lens i { width: 8px; height: 8px; border: 1px solid #c8c8c8; border-radius: 50%; }
.icon-button.active, .field-inventory, .step-navigator-controls select, .step-navigator-controls .icon-button { background: var(--surface-raised); }
@media (max-width: 1000px) and (min-width: 761px) { .auth-story { padding: 32px; } .vision-eye { width: 215px; height: 135px; } }
@media (max-width: 760px) { .auth-layout { display: flex; flex-direction: column; } .auth-main { flex: 1; padding-top: 38px; } .auth-story-content { display: none; } }
.workspace-dot, .environment i { background: #8cdbb7; }

/* replica — graphite surfaces, warm yellow accents. */
:root { --primary: #e5192c; --accent: #ff4d55; --sidebar: #070707; --ink: #f5f5f5; --muted: #a3a3a3; --line: #2a2a2a; --surface: #121212; --surface-raised: #1a1a1a; }
.button.primary, .stat-card.selected .stat-icon, .admin-tabs .button.primary { background: #e5192c; color: #ffffff; border-color: #e5192c; }
.button.primary:hover { background: #c4111f; border-color: #c4111f; color: #ffffff; }
.button.primary svg { color: #ffffff; }
.auth-story { background: radial-gradient(ellipse at 50% 43%, #891a2224, transparent 65%), #070707; border-color: #2e2e2e; }
.auth-main, .auth-layout { background: #111111; }
.auth-story h1 em, .auth-lens, .auth-lens i, .auth-features svg, .auth-mark { color: #ff4d55; border-color: #842e34; }
.auth-eyebrow i { background: #e5192c; box-shadow: 0 0 12px #e5192c60; }
.vision-eye { border-color: #9c3a40; background: radial-gradient(ellipse, #e5192c18, transparent 70%); box-shadow: 0 0 40px #e5192c10, inset 0 0 30px #e5192c10; }
.vision-iris { border-color: #bf2d37; background: repeating-conic-gradient(from 0deg, #d4414b49 0deg 1deg, #7423282a 1deg 5deg), radial-gradient(circle, #10100e 25%, #9d2e35 26%, #3d171a 55%, #cc3a43 56%, #ffffff 59%); box-shadow: 0 0 28px #e5192c28; }
.vision-glint { background: #ff6d77; }
.preview-device, .project-thumbnail iframe { background: #fff; color-scheme: light; }
.billing-usage { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.billing-kicker { color: #c33841; font-size: 10px; letter-spacing: 1.7px; }
.billing-usage h2 { margin-top: 10px; font-size: 27px; }
.billing-usage p { margin-bottom: 0; }
.billing-meter > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.billing-meter strong { font-size: 28px; }
.billing-meter strong span, .billing-meter > div > span { font-size: 12px; color: var(--muted); font-weight: 400; }
.billing-meter progress { width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; background: #323232; accent-color: #e5192c; }
.billing-meter progress::-webkit-progress-bar { background: #323232; }
.billing-meter progress::-webkit-progress-value { background: #e5192c; border-radius: 10px; }
.billing-meter small { display: block; color: var(--muted); margin-top: 9px; }
.billing-capabilities { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.billing-capabilities span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #c8c8c8; }
.billing-capabilities svg { width: 15px; color: #ff4d55; }
.billing-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.billing-plan { padding: 26px; display: flex; flex-direction: column; }
.billing-plan.featured { border-color: #97252d; background: linear-gradient(155deg, #262626, #1a1a18 60%); }
.billing-plan-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.billing-plan-head h2 { font-size: 21px; margin: 0; }
.billing-plan .tag { background: #4b1316; color: #ff4d55; font-size: 8px; }
.billing-price { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -1.3px; margin: 25px 0 18px; white-space: nowrap; }
.billing-price small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 7px; }
.billing-plan > p { font-size: 12px; color: var(--muted); min-height: 40px; }
.billing-plan ul { list-style: none; padding: 0; margin: 15px 0 26px; display: grid; gap: 16px; flex: 1; }
.billing-plan li { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; font-size: 11px; }
.billing-plan li svg { width: 14px; height: 16px; color: #b3333c; }
.billing-free-note { padding: 11px 0; text-align: center; font-size: 11px; color: var(--muted); }
.billing-provider-note, .billing-message { margin-bottom: 24px; }
.billing-provider-note { margin-top: 24px; }
@media (max-width: 1100px) { .billing-plans { gap: 12px; } .billing-plan { padding: 20px; } }
@media (max-width: 800px) { .billing-plans { grid-template-columns: 1fr; } .billing-usage { grid-template-columns: 1fr; padding: 23px; } .billing-plan > p { min-height: 0; } }
@media (max-width: 600px) { .sidebar nav .nav-button { padding: 7px; } .sidebar { gap: 5px; } .sidebar .brand { font-size: 19px; } }
/* ScaleMirror wordmark accommodates the full name at every navigation size. */
.sidebar .brand { font-size: 20px; letter-spacing: -.8px; gap: 9px; padding-inline: 8px; }
@media (min-width:801px) and (max-width:1250px) { .sidebar .brand { font-size: 18px; padding-inline: 4px; gap: 8px; } }
@media (min-width:601px) and (max-width:800px) { .sidebar .brand { font-size: 0; padding: 0; gap: 0; } }
@media (max-width:600px) { .sidebar .brand { font-size: 18px; padding: 0; gap: 6px; } }
@media (max-width:360px) { .sidebar .brand { font-size: 0; gap: 0; } .sidebar .brand-dot { display: none; } }

/* ScaleMirror: arched mirror frame with two filled glass reflections; legible at favicon size. */
.brand .mirror-logo { width: 31px; height: 35px; flex: 0 0 auto; overflow: visible; }
.auth-story .brand .mirror-logo { width: 37px; height: 41px; }
.auth-mark .mirror-logo { width: 29px; height: 33px; }
@media (min-width:801px) and (max-width:1250px) { .sidebar .brand .mirror-logo { width: 27px; height: 31px; } }
@media (max-width:600px) { .sidebar .brand .mirror-logo { width: 27px; height: 31px; } }
/* Account recovery shares the existing authentication layout and color tokens. */
.auth-forgot { display: block; width: fit-content; margin: 0 0 18px auto; padding: 8px 0; }
.recovery-link { margin-top: 20px; text-decoration: none; }
.auth-card .auth-switch a { display: inline-block; padding: 8px 2px; }
.auth-card .form-error:not(:empty) { margin-bottom: 16px; }

/* ---- Interior redesign (2026-09): shell, dashboard toolbar, grouped tabs, compact links, grouped diagnostics ---- */
.sidebar { padding-top: 26px; }
.sidebar nav { margin-top: 28px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--muted); padding: 10px 12px; border-radius: 6px; font-size: 12px; text-align: left; margin-bottom: 12px; }
.sidebar-link:hover, .sidebar-link.active { color: var(--ink); background: #282725; }
.sidebar-link svg { width: 15px; height: 15px; }
.project-nav-label { margin-top: 26px; }
.sidebar-project { background: #1b1a18; border: 1px solid var(--line); border-radius: 7px; margin: 0 2px; color: var(--ink); }
.environment { cursor: default; }

.quick-import { background: var(--surface); border-color: var(--line); }
.quick-import-foot { align-items: center; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-start; font-size: 11px; }
.quick-import-foot .text-button { font-size: 11px; }
.project-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 26px 0 16px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 500; }
.filter-chip span { font-size: 10px; color: var(--muted); background: #ffffff0a; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center; }
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.selected { border-color: #9c9c9c; color: var(--accent); background: #252525; }
.filter-chip.selected span { color: var(--accent); background: #e5192c22; }
.project-toolbar .filters { display: flex; gap: 10px; align-items: center; }

.editor-tabs { gap: 0; padding: 0 22px; flex-wrap: nowrap; overflow-x: auto; }
.editor-tab-group { display: flex; align-items: center; gap: 18px; padding: 0 22px 0 0; margin-right: 22px; border-right: 1px solid var(--line); }
.editor-tab-group:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.editor-tab-group-label { font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 650; opacity: .8; }
.style-form h3 { font-size: 12px; color: var(--muted); font-weight: 600; }

.links-table-head { grid-template-columns: 92px 1fr 1.5fr; gap: 18px; padding: 12px 20px; }
.link-row { grid-template-columns: 92px 1fr 1.5fr; gap: 18px; padding: 12px 20px; align-items: center; }
.link-label { display: flex; align-items: center; gap: 8px; }
.link-kind { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.link-text-form, .link-destination-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.link-text-form input, .link-destination-form input[name=href] { flex: 1; min-width: 120px; padding: 8px 10px; font-size: 12px; }
.link-text-form .icon-button { width: 32px; height: 32px; }
.link-destination-form .checkbox-field { font-size: 11px; white-space: nowrap; gap: 6px; }
.link-row .form-error { flex-basis: 100%; }
.link-row .form-error:empty { display: none; }
.link-static-text { margin: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.publish-footnote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.publish-footnote .text-button { font-size: 12px; }
#publish-validation { margin-top: 22px; }
.publish-card .section-title { margin-bottom: 8px; }

.diagnostics-note { margin: -8px 0 20px; font-size: 12px; }
.diagnostic-groups { display: grid; gap: 10px; }
.diagnostic-group { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.diagnostic-group summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 15px 18px; }
.diagnostic-group summary::-webkit-details-marker { display: none; }
.diagnostic-group summary:hover { background: #ffffff06; }
.diagnostic-summary { display: flex; align-items: center; gap: 10px; }
.diagnostic-summary svg { width: 15px; height: 15px; color: var(--muted); }
.diagnostic-summary strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.diagnostic-group summary small { color: var(--muted); font-size: 11px; padding-left: 25px; }
.diagnostic-body { padding: 0 18px 16px 43px; display: grid; gap: 12px; justify-items: start; }
.diagnostic-sources { margin: 0; padding: 0 0 0 16px; font-size: 11px; color: var(--muted); line-height: 1.8; max-height: 220px; overflow: auto; width: 100%; }
.diagnostic-group.artifacts { margin-top: 22px; }

.notice { border-left: 3px solid #e5192c66; background: transparent; padding: 12px 16px; }

@media (max-width: 800px) { .link-row, .links-table-head { grid-template-columns: 72px 1fr; } .link-destination-form { grid-column: 2; } .links-table-head span:last-child { display: none; } }
@media (max-width: 600px) {
  .sidebar-bottom { display: none; }
  .project-toolbar { flex-direction: column; align-items: stretch; }
  .filter-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-chip { white-space: nowrap; }
  .editor-tabs { display: flex; flex-wrap: nowrap; padding: 0 14px; gap: 0; overflow-x: auto; }
  .editor-tab-group { gap: 12px; padding-right: 14px; margin-right: 14px; }
  .editor-tab-group-label { display: none; }
  .editor-tab { padding: 12px 0; white-space: nowrap; }
  .link-row { grid-template-columns: 1fr; gap: 10px; }
  .link-destination-form { grid-column: auto; padding-top: 0; border-top: 0; }
  .links-table-head { display: none; }
  .diagnostic-body { padding-left: 18px; }
}
@media (max-width: 800px) { .sidebar .sidebar-bottom { display: block; } .sidebar-link { justify-content: center; padding: 10px; margin: 0 0 8px; } .sidebar-link span { display: none; } }
@media (max-width: 600px) { .sidebar .sidebar-bottom { display: flex; align-items: center; gap: 4px; } .sidebar-link { padding: 8px; margin: 0; } }
.project-toolbar > * { min-width: 0; }
.filter-chips { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .filter-chips { width: 100%; } .project-toolbar .filters { width: 100%; } .project-toolbar .search { flex: 1; } }
@media (max-width: 600px) { .sidebar { flex-wrap: nowrap; align-items: center; } .sidebar nav { margin: 0 0 0 auto; } .sidebar .sidebar-bottom { margin: 0; } .sidebar-footer { padding: 0; border: 0; } }

/* ---- Screen strip (2026-10): a dock under the editor with a thumbnail of every screen ---- */
.content.with-step-strip { --step-strip-h: 146px; --step-thumb-w: 112px; --step-thumb-h: 76px; --step-thumb-scale: .2334; }
.content.with-step-strip.step-strip-compact { --step-strip-h: 58px; }
.step-strip { position: sticky; bottom: 0; z-index: 5; height: var(--step-strip-h); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px #0000004d; }
.step-strip[hidden] { display: none; }
.step-strip-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; height: 100%; padding: 0 18px; }
.step-strip-head { display: flex; flex-direction: column; gap: 10px; min-width: 96px; }
.step-strip.compact .step-strip-head { flex-direction: row; align-items: center; gap: 12px; }
.step-nav-head { display: flex; flex-direction: column; gap: 2px; }
.step-nav-head strong { font-size: 12px; color: var(--ink); font-weight: 700; }
.step-counter { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin: 0; white-space: nowrap; }
.step-strip-tools { display: flex; gap: 6px; }
.step-thumbs-toggle[aria-pressed="true"] { color: var(--accent); }
.step-track { position: relative; display: flex; align-items: stretch; gap: 10px; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; padding: 10px 2px; min-width: 0; scroll-padding-inline: 24px; mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.step-pill { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; width: calc(var(--step-thumb-w) + 12px); padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--muted); font: inherit; font-size: 11px; text-align: left; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.step-strip.compact .step-pill { flex-direction: row; align-items: center; width: auto; max-width: 200px; padding: 5px 12px 5px 5px; border-radius: 999px; }
.step-pill:hover { border-color: var(--line-strong, #3d3d3d); color: var(--ink); }
.step-pill:focus-visible { outline: 2px solid #e5192c; outline-offset: 2px; }
.step-thumb { position: relative; display: block; width: var(--step-thumb-w); height: var(--step-thumb-h); overflow: hidden; border-radius: 4px; background: #fff; flex-shrink: 0; }
.step-thumb iframe { position: absolute; top: 0; left: 0; width: 480px; height: 326px; border: 0; transform: scale(var(--step-thumb-scale)); transform-origin: 0 0; pointer-events: none; background: #fff; }
.step-pill-caption { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.step-strip.compact .step-pill-caption { align-items: center; }
.step-pill-number { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ffffff10; color: var(--ink); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.step-pill-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; overflow-wrap: break-word; }
.step-strip.compact .step-pill-name { display: block; white-space: nowrap; text-overflow: ellipsis; -webkit-line-clamp: unset; }
.step-pill-auto { display: inline-flex; margin-left: auto; color: #ff4d55; flex-shrink: 0; }
.step-pill-auto svg { width: 12px; height: 12px; }
.step-strip:not(.compact) .step-pill { position: relative; }
.step-strip:not(.compact) .step-pill-auto { position: absolute; top: 9px; right: 9px; padding: 3px; border-radius: 50%; background: #151613d9; }
.step-pill.done .step-pill-number { background: #e5192c26; color: #ff4d55; }
.step-pill[aria-current="step"] { border-color: #e5192c; background: #252525; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px #e5192c; }
.step-pill[aria-current="step"] .step-pill-number { background: #e5192c; color: #151613; }
.step-nav-buttons { display: flex; flex-direction: column; gap: 8px; }
.step-strip.compact .step-nav-buttons { flex-direction: row; }
.step-nav-buttons .button { min-width: 108px; justify-content: center; }
.step-nav-chevron { font-size: 18px; line-height: 1; margin-top: -2px; }
.has-steps .editor-layout { min-height: 360px; }
.with-step-strip .editor-frame { min-height: calc(100dvh - 156px - var(--step-strip-h)); }
/* Short screens (laptops): smaller thumbnails, and the section menu scrolls inside instead of stretching the page under the strip. */
@media (max-height: 820px) { .content.with-step-strip:not(.step-strip-compact) { --step-strip-h: 124px; --step-thumb-w: 92px; --step-thumb-h: 58px; --step-thumb-scale: .1917; } }
/* With the strip, the editor column fills exactly the height above it and the preview takes whatever the toolbar and notice leave. */
@media (min-width: 1001px) {
  .with-step-strip .editor-main:has(> .has-steps > .editor-layout) { display: flex; flex-direction: column; height: calc(100dvh - 156px - var(--step-strip-h)); }
  .with-step-strip #editor-workspace.has-steps:has(> .editor-layout) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .with-step-strip .has-steps > .editor-layout { flex: 1 1 0; height: auto; min-height: 300px; }
  .with-step-strip .has-steps .preview-device { min-height: 0; }
}
@media (min-width: 1001px) { .with-step-strip .editor-tabs { max-height: calc(100dvh - 156px - var(--step-strip-h)); overflow-y: auto; scrollbar-width: thin; } }
.step-auto-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 20px; border-bottom: 1px solid var(--line); background: #e5192c0d; color: var(--muted); font-size: 12px; }
.step-auto-notice svg { width: 15px; height: 15px; color: #ff4d55; }
.step-auto-notice strong { color: var(--ink); }
.step-auto-notice .text-button { font-size: 12px; margin-left: auto; }
.has-steps .step-auto-notice + .editor-layout { height: calc(100dvh - 217px - 34px - var(--step-strip-h, 0px)); }
.step-link-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 12px; border: 1px solid #e5192c40; border-radius: 8px; background: #e5192c0d; font-size: 12px; color: var(--muted); }
.step-link-info svg { width: 14px; height: 14px; color: #ff4d55; }
.step-link-info strong { color: var(--ink); }
.step-link-info .text-button { font-size: 12px; margin-left: auto; }
@media (max-width: 800px) {
  .step-strip-inner { gap: 10px; padding: 0 12px; }
  .step-strip-head { min-width: 0; }
  .step-nav-buttons .button { min-width: 0; }
  .step-nav-label { display: none; }
}
@media (max-width: 600px) {
  .step-strip { height: auto; }
  .step-strip-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head buttons" "track track"; gap: 4px 12px; padding: 8px 14px 0; }
  .step-strip-head { grid-area: head; }
  .step-thumbs-toggle { display: none; }
  .step-track { grid-area: track; padding: 6px 2px 10px; }
  .step-nav-buttons { grid-area: buttons; }
  .step-nav-buttons .button { width: 40px; padding: 8px; }
  .step-pill { max-width: 150px; }
  .step-auto-notice { padding: 9px 14px; }
  .step-auto-notice .text-button { margin-left: 0; }
}
.step-auto-notice > span { flex: 1 1 260px; min-width: 0; }
@media (max-width: 600px) { .step-auto-notice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; } .step-auto-notice > svg { margin-top: 2px; } .step-auto-notice .text-button { grid-column: 2; justify-self: start; } }

/* ---- Admin user console (2026-10) ---- */
.admin-users { padding: 22px 24px; }
.admin-users-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-users-toolbar h2 { font-size: 17px; margin: 0 0 4px; }
.admin-users-toolbar .subtext { margin: 0; font-size: 12px; }
.admin-user-search { min-width: 320px; }
.admin-user-search input { width: 100%; }
.admin-users .filter-chips { margin-bottom: 14px; }
.admin-users-table td { vertical-align: middle; }
.admin-users-table tbody tr { cursor: pointer; transition: background .12s; }
.admin-users-table tbody tr:hover, .admin-users-table tbody tr:focus-visible { background: #ffffff07; outline: none; }
.admin-users-table tbody tr:focus-visible td:first-child { box-shadow: inset 2px 0 #e5192c; }
.admin-users-table td.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-users-table .row-chevron { width: 28px; color: var(--muted); }
.admin-users-table .row-chevron svg { width: 14px; height: 14px; }
.admin-users-empty { padding: 22px; text-align: center; color: var(--muted); font-size: 12px; margin: 0; }
.admin-account { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admin-account > div { min-width: 0; }
.admin-account strong { display: block; color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account.large .workspace-avatar { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
.admin-account.large h2 { margin: 0 0 3px; font-size: 20px; }
.admin-account.large p { margin: 0; color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; border: 1px solid transparent; }
.badge.success { color: #8cdbb7; background: #152b24; }
.badge.warning { color: #ff6b72; background: #242424; }
.badge.danger { color: #ffb07a; background: #2b1a10; }
.badge.info { color: #a9c3f0; background: #1c2333; }
.badge.muted { color: var(--muted); background: #ffffff0d; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.plan-chip { display: inline-flex; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--ink); background: #ffffff0f; border: 1px solid var(--line); }
.plan-chip.plan-pro { color: #ff4d55; border-color: #e5192c55; background: #e5192c12; }
.plan-chip.plan-max { color: #151613; background: #e5192c; border-color: #e5192c; }
.plan-source { margin-left: 6px; font-size: 10px; color: var(--muted); }

dialog.admin-user-dialog { max-width: 720px; }
.admin-user-head { align-items: flex-start; padding-bottom: 12px; }
.admin-user-dialog .modal-body { display: grid; gap: 18px; max-height: calc(100vh - 210px); overflow: auto; }
.admin-user-feedback { padding: 10px 12px; border-radius: 8px; font-size: 12px; background: #152b24; color: #8cdbb7; }
.admin-user-feedback.error { background: #2b1a10; color: #ffb07a; }
.admin-user-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.admin-user-stats > div { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.admin-user-stats dt { font-size: 11px; color: var(--muted); }
.admin-user-stats dd { margin: 5px 0 0; font-size: 15px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.admin-user-section { border-top: 1px solid var(--line); padding-top: 16px; }
.admin-user-section h3 { font-size: 13px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.admin-plan-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.admin-plan-summary strong { color: var(--ink); }
.admin-user-dialog .admin-subscription-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; padding: 0; border: 0; background: none; }
.admin-user-dialog .admin-subscription-form .field { margin: 0; }
.admin-user-dialog .admin-subscription-form .form-error { grid-column: 1 / -1; }
.admin-user-dialog .admin-subscription-form .form-error:empty { display: none; }
.admin-project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin-project-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.admin-project-list strong { display: block; font-size: 13px; color: var(--ink); }
.admin-project-list small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.admin-access-actions { display: grid; gap: 8px; }
.admin-access-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); flex-wrap: wrap; }
.admin-access-row strong { display: block; font-size: 12px; color: var(--ink); }
.admin-access-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.admin-access-row .inline-confirm { margin: 0; }
.button.danger-outline { color: #ffb07a; border-color: #5c3a22; background: transparent; }
.button.danger-outline:hover { background: #2b1a10; }
@media (max-width: 800px) {
  .admin-users-table thead th:nth-child(4), .admin-users-table thead th:nth-child(5), .admin-users-table thead th:nth-child(6),
  .admin-users-table td:nth-child(4), .admin-users-table td:nth-child(5), .admin-users-table td:nth-child(6) { display: none; }
  .admin-user-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .admin-users { padding: 16px; }
  .admin-user-search { min-width: 0; width: 100%; }
  .admin-users .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .admin-users-table thead th:nth-child(2), .admin-users-table td:nth-child(2) { display: none; }
  .admin-user-dialog .admin-subscription-form { grid-template-columns: 1fr; }
  .admin-project-list li, .admin-access-row { align-items: flex-start; }
}
/* The account dialog is tall; a blurred backdrop behind it is costly to repaint, so dim it instead. */
dialog.admin-user-dialog::backdrop { backdrop-filter: none; background: #070706e6; }
.admin-access-row .inline-confirm strong { display: inline; font-size: inherit; color: var(--ink); }
.admin-access-row .inline-confirm { flex-basis: 100%; }
.admin-access-row .inline-confirm p { line-height: 1.55; }

/* ---- Installable app (2026-10) ---- */
.install-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #e5192c40; border-radius: 10px; background: linear-gradient(110deg, #252525, #171717 70%); }
.install-banner-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e5192c1f; color: #ff4d55; flex-shrink: 0; }
.install-banner-icon svg { width: 18px; height: 18px; }
.install-banner strong { display: block; font-size: 14px; color: var(--ink); }
.install-banner p { margin: 3px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.install-banner > div:nth-child(2) { flex: 1; min-width: 0; }
.install-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; }
.install-step-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e5192c; color: #151613; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.install-steps strong { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.install-steps strong svg { width: 17px; height: 17px; color: #4c9bff; }
.install-steps p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
@media (max-width: 600px) {
  .install-banner { flex-wrap: wrap; }
  .install-banner-actions { width: 100%; }
  .install-banner-actions .button { flex: 1; }
}

/* ---- Journey map (2026-10): read-only view of how the screens connect ---- */
dialog.journey-dialog { max-width: none; width: min(1280px, calc(100vw - 32px)); height: calc(100vh - 48px); max-height: none; display: flex; flex-direction: column; overflow: hidden; }
dialog.journey-dialog:not([open]) { display: none; }
dialog.journey-dialog::backdrop { backdrop-filter: none; background: #070706e6; }
.journey-head { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.journey-head > div:first-child { flex: 1; min-width: 200px; }
.journey-head h2 { margin: 0; font-size: 18px; }
.journey-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.journey-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.journey-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-line { display: inline-block; width: 22px; border-top: 2px solid #e5192c; }
.legend-line.auto { border-top-style: dashed; border-color: #9fb3d6; }
.legend-line.exit { border-color: #8cdbb7; }
.journey-zoom { display: flex; gap: 4px; }
.journey-viewport { flex: 1; overflow: auto; background: radial-gradient(circle, #ffffff10 1px, transparent 1px) 0 0 / 22px 22px, #0f0f0e; overscroll-behavior: contain; }
.journey-stage { position: relative; margin: 0 auto; }
.journey-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.journey-edges { position: absolute; inset: 0; overflow: visible; }
.journey-edge { fill: none; stroke: #ff4d55; stroke-width: 2; opacity: .85; }
.journey-edge.auto { stroke: #9fb3d6; stroke-dasharray: 6 5; }
.journey-edge.exit-edge { stroke: #8cdbb7; }
#journey-arrow path { fill: #e5192c; }
#journey-arrow-exit path { fill: #8cdbb7; }
.journey-edge-label { position: absolute; transform: translate(-50%, -50%); max-width: 150px; padding: 3px 8px; border-radius: 999px; background: #1d1c19; border: 1px solid var(--line); color: var(--ink); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: auto; }
.journey-edge-label.auto { color: #c3d2ee; border-color: #3a4560; }
.journey-node { position: absolute; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong, #3d3d3d); background: #191919; color: var(--ink); text-align: left; font: inherit; box-shadow: 0 8px 24px #0006; overflow: hidden; box-sizing: border-box; text-decoration: none; }
button.journey-node { cursor: pointer; transition: border-color .15s, transform .15s; }
button.journey-node:hover, button.journey-node:focus-visible { border-color: #e5192c; transform: translateY(-1px); }
.journey-node[aria-current="step"] { border-color: #e5192c; box-shadow: 0 0 0 3px #e5192c30, 0 8px 24px #0006; }
.journey-node.unreachable { border-style: dashed; opacity: .8; }
.journey-node.exit { border-color: #2f5a49; background: #13221c; }
.journey-node-kind { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey-node.exit .journey-node-kind { font-size: 11px; font-weight: 600; color: #8cdbb7; }
.journey-node.exit .journey-node-kind svg { width: 13px; height: 13px; }
.journey-node.exit .journey-node-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-node-number { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e5192c; color: #151613; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.journey-node-headline { font-size: 12px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.journey-node-meta { margin-top: auto; font-size: 10px; color: #ff6b72; letter-spacing: .2px; }
.step-map-button svg { width: 15px; height: 15px; }
@media (max-width: 600px) {
  dialog.journey-dialog { width: 100vw; height: 100dvh; max-width: 100vw; border-radius: 0; margin: 0; }
  .journey-legend { display: none; }
  .journey-head { padding: 12px 14px; gap: 10px; }
}
.journey-viewport { display: flex; }
.journey-stage { margin: auto; flex-shrink: 0; }
.journey-head h2:focus { outline: none; }
.journey-edge-label { max-width: 140px; }
