.app-shell { min-height: 100vh; background: radial-gradient(800px 400px at 80% -10%, rgba(103,215,250,.13), transparent 65%), var(--surface-0); }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 0 clamp(var(--space-4), 4vw, var(--space-8)); border-bottom: 1px solid var(--border-default); background: rgba(17,19,29,.9); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); padding: 0; border: 0; background: transparent; font: inherit; font-weight: 700; letter-spacing: -.02em; color: var(--text-primary); text-decoration: none; white-space: nowrap; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--surface-0); background: linear-gradient(135deg, var(--accent), #7b96ff); box-shadow: 0 0 20px rgba(103,215,250,.3); }
.brand-mark svg { width: 19px; height: 19px; }
.topnav { display: flex; align-items: center; gap: var(--space-1); }
.topnav button, .nav-link { min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); font-size: var(--text-sm); cursor: pointer; transition: background var(--dur-fast) var(--ease-ui), color var(--dur-fast) var(--ease-ui); }
.topnav button:hover, .topnav button.active { background: var(--surface-2); color: var(--text-primary); }
.top-actions { display: flex; gap: var(--space-2); align-items: center; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 0 var(--space-4); border-radius: var(--radius-md); cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); transition: background var(--dur-fast) var(--ease-ui), border-color var(--dur-fast) var(--ease-ui), transform var(--dur-fast) var(--ease-ui), box-shadow var(--dur-fast) var(--ease-ui); }
.btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: var(--surface-0); background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); border: 1px solid var(--border-default); }
.btn-secondary:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-primary); }
.btn-small { min-height: 34px; padding: 0 var(--space-3); font-size: var(--text-xs); }
.page { width: min(1480px, 100%); margin: 0 auto; padding: var(--space-8) clamp(var(--space-4), 4vw, var(--space-8)); }
.eyebrow { margin: 0 0 var(--space-2); color: var(--accent); font-size: var(--text-xs); letter-spacing: .08em; font-weight: 700; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: clamp(var(--space-6), 5vw, var(--space-12)); align-items: center; padding: clamp(var(--space-6), 7vw, var(--space-12)) 0 var(--space-10); }
.hero h1 { max-width: 720px; margin: 0; font-size: var(--text-4xl); line-height: 1.12; letter-spacing: -.04em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 620px; margin: var(--space-5) 0 0; color: var(--text-secondary); font-size: var(--text-lg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-note { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); color: var(--text-tertiary); font-size: var(--text-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(101,219,167,.12); }
.preview-card { position: relative; overflow: hidden; min-height: 430px; border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: linear-gradient(155deg, #252940, #151825 60%); box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.preview-card::before { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(103,215,250,.25); border-radius: 50%; top: -120px; right: -80px; }
.preview-head { position: relative; display: flex; justify-content: space-between; padding: var(--space-5); color: var(--text-secondary); font-size: var(--text-sm); }
.vertical-demo { position: absolute; inset: 76px 18% 24px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, #ecb99e 0 30%, #ba785e 30% 46%, #4c4037 46% 100%); }
.video-glow { position: absolute; width: 62%; height: 42%; top: 16%; left: 19%; filter: blur(36px); background: rgba(255,180,107,.48); border-radius: 50%; }
.person { position: absolute; z-index: 1; bottom: 11%; left: 27%; width: 47%; height: 58%; border-radius: 50% 50% 20% 20%; background: linear-gradient(90deg, #402c29 0 18%, #d79678 19% 81%, #412b27 82%); box-shadow: inset 0 -40px 0 #202945; }
.person::before { content: ""; position: absolute; width: 64%; height: 47%; top: -23%; left: 18%; border-radius: 46% 44% 48% 48%; background: #d79678; box-shadow: inset 14px 0 #c78368; }
.person::after { content: ""; position: absolute; width: 92%; height: 54%; top: -36%; left: 4%; border-radius: 44% 48% 35% 42%; background: #382522; z-index: -1; }
.safe { position: absolute; z-index: 2; inset: 10% 10%; border: 1px dashed rgba(255,255,255,.55); border-radius: var(--radius-sm); }
.video-caption { position: absolute; z-index: 3; bottom: 12%; left: 10%; right: 10%; padding: var(--space-2); text-align: center; background: rgba(11,13,20,.72); color: #fff; border-radius: 6px; font-size: var(--text-xs); }
.metric-grid, .template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.section { margin-top: var(--space-10); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.section-title { margin: 0; font-size: var(--text-2xl); letter-spacing: -.025em; }
.section-subtitle { margin: var(--space-1) 0 0; color: var(--text-secondary); font-size: var(--text-sm); }
.card { background: rgba(25,28,40,.88); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); }
.stat { min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-label, .field-label { color: var(--text-tertiary); font-size: var(--text-xs); letter-spacing: .06em; font-weight: 700; text-transform: uppercase; }
.stat-value { font-family: var(--font-mono); font-size: var(--text-3xl); font-weight: 500; letter-spacing: -.06em; }
.stat-detail { color: var(--success); font-size: var(--text-sm); }
.template { display: flex; flex-direction: column; min-height: 190px; cursor: pointer; transition: transform var(--dur-base) var(--ease-emphasis), border-color var(--dur-base) var(--ease-ui); }
.template:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.template-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.template h3 { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-lg); }
.template p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); }
.tag, .status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.tag { border: 1px solid var(--border-subtle); color: var(--text-secondary); background: var(--surface-2); }
.status-good { color: var(--success); background: rgba(101,219,167,.12); }
.status-warn { color: var(--warning); background: rgba(255,195,107,.12); }
.status-bad { color: var(--error); background: rgba(255,134,140,.12); }
.history-list { display: grid; gap: var(--space-2); }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); }
.history-item:last-child { border: 0; }
.history-name { font-weight: 600; font-size: var(--text-sm); }
.history-meta { color: var(--text-tertiary); font-size: var(--text-xs); }
.studio { display: grid; grid-template-columns: 276px minmax(360px, 1fr) 360px; gap: var(--space-4); align-items: start; }
.studio-panel { background: rgba(25,28,40,.88); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.panel-head h2 { margin: 0; font-size: var(--text-base); }
.scene-list { padding: var(--space-2); }
.scene-row { display: grid; grid-template-columns: 20px 1fr auto; gap: var(--space-2); align-items: center; padding: var(--space-3); border-radius: var(--radius-md); cursor: pointer; transition: background var(--dur-fast) var(--ease-ui); }
.scene-row:hover, .scene-row.active { background: var(--surface-2); }
.scene-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.scene-number { color: var(--accent); font-family: var(--font-mono); font-size: var(--text-xs); }
.scene-name { min-width: 0; font-size: var(--text-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scene-detail { color: var(--text-tertiary); font-size: var(--text-xs); }
.project-settings { display: grid; gap: var(--space-3); padding: var(--space-4); border-top: 1px solid var(--border-subtle); }
.field { display: grid; gap: var(--space-2); }
.input, .select, .textarea { width: 100%; padding: 10px var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); color: var(--text-primary); background: var(--surface-0); font-size: var(--text-sm); transition: border-color var(--dur-fast) var(--ease-ui), box-shadow var(--dur-fast) var(--ease-ui); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--accent); }
.textarea { min-height: 100px; line-height: 1.55; }
.preview-stage { position: relative; display: grid; place-items: center; min-height: 590px; padding: var(--space-6); background: linear-gradient(135deg, #161a27, #20263a); }
.phone { position: relative; width: min(100%, 320px); aspect-ratio: 9 / 16; overflow: hidden; border: 6px solid #0c0e15; border-radius: 28px; background: linear-gradient(155deg, #e6ad90, #b9705e 38%, #372e2d 39%, #252235 100%); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.phone .person { bottom: 18%; }
.phone .safe { inset: 8% 8%; }
.play-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--surface-0); cursor: pointer; transition: transform var(--dur-fast) var(--ease-ui); }
.play-btn:hover { transform: scale(1.06); }
.timeline { display: flex; gap: var(--space-2); padding: var(--space-4); border-top: 1px solid var(--border-subtle); overflow-x: auto; }
.timeline-step { min-width: 72px; padding: var(--space-2); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-tertiary); font-family: var(--font-mono); font-size: var(--text-xs); text-align: center; }
.timeline-step.active { color: var(--surface-0); background: var(--accent); }
.editor-tabs { display: flex; gap: var(--space-1); padding: var(--space-2); overflow-x: auto; border-bottom: 1px solid var(--border-subtle); }
.editor-tab { flex: 0 0 auto; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--text-secondary); background: transparent; cursor: pointer; font-size: var(--text-xs); }
.editor-tab.active, .editor-tab:hover { color: var(--text-primary); background: var(--surface-2); }
.editor-content { display: grid; gap: var(--space-4); padding: var(--space-4); }
.notice { display: flex; gap: var(--space-2); padding: var(--space-3); border: 1px solid rgba(255,195,107,.3); border-radius: var(--radius-md); background: rgba(255,195,107,.08); color: #ffdda6; font-size: var(--text-xs); }
.copy-row, .action-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.copy-row { padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.scene-card { animation: rise .32s var(--ease-emphasis) both; }
.empty { padding: var(--space-8) var(--space-5); text-align: center; color: var(--text-secondary); }
.empty h2 { color: var(--text-primary); }
.toast { position: fixed; z-index: 20; right: var(--space-4); bottom: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-2); color: var(--text-primary); box-shadow: 0 12px 32px rgba(0,0,0,.32); font-size: var(--text-sm); transform: translateY(100px); opacity: 0; transition: transform var(--dur-base) var(--ease-emphasis), opacity var(--dur-base) var(--ease-ui); }
.toast.show { transform: none; opacity: 1; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-tertiary); }
.mobile-nav { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1120px) { .studio { grid-template-columns: 250px minmax(320px, 1fr); } .studio > .studio-panel:last-child { grid-column: 1 / -1; } .editor-tabs { justify-content: flex-start; } .editor-content { grid-template-columns: repeat(2, minmax(0, 1fr)); } .editor-content > .field:first-child, .editor-content > .notice, .editor-content > .copy-row { grid-column: 1 / -1; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .preview-card { min-height: 360px; max-width: 460px; width: 100%; justify-self: center; } .metric-grid, .template-grid { grid-template-columns: repeat(2, 1fr); } .topnav { display: none; } .studio { grid-template-columns: 1fr; } .studio > .studio-panel:last-child { grid-column: auto; } .studio-panel:first-child { order: 2; } .project-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topbar { height: 64px; } .top-actions .btn-secondary { display: none; } .brand { font-size: var(--text-sm); } .page { padding-top: var(--space-6); padding-bottom: 84px; } .hero { padding-top: var(--space-5); } .metric-grid, .template-grid, .editor-content, .project-settings { grid-template-columns: 1fr; } .section { margin-top: var(--space-8); } .preview-stage { min-height: 490px; padding: var(--space-4); } .phone { width: min(100%, 265px); } .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); padding: var(--space-2); border-top: 1px solid var(--border-subtle); background: rgba(17,19,29,.94); backdrop-filter: blur(14px); } .mobile-nav button { min-height: 44px; background: transparent; color: var(--text-secondary); font-size: var(--text-xs); } .mobile-nav button.active { color: var(--accent); } }

/* Single-page control center */
.topbar-status { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-tertiary); font-size: var(--text-sm); }
.one-page { width: min(1680px, 100%); margin: 0 auto; padding: var(--space-6) clamp(var(--space-4), 3vw, var(--space-8)) var(--space-10); }
.intro-row { display: flex; align-items: end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-6); }
.intro-row h1 { margin: 0; font-size: var(--text-3xl); letter-spacing: -.035em; line-height: 1.15; }
.intro-row p:not(.eyebrow) { max-width: 680px; margin: var(--space-2) 0 0; color: var(--text-secondary); font-size: var(--text-sm); }
.intro-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: var(--space-2); }
.single-page-grid { display: grid; grid-template-columns: minmax(296px, .9fr) minmax(520px, 1.55fr) minmax(360px, 1.05fr); align-items: start; gap: var(--space-5); }
.control-rail, .workspace, .editor-rail, .preview-panel { min-width: 0; background: rgba(25,28,40,.96); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.control-rail, .editor-rail { overflow: hidden; }
.rail-intro { padding: var(--space-5); background: linear-gradient(145deg, rgba(103,215,250,.12), transparent 78%); border-bottom: 1px solid var(--border-subtle); }
.rail-intro h1 { margin: 0; font-size: var(--text-xl); line-height: 1.24; letter-spacing: -.02em; }
.rail-intro p:not(.eyebrow) { margin: var(--space-3) 0 0; color: var(--text-secondary); font-size: var(--text-sm); }
.accordion { border-bottom: 1px solid var(--border-subtle); }
.accordion:last-child { border-bottom: 0; }
.accordion summary { display: flex; align-items: center; gap: var(--space-3); min-height: 58px; padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none; color: var(--text-primary); transition: background var(--dur-fast) var(--ease-ui); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--surface-2); }
.accordion summary > svg, .accordion summary > span:first-child svg { width: 16px; height: 16px; color: var(--text-tertiary); transition: transform var(--dur-fast) var(--ease-ui); }
.accordion[open] summary > span:first-child svg { transform: rotate(180deg); color: var(--accent); }
.accordion summary strong, .accordion summary small { display: block; }
.accordion summary strong { font-size: var(--text-sm); }
.accordion summary small { margin-top: 1px; color: var(--text-tertiary); font-size: var(--text-xs); }
.accordion-body { display: grid; gap: var(--space-4); padding: 0 var(--space-4) var(--space-4); animation: rise var(--dur-base) var(--ease-emphasis) both; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { min-height: 32px; padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-full); background: var(--surface-0); color: var(--text-secondary); cursor: pointer; font-size: var(--text-xs); transition: border-color var(--dur-fast) var(--ease-ui), background var(--dur-fast) var(--ease-ui), color var(--dur-fast) var(--ease-ui), transform var(--dur-fast) var(--ease-ui); }
.chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.chip:active { transform: scale(.98); }
.chip.active { border-color: transparent; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(103,215,250,.24); }
.compact { min-height: 72px; }
.toggle-row { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-ui), background var(--dur-fast) var(--ease-ui); }
.toggle-row:hover { border-color: var(--border-default); background: var(--surface-2); }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: var(--text-sm); }
.toggle-row small { margin-top: 2px; color: var(--text-tertiary); font-size: var(--text-xs); line-height: 1.45; }
.toggle-row input { position: absolute; opacity: 0; }
.switch { position: relative; display: block; width: 44px; height: 24px; border-radius: var(--radius-full); background: var(--surface-3); transition: background var(--dur-fast) var(--ease-ui); }
.switch::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: var(--text-tertiary); transition: transform var(--dur-fast) var(--ease-emphasis), background var(--dur-fast) var(--ease-ui); }
.toggle-row input:focus-visible + .switch { box-shadow: var(--ring-focus); }
.toggle-row input:checked + .switch { background: var(--accent); }
.toggle-row input:checked + .switch::after { transform: translateX(20px); background: var(--surface-0); }
.is-disabled { opacity: .55; }
.is-disabled .select { cursor: not-allowed; }
.knowledge-list { display: grid; gap: var(--space-3); }
.knowledge-list article { padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-2); }
.knowledge-list strong { font-size: var(--text-sm); }
.knowledge-list p { margin: var(--space-1) 0 0; color: var(--text-secondary); font-size: var(--text-xs); }
.category-knowledge { display: grid; gap: var(--space-3); border: 1px solid rgba(103,215,250,.25); background: linear-gradient(145deg, rgba(103,215,250,.12), var(--surface-2) 72%) !important; }
.category-knowledge .tag { width: fit-content; color: var(--accent); }
.knowledge-rule-list { display: grid; gap: var(--space-2); margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: var(--text-xs); line-height: 1.55; }
.category-knowledge .btn { width: 100%; }
.workspace { display: grid; gap: var(--space-5); padding: var(--space-5); }
.storyboard-head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-3); }
.storyboard-head h2, .panel-head h2 { margin: 0; font-size: var(--text-xl); line-height: 1.25; letter-spacing: 0; }
.storyboard-head p { max-width: 520px; margin: var(--space-1) 0 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.45; }
.scene-strip { display: grid; gap: var(--space-3); overflow: visible; padding: 0; }
.scene-card { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); min-height: 76px; padding: var(--space-3) var(--space-4); overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: linear-gradient(180deg, rgba(35,39,55,.95), rgba(25,28,40,.96)); transition: border-color var(--dur-fast) var(--ease-ui), background var(--dur-fast) var(--ease-ui), transform var(--dur-fast) var(--ease-ui), box-shadow var(--dur-fast) var(--ease-ui); }
.scene-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: transparent; }
.scene-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.scene-card.active { border-color: rgba(103,215,250,.72); background: linear-gradient(180deg, rgba(39,63,77,.95), rgba(30,43,57,.98)); box-shadow: inset 0 0 0 1px rgba(103,215,250,.16), 0 10px 28px rgba(0,0,0,.24); }
.scene-card.active::before { background: var(--accent); }
.scene-select { display: grid; gap: var(--space-1); min-width: 0; padding: 0; background: transparent; color: var(--text-primary); text-align: left; cursor: pointer; }
.scene-select strong { overflow-wrap: anywhere; font-size: var(--text-base); line-height: 1.35; font-weight: 700; }
.scene-select small { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.35; }
.scene-number { color: var(--accent); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; }
.scene-card.active .scene-number { color: var(--accent-hover); }
.scene-card > .status { justify-self: end; padding: 5px 10px; font-size: var(--text-xs); }
.scene-check { display: grid; place-items: center; width: 32px; height: 44px; cursor: pointer; }
.scene-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.preview-panel { overflow: hidden; }
.preview-panel .panel-head { border-bottom: 1px solid var(--border-subtle); }
.preview-panel .eyebrow { margin-bottom: 2px; }
.preview-panel .preview-stage { min-height: 520px; padding: var(--space-5); }
.preview-panel .phone { width: min(100%, 290px); }
.brand-preview { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-4); }
.watermark { position: absolute; z-index: 4; padding: 4px 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; background: rgba(12,14,21,.5); color: white; font-family: var(--font-mono); font-size: 10px; letter-spacing: .03em; }
.watermark.bottom-right { right: 8%; bottom: 8%; }
.watermark.bottom-left { left: 8%; bottom: 8%; }
.watermark.top-right { right: 8%; top: 8%; }
.watermark.top-left { left: 8%; top: 8%; }
.editor-rail .panel-head { border-bottom: 1px solid var(--border-subtle); }
.editor-rail .accordion summary { min-height: 54px; }
.editor-rail .accordion-body { gap: var(--space-3); }
.editor-rail .textarea { min-height: 120px; }
.brand-instruction { padding: var(--space-3); border: 1px solid rgba(103,215,250,.28); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--text-secondary); font-size: var(--text-xs); }
.brand-instruction strong { color: var(--accent); }
.brand-instruction span { display: block; margin-top: var(--space-1); color: var(--text-tertiary); }
@media (max-width: 1380px) { .single-page-grid { grid-template-columns: minmax(280px, .85fr) minmax(480px, 1.25fr); } .editor-rail { grid-column: 1 / -1; } .editor-rail .accordion-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } .editor-rail .accordion-body > .field:nth-child(1), .editor-rail .accordion-body > .notice, .editor-rail .accordion-body > .copy-row, .editor-rail .accordion-body > .status, .editor-rail .accordion-body > .brand-instruction { grid-column: 1 / -1; } }
@media (max-width: 800px) { .topbar-status { display: none; } .single-page-grid { grid-template-columns: 1fr; } .control-rail { order: 2; } .editor-rail { grid-column: auto; order: 3; } .intro-row { align-items: start; flex-direction: column; } .intro-actions { justify-content: start; } .preview-panel .preview-stage { min-height: 480px; } }
@media (max-width: 560px) { .one-page { padding: var(--space-5) var(--space-4) var(--space-8); } .topbar { padding-inline: var(--space-4); } .top-actions .btn-secondary { display: none; } .intro-row h1 { font-size: var(--text-2xl); } .intro-actions { width: 100%; } .intro-actions .btn { flex: 1; } .workspace { padding: var(--space-4); } .scene-card { grid-template-columns: 28px minmax(0, 1fr); align-items: start; } .scene-card > .status { grid-column: 2; justify-self: start; } .editor-rail .accordion-body { grid-template-columns: 1fr; } .preview-panel .preview-stage { min-height: 430px; } .preview-panel .phone { width: min(100%, 246px); } }
