/* ==========================================================================
   AITO platform UI — design system
   ========================================================================== */
:root{
  --series-1:#2a78d6; --series-2:#eb6834; --series-3:#1baf7a;
  --seq-100:#cde2fb; --seq-200:#9ec5f4; --seq-300:#6da7ec; --seq-400:#3987e5; --seq-500:#256abf; --seq-600:#184f95; --seq-700:#0d366b;
  --side-bg:#0f2356; --side-ink:#c9d4ee; --side-muted:#8193bf;
  --surface-2:#fafbfc;
  --navy:#0b1f4d; --navy-2:#132b66;
  --pri:#1d4ed8; --pri-h:#1e40af; --pri-50:#eff4ff; --pri-100:#dbe6fe; --pri-ink:#fff;
  --sky:#0ea5e9;
  --ink:#0b1220; --ink-2:#334155; --muted:#64748b; --faint:#94a3b8;
  --line:#e6e8ee; --line-2:#f1f3f7; --bg:#f7f8fa; --surface:#fff;
  --ok:#047857; --ok-50:#ecfdf5; --warn:#b45309; --warn-50:#fffbeb; --err:#b91c1c; --err-50:#fef2f2;
  --r-lg:16px; --r:12px; --r-sm:8px;
  --sh-1:0 1px 2px rgba(16,24,40,.05);
  --sh-2:0 1px 3px rgba(16,24,40,.06),0 8px 24px -6px rgba(16,24,40,.08);
  --sh-3:0 24px 48px -12px rgba(16,24,40,.18);
  --font:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --display:'Plus Jakarta Sans','Inter',system-ui,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
html[data-theme="dark"]{
  --bg:#0b1120; --surface:#121a2e; --surface-2:#0f1728; --ink:#e7ecf6; --ink-2:#b6c1d6; --muted:#8b98b1; --faint:#65728c;
  --line:#223050; --line-2:#1a2540; --pri-50:#172553; --pri-100:#1e3a8a; --pri:#3b6ff5; --pri-h:#2f5fe0;
  --ok-50:#0f2e25; --warn-50:#33240a; --err-50:#3a1414; --ok:#34d399; --warn:#fbbf24; --err:#f87171;
  --side-bg:#0a1430;
  --series-1:#3987e5; --series-2:#d95926; --series-3:#199e70;
  --seq-100:#152a4a; --seq-200:#184f95; --seq-300:#1c5cab; --seq-400:#256abf; --seq-500:#3987e5; --seq-600:#6da7ec; --seq-700:#b7d3f6;
  --sh-1:0 1px 2px rgba(0,0,0,.3); --sh-2:0 8px 24px -6px rgba(0,0,0,.5); --sh-3:0 24px 48px -12px rgba(0,0,0,.6);
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font:15px/1.6 var(--font);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--pri);text-decoration:none}
a:hover{color:var(--pri-h)}
h1,h2,h3,h4{text-wrap:balance;font-family:var(--display);line-height:1.2;margin:0 0 .5em;letter-spacing:-.02em;color:var(--ink)}
h1{font-size:clamp(26px,3.2vw,34px);font-weight:800}
h2{font-size:clamp(19px,2vw,22px);font-weight:700}
h3{font-size:16px;font-weight:700}
h4{font-size:13px;font-weight:700}
p{margin:0 0 1em}
code,.mono{font-family:var(--mono);font-size:.9em}
code{background:var(--line-2);padding:.15em .45em;border-radius:6px;border:1px solid var(--line)}
:focus-visible{outline:2px solid var(--pri);outline-offset:2px}
.i{width:18px;height:18px;flex:none;vertical-align:-4px}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.muted{color:var(--muted)} .small{font-size:13px} .center{text-align:center}
.lead{font-size:17px;color:var(--ink-2);line-height:1.65}
.req{color:var(--err)} .ok-text{color:var(--ok);font-weight:600} .err-text{color:var(--err);font-weight:600}
.mt{margin-top:32px} .rounded{border-radius:var(--r)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--pri);letter-spacing:.01em;margin-bottom:14px}

/* ------------------------------------------------------------------ buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:var(--r-sm);padding:9px 16px;font:600 14px/1.2 var(--font);cursor:pointer;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;white-space:nowrap;min-height:40px;text-decoration:none}
.btn .i{width:16px;height:16px;vertical-align:0}
.btn-sm{padding:6px 12px;font-size:13px;min-height:34px}
.btn-lg{padding:12px 22px;font-size:15px;min-height:48px;border-radius:10px}
.btn-block{width:100%}
.btn-primary{background:var(--pri);color:#fff;box-shadow:var(--sh-1),inset 0 1px 0 rgba(255,255,255,.12)}
.btn-primary:hover{background:var(--pri-h);color:#fff}
.btn-dark{background:var(--navy);color:#fff}
.btn-dark:hover{background:var(--navy-2);color:#fff}
.btn-ghost{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:var(--sh-1)}
.btn-ghost:hover{background:var(--surface-2);border-color:var(--faint);color:var(--ink)}
.btn-subtle{background:var(--pri-50);color:var(--pri)}
.btn-subtle:hover{background:var(--pri-100);color:var(--pri-h)}
.btn-light{background:#fff;color:var(--navy)}
.btn-danger{background:var(--err);color:#fff}
.btn-danger-ghost{background:var(--surface);color:var(--err);border-color:#f3c9c9}
.btn:disabled{opacity:.5;cursor:not-allowed}
.linkbtn{background:none;border:0;color:var(--pri);font:inherit;cursor:pointer;text-decoration:underline;padding:0 2px}
.icon-btn{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:var(--r-sm);border:1px solid transparent;background:none;color:var(--muted);cursor:pointer}
.icon-btn:hover{background:var(--line-2);color:var(--ink)}
.icon-btn:disabled{opacity:.35;cursor:default;background:none}
.icon-btn .i{width:16px;height:16px}

/* ------------------------------------------------------------------ brand */
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.brand:hover{color:var(--ink)}
.brand-mark{width:30px;height:30px;border-radius:8px}
.brand-name{font-family:var(--display);font-weight:800;font-size:19px;letter-spacing:-.02em}

/* ------------------------------------------------------------------ public shell */
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);backdrop-filter:saturate(1.5) blur(12px);border-bottom:1px solid var(--line)}
.topbar-in{display:flex;align-items:center;gap:32px;height:64px}
.mainnav{display:flex;gap:2px;flex:1}
.mainnav a{color:var(--ink-2);padding:8px 12px;border-radius:var(--r-sm);font-weight:500;font-size:14px}
.mainnav a:hover,.mainnav a.on{color:var(--ink);background:var(--line-2)}
.topbar-actions{display:flex;align-items:center;gap:8px}
.flash-legacy{display:flex;align-items:center;gap:10px;margin:16px 0 0;padding:12px 16px;background:var(--ok-50);color:#065f46;border:1px solid #b7ebd3;border-radius:var(--r);font-weight:500;font-size:14px}
.flash .i{color:var(--ok)}
.sitefoot{background:var(--surface);border-top:1px solid var(--line);margin-top:0}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;padding-top:48px;padding-bottom:32px}
.foot-grid h4{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:12px;margin-bottom:12px}
.foot-grid a:not(.brand){display:block;color:var(--ink-2);font-size:14px;margin-bottom:8px}
.foot-grid a:not(.brand):hover{color:var(--pri)}
.foot-brand p{color:var(--muted);font-size:14px;max-width:360px;margin-top:14px}
.foot-note{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;padding-bottom:28px;font-size:12.5px;color:var(--faint)}

