:root{
  --bg:#faf8fc;--surface:#fff;--surface-2:#f4f1f8;--border:#e7e2ee;--text:#1d1530;--muted:#6b6380;
  --brand:#7c3aed;--brand-2:#ec4899;--brand-ink:#fff;--brand-soft:#f3ecff;
  --ok:#059669;--ok-soft:#ecfdf5;--warn:#b45309;--warn-soft:#fffbeb;--err:#dc2626;--err-soft:#fef2f2;
  --radius:12px;--shadow:0 1px 2px rgba(29,21,48,.06),0 8px 24px rgba(29,21,48,.06);
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--text);font-size:14.5px;line-height:1.5}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{margin:0 0 .4em;line-height:1.2}
h1{font-size:24px}h2{font-size:18px}h3{font-size:15px}
.muted{color:var(--muted)}.small{font-size:12.5px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.row{display:flex;gap:10px;align-items:center}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.between{justify-content:space-between}
.stack>*+*{margin-top:12px}
.hidden{display:none!important}

/* Layout */
.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}
.side{background:var(--surface);border-right:1px solid var(--border);padding:18px 14px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh}
.logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:16.5px;color:var(--text);padding:4px 8px 16px}
.logo-mark{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,var(--brand),var(--brand-2));display:grid;place-items:center;color:#fff;font-size:16px}
.nav a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;color:var(--text);font-weight:500}
.nav a:hover{background:var(--surface-2);text-decoration:none}
.nav a.active{background:var(--brand-soft);color:var(--brand)}
.nav svg{width:18px;height:18px;flex:none}
.side-foot{margin-top:auto;border-top:1px solid var(--border);padding-top:12px}
.meter{height:6px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin:6px 0 2px}
.meter>i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-2))}
.main{padding:28px 32px;max-width:1180px;width:100%}
.main.full{max-width:none;padding:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}

