/* Studio form: compact, distinct sections and predictable field spacing. */
#siteForm .form-section{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid #e8edf3;min-width:0}
.form-section-title{display:flex;align-items:center;gap:10px;min-width:0;margin:0 0 18px}
.studio-panel .form-section-title h3{font:600 16px/1.4 Arial,sans-serif;letter-spacing:-.2px;margin:0;color:#202d40}
.section-number{display:grid;place-items:center;background:#f0f4f9;color:#728198;border-radius:7px;width:27px;height:27px;font-size:11px;font-weight:600;flex:none}
#siteForm .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
#siteForm .form-field{min-width:0;display:flex;flex-direction:column;gap:8px}
#siteForm .field-label{display:block;margin:0;font:600 13px/1.5 Arial,sans-serif;color:#344158}
#siteForm .company,#siteForm select,#siteForm textarea{box-sizing:border-box;width:100%;min-width:0;margin:0;border:1px solid #dce3ed;border-radius:10px;background:#fff;color:#233047;font:14px/1.5 Arial,sans-serif;padding:11px 13px;box-shadow:0 1px 2px #182f4803}
#siteForm .company,#siteForm select{height:46px}
#siteForm select{cursor:pointer;padding-right:30px}
#siteForm textarea{height:94px;min-height:94px;resize:vertical}
#siteForm input::placeholder,#siteForm textarea::placeholder{color:#96a0b0}
#siteForm .company-details{margin:20px 0 0}
#siteForm .domain-field{box-sizing:border-box;min-height:46px;height:auto;margin:0;padding:5px 8px 5px 12px;border:1px solid #dce3ed;background:#f7f9fc;gap:7px;border-radius:10px;box-shadow:none}
#siteForm .domain-field input{font-size:13px;min-height:32px;min-width:80px}
#siteForm .domain-field button{min-height:32px;padding:6px 11px;border-color:#dce3ed;font-size:12px}
#siteForm #reserved{font-size:10px;order:3;flex-basis:100%;padding-bottom:3px;color:#4d7c68}
#siteForm .field-help{font:12px/1.6 Arial,sans-serif;color:#7c899b;margin:0}
#siteForm .project-fields-note{margin:0 0 20px;padding:12px 14px;border:1px solid #dfe7f1;border-radius:10px;background:#f4f7fb;color:#687c96;font-size:12px;line-height:1.65}
#siteForm :is(#company,#address,#brief,#siteEmail)[readonly],#siteForm #siteEmailChoice:disabled{background:#f7f9fc;color:#68788d;box-shadow:none;opacity:1;cursor:default}
#siteForm .custom-email{display:grid;gap:7px;padding-top:3px}
#siteForm .custom-email>label{font-size:12px;color:#748197}
#siteForm .studio-documents{padding:20px;margin:0 0 4px;border:1px solid #e0e6ee;border-radius:14px;background:#fafbfd;min-width:0}
.documents-heading{display:flex;justify-content:space-between;align-items:start;gap:10px}
.optional-label{font-size:11px;font-weight:400;color:#8b97a7;margin-left:2px}
.file-count{background:#eaf0f7;color:#62758b;border-radius:6px;padding:4px 7px;font-size:11px;white-space:nowrap}
.upload-area{display:flex;align-items:center;gap:14px;border:1px dashed #cbd5e2;background:#fff;padding:18px;border-radius:11px;min-width:0}
.upload-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#f0f4fa;color:#5d7594;flex:none}
.upload-copy{flex:1;min-width:0}.upload-copy strong{display:block;font-size:13px;font-weight:500;color:#33435a}.upload-copy p{font-size:11px;line-height:1.5;color:#8390a2;margin:5px 0 0}
.upload-area>button{flex:none;background:#f7f9fc;border:1px solid #d7e0eb;border-radius:8px;font-size:12px;font-weight:600;padding:10px 13px;color:#344b68}
#siteForm .documents-note{margin:12px 0 0;font-size:11px}
.document-rows{display:grid;gap:8px}.document-rows:empty{display:none}
.document-row{display:flex;align-items:center;gap:12px;background:white;border:1px solid #e3e8ef;border-radius:9px;padding:10px 12px;min-width:0}
#pendingDocuments:not(:empty){margin-top:12px}.file-type{display:grid;place-items:center;background:#edf2f8;color:#6c8199;font-size:9px;font-weight:700;border-radius:6px;width:35px;height:36px;flex:none}
.file-info{display:grid;gap:3px;flex:1;min-width:0}.file-info strong{font-size:12px;font-weight:500;color:#344158;overflow-wrap:anywhere}.file-info small{font-size:10px;color:#8a97a8}
.document-row .remove-file{font-size:20px;padding:2px 8px;border:0;color:#8a98a9;background:none;flex:none}.document-row .remove-file:hover{color:#a14f51;background:#fbf0f1}
.studio-panel #documentsList>p{margin:8px 0 0;font-size:12px;color:#8591a1;line-height:1.5}.studio-panel #documentsList>p:has(a){border:1px solid #e1e7ef;background:white;border-radius:8px;padding:12px}
.studio-panel #documentsList a{font-size:12px;color:#3e628d;text-decoration:none;overflow-wrap:anywhere;margin:0}.studio-panel #documentsList a:hover{text-decoration:underline}
#documentsStatus:empty{display:none}#documentsStatus{font-size:12px;color:#627791;margin:12px 0 0;line-height:1.5}
#siteForm #saveDocuments{align-self:flex-start;margin-top:14px;padding:10px 15px;border-radius:8px;font-size:12px;background:#233a55;color:#fff;border:0}
body.domain-picker-open{overflow:hidden}.studio-mode #shade,#shade{position:fixed;inset:0;z-index:1000;background:rgba(29,43,63,.28);backdrop-filter:blur(2px)}.studio-mode #picker,#picker{position:fixed;z-index:1001;overscroll-behavior:contain}.toast{z-index:1100}
#pickerTitle{padding-right:36px;overflow-wrap:anywhere}
@media(max-width:1100px){#siteForm .form-grid{grid-template-columns:1fr;gap:18px}.upload-area{flex-wrap:wrap}.upload-area>button{margin-left:54px}.optional-label{margin-left:auto}}
@media(max-width:600px){#siteForm .studio-documents{padding:16px}.upload-area{padding:14px;gap:10px}.upload-icon{width:34px;height:34px}.upload-area>button{width:100%;margin-left:0}.upload-copy strong{font-size:12px}.form-section-title{flex-wrap:wrap}.optional-label{font-size:10px}.studio-panel .form-section-title h3{font-size:15px}}
html{scrollbar-gutter:stable}
.project-library{width:min(720px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #dde5f0;border-radius:18px;padding:28px;background:#fff;box-shadow:0 24px 80px #172c4a40}
.project-library::backdrop{background:#1d2c4359;backdrop-filter:blur(3px)}
.library-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.library-heading h2{font-size:24px;letter-spacing:-.5px;margin:0}.library-heading button{font-size:24px;padding:0;border:0;background:#f2f5f9;color:#8696aa;width:32px;height:32px}
.library-description,.library-status{font-size:12px;line-height:1.6;color:#8593a6;margin:12px 0 18px}.library-status{margin:12px 0}
.project-library>input{width:100%;box-sizing:border-box;font-size:13px;border:1px solid #dae3ef;border-radius:10px;padding:13px 15px;background:#fafcfe}
.library-rows{display:grid;gap:8px}.library-row{display:flex;align-items:center;gap:15px;padding:12px 14px;border:1px solid #e4eaf2;border-radius:10px;min-width:0}.library-row>div{display:grid;gap:5px;flex:1;min-width:0}.library-row strong{font-size:13px;font-weight:500;color:#334b6a;overflow-wrap:anywhere}.library-row small{font-size:11px;color:#91a0b2}.library-row button{font-size:12px;padding:8px 14px;background:#f5f8fc}
.library-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;color:#8695aa;font-size:12px}.library-pagination button{font-size:11px;padding:7px 12px}
/* One stable frame, a grouped action bar and compact document rows. */
#sitePreview{min-width:0;width:100%}
.studio-mode #sitePreview button{margin:0}
#sitePreview button,#sitePreview a{font:500 12px/1.5 Arial,sans-serif}
.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:0 0 16px}
.preview-heading{display:grid;gap:5px;min-width:0}.preview-heading strong{font-size:18px;color:#233249;overflow-wrap:anywhere}
.preview-eyebrow{font-size:9px;letter-spacing:1.6px;color:#8995a7;font-weight:600}
.preview-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#sitePreview button{padding:9px 13px;border:1px solid #dce4ef;border-radius:9px;background:#fff;color:#415775;box-shadow:none;min-height:36px}
#sitePreview .preview-edit{background:#edf3ff;border-color:#cfdcf3;color:#315c94}
#sitePreview .preview-edit[aria-pressed=true]{background:#2d4970;border-color:#2d4970;color:white}
.preview-screens{display:flex;gap:2px;padding:3px;border-radius:10px;background:#f0f3f8}
#sitePreview .preview-screens button{padding:6px 10px;min-height:30px;border:0;background:transparent;color:#7a8799;font-size:11px}
#sitePreview .preview-screens button[aria-pressed=true]{background:#fff;color:#304762;box-shadow:0 1px 4px #182a4410}
.studio-panel #sitePreview .preview-hint{margin:0 0 14px;font-size:12px;line-height:1.6;color:#6e7f95}
.studio-panel #sitePreview .preview-width-note{margin:8px 0 0;font-size:11px;line-height:1.5;color:#8794a7}
.site-preview-canvas{padding:12px;background:#edf1f6;border:1px solid #dfe5ee;border-radius:13px;overflow:hidden;display:flex;justify-content:center;min-width:0}
.studio-panel #sitePreview .site-preview-canvas>iframe{display:block;margin:0;width:100%;height:clamp(450px,66vh,760px);max-width:none;border:0;border-radius:6px;background:white;flex:0 1 100%;box-shadow:0 2px 10px #1c334412}
.studio-panel #sitePreview .site-preview-canvas.phone-preview>iframe{width:390px;flex:0 1 390px;max-width:100%}
.preview-publish-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 0 22px;border-bottom:1px solid #e7ecf2;flex-wrap:wrap}
.preview-save-note{display:grid;gap:5px;flex:1;min-width:180px}.preview-save-note strong{color:#43566f;font-size:12px;font-weight:500}.preview-save-note span{font-size:11px;color:#8994a5;line-height:1.5}
#sitePreview .preview-publish{padding:11px 16px;background:#233b58;color:white;border-color:#233b58;overflow-wrap:anywhere;max-width:100%;text-align:center}
#sitePreview .preview-documents{border:0;border-radius:0;background:transparent;padding:22px 0;margin:0;border-bottom:1px solid #e7ecf2}
.preview-documents-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;flex-wrap:wrap}
.studio-panel #sitePreview .preview-documents-heading h3{margin:0;font-size:15px;color:#2f4057}
.studio-panel #sitePreview .preview-documents-heading p{margin:5px 0 0;font-size:11px;color:#8b96a5;line-height:1.5}
.preview-document-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.preview-file{display:flex;align-items:center;gap:10px;padding:12px;background:#fafbfd;border:1px solid #e4e9f0;border-radius:10px;min-width:0}
#sitePreview .preview-file>a{font-size:11px;flex:none;margin:0;color:#4d6e98;text-decoration:none}
.studio-panel #sitePreview .preview-empty{margin:0;font-size:12px;color:#8895a6;line-height:1.5;grid-column:1/-1}
.preview-footer{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding-top:20px}
.studio-panel #sitePreview .preview-footer a{margin:0;color:#5d7698;text-decoration:none}
.preview-footer a:last-child{margin-left:auto!important;font-size:11px!important;color:#8795a6!important}
.site-edit-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border:1px solid #e0e6ee;border-radius:18px;box-shadow:0 24px 80px #172c4a40;color:#23344a;background:white}
.site-edit-dialog::backdrop{background:#1d2c4359;backdrop-filter:blur(3px)}
.site-edit-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}
.site-edit-dialog h2{font:600 22px/1.3 Arial,sans-serif;letter-spacing:-.5px;margin:0}
.site-edit-dialog button{font:500 13px/1.5 Arial,sans-serif;border-radius:9px;padding:10px 15px;border:1px solid #d6e0ed;background:white;color:#344b6b}
.site-edit-dialog .primary{background:#253f60;color:#fff;border-color:#253f60}
.site-edit-dialog .site-edit-close{border:0;padding:0;width:32px;height:32px;background:#f3f6fa;color:#8592a4;font-size:23px}
.site-edit-dialog label{display:block;font:500 12px/1.5 Arial,sans-serif;color:#5d6d83;margin:0 0 8px}
.site-edit-dialog textarea,.site-edit-dialog input{box-sizing:border-box;display:block;width:100%;margin:0;padding:12px 14px;border:1px solid #d8e1ed;border-radius:10px;color:#273c57;background:#fcfdff;font:14px/1.6 Arial,sans-serif;min-width:0}
.site-edit-dialog textarea{min-height:160px;resize:vertical}
.site-edit-dialog :is(input,textarea):focus{outline:2px solid #a9c1e1;outline-offset:2px}
.site-edit-help{font:12px/1.6 Arial,sans-serif;color:#8190a4;margin:10px 0 18px}
.site-edit-footnote{font:11px/1.5 Arial,sans-serif;color:#8c99aa;margin:20px 0 0;border-top:1px solid #edf0f5;padding-top:15px}
.site-edit-feedback{font:12px/1.6 Arial,sans-serif;color:#54769c;margin:14px 0 0}.site-edit-feedback:empty{display:none}
.site-photo-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}.site-photo-search label{grid-column:1/-1;margin:0}
.site-photo-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.site-photo-choices:empty{display:none}
.site-photo-choices article{display:grid;gap:8px;align-content:start;min-width:0;background:#f8fafd;border:1px solid #e2e8f1;padding:8px;border-radius:11px}
.site-photo-choices img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px}.site-photo-choices a{font-size:10px;color:#8192a9;overflow-wrap:anywhere}.site-photo-choices button{font-size:12px}
@media(max-width:1100px){.preview-document-list{grid-template-columns:1fr}.preview-toolbar{align-items:start}.preview-controls{width:100%;justify-content:space-between}}
@media(max-width:600px){.site-preview-canvas{padding:6px;border-radius:9px}.studio-panel #sitePreview .site-preview-canvas>iframe{height:58vh;min-height:380px}.preview-publish-bar{gap:14px}#sitePreview .preview-publish{width:100%}.preview-footer{gap:12px}.preview-footer a:last-child{margin-left:0!important;flex-basis:100%}.site-edit-dialog{padding:20px}.site-edit-dialog h2{font-size:19px}.preview-heading strong{font-size:16px}.preview-documents-heading{align-items:start}.preview-file{flex-wrap:wrap}.preview-file .file-info{flex-basis:50%}}
