:root{--ink:#14213d;--muted:#64748b;--line:#dbe3ee;--surface:#fff;--soft:#f3f7fb;--primary:#183f8c;--accent:#43bdd9;--danger:#b42318;--success:#067647;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f7f9fc}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#eef8fb 0,#f7f9fc 380px);color:var(--ink)}button,input,textarea,select{font:inherit}.topbar{min-height:68px;padding:12px max(20px,calc((100vw - 1240px)/2));display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10;backdrop-filter:blur(12px)}.brand{display:flex;gap:10px;align-items:center;color:var(--primary);font-size:20px;font-weight:800;text-decoration:none}.brand img{display:block;width:34px;height:34px;object-fit:contain;border-radius:8px}.brand span{display:inline;color:var(--primary)}.account{display:flex;align-items:center;gap:10px;font-size:14px}.account img{border-radius:50%;object-fit:cover}.account form{margin:0}.link-button{border:0;background:none;color:var(--primary);cursor:pointer;text-decoration:underline}main{width:min(1240px,calc(100% - 32px));margin:0 auto 80px}.ad-slot{width:100%;margin:28px auto;overflow:hidden;text-align:center;min-height:90px}.ad-slot-top{margin:22px auto 0}.ad-slot-bottom{margin-top:34px}.hero{text-align:center;padding:52px 16px 38px}.hero h1{max-width:820px;margin:8px auto 12px;font-size:clamp(34px,5vw,60px);line-height:1.02;letter-spacing:-.045em}.hero>p:last-child{max-width:720px;margin:0 auto;color:var(--muted);font-size:18px}.eyebrow{margin:0;color:#087e8b;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.notice{position:fixed;right:22px;bottom:22px;z-index:20;max-width:380px;padding:14px 18px;background:var(--ink);color:#fff;border-radius:10px;box-shadow:0 14px 34px rgba(15,23,42,.25)}.notice.error{background:var(--danger)}.notice.success{background:var(--success)}.workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr);gap:28px;align-items:start}.editor{display:grid;gap:16px}fieldset,.preview-sticky,.history{margin:0;padding:24px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(15,23,42,.05)}legend{padding:0 8px;font-size:17px;font-weight:800}.grid{display:grid;gap:15px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.colors{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.grid.compact{align-items:end}label{display:grid;gap:6px;color:#334155;font-size:13px;font-weight:700}input,textarea,select{width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(67,189,217,.2)}input[type=color]{height:44px;padding:4px}.check{display:flex;align-items:center;gap:8px;min-height:44px}.check input{width:auto}.hint{margin:8px 0 0;color:var(--muted);font-size:12px;font-weight:400}.upload-row,.slug-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:14px}.upload-row label{grid-column:1/-1}.legend-row,.section-heading,.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.legend-row legend{margin-left:-8px}.social-row{display:grid;grid-template-columns:24px .8fr 1.4fr 1fr auto;gap:8px;align-items:end;padding:12px 0;border-bottom:1px solid #edf2f7}.social-row:last-child{border-bottom:0}.drag{align-self:center;color:#94a3b8;cursor:grab}.row-actions{display:flex;gap:4px}.icon-button{width:32px;height:42px;padding:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer}.preview-sticky{position:sticky;top:92px}.preview-heading{margin-bottom:14px}.preview-heading>div{display:grid;gap:3px}.preview-heading span{font-weight:800}.preview-heading small{color:var(--muted)}#preview-state{font-size:11px;color:var(--muted);font-weight:600}iframe{width:100%;height:330px;border:1px solid var(--line);border-radius:12px;background:#fff}.actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}button,.button-link{padding:11px 14px;border:1px solid var(--primary);border-radius:9px;background:var(--primary);color:#fff;font-weight:750;text-align:center;text-decoration:none;cursor:pointer}button:hover,.button-link:hover{filter:brightness(.95)}button:disabled{opacity:.55;cursor:not-allowed}.secondary{background:#fff;color:var(--primary);border-color:#b8c6dc}.publish{background:#087e8b;border-color:#087e8b}.small{padding:7px 10px;font-size:12px}.published{margin-top:14px;padding:14px;background:var(--soft);border-radius:10px}.published>div{display:flex;gap:8px;margin-top:9px}.history{margin-top:28px}.section-heading h2{margin:4px 0 0}.history-list{display:grid;gap:8px;margin-top:18px}.history-item{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:10px}.history-item p{margin:4px 0 0;color:var(--muted);font-size:12px}.history-actions{display:flex;gap:6px}.history-actions button,.history-actions a{padding:8px 10px;font-size:12px}.danger{color:var(--danger);border-color:#f0b7b2}.status{display:inline-block;padding:3px 7px;border-radius:99px;background:#e7f8f1;color:var(--success);font-size:11px}.status.off{background:#f1f5f9;color:#64748b}@media(max-width:900px){.workspace{grid-template-columns:1fr}.preview-column{order:-1}.preview-sticky{position:static}.social-row{grid-template-columns:20px 1fr 1fr}.social-row label:nth-of-type(3),.row-actions{grid-column:auto}.grid.colors{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){main{width:min(100% - 20px,1240px)}.topbar{padding:10px}.account>span{display:none}.hero{padding:42px 8px 26px}.hero>p:last-child{font-size:15px}.grid.two,.grid.colors{grid-template-columns:1fr}fieldset,.preview-sticky,.history{padding:18px}.social-row{grid-template-columns:20px 1fr}.social-row label{grid-column:2}.row-actions{grid-column:2}.history-item{grid-template-columns:1fr}.history-actions{flex-wrap:wrap}}
.iti{width:100%}.legal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;margin-bottom:7px}.language-actions{display:flex;gap:6px;flex-wrap:wrap}@media(max-width:620px){.legal-heading{align-items:flex-start;flex-direction:column}}
.workspace>*{min-width:0}.editor,.preview-column,.preview-sticky,fieldset{min-width:0;max-width:100%}input,textarea,select{min-width:0;max-width:100%}.social-row>*{min-width:0}.variable-buttons{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:14px 0}.variable-buttons span{color:var(--muted);font-size:12px;font-weight:700}.variable-buttons button{flex:0 1 auto}.custom-text-list,.custom-text-row,.custom-text-content,.custom-text-controls,.custom-text-controls>*{min-width:0}.custom-text-list{display:grid;gap:12px}.custom-text-row{max-width:100%;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--soft);overflow:hidden}.custom-text-content{margin-bottom:12px}.custom-text-value{max-width:100%;resize:vertical}.custom-text-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end}.compact-check{min-height:42px;font-size:12px}.custom-text-controls .remove-custom-text{grid-column:1/-1;height:42px}iframe{display:block;max-width:100%}@media(max-width:620px){.custom-text-controls{grid-template-columns:1fr 1fr}.custom-text-controls .remove-custom-text{grid-column:1/-1}.variable-buttons>span{width:100%}.actions{grid-template-columns:1fr}.published>div{flex-wrap:wrap}.published>div>*{flex:1 1 140px}}
.social-row .select2-container{width:100%!important;min-width:0}.select2-container--default .select2-selection--single{height:42px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;outline:none}.select2-container--default.select2-container--focus .select2-selection--single,.select2-container--default.select2-container--open .select2-selection--single{border-color:var(--accent);box-shadow:0 0 0 3px rgba(67,189,217,.2)}.select2-container--default .select2-selection--single .select2-selection__rendered{height:40px;padding:0 34px 0 11px;color:#0f172a;line-height:40px}.select2-container--default .select2-selection--single .select2-selection__arrow{height:40px;right:5px}.select2-dropdown{border-color:#cbd5e1;border-radius:9px;overflow:hidden}.select2-search--dropdown{padding:8px}.select2-container--default .select2-search--dropdown .select2-search__field{padding:8px 10px;border:1px solid #cbd5e1;border-radius:7px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--primary)}.select2-social-option{display:inline-flex;max-width:100%;align-items:center;gap:8px;vertical-align:middle}.select2-social-option img{display:block;width:22px;height:22px;flex:0 0 22px;object-fit:contain}.select2-results__option{font-size:14px}
