:root{--bg:#fff;--heading:#18201f;--text:#374542;--muted:#6c7c78;--border:#e2e9e6;--border-strong:#cbd8d4;--accent:#217f75;--accent-strong:#16685f;--amber:#c28a22;--mono:"SFMono-Regular", Consolas, "Liberation Mono", monospace;--sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;color:var(--text);background:var(--bg);font-family:var(--sans);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5}*{box-sizing:border-box}body{min-width:320px;margin:0}::selection{background:#217f7533}.app-shell{background:var(--bg);grid-template-columns:292px minmax(0,1fr);min-height:100vh;display:grid}.progress-rail{border-right:1px solid var(--border);background:#f8faf9;flex-direction:column;gap:28px;height:100vh;padding:28px 20px;display:flex;position:sticky;top:0}.brand-block{grid-template-columns:44px 1fr;align-items:center;gap:12px;display:grid}.brand-mark{color:#fff;background:#173d3a;border-radius:8px;place-items:center;width:44px;height:44px;font-size:13px;font-weight:800;display:grid}.brand-block h1,.brand-block p,.topbar h2,.topbar p,.preview-header h3,.preview-header p,.section-heading h3,.section-heading p{margin:0}.brand-block h1{letter-spacing:0;font-size:16px;line-height:1.2}.brand-block p,.section-label,.rail-note,.section-heading p,.database-note,.status-text{color:var(--muted);font-size:13px;line-height:1.45}.step-list{gap:6px;display:grid}.step{width:100%;color:var(--text);font:inherit;cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;align-items:center;gap:10px;padding:9px 10px;font-size:14px;display:flex}.step span{color:#45635f;background:#e8eeec;border-radius:999px;place-items:center;width:24px;height:24px;font-size:12px;font-weight:700;display:grid}.step.active{color:var(--heading);background:#fff;border-color:#bfd7d1;box-shadow:0 6px 18px #1937320f}.step.active span{background:var(--accent);color:#fff}.rail-note{border-top:1px solid var(--border);gap:4px;margin-top:auto;padding-top:18px;display:grid}.rail-note strong{color:var(--heading);font-size:22px;line-height:1}.workspace{flex-direction:column;min-width:0;display:flex}.topbar{z-index:5;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffffff0;justify-content:space-between;align-items:center;gap:16px;min-height:84px;padding:18px 24px;display:flex;position:sticky;top:0}.topbar h2{letter-spacing:0;font-size:28px}.topbar-actions,.brief-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.content-grid{grid-template-columns:minmax(0,1fr) 420px;gap:0;min-height:calc(100vh - 84px);display:grid}.content-grid.solo{grid-template-columns:minmax(0,1fr)}.form-panel{padding:24px}.form-section{gap:18px;max-width:860px;display:grid}.field{gap:7px;display:grid}.field span{color:var(--heading);font-size:13px;font-weight:700}input,select,textarea{box-sizing:border-box;border:1px solid var(--border-strong);width:100%;color:var(--heading);font:inherit;background:#fff;border-radius:8px;outline:none;padding:10px 12px;font-size:14px;line-height:1.4}textarea{resize:vertical;min-height:90px}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #217f751f}button{font:inherit}.primary-button,.secondary-button,.icon-button,.ghost-button,.icon-only{cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:38px;font-size:14px;font-weight:700;display:inline-flex}.primary-button{border:1px solid var(--accent);background:var(--accent);color:#fff;padding:9px 14px}.secondary-button,.icon-button{border:1px solid var(--border-strong);color:var(--heading);background:#fff;padding:9px 12px}.ghost-button{color:var(--muted);background:0 0;border:1px solid #0000;padding:8px 10px}.icon-only{border:1px solid var(--border-strong);width:38px;color:var(--heading);background:#fff}button:disabled{cursor:not-allowed;opacity:.45}svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:17px;height:17px}.section-heading{justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:4px;display:flex}.section-heading h3,.preview-header h3{color:var(--heading);font-size:18px;line-height:1.2}.page-list,.page-tabs{gap:10px;display:grid}.page-row,.section-card,.asset-row{border:1px solid var(--border);background:#fff;border-radius:8px;gap:12px;padding:14px;display:grid}.page-row{grid-template-columns:150px minmax(180px,1fr) minmax(220px,1.2fr) auto;align-items:start}.page-select,.tab{border:1px solid var(--border-strong);color:var(--text);text-align:left;cursor:pointer;background:#fff;border-radius:8px;min-height:42px;padding:8px 10px}.page-select.active,.tab.active{border-color:var(--accent);color:var(--heading);background:#eef8f6;font-weight:700}.page-tabs{flex-wrap:wrap;display:flex}.card-title-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;display:grid}.section-title-input{font-size:18px;font-weight:800}.two-column{grid-template-columns:1fr 1fr;gap:14px;display:grid}.toggle-row{flex-wrap:wrap;gap:12px;display:flex}.toggle-row label{border:1px solid var(--border-strong);min-height:42px;color:var(--heading);background:#fff;border-radius:8px;align-items:center;gap:8px;padding:8px 12px;font-size:14px;font-weight:700;display:inline-flex}.toggle-row input{width:16px;height:16px}.asset-row{grid-template-columns:1fr 1.2fr}.asset-row .field:nth-child(3),.asset-row .field:nth-child(4),.asset-row .ghost-button{grid-column:1/-1}.step-intro{border:1px solid #cfe0db;border-left:4px solid var(--accent);color:#33524d;background:#f2f8f6;border-radius:8px;max-width:860px;margin:0 0 18px;padding:12px 14px;font-size:14px;line-height:1.55}.type-gallery-heading{border-top:1px solid var(--border);margin-top:14px;padding-top:18px}.type-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;display:grid}.type-card{border:1px solid var(--border);background:#fff;border-radius:10px;flex-direction:column;display:flex;overflow:hidden}.type-thumb{aspect-ratio:16/9;border-bottom:1px solid var(--border);background:#f2f5f4;display:block;overflow:hidden}.type-thumb img{object-fit:cover;object-position:top;width:100%;height:100%;transition:transform .2s;display:block}.type-thumb:hover img{transform:scale(1.03)}.type-thumb.wireframe{place-items:center;display:grid}.wire{fill:none;stroke:none;width:100%;height:100%}.wire .wire-soft{fill:#e2ebe8}.wire .wire-strong{fill:#b9cdc8}.wire .wire-quote{fill:#8aa8a2;font-size:22px;font-weight:800}.type-body{flex-direction:column;flex:1;gap:8px;padding:12px;display:flex}.type-body h4{color:var(--heading);gap:2px;margin:0;font-size:15px;display:grid}.type-aka{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-size:11px;font-weight:600}.type-body>p{color:var(--muted);flex:1;margin:0;font-size:13px;line-height:1.5}.type-body .secondary-button{align-self:flex-start}.dropzone{border:2px dashed var(--border-strong);text-align:center;color:var(--muted);background:#fff;border-radius:10px;justify-items:center;gap:8px;padding:32px 20px;transition:border-color .15s,background .15s;display:grid}.dropzone.active{border-color:var(--accent);background:#eef8f6}.dropzone svg{width:28px;height:28px;color:var(--accent)}.dropzone p{color:var(--heading);margin:0;font-size:15px;font-weight:700}.dropzone span{font-size:13px}.upload-card{border:1px solid var(--border);background:#fff;border-radius:8px;grid-template-columns:108px minmax(0,1fr);gap:14px;padding:14px;display:grid}.upload-preview{border:1px solid var(--border);width:108px;height:108px;color:var(--muted);background:#f7f9f8;border-radius:8px;place-items:center;display:grid;overflow:hidden}.upload-preview img{object-fit:cover;width:100%;height:100%}.upload-preview svg{width:30px;height:30px}.upload-fields{gap:10px;display:grid}.upload-meta{align-items:baseline;gap:10px;min-width:0;display:flex}.upload-meta strong{color:var(--heading);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.upload-meta span{color:var(--muted);flex:none;font-size:12px}.error-text{color:#8c2f22;background:#fdf0ee;border:1px solid #e2b4ad;border-radius:8px;margin:0;padding:12px;font-size:14px}.open-questions{color:#6b5416;background:#fff8e7;border:1px solid #e7d29d;border-radius:8px;padding:14px 16px}.open-questions h3{color:#56430f;margin:0 0 4px;font-size:16px}.open-questions p{margin:0 0 8px;font-size:13px}.open-questions ul{gap:4px;margin:0;padding-left:18px;font-size:14px;display:grid}.all-set,.success-panel{color:#1e5c3d;background:#eef8f2;border:1px solid #b5d8c6;border-radius:8px;padding:14px 16px;font-size:14px}.success-panel h3{color:#174a31;margin:0 0 4px;font-size:16px}.success-panel p{margin:0;line-height:1.5}.success-panel code{font-family:var(--mono);font-size:13px}.autosave-hint{padding-top:4px}.rail-note .ghost-button{justify-self:start;padding-left:0}textarea.tall{min-height:150px}.wizard-footer{border-top:1px solid var(--border);background:#fff;align-items:center;gap:10px;margin-top:24px;padding:14px 0 0;display:flex}.status-text{min-width:120px}.preview-panel{border-left:1px solid var(--border);color:#d9e7e4;background:#10201e;flex-direction:column;min-width:0;height:calc(100vh - 84px);display:flex;position:sticky;top:84px}.preview-header{border-bottom:1px solid #ffffff1f;justify-content:space-between;align-items:center;gap:12px;padding:16px;display:flex}.preview-header h3{color:#fff}.preview-panel .section-label{color:#9cb7b1}pre{white-space:pre-wrap;font-family:var(--mono);margin:0;font-size:12px;line-height:1.55;overflow:auto}.preview-panel pre{flex:1;padding:16px}.full-preview{border:1px solid var(--border);max-height:520px;color:var(--heading);background:#f7f9f8;border-radius:8px;padding:16px}@media (width<=1180px){.content-grid{grid-template-columns:1fr}.preview-panel{border-left:0;border-top:1px solid var(--border);height:520px;position:static}.page-row{grid-template-columns:1fr}}@media (width<=820px){.app-shell{grid-template-columns:224px minmax(0,1fr);min-width:760px}.progress-rail{border-right:1px solid var(--border);border-bottom:0;height:100vh;position:sticky}.step-list{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:flex-start;position:static}.form-panel{padding:18px}.two-column,.asset-row{grid-template-columns:1fr}.section-heading,.card-title-row{grid-template-columns:1fr;display:grid}}
