:root{
  --ea-red:#AE1626; --ea-red-2:#CE1F2E; --ea-red-dark:#7E0F1B; --ea-red-soft:#FCEBEC;
  --ink:#14151A; --ink-2:#1B1D24; --ink-3:#23262F; --ink-line:rgba(255,255,255,.08);
  --canvas:#F3F4F7; --card:#FFFFFF; --line:#E7E9EE; --line-2:#EEF0F4;
  --text:#191B21; --text-2:#5A6069; --muted:#868D97; --muted-2:#AAB0B9;
  --ok:#12885E; --ok-soft:#E4F6EE; --warn:#B7791F; --warn-soft:#FBF1DD; --bad:#C0392B; --bad-soft:#FBEAE8;
  --blue:#7C8492; --blue-soft:#E8F0FC;
  --r:12px; --r-l:16px; --r-s:9px;
  --sh:0 1px 2px rgba(20,22,28,.05),0 6px 20px rgba(20,22,28,.05);
  --sh-l:0 12px 40px rgba(20,22,28,.14);
  --sb:262px; --t:.18s cubic-bezier(.4,0,.2,1);
  --font:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
html[data-theme="dark"]{
  --canvas:#0E0F13; --card:#171922; --line:#262A34; --line-2:#20242D;
  --text:#EDEFF3; --text-2:#AAB1BD; --muted:#828A96; --muted-2:#5E6672;
  --ea-red-soft:#2A1417; --ok-soft:#10241C; --warn-soft:#241E10; --bad-soft:#241211; --blue-soft:#141F33; --sh:0 1px 2px rgba(0,0,0,.3),0 6px 20px rgba(0,0,0,.3);
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:var(--font);background:var(--canvas);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,select,textarea{font-family:inherit;font-size:14px}
::selection{background:var(--ea-red);color:#fff}
svg{display:block}
/* ══ ICON SYSTEM ══ shared with the public site (see app/icons.php).
   ONE line-icon family: 24×24 grid, ONE stroke width (1.75), round terminals.
   .ic is the admin wrapper (sizes + colours); .nic is what icon()/NTPPA_ICONS
   emit, so server- and JS-rendered admin icons match the public chrome. */
.ic{width:18px;height:18px;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ic-sm{width:15px;height:15px}
.nic{display:inline-block;vertical-align:middle;flex:none;stroke-width:1.75}
.nic-fill{stroke:none}
/* icon() output inside admin picks up .ic sizing when both classes are set */
.nic.ic{width:18px;height:18px}
.nic.ic.ic-sm{width:15px;height:15px}
.cms-msearch-ic{color:var(--muted)}

/* ─── LOGIN ─── */
#login{position:fixed;inset:0;z-index:100;display:grid;grid-template-columns:1.05fr .95fr;background:var(--canvas)}
#login .brandside{position:relative;background:linear-gradient(150deg,#101116 0%,#1a1c24 55%,#241016 100%);color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
#login .brandside::before{content:"";position:absolute;width:520px;height:520px;right:-160px;top:-140px;border-radius:50%;background:radial-gradient(circle,rgba(206,31,46,.55),transparent 62%);filter:blur(10px)}
#login .brandside::after{content:"";position:absolute;width:340px;height:340px;left:-120px;bottom:-120px;border-radius:50%;background:radial-gradient(circle,rgba(206,31,46,.22),transparent 65%)}
#login .bs-top{position:relative;z-index:1;display:flex;align-items:center;gap:12px}
#login .bs-top img{height:30px}
#login .bs-mid{position:relative;z-index:1}
#login .bs-mid h1{font-size:38px;font-weight:800;line-height:1.12;letter-spacing:-.02em;margin-bottom:16px}
#login .bs-mid h1 span{color:var(--ea-red-2)}
#login .bs-mid p{color:rgba(255,255,255,.6);font-size:15px;max-width:400px}
#login .bs-feat{position:relative;z-index:1;display:flex;flex-direction:column;gap:12px;margin-top:24px}
#login .bs-feat div{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.72);font-size:13.5px}
#login .bs-feat .dot{width:22px;height:22px;border-radius:6px;background:rgba(206,31,46,.16);color:var(--ea-red-2);display:grid;place-items:center}
#login .bs-bot{position:relative;z-index:1;color:rgba(255,255,255,.35);font-size:12px}
#login .formside{display:flex;align-items:center;justify-content:center;padding:40px}
#login .lform{width:100%;max-width:360px}
#login .lform>img{height:44px;margin-bottom:26px}
#login .lform h2{font-size:22px;font-weight:700;letter-spacing:-.01em}
#login .lform .sub{color:var(--muted);margin:6px 0 26px;font-size:13.5px}
.field{margin-bottom:16px}
.field label{display:block;font-size:12.5px;font-weight:600;color:var(--text-2);margin-bottom:7px}
.inp{width:100%;height:44px;padding:0 14px;background:var(--card);border:1px solid var(--line);border-radius:10px;color:var(--text);transition:var(--t);outline:none}
textarea.inp{height:auto;padding:11px 14px;resize:vertical;line-height:1.55}
.inp:focus{border-color:var(--ea-red);box-shadow:0 0 0 3px var(--ea-red-soft)}
.inp::placeholder{color:var(--muted-2)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 18px;border-radius:10px;font-weight:600;font-size:13.5px;transition:var(--t);white-space:nowrap}
.btn-primary{background:linear-gradient(180deg,var(--ea-red-2),var(--ea-red));color:#fff;box-shadow:0 2px 10px rgba(174,22,38,.35)}
.btn-primary:hover{filter:brightness(1.06);box-shadow:0 4px 16px rgba(174,22,38,.45)}
.btn-ghost{background:var(--card);border:1px solid var(--line);color:var(--text)}
.btn-ghost:hover{border-color:var(--muted-2);background:var(--line-2)}
.btn-block{width:100%}
.btn-sm{height:34px;padding:0 12px;font-size:12.5px;border-radius:8px}
.lform .foot{margin-top:18px;font-size:12.5px;color:var(--muted);text-align:center}
.lform .demo{margin-top:20px;padding:10px 12px;background:var(--ea-red-soft);border-radius:9px;font-size:12px;color:var(--ea-red-dark);text-align:center}
html[data-theme="dark"] .lform .demo{color:#f0a6ad}

/* ─── APP SHELL ─── */
#app{display:none;grid-template-columns:var(--sb) 1fr;min-height:100vh}
#app.on{display:grid}
.sidebar{background:linear-gradient(180deg,var(--ink) 0%,var(--ink-2) 100%);color:#cfd3da;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;border-right:1px solid var(--ink-line)}
.sb-brand{display:flex;align-items:center;gap:11px;padding:18px 18px 16px}
.sb-brand .mark{width:38px;height:38px;border-radius:10px;background:#fff;display:grid;place-items:center;flex:none;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.sb-brand .mark img{width:26px;height:26px;object-fit:contain}
.sb-brand .txt b{color:#fff;font-weight:700;font-size:15px;letter-spacing:-.01em;display:block;line-height:1.1}
.sb-brand .txt span{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ea-red-2);font-weight:700}
.sb-site{margin:0 12px 8px;padding:10px 12px;background:rgba(255,255,255,.04);border:1px solid var(--ink-line);border-radius:10px;display:flex;align-items:center;gap:10px;cursor:pointer;transition:var(--t)}
.sb-site:hover{background:rgba(255,255,255,.07)}
.sb-site .fav{width:26px;height:26px;border-radius:7px;background:linear-gradient(135deg,var(--ea-red-2),var(--ea-red-dark));display:grid;place-items:center;color:#fff;font-weight:700;font-size:12px;flex:none}
.sb-site .n{flex:1;min-width:0}
.sb-site .n b{color:#fff;font-size:12.5px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-site .n span{font-size:11px;color:#8b909a}
.sb-nav{flex:1;overflow-y:auto;padding:8px 12px}
.sb-nav::-webkit-scrollbar{width:6px}.sb-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.08);border-radius:3px}
.sb-group{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#6a7079;font-weight:700;padding:14px 10px 6px}
.nav-i{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:9px;color:#c2c7cf;font-size:13.5px;font-weight:500;cursor:pointer;transition:var(--t);position:relative;margin-bottom:2px}
.nav-i:hover{background:rgba(255,255,255,.05);color:#fff}
.nav-i.on{background:rgba(206,31,46,.14);color:#fff}
.nav-i.on::before{content:"";position:absolute;left:-12px;top:8px;bottom:8px;width:3px;background:var(--ea-red-2);border-radius:0 3px 3px 0}
.nav-i.on .ic{color:var(--ea-red-2)}
.nav-i .badge{margin-left:auto;background:rgba(206,31,46,.9);color:#fff;font-size:10.5px;font-weight:700;padding:1px 7px;border-radius:20px}
.sb-user{padding:12px;border-top:1px solid var(--ink-line);display:flex;align-items:center;gap:10px}
.avatar{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,var(--ea-red-2),var(--ea-red-dark));color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.sb-user .n{flex:1;min-width:0}
.sb-user .n b{color:#fff;font-size:12.5px;display:block;line-height:1.2}
.sb-user .n span{font-size:11px;color:#868d97}
.sb-user button{color:#868d97;padding:6px;border-radius:7px;transition:var(--t)}
.sb-user button:hover{color:#fff;background:rgba(255,255,255,.06)}

/* ─── MAIN ─── */
.main{min-width:0;display:flex;flex-direction:column}
.topbar{height:62px;background:var(--card);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 24px;position:sticky;top:0;z-index:20}
.tb-title{font-weight:700;font-size:15px}
.tb-crumb{color:var(--muted);font-size:12.5px}
.search{margin-left:8px;flex:1;max-width:420px;position:relative}
.search .ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);width:16px;height:16px}
.search input{width:100%;height:38px;padding:0 12px 0 36px;background:var(--canvas);border:1px solid var(--line);border-radius:9px;color:var(--text);outline:none;transition:var(--t)}
.search input:focus{border-color:var(--ea-red);background:var(--card)}
.search kbd{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--muted);background:var(--card);border:1px solid var(--line);border-radius:5px;padding:1px 6px;font-family:var(--font)}
.tb-right{margin-left:auto;display:flex;align-items:center;gap:6px}
.icon-btn{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;color:var(--text-2);transition:var(--t);position:relative}
.icon-btn:hover{background:var(--canvas);color:var(--text)}
.icon-btn .dotn{position:absolute;top:9px;right:9px;width:7px;height:7px;background:var(--ea-red-2);border-radius:50%;border:2px solid var(--card)}
.tb-live{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border:1px solid var(--line);border-radius:9px;font-size:12.5px;font-weight:600;color:var(--text-2);transition:var(--t)}
.tb-live:hover{border-color:var(--muted-2);color:var(--text)}
.tb-live .live{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}

.content{padding:26px;overflow-y:auto;flex:1}
.view{display:none;animation:fade .25s ease}
.view.on{display:block}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.page-head{display:flex;align-items:flex-start;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.page-head h1{font-size:22px;font-weight:800;letter-spacing:-.02em}
.page-head p{color:var(--muted);font-size:13.5px;margin-top:3px}
.page-head .sp{flex:1}
.row-btns{display:flex;gap:8px;align-items:center}

/* cards, grid */
.grid{display:grid;gap:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--sh)}
.card-p{padding:18px}
.stat{display:flex;flex-direction:column;gap:10px}
.stat .top{display:flex;align-items:center;justify-content:space-between}
.stat .ico{width:38px;height:38px;border-radius:10px;display:grid;place-items:center}
.stat .n{font-size:27px;font-weight:800;letter-spacing:-.02em;line-height:1}
.stat .l{font-size:12.5px;color:var(--muted);font-weight:500}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:20px}
.chip.up{background:var(--ok-soft);color:var(--ok)} .chip.dn{background:var(--bad-soft);color:var(--bad)} .chip.neu{background:var(--line-2);color:var(--text-2)}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:20px}
.b-ok{background:var(--ok-soft);color:var(--ok)} .b-warn{background:var(--warn-soft);color:var(--warn)} .b-bad{background:var(--bad-soft);color:var(--bad)} .b-neu{background:var(--line-2);color:var(--text-2)}
.badge .d{width:6px;height:6px;border-radius:50%;background:currentColor}

.sec-title{font-weight:700;font-size:14.5px;display:flex;align-items:center;gap:8px}
.card-hd{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line)}
.link{color:var(--ea-red);font-weight:600;font-size:12.5px}
.link:hover{text-decoration:underline}

/* table */
.tbl{width:100%;border-collapse:collapse}
.tbl th{text-align:left;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:11px 18px;border-bottom:1px solid var(--line)}
.tbl td{padding:13px 18px;border-bottom:1px solid var(--line-2);font-size:13px}
.tbl tr:last-child td{border-bottom:none}
.tbl tbody tr{transition:var(--t);cursor:pointer}
.tbl tbody tr:hover{background:var(--canvas)}
.pg-cell{display:flex;align-items:center;gap:11px}
.pg-ico{width:34px;height:34px;border-radius:9px;background:var(--ea-red-soft);color:var(--ea-red);display:grid;place-items:center;flex:none}
.pg-cell b{font-weight:600;display:block}
.pg-cell span{color:var(--muted);font-size:12px}
.usr{display:flex;align-items:center;gap:8px}
.usr .a{width:24px;height:24px;border-radius:6px;background:var(--ink-3);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700}
.act-btns{display:flex;gap:4px;justify-content:flex-end}
.mini{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;color:var(--muted);transition:var(--t)}
.mini:hover{background:var(--canvas);color:var(--ea-red)}

/* activity */
.act-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-2)}
.act-item:last-child{border:none}
.act-item .dot{width:32px;height:32px;border-radius:9px;background:var(--canvas);display:grid;place-items:center;color:var(--text-2);flex:none}
.act-item .b{flex:1;min-width:0}
.act-item .b p{font-size:13px}.act-item .b p b{font-weight:600}
.act-item .b span{font-size:11.5px;color:var(--muted)}

/* editor */
.ed-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:22px}
.ed-tab{padding:10px 16px;font-size:13.5px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;transition:var(--t);display:flex;align-items:center;gap:7px}
.ed-tab:hover{color:var(--text)}
.ed-tab.on{color:var(--ea-red);border-bottom-color:var(--ea-red)}
.ed-tab .cnt{background:var(--line-2);color:var(--text-2);font-size:10.5px;font-weight:700;padding:0 6px;border-radius:20px;min-width:18px;text-align:center}
.ed-panel{display:none}.ed-panel.on{display:block}
.ed-layout{display:grid;grid-template-columns:1fr 340px;gap:22px;align-items:start}

/* section blocks */
.blocks{display:flex;flex-direction:column;gap:10px}
.block{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);overflow:hidden;transition:var(--t)}
.block.hidden-sec{opacity:.55}
.block-hd{display:flex;align-items:center;gap:12px;padding:13px 14px}
.block-hd .grip{color:var(--muted-2);cursor:grab}
.block-hd .bi{width:36px;height:36px;border-radius:9px;background:var(--canvas);color:var(--ea-red);display:grid;place-items:center;flex:none}
.block-hd .bt{flex:1;min-width:0}
.block-hd .bt b{font-weight:600;font-size:13.5px;display:flex;align-items:center;gap:8px}
.block-hd .bt .ty{font-size:10.5px;font-weight:700;color:var(--muted);background:var(--line-2);padding:1px 7px;border-radius:5px;text-transform:uppercase;letter-spacing:.04em}
.block-hd .bt span{font-size:12px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.block-hd .ctrls{display:flex;gap:2px;align-items:center}
.block-body{display:none;padding:0 14px 16px;border-top:1px solid var(--line-2)}
.block.open .block-body{display:block}
.block.open .chev{transform:rotate(180deg)}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-top:14px}
.fgrid .full{grid-column:1/-1}
.switch{width:38px;height:22px;border-radius:20px;background:var(--line);position:relative;transition:var(--t);flex:none}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:var(--t);box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch.on{background:var(--ea-red)}.switch.on::after{left:18px}
.add-sec{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px;border:1.5px dashed var(--line);border-radius:var(--r);color:var(--text-2);font-weight:600;font-size:13px;cursor:pointer;transition:var(--t);background:var(--card)}
.add-sec:hover{border-color:var(--ea-red);color:var(--ea-red);background:var(--ea-red-soft)}

/* banner */
.banner-prev{position:relative;border-radius:var(--r);overflow:hidden;height:240px;background:#111;border:1px solid var(--line)}
.banner-prev img{width:100%;height:100%;object-fit:cover}
.banner-prev .ov{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,5,20,.75),rgba(10,5,20,.15));display:flex;flex-direction:column;justify-content:center;padding:0 32px;color:#fff}
.banner-prev .ov .eb{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#e5b8f5;font-weight:700}
.banner-prev .ov h3{font-size:28px;font-weight:800;margin:6px 0 8px;font-family:Georgia,serif}
.banner-prev .ov p{font-size:13px;max-width:60%;color:rgba(255,255,255,.8)}
.dropzone{border:1.5px dashed var(--line);border-radius:var(--r);padding:22px;text-align:center;color:var(--muted);transition:var(--t);cursor:pointer;background:var(--card)}
.dropzone:hover{border-color:var(--ea-red);background:var(--ea-red-soft);color:var(--ea-red)}
.dropzone .ic{margin:0 auto 8px;width:26px;height:26px}

/* seo */
.seo-score{text-align:center;padding:20px}
.ring{--p:78;width:120px;height:120px;border-radius:50%;margin:0 auto 12px;background:conic-gradient(var(--ok) calc(var(--p)*1%),var(--line-2) 0);display:grid;place-items:center;position:relative}
.ring::before{content:"";position:absolute;inset:11px;border-radius:50%;background:var(--card)}
.ring b{position:relative;font-size:30px;font-weight:800;line-height:1}
.ring span{position:relative;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-weight:700}
.checks{display:flex;flex-direction:column;gap:9px;padding:4px 2px}
.check{display:flex;align-items:center;gap:9px;font-size:12.5px}
.check .ci{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;flex:none}
.check.pass .ci{background:var(--ok-soft);color:var(--ok)} .check.fail .ci{background:var(--warn-soft);color:var(--warn)}
.check span{color:var(--text-2)}
.serp{padding:16px;background:var(--card)}
.serp .u{display:flex;align-items:center;gap:7px;margin-bottom:3px}
.serp .u .fav{width:22px;height:22px;border-radius:50%;background:var(--canvas);display:grid;place-items:center;font-size:11px}
.serp .u .ut b{font-size:12px;color:var(--text);display:block;line-height:1.1}
.serp .u .ut span{font-size:11px;color:var(--text-2)}
.serp .st{color:#1a0dab;font-size:18px;line-height:1.3;margin:2px 0;font-weight:400}
html[data-theme="dark"] .serp .st{color:#8ab4f8}
.serp .sd{color:#4d5156;font-size:12.5px;line-height:1.5}
html[data-theme="dark"] .serp .sd{color:#bdc1c6}
.social-card{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.social-card .im{height:130px;background:linear-gradient(135deg,var(--ea-red-dark),var(--ea-red-2));position:relative;overflow:hidden}
.social-card .im img{width:100%;height:100%;object-fit:cover}
.social-card .tx{padding:10px 12px;background:var(--canvas)}
.social-card .tx .dm{font-size:11px;color:var(--muted);text-transform:uppercase}
.social-card .tx b{font-size:13px;display:block;margin:2px 0}
.social-card .tx p{font-size:11.5px;color:var(--text-2);line-height:1.4}
.counter{font-size:11px;color:var(--muted);float:right;font-weight:600}
.counter.warn{color:var(--warn)} .counter.bad{color:var(--bad)}
.helper{font-size:11.5px;color:var(--muted);margin-top:5px}

/* media */
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.media-i{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card);cursor:pointer;transition:var(--t)}
.media-i:hover{box-shadow:var(--sh-l);transform:translateY(-2px)}
.media-i .th{height:110px;background:var(--canvas);overflow:hidden}
.media-i .th img{width:100%;height:100%;object-fit:cover}
.media-i .mm{padding:8px 10px}
.media-i .mm b{font-size:11.5px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-i .mm span{font-size:10.5px;color:var(--muted)}

/* settings */
.set-row{display:flex;gap:20px;padding:18px 0;border-bottom:1px solid var(--line-2)}
.set-row:last-child{border:none}
.set-row .lab{width:220px;flex:none}
.set-row .lab b{font-size:13.5px;font-weight:600;display:block}
.set-row .lab span{font-size:12px;color:var(--muted)}
.set-row .ctl{flex:1;max-width:440px}

/* modal */
.modal-bg{position:fixed;inset:0;background:rgba(10,12,18,.5);backdrop-filter:blur(3px);z-index:60;display:none;align-items:center;justify-content:center;padding:24px}
.modal-bg.on{display:flex;animation:fade .2s}
.modal{background:var(--card);border-radius:var(--r-l);box-shadow:var(--sh-l);width:100%;max-width:560px;max-height:86vh;overflow:auto}
.modal-hd{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}
.modal-hd b{font-size:15.5px;font-weight:700}
.modal-bd{padding:20px}
.type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.type-i{border:1px solid var(--line);border-radius:10px;padding:14px 10px;text-align:center;cursor:pointer;transition:var(--t)}
.type-i:hover{border-color:var(--ea-red);background:var(--ea-red-soft)}
.type-i .ti{width:38px;height:38px;border-radius:9px;background:var(--canvas);color:var(--ea-red);display:grid;place-items:center;margin:0 auto 8px}
.type-i b{font-size:12px;font-weight:600;display:block}
.type-i span{font-size:10.5px;color:var(--muted)}

.toast{position:fixed;bottom:22px;right:22px;z-index:80;background:var(--ink);color:#fff;padding:12px 16px;border-radius:10px;box-shadow:var(--sh-l);display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;transform:translateY(80px);opacity:0;transition:.3s cubic-bezier(.2,.8,.2,1)}
.toast.on{transform:none;opacity:1}
.toast .ic{color:#4ade80}
/* ─── PAGES: menu-grouped cards ─── */
.pg-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.pgc{overflow:hidden}
.pgc-hd{display:flex;align-items:center;gap:11px;padding:14px 16px;border-bottom:1px solid var(--line)}
.pgc-ico{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;flex:none}
.pgc-hd b{font-size:14px;font-weight:700;display:block;line-height:1.2}
.pgc-hd .sub{font-size:11.5px;color:var(--muted);display:block}
.pgc-cnt{margin-left:auto;font-size:11px;font-weight:700;color:var(--text-2);background:var(--line-2);padding:2px 9px;border-radius:20px;flex:none;white-space:nowrap}
.pgrow{position:relative;display:flex;align-items:center;gap:9px;padding:10px 16px;border-bottom:1px solid var(--line-2);transition:var(--t);font-size:13px;min-width:0}
.pgrow:last-child{border-bottom:none}
.pgrow:hover{background:var(--canvas)}
.pgrow b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgrow .slug{color:var(--muted);font-size:11px;margin-left:auto;flex:none;max-width:38%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgrow .pen{color:var(--muted-2);flex:none}
.pgrow:hover .pen{color:var(--ea-red)}
/* stretched edit link + inline delete (Pages list) */
.pgrow-link{position:absolute;inset:0;z-index:1}
.pgrow.has-del .slug{max-width:32%}
.pgrow-del{position:relative;z-index:2;flex:none;display:flex;margin-left:2px}
.pgrow-delb{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted-2);cursor:pointer;opacity:0;transition:var(--t)}
.pgrow:hover .pgrow-delb,.pgrow:focus-within .pgrow-delb{opacity:1}
.pgrow-delb:hover{color:var(--bad);background:var(--bad-soft);border-color:var(--bad-soft)}
.pgrow-delb:focus-visible{opacity:1;outline:2px solid var(--bad);outline-offset:1px}
@media(hover:none){.pgrow-delb{opacity:1}}
.pdot{width:7px;height:7px;border-radius:50%;background:var(--ok);flex:none}
.pdot.draft{background:var(--warn)}
.mchip{font-size:9.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;padding:1px 7px;border-radius:20px;background:var(--ea-red-soft);color:var(--ea-red);flex:none}
.mchip.g{background:var(--ok-soft);color:var(--ok)}
details.pmore summary{list-style:none;cursor:pointer;padding:10px 16px;font-size:12px;font-weight:700;color:var(--ea-red);border-bottom:1px solid var(--line-2)}
details.pmore summary::-webkit-details-marker{display:none}
details.pmore[open] summary{display:none}
.addrow{display:flex;gap:8px;padding:10px 12px;border-top:1px dashed var(--line);align-items:center}
.addrow .inp{height:34px;font-size:12.5px;flex:1}

/* ─── MOBILE / TABLET ─── */
.hbg-a{display:none;width:38px;height:38px;border-radius:9px;place-items:center;color:var(--text-2);flex:none}
.hbg-a:hover{background:var(--canvas);color:var(--text)}
.sb-ovl{display:none;position:fixed;inset:0;background:rgba(10,12,18,.45);z-index:49;backdrop-filter:blur(2px)}
.tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tbl-wrap .tbl{min-width:560px}
.stats4{grid-template-columns:repeat(4,1fr)}
@media(max-width:1200px){.pg-groups{grid-template-columns:1fr}}
@media(max-width:1080px){.ed-layout{grid-template-columns:1fr}#login{grid-template-columns:1fr}#login .brandside{display:none}}
@media(max-width:960px){
  #app.on{display:block}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:280px;max-width:84vw;z-index:50;height:100dvh;transform:translateX(-105%);transition:transform .25s cubic-bezier(.4,0,.2,1)}
  .sidebar.open{transform:none;box-shadow:0 0 60px rgba(0,0,0,.45)}
  .sb-ovl.on{display:block}
  .hbg-a{display:grid}
  .topbar{padding:0 12px;gap:10px;height:56px}
  .tb-title{font-size:14px}
  .tb-crumb{display:none}
  .tb-live{display:none}
  .tb-find{width:38px;padding:0;justify-content:center}
  .tb-find kbd{display:none}
  .topbar .avatar{width:34px!important;height:34px!important}
  .content{padding:16px 12px}
  .page-head h1{font-size:19px}
  .page-head{gap:10px;margin-bottom:16px}
  .stats4{grid-template-columns:repeat(2,1fr)}
  .fgrid{grid-template-columns:1fr}
  .ed-tabs{overflow-x:auto;scrollbar-width:none}
  .ed-tab{white-space:nowrap;padding:10px 12px}
  .set-row{flex-direction:column;gap:8px}
  .set-row .lab{width:auto}
  .block-hd{flex-wrap:wrap;row-gap:6px}
  .block-hd .bt{flex-basis:calc(100% - 100px)}
  .pgrow .slug{display:none}
  #login .formside{padding:22px}
}

/* ─── VISUAL EDITOR (Word-style rich text) ─── */
.rte{border:1px solid var(--line);border-radius:var(--r);background:var(--card);overflow:hidden}
.rte:focus-within{border-color:var(--ea-red);box-shadow:0 0 0 3px var(--ea-red-soft)}
.rte-bar{display:flex;align-items:center;flex-wrap:wrap;gap:2px;padding:6px;background:var(--line-2);border-bottom:1px solid var(--line)}
.rte-sel{height:30px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font-size:12.5px;font-weight:600;padding:0 6px;cursor:pointer}
.rte-b{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:30px;height:30px;padding:0 7px;border-radius:7px;color:var(--text-2);font-size:13.5px;font-weight:800;transition:var(--t)}
.rte-b:hover{background:var(--card);color:var(--text)}
.rte-b.on{background:var(--ea-red);color:#fff}
.rte-b.b-i{font-style:italic}
.rte-b.b-u{text-decoration:underline}
.rte-b.rte-word{border:1px solid var(--line);background:var(--card);font-weight:700;font-size:12px}
.rte-b.rte-clean{border:1px solid var(--warn);color:var(--warn);font-weight:700;font-size:11.5px}
.rte-b.loading{opacity:.55;pointer-events:none}
.rte-sep{width:1px;height:20px;background:var(--line);margin:0 3px;flex:none}
.rte-spacer{flex:1;min-width:8px}
.rte-surface{min-height:150px;max-height:520px;overflow:auto;padding:14px 16px;color:var(--text);font-size:14.5px;line-height:1.7;outline:none}
.rte-surface>*:first-child{margin-top:0}
.rte-surface p{margin:0 0 .8em}
.rte-surface h2{font-size:1.35rem;font-weight:800;margin:.4em 0 .5em}
.rte-surface h3{font-size:1.12rem;font-weight:700;margin:.4em 0 .45em}
.rte-surface ul,.rte-surface ol{margin:0 0 .8em 1.4em}
.rte-surface li{margin:.2em 0}
.rte-surface a{color:var(--ea-red);text-decoration:underline}
.rte-surface blockquote{margin:0 0 .8em;padding:.4em 1em;border-left:3px solid var(--ea-red);color:var(--text-2);background:var(--line-2);border-radius:0 8px 8px 0}
.rte-surface img{max-width:100%;height:auto;border-radius:8px}
.rte-surface table{border-collapse:collapse;max-width:100%}
.rte-surface td,.rte-surface th{border:1px solid var(--line);padding:6px 10px}
.rte-code{width:100%;border:0!important;border-radius:0;box-shadow:none!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;line-height:1.6;resize:vertical}

/* ─── TEAM & ACCESS (permissions) ─── */
.uperms{border:1px solid var(--line);border-radius:var(--r);padding:14px;background:var(--line-2);margin-bottom:14px}
.uperms-h{font-size:11px;font-weight:800;color:var(--text-2);margin-bottom:8px;text-transform:uppercase;letter-spacing:.05em}
.ucap{display:flex;align-items:center;gap:9px;padding:7px 2px;font-size:13.5px;font-weight:600;cursor:pointer}
.ucap input{width:16px;height:16px;accent-color:var(--ea-red);cursor:pointer;flex:none}

/* ─── IMAGE PICKER ─── */
.cms-pickrow{display:flex;gap:8px;align-items:stretch}
.cms-pickrow .inp{flex:1}
.cms-pickrow .cms-pick{flex:none;white-space:nowrap}

/* ── Multi-image hero banner repeater (Banner tab + Banners manager) ── */
.hero-imgs{display:flex;flex-direction:column;gap:10px}
.hero-imgs-list{display:flex;flex-direction:column;gap:10px}
.hero-img-row{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--canvas)}
.hero-img-main{display:flex;align-items:center;gap:7px}
.hero-img-badge{flex:none;width:38px;font-size:9.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);text-align:center}
.hero-img-badge.is-first{color:var(--ea-red)}
.hero-img-thumb{flex:none;width:44px;height:32px;border-radius:7px;overflow:hidden;background:var(--line-2);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.hero-img-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hero-img-main .hero-img-inp{flex:1;min-width:0}
.hero-img-main .btn{flex:none;padding:0 9px;height:36px}
.hero-img-main .btn[disabled]{opacity:.35;cursor:not-allowed}
.hero-img-text{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;padding-left:46px}
.hero-img-text .inp{height:34px;font-size:12px}
.hero-img-add{align-self:flex-start}
.hero-imgs-help{font-size:11.5px;line-height:1.55;color:var(--muted);margin:2px 0 0}
.bnr-count{position:absolute;left:8px;bottom:8px;background:rgba(8,1,18,.72);color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:100px;backdrop-filter:blur(4px)}
@media(max-width:720px){.hero-img-text{grid-template-columns:1fr;padding-left:0}}
.rte-surface img{cursor:pointer}

/* ── Job openings repeater (friendly editor for a "jobs" section) ── */
.jobs-editor{display:flex;flex-direction:column;gap:10px;margin-top:2px}
.jobs-list{display:flex;flex-direction:column;gap:12px}
.jobrow{border:1px solid var(--line);border-radius:12px;background:var(--canvas);overflow:hidden;transition:opacity var(--t),border-color var(--t)}
.jobrow.is-off{opacity:.6}
.jobrow-hd{display:flex;align-items:center;gap:8px;padding:9px 10px;border-bottom:1px solid var(--line-2)}
.jobrow-num{flex:none;width:24px;height:24px;border-radius:7px;background:var(--ea-red-soft);color:var(--ea-red);display:grid;place-items:center;font-size:11.5px;font-weight:800}
.jobrow-title-wrap{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.jobrow-title{height:38px;font-weight:600}
.jobrow-req{display:none;font-size:11px;font-weight:600;color:var(--ea-red-2);padding-left:2px}
.jobrow.no-title .jobrow-req{display:block}
.jobrow.no-title .jobrow-title{border-color:var(--ea-red-2)}
.jobrow-toggle{flex:none;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border:1px solid var(--line);border-radius:100px;background:var(--card);color:var(--ok,#1a8f5a);font-size:12px;font-weight:700;transition:var(--t);white-space:nowrap}
.jobrow-toggle:hover{border-color:var(--muted-2)}
.jobrow.is-off .jobrow-toggle{color:var(--muted)}
.jobrow-hd .mini{flex:none}
.jobrow-hd .mini[disabled]{opacity:.3;cursor:not-allowed}
.jobrow-hd .jobrow-del:hover{background:var(--bad-soft);color:var(--bad)}
.jobrow-body{padding:12px 12px 14px;display:flex;flex-direction:column;gap:11px}
.jf{display:flex;flex-direction:column;gap:5px}
.jf>label{font-size:12px;font-weight:600;color:var(--text-2)}
.jf .jf-opt{color:var(--muted);font-weight:400}
.jobrow-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.jobrow-body .inp{height:40px}
.jobrow-body textarea.inp{height:auto}
.jobrow-body .rte{margin-top:0}
/* v1.4 — grouped sub-fields (e.g. Minimum Qualifications → Hard/Soft skills) */
.jf-group{gap:9px;border:1px solid var(--line);border-radius:10px;padding:11px 12px 12px;background:var(--card)}
.jf-group>.jf-group-lbl{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--text-2)}
.jf-group>.jf{margin-top:2px}
.jobrow-empty{font-size:12.5px;line-height:1.55;color:var(--muted);border:1.5px dashed var(--line);border-radius:10px;padding:14px 16px;margin:0;background:var(--card)}
.jobrow-foot{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.jobrow-hint{font-size:11.5px;color:var(--muted)}
@media(max-width:720px){.jobrow-meta{grid-template-columns:1fr}.jobrow-toggle .jobrow-toggle-t{display:none}.jobrow-toggle{padding:0 9px}}
.cms-modal{position:fixed;inset:0;z-index:1000;background:rgba(20,22,28,.55);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:20px}
.cms-modal-box{width:100%;max-width:720px;max-height:82vh;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--sh-l);overflow:hidden}
.cms-modal-hd{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);font-size:15px}
.cms-modal-x{font-size:24px;line-height:1;color:var(--muted);width:32px;height:32px;border-radius:8px}
.cms-modal-x:hover{background:var(--line-2);color:var(--text)}
/* grid-auto-rows:max-content + align-content:start + flex:none children pin every
   tile at its natural card height — in a height-capped scrolling grid the auto rows
   otherwise collapse to min-content once the library outgrows the box (the img and
   the ellipsised caption can both flex-shrink to 0), turning the picker into
   unusable 2px "pills". Surfaced when the media library grew from 10 to 125. */
.cms-modal-grid{flex:1;overflow:auto;padding:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));grid-auto-rows:max-content;align-content:start;gap:12px}
.cms-mi{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card);text-align:left;transition:var(--t)}
.cms-mi:hover{border-color:var(--ea-red);box-shadow:0 0 0 3px var(--ea-red-soft);transform:translateY(-2px)}
.cms-mi img{width:100%;height:96px;flex:none;object-fit:cover;display:block;background:var(--line-2)}
.cms-mi span{flex:none;padding:6px 8px;font-size:11px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cms-modal-empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:36px 16px;font-size:13.5px;line-height:1.6}
.cms-modal-ft{display:flex;gap:8px;padding:14px 18px;border-top:1px solid var(--line)}
.cms-modal-ft .cms-url{flex:1}

/* ─── DASHBOARD v3: stat cards + sparklines · analytics charts · quick
       actions · activity feed · content donut · system status ─── */
.db-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
.stat2{padding:15px 16px 12px;display:flex;flex-direction:column;gap:10px;min-width:0}
.stat2-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.stat2-ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none}
.stat2-n{font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
.stat2-l{font-size:11.5px;color:var(--muted);font-weight:600;margin-top:5px}
.stat2 .spark{width:100%;height:38px;display:block;margin-top:2px}
.chip .ic{width:11px;height:11px}
.db-row{display:grid;gap:16px;margin-bottom:16px;align-items:start}
.db-row .card{min-width:0}
.db-row-a{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
.db-row-b{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr)}
.db-row-c{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
.lgd-row{display:flex;gap:14px;align-items:center}
.lgd{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:var(--muted);white-space:nowrap}
.lgd i{width:9px;height:9px;border-radius:3px;display:inline-block}
.db-chart-wrap{position:relative;padding:10px 14px 8px}
.db-chart-wrap svg{width:100%;height:auto;display:block}
.db-tip{position:absolute;top:8px;left:0;pointer-events:none;background:var(--ink);color:#fff;font-size:12px;font-weight:600;padding:7px 11px;border-radius:8px;box-shadow:var(--sh-l);white-space:nowrap;z-index:5}
.db-tip b{color:#fff}
.chart-grid{stroke:var(--line-2);stroke-width:1}
.chart-lbl{fill:var(--muted);font-size:10px;font-family:var(--font);font-weight:600}
.chart-line-v{fill:none;stroke:var(--ea-red);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.chart-line-s{fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chart-vline{stroke:var(--muted-2);stroke-width:1;stroke-dasharray:3 3}
.chart-dot-v{fill:var(--ea-red);stroke:var(--card);stroke-width:2}
.chart-dot-s{fill:var(--blue);stroke:var(--card);stroke-width:2}
.db-empty{padding:34px 18px;text-align:center;color:var(--muted);font-size:13px;line-height:1.65}
.db-empty code{background:var(--line-2);padding:1px 6px;border-radius:5px;font-size:11.5px}
.donut-wrap{display:flex;align-items:center;gap:18px;padding:16px 18px;flex-wrap:wrap}
.donut{flex:none}
.donut-n{fill:var(--text);font-size:21px;font-weight:800;font-family:var(--font)}
.donut-s{fill:var(--muted);font-size:9px;font-weight:700;font-family:var(--font);letter-spacing:.09em;text-transform:uppercase}
.dlegend{flex:1;min-width:150px;display:flex;flex-direction:column;gap:8px}
.dlegend-r{display:flex;align-items:center;gap:8px;font-size:12.5px;min-width:0}
.dlegend-r i{width:9px;height:9px;border-radius:3px;flex:none}
.dlegend-r b{font-weight:600;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dlegend-r span{margin-left:auto;color:var(--muted);font-size:11.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.qa-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.qa-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;border:1px solid var(--line);border-radius:12px;text-align:center;font-size:12px;font-weight:600;color:var(--text-2);transition:var(--t);background:var(--card)}
.qa-tile:hover{border-color:var(--ea-red);color:var(--text);box-shadow:var(--sh);transform:translateY(-1px)}
.qa-tile b{font-weight:600}
.qa-tic{width:34px;height:34px;border-radius:10px;background:var(--ea-red-soft);color:var(--ea-red);display:grid;place-items:center;flex:none}
.act-list{padding:2px 18px 6px}
a.act-item{border-radius:9px;margin:0 -8px;padding:11px 8px;transition:var(--t)}
a.act-item:hover{background:var(--canvas)}
.rec-list{padding:6px 8px}
.rec-empty{padding:18px 12px;font-size:13px;color:var(--muted);line-height:1.6}
.rec-row{display:flex;align-items:baseline;gap:10px;padding:10px 10px;border-radius:9px;transition:var(--t)}
.rec-row:hover{background:var(--canvas)}
.rec-row b{font-weight:600;font-size:13.5px}
.rec-row span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-sys{margin-bottom:4px}
.sys-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(172px,1fr));gap:10px;margin-top:12px}
.sys-i{border:1px solid var(--line-2);border-radius:11px;padding:11px 13px;min-width:0}
.sys-i .l{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:700;display:flex;align-items:center;gap:6px}
.sys-i .v{font-size:13.5px;font-weight:700;margin-top:4px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sys-i .s{font-size:11.5px;color:var(--muted);margin-top:1px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sys-d{width:7px;height:7px;border-radius:50%;background:var(--ok);flex:none}
.sys-d.warn{background:var(--warn)}
.sys-d.bad{background:var(--bad)}
@media(max-width:1280px){.db-row-b{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.db-row-a,.db-row-c{grid-template-columns:1fr}.db-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.db-row-b{grid-template-columns:1fr}.db-stats{grid-template-columns:1fr}.qa-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ─── Revision history dropdown (page/post editor headers) ─── */
.rev-dd{position:relative}
.rev-dd summary{list-style:none;display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;font-size:12.5px;border-radius:8px;font-weight:600;background:var(--card);border:1px solid var(--line);color:var(--text);cursor:pointer;transition:var(--t);white-space:nowrap}
.rev-dd summary::-webkit-details-marker{display:none}
.rev-dd summary:hover{border-color:var(--muted-2);background:var(--line-2)}
.rev-dd[open] summary{border-color:var(--ea-red);color:var(--ea-red)}
.rev-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:60;width:350px;max-width:86vw;background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-l);padding:6px}
.rev-h{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800;padding:8px 10px 6px;display:flex;justify-content:space-between;gap:8px}
.rev-h span{font-weight:600;letter-spacing:0;text-transform:none}
.rev-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px}
.rev-row:hover{background:var(--canvas)}
.rev-meta{flex:1;min-width:0}
.rev-meta b{font-size:13px;font-weight:600;display:block}
.rev-meta span{font-size:11px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rev-row .btn{height:28px;padding:0 10px;font-size:11.5px;flex:none}
.rev-empty{padding:14px 10px;font-size:12.5px;color:var(--muted);line-height:1.55}
.rev-tip{margin-top:4px;padding:9px 10px 6px;border-top:1px solid var(--line-2);font-size:11.5px;color:var(--muted);line-height:1.55}

/* ─── Homepage Popup admin: mini preview ─── */
.pop-prev{background:linear-gradient(150deg,#101116,#241016);border-radius:12px;padding:22px 18px;display:flex;justify-content:center}
.pop-prev-card{position:relative;width:100%;max-width:230px;background:var(--card);border-radius:12px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.5)}
.pop-prev-title{background:linear-gradient(135deg,#9333EA,#A855F7);color:#fff;font-size:11px;font-weight:800;padding:8px 26px 8px 10px;line-height:1.35}
.pop-prev-card img{display:block;width:100%;height:auto;max-height:240px;object-fit:cover}
.pop-prev-none{padding:44px 12px;text-align:center;color:var(--muted);font-size:12px;background:var(--line-2)}
.pop-prev-text{padding:9px 10px 0;font-size:11px;line-height:1.5;color:var(--text-2)}
.pop-prev-text p{margin:0 0 4px}
.pop-prev-news{display:flex;gap:6px;padding:9px 10px 11px}
.pop-prev-news .inp-fake{flex:1;border:1px solid var(--line);border-radius:7px;padding:5px 8px;font-size:10.5px;color:var(--muted-2)}
.pop-prev-news .btn-fake{background:linear-gradient(135deg,#9333EA,#A855F7);color:#fff;font-size:10.5px;font-weight:700;border-radius:7px;padding:5px 9px}
.pop-prev-x{position:absolute;top:6px;right:6px;width:20px;height:20px;border-radius:50%;background:#fff;color:#1A0835;display:grid;place-items:center;font-size:10px;box-shadow:0 2px 8px rgba(0,0,0,.4)}

/* ─── Topbar: pages-search jump (⌘K) + unread-enquiries bell ─── */
.tb-find{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text-2);transition:var(--t)}
.tb-find:hover{border-color:var(--muted-2);color:var(--text)}
.tb-find kbd{font-size:10.5px;color:var(--muted);background:var(--line-2);border:1px solid var(--line);border-radius:5px;padding:1px 6px;font-family:var(--font);font-weight:700;white-space:nowrap}
.tb-bell{border:1px solid var(--line);background:var(--card);border-radius:10px}
.tb-bell:hover{border-color:var(--muted-2)}
.bell-n{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;border-radius:9px;background:var(--ea-red-2);color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center;padding:0 4px;border:2px solid var(--card);line-height:1}

/* flash message → toast (auto-dismisses, no JS needed) */
.toastmsg{position:fixed;bottom:22px;right:22px;z-index:80;display:flex;align-items:center;gap:9px;background:var(--ink);color:#fff;padding:12px 18px;border-radius:11px;box-shadow:var(--sh-l);font-size:13.5px;font-weight:500;animation:toast-in .28s cubic-bezier(.16,1,.3,1),toast-out .45s ease 4s forwards;pointer-events:none}
.toastmsg .ic{color:#4ade80}
@keyframes toast-in{from{transform:translateY(70px);opacity:0}to{transform:none;opacity:1}}
@keyframes toast-out{to{transform:translateY(12px);opacity:0;visibility:hidden}}
@media(prefers-reduced-motion:reduce){
  .toastmsg{animation:toast-out .01s linear 6s forwards}
  *{transition-duration:.01ms!important;animation-duration:.01ms!important}
  .toastmsg{animation-duration:.01ms!important;animation-delay:6s!important}
}

/* ─── PAGES v2: search + mini-card row + masonry columns ─── */
.pg-tools{display:flex;align-items:center;gap:12px;margin:0 0 16px;flex-wrap:wrap}
.pg-search{position:relative;flex:1;min-width:230px;max-width:460px}
.pg-search>.ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);width:16px;height:16px;pointer-events:none}
.pg-search .inp{height:40px;padding-left:38px;padding-right:38px}
.pg-search kbd{position:absolute;right:11px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--muted);background:var(--line-2);border:1px solid var(--line);border-radius:5px;padding:1px 7px;font-family:var(--font);pointer-events:none}
.pg-search-n{font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap}
.pg-minis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px;align-items:start}
.pgc-mini .pgc-hd{padding:12px 14px}
.pgc-mini .pgrow{padding:9px 14px}
.pgc-mini .addrow{padding:8px 10px}
.pg-masonry{columns:2 380px;column-gap:16px}
.pg-masonry .pgc{break-inside:avoid;page-break-inside:avoid;-webkit-column-break-inside:avoid;width:100%;margin:0 0 16px;display:flow-root}
.pgrow.hide,.pgc.hide{display:none}
.pg-searching .addrow,.pg-searching .pgc-note{display:none}
.pg-searching details.pmore summary{display:none}
.pg-noresults{padding:26px 18px;text-align:center;color:var(--muted);font-size:13.5px;border:1.5px dashed var(--line);border-radius:var(--r-l);background:var(--card)}
@media(max-width:1439px){.pg-minis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pg-minis{grid-template-columns:1fr}}

/* ─── Theme toggle (light / dark, persisted per browser) ─── */
.theme-t{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--text-2);display:grid;place-items:center;transition:var(--t)}
.theme-t:hover{border-color:var(--muted-2);color:var(--text)}
.theme-t .t-sun{display:none}
.theme-t .t-moon{display:block}
html[data-theme="dark"] .theme-t .t-sun{display:block}
html[data-theme="dark"] .theme-t .t-moon{display:none}
/* dark mode: whiten the sign-in form's wordmark (dark-text logo on dark canvas) */
html[data-theme="dark"] #login .lform>img{filter:brightness(0) invert(1)}
html[data-theme="dark"] .rte-bar{background:var(--ink-3)}

/* ─── Top bar clock (site timezone) ─── */
.tb-clock{display:flex;align-items:center;gap:7px;height:38px;padding:0 13px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text-2);font-size:12.5px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.tb-clock .ic-sm{color:var(--muted)}
@media (max-width: 900px){ .tb-clock{display:none} }

/* ─── Avatars: uploaded profile photos fill the chip ─── */
.avatar{overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}

/* ══════════════════════════════════════════════════
   2026-07-09 v2 — dashboard float, quick-actions strip,
   admin footer, media delete, picker search
══════════════════════════════════════════════════ */

/* Dashboard v3.1 — cards float subtly on hover (never on touch/reduced-motion) */
.content .card{transition:transform .25s var(--ease,cubic-bezier(.25,.46,.45,.94)),box-shadow .25s,border-color .25s}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .content .card:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(8,10,18,.1),0 2px 8px rgba(8,10,18,.06)}
  html[data-theme="dark"] .content .card:hover{box-shadow:0 12px 32px rgba(0,0,0,.42)}
  .content .qa-tile:hover{transform:translateY(-2px)}
}
/* quick-actions strip (moved up under the stat cards) */
.qa-strip{display:flex;align-items:center;gap:18px;margin-bottom:16px;padding:12px 18px}
.qa-strip-l{font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);flex:0 0 auto}
.qa-row{display:flex;gap:10px;flex-wrap:wrap;flex:1}
.qa-strip .qa-tile{flex:1 1 130px;justify-content:flex-start}
/* activity | continue-editing pair */
.db-row-b{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
@media(max-width:900px){.db-row-b{grid-template-columns:1fr}}

/* Admin footer — every screen */
.adm-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;
  margin-top:34px;padding:14px 2px 6px;border-top:1px solid var(--line);
  font-size:11.5px;color:var(--muted)}
.adm-foot-build{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:100px;
  background:var(--ea-red-soft);color:var(--ea-red);font-weight:700;font-size:10px;letter-spacing:.04em}
.adm-foot-legal a{color:var(--text-2);font-weight:600}
.adm-foot-legal a:hover{color:var(--ea-red)}

/* Media tiles — delete button + usage flags */
.media-i .th{position:relative}
.m-del{position:absolute;top:8px;right:8px;margin:0;opacity:0;transition:opacity .2s}
.media-i:hover .m-del,.m-del:focus-within{opacity:1}
.m-del-b{width:30px;height:30px;border-radius:9px;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;
  background:rgba(12,14,20,.62);color:#fff;backdrop-filter:blur(4px)}
.m-del-b:hover{background:var(--bad)}
.m-flag{position:absolute;left:8px;bottom:8px;font-size:9.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
  padding:2px 8px;border-radius:100px;background:rgba(12,14,20,.62);color:#fff;backdrop-filter:blur(4px);cursor:help}
.m-flag.bad{background:var(--bad)}
.media-i.m-broken .th{background:repeating-linear-gradient(45deg,var(--line-2),var(--line-2) 8px,transparent 8px,transparent 16px)}

/* Media picker — search box + count */
.cms-modal-tools{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid var(--line)}
.cms-modal-tools .inp{flex:1;height:36px;font-size:13px}
.cms-modal-n{font-size:11.5px;color:var(--muted);white-space:nowrap}

/* One-time recovery-key reveal panel */
.reveal-key{border-left:3px solid var(--warn);margin-bottom:16px}
.rk-head{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:14px}
.rk-head .ic{color:var(--warn)}
.reveal-key p{color:var(--muted);font-size:12.5px;line-height:1.65;margin:0 0 10px}
.rk-row{display:flex;gap:10px;align-items:center}
.rk-row code{flex:1;word-break:break-all;font-size:11.5px;background:var(--line-2);padding:9px 12px;border-radius:9px}
.rk-foot{margin-top:9px !important;font-size:11.5px !important}

/* ═══════════════════════════════════════════════════════════════
   v3 · 2026.07.10 — Activation bar, Navigation manager, Banners,
   client logo, and Pages-screen layout modernisation.
   ═══════════════════════════════════════════════════════════════ */

/* ── Pages screen: replace the multi-column masonry (which orphaned the
      "Other pages" card at the bottom-right) with a balanced auto-fill grid.
      Cards flow in reading order; nothing floats alone. ── */
.pg-masonry{columns:auto;column-gap:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:16px;align-items:start}
.pg-masonry .pgc{width:auto;margin:0;break-inside:auto}
.pgc{transition:border-color .2s,box-shadow .2s,transform .2s}
.pgc:hover{border-color:var(--muted-2);box-shadow:var(--sh-l)}
.pgc-hd .pgc-ico{box-shadow:inset 0 0 0 1px rgba(0,0,0,.03)}
.pgrow .pen{transition:color .18s,transform .18s}
.pgrow:hover .pen{transform:translateX(1px)}
@media(max-width:760px){.pg-masonry{grid-template-columns:1fr}}

/* ── Sidebar site chip: client logo on a light plate (keeps dark logos visible) ── */
.sb-site .fav-img{background:rgba(255,255,255,.94);padding:3px;overflow:hidden}
.sb-site .fav-img img{width:100%;height:100%;object-fit:contain;display:block;border-radius:4px}

/* ── Client logo on login / setup / reset + Settings preview ── */
.login-client{display:inline-flex;align-items:center;gap:9px;margin-top:14px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:var(--line-2)}
.login-client img{height:24px;width:auto;max-width:96px;object-fit:contain;display:block}
.login-client span{font-size:12px;font-weight:600;color:var(--text-2)}
.set-logo-prev{margin-top:9px}
.set-logo-prev img{height:42px;max-width:170px;object-fit:contain;background:var(--line-2);border:1px solid var(--line);border-radius:9px;padding:6px 12px;display:block}

/* ── Activation bar (page editor top) ── */
.act-bar{padding:15px 17px;margin-bottom:16px;border-left:4px solid var(--warn)}
.act-bar.is-pub{border-left-color:var(--ok)}
.act-hd{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.act-state{display:flex;align-items:center;gap:12px;flex:1;min-width:220px}
.act-dot{width:11px;height:11px;border-radius:50%;background:var(--warn);flex:none;box-shadow:0 0 0 4px var(--warn-soft)}
.is-pub .act-dot{background:var(--ok);box-shadow:0 0 0 4px var(--ok-soft)}
.act-now{font-size:14px;font-weight:700;display:block;line-height:1.25}
.act-sub{font-size:12px;color:var(--muted);display:block;margin-top:1px}
.act-btns{margin-left:auto}
.act-menu{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px;padding-top:15px;border-top:1px solid var(--line)}
.act-help{font-size:11.5px;color:var(--muted);line-height:1.65;margin-top:13px}
.act-help code{background:var(--line-2);padding:1px 6px;border-radius:5px;font-size:11px}
.act-editor-note{font-size:12.5px;color:var(--text-2);background:var(--line-2);border-radius:10px;padding:10px 14px;margin-top:13px;line-height:1.6}
.act-ro{display:flex;align-items:center;background:var(--line-2);color:var(--text-2);cursor:default;font-size:12px;font-weight:500}
.act-ro b{color:var(--text);font-weight:700;margin:0 3px}
@media(max-width:600px){.act-menu{grid-template-columns:1fr}.act-btns{margin-left:0;width:100%}.act-btns .btn{width:100%}}

/* ── Navigation manager ── */
.nv-wrap{display:flex;flex-direction:column;gap:16px;max-width:940px}
.nvcard{overflow:hidden}
.nvcard-hd{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--line);background:var(--line-2)}
.nvcard-hd b{font-size:13.5px}
.nvcard-hd .pgc-cnt{margin-left:0}
.nvcard-note{font-size:11.5px;color:var(--muted);margin-left:auto;font-weight:500}
.nvrow{display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--line-2);flex-wrap:wrap}
.nvrow:last-child{border-bottom:none}
.nvrow-main{display:flex;align-items:center;gap:10px;flex:1;min-width:230px}
.nvrow-t{min-width:0}
.nvrow-t b{font-size:13.5px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nvrow-t .slug{font-size:11px;color:var(--muted)}
.nvrow-edit{flex:none}
.nvrow-ord{display:flex;gap:4px;flex:none}
.nvrow-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.nvrow-form .inp{height:36px;font-size:12.5px}
.nvrow-form select.inp{min-width:112px}
.nvrow-form input.inp{min-width:130px;flex:1}
.nvrow-empty{color:var(--muted);font-size:12.5px;font-style:italic}
@media(max-width:720px){.nvrow-form{width:100%}.nvrow-form input.inp,.nvrow-form select.inp{flex:1;min-width:0}}

/* ── Banners aggregate view ── */
.bnr-wrap{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:16px;align-items:start}
.bnr-card{display:flex;flex-direction:column;overflow:hidden;padding:0}
.bnr-thumb{height:120px;background:var(--line-2);position:relative;overflow:hidden;flex:none}
.bnr-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.bnr-thumb.no-img::after{content:'No banner image set';position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:12px}
.bnr-body{padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.bnr-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.bnr-hd b{font-size:14px;display:block}
.bnr-hd .slug{font-size:11px;color:var(--muted)}
.bnr-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bnr-grid .full{grid-column:1/-1}
.bnr-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line-2);padding-top:12px}
.bnr-show{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600}
@media(max-width:560px){.bnr-wrap{grid-template-columns:1fr}.bnr-grid{grid-template-columns:1fr}}

/* ── Application attachment download chips (Applications inbox) ── */
.app-files{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:11px;padding-top:11px;border-top:1px solid var(--line-2)}
.app-files-h{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.app-files-h svg{width:13px;height:13px}
.app-file{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--ea-red);
  background:var(--ea-red-soft);border:1px solid transparent;padding:5px 11px;border-radius:20px;transition:var(--t);max-width:100%}
.app-file:hover{border-color:var(--ea-red);transform:translateY(-1px)}
.app-file svg{width:14px;height:14px;flex:none}
.app-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-file b{font-weight:700}

/* ── Media tile actions: Replace-in-place + Copy path (v1.2) ── */
.media-i .mm span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.m-acts{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.m-act{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;line-height:1;
  padding:5px 9px;border-radius:7px;border:1px solid var(--line);background:var(--canvas);color:var(--text);
  cursor:pointer;transition:var(--t)}
.m-act:hover{border-color:var(--ea-red);color:var(--ea-red)}
.m-act svg{width:13px;height:13px}
.m-rep{margin:0}
.m-copy.copied{border-color:var(--ok,#12885E);color:var(--ok,#12885E)}
.media-i.m-busy{opacity:.55;pointer-events:none}
.media-i.m-busy .th::after{content:'Saving…';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;color:#fff;background:rgba(8,1,18,.45)}

/* ── Avatar polish (2026-07-10): larger, softer, brand-logo default ── */
.avatar{box-shadow:0 1px 4px rgba(0,0,0,.18),0 0 0 1px rgba(0,0,0,.05)}
.sb-user{padding:14px 12px}
.sb-user .avatar{width:42px;height:42px;border-radius:12px}
.sb-user .n b{font-size:13.5px}
.topbar .avatar{width:40px!important;height:40px!important}
.sb-site .fav,.sb-site .fav-img{width:32px;height:32px;border-radius:9px}
.sb-site{padding:11px 12px}
/* larger avatar variant used by the Team &amp; Access profile-photo preview */
.avatar-lg{box-shadow:0 3px 10px rgba(0,0,0,.16),0 0 0 1px rgba(0,0,0,.06)}

/* ── Login redesign (2026-07-10): client-first form, ExpertAims powered-by ── */
#login .brandside{background:linear-gradient(150deg,#0e0f14 0%,#191b23 52%,#2a1119 100%)}
#login .brandside::before{filter:blur(14px)}
#login .lclient{display:flex;align-items:center;gap:14px;margin-bottom:26px}
#login .lclient-mark{width:56px;height:56px;border-radius:15px;background:#fff;border:1px solid var(--line);box-shadow:0 6px 18px rgba(0,0,0,.10);display:grid;place-items:center;overflow:hidden;flex:none;color:#fff;font-weight:800;font-size:23px}
#login .lclient-mark img{width:100%;height:100%;object-fit:contain;padding:9px;box-sizing:border-box;display:block}
#login .lclient-mark.is-letter{background:linear-gradient(135deg,var(--ea-red-2),var(--ea-red-dark));border-color:transparent}
#login .lclient-name{display:flex;flex-direction:column;gap:3px;min-width:0}
#login .lclient-name b{font-size:17px;font-weight:800;letter-spacing:-.01em;line-height:1.18;color:var(--text)}
#login .lclient-name span{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700}
#login .lform h2{font-size:21px}
#login .lform .sub{margin:6px 0 24px}
#login .lforgot{text-align:center;margin-top:15px}
#login .lforgot a{font-size:12.5px;color:var(--muted);text-decoration:none;transition:var(--t)}
#login .lforgot a:hover{color:var(--ea-red)}
#login .lpower{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:30px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
#login .lpower img{height:15px;width:auto;opacity:.95}
#login .lpower b{color:var(--text-2);font-weight:700}
html[data-theme="dark"] #login .lpower img{filter:brightness(0) invert(1);opacity:.85}

/* ── Login creativity (2026-07-10): animated aurora, shimmer, entrance ── */
#login .brandside{
  background-color:#0b0c11;
  background-image:
    repeating-linear-gradient(0deg,rgba(255,255,255,.022) 0 1px,transparent 1px 48px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 48px),
    linear-gradient(150deg,#0c0d12 0%,#17131c 55%,#241019 100%);
}
#login .brandside::before{width:560px;height:560px;right:-170px;top:-150px;background:radial-gradient(circle,rgba(206,31,46,.55),transparent 62%);filter:blur(14px);animation:ea-orb-a 15s ease-in-out infinite}
#login .brandside::after{width:440px;height:440px;left:-150px;bottom:-160px;background:radial-gradient(circle,rgba(174,22,38,.30),transparent 65%);filter:blur(6px);animation:ea-orb-b 19s ease-in-out infinite}
@keyframes ea-orb-a{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-28px,36px) scale(1.1)}}
@keyframes ea-orb-b{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(34px,-28px) scale(1.13)}}
/* shimmering accent on the headline */
#login .bs-mid h1 span{background:linear-gradient(90deg,#CE1F2E 0%,#ff7d89 45%,#CE1F2E 90%);background-size:200% auto;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:ea-shimmer 6.5s linear infinite}
@keyframes ea-shimmer{to{background-position:200% center}}
/* entrance */
#login .brandside .bs-top,#login .brandside .bs-mid,#login .brandside .bs-bot{animation:ea-rise .7s cubic-bezier(.2,.7,.2,1) both}
#login .brandside .bs-mid{animation-delay:.06s}
#login .brandside .bs-bot{animation-delay:.12s}
#login .lform{animation:ea-rise .6s cubic-bezier(.2,.7,.2,1) both;animation-delay:.05s}
@keyframes ea-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
/* client tile lift + soft brand glow */
#login .lclient-mark{box-shadow:0 10px 26px rgba(0,0,0,.13),0 0 0 1px rgba(0,0,0,.05)}
#login .lclient-mark::after{content:"";position:absolute;inset:-2px;border-radius:inherit;box-shadow:0 0 22px rgba(206,31,46,.16);pointer-events:none}
#login .lclient-mark{position:relative}
/* feature checklist entrance stagger */
#login .bs-feat div{animation:ea-rise .6s cubic-bezier(.2,.7,.2,1) both}
#login .bs-feat div:nth-child(1){animation-delay:.16s}
#login .bs-feat div:nth-child(2){animation-delay:.22s}
#login .bs-feat div:nth-child(3){animation-delay:.28s}
/* brand line above the copyright */
#login .bs-bot{display:flex;flex-direction:column;gap:8px}
#login .bs-brandline{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:800;letter-spacing:.02em;color:rgba(255,255,255,.82)}
#login .bs-brandline span{color:rgba(255,255,255,.3);font-weight:400}
@media (prefers-reduced-motion:reduce){
  #login .brandside::before,#login .brandside::after,#login .bs-mid h1 span,#login .lform,
  #login .brandside .bs-top,#login .brandside .bs-mid,#login .brandside .bs-bot,#login .bs-feat div{animation:none!important}
}
