@font-face{font-family:Inter;src:url('/assets/inter-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}@font-face{font-family:Arabic;src:url('/assets/arabic-regular.woff2') format('woff2');font-weight:400 900;font-display:swap}*{box-sizing:border-box}body{margin:0;background:#f3f5f9;color:#182238;font:14px/1.6 Inter,Arial,sans-serif}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:#2b35ce;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:36px;font-weight:500;letter-spacing:-.045em;line-height:1.2}h2{font-size:21px;line-height:1.3;font-weight:500;letter-spacing:-.03em}h3{font-size:15px;font-weight:600}p{color:#617087}button{border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #5867e6;outline-offset:3px}[hidden]{display:none!important}.admin-header{height:88px;background:white;border-bottom:1px solid #dce2ec;display:flex;align-items:center;gap:20px;padding:0 36px}.admin-header img{width:140px;height:auto}.header-divider{height:28px;width:1px;background:#dce2ec}.admin-header>span{font-size:13px;color:#56637a}.view-site{margin-left:auto;font-size:13px}.admin-header #account{font-size:11px;max-width:250px;overflow:hidden;text-overflow:ellipsis}.eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;color:#303dd6;display:block;margin-bottom:15px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 19px;border-radius:5px;font-size:13px;font-weight:600;border:1px solid transparent}.primary{background:#2c36cc;color:#fff}.primary:hover{background:#202aa8}.secondary{background:#fff;border-color:#d6deea;color:#243047}.secondary:hover{border-color:#7684a0}.quiet{font-size:12px;color:#586883;min-height:40px;text-align:left}.gate{max-width:560px;margin:85px auto;background:white;border:1px solid #dce2ec;border-radius:8px;padding:50px}.gate h1{font-size:48px;margin-bottom:25px}.gate>p{font-size:16px;margin-bottom:26px}.gate .gate-note{font-size:13px;border-top:1px solid #e0e6ef;padding-top:23px;margin:27px 0 0}.workspace-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;padding:36px 36px 28px}.workspace-heading h1{font-size:35px}.workspace-heading .eyebrow{margin-bottom:9px}.workspace-heading p{font-size:12px;margin-top:12px}.save-actions{display:flex;gap:10px;align-items:center}.save-actions>span{font-size:11px;color:#617087;margin-right:8px}.studio{display:grid;grid-template-columns:210px minmax(360px,1fr) minmax(300px,.9fr);margin:0 36px 36px;border:1px solid #dce2ec;border-radius:7px;overflow:hidden;background:#fff;min-height:calc(100vh - 270px)}aside{border-right:1px solid #dce2ec;padding:23px 16px;display:flex;flex-direction:column;background:#fbfcfe}aside>label{font-size:11px;font-weight:600;margin-bottom:7px}input,textarea{width:100%;border:1px solid #ccd5e3;border-radius:4px;background:#fff;color:#1d2940;padding:11px 12px;font-size:14px;line-height:1.65}input::placeholder{color:#7d8aa0}aside input{font-size:12px;padding:9px 10px}#sections{display:flex;flex-direction:column;gap:3px;margin-top:22px}#sections button{padding:10px 12px;text-align:left;font-size:12px;min-height:42px;border-radius:4px;color:#63728b}#sections button[aria-current]{background:#ecf0ff;color:#2639c5;font-weight:600}.sidebar-bottom{border-top:1px solid #dce2ec;padding-top:16px;margin-top:35px;display:flex;flex-direction:column;gap:10px}.sidebar-bottom a{font-size:12px;padding:8px 0}.editor{min-width:0}.editor-toolbar{display:flex;justify-content:space-between;gap:15px;padding:25px 25px 18px;align-items:start}.editor-toolbar p{font-size:11px;margin-top:5px}.segmented{display:flex;background:#f0f3f8;border-radius:5px;padding:3px;flex:none}.segmented button{font-size:11px;padding:7px 9px;min-height:35px;border-radius:3px}.segmented button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #19284615;color:#2638ba}.filter-row{display:flex;gap:5px;padding:0 25px 20px;border-bottom:1px solid #e1e6ef}.filter-row button{font-size:11px;color:#5d6c84;padding:7px 11px;border:1px solid transparent;border-radius:4px;min-height:35px}.filter-row button[aria-pressed=true]{border-color:#d6deee;background:#f8faff;color:#253cc3}#fields{max-height:calc(100vh - 420px);min-height:420px;overflow-y:auto;padding:0 25px 25px}.field{padding:23px 0;border-bottom:1px solid #e5eaf2}.field:last-child{border-bottom:0}.field-heading{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:11px}.field label,.field-label{font-size:12px;font-weight:500;line-height:1.6;color:#3c4b65}.field-heading label{max-width:88%;overflow-wrap:anywhere}.field-heading button{font-size:10px;color:#687793;min-height:24px}.field textarea{min-height:80px;resize:vertical;display:block}.field textarea[dir=rtl],.field input[dir=rtl]{font-family:Arabic,Arial,sans-serif;font-size:16px}.field textarea.large{min-height:120px}.field .image-preview{width:100%;height:170px;background:#f1f4f8;border:1px solid #dce3ef;border-radius:4px;object-fit:contain;display:block;margin-bottom:12px}.image-actions{display:flex;gap:8px;margin-bottom:16px}.image-actions button,.image-actions label{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d4ddeb;border-radius:4px;min-height:38px;padding:8px 11px;font-size:11px;cursor:pointer}.field .image-url{font-size:11px;margin-bottom:13px}.field .image-alt-label{display:block;font-size:11px;margin-bottom:6px}.field .image-alt{min-height:65px;font-size:12px}.focus-row{display:flex;gap:18px;margin-top:12px}.focus-row>label{font-size:11px;flex:1}.focus-row input{padding:0;margin-top:4px;accent-color:#2c36cc}.preview-column{border-left:1px solid #dce2ec;background:#edf1f7;padding:20px;display:flex;flex-direction:column;min-width:0}.preview-toolbar{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.preview-toolbar strong{font-size:12px;font-weight:600}.preview-toolbar a{font-size:11px;margin-left:auto}.preview-toolbar button{font-size:11px}.preview-column>p{font-size:10px;margin:5px 0 15px}.preview-column iframe{width:100%;min-height:570px;flex:1;border:1px solid #d5dfea;background:#fff;border-radius:5px}.empty{padding:40px 0;font-size:14px;color:#687993}.field-changed{display:inline-block;width:6px;height:6px;background:#3e51e6;border-radius:50%;margin-right:7px}#notice{margin:0 36px 20px;padding:14px 18px;background:#eaf0ff;border:1px solid #cbd7fb;border-radius:5px;color:#263884;font-size:13px}#notice.error{background:#fff1f0;border-color:#f2c7c2;color:#8c2b29}dialog{border:1px solid #d7dfec;border-radius:8px;padding:28px;max-width:480px;width:calc(100% - 40px);box-shadow:0 20px 90px #0c183040}dialog::backdrop{background:#0a173a80}dialog p{font-size:14px;margin:17px 0 26px}dialog form>div{display:flex;justify-content:flex-end;gap:10px}#media-library{max-width:850px;max-height:85vh}.media-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}#media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.media-choice{border:1px solid #dce3ec;border-radius:5px;padding:10px;text-align:left}.media-choice img{width:100%;height:120px;object-fit:contain;background:#f4f6fa}.media-choice span{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:8px}
@media(max-width:1200px){.studio{grid-template-columns:180px minmax(360px,1fr)}.preview-column{grid-column:1/-1;border-left:0;border-top:1px solid #dce2ec}.preview-column iframe{height:640px}.admin-header #account{display:none}#fields{max-height:700px}.save-actions>span{display:none}}
@media(max-width:700px){.admin-header{padding:0 20px;height:74px;gap:12px}.admin-header img{width:110px}.admin-header>span{font-size:11px}.view-site{font-size:11px}.workspace-heading{padding:28px 20px 23px;display:block}.workspace-heading h1{font-size:32px}.save-actions{margin-top:22px}.studio{display:block;margin:0 15px 25px}aside{border-right:0;border-bottom:1px solid #dce2ec;padding:18px}#sections{display:flex;flex-direction:row;overflow-x:auto;margin-top:15px}#sections button{white-space:nowrap;font-size:11px}.sidebar-bottom{margin-top:15px;padding-top:8px;flex-direction:row;justify-content:space-between;gap:20px}.editor-toolbar{padding:22px 18px 16px}.editor-toolbar h2{font-size:19px}.segmented button{padding:7px;font-size:10px}.filter-row{padding-inline:18px}#fields{padding-inline:18px;max-height:670px;min-height:300px}.gate{margin:35px 20px;padding:30px}.gate h1{font-size:40px}.gate p{font-size:15px}#notice{margin-inline:20px}#media-grid{grid-template-columns:1fr 1fr}.preview-column{padding:18px}.preview-column iframe{min-height:500px}}

.logo-size-control{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:20px}.logo-size-control label{font-size:13px;font-weight:600}.logo-size-control output{font-variant-numeric:tabular-nums;font-size:13px}.logo-size-control input{grid-column:1/-1;width:100%;accent-color:#3247dd}.field-help{font-size:12px;color:#596174;line-height:1.6;margin-top:10px}.filter-row{flex-wrap:wrap}

/* A focused studio with one draft shared by content, imagery and design. */
body{font-size:16px}.admin-header{padding-inline:28px}.admin-header>span,.view-site,.primary,.secondary,.quiet,aside>label,aside input,#sections button,.sidebar-bottom a,.segmented button,.filter-row button,.field label,.field-label,.image-actions button,.field .image-url,.field .image-alt-label,.focus-row>label,.preview-toolbar strong,.preview-toolbar a{font-size:.875rem}.admin-header #account,.eyebrow,.workspace-heading p,.save-actions>span,.editor-toolbar p,.field-heading button,.preview-column>p,.media-choice span{font-size:.75rem}.field textarea,.field .image-alt{font-size:1rem}.primary,.secondary,.filter-row button,.segmented button,.image-actions button{min-height:44px}.studio{grid-template-columns:220px minmax(360px,1fr) minmax(300px,.85fr);border-radius:16px;margin-inline:28px}.studio-modes{display:flex;gap:8px;margin:0 28px 22px;flex-wrap:wrap}.studio-modes button{padding:12px 20px;border:1px solid #d7dfea;border-radius:100px;font-size:.875rem;background:#fff;min-height:44px}.studio-modes button[aria-pressed=true]{background:#17243e;color:#fff;border-color:#17243e}.workspace-heading{padding-inline:28px}.settings-mode{grid-template-columns:minmax(420px,1.2fr) minmax(300px,1fr)}.settings-mode #fields{max-height:calc(100vh - 350px);padding-top:8px;min-height:540px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-block:16px 28px}.template-card{border:1px solid #d6deea;border-radius:12px;padding:12px;text-align:left;min-width:0}.template-card[aria-pressed=true]{border:2px solid #3446cd;background:#f4f6ff;padding:11px}.template-card strong{display:block;font-size:.9375rem;margin-top:12px}.template-card span{display:block;font-size:.8125rem;line-height:1.65;margin-top:6px;color:#5c6b81}.template-sketch{height:94px;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;background:#eef1f7;border-radius:6px}.template-sketch i{display:block;background:#bdc9dd;border-radius:3px}.template-sketch i:first-child{background:#263a6b}.template-sketch i:last-child{grid-column:1/-1}.template-sketch.editorial{grid-template-columns:1fr 1fr 1fr}.template-sketch.editorial i:first-child{grid-column:1/-1}.template-sketch.showcase{grid-template-columns:1fr 2fr}.template-sketch.showcase i:nth-child(2){grid-row:span 2;background:#516c9b}.design-controls{display:grid;grid-template-columns:1fr 1fr;gap:22px 24px}.design-control{display:grid;grid-template-columns:1fr auto;gap:8px;align-content:start}.design-control label{font-size:.875rem;color:#35445d}.design-control output{font-size:.75rem;font-variant-numeric:tabular-nums}.design-control input,.design-control select{grid-column:1/-1;min-height:44px;width:100%}.design-control input[type=range]{padding:0;accent-color:#3446cd}.design-control input[type=color]{padding:4px;cursor:pointer}.design-control select{font:inherit;font-size:.875rem;border:1px solid #ccd5e3;background:#fff;border-radius:6px;padding:10px;color:#1d2940}.settings-mode .field-help{margin-block:24px}.saved-templates{margin-block:32px;padding-top:28px;border-top:1px solid #dce2ec}.saved-templates h3{font-size:1.125rem}.saved-templates p,.layout-help{font-size:.875rem;margin-block:12px 20px}.template-save{display:flex;gap:10px;margin-block:20px}.template-save button{white-space:nowrap}.saved-template{display:flex;gap:12px;align-items:center;border-top:1px solid #e4e9f1;padding-block:14px}.saved-template strong{font-size:.875rem;flex:1;overflow-wrap:anywhere}.layout-row{display:flex;align-items:center;gap:8px;border:1px solid #dce2ec;border-radius:10px;padding:12px;margin-block:10px}.layout-row label{flex:1;display:flex;align-items:center;gap:12px;font-size:.875rem}.layout-row input{width:18px;height:18px;accent-color:#3446cd;flex:none}.layout-row button{padding:6px 12px;min-width:44px}.fixed-note{font-size:.75rem;color:#69788e}.preview-devices{display:flex;gap:8px;margin-top:16px}.preview-devices button{font-size:.875rem;min-height:40px;padding:6px 12px;border:1px solid #c8d2e2;border-radius:6px}.preview-devices button[aria-pressed=true]{background:#fff;color:#2639c5}.preview-column iframe.mobile-preview{width:min(390px,100%);margin-inline:auto}.field .image-preview{height:220px}.field-heading button{min-height:36px}#fields{scrollbar-gutter:stable}.settings-mode #fields>.secondary{margin-top:16px}
@media(max-width:1250px){.studio{grid-template-columns:200px minmax(0,1fr)}.studio.settings-mode{grid-template-columns:1fr}.preview-column{grid-column:1/-1}.settings-mode #fields{max-height:720px}.preview-column iframe{height:660px}.settings-mode .preview-column{border-left:0;border-top:1px solid #dce2ec}}
@media(max-width:700px){.admin-header{padding-inline:16px}.admin-header>span{display:none}.studio{display:block;margin-inline:12px}.studio-modes{margin-inline:16px;gap:6px}.studio-modes button{padding:10px 14px}.workspace-heading{padding-inline:20px}.design-controls{grid-template-columns:1fr}.template-grid{grid-template-columns:1fr}.template-card{display:grid;grid-template-columns:90px 1fr;column-gap:16px}.template-sketch{grid-row:1/3;height:80px}.template-card strong{margin-top:4px}.template-save{flex-direction:column}.editor-toolbar{flex-wrap:wrap}.settings-mode #fields{max-height:720px}.layout-row{flex-wrap:wrap}.layout-row label{min-width:60%}.saved-template{flex-wrap:wrap}.saved-template strong{flex-basis:100%}.admin-header .view-site{font-size:.875rem}#sections button{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Add & manage */
.collection-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 18px}
.collection-tabs button{min-height:44px;padding:8px 14px;border:1px solid #dce2ec;border-radius:999px;background:#fff;color:#44536b;font-size:.875rem}
.collection-tabs button[aria-pressed=true]{border-color:#2c36cc;background:#eef0ff;color:#2230b8;font-weight:600}
.collection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 4px}
.collection-head h3,.collection-subhead{font-size:1rem}
.collection-subhead{margin-top:34px}
.collection-item{border:1px solid #dce2ec;border-radius:10px;padding:16px 18px;margin-top:12px;background:#fff}
.collection-item .field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.collection-item .field-heading strong{font-size:.9375rem;overflow:hidden;text-overflow:ellipsis}
.collection-tools{display:flex;gap:4px;flex-shrink:0}
.collection-tools button{min-width:44px;min-height:40px;padding:6px 10px;border:1px solid #dce2ec;border-radius:6px;font-size:.8125rem;background:#fff}
.collection-tools button:hover:not(:disabled){border-color:#7684a0}
.collection-thumb{display:block;max-height:90px;max-width:160px;margin-top:10px;border:1px solid #e1e6ef;border-radius:4px;object-fit:contain;background:#f5f7fb}
.collection-field{margin-top:16px}
.collection-field>label{display:block;font-size:.875rem;font-weight:600;color:#243047;margin-bottom:6px}
.collection-field input:not([type=checkbox]),.collection-field textarea,.collection-field select{width:100%;padding:10px 12px;border:1px solid #d6deea;border-radius:6px;background:#fff;font-size:.9375rem;min-height:44px}
.collection-field textarea{min-height:88px;resize:vertical}
.collection-field [dir=rtl]{font-family:Arabic,Arial,sans-serif}
.bilingual{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lang-tag{display:block;font-size:.6875rem;color:#6a7890;margin-bottom:3px;letter-spacing:.04em}
.builtin-list{display:grid;gap:6px;margin-top:10px}
.builtin-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:1px solid #e1e6ef;border-radius:8px;background:#fff;font-size:.875rem;color:#243047;cursor:pointer}
.builtin-row input{width:18px;height:18px;flex-shrink:0}
.results-list{display:grid;gap:8px}
.result-row{display:grid;grid-template-columns:90px 1fr 1fr auto;gap:6px;align-items:center}
.result-row input{min-height:40px!important}
.results-list>.secondary{justify-self:start}
@media(max-width:700px){.bilingual,.result-row{grid-template-columns:1fr}.collection-item .field-heading{flex-wrap:wrap}}
.builtin-card{min-width:0}
.builtin-gallery{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.builtin-gallery .builtin-card{display:flex;flex-direction:column;border:1px solid #e1e6ef;border-radius:10px;background:#fff;overflow:hidden}
.builtin-gallery .builtin-row{border:0;border-top:1px solid #eef1f6;border-radius:0;align-items:flex-start;flex:1}
.builtin-row span{flex:1;line-height:1.4}
.builtin-state{font-size:.6875rem;color:#15803d;font-weight:600;flex-shrink:0}
.builtin-card.is-hidden .builtin-state{color:#b42318}
.builtin-card.is-hidden .builtin-thumb img{opacity:.35;filter:grayscale(1)}
.builtin-card.is-hidden:not(.builtin-gallery .builtin-card) .builtin-row,.builtin-list:not(.builtin-gallery) .builtin-card.is-hidden .builtin-row{background:#fafbfc;color:#7a8699}
.builtin-thumb{display:grid;place-items:center;height:130px;background:#f1f4f8;overflow:hidden;cursor:zoom-in}
.builtin-thumb img{width:100%;height:100%;object-fit:cover;transition:opacity .15s}
.builtin-thumb.is-logo{background:#fff}.builtin-thumb.is-logo img{object-fit:contain;padding:18px 22px}
.builtin-thumb-empty{font-size:.75rem;color:#7a8699;cursor:default}
.collection-item>.builtin-thumb{margin-top:12px;height:150px;max-width:280px;border:1px solid #e1e6ef;border-radius:8px}
@media(max-width:700px){.builtin-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.builtin-thumb{height:100px}}
.favicon-control{margin-top:26px;padding-top:22px;border-top:1px solid #e1e6ef}
.favicon-control h3{margin-bottom:12px}
.favicon-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.favicon-preview{width:48px;height:48px;border:1px solid #dce3ef;border-radius:10px;object-fit:contain;background:#fff;padding:6px}
#login-form{display:grid;gap:8px;max-width:340px;margin:6px 0 4px}
#login-form label{font-size:12px;font-weight:600;color:#3a4763;margin-top:6px}
#login-form input{width:100%;padding:12px 13px;border:1px solid #ccd5e3;border-radius:6px;font-size:15px;background:#fff}
#login-form input:focus-visible{outline:3px solid #5867e6;outline-offset:2px}
#login-submit{margin-top:14px;justify-content:center}
#gate-message.error{color:#b42318}
#account-dialog{border:1px solid #dce2ec;border-radius:12px;padding:0;max-width:460px;width:92vw;box-shadow:0 30px 80px #14264c33}
.account-dialog-inner{padding:24px;max-height:86vh;overflow:auto}
.account-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.account-head h2{margin:0}
.account-block{border-top:1px solid #e6eaf1;margin-top:18px;padding-top:16px}
.account-block:first-of-type{border-top:0;margin-top:8px;padding-top:0}
.account-block h3{margin:0 0 4px;font-size:15px}
.account-hint{font-size:12px;color:#5a677f;margin:0 0 12px}
.account-message{font-size:13px;margin:10px 0 0;color:#3a4763}
.account-message.error{color:#b42318}
.account-block label{display:block;font-size:12px;font-weight:600;color:#3a4763;margin:12px 0 5px}
.account-block input{width:100%;padding:11px 12px;border:1px solid #ccd5e3;border-radius:6px;font-size:15px;background:#fff}
.account-block input:focus-visible{outline:3px solid #5867e6;outline-offset:2px}
.account-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.users-list{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:8px}
.user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid #e6eaf1;border-radius:8px;background:#f7f9fc}
.user-email{font-size:14px;color:#1f2a44;word-break:break-all}