/* ------------------------------------------------------------------ app shell */
.app{display:grid;grid-template-columns:var(--side-w,264px) 1fr;min-height:100vh;transition:grid-template-columns .2s}
[data-side="mini"] .app{--side-w:76px}
.side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:var(--side-bg);color:var(--side-ink);overflow:hidden;z-index:60}
.side-brand{display:flex;align-items:center;gap:12px;padding:14px 16px;height:64px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff;flex:none}
.side-brand:hover{color:#fff}
.side-brand img{width:36px;height:36px;border-radius:9px;flex:none}
.side-brand-t{display:flex;flex-direction:column;line-height:1.2;white-space:nowrap}
.side-brand-t b{font-family:var(--display);font-size:17px;font-weight:800;letter-spacing:-.01em}
.side-brand-t small{font-size:11.5px;color:var(--side-muted)}
.side-nav{display:flex;flex-direction:column;gap:3px;flex:1;overflow-y:auto;overflow-x:hidden;padding:8px 12px 16px;scrollbar-width:thin}
.side-nav a{position:relative;display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:9px;color:var(--side-ink);font-weight:500;font-size:14px;white-space:nowrap;transition:background .15s,color .15s}
.side-nav a .i{width:19px;height:19px;color:var(--side-muted);flex:none}
.side-nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.side-nav a:hover .i{color:#fff}
.side-nav a.on{background:var(--pri);color:#fff;box-shadow:0 6px 16px -6px rgba(29,78,216,.7)}
.side-nav a.on .i{color:#fff}
.side-nav .count{margin-left:auto;background:#ef4444;color:#fff;border-radius:999px;font-size:11px;font-weight:700;padding:1px 7px;font-style:normal}
.side-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--side-muted);padding:18px 12px 6px;white-space:nowrap}
.side-foot{padding:12px 18px;border-top:1px solid rgba(255,255,255,.08);font-size:11.5px;color:var(--side-muted);line-height:1.4;white-space:nowrap;flex:none}
.side-foot b{display:block;color:#dbe4ff;font-weight:600}
[data-side="mini"] .side-brand-t,[data-side="mini"] .side-nav a span,[data-side="mini"] .side-foot,[data-side="mini"] .side-nav .count{display:none}
[data-side="mini"] .side-label{font-size:0;padding:10px 0 4px;margin:0 14px;border-top:1px solid rgba(255,255,255,.08)}
[data-side="mini"] .side-nav a{justify-content:center;padding:10px 0}
[data-side="mini"] .side-brand{justify-content:center;padding:14px 0}
.side-scrim{display:none}
.avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--pri-50);color:var(--pri);font-weight:700;font-size:13px;border:1px solid var(--pri-100)}
.avatar.sm{width:36px;height:36px}
.app-main{min-width:0;display:flex;flex-direction:column}
.navbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:14px;height:64px;padding:0 24px;background:var(--surface);border-bottom:1px solid var(--line)}
.nav-btn{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;border:1px solid transparent;background:none;color:var(--muted);cursor:pointer;flex:none}
.nav-btn:hover{background:var(--line-2);color:var(--ink)}
.nav-btn .i{width:20px;height:20px}
.crumbs{display:flex;align-items:center;gap:8px;font-size:15px;min-width:0;white-space:nowrap;overflow:hidden}
.crumbs span{color:var(--muted)}
.crumbs .sep{color:var(--faint)}
.crumbs b{font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:14px}
.nav-meta{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:var(--ink-2);white-space:nowrap}
.nav-meta .i{width:17px;height:17px;color:var(--muted)}
.nav-meta b{font-variant-numeric:tabular-nums;font-weight:600;color:var(--ink)}
.nav-meta small{font-size:11px;color:var(--muted);font-weight:600}
.dropdown{position:relative}
.nav-user{display:flex;align-items:center;gap:10px;padding:5px 10px 5px 6px;border-radius:12px;border:1px solid transparent;background:none;cursor:pointer;color:var(--ink);font:inherit;border-left:1px solid var(--line);border-radius:0 12px 12px 0;padding-left:16px}
.nav-user:hover{background:var(--line-2)}
.nav-user .i{width:16px;height:16px;color:var(--muted);transition:transform .2s}
.dropdown.open .nav-user .i{transform:rotate(180deg)}
.nav-user-t{display:flex;flex-direction:column;line-height:1.25;text-align:left}
.nav-user-t b{font-size:14px;font-weight:600;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-user-t small{font-size:12px;color:var(--muted)}
.menu{position:absolute;right:0;top:calc(100% + 8px);min-width:260px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-3);padding:6px;opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .15s,transform .15s;z-index:70}
.dropdown.open .menu{opacity:1;transform:none;pointer-events:auto}
.menu-head{padding:10px 12px 12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.menu-head b{display:block;font-size:14px}
.menu-head small{color:var(--muted);font-size:12.5px}
.menu a,.menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border-radius:8px;border:0;background:none;font:500 14px var(--font);color:var(--ink-2);cursor:pointer;text-align:left}
.menu a .i,.menu button .i{width:17px;height:17px;color:var(--muted)}
.menu a:hover,.menu button:hover{background:var(--line-2);color:var(--ink)}
.menu form{margin:0;border-top:1px solid var(--line);margin-top:6px;padding-top:6px}
.menu .danger,.menu .danger .i{color:var(--err)}
.app-content{padding:28px 32px 64px;width:100%;max-width:none}
.page-title{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.page-title h1{margin:0 0 4px}
.page-title p{margin:0}
.back{display:inline-flex;align-items:center;gap:6px;margin-bottom:16px;font-weight:500;font-size:13px;color:var(--muted)}
.back:hover{color:var(--ink)}
.back .i{width:15px;height:15px}

/* ------------------------------------------------------------------ toast & modal */
.toasts{position:fixed;bottom:20px;right:20px;z-index:1000;display:flex;flex-direction:column;gap:10px;width:min(400px,calc(100vw - 32px))}
.toast{position:relative;display:flex;gap:12px;align-items:flex-start;padding:14px 14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-3);overflow:hidden;opacity:0;transform:translateY(16px);transition:opacity .25s,transform .25s}
.toast.in{opacity:1;transform:none}
.toast-ic{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px}
.toast-ic .i{width:19px;height:19px}
.toast-success .toast-ic{background:var(--ok-50);color:var(--ok)}
.toast-error .toast-ic{background:var(--err-50);color:var(--err)}
.toast-warning .toast-ic{background:var(--warn-50);color:var(--warn)}
.toast-info .toast-ic{background:var(--pri-50);color:var(--pri)}
.toast-body{flex:1;min-width:0;font-size:13.5px;color:var(--ink-2);line-height:1.5;padding-top:1px}
.toast-body b{display:block;font-size:14px;color:var(--ink);margin-bottom:1px}
.toast-body a{font-weight:600}
.toast-x{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:7px;border:0;background:none;color:var(--faint);cursor:pointer}
.toast-x:hover{background:var(--line-2);color:var(--ink)}
.toast-x .i{width:15px;height:15px}
.toast-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;transform-origin:left;animation:toastbar linear forwards}
.toast.hold .toast-bar{animation-play-state:paused}
.toast-success .toast-bar{background:var(--ok)} .toast-error .toast-bar{background:var(--err)} .toast-warning .toast-bar{background:#d97706} .toast-info .toast-bar{background:var(--pri)}
/* halaman publik: di atas tombol "Tanya AITO" agar tidak menutupinya */
body:has(.chatw) .toasts{bottom:92px}
@keyframes toastbar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.modal-wrap{position:fixed;inset:0;z-index:1001;display:grid;place-items:center;padding:20px;background:rgba(11,18,32,.45);backdrop-filter:blur(3px);opacity:0;transition:opacity .18s}
.modal-wrap.in{opacity:1}
.modal{width:min(440px,100%);background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 70px -20px rgba(0,0,0,.45);padding:24px;transform:translateY(10px) scale(.98);transition:transform .18s}
.modal-wrap.in .modal{transform:none}
.modal-ic{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;margin-bottom:14px}
.modal-ic .i{width:23px;height:23px}
.modal-primary{background:var(--pri-50);color:var(--pri)}
.modal-danger{background:var(--err-50);color:var(--err)}
.modal-body h3{font-size:18px;margin:0 0 6px}
.modal-body p{color:var(--ink-2);font-size:14.5px;margin:0;white-space:pre-line}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}