/* Components */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-weight:600;padding:9px 15px;border-radius:10px;cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--surface-2);text-decoration:none}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.primary{background:linear-gradient(135deg,var(--brand),#9333ea);color:#fff;border-color:transparent}
.btn.primary:hover{filter:brightness(1.07)}
.btn.danger{color:var(--err)}
.btn.sm{padding:6px 10px;font-size:13px;border-radius:8px}
.btn.ghost{border-color:transparent;background:transparent}
.btn svg{width:16px;height:16px}
input,textarea,select{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 12px;width:100%;outline:none}
input:focus,textarea:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(124,58,237,.15)}
textarea{resize:vertical;min-height:90px}
label{display:block;font-weight:600;font-size:13px;margin-bottom:5px}
.field+.field{margin-top:14px}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:99px;background:var(--surface-2);color:var(--muted)}
.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.warn{background:var(--warn-soft);color:var(--warn)}.badge.err{background:var(--err-soft);color:var(--err)}.badge.brand{background:var(--brand-soft);color:var(--brand)}
.alert{padding:11px 14px;border-radius:10px;font-size:13.5px}
.alert.err{background:var(--err-soft);color:var(--err)}.alert.ok{background:var(--ok-soft);color:var(--ok)}.alert.warn{background:var(--warn-soft);color:var(--warn)}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:top}
th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600}
.table-wrap{overflow-x:auto}
.empty{text-align:center;padding:48px 20px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{border:1px solid var(--border);background:var(--surface);border-radius:99px;padding:6px 11px;font-size:12.5px;cursor:pointer}
.chip:hover{border-color:var(--brand);color:var(--brand)}

/* Auth */
.auth{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(1200px 500px at 10% -10%,#f3e8ff,transparent),radial-gradient(900px 500px at 110% 110%,#fce7f3,transparent),var(--bg)}
.auth .card{width:100%;max-width:400px;padding:28px}

/* Pages grid */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
.page-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.thumb{height:170px;background:var(--surface-2);position:relative;overflow:hidden;border-bottom:1px solid var(--border)}
.thumb iframe{width:1280px;height:850px;border:0;transform:scale(.215);transform-origin:0 0;pointer-events:none;position:absolute;inset:0}
.page-card .body{padding:14px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
.page-card .title{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-prompt{background:linear-gradient(135deg,#faf5ff,#fdf2f8);border:1px solid #eadcfb}
.hero-prompt textarea{min-height:110px;background:#fff}

/* Editor */
.editor{display:grid;grid-template-columns:380px 1fr;height:100vh}
.ed-left{border-right:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column;min-height:0}
.ed-head{padding:14px 16px;border-bottom:1px solid var(--border)}
.ed-title{font-weight:700;border:1px solid transparent;padding:4px 6px;margin-left:-6px;border-radius:7px;width:100%}
.ed-title:hover{border-color:var(--border)}
.ed-history{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.msg{border:1px solid var(--border);border-radius:11px;padding:10px 12px;background:var(--surface)}
.msg.current{border-color:var(--brand);background:var(--brand-soft)}
.msg .meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:4px}
.msg .p{white-space:pre-wrap;word-break:break-word;font-size:13.5px}
.ed-compose{border-top:1px solid var(--border);padding:12px 16px;background:var(--surface)}
.ed-compose textarea{min-height:76px}
.ed-right{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--surface-2)}
.ed-bar{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap}
.seg{display:inline-flex;border:1px solid var(--border);border-radius:9px;overflow:hidden}
.seg button{border:0;background:var(--surface);padding:6px 11px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;color:var(--muted)}
.seg button.on{background:var(--brand-soft);color:var(--brand)}
.stage{flex:1;overflow:auto;padding:18px;display:flex;justify-content:center;min-height:0}
.frame{background:#fff;border-radius:10px;box-shadow:var(--shadow);border:1px solid var(--border);width:100%;height:100%;transition:width .2s}
.frame.mobile{width:390px}.frame.tablet{width:820px}
.code{width:100%;height:100%;font-family:ui-monospace,Menlo,monospace;font-size:12.5px;border-radius:10px;min-height:0;resize:none;white-space:pre;tab-size:2}
.attach{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.attach img{width:42px;height:42px;object-fit:cover;border-radius:7px;border:2px solid transparent;cursor:pointer}
.attach img.on{border-color:var(--brand)}

/* Overlay + modal + toast */
.overlay{position:fixed;inset:0;background:rgba(29,21,48,.45);display:grid;place-items:center;z-index:50;padding:20px}
.modal{background:var(--surface);border-radius:16px;padding:24px;width:100%;max-width:520px;box-shadow:0 20px 60px rgba(0,0,0,.25);max-height:90vh;overflow:auto}
.loader{display:flex;flex-direction:column;align-items:center;gap:14px;color:#fff;text-align:center}
.spinner{width:44px;height:44px;border-radius:50%;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;animation:spin 1s linear infinite}
.btn .spinner{width:15px;height:15px;border-width:2px;border-color:rgba(255,255,255,.4);border-top-color:#fff}
@keyframes spin{to{transform:rotate(360deg)}}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#1d1530;color:#fff;padding:11px 18px;border-radius:10px;z-index:60;box-shadow:var(--shadow);font-weight:500;max-width:90vw}
.toast.err{background:var(--err)}
.dns{border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-top:10px}
.dns td,.dns th{padding:8px 10px;font-size:13px}
.copy{cursor:pointer;border-bottom:1px dashed var(--muted)}
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.plan.current{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
.price{font-size:30px;font-weight:800}
.plan ul{padding-left:18px;margin:10px 0 16px}
.mobile-nav{display:none}

@media (max-width:900px){
  .shell{grid-template-columns:1fr}
  .side{display:none}
  .mobile-nav{display:flex;gap:4px;overflow-x:auto;background:var(--surface);border-bottom:1px solid var(--border);padding:8px 10px;position:sticky;top:0;z-index:5}
  .mobile-nav a{padding:7px 11px;border-radius:8px;color:var(--text);font-weight:600;white-space:nowrap}
  .mobile-nav a.active{background:var(--brand-soft);color:var(--brand)}
  .main{padding:18px 16px}
  .editor{grid-template-columns:1fr;grid-template-rows:auto 1fr;height:auto;min-height:100vh}
  .ed-left{border-right:0;border-bottom:1px solid var(--border)}
  .ed-history{max-height:220px}
  .ed-right{min-height:80vh}
}
h1 svg,h2 svg,h3 svg{width:20px;height:20px;flex:none}
.shell>div{min-width:0}

.thumb-pick{position:relative;width:46px;height:46px;padding:0;border:2px solid var(--border);border-radius:9px;overflow:hidden;cursor:pointer;background:var(--surface);opacity:.75}
.thumb-pick img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-pick .tick{position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:var(--brand);color:#fff;font-size:11px;line-height:16px;text-align:center;display:none}
.thumb-pick.on{border-color:var(--brand);opacity:1;box-shadow:0 0 0 3px rgba(124,58,237,.2)}
.thumb-pick.on .tick{display:block}
.thumb-pick:hover{opacity:1}
.attached-count{color:var(--brand);font-weight:600}

/* Form builder */
.fb{display:grid;grid-template-columns:230px 1fr 320px;gap:16px;align-items:start}
.fb-palette,.fb-settings{position:sticky;top:16px;max-height:calc(100vh - 110px);overflow:auto}
.fb-types{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:14px}
.fb-type{display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid var(--border);background:var(--surface);border-radius:9px;padding:9px 4px;font:inherit;font-size:12px;cursor:grab;color:var(--text)}
.fb-type span{font-size:16px;color:var(--brand)}
.fb-type:hover{border-color:var(--brand);background:var(--brand-soft)}
.fb-canvas{min-height:420px}
.fb-formhead{border:2px dashed transparent;border-radius:10px;padding:10px;cursor:pointer;margin-bottom:8px}
.fb-formhead:hover,.fb-formhead.sel{border-color:var(--brand)}
.fb-fields{display:flex;flex-wrap:wrap;gap:8px;min-height:60px;border-radius:10px;padding:2px}
.fb-fields.over{outline:2px dashed var(--brand);outline-offset:4px}
.fb-field{flex:1 1 100%;position:relative;border:2px solid transparent;border-radius:10px;padding:10px 12px;cursor:pointer;background:var(--surface)}
.fb-field.half{flex:1 1 calc(50% - 4px)}
.fb-field:hover{border-color:var(--border)}
.fb-field.sel{border-color:var(--brand);background:var(--brand-soft)}
.fb-field.dragging{opacity:.4}
.fb-tools{display:none;position:absolute;top:-12px;right:8px;gap:2px;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:2px;z-index:2}
.fb-field:hover .fb-tools,.fb-field.sel .fb-tools{display:flex}
.fb-tools button{border:0;background:none;cursor:pointer;padding:2px 6px;font-size:12px;border-radius:5px;color:var(--text)}
.fb-tools button:hover{background:var(--surface-2)}
.fb-tag{font-size:11px;color:var(--muted);padding:2px 6px}
.fb-lbl{font-weight:600;font-size:13px;margin-bottom:5px}
.fb-input{border:1px solid var(--border);border-radius:8px;padding:8px 10px;color:var(--muted);font-size:13px;min-height:36px;background:#fff}
.fb-submit{margin-top:14px;text-align:center;padding:12px;border-radius:10px;font-weight:700}
@media(max-width:1100px){.fb{grid-template-columns:1fr}.fb-palette,.fb-settings{position:static;max-height:none}}

/* Visual editor */
.ve-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 14px;background:#faf5ff;border-bottom:1px solid #eadcfb}
.ve-what{font-size:13px}
.ve-actions{display:flex;gap:4px;flex-wrap:wrap}
.ve-imgs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.ve-imgs button{width:72px;height:72px;padding:0;border:2px solid var(--border);border-radius:10px;overflow:hidden;cursor:pointer;background:#fff}
.ve-imgs button.on{border-color:var(--brand);box-shadow:0 0 0 3px rgba(124,58,237,.2)}
.ve-imgs img{width:100%;height:100%;object-fit:cover}

.el-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:6px}
.overlay.side{background:transparent;place-items:stretch end;padding:0;pointer-events:none}
.overlay.side .modal{pointer-events:auto;height:100vh;max-height:100vh;border-radius:0;max-width:360px;box-shadow:-10px 0 40px rgba(0,0,0,.18);padding:18px}
.sf-group{border-top:1px solid var(--border);padding:10px 0}
.sf-title{font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:6px}
.sf-row{margin:8px 0}.sf-row label{font-size:12.5px;margin-bottom:3px}

/* Import */
.drop{display:flex;flex-direction:column;align-items:center;gap:6px;border:2px dashed var(--border);border-radius:14px;padding:26px 16px;text-align:center;cursor:pointer;background:var(--surface-2)}
.drop.over,.drop:hover{border-color:var(--brand);background:var(--brand-soft)}
.drop.has{border-style:solid;border-color:var(--brand)}
.imp-steps{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.imp-step{display:flex;gap:10px;align-items:flex-start;color:var(--muted)}
.imp-step.active,.imp-step.done{color:var(--text)}
.imp-dot{width:18px;height:18px;border-radius:50%;border:2px solid var(--border);display:inline-grid;place-items:center;flex:none;font-size:11px}
.imp-dot.ok{background:var(--ok);border-color:var(--ok);color:#fff}
.spinner.dark{width:18px;height:18px;border-width:2px;border-color:var(--brand-soft);border-top-color:var(--brand);flex:none}

/* Element style panel */
.se-sides{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.se-side{display:flex;flex-direction:column;gap:2px;margin:0;font-weight:500}
.se-side span{font-size:11px;color:var(--muted)}
.se-side input{padding:6px 6px}
#sePanel .seg button{padding:5px 9px}

/* New blank page */
.bp-opt{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--border);border-radius:10px;padding:10px 12px;margin:6px 0;font-weight:500;cursor:pointer}
.bp-opt input[type=radio]{width:auto;margin-top:4px}
.bp-opt:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}

/* Form notifications */
.nt-grid{display:grid;grid-template-columns:320px 1fr;gap:16px;align-items:start}
.nt-item{border:1px solid var(--border);border-radius:10px;padding:10px 12px;cursor:pointer}
.nt-item:hover{border-color:var(--brand)}
.nt-item.sel{border-color:var(--brand);background:var(--brand-soft)}
.nt-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.nt-two .field+.field{margin-top:0}
.nt-rule{display:grid;grid-template-columns:1.2fr 1fr 1.2fr auto;gap:6px;margin-bottom:6px}
.nt-rule select,.nt-rule input{padding:6px 8px}
@media(max-width:1000px){.nt-grid,.nt-two{grid-template-columns:1fr}}

/* Clients (Unbounce-style switcher) */
.cl-switch{display:flex;align-items:center;gap:9px;width:100%;border:1px solid var(--border);background:var(--surface);border-radius:11px;padding:7px 9px;margin:0 0 12px;font:inherit;font-weight:600;color:var(--text);cursor:pointer;text-align:left}
.cl-switch:hover,.cl-switch:focus-visible{border-color:var(--brand);box-shadow:0 0 0 3px rgba(124,58,237,.12);outline:none}
.cl-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-caret{color:var(--muted);font-size:12px}
.cl-av{flex:none;display:inline-grid;place-items:center;border-radius:50%;color:#fff;font-weight:700;letter-spacing:.02em}
.cl-menu{position:fixed;z-index:70;width:330px;max-width:calc(100vw - 16px);background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 50px rgba(29,21,48,.18);overflow:hidden}
.cl-head{display:flex;align-items:center;gap:8px;padding:12px 12px 10px 14px;border-bottom:1px solid var(--border)}
.cl-head b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.cl-head .btn{margin-left:auto;color:var(--brand)}
.cl-search{border:0;border-bottom:1px solid var(--border);border-radius:0;padding:10px 14px}
.cl-search:focus{box-shadow:none}
.cl-list{max-height:min(420px,60vh);overflow-y:auto;padding:6px}
.cl-item{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;padding:8px;border-radius:10px;cursor:pointer;text-align:left;font:inherit;color:var(--text)}
.cl-item:hover,.cl-item:focus-visible{background:var(--surface-2);outline:none}
.cl-item.on{background:var(--brand-soft)}
.cl-item .cl-n{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-item .grow{min-width:0;display:flex;flex-direction:column}
.cl-item .small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-check{color:var(--brand);font-weight:800}
.cl-foot{display:block;padding:10px 14px;border-top:1px solid var(--border);font-weight:600;font-size:13px}
.nav-sep{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;padding:14px 10px 4px}
.cl-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.cl-grid .field+.field{margin-top:0}
.cl-grid .span2{grid-column:1/-1}
.cl-mobile{width:auto;min-width:140px;padding:6px 8px;font-weight:600}
.crumbs{margin:8px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crumbs a{color:var(--muted)}
.ed-title{margin-top:2px}

/* Inner pages on page cards */
.inner-list{border-top:1px dashed var(--border);margin-top:4px;padding-top:8px;display:flex;flex-direction:column;gap:2px}
.inner-row{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:7px;color:var(--text);font-size:12.5px}
.inner-row:hover{background:var(--surface-2);text-decoration:none}
.inner-row .mono{color:var(--brand);font-weight:600;flex:none}
.dot{flex:none;width:8px;height:8px;border-radius:50%;background:#cbd5e1}
.dot.ok{background:var(--ok)}.dot.warn{background:#f59e0b}
@media (max-width:600px){.cl-grid{grid-template-columns:1fr}}
.seg-links a{display:inline-block;padding:7px 14px;font-size:13px;font-weight:600;color:var(--muted);background:var(--surface)}
.seg-links a:hover{text-decoration:none;background:var(--surface-2)}
.seg-links a.on{background:var(--brand-soft);color:var(--brand)}
/* Security settings */
.qr-box{display:grid;place-items:center;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px;width:220px;height:220px}
.qr-box svg{width:200px;height:200px}
.codes{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;font-family:ui-monospace,Menlo,monospace;font-size:14px;background:var(--surface-2);border-radius:10px;padding:12px}
.act-row td{font-size:12.5px}
/* Script manager + cookie banner */
.preset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.preset{display:flex;flex-direction:column;gap:3px;text-align:left;border:1px solid var(--border);background:var(--surface);border-radius:11px;padding:11px 12px;cursor:pointer;font:inherit;color:var(--text)}
.preset:hover,.preset:focus-visible{border-color:var(--brand);background:var(--brand-soft);outline:none}
.page-pick{max-height:200px;overflow:auto;border:1px solid var(--border);border-radius:10px;padding:8px 10px;margin-top:6px;display:flex;flex-direction:column;gap:4px}
.switch{position:relative;display:inline-block;width:38px;height:22px;flex:none;margin:0}
.switch input{opacity:0;width:0;height:0;position:absolute}
.switch span{position:absolute;inset:0;background:#cbd5e1;border-radius:99px;transition:.15s;cursor:pointer}
.switch span::before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.switch input:checked+span{background:var(--brand)}
.switch input:checked+span::before{transform:translateX(16px)}
.switch input:focus-visible+span{box-shadow:0 0 0 3px rgba(124,58,237,.3)}
.cookie-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,440px);gap:18px;align-items:start}
.cookie-preview{position:sticky;top:18px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px;box-shadow:var(--shadow)}
.cookie-preview iframe{width:100%;height:520px;border:1px solid var(--border);border-radius:10px;margin-top:10px;background:#fff}
@media (max-width:1100px){.cookie-layout{grid-template-columns:1fr}.cookie-preview{position:static}}
/* Pages list */
.pages-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.pages-tools input[type=search]{max-width:280px}
.pages-tools select{width:auto}
.pages-table td{vertical-align:middle}
.pages-table th.num,.pages-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.pages-table tr.main td{border-top:1px solid var(--border)}
.pages-table tr.inner td{background:#fcfbfe;border-bottom-color:#efeaf5}
.pages-table tr.dim td{opacity:.55}
.pages-table tbody tr:hover td{background:var(--surface-2)}
.pages-table input[type=checkbox]{width:16px;height:16px}
.pt-wrap{display:flex;gap:8px;align-items:flex-start;min-width:0}
.pages-table tr.inner .pt-wrap{padding-left:18px}
.pt-branch{color:var(--muted);font-weight:700}
.pt-title{font-weight:700;color:var(--text)}
.pages-table tr.inner .pt-title{font-weight:600}
.pt-url{margin-top:2px;max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pop-menu{position:fixed;z-index:80;min-width:200px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 40px rgba(29,21,48,.18);padding:6px}
.pop-menu button{display:block;width:100%;text-align:left;border:0;background:none;font:inherit;font-size:14px;padding:8px 10px;border-radius:8px;cursor:pointer;color:var(--text)}
.pop-menu button:hover,.pop-menu button:focus-visible{background:var(--surface-2);outline:none}
.pop-menu button.danger{color:var(--err)}
.pop-sep{height:1px;background:var(--border);margin:5px 4px}
@media (max-width:900px){.pages-table th:nth-child(5),.pages-table td:nth-child(5),.pages-table th:nth-child(6),.pages-table td:nth-child(6),.pages-table th:nth-child(7),.pages-table td:nth-child(7){display:none}}

.cl-head .badge{white-space:nowrap;flex:none}
.cl-head b{min-width:0;flex:1 1 auto}

/* ===== Editor v2 ===== */
.ed2{display:flex;flex-direction:column;height:100vh;background:var(--surface-2)}
.ed2-top{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;min-height:56px}
.ed2-title{min-width:0;max-width:300px;display:flex;flex-direction:column}
.ed2-title input{font-weight:700;border:1px solid transparent;padding:3px 6px;border-radius:7px;width:100%;font-size:14px}
.ed2-title input:hover{border-color:var(--border)}
.ed2-title .crumbs{margin:0 0 0 6px;font-size:11.5px}
.ed2-modes button{padding:7px 12px}
.ed2-body{flex:1;display:grid;grid-template-columns:340px minmax(0,1fr);min-height:0;transition:grid-template-columns .18s ease}
.ed2.nosb .ed2-body{grid-template-columns:0 minmax(0,1fr)}
.ed2-side{background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.ed2.nosb .ed2-side{border-right:0}
.ed2-side .pane{display:flex;flex-direction:column;min-height:0;flex:1}
.ed2-stage{min-width:0;min-height:0;display:flex;flex-direction:column}
.ed2-stage .stage{flex:1}
.ed2 .ve-only{display:none}
.ed2[data-mode="visual"] .ve-only{display:flex}
.ed2[data-mode="preview"] .ed2-stage .stage{padding:0}
.ed2[data-mode="preview"] .frame:not(.mobile):not(.tablet){border-radius:0;border:0;box-shadow:none}
.vtabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--border);flex:none}
.vtabs button{border:0;background:none;font:inherit;font-weight:700;font-size:13px;padding:11px 6px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent}
.vtabs button.on{color:var(--brand);border-bottom-color:var(--brand)}
.vtab{flex:1;overflow-y:auto;padding:12px 14px;min-height:0}
.blk-group{margin-bottom:12px}
.blk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.blk{display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:10px 4px;font:inherit;font-size:11.5px;line-height:1.2;text-align:center;cursor:pointer;color:var(--text)}
.blk:hover,.blk:focus-visible{border-color:var(--brand);background:var(--brand-soft);outline:none}
.blk-ic{font-size:17px;color:var(--brand);height:20px}
.nv{font-size:13px}
.nv-row{display:flex;align-items:center;gap:4px;padding:4px 6px;border-radius:7px;cursor:pointer;white-space:nowrap;border:1px solid transparent}
.nv-row:hover{background:var(--surface-2)}
.nv-row.on{background:var(--brand-soft);color:var(--brand);font-weight:600}
.nv-row.nv-hidden{opacity:.5}
.nv-row.dragging{opacity:.4}
.nv-row.drop-before{box-shadow:inset 0 2px 0 var(--brand-2)}
.nv-row.drop-after{box-shadow:inset 0 -2px 0 var(--brand-2)}
.nv-row.drop-inside{border-color:var(--brand-2);background:#fdf2f8}
.nv-tog{width:18px;height:18px;border:0;background:none;padding:0;cursor:pointer;color:var(--muted);font-size:11px;flex:none}
.nv-tog:disabled{cursor:default}
.nv-name{flex:none}
.nv-hint{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;min-width:0}
.st-head{padding-bottom:10px;border-bottom:1px solid var(--border)}
.st-name{font-weight:800;font-size:15px}
.st-hint{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crumbs-row{display:flex;flex-wrap:wrap;gap:3px;align-items:center;font-size:12px;margin-bottom:4px}
.crumb{border:0;background:none;padding:2px 4px;border-radius:5px;cursor:pointer;color:var(--muted);font:inherit;font-size:12px}
.crumb:hover{background:var(--surface-2);color:var(--brand)}
.st-actions{display:flex;flex-wrap:wrap;gap:4px;padding:10px 0;border-bottom:1px solid var(--border)}
.st-block{padding:10px 0;border-bottom:1px solid var(--border)}
.st-img{background:repeating-conic-gradient(#f1f5f9 0% 25%,#fff 0% 50%) 50%/16px 16px;border-radius:10px;overflow:hidden;border:1px solid var(--border);display:grid;place-items:center;max-height:180px}
.st-img img{max-width:100%;max-height:180px;object-fit:contain;display:block}
.st-relimg{display:flex;gap:10px;align-items:center;margin:6px 0}
.st-relimg img,.st-bg{width:64px;height:48px;object-fit:cover;border-radius:8px;border:1px solid var(--border);flex:none;background-size:cover;background-position:center}
.st-style details.sf-group summary{cursor:pointer;list-style:none;padding:4px 0}
.st-style details.sf-group summary::before{content:"▸ ";color:var(--muted)}
.st-style details.sf-group[open] summary::before{content:"▾ "}
/* media library */
.ml-overlay{place-items:center}
.ml{background:var(--surface);border-radius:16px;width:min(1200px,96vw);height:min(820px,92vh);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.ml-head{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.ml-body{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:0}
.ml-grid-wrap{position:relative;overflow-y:auto;padding:14px}
.ml-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.ml-item{position:relative;aspect-ratio:1;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;cursor:pointer;background:repeating-conic-gradient(#f1f5f9 0% 25%,#fff 0% 50%) 50%/16px 16px;outline:1px solid var(--border)}
.ml-item img{width:100%;height:100%;object-fit:cover;display:block}
.ml-item.on{border-color:var(--brand);outline:3px solid rgba(124,58,237,.25)}
.ml-check{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;line-height:22px;text-align:center;display:none}
.ml-item.on .ml-check{display:block}
.ml-dropnote{display:none;position:absolute;inset:8px;border:3px dashed var(--brand);border-radius:14px;background:rgba(243,236,255,.92);place-items:center;font-weight:800;font-size:20px;color:var(--brand)}
.ml-grid-wrap.drag .ml-dropnote{display:grid}
.ml-side{border-left:1px solid var(--border);padding:14px 16px;overflow-y:auto;background:var(--surface)}
.ml-preview{background:repeating-conic-gradient(#f1f5f9 0% 25%,#fff 0% 50%) 50%/16px 16px;border:1px solid var(--border);border-radius:10px;display:grid;place-items:center;height:180px;overflow:hidden}
.ml-preview img{max-width:100%;max-height:180px;object-fit:contain}
@media (max-width:820px){.ml-body{grid-template-columns:1fr}.ml-side{border-left:0;border-top:1px solid var(--border);max-height:45%}}
@media (max-width:900px){.ed2-body{grid-template-columns:1fr}.ed2-side{max-height:45vh;border-right:0;border-bottom:1px solid var(--border)}.ed2.nosb .ed2-side{display:none}.ed2-body{display:flex;flex-direction:column}}

/* Form design panel (visual editor → Settings) */
.fd .sf-group{border-top:1px solid var(--border);padding-top:6px;margin-top:6px}
.fd-seg{display:flex;flex-wrap:wrap;width:100%}
.fd-seg button{flex:1 1 auto;padding:6px 8px;font-size:12.5px}
.fd-choices{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.fd-ch{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 6px;border:1px solid var(--border);border-radius:10px;background:#fff;font-size:12px;font-weight:600;cursor:pointer;color:var(--text)}
.fd-ch.on{border-color:var(--brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 25%,transparent)}
.fd-ch-prev{display:flex;align-items:center;gap:5px;height:26px;font-style:normal;font-weight:500;font-size:11px;color:#475569}
.fd-ch-prev i{font-style:normal}
.cp-dot{display:inline-block;width:11px;height:11px;border-radius:50%;border:2px solid var(--brand);box-sizing:border-box;margin-right:4px}
.cp-pill{padding:3px 10px;border-radius:999px;background:var(--brand);color:#fff}
.cp-btn{padding:4px 12px;border-radius:5px;background:var(--brand);color:#fff;font-weight:700}
.cp-card{display:flex;align-items:center;padding:3px 8px;border:1.5px solid var(--brand);border-radius:6px}

/* Blocks drag & drop, navigator row actions */
.blk[draggable=true]{cursor:grab}
.blk.dragging{opacity:.5}
#frame.blk-dropping{outline:3px dashed #ec4899;outline-offset:-3px}
.nv-row{position:relative}
.nv-acts{margin-left:auto;display:none;gap:2px;flex:none}
.nv-row:hover .nv-acts,.nv-row.on .nv-acts{display:flex}
.nv-act{all:unset;cursor:pointer;font-size:12px;padding:2px 5px;border-radius:5px;color:var(--muted)}
.nv-act:hover{background:#ede9fe;color:var(--text)}
.nv-act.del:hover{background:#fee2e2;color:#b91c1c}

/* ---------- Activity: top progress bar ---------- */
.topbar-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:2147483600;pointer-events:none;opacity:0;transition:opacity .25s}
.topbar-progress.on{opacity:1}
.topbar-progress.done{opacity:0;transition:opacity .35s .15s}
.topbar-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--brand),var(--brand-2));box-shadow:0 0 10px rgba(236,72,153,.55),0 0 4px rgba(124,58,237,.6);border-radius:0 3px 3px 0;transition:width .2s ease-out}

/* ---------- Activity: busy buttons and links ---------- */
.is-busy{pointer-events:none;cursor:progress}
.btn.is-busy{opacity:.88}
.is-busy::before{content:"";display:inline-block;flex:none;width:.95em;height:.95em;margin-right:.45em;vertical-align:-.15em;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .65s linear infinite}
.btn.is-busy svg{display:none}

/* ---------- Editor loader ---------- */
.edl{position:fixed;inset:0;z-index:2147483500;display:grid;place-items:center;padding:16px;
  background:radial-gradient(1200px 600px at 20% 10%,rgba(124,58,237,.35),transparent 60%),radial-gradient(900px 500px at 90% 90%,rgba(236,72,153,.28),transparent 60%),rgba(23,16,40,.92);
  backdrop-filter:blur(6px);opacity:0;transition:opacity .25s ease}
.edl.on{opacity:1}
.edl.out{opacity:0;transition:opacity .35s ease}
.edl-card{width:min(420px,100%);color:#fff;text-align:center;transform:translateY(8px);transition:transform .35s ease}
.edl.on .edl-card{transform:none}
.edl-logo{display:flex;justify-content:center;gap:7px;margin-bottom:22px;height:46px;align-items:flex-end}
.edl-logo span{width:14px;border-radius:5px;background:linear-gradient(180deg,#a78bfa,var(--brand-2));animation:edlBounce 1.1s ease-in-out infinite}
.edl-logo span:nth-child(1){height:22px}
.edl-logo span:nth-child(2){height:38px;animation-delay:.15s}
.edl-logo span:nth-child(3){height:28px;animation-delay:.3s}
@keyframes edlBounce{0%,100%{transform:scaleY(.6);opacity:.75}50%{transform:scaleY(1);opacity:1}}
.edl-logo span{transform-origin:bottom}
.edl-title{font-size:20px;font-weight:700;letter-spacing:-.01em}
.edl-page{margin-top:4px;font-size:14px;color:rgba(255,255,255,.65);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.edl-pct{margin:22px 0 10px;font-variant-numeric:tabular-nums;line-height:1}
.edl-pct b{font-size:54px;font-weight:800;letter-spacing:-.03em;background:linear-gradient(90deg,#fff,#f5d0fe);-webkit-background-clip:text;background-clip:text;color:transparent}
.edl-pct small{font-size:22px;font-weight:700;color:rgba(255,255,255,.6);margin-left:2px}
.edl-bar{height:8px;border-radius:99px;background:rgba(255,255,255,.12);overflow:hidden;position:relative}
.edl-bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--brand),var(--brand-2));box-shadow:0 0 14px rgba(236,72,153,.6);position:relative;overflow:hidden}
.edl-bar i::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);transform:translateX(-100%);animation:edlShine 1.3s ease-in-out infinite}
@keyframes edlShine{to{transform:translateX(100%)}}
.edl-steps{list-style:none;padding:0;margin:22px auto 0;display:inline-flex;flex-direction:column;gap:9px;text-align:left;font-size:14px}
.edl-steps li{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.42);transition:color .25s}
.edl-steps li.act{color:#fff;font-weight:600}
.edl-steps li.ok{color:rgba(255,255,255,.78)}
.edl-ic{width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.25);flex:none;display:grid;place-items:center;font-size:11px}
.edl-steps li.act .edl-ic{border-color:#f0abfc;border-right-color:transparent;animation:spin .7s linear infinite}
.edl-steps li.ok .edl-ic{border-color:transparent;background:#10b981}
.edl-steps li.ok .edl-ic::after{content:"✓";color:#fff;font-weight:800}
.edl-tip{margin-top:24px;font-size:12.5px;color:rgba(255,255,255,.5)}
@media (prefers-reduced-motion:reduce){.edl-logo span,.edl-bar i::after,.is-busy::before,.edl-steps li.act .edl-ic{animation-duration:2.5s}}
.pg-loading{display:flex;align-items:center;gap:10px;color:var(--muted);padding:28px 4px;font-weight:500;animation:pgIn .3s ease}
@keyframes pgIn{from{opacity:0}to{opacity:1}}

/* ---------- Skeleton screens (shimmer placeholders while content loads) ---------- */
.sk{display:block;flex:none;border-radius:6px;background:#ece8f1;background-image:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.75) 40%,rgba(255,255,255,0) 80%);background-size:600px 100%;background-repeat:no-repeat;background-position:-600px 0;animation:skShine 1.4s ease-in-out infinite}
@keyframes skShine{to{background-position:calc(100% + 600px) 0}}
.sk-wrap{animation:pgIn .25s ease}
.sk-head{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.sk-tools{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.sk-table{padding:0;overflow:hidden}
.sk-row{display:flex;align-items:center;gap:18px;padding:14px 18px;border-bottom:1px solid var(--border)}
.sk-row:last-child{border-bottom:0}
.sk-col{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}
.sk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
.sk-tile{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px}
.sk-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.sk-card{padding:18px}
.sk-form{padding:22px;margin-bottom:16px;max-width:820px}
.sk-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}
.sk-switch{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:12px;padding:8px 10px;margin-bottom:10px}
.sk-nav{display:flex;flex-direction:column}
.sk-app .side-foot .sk{margin-left:0}
@media(max-width:900px){.sk-row .sk:nth-child(n+5){display:none}.sk-fields{grid-template-columns:1fr}.sk-app .side{display:none}}
@media (prefers-reduced-motion:reduce){.sk{animation-duration:3s}}

/* ---------- Blocks library (Step B) ---------- */
.blk-tabs{display:flex;width:100%;margin-bottom:12px}
.blk-tabs button{flex:1}
.blk-grid.sec{grid-template-columns:1fr 1fr}
.blk.blk-sec{flex-direction:row;justify-content:flex-start;text-align:left;gap:8px;padding:10px;font-size:12px;font-weight:600}
.blk.blk-sec .blk-ic{font-size:16px;height:auto;flex:none;width:22px;text-align:center}
.blk:hover{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
.blk-prev{position:fixed;z-index:3000;width:420px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 24px 60px rgba(29,21,48,.25);padding:12px;opacity:0;transform:translateX(-6px);pointer-events:none;transition:opacity .15s,transform .15s}
.blk-prev.on{opacity:1;transform:none}
.blk-prev-t{font-weight:700;margin:0 0 8px;font-size:13px}
.blk-prev-box{width:396px;height:250px;overflow:hidden;border-radius:9px;border:1px solid var(--border);position:relative;margin-bottom:8px}
.blk-prev-box iframe{position:absolute;left:0;top:0;width:1200px;height:760px;border:0;transform:scale(.33);transform-origin:0 0;pointer-events:none}

/* ---------- Background effects ---------- */
.fx-slides{display:flex;flex-wrap:wrap;gap:6px}
.fx-slide{position:relative;width:62px;height:46px;border-radius:8px;background-size:cover;background-position:center;border:1px solid var(--border)}
.fx-slide span{position:absolute;left:4px;bottom:3px;font-size:10px;font-weight:800;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.fx-slide button{all:unset;position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background:#111827;color:#fff;font-size:10px;display:grid;place-items:center;cursor:pointer}
.fx-add{width:62px;height:46px;border-radius:8px;border:1.5px dashed var(--border);background:var(--surface-2);font-size:18px;color:var(--brand);cursor:pointer}
.fx-add:hover{border-color:var(--brand)}

/* ---------- Colour palette panel ---------- */
.ed2-stage{position:relative}
.ed2:not([data-mode="visual"]) .pal{display:none}
.pal{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:40;display:flex;align-items:flex-start;pointer-events:none}
.pal-tab{pointer-events:auto;all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 8px;background:var(--surface);border:1px solid var(--border);border-right:0;border-radius:12px 0 0 12px;box-shadow:-6px 8px 24px rgba(29,21,48,.12);font-size:18px;margin-top:20px}
.pal-tab{pointer-events:auto}
.pal-mini{display:flex;flex-direction:column;gap:4px}
.pal-mini i{width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.12);display:block}
.pal-body{pointer-events:auto;width:0;overflow:hidden;max-height:min(640px,calc(100vh - 140px));overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-right:0;border-radius:14px 0 0 14px;box-shadow:-10px 16px 40px rgba(29,21,48,.18);padding:0;opacity:0;transition:width .2s ease,opacity .15s,padding .2s}
.pal:hover .pal-body,.pal.open .pal-body,.pal.pinned .pal-body{width:290px;padding:14px 16px;opacity:1}
.pal-h{font-weight:800;font-size:15px;margin-bottom:6px}
.pal-sec{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:14px 0 8px}
.pal-cur{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pal-cur-i{display:flex;gap:8px;align-items:center;font-size:12.5px;line-height:1.3}
.pal-sw{width:30px;height:30px;border-radius:8px;flex:none;border:1px solid rgba(0,0,0,.1)}
.pal-neu{display:flex;gap:4px;align-items:center;margin-top:8px}
.pal-neu i{width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.12)}
.pal-neu span{margin-left:4px}
.pal-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pal-chip{display:flex;align-items:center;gap:8px;padding:7px 8px;border:1px solid var(--border);border-radius:9px;background:var(--surface);font:inherit;font-size:12px;font-weight:600;cursor:pointer;color:var(--text);text-align:left}
.pal-chip:hover{border-color:var(--brand)}
.pal-chip.on{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
.pal-chip:disabled{opacity:.5;cursor:not-allowed}
.pal-sws{display:flex;flex:none}
.pal-sws i{width:16px;height:16px;border-radius:50%;border:2px solid #fff;margin-right:-5px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.pal-pick{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600}
.pal-pick input{width:40px;height:30px;padding:1px;border-radius:7px}
.pal-foot{position:sticky;bottom:-14px;margin:14px -16px -14px;padding:10px 16px;background:var(--brand-soft);border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:8px}
.pal-note{font-size:12px;padding:8px 10px;border-radius:8px;background:var(--surface-2);margin-top:6px}
.pal-note.warn{background:var(--warn-soft);color:var(--warn)}

/* Confirmation popup */
.cfm .modal{max-width:460px}
.cfm-ic{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:800;background:var(--brand-soft);color:var(--brand);margin-bottom:12px}
.cfm-ic.danger{background:var(--err-soft);color:var(--err)}
.st-adv{margin-top:12px;border-top:1px solid var(--border);padding-top:8px}

/* Integrations */
.int-table td{vertical-align:top}
.int-target{word-break:break-all;color:var(--muted);margin-top:2px}
.badge.err{background:var(--err-soft);color:var(--err)}
.api-table td{padding:7px 10px}

/* System log */
.lg-stat{text-align:left;cursor:pointer;font:inherit;color:inherit;border:1px solid var(--border)}
.lg-stat.on{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
.lg-n{font-size:28px;font-weight:800;margin-top:2px}
.lg-n.critical,.lg-n.error{color:var(--err)}
.lg-n.warn{color:var(--warn)}
.lg-table td{vertical-align:top}
.lg-meta{font-size:11.5px;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:8px 10px;margin:6px 0 0;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow:auto}
