:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#253940;background:#f1f5f5;font-size:16px;font-synthesis:none;--ink:#122e34;--muted:#6c7c81;--line:#e0e7e7;--accent:#125b4b;--mint:#baf3d8}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button,input,select,textarea,a{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4eaa91}input,textarea,select{border:1px solid #d4dede;border-radius:7px;background:white;color:var(--ink);width:100%;padding:12px 13px;min-width:0}input:focus,textarea:focus,select:focus{border-color:#3c8d77}textarea{resize:vertical;min-height:95px}input{height:46px}input::placeholder{color:#91a0a4}label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.875rem;font-weight:600;margin-bottom:8px}label code{font-size:.75rem;color:#76878c;font-weight:400}code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.86em}.topbar{background:var(--ink);color:white;min-height:87px;padding:20px max(32px,calc((100vw - 1432px)/2));display:flex;justify-content:space-between;align-items:center}.brandmark{display:flex;gap:13px;align-items:center;font-size:1.2rem;font-weight:650;letter-spacing:-.4px}.brandmark small{display:block;font-size:.625rem;letter-spacing:1.8px;margin-top:5px;color:#a6babb;font-weight:500}.brand-icon{display:grid;place-content:center;background:var(--mint);color:var(--ink);width:39px;height:43px;border-radius:9px;font-family:Georgia,serif;font-style:italic;font-size:2.2rem;position:relative}.brand-icon>span{position:absolute;bottom:2px;right:6px;font-size:1.5rem}.top-note{font-size:.8125rem;color:#acc0c1;display:flex;gap:18px;align-items:center}.top-note>span{border:1px solid #416064;border-radius:50px;padding:6px 12px;font-size:.75rem;color:#d5e7e5}main{max-width:1500px;margin:0 auto;padding:40px 34px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px}.eyebrow{color:#368671;font-size:.6875rem;font-weight:750;letter-spacing:1.8px;margin:0 0 12px}h1{color:var(--ink);font-size:clamp(1.7rem,2.2vw,2.25rem);font-weight:650;letter-spacing:-1px;margin:0 0 12px;line-height:1.2}.page-heading p:not(.eyebrow){font-size:.9375rem;color:var(--muted);margin:0;line-height:1.7}.workspace{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:24px;align-items:start}.card{border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 3px 10px #1a363104}.panel-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:23px 25px}.section-label{display:block;font-size:.6875rem;font-weight:700;letter-spacing:1.6px;color:#6c8182}.format-chip{font-size:.6875rem;background:#edf5f3;color:#407468;padding:5px 9px;border-radius:5px}.project-meta{padding:0 25px 25px}.project-meta input{font-weight:550;background:#fbfcfc}.tabs{display:flex;gap:21px;border-block:1px solid var(--line);padding:0 25px;background:#fcfdfd}.tab{border:0;background:none;color:#77878b;font-size:.875rem;padding:17px 0 16px;position:relative;white-space:nowrap}.tab.active{color:var(--accent);font-weight:650}.tab.active:after{content:"";height:3px;background:var(--accent);position:absolute;bottom:-1px;left:0;right:0}.tab span{display:inline-block;background:#e3f2ec;border-radius:4px;padding:2px 5px;font-size:.6875rem;margin-left:3px}.tab-content{padding:25px}.section-heading{margin-bottom:22px}h2{font-size:1rem;color:var(--ink);margin:0;font-weight:650;letter-spacing:-.2px}.section-heading p{font-size:.8125rem;line-height:1.7;margin:7px 0 0;color:var(--muted)}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 19px}.field.full{grid-column:1/-1}.field textarea{min-height:86px}.help{font-size:.75rem;font-weight:400;color:#849195;line-height:1.6;margin:7px 0 0;overflow-wrap:anywhere}.editor-bottom{padding:18px 25px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fcfdfd;border-radius:0 0 13px 13px}.editor-bottom>span{font-size:.75rem;color:#75898a}.button{border:1px solid transparent;border-radius:7px;min-height:42px;padding:10px 16px;font-size:.8125rem;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:8px;transition:background .15s}.button.secondary{background:#fff;border-color:#cfdddd;color:#315b56}.button.secondary:hover{background:#f0f7f4}.button.primary{background:var(--accent);color:#fff;min-height:48px}.button.primary:hover{background:#0c463a}.right-column{display:flex;flex-direction:column;gap:20px}.preview-panel{overflow:hidden}.preview-panel .panel-top{padding:20px 22px}.preview-panel h2{margin-top:6px}.view-switch{background:#f1f5f4;display:flex;padding:3px;border:1px solid #e6ecea;border-radius:6px}.view-switch button{font-size:.6875rem;border:0;border-radius:4px;background:none;color:#7c8d8b;padding:7px 9px}.view-switch button.active{background:#fff;color:#254e45;box-shadow:0 1px 4px #17332815}.browser-bar{display:flex;align-items:center;justify-content:space-between;font-size:.625rem;color:#83918f;background:#f7f9f8;border-block:1px solid var(--line);height:35px;padding:0 18px}.browser-dots{color:#c4cfcc;letter-spacing:3px;font-size:.625rem}#preview-tag{color:#5a8073;font-size:.625rem}.preview-stage{background:#dfe6e5;display:flex;justify-content:center;height:390px;padding:0;overflow:hidden}.preview-stage iframe{width:100%;height:100%;border:0;display:block;background:#fff;transition:width .2s}.preview-stage.mobile{padding:10px}.preview-stage.mobile iframe{max-width:375px;border-radius:10px}.preview-footer{padding:11px 20px;font-size:.6875rem;color:#82928d;line-height:1.5}.output-panel,.library-panel{padding:23px}.output-panel .section-heading{margin-bottom:19px}.output-panel select{font-size:.875rem;height:44px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23657676' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center;padding-right:38px}.save-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:13px 0}.output-panel>.primary{width:100%;margin-top:1px}.output-panel>.help{text-align:center;font-size:.6875rem;margin-top:11px}.library-heading{display:flex;justify-content:space-between;align-items:center}.library-heading h2{margin-top:7px}.import-button{cursor:pointer;font-size:.75rem;color:var(--accent);border:1px solid #d3e1db;border-radius:6px;padding:8px 11px;margin:0;position:relative}.import-button input,.upload-label input{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%}.import-button:focus-within,.upload-label:focus-within{outline:3px solid #4eaa91;outline-offset:3px}.project-list{margin-top:15px;max-height:240px;overflow:auto}.project-item{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;border:0;border-top:1px solid var(--line);background:white;padding:13px 0;gap:14px}.project-item:hover{background:#f7faf9}.project-item strong{display:block;font-size:.8125rem;font-weight:550;overflow-wrap:anywhere}.project-item small{display:block;font-size:.6875rem;color:#869594;margin-top:4px}.file-format{font-size:.625rem;color:#547e71;background:#edf5f1;padding:4px 7px;border-radius:4px}.empty{font-size:.8125rem;color:#91a19d;background:#f7faf8;border:1px dashed #dbe6df;border-radius:7px;text-align:center;padding:20px;margin:0}.app-footer{display:flex;justify-content:space-between;gap:20px;margin-top:28px;padding-top:18px;border-top:1px solid #dfe7e5;font-size:.6875rem;color:#8a9a96}.muted{padding:0 8px;color:#bdc9c5}.code-editor{font: .8125rem/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;min-height:550px;background:#f8faf9;tab-size:2;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;overflow:auto}.upload-label{display:block;position:relative;text-align:center;cursor:pointer;background:#f4f8f6;border:1px dashed #bed4c9;border-radius:7px;padding:12px;font-size:.8125rem;color:#376b58;margin-bottom:16px}.build-result{font-size:.75rem;line-height:1.7;padding:12px;border-radius:6px;background:#edf8f1;color:#2d7556;overflow-wrap:anywhere;margin-top:15px}.text-button{border:0;background:none;color:#1b684b;text-decoration:underline;padding:8px 0 0;display:block;font-size:.75rem}.notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#143e33;color:#e4f5e9;padding:15px 23px;box-shadow:0 8px 30px #193e3530;border-radius:9px;font-size:.875rem;line-height:1.5;max-width:calc(100vw - 32px);width:max-content;z-index:20}.notice.error{background:#80392f;color:#fff}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(min-width:1500px){.preview-stage{height:430px}}@media(max-width:1050px){main{padding:30px 22px}.workspace{gap:18px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.fields{grid-template-columns:1fr}.field.full{grid-column:auto}.tabs{gap:16px;padding-inline:20px}.tab{font-size:.75rem}.panel-top,.tab-content{padding:20px}.project-meta{padding-inline:20px}.editor-bottom{padding:16px;flex-direction:column;align-items:stretch}.editor-bottom>span{text-align:center}.topbar{padding:20px 24px}}@media(max-width:760px){.workspace{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading>.button{flex-shrink:0;font-size:.75rem;padding:8px 11px}.top-note{display:none}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.field.full{grid-column:1/-1}.editor-bottom{flex-direction:row}.preview-stage{height:440px}.app-footer{flex-direction:column;gap:8px}.topbar{min-height:76px}main{padding:28px 16px 20px}.page-heading{gap:10px}h1{font-size:1.7rem}.page-heading p:not(.eyebrow){font-size:.8125rem}.eyebrow{font-size:.625rem}}@media(max-width:480px){.fields{grid-template-columns:1fr}.page-heading{display:block}.page-heading>.button{margin-top:16px}.panel-top{padding-inline:18px}.project-meta,.tab-content{padding-inline:18px}.tabs{gap:14px;padding-inline:18px}.tab{font-size:.75rem}.output-panel,.library-panel{padding:20px}.editor-bottom{flex-direction:column}.preview-panel .panel-top{padding:18px}.view-switch button{padding:7px}.preview-stage{height:400px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Model collections and variable entry modes */
.model-picker{padding:0 25px 25px}.mode-switch{display:flex;gap:8px;background:#f1f6f3;padding:5px;border-radius:8px;margin-bottom:23px}.mode-switch button{flex:1;border:0;border-radius:5px;background:none;color:#647d72;padding:10px 15px;font-size:.875rem}.mode-switch button.active{background:white;color:#165c45;box-shadow:0 1px 4px #1b442819;font-weight:650}.json-editor{min-height:380px;white-space:pre-wrap;overflow-wrap:anywhere}.collection-save{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.collection-save .button{margin-top:12px}.code-editor{font-size:.875rem}.field label{overflow-wrap:anywhere}#coloring-select{margin-bottom:18px}#json-status.invalid{color:#a43e30}#json-status.valid{color:#267558}.tabs{gap:16px}.tab{font-size:.875rem}.help,.preview-footer,.editor-bottom>span,.output-panel>.help{font-size:.8125rem}.section-label{font-size:.75rem}.view-switch button{font-size:.8125rem}.project-item small,.file-format{font-size:.75rem}@media(max-width:1050px){.tabs{gap:12px}.tab{font-size:.8125rem}.model-picker{padding-inline:20px}}@media(max-width:480px){.model-picker{padding-inline:18px}.tabs{gap:12px}.tab{font-size:.75rem}}
/* The local library is the landing page. */
.dashboard{min-height:300px;overflow:hidden}.dashboard-top{display:flex;justify-content:space-between;align-items:center;padding:26px 26px 12px;gap:16px}.dashboard-top h2{font-size:1.25rem;margin-top:8px}.dashboard-help{font-size:.9375rem;color:var(--muted);padding:0 26px 20px;margin:0;line-height:1.7}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:.875rem}th{background:#f5f8f7;border-block:1px solid var(--line);padding:15px 22px;color:#6a7e76;font-size:.8125rem;font-weight:600;white-space:nowrap}td{padding:18px 22px;border-bottom:1px solid var(--line);max-width:320px;overflow-wrap:anywhere}td:first-child{font-weight:600;color:var(--ink)}td:nth-child(4){white-space:nowrap;color:var(--muted);font-size:.8125rem}td:last-child{white-space:nowrap}td .button{min-height:36px;padding:7px 12px;margin-right:7px}.dashboard>.empty{margin:24px}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.editor-toolbar>span{font-size:.875rem;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(440px,calc(100vw - 36px));box-shadow:0 20px 80px #153e3430}dialog::backdrop{background:#132e3477}dialog h2{margin-bottom:22px}dialog .save-actions{margin-bottom:0}.app-footer{margin-top:35px}@media(max-width:760px){.dashboard-top{padding:22px 18px 12px}.dashboard-help{padding:0 18px 18px}th,td{padding:14px 16px}.editor-toolbar{align-items:flex-start}.editor-toolbar>span{max-width:50%;text-align:right}.page-heading{align-items:center}}

.dashboard-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}@media(max-width:480px){.dashboard-top{align-items:flex-start}.dashboard-actions{gap:8px}.dashboard-actions .button{font-size:.75rem;padding:9px 12px}}
.preset-layout{display:grid;grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr);gap:28px;padding:0 26px 26px}.preset-list-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.preset-list{display:grid;gap:9px}.preset-choice{width:100%;text-align:left;border:1px solid var(--line);background:#f9fbfa;border-radius:8px;padding:15px;font-size:.9375rem;color:var(--ink);overflow-wrap:anywhere}.preset-choice small{display:block;color:var(--muted);font-size:.8125rem;margin-top:5px}.preset-choice.active{border-color:#448d73;background:#eef8f1}.preset-editor{border-left:1px solid var(--line);padding-left:28px}.preset-editor>label{margin-top:18px}.preset-editor .code-editor{min-height:340px;white-space:pre-wrap}.preset-editor>#preset-context{margin-top:0;color:#397d60}.preset-editor .save-actions{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.preset-list-top .button{font-size:.8125rem;min-height:36px;padding:8px 10px}@media(max-width:760px){.preset-layout{grid-template-columns:1fr;padding:0 18px 22px}.preset-editor{border-left:0;border-top:1px solid var(--line);padding:22px 0 0}.preset-page .dashboard-top{align-items:flex-start}.preset-page .dashboard-top .button{font-size:.8125rem}}

.button.danger{background:#fff5f3;border:1px solid #ebc4bd;color:#a13f32}.button.danger:hover{background:#fbe8e4}.preset-row{display:flex;align-items:center;gap:9px}.preset-row>.preset-choice{flex:1;min-width:0}.preset-row>.danger{flex-shrink:0;font-size:.8125rem;min-height:38px;padding:8px 11px}

/* Local Model selection and HTML output. */
.tab-content .model-picker{padding:0;margin-bottom:22px}.preview-empty{align-self:center;text-align:center;color:#607872;max-width:330px;padding:28px;line-height:1.7;font-size:.9375rem}.save-view{width:100%;margin:13px 0}.output-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.output-actions>.button{min-height:48px}#copy-dialog{width:min(900px,calc(100vw - 36px))}#copy-content{min-height:320px;max-height:50vh;margin-top:16px}#model-empty-state{margin-top:12px}button:disabled{opacity:.5;cursor:default}

/* Full-page Preview from saved rows or current form. */
.open-preview{width:100%;margin:0 0 18px}.full-preview-dialog{width:min(1360px,calc(100vw - 32px));max-width:none;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:20px;box-sizing:border-box;overflow:auto}.full-preview-dialog[open]{display:flex;flex-direction:column;gap:12px}.full-preview-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.full-preview-header h2{margin:5px 0 0;overflow-wrap:anywhere}.full-preview-controls{display:flex;align-items:center;gap:12px;flex-shrink:0}.full-preview-dialog>.help{margin:0}.full-preview-stage{flex:1;min-height:260px;display:flex;justify-content:center;background:#e4ebe8;border:1px solid var(--line);border-radius:9px;overflow:hidden}.full-preview-stage iframe{display:block;width:100%;height:100%;border:0;background:white;min-height:260px}.full-preview-stage.mobile{padding:8px}.full-preview-stage.mobile iframe{max-width:375px;border-radius:8px}@media(max-width:600px){.full-preview-dialog{padding:14px;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.full-preview-header{align-items:flex-start;flex-direction:column}.full-preview-controls{width:100%;justify-content:space-between}.full-preview-header h2{font-size:.9375rem}}