/* ------------------------------------------------------------------ cards & common */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:24px;box-shadow:var(--sh-1)}
.card h2{font-size:17px}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.card-head h2{margin:0}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.grid-2-1{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;align-items:start}
.tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--line-2);color:var(--ink-2);white-space:nowrap;border:1px solid var(--line)}
.tag.star{background:#fff8e6;color:#8a5a00;border-color:#f6e2b3}
.empty{text-align:center;padding:56px 24px;background:var(--surface);border:1px dashed #d5d9e2;border-radius:var(--r-lg)}
.empty .ic{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--pri-50);color:var(--pri);margin-bottom:14px}
.empty .ic .i{width:24px;height:24px}
.empty h2{margin-bottom:6px}
.empty p{color:var(--muted)}
.empty.small{padding:28px}
.checks{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px 22px;color:var(--ink-2);font-size:14px}
.checks li{display:flex;align-items:flex-start;gap:8px}
.checks li::before{content:"";flex:none;width:18px;height:18px;margin-top:1px;border-radius:50%;background:var(--ok-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat}
.checks.col{flex-direction:column;gap:10px}

/* ------------------------------------------------------------------ forms */
label{display:block;font-weight:500;font-size:13px;margin-bottom:14px;color:var(--ink-2)}
input,select,textarea{display:block;width:100%;margin-top:6px;font:14px/1.45 var(--font);color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:9px 12px;min-height:40px;transition:border-color .15s,box-shadow .15s;box-shadow:var(--sh-1)}
input::placeholder,textarea::placeholder{color:var(--faint)}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--pri);box-shadow:0 0 0 3px rgba(29,78,216,.14)}
textarea{resize:vertical}
input[type=checkbox],input[type=radio]{display:inline-block;width:16px;height:16px;min-height:0;margin:0 8px 0 0;accent-color:var(--pri);box-shadow:none}
input[type=color]{padding:3px;height:38px;cursor:pointer}
input[type=file]{padding:7px}
.check{display:flex;align-items:center;font-weight:500;margin-bottom:10px;color:var(--ink)}
.alert{display:flex;gap:10px;background:var(--err-50);color:#8c1d1d;border:1px solid #f5caca;padding:12px 14px;border-radius:var(--r);margin-bottom:16px;font-size:14px}
.alert.ok{background:var(--ok-50);color:#065f46;border-color:#b7ebd3}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 12px}
.switch{display:flex;align-items:center;gap:10px;cursor:pointer;margin:0;color:var(--ink);font-weight:500}
.switch input{position:absolute;opacity:0;width:1px;height:1px}
.switch span{flex:none;width:36px;height:20px;border-radius:999px;background:#cfd5df;position:relative;transition:.2s}
.switch span::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--surface);transition:.2s;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.switch input:checked+span{background:var(--pri)}
.switch input:checked+span::after{left:18px}
.switch input:focus-visible+span{outline:2px solid var(--pri);outline-offset:2px}
.switch input:disabled+span{opacity:.45}

/* ------------------------------------------------------------------ auth */
.auth{display:grid;grid-template-columns:1fr 1fr;min-height:calc(100vh - 64px)}
.auth-side{background:radial-gradient(900px 500px at 0% 0%,#1e3a8a 0,transparent 60%),var(--navy);color:#c7d2fe;padding:64px;display:flex;flex-direction:column;justify-content:center}
.auth-side h2{color:#fff;font-size:30px;max-width:440px}
.auth-side .checks{color:#dbe4ff;margin-top:24px}
.auth-side .checks li::before{background-color:rgba(255,255,255,.12)}
.auth-form{display:grid;place-items:center;padding:48px 24px}
.auth-card{width:100%;max-width:400px}
.auth-card h1{font-size:26px;margin-bottom:6px}

/* ------------------------------------------------------------------ home */
.hero{position:relative;padding:72px 0 40px;overflow:hidden;background:linear-gradient(180deg,#fff 0,#f7f8fa 100%)}
.hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:44px 44px;mask-image:radial-gradient(ellipse 70% 60% at 50% 0%,#000 40%,transparent 100%);opacity:.6}
.hero .wrap{position:relative}
.hero-copy{max-width:780px;margin:0 auto;text-align:center}
.hero h1{font-size:clamp(34px,5.2vw,58px);line-height:1.05;letter-spacing:-.035em;margin-bottom:20px}
.hero h1 em{font-style:normal;color:var(--pri)}
.hero .lead{font-size:18px;max-width:640px;margin:0 auto}
.pill{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);padding:5px 12px 5px 6px;border-radius:999px;font-size:13px;font-weight:500;color:var(--ink-2);margin-bottom:22px;box-shadow:var(--sh-1)}
.pill b{background:var(--pri-50);color:var(--pri);border-radius:999px;padding:2px 8px;font-size:12px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin:28px 0 18px}
.hero .checks{justify-content:center}
.url-demo{display:inline-flex;align-items:center;gap:8px;margin-top:28px;padding:10px 16px;background:var(--surface);border:1px solid var(--line);border-radius:999px;box-shadow:var(--sh-2);font-family:var(--mono);font-size:14px;color:var(--ink-2)}
.url-demo .i{color:var(--ok)}
.url-demo b{color:var(--ink)}
.showcase{position:relative;margin:48px auto 0;max-width:1100px;display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:20px;align-items:end}
.shot{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--sh-3)}
.shot-bar{display:flex;align-items:center;gap:6px;padding:9px 12px;border-bottom:1px solid var(--line);background:var(--surface-2)}
.shot-bar i{width:8px;height:8px;border-radius:50%;background:#d9dde5}
.shot-bar span{margin-left:8px;font:12px var(--mono);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shot img{width:100%;aspect-ratio:3/2;object-fit:cover;object-position:top}
.shot.side-shot{transform:translateY(-12px)}
.logos{padding:40px 0 16px;text-align:center;color:var(--muted);font-size:13px}
.logos-row{display:flex;justify-content:center;gap:10px 28px;flex-wrap:wrap;margin-top:14px;font-weight:600;color:var(--ink-2)}
.logos-row span{display:inline-flex;align-items:center;gap:8px}
.logos-row .i{color:var(--faint)}
.section{padding:88px 0}
.section.alt{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-head{max-width:640px;margin:0 auto 48px;text-align:center}
.section-head h2{font-size:clamp(26px,3vw,36px);letter-spacing:-.03em;margin-bottom:12px}
.section-head p{color:var(--ink-2);font-size:16px}
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:step}
.step{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:28px;box-shadow:var(--sh-1)}
.step .num{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--navy);color:#fff;font-weight:700;font-size:14px;margin-bottom:16px}
.step p{color:var(--ink-2);margin:0;font-size:14px}
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.feat{background:var(--surface);padding:28px}
.feat .ic{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--pri-50);color:var(--pri);margin-bottom:16px}
.feat p{color:var(--ink-2);margin:0;font-size:14px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.split h2{font-size:clamp(26px,3vw,34px);letter-spacing:-.03em}
.seo-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-3);padding:24px}
.seo-card-head{display:flex;align-items:center;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:8px}
.seo-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line-2);font-size:14px}
.seo-row:last-child{border-bottom:0}
.seo-row .st{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;color:#fff}
.seo-row .st .i{width:12px;height:12px;stroke-width:3}
.seo-row .st.ok{background:var(--ok)} .seo-row .st.w{background:#d97706}
.seo-row span{flex:1}
.seo-row .fixbtn{font-size:12px;font-weight:600;color:var(--pri);background:var(--pri-50);border-radius:6px;padding:4px 8px;display:inline-flex;gap:4px;align-items:center}
.seo-row .fixbtn .i{width:13px;height:13px}
.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1040px;margin:0 auto}
.price{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:28px;display:flex;flex-direction:column;box-shadow:var(--sh-1)}
.price.hot{border-color:var(--pri);box-shadow:0 0 0 1px var(--pri),var(--sh-3);position:relative}
.price.hot::before{content:"Paling populer";position:absolute;top:-12px;left:28px;background:var(--pri);color:#fff;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px}
.price .amt{font-family:var(--display);font-size:34px;font-weight:800;letter-spacing:-.03em;margin:8px 0 2px}
.price .amt small{font-size:14px;color:var(--muted);font-weight:500;letter-spacing:0}
.price .checks{margin:20px 0 24px;flex:1}
.cta-band{background:var(--navy);background-image:radial-gradient(700px 300px at 90% 0%,#1e40af 0,transparent 70%);color:#c7d2fe;border-radius:20px;padding:48px;display:flex;justify-content:space-between;align-items:center;gap:32px}
.cta-band h2{color:#fff;font-size:clamp(24px,3vw,32px);margin-bottom:8px}
.cta-band p{margin:0}
.faq-list{max-width:760px;margin:0 auto}
.faq-list details{border-bottom:1px solid var(--line);padding:18px 4px}
.faq-list summary{font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";color:var(--muted);font-size:20px;line-height:1}
.faq-list details[open] summary::after{content:"–"}
.faq-list p{margin:10px 0 0;color:var(--ink-2)}

/* ------------------------------------------------------------------ templates */
.tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}
.tpl-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s;box-shadow:var(--sh-1)}
.tpl-card:hover{box-shadow:var(--sh-3);transform:translateY(-2px)}
.tpl-thumb{position:relative;display:block;aspect-ratio:16/10;background:var(--line-2);overflow:hidden;border-bottom:1px solid var(--line)}
.tpl-thumb img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .5s}
.tpl-card:hover .tpl-thumb img{transform:scale(1.03)}
.tpl-thumb .hover{position:absolute;inset:0;display:grid;place-items:center;background:rgba(11,18,32,.45);opacity:0;transition:opacity .2s}
.tpl-card:hover .tpl-thumb .hover{opacity:1}
.tpl-meta{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.tpl-meta p{font-size:13.5px;color:var(--ink-2);margin:0;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tpl-top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.tpl-top h3{margin:0;font-size:16px}
.tpl-top h3 a{color:var(--ink)}
.tpl-foot{display:flex;gap:6px 14px;font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.tpl-actions{display:flex;gap:8px;margin-top:8px}
.tpl-actions .btn{flex:1}
.lib-head{padding:48px 0 8px}
.lib-head h1{font-size:clamp(28px,3.4vw,40px);letter-spacing:-.03em}
.lib-bar{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:24px 0 28px}
.search{position:relative;flex:1;max-width:420px}
.search .i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--faint)}
.search input{margin:0;padding-left:38px;min-height:42px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{padding:6px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--ink-2);font-weight:500;font-size:13px}
.chip small{color:var(--faint);margin-left:4px}
.chip:hover{border-color:#cfd5df;color:var(--ink)}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.chip.on small{color:#9aa4b8}
.tpl-detail-head{display:flex;justify-content:space-between;gap:28px;align-items:flex-end;margin:8px 0 24px;flex-wrap:wrap}
.tpl-detail-head .lead{max-width:640px;margin-bottom:8px}
.cta-col{display:flex;gap:8px;flex-wrap:wrap}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.seg{display:inline-flex;background:var(--line-2);border:1px solid var(--line);border-radius:10px;padding:3px;gap:2px}
.seg button{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:6px 12px;border-radius:7px;font:500 13px var(--font);cursor:pointer;color:var(--muted)}
.seg button .i{width:15px;height:15px}
.seg button.on{background:var(--surface);color:var(--ink);box-shadow:var(--sh-1)}
.frame-wrap{background:#eceff4;border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;display:flex;justify-content:center}
.frame-wrap iframe{width:100%;height:78vh;border:0;border-radius:10px;background:var(--surface);transition:width .3s;box-shadow:var(--sh-2)}
.sections-list{margin:0;padding:0;list-style:none;counter-reset:s;columns:2;column-gap:24px}
.sections-list li{counter-increment:s;padding:6px 0;font-size:14px;break-inside:avoid;display:flex;gap:10px}
.sections-list li::before{content:counter(s);display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border-radius:6px;background:var(--line-2);font-size:12px;font-weight:600;color:var(--muted)}

/* ------------------------------------------------------------------ wizard */
.wizard-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:start}
.form-section{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.form-section:last-of-type{border-bottom:0}
.form-section h3{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:14px}
.form-section h3 .n{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;background:var(--navy);color:#fff;font-size:12px}
.addr-box{border:1px solid var(--line);background:var(--surface-2);border-radius:var(--r);padding:12px 14px;margin-bottom:14px}
.addr-row{display:flex;align-items:center;gap:0;margin-top:6px;border:1px solid #d5d9e2;border-radius:var(--r-sm);background:var(--surface);overflow:hidden;box-shadow:var(--sh-1)}
.addr-row span{padding:0 10px;color:var(--muted);background:var(--line-2);align-self:stretch;display:flex;align-items:center;font-size:13px}
.addr-row input{flex:1;min-width:120px;margin:0;border:0;box-shadow:none;border-radius:0;font-family:var(--mono)}
.addr-row input:focus{box-shadow:none}
.ai-box{border:1px solid var(--pri-100);background:linear-gradient(180deg,var(--pri-50),#fff);border-radius:var(--r);padding:16px;margin:4px 0 20px}
.ai-box .switch .i{color:var(--pri)}
.ai-box label.small{margin:12px 0 0}
.ai-box.off{background:var(--surface-2);border-color:var(--line)}
.sticky{position:sticky;top:24px}
.preview-card img{border-radius:10px;border:1px solid var(--line);aspect-ratio:16/10;object-fit:cover;object-position:top;width:100%}
.preview-card h3{margin:16px 0 4px}
.preview-card h4{margin:18px 0 10px;text-transform:uppercase;letter-spacing:.06em;font-size:11.5px;color:var(--muted)}

/* ------------------------------------------------------------------ dashboard */
.site-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px}
.site-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-1);display:flex;flex-direction:column}
.site-thumb{display:block;position:relative;aspect-ratio:16/8;background:var(--line-2);overflow:hidden;border-bottom:1px solid var(--line)}
.site-thumb img{width:100%;height:100%;object-fit:cover}
.site-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.site-body h3{margin:0}
.site-url{display:inline-flex;align-items:center;gap:6px;font:13px var(--mono);color:var(--muted)}
.site-url .i{width:13px;height:13px}
.site-stats{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.site-actions{display:flex;gap:8px;align-items:center;margin-top:auto;padding-top:6px}
.site-actions .btn-primary{flex:1}
.status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--line-2);color:var(--ink-2);border:1px solid var(--line)}
.status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.st-approved,.st-published{background:var(--ok-50);color:var(--ok);border-color:#c6ecd9}
.st-pending{background:var(--warn-50);color:var(--warn);border-color:#f6e2b3}
.st-rejected{background:var(--err-50);color:var(--err);border-color:#f5caca}
.st-draft,.st-retired{color:var(--muted)}
.st-inq-new{background:var(--pri-50);color:var(--pri);border-color:var(--pri-100)}
.st-inq-contacted{background:var(--warn-50);color:var(--warn);border-color:#f6e2b3}
.st-inq-deal,.st-inq-done{background:var(--ok-50);color:var(--ok);border-color:#c6ecd9}
.st-inq-cancelled{color:var(--muted)}
.badge-float{position:absolute;top:12px;left:12px}
.more{position:relative}
.more summary{list-style:none}
.more summary::-webkit-details-marker{display:none}
.danger-zone{position:absolute;right:0;bottom:44px;z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px;width:260px;box-shadow:var(--sh-3)}
.danger-zone input{margin-bottom:8px}
.score{display:inline-grid;place-items:center;min-width:32px;height:22px;padding:0 7px;border-radius:6px;font-weight:700;font-size:12.5px}
.sgood{background:var(--ok-50);color:var(--ok)} .smid{background:var(--warn-50);color:var(--warn)} .slow{background:var(--err-50);color:var(--err)}
.warn-dot{display:inline-flex;align-items:center;gap:6px;color:var(--warn);font-weight:500;font-size:12.5px}
.warn-dot::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}

/* ------------------------------------------------------------------ tables & admin */
.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1)}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th{text-align:left;font-size:12px;font-weight:600;color:var(--muted);padding:11px 16px;border-bottom:1px solid var(--line);background:var(--surface-2);white-space:nowrap}
.table td{padding:12px 16px;border-bottom:1px solid var(--line-2);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table tbody tr:hover td{background:var(--surface-2)}
.table.compact td,.table.compact th{padding:9px 12px}
.table select{margin:0;min-height:32px;padding:4px 8px;width:auto}
.cell-title b{display:block}
.cell-title span{font:12px var(--mono);color:var(--muted)}
.row-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.row-actions form{margin:0}
.inline{margin:0}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;margin-bottom:24px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px 20px;box-shadow:var(--sh-1)}
.stat span{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-weight:500}
.stat span .i{width:16px;height:16px}
.stat b{display:block;font-family:var(--display);font-size:30px;font-weight:800;letter-spacing:-.03em;margin-top:6px}
.stat.hot{border-color:#f6e2b3;background:var(--warn-50)}
.tpl-admin{margin-bottom:16px;padding:0;overflow-x:auto}
.tpl-admin-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid var(--line)}
.tpl-admin-head h3{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 4px}
.tpl-admin-head p{margin:0}
.tpl-admin .table{border:0}
.steps-list{padding-left:18px;margin:0}
.steps-list li{margin-bottom:10px;color:var(--ink-2)}

.feature-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.feature{display:flex;gap:14px;align-items:flex-start;margin:0;padding:12px 14px;border-bottom:1px solid var(--line-2);cursor:pointer;color:var(--ink)}
.feature:last-child{border-bottom:0}
.feature:hover{background:var(--surface-2)}
.feature .switch{margin-top:2px}
.feature b{display:block;font-size:14px;font-weight:600}
.feature small{display:block;color:var(--muted);font-size:12.5px;font-weight:400;margin-top:2px}
.key-card{background:linear-gradient(180deg,#fff,#fafbfc)}
.key-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px dashed var(--line);font-size:14px;flex-wrap:wrap}
.key-row span{color:var(--muted)}
.key-row b,.key-row a{word-break:break-all}
.key-pass{background:var(--warn-50);border:1px solid #f6e2b3;border-radius:6px;padding:2px 8px;font-size:15px}
.plain-list{list-style:none;padding:0;margin:0}
.plain-list li{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line-2)}
.plain-list li>div{flex:1;min-width:0}
.plain-list li b{display:block}
.locked{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px dashed var(--line);border-radius:var(--r);background:var(--surface-2);color:var(--muted);font-size:13px;margin-bottom:12px}
.locked .i{flex:none;margin-top:1px}

/* ------------------------------------------------------------------ analytics */
.mt-sm{margin-top:20px}
.live{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--ink-2);padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.live i{width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 0 rgba(22,163,74,.6);animation:pulse 2s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 8px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}
.seg a{display:inline-flex;align-items:center;padding:6px 12px;border-radius:7px;font:500 13px var(--font);color:var(--muted)}
.seg a.on{background:var(--surface);color:var(--ink);box-shadow:var(--sh-1)}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto}
.tabs a{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;font-weight:600;font-size:14px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs a .i{width:16px;height:16px}
.tabs a.on{color:var(--pri);border-bottom-color:var(--pri)}
.kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px 18px;display:flex;flex-direction:column;gap:2px;box-shadow:var(--sh-1);min-width:0}
.kpi span{font-size:12.5px;color:var(--muted);font-weight:500}
.kpi b{font-family:var(--display);font-size:28px;font-weight:800;letter-spacing:-.03em;color:var(--ink);line-height:1.2;font-variant-numeric:tabular-nums}
.kpi small{font-size:12px}
.delta{font-style:normal;font-size:12px;font-weight:600;margin-top:4px}
.delta small{font-weight:400;color:var(--muted)}
.delta.up{color:var(--ok)} .delta.down{color:var(--err)}
.chart{width:100%;min-height:180px}
.viz-grid{stroke:var(--line);stroke-width:1}
.viz-axis{fill:var(--muted);font:11.5px var(--font)}
.viz-dlabel{fill:var(--ink-2);font:600 12px var(--font)}
.viz-dname{font-weight:500;fill:var(--muted)}
.viz-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.viz-line.s1{stroke:var(--series-1)} .viz-line.s2{stroke:var(--series-2)}
.viz-area.s1{fill:var(--series-1);opacity:.1}
.viz-bar.s3{fill:var(--series-3)}
.viz-dot{stroke:var(--surface);stroke-width:2}
.viz-dot.s1{fill:var(--series-1)} .viz-dot.s2{fill:var(--series-2)}
.viz-cross{stroke:var(--faint);stroke-width:1;stroke-dasharray:3 3}
.viz-tip{position:fixed;z-index:1100;pointer-events:none;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--sh-3);padding:10px 12px;font-size:12.5px;color:var(--ink-2);min-width:160px}
.viz-tip b{display:block;color:var(--ink);margin-bottom:4px}
.viz-tip div{display:flex;align-items:center;gap:8px}
.viz-tip span{margin-left:auto;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.sw{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}
.sw.s1{background:var(--series-1)} .sw.s2{background:var(--series-2)} .sw.s3{background:var(--series-3)}
.legend{display:flex;gap:14px;font-size:13px;color:var(--ink-2)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.insights{list-style:none;margin:0;padding:0}
.insights li{position:relative;padding:9px 0 9px 22px;border-bottom:1px solid var(--line-2);font-size:13.5px;color:var(--ink-2)}
.insights li:last-child{border-bottom:0}
.insights li::before{content:"";position:absolute;left:2px;top:15px;width:8px;height:8px;border-radius:50%;background:var(--pri)}
.heat{display:grid;grid-template-columns:44px repeat(24,1fr);gap:3px;overflow-x:auto;min-width:0}
.heat-h{font-size:10.5px;color:var(--muted);text-align:left;height:16px}
.heat-d{font-size:12px;color:var(--ink-2);display:flex;align-items:center}
.heat-c{aspect-ratio:1.4;min-height:14px;border-radius:4px;background:var(--line-2)}
.ramp{display:flex;align-items:center;gap:3px}
.ramp i{width:18px;height:10px;border-radius:3px}
.ramp span{margin:0 4px}
.bars-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.barlist h3{margin:0;font-size:14.5px}
.barlist .card-head{margin-bottom:10px}
.hbar{padding:6px 0}
.hbar-t{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--ink-2);margin-bottom:5px}
.hbar-t span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbar-t b{color:var(--ink);font-variant-numeric:tabular-nums}
.hbar-track{height:8px;background:var(--line-2);border-radius:4px;overflow:hidden}
.hbar-track i{display:block;height:100%;background:var(--series-1);border-radius:0 4px 4px 0}
.funnel{display:flex;flex-direction:column;gap:10px}
.funnel-row{display:grid;grid-template-columns:220px 1fr 70px;align-items:center;gap:12px;font-size:13.5px}
.funnel-l{color:var(--ink-2)}
.funnel-bar{height:26px;background:var(--line-2);border-radius:7px;overflow:hidden}
.funnel-bar i{display:block;height:100%;background:var(--series-1);border-radius:0 7px 7px 0;min-width:3px}
.funnel-row b{text-align:right;font-variant-numeric:tabular-nums}
.table-view summary{cursor:pointer}
.mini-stats{display:flex;align-items:baseline;gap:14px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font-size:12.5px;color:var(--muted)}
.mini-stats b{color:var(--ink);font-size:14px;margin-right:2px}
.mini-stats small{margin-left:auto}
.transcript{display:flex;flex-direction:column;gap:10px;max-width:760px}
.bubble{max-width:80%;padding:10px 14px;border-radius:14px;font-size:14px;white-space:pre-line}
.bubble small{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-bottom:2px}
.bubble.user{align-self:flex-end;background:var(--pri-50);border:1px solid var(--pri-100)}
.bubble.assistant{align-self:flex-start;background:var(--surface-2);border:1px solid var(--line)}

/* ------------------------------------------------------------------ chat widget */
.chatw{position:fixed;right:20px;bottom:20px;z-index:900;font-family:var(--font)}
.chat-fab{display:flex;align-items:center;gap:10px;padding:8px 18px 8px 8px;border:0;border-radius:999px;background:var(--navy);color:#fff;font:600 14.5px var(--font);cursor:pointer;box-shadow:0 12px 30px -8px rgba(11,31,77,.55);transition:transform .2s}
.chat-fab:hover{transform:translateY(-2px)}
.chat-fab img{border-radius:50%;background:#fff}
.chatw.nudge .chat-fab{animation:nudge 1.2s ease 2}
@keyframes nudge{30%{transform:translateY(-6px)}60%{transform:translateY(0)}}
.chatw.open .chat-fab{display:none}
.chat-panel{position:absolute;right:0;bottom:0;width:min(380px,calc(100vw - 32px));height:min(600px,calc(100vh - 40px));display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 70px -20px rgba(0,0,0,.45);overflow:hidden}
.chat-head{display:flex;align-items:center;gap:10px;padding:14px;background:var(--navy);color:#fff}
.chat-head img{border-radius:10px;background:#fff}
.chat-head div{flex:1;line-height:1.25}
.chat-head b{display:block;font-size:15px}
.chat-head small{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#c7d2fe}
.chat-head small i{width:7px;height:7px;border-radius:50%;background:#4ade80}
.chat-head button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer}
.chat-head button:hover{background:rgba(255,255,255,.18)}
.chat-head .i{width:16px;height:16px}
.chat-body{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:10px;background:var(--bg)}
.cb{max-width:86%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.5}
.cb.assistant{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:4px;color:var(--ink)}
.cb.user{align-self:flex-end;background:var(--pri);color:#fff;border-bottom-right-radius:4px}
.cb-tpl{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.cb-tpl a{font-size:13px;font-weight:600}
.cb-wa{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;padding:9px 12px;border-radius:10px;background:#25D366;color:#fff!important;font-weight:600;font-size:13.5px}
.cb-wa svg{width:18px;height:18px}
.typing{display:flex;gap:4px;padding:12px 14px}
.typing span{width:7px;height:7px;border-radius:50%;background:var(--faint);animation:blink 1.2s infinite}
.typing span:nth-child(2){animation-delay:.2s} .typing span:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
.chat-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px}
.chat-quick:not(:empty){padding:10px 14px 0;background:var(--bg)}
.chat-quick button{border:1px solid var(--pri-100);background:var(--surface);color:var(--pri);border-radius:999px;padding:6px 12px;font:500 13px var(--font);cursor:pointer}
.chat-quick button:hover{background:var(--pri-50)}
.chat-form{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--line);background:var(--surface)}
.chat-form input{margin:0;border-radius:999px}
.chat-form .btn{border-radius:50%;width:42px;padding:0;flex:none}
.chat-head-wa{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px;font-size:12.5px;font-weight:600;color:var(--ok)!important;background:var(--surface);border-top:1px solid var(--line-2)}
.chat-head-wa .i{width:15px;height:15px}

/* ------------------------------------------------------------------ billing & notices */
.notice{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:var(--r-lg);border:1px solid;margin-bottom:16px}
.notice-warning{background:var(--warn-50);border-color:#f6e2b3}
.notice-danger{background:var(--err-50);border-color:#f5caca}
.notice-ic{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;background:var(--surface)}
.notice-warning .notice-ic{color:var(--warn)} .notice-danger .notice-ic{color:var(--err)}
.notice-body{flex:1;min-width:0}
.notice-body b{display:block;font-size:14.5px;color:var(--ink)}
.notice-body p{margin:2px 0 0;font-size:13.5px;color:var(--ink-2)}
.notice .btn{flex:none;align-self:center}
.st-bill-active{background:var(--ok-50);color:var(--ok);border-color:#c6ecd9}
.st-bill-warning{background:var(--warn-50);color:var(--warn);border-color:#f6e2b3}
.st-bill-grace{background:#fff1e6;color:#c2410c;border-color:#fed7aa}
.st-bill-expired,.st-bill-suspended{background:var(--err-50);color:var(--err);border-color:#f5caca}
html[data-theme="dark"] .st-bill-grace{background:#3a1f0e;color:#fb923c;border-color:#7c2d12}
.site-bill{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bill-form{display:flex;flex-direction:column;gap:10px;padding:14px;margin-top:10px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
.bill-form label{margin:0}
.bill-form input{margin-top:4px}
.bill-form>input{margin:0}
.bill-quick{display:flex;gap:6px;flex-wrap:wrap}
.bill-details{margin-top:12px}
.bill-details>summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13.5px;font-weight:600;color:var(--pri);list-style:none;min-height:40px}
.bill-details>summary::-webkit-details-marker{display:none}
.bill-details>summary .i{width:16px;height:16px}
.site-admin-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:16px}
.site-admin{padding:18px}
.site-admin-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.site-admin-tags{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.site-admin-meta{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-size:13px;color:var(--muted)}
.site-admin-meta>span{display:flex;align-items:center;gap:8px}
.site-admin-meta .i{width:15px;height:15px;flex:none}
.site-admin-meta select{margin:0;min-height:32px;padding:4px 8px;width:auto;max-width:100%}
.client-site{padding:14px 0;border-bottom:1px solid var(--line-2)}
.client-site:last-child{border-bottom:0;padding-bottom:0}
.client-site-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.chips-scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.chips-scroll::-webkit-scrollbar{display:none}
.chips-scroll .chip{white-space:nowrap}
.modal-cta{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.ed-notice{display:flex;gap:10px;align-items:center;padding:10px 16px;font-size:13.5px;border-bottom:1px solid}
.ed-notice.warning{background:var(--warn-50);border-color:#f6e2b3;color:var(--ink)}
.ed-notice.danger{background:var(--err-50);border-color:#f5caca;color:var(--ink)}
.ed-notice .i{flex:none;width:18px;height:18px}
.ed-notice.danger .i{color:var(--err)} .ed-notice.warning .i{color:var(--warn)}
.ed-notice span{flex:1;min-width:0}
.ed-notice .btn{flex:none}

/* ------------------------------------------------------------------ validation report */
.report-head{display:flex;gap:18px;align-items:center;margin-bottom:12px}
.report-head h2{margin:0 0 4px}
.report-head p{margin:0}
.ring{--p:0;--ring:var(--ok);flex:none;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--ring) calc(var(--p)*1%),var(--line-2) 0)}
.ring span{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--surface);font-family:var(--display);font-weight:800;font-size:21px}
.issues{list-style:none;padding:0;margin:8px 0}
.issues li{display:flex;gap:10px;align-items:baseline;padding:10px 0;border-top:1px solid var(--line-2);font-size:13.5px}
.issues .lvl{flex:none;font-weight:800}
.issues .error .lvl{color:var(--err)} .issues .warning .lvl{color:#d97706} .issues .pass .lvl{color:var(--ok)}
.issues .area{flex:none;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;background:var(--line-2);color:var(--muted);padding:2px 7px;border-radius:5px}
.standard .md{white-space:pre-wrap;word-wrap:break-word;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:32px;font:13.5px/1.7 var(--mono);color:var(--ink-2);box-shadow:var(--sh-1)}
.doc-page{padding:48px 0 80px}

/* ==========================================================================
   EDITOR
   ========================================================================== */
.no-chrome{overflow:hidden;background:#eef0f4}
.ed{display:flex;flex-direction:column;height:100vh;height:100dvh}
.ed-top{display:flex;align-items:center;gap:10px;height:56px;padding:0 12px;background:var(--surface);border-bottom:1px solid var(--line);flex:none}
.ed-back{display:grid;place-items:center;width:36px;height:36px;border-radius:var(--r-sm);color:var(--ink-2)}
.ed-back:hover{background:var(--line-2);color:var(--ink)}
.ed-sep{width:1px;height:24px;background:var(--line)}
.ed-title{display:flex;flex-direction:column;line-height:1.25;min-width:0;flex:1}
.ed-title b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-title a{display:inline-flex;align-items:center;gap:4px;font:12px var(--mono);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-title a .i{width:12px;height:12px}
.ed-save{display:inline-flex;align-items:center;gap:6px;min-width:96px;justify-content:flex-end;font-size:12.5px;color:var(--muted)}
.ed-save::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ok)}
.ed-save.saving::before{background:#d97706}
.ed-save.err{color:var(--err)} .ed-save.err::before{background:var(--err)}
.ed-main{flex:1;display:grid;grid-template-columns:64px 360px 1fr;min-height:0}
.ed-tabs{display:flex;flex-direction:column;gap:4px;padding:10px 8px;background:var(--surface);border-right:1px solid var(--line)}
.ed-tabs button{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:none;padding:9px 0;border-radius:10px;cursor:pointer;font:500 10.5px var(--font);color:var(--muted)}
.ed-tabs button .i{width:20px;height:20px}
.ed-tabs button:hover{background:var(--line-2);color:var(--ink)}
.ed-tabs button.on{background:var(--pri-50);color:var(--pri)}
.mini-score{position:absolute;top:3px;right:3px;font-size:9.5px;font-weight:700;background:var(--line-2);border-radius:5px;padding:0 4px;color:var(--ink);line-height:15px}
.mini-score.good{background:var(--ok);color:#fff} .mini-score.mid{background:#d97706;color:#fff} .mini-score.low{background:var(--err);color:#fff}
.ed-panel{overflow-y:auto;padding:18px 16px 80px;background:var(--surface);border-right:1px solid var(--line);min-width:0}
.ed-panel h2{font-size:16px;margin:2px 0 4px}
.ed-panel>div>.small.muted:first-of-type{margin-bottom:16px}
.ed-panel h3{font-size:11.5px;margin:22px 0 10px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-family:var(--font);font-weight:600}
.ed-panel label{font-size:12.5px;margin-bottom:12px}
.ed-panel input,.ed-panel textarea,.ed-panel select{font-size:13.5px;padding:7px 10px;min-height:36px;margin-top:5px}
.ed-stage{display:flex;flex-direction:column;min-width:0;min-height:0}
.ed-stagebar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;font-size:12.5px;color:var(--muted)}
.ed-stagebar .hint{display:inline-flex;align-items:center;gap:6px}
.ed-stagebar .hint .i{width:14px;height:14px}
.ed-frame-wrap{flex:1;display:flex;justify-content:center;min-height:0;padding:0 20px 20px}
.ed-frame-wrap iframe{width:100%;height:100%;border:0;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--sh-3);transition:width .3s}
.sec{border:1px solid var(--line);border-radius:var(--r);margin-bottom:8px;background:var(--surface);transition:border-color .2s,box-shadow .2s}
.sec:hover{border-color:#d5d9e2}
.sec.open{border-color:var(--pri-100);box-shadow:0 0 0 3px var(--pri-50)}
.sec.off .sec-head .t{color:var(--faint)}
.sec-head{display:flex;align-items:center;gap:6px;padding:9px 8px 9px 12px;cursor:pointer;user-select:none}
.sec-head .t{flex:1;font-weight:600;font-size:13.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sec-head .t small{display:block;font-weight:400;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis}
.sec-head .ib,.item-head .ib{width:28px;height:28px}
.ib{display:grid;place-items:center;flex:none;border:0;background:none;width:28px;height:28px;border-radius:6px;cursor:pointer;color:var(--muted)}
.ib .i{width:15px;height:15px}
.ib:hover{background:var(--line-2);color:var(--ink)}
.ib:disabled{opacity:.3;cursor:default;background:none}
.ib.rot .i{transform:rotate(90deg)}
.sec-body{padding:12px;border-top:1px solid var(--line-2)}
.fld{position:relative;margin-bottom:14px}
.fld>label{margin:0}
.fld-row{display:flex;gap:6px;align-items:flex-start}
.fld-row>input,.fld-row>textarea{flex:1}
.ai-btn{margin-top:5px;flex:none;display:grid;place-items:center;height:36px;width:36px;border-radius:var(--r-sm);border:1px solid var(--pri-100);background:var(--pri-50);color:var(--pri);cursor:pointer}
.ai-btn .i{width:16px;height:16px}
.ai-btn:hover{background:var(--pri-100)}
.fld.hl input,.fld.hl textarea{border-color:#d97706;box-shadow:0 0 0 3px rgba(217,119,6,.18)}
.counter{font-size:11px;color:var(--faint);text-align:right;margin-top:3px}
.counter.over{color:var(--err);font-weight:600}
.help{font-size:12px;color:var(--muted);font-weight:400;margin-top:4px}
.img-fld{display:flex;gap:10px;align-items:flex-start;margin-top:5px}
.img-thumb{flex:none;width:88px;height:66px;border-radius:var(--r-sm);background:var(--line-2) center/cover no-repeat;border:1px solid var(--line);display:grid;place-items:center;color:var(--faint);cursor:pointer}
.img-thumb:hover{border-color:var(--pri)}
.img-side{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.img-side .btns{display:flex;gap:6px}
.img-side input{margin:0}
.list{border-left:2px solid var(--line);padding-left:10px;margin-top:8px}
.item{border:1px solid var(--line);border-radius:10px;margin-bottom:6px;background:var(--surface-2)}
.item-head{display:flex;align-items:center;gap:2px;padding:4px 4px 4px 10px;cursor:pointer;font-size:13px;font-weight:500}
.item-head .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-body{padding:10px 10px 2px;border-top:1px solid var(--line-2);background:var(--surface);border-radius:0 0 10px 10px}
.add-item{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;border:1px dashed #cfd5df;background:var(--surface);border-radius:var(--r-sm);padding:8px;cursor:pointer;font:500 13px var(--font);color:var(--pri)}
.add-item .i{width:15px;height:15px}
.add-item:hover{border-color:var(--pri);background:var(--pri-50)}
.add-item:disabled{opacity:.5;cursor:default;background:var(--surface);border-color:#cfd5df}
.pop{position:absolute;z-index:30;left:0;right:0;top:100%;margin-top:6px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-3);padding:12px}
.pop-title{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--pri);margin-bottom:8px}
.pop-title .i{width:14px;height:14px}
.pop .row{display:flex;gap:6px}
.pop .row input,.pop .row select{margin:0}
.sugs{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.sug{text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:var(--r-sm);padding:9px 11px;cursor:pointer;font:13.5px/1.45 var(--font);color:var(--ink)}
.sug:hover{border-color:var(--pri);background:var(--pri-50)}
.pop .note{font-size:12px;color:var(--muted);margin-top:8px}
.spin{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-2px}
@keyframes spin{to{transform:rotate(360deg)}}
.seo-head{display:flex;gap:14px;align-items:center;margin:8px 0 16px;padding:14px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
.seo-head .ring{width:64px;height:64px}
.seo-head .ring span{width:52px;height:52px;font-size:18px}
.checklist{list-style:none;padding:0;margin:0}
.checklist li{display:flex;gap:10px;padding:10px 0;border-top:1px solid var(--line-2);font-size:13px}
.checklist .ic{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;color:#fff;margin-top:1px}
.checklist .ic .i{width:12px;height:12px;stroke-width:3}
.checklist .pass .ic{background:var(--ok)} .checklist .warn .ic{background:#d97706} .checklist .fail .ic{background:var(--err)}
.checklist .body{flex:1;min-width:0}
.checklist b{display:block;font-size:13px;font-weight:600}
.checklist p{margin:2px 0 8px;color:var(--ink-2)}
.snippet{border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;margin:0 0 16px;background:var(--surface)}
.snippet .u{font-size:12px;color:#202124;display:flex;gap:8px;align-items:center}
.snippet .u img{width:22px;height:22px;border-radius:50%;border:1px solid var(--line);padding:3px;background:var(--surface)}
.snippet .tt{color:#1a0dab;font-size:17px;line-height:1.3;margin:6px 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.snippet .dd{color:#4d5156;font-size:13px;line-height:1.5}
.color-row{display:grid;grid-template-columns:1fr 52px;gap:8px;align-items:center;margin-bottom:6px}
.color-row label{margin:0}
.color-row input[type=color]{margin:0;height:34px}
.palettes{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin-bottom:6px}
.palettes button{aspect-ratio:1;border-radius:8px;border:1px solid var(--line);cursor:pointer;box-shadow:var(--sh-1)}
.palettes button:hover{transform:scale(1.06)}
.hours-row{display:grid;grid-template-columns:1fr 80px 80px 28px;gap:6px;align-items:center;margin-bottom:6px}
.hours-row select,.hours-row input{margin:0;padding:6px;font-size:13px}
.ai-card{border:1px solid var(--pri-100);background:linear-gradient(180deg,var(--pri-50),#fff 70%);border-radius:var(--r);padding:16px;margin:12px 0}
.ai-card h3{margin:0 0 12px;text-transform:none;letter-spacing:-.01em;font-size:14px;color:var(--ink);font-family:var(--display);font-weight:700;display:flex;align-items:center;gap:8px}
.ai-card h3 .i{color:var(--pri)}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.quick button{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:var(--r);padding:12px;cursor:pointer;font:600 13px var(--font);color:var(--ink)}
.quick button .i{width:18px;height:18px;color:var(--pri)}
.quick button:hover{border-color:var(--pri-100);box-shadow:0 0 0 3px var(--pri-50)}
.quick button small{display:block;font-weight:400;color:var(--muted);font-size:11.5px}
.provider{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2);font-size:13px}
.provider .dot{width:8px;height:8px;border-radius:50%;background:var(--faint);flex:none}
.provider .dot.on{background:var(--ok);box-shadow:0 0 0 3px var(--ok-50)}
.provider small{display:block;color:var(--muted)}
.ed-toast{position:fixed;right:24px;bottom:24px;display:flex;gap:10px;align-items:flex-start;background:var(--ink);color:#fff;padding:12px 16px;border-radius:var(--r);font-weight:500;font-size:13.5px;z-index:100;box-shadow:var(--sh-3);max-width:min(560px,92vw)}
.ed-toast.err{background:#7f1d1d}
.ed-toast a{color:#93c5fd}
.pub-box{border:1px solid var(--line);border-radius:var(--r);padding:12px;margin-bottom:12px;background:var(--surface-2)}
.pub-box .row{display:flex;gap:0;align-items:stretch;border:1px solid #d5d9e2;border-radius:var(--r-sm);overflow:hidden;background:var(--surface);margin-top:6px}
.pub-box .row input{margin:0;border:0;box-shadow:none;border-radius:0;font-family:var(--mono);min-width:0}
.pub-box .row span{display:flex;align-items:center;padding:0 8px;background:var(--line-2);color:var(--muted);font:12px var(--mono);white-space:nowrap}
.pub-box .row button{border:0;border-left:1px solid var(--line);background:var(--surface);padding:0 12px;font:600 12.5px var(--font);color:var(--pri);cursor:pointer}

/* ------------------------------------------------------------------ data tables */
.dt-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.dt-search{position:relative;flex:1 1 260px;max-width:440px;margin:0}
.dt-search .i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--faint);width:17px;height:17px;pointer-events:none}
.dt-search input{margin:0;padding-left:38px}
.dt-filter{width:auto;min-width:170px;margin:0}
.dt-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.dt-foot-l{display:flex;gap:12px;align-items:center;font-size:13px;color:var(--muted);flex-wrap:wrap}
.dt-size{width:auto;margin:0;min-height:34px;padding:4px 10px;font-size:13px}
.dt-pager{display:flex;gap:4px;flex-wrap:wrap}
.dt-pg{display:grid;place-items:center;min-width:36px;height:36px;padding:0 8px;border-radius:9px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font:600 13px var(--font);color:var(--ink-2)}
.dt-pg .i{width:16px;height:16px}
.dt-pg:hover:not(:disabled){border-color:var(--pri);color:var(--pri)}
.dt-pg.on{background:var(--pri);border-color:var(--pri);color:#fff}
.dt-pg:disabled{opacity:.4;cursor:default}
.dt-empty{text-align:center;padding:36px 16px;color:var(--muted);background:var(--surface);border:1px dashed var(--line);border-radius:var(--r-lg);font-size:14px}
.table .actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.table td.actions-cell{text-align:right;white-space:nowrap}

/* ------------------------------------------------------------------ modal dialogs */
dialog.mdl{border:0;padding:0;border-radius:20px;width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 32px);background:var(--surface);color:var(--ink);box-shadow:0 30px 80px -20px rgba(0,0,0,.5);overflow:hidden}
dialog.mdl.lg{width:min(800px,calc(100vw - 24px))}
dialog.mdl[open]{display:flex;flex-direction:column;animation:mdlIn .2s ease}
dialog.mdl::backdrop{background:rgba(11,18,32,.5);backdrop-filter:blur(3px)}
@keyframes mdlIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
dialog.mdl>form,dialog.mdl>.mdl-wrap{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 32px);margin:0}
.mdl-head{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line)}
.mdl-head>div{flex:1;min-width:0}
.mdl-head h2{margin:0;font-size:17px}
.mdl-head small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.mdl-body{padding:20px;overflow-y:auto;flex:1}
.mdl-body>label:last-child{margin-bottom:0}
.mdl-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--line);background:var(--surface-2)}
.mdl-section{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:18px 0 10px;padding-top:16px;border-top:1px solid var(--line-2)}
.mdl-section:first-child{margin-top:0;padding-top:0;border-top:0}
html.mdl-open{overflow:hidden}
.seg-radio{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 14px}
.seg-radio label{margin:0}
.seg-radio input{position:absolute;opacity:0;width:1px;height:1px}
.seg-radio span{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;font:500 13px var(--font);color:var(--ink-2);cursor:pointer;background:var(--surface)}
.seg-radio input:checked+span{background:var(--pri);border-color:var(--pri);color:#fff}
.seg-radio input:focus-visible+span{outline:2px solid var(--pri);outline-offset:2px}
.info-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px 24px}
.info-grid>div span{display:block;font-size:12.5px;color:var(--muted)}
.info-grid>div b{display:block;font-size:14.5px;font-weight:600;margin-top:2px;word-break:break-word}
.chip-list{display:flex;flex-wrap:wrap;gap:6px}
.chip-list .tag{background:var(--pri-50);color:var(--pri);border-color:var(--pri-100)}
.chip-list .tag.off{background:var(--line-2);color:var(--faint);border-color:var(--line);text-decoration:line-through}
.head-actions{display:flex;gap:8px;flex-wrap:wrap}

/* ------------------------------------------------------------------ interaction feedback */
.nav-progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--pri),#38bdf8);z-index:2000;opacity:0;pointer-events:none}
.nav-progress.run{opacity:1;animation:navprog 8s cubic-bezier(.1,.7,.2,1) forwards}
@keyframes navprog{0%{width:0}20%{width:45%}100%{width:92%}}
.btn:active:not(:disabled),.chip:active,.icon-btn:active,.nav-btn:active,.ib:active{transform:scale(.97)}
.btn.is-loading{position:relative;color:transparent!important;pointer-events:none}
.btn.is-loading .i{opacity:0}
.btn.is-loading::after{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;border-radius:50%;border:2px solid #fff;border-right-color:transparent;animation:spin .7s linear infinite}
.btn-ghost.is-loading::after,.btn-subtle.is-loading::after{border-color:var(--pri);border-right-color:transparent}
.m-only{display:none!important}
.grid-2-1>*,.two-col>*,.wizard-grid>*{min-width:0}
.site-admin-list{grid-template-columns:repeat(auto-fill,minmax(min(420px,100%),1fr))}
.tpl-grid{grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}
.site-grid{grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}

/* touch screens: bigger targets everywhere */
@media (pointer:coarse){
  .btn-sm{min-height:40px;padding:8px 14px}
  .chip{min-height:38px;display:inline-flex;align-items:center}
  .ib{width:38px!important;height:38px!important}
  .icon-btn,.nav-btn{width:42px;height:42px}
  .seg button,.seg a{min-height:36px}
  .side-nav a{padding:12px}
  input,select,textarea{font-size:16px}
  .switch span{width:44px;height:26px}
  .switch span::after{width:22px;height:22px}
  .switch input:checked+span::after{left:20px}
  .menu a,.menu button{padding:12px}
  .hbar{padding:8px 0}
}

/* ------------------------------------------------------------------ responsive */
@media (max-width:1280px){
  .kpis{grid-template-columns:repeat(3,1fr)}
  .bars-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1100px){
  .showcase{grid-template-columns:1fr 1.4fr}
  .showcase .shot:last-child{display:none}
  .grid-2-1{grid-template-columns:1fr}
}
@media (max-width:1024px){
  .wizard-grid,.two-col,.split{grid-template-columns:1fr}
  .feat-grid,.steps-grid,.price-grid{grid-template-columns:1fr 1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
  .sticky{position:static}
  .app,[data-side="mini"] .app{grid-template-columns:1fr}
  .side{position:fixed;left:0;top:0;bottom:0;width:272px;transform:translateX(-100%);transition:transform .25s;box-shadow:var(--sh-3)}
  [data-side="mini"] .side-brand-t,[data-side="mini"] .side-nav a span,[data-side="mini"] .side-foot{display:revert}
  [data-side="mini"] .side-nav a{justify-content:flex-start;padding:9px 12px}
  .side-open .side{transform:none}
  .side-open .side-scrim{display:block;position:fixed;inset:0;background:rgba(11,18,32,.45);z-index:55}
  .app-content{padding:24px 20px 56px}
  .navbar{padding:0 14px}
  .hide-sm{display:none!important}
  .ed-main{grid-template-columns:56px 320px 1fr}
  .auth{grid-template-columns:1fr}
  .auth-side{display:none}
  .cta-band{flex-direction:column;align-items:flex-start;padding:36px}
}
@media (max-width:720px){
  dialog.mdl,dialog.mdl.lg{width:100vw;max-width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:20px 20px 0 0}
  dialog.mdl>form,dialog.mdl>.mdl-wrap{max-height:92dvh}
  .mdl-foot{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .mdl-foot .btn{flex:1}
  .dt-search{max-width:none}
  .dt-filter{flex:1 1 140px;min-width:0}
  .dt-foot{justify-content:center}
  .notice{flex-wrap:wrap;padding:14px}
  .notice .btn{width:100%;margin-left:52px;width:calc(100% - 52px)}
  .notice-body p{font-size:13px}
  .page-title{align-items:stretch}
  .page-title .row-actions,.page-title>.btn{width:100%}
  .page-title>.btn{justify-content:center}
  .row-actions .btn{flex:1 1 auto}
  .app-content{padding:18px 14px 48px}
  .card{padding:18px}
  .navbar{gap:8px;height:58px}
  .crumbs span,.crumbs .sep{display:none}
  .nav-user{padding-left:10px}
  .kpi b{font-size:22px}
  .toasts{bottom:16px;right:12px;left:12px;width:auto}
  body:has(.chatw) .toasts{bottom:84px}
  .ed-toast{right:12px;left:12px;max-width:none}
  .modal{padding:20px}
  .modal-actions{flex-direction:column-reverse}
  .modal-actions .btn{width:100%}
  .site-admin-meta select{max-width:220px}
  /* editor: app-like phone layout (Pratinjau <-> Edit) */
  .m-only{display:flex!important}
  .ed{padding-bottom:64px}
  .ed-top{gap:6px;padding:0 8px;height:54px}
  .ed-top>img,.ed-sep,.ed-devices,#ed-preview,.ed-save,.lbl{display:none!important}
  .ed-main{display:flex!important;flex-direction:column}
  .ed-tabs{position:fixed;left:0;right:0;bottom:0;z-index:60;flex-direction:row;justify-content:space-around;height:64px;padding:4px 4px calc(4px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:var(--surface);box-shadow:0 -6px 20px -10px rgba(0,0,0,.15)}
  body:has(.ed-tabs) .toasts,.ed-toast{bottom:calc(76px + env(safe-area-inset-bottom))}
  .ed-tabs button{flex:1;padding:6px 0;border-radius:10px;font-size:11px}
  .ed-tabs button .i{width:22px;height:22px}
  .ed-panel{flex:1;border:0;padding:16px 14px 24px}
  .ed-stage{display:none!important}
  .ed.m-preview .ed-stage{display:flex!important;flex:1;order:0}
  .ed.m-preview .ed-panel{display:none}
  .ed-frame-wrap{padding:0}
  .ed-frame-wrap iframe{border-radius:0;box-shadow:none;width:100%!important}
  .ed-stagebar{display:flex!important;padding:6px 12px;font-size:12px;justify-content:center;background:var(--surface);border-bottom:1px solid var(--line)}
  .ed-notice{padding:8px 12px;font-size:12.5px}
  .ed-notice span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .pop{position:fixed;left:10px;right:10px;top:auto;bottom:74px;max-height:60vh;overflow:auto;z-index:70}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .bars-grid{grid-template-columns:1fr}
  .funnel-row{grid-template-columns:1fr 60px}
  .funnel-bar{grid-column:1/-1;grid-row:2}
  .chatw{right:12px;bottom:12px}
  .chat-fab span{display:none}
  .chat-fab{padding:8px}
  .wrap{padding:0 18px}
  .mainnav{display:none}
  .topbar-in{gap:12px;justify-content:space-between}
  .hero{padding:48px 0 24px}
  .showcase{grid-template-columns:1fr}
  .showcase .shot:first-child{display:none}
  .shot.side-shot{transform:none}
  .feat-grid,.steps-grid,.price-grid,.grid2,.grid3,.foot-grid{grid-template-columns:1fr}
  .section{padding:64px 0}
  .sections-list{columns:1}
  .frame-wrap{padding:6px}
  .tpl-grid,.site-grid{grid-template-columns:1fr}

}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
