:root{--navy:#0b2033;--blue:#1764c0;--ink:#10263b;--muted:#52677a;--paper:#f4f7fb;--line:#d9e2ef}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:var(--blue);text-underline-offset:3px}header{background:white;border-bottom:1px solid var(--line);padding:17px max(5%,calc((100% - 1180px)/2));display:flex;gap:24px;align-items:center}header a{display:flex;align-items:center}header img{width:265px;max-width:52vw;height:auto}header span{margin-left:auto;color:var(--muted);font-size:14px}main{max-width:1180px;margin:0 auto;padding:34px 28px 70px}h1{font-size:clamp(32px,4vw,42px);letter-spacing:-1.4px;line-height:1.12;margin:8px 0 12px}h2{font-size:23px;letter-spacing:-.4px;margin:0 0 5px}p{max-width:70ch}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.8px;color:var(--blue);margin:0 0 8px}.lead{font-size:17px;color:var(--muted)}.card,.preview{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 28px #102f440a}.card{padding:30px}#access{max-width:650px;margin:16px auto 60px;padding:36px}#access form{margin-top:26px}#access form button{width:100%}.price-note{padding:13px 16px;background:#eef4fc;border-radius:8px;font-size:14px;color:#153c68}label{display:block;font-size:14px;font-weight:650;margin:0 0 18px}label small{display:block;font-weight:400;color:var(--muted);margin-top:2px}input:not([type=checkbox]):not([type=file]),select,textarea{display:block;width:100%;min-height:46px;margin-top:7px;border:1px solid #b8cbd2;border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit}textarea{min-height:92px;resize:vertical}input[type=file]{display:block;max-width:100%;margin-top:8px;font:inherit;font-size:13px}.check{display:flex;align-items:flex-start;gap:8px;font-weight:400}.check input{margin:5px 0 0;accent-color:var(--blue)}button{font:inherit;font-weight:700;min-height:44px;padding:10px 17px;border:1px solid var(--blue);border-radius:8px;background:var(--blue);color:white;cursor:pointer}button:hover{background:#104f9f}button:disabled{opacity:.65;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #db9d26;outline-offset:3px}#signout,.secondary{background:#fff;color:var(--blue);border-color:#b9c9da}#signout{font-size:14px;min-height:36px;padding:6px 12px}#signout:hover,.secondary:hover{background:#eef4fc}.fine{font-size:13px;color:var(--muted)}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.workspace-heading p:last-child{color:var(--muted);margin:0}.state-pill{background:#e8f0fc;color:#174f91;border-radius:30px;padding:8px 15px;white-space:nowrap;font-size:13px}.steps{display:flex;list-style:none;padding:0;margin:34px 0 22px;gap:12px}.steps li{flex:1;border-top:3px solid var(--blue);padding:10px 4px;color:var(--blue);font-size:13px;font-weight:800}.steps strong{display:block;color:var(--ink);font-size:16px}.steps .future{border-color:#cbd8e7;color:var(--muted)}.steps small{display:block;font-size:12px;font-weight:400}.grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,1fr);align-items:start;gap:24px}.editor-head{margin-bottom:25px}.editor-head p{font-size:14px;color:var(--muted);margin:0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}.fields .full{grid-column:1/-1}.appearance{border-top:1px solid var(--line);margin-top:4px;padding-top:14px}.appearance summary{cursor:pointer;font-weight:700;padding:7px 0}.appearance summary span{font-size:12px;color:var(--muted);font-weight:400;margin-left:6px}.appearance-fields{padding:18px 0 8px}.appearance-fields>.secondary{margin:-5px 0 17px;font-size:13px}.row{display:flex;gap:12px}.row label{flex:1;min-width:0}.row input[type=color]{display:block;width:100%;height:46px;padding:4px;margin-top:7px;border:1px solid #b8cbd2;border-radius:8px;background:white}.save-bar{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;background:white;border-top:1px solid var(--line);margin:18px -30px -30px;padding:16px 30px;border-radius:0 0 14px 14px}.save-bar p{margin:0;font-size:13px;color:var(--muted)}.preview{position:sticky;top:16px;overflow:hidden}.preview-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 19px;border-bottom:1px solid var(--line)}.preview-head span{font-size:12px;color:var(--muted)}iframe{display:block;width:100%;height:700px;border:0;background:white}.note{font-size:13px;color:var(--muted);margin-top:24px}.trap{position:absolute;left:-9999px}footer{display:flex;gap:10px;flex-wrap:wrap;max-width:1180px;margin:0 auto 28px;padding:20px 28px;color:var(--muted);font-size:12px}@media(max-width:850px){.grid{grid-template-columns:1fr}.preview{position:static}iframe{height:620px}}@media(max-width:600px){header{padding:14px 20px;gap:10px}header img{width:205px}header span{display:none}main{padding:25px 18px 45px}#access,.card{padding:23px}.workspace-heading{align-items:flex-start;flex-direction:column;gap:12px}.fields{grid-template-columns:1fr}.fields .full{grid-column:auto}.row{flex-wrap:wrap}.row label{flex-basis:100%}.save-bar{margin:18px -23px -23px;padding:15px 23px}iframe{height:560px}}

.design-group{border-top:1px solid var(--line);padding:18px 0 4px}.design-group:first-child{border-top:0;padding-top:0}.design-group h3{font-size:15px;margin:0 0 14px;color:var(--ink)}.design-group .row{align-items:end}.design-group .row label{flex:1;min-width:0}.image-actions{justify-content:flex-start;align-items:center!important;gap:10px;margin:-7px 0 14px}.image-actions button{font-size:12px;min-height:36px}.design-group input[type=range]{width:100%;accent-color:var(--blue);margin:13px 0}.preview-actions{display:flex;align-items:center;gap:7px}.preview-actions button{min-height:30px;padding:3px 9px;font-size:12px;background:white;color:var(--blue);border-color:var(--line)}.preview-actions button[aria-pressed=true]{background:var(--blue);color:white}.preview.phone iframe{max-width:390px;margin:auto;border-left:1px solid var(--line);border-right:1px solid var(--line)}@media(max-width:600px){.preview-head{flex-wrap:wrap}.design-group .row{flex-wrap:wrap}.design-group .row label{flex-basis:100%}.image-actions button{flex:1}}

/* Light polish for the page details at the top of the editor. */
.editor-head{margin-bottom:23px}.editor-head h2{margin-bottom:7px}.editor-head p{line-height:1.5}.fields{align-items:start}.fields>label{margin-bottom:22px}.fields>label input,.fields>label textarea{margin-top:8px}.fields .optional{display:inline-block;margin-left:5px;padding:1px 7px;border-radius:12px;background:#eef4fc;color:#52677a;font-size:11px;font-weight:600;vertical-align:middle}.fields .field-hint{margin-top:7px;font-size:12px;line-height:1.35}.fields input::placeholder{color:#8293a4;opacity:1}
.workspace-link{font-size:14px;font-weight:700;white-space:nowrap}

.status-gate{max-width:650px;margin:16px auto 60px}.status-gate p{margin:0 0 12px}.status-gate button[hidden]{display:none!important}

.template-chooser{margin:0 0 22px;padding:17px;border:1px solid #c9d8e6;border-radius:12px;background:#f2f7fc}.template-chooser label{font-weight:700;display:block;margin-bottom:8px}.template-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.template-controls select{flex:1 1 220px;min-width:0}.template-controls button{flex:0 0 auto}.template-chooser .field-hint{margin:8px 0 0}@media(max-width:560px){.template-controls>*{width:100%;flex:1 1 100%}}

#template-fields { display: grid; gap: 12px; margin-block: 12px; }
#template-fields fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
#template-fields fieldset input[type="checkbox"] { width: auto; margin-right: 8px; }
#template-fields fieldset label { display: block; margin-bottom: 6px; }

/* Compact template editor */
#editor .design-group:has(#template-fields){margin:1rem 0}
.question-table{width:100%;border-collapse:collapse;margin-top:.5rem}
.question-table th,.question-table td{padding:.28rem;text-align:center}
.question-table th:first-child,.question-table td:first-child{text-align:left;width:64%;padding-left:0}
.question-table th{font-size:.8rem}
.question-table input:not([type=checkbox]){width:100%;min-width:0}
.question-table input[type=checkbox]{width:18px;height:18px}
#template-picker{width:min(560px,calc(100% - 2rem));max-height:90vh;margin:auto;border:1px solid #dce5ee;border-radius:14px;padding:1.25rem;color:inherit}
#template-picker::backdrop{background:#11243b88}
#template-example{margin:.75rem 0;padding:.75rem;background:#eef5fc;border-radius:8px}
#template-example p{margin:.25rem 0}
#template-example ul{margin:.5rem 0 0}
#template-chooser .template-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
#template-chooser .template-controls strong{margin-right:auto}
.editor-mobile{display:none}
@media(max-width:800px){
  .editor-mobile{display:flex;gap:.5rem;margin-bottom:.75rem}
  #editor-grid:not([data-view=preview])>.preview,#editor-grid[data-view=preview]>#editor{display:none}
  #editor-grid{display:block}
}
