/* ===== Agendouzap — Design System (app + admin) ===== */
:root{
  --green:#12B981;--green-deep:#0B7A57;--wa:#25D366;
  --ink:#0B1721;--ink-2:#33485A;--muted:#6B8295;
  --line:#E4ECEC;--bg:#F4F8F6;--card:#FFFFFF;
  --dark:#06120F;--dark-2:#0C1F19;--sidebar:#08160F;
  --blue:#3B82F6;--amber:#F5A623;--purple:#A855F7;--red:#EF4646;
  --radius:16px;
  --shadow-sm:0 1px 2px rgba(11,23,33,.06),0 3px 10px rgba(11,23,33,.05);
  --shadow:0 10px 28px -10px rgba(11,23,33,.16);
  --grad:linear-gradient(135deg,#25D366 0%,#12B981 55%,#0B7A57 100%);
  --grad-soft:linear-gradient(135deg,rgba(37,211,102,.16),rgba(18,185,129,.05));
  --fh:'Plus Jakarta Sans',system-ui,sans-serif;
  --fb:'Inter',system-ui,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--fb);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;line-height:1.55}
h1,h2,h3,h4,h5{font-family:var(--fh);letter-spacing:-.02em;line-height:1.15}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit}
img{max-width:100%;display:block}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#cdddd5;border-radius:8px;border:2px solid var(--bg)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--fh);font-weight:700;font-size:14px;padding:11px 18px;border-radius:11px;border:1px solid transparent;transition:.2s;white-space:nowrap}
.btn svg{width:17px;height:17px}
.btn-primary{background:var(--grad);color:#fff;box-shadow:0 10px 22px -10px rgba(18,185,129,.55)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 26px -10px rgba(18,185,129,.65)}
.btn-ghost{background:#fff;color:var(--ink);border-color:var(--line)}
.btn-ghost:hover{border-color:#bcd3c9;background:#fbfdfc}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:#1c2c38}
.btn-danger{background:#fff;color:var(--red);border-color:#f3c9c9}
.btn-danger:hover{background:#fef4f4}
.btn-sm{padding:8px 13px;font-size:13px;border-radius:9px}
.btn-lg{padding:14px 24px;font-size:15px;border-radius:13px}
.btn-block{width:100%}
.btn-wa{background:var(--wa);color:#fff}
.btn-wa:hover{filter:brightness(1.05)}

/* ---------- Auth ---------- */
.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}
.auth-side{background:var(--dark);color:#fff;padding:54px;position:relative;overflow:hidden;display:flex;flex-direction:column}
.auth-side .ab{position:absolute;border-radius:50%;filter:blur(80px)}
.auth-side .ab1{width:380px;height:380px;background:rgba(37,211,102,.30);top:-140px;right:-120px}
.auth-side .ab2{width:340px;height:340px;background:rgba(18,185,129,.22);bottom:-160px;left:-100px}
.auth-side .logo,.topbar .logo,.side-logo{display:flex;align-items:center;gap:11px;font-family:var(--fh);font-weight:800;font-size:21px}
.logo-mark{width:38px;height:38px;border-radius:11px;background:var(--grad);display:grid;place-items:center;color:#fff;flex-shrink:0}
.logo-mark svg{width:21px;height:21px}
.auth-side .pitch{margin-top:auto;position:relative}
.auth-side .pitch h2{font-size:34px;font-weight:800;margin-bottom:16px}
.auth-side .pitch p{color:rgba(255,255,255,.66);font-size:16px;max-width:420px}
.auth-side .qbox{margin-top:30px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:20px;max-width:420px}
.auth-side .qbox q{font-size:14.5px;color:rgba(255,255,255,.85)}
.auth-side .qbox .who{display:flex;align-items:center;gap:10px;margin-top:14px}
.auth-side .qbox .ava{width:36px;height:36px;border-radius:50%;background:var(--grad);display:grid;place-items:center;font-weight:800;font-size:13px;font-family:var(--fh)}
.auth-main{display:flex;align-items:center;justify-content:center;padding:40px}
.auth-card{width:min(420px,100%)}
.auth-card h1{font-size:28px;font-weight:800}
.auth-card .sub{color:var(--muted);margin:8px 0 28px;font-size:15px}
.field{margin-bottom:16px}
.field label{display:block;font-family:var(--fh);font-weight:600;font-size:13.5px;margin-bottom:7px}
.field input,.field select,.field textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:11px;font-size:14.5px;background:#fff;transition:.2s;color:var(--ink)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 4px rgba(18,185,129,.12)}
.field .hint{font-size:12.5px;color:var(--muted);margin-top:6px}
.auth-card .row{display:flex;align-items:center;justify-content:space-between;font-size:13.5px;margin:4px 0 22px}
.auth-card .row a{color:var(--green-deep);font-weight:600}
.auth-foot{text-align:center;margin-top:24px;font-size:14px;color:var(--muted)}
.auth-foot a{color:var(--green-deep);font-weight:700}
.divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:13px;margin:22px 0}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}

/* ---------- App layout ---------- */
.shell{display:grid;grid-template-columns:256px 1fr;min-height:100vh}
.sidebar{background:var(--sidebar);color:rgba(255,255,255,.7);padding:22px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.sidebar .side-logo{color:#fff;padding:6px 10px 22px;font-size:20px}
.sidebar .grp{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.34);font-weight:700;margin:18px 12px 8px}
.nav-i{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:11px;font-size:14.5px;font-weight:500;color:rgba(255,255,255,.66);transition:.18s;cursor:pointer;border:0;background:none;width:100%;text-align:left;font-family:var(--fb)}
.nav-i svg{width:19px;height:19px;flex-shrink:0;opacity:.85}
.nav-i:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-i.active{background:var(--grad);color:#fff;box-shadow:0 8px 18px -8px rgba(18,185,129,.6)}
.nav-i.active svg{opacity:1}
.nav-i .badge{margin-left:auto;background:rgba(255,255,255,.16);font-size:11px;padding:2px 8px;border-radius:999px;font-weight:700}
.nav-i.active .badge{background:rgba(255,255,255,.25)}
.side-foot{margin-top:auto;padding-top:16px}
.side-user{display:flex;align-items:center;gap:11px;padding:11px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.side-user .ava{width:36px;height:36px;border-radius:50%;background:var(--grad);display:grid;place-items:center;color:#fff;font-weight:800;font-size:13px;font-family:var(--fh)}
.side-user b{font-family:var(--fh);font-size:13.5px;color:#fff;display:block;line-height:1.2}
.side-user small{font-size:12px;color:rgba(255,255,255,.5)}

.main{display:flex;flex-direction:column;min-width:0}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:16px 28px;background:rgba(244,248,246,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.topbar .pg-title h1{font-size:21px;font-weight:800}
.topbar .pg-title p{font-size:13.5px;color:var(--muted)}
.topbar .tb-actions{display:flex;align-items:center;gap:12px}
.tb-search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:9px 14px;width:280px;color:var(--muted)}
.tb-search svg{width:16px;height:16px}
.tb-search input{border:0;outline:none;font-size:14px;width:100%;background:none;color:var(--ink)}
.tb-icon{width:40px;height:40px;border-radius:11px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--ink-2);position:relative}
.tb-icon svg{width:18px;height:18px}
.tb-icon .dot{position:absolute;top:9px;right:9px;width:8px;height:8px;background:var(--red);border-radius:50%;border:2px solid #fff}
.burger{display:none}
.content{padding:28px;flex:1}
.view{display:none;animation:fade .4s}
.view.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(8px)}}

/* ---------- Cards / grid ---------- */
.grid{display:grid;gap:18px}
.g-4{grid-template-columns:repeat(4,1fr)}
.g-3{grid-template-columns:repeat(3,1fr)}
.g-2{grid-template-columns:repeat(2,1fr)}
.col-2{grid-template-columns:2fr 1fr}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.card.pad0{padding:0;overflow:hidden}
.card-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.card-h h3{font-size:16px;font-weight:800}
.card-h .sub{font-size:13px;color:var(--muted)}
.card-h .link{font-size:13px;color:var(--green-deep);font-weight:700}

.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.stat .top{display:flex;align-items:center;justify-content:space-between}
.stat .ic{width:42px;height:42px;border-radius:12px;background:var(--grad-soft);color:var(--green-deep);display:grid;place-items:center}
.stat .ic svg{width:20px;height:20px}
.stat .ic.blue{background:rgba(59,130,246,.12);color:var(--blue)}
.stat .ic.amber{background:rgba(245,166,35,.14);color:#c97f06}
.stat .ic.purple{background:rgba(168,85,247,.12);color:var(--purple)}
.stat .chg{font-size:12.5px;font-weight:700;padding:3px 9px;border-radius:999px}
.chg.up{color:var(--green-deep);background:rgba(18,185,129,.12)}
.chg.down{color:var(--red);background:rgba(239,70,70,.1)}
.stat .v{font-family:var(--fh);font-weight:800;font-size:30px;margin-top:16px;letter-spacing:-.02em}
.stat .l{font-size:13.5px;color:var(--muted);margin-top:2px}

/* ---------- Badges ---------- */
.badge-s{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;font-family:var(--fh);padding:4px 10px;border-radius:999px}
.bs-green{color:var(--green-deep);background:rgba(18,185,129,.13)}
.bs-blue{color:#1d63d8;background:rgba(59,130,246,.12)}
.bs-amber{color:#b9760a;background:rgba(245,166,35,.16)}
.bs-red{color:var(--red);background:rgba(239,70,70,.1)}
.bs-gray{color:var(--ink-2);background:#eef3f1}
.badge-s .d{width:6px;height:6px;border-radius:50%;background:currentColor}

/* ---------- Table ---------- */
.tbl{width:100%;border-collapse:collapse}
.tbl th{text-align:left;font-family:var(--fh);font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:14px 18px;border-bottom:1px solid var(--line);font-weight:700}
.tbl td{padding:14px 18px;border-bottom:1px solid var(--line);font-size:14px}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr{transition:.15s}
.tbl tbody tr:hover{background:#fafdfb}
.tbl .cell-u{display:flex;align-items:center;gap:11px}
.ava-sm{width:34px;height:34px;border-radius:50%;background:var(--grad);display:grid;place-items:center;color:#fff;font-weight:700;font-size:12.5px;font-family:var(--fh);flex-shrink:0}
.ava-sm.b2{background:linear-gradient(135deg,#60A5FA,#3B82F6)}
.ava-sm.b3{background:linear-gradient(135deg,#C084FC,#A855F7)}
.ava-sm.b4{background:linear-gradient(135deg,#FBBF24,#F5A623)}
.tbl .nm{font-family:var(--fh);font-weight:600}
.tbl .mut{color:var(--muted);font-size:12.5px}
.t-act{display:flex;gap:6px}
.t-act button{width:32px;height:32px;border-radius:8px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--ink-2)}
.t-act button:hover{border-color:#bcd3c9;color:var(--ink)}
.t-act button svg{width:15px;height:15px}

/* ---------- Calendar ---------- */
.cal{display:grid;grid-template-columns:64px repeat(var(--cols,3),1fr);border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.cal .ch{padding:14px 10px;border-bottom:1px solid var(--line);font-family:var(--fh);font-weight:700;font-size:13.5px;text-align:center;background:#fafdfb}
.cal .ch.tz{background:#fafdfb}
.cal .ch small{display:block;color:var(--muted);font-weight:500;font-size:12px}
.cal .tlabel{padding:8px;font-size:11.5px;color:var(--muted);text-align:right;border-bottom:1px dashed var(--line);height:62px}
.cal .slot{border-bottom:1px dashed var(--line);border-left:1px solid var(--line);height:62px;padding:4px;position:relative}
.appt{border-radius:9px;padding:7px 9px;font-size:12px;border-left:3px solid;height:100%;overflow:hidden;cursor:pointer;transition:.15s}
.appt:hover{filter:brightness(.98);transform:scale(1.01)}
.appt b{font-family:var(--fh);font-size:12.5px;display:block}
.appt small{color:var(--ink-2);font-size:11px}
.ap-g{background:rgba(18,185,129,.1);border-color:var(--green)}
.ap-b{background:rgba(59,130,246,.1);border-color:var(--blue)}
.ap-a{background:rgba(245,166,35,.13);border-color:var(--amber)}
.ap-p{background:rgba(168,85,247,.1);border-color:var(--purple)}

/* ---------- Forms ---------- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-grid .full{grid-column:1/-1}
.switch{width:46px;height:26px;background:#d4e0db;border-radius:999px;position:relative;border:0;transition:.2s;flex-shrink:0}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch.on{background:var(--green)}
.switch.on::after{left:23px}
.set-row{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);gap:20px}
.set-row:last-child{border-bottom:0}
.set-row .si b{font-family:var(--fh);font-size:14.5px;display:block}
.set-row .si p{font-size:13px;color:var(--muted);margin-top:2px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:7px 13px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13px;font-weight:600;color:var(--ink-2);cursor:pointer;transition:.15s;font-family:var(--fh)}
.chip.on{background:var(--grad);color:#fff;border-color:transparent}

/* ---------- Steps (onboarding) ---------- */
.ob{min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}
.ob-top{display:flex;align-items:center;justify-content:space-between;padding:20px 40px;border-bottom:1px solid var(--line);background:#fff}
.ob-body{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:46px 20px}
.ob-card{width:min(620px,100%)}
.steps-bar{display:flex;align-items:center;gap:6px;margin-bottom:34px}
.steps-bar .sp{flex:1;height:6px;border-radius:6px;background:var(--line)}
.steps-bar .sp.done{background:var(--grad)}
.ob-card h1{font-size:26px;font-weight:800}
.ob-card .sub{color:var(--muted);margin:8px 0 28px}
.pick{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px}
.pick .opt{border:1.5px solid var(--line);border-radius:14px;padding:18px;cursor:pointer;transition:.18s;display:flex;gap:13px;align-items:flex-start;background:#fff}
.pick .opt:hover{border-color:#bcd3c9}
.pick .opt.sel{border-color:var(--green);background:var(--grad-soft)}
.pick .opt .ic{width:40px;height:40px;border-radius:11px;background:var(--grad-soft);color:var(--green-deep);display:grid;place-items:center;flex-shrink:0}
.pick .opt .ic svg{width:20px;height:20px}
.pick .opt b{font-family:var(--fh);font-size:14.5px}
.pick .opt p{font-size:12.5px;color:var(--muted);margin-top:3px}
.ob-nav{display:flex;justify-content:space-between;margin-top:8px}

/* ---------- WhatsApp connect / chat sim ---------- */
.wa-steps{display:flex;flex-direction:column;gap:14px}
.wa-step{display:flex;gap:15px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:.2s}
.wa-step.done{border-color:rgba(18,185,129,.4);background:var(--grad-soft)}
.wa-step .n{width:34px;height:34px;border-radius:50%;background:#eef3f1;display:grid;place-items:center;font-family:var(--fh);font-weight:800;font-size:14px;color:var(--ink-2);flex-shrink:0}
.wa-step.done .n{background:var(--grad);color:#fff}
.wa-step h4{font-family:var(--fh);font-size:15px;margin-bottom:4px}
.wa-step p{font-size:13px;color:var(--muted)}
.qr{width:190px;height:190px;border-radius:14px;background:#fff;border:1px solid var(--line);padding:12px;display:grid;place-items:center}
.qr svg{width:100%;height:100%}
.phone-sim{width:300px;background:#0a0a0a;border-radius:38px;padding:11px;box-shadow:var(--shadow)}
.phone-sim .scr{background:#E5DDD5;border-radius:28px;overflow:hidden;height:540px;display:flex;flex-direction:column}
.wa-hd{background:#075E54;color:#fff;padding:16px 14px;display:flex;align-items:center;gap:10px}
.wa-hd .ava{width:36px;height:36px;border-radius:50%;background:var(--grad);display:grid;place-items:center;font-weight:800;font-family:var(--fh);font-size:14px}
.wa-hd b{font-size:14px;font-family:var(--fh)}.wa-hd small{font-size:11px;opacity:.8;display:block}
.wa-msgs{flex:1;padding:16px 12px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;background:#E5DDD5}
.bub{max-width:82%;padding:8px 12px;font-size:13px;border-radius:12px;box-shadow:0 1px 1px rgba(0,0,0,.08);animation:fade .3s}
.bub .tm{font-size:9.5px;color:rgba(0,0,0,.4);display:block;text-align:right;margin-top:2px}
.bub.them{background:#fff;align-self:flex-start;border-top-left-radius:3px}
.bub.me{background:#DCF8C6;align-self:flex-end;border-top-right-radius:3px}
.wa-input{background:#F0F0F0;padding:10px;display:flex;gap:8px;align-items:center}
.wa-input .f{flex:1;background:#fff;border-radius:999px;padding:9px 14px;font-size:13px;color:var(--muted)}
.wa-input button{width:38px;height:38px;border-radius:50%;background:var(--wa);border:0;display:grid;place-items:center;color:#fff}
.wa-input button svg{width:18px;height:18px}
.typing-d{align-self:flex-start;background:#fff;padding:10px 14px;border-radius:12px;display:flex;gap:4px}
.typing-d i{width:6px;height:6px;background:#9aa;border-radius:50%;animation:bl 1.2s infinite}
.typing-d i:nth-child(2){animation-delay:.2s}.typing-d i:nth-child(3){animation-delay:.4s}
@keyframes bl{0%,60%,100%{opacity:.3}30%{opacity:1}}

/* ---------- Misc ---------- */
.progress{height:8px;background:#eef3f1;border-radius:999px;overflow:hidden}
.progress i{display:block;height:100%;background:var(--grad);border-radius:999px}
.list-row{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}
.list-row:last-child{border-bottom:0}
.list-row .nm{font-family:var(--fh);font-weight:600;font-size:14px}
.list-row .mut{font-size:12.5px;color:var(--muted)}
.kv{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.kv:last-child{border-bottom:0}
.kv b{font-family:var(--fh)}
.bars{display:flex;align-items:flex-end;gap:10px;height:160px;padding-top:10px}
.bars .bar{flex:1;background:var(--grad);border-radius:7px 7px 0 0;position:relative;min-height:6px;transition:.5s}
.bars .bar span{position:absolute;top:-22px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:700;font-family:var(--fh);color:var(--ink-2)}
.bars .bar small{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);font-size:11px;color:var(--muted)}
.donut{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) 0 73%,#eef3f1 73% 100%)}
.donut .in{width:108px;height:108px;background:#fff;border-radius:50%;display:grid;place-items:center;text-align:center}
.donut .in b{font-family:var(--fh);font-size:24px;font-weight:800}
.donut .in small{font-size:11px;color:var(--muted)}

/* toast */
.toast-wrap{position:fixed;bottom:24px;right:24px;display:flex;flex-direction:column;gap:10px;z-index:200}
.toast{background:var(--ink);color:#fff;padding:13px 18px;border-radius:12px;font-size:14px;font-weight:600;font-family:var(--fh);box-shadow:var(--shadow);display:flex;align-items:center;gap:10px;animation:tin .3s}
.toast .tk{width:22px;height:22px;border-radius:50%;background:var(--green);display:grid;place-items:center;flex-shrink:0}
.toast .tk svg{width:13px;height:13px;color:#fff}
@keyframes tin{from{opacity:0;transform:translateX(40px)}}

/* modal */
.modal-bg{position:fixed;inset:0;background:rgba(8,18,14,.55);backdrop-filter:blur(3px);z-index:150;display:none;align-items:center;justify-content:center;padding:20px}
.modal-bg.open{display:flex}
.modal{background:#fff;border-radius:18px;width:min(480px,100%);box-shadow:var(--shadow);animation:fade .25s;max-height:90vh;overflow:auto}
.modal-h{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line)}
.modal-h h3{font-size:17px;font-weight:800}
.modal-h .x{width:32px;height:32px;border-radius:9px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--ink-2)}
.modal-b{padding:22px}
.modal-f{padding:16px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}

.banner{display:flex;align-items:center;gap:14px;padding:16px 20px;border-radius:14px;background:var(--grad-soft);border:1px solid rgba(18,185,129,.25);margin-bottom:22px}
.banner.warn{background:rgba(245,166,35,.1);border-color:rgba(245,166,35,.3)}
.banner .bi{width:40px;height:40px;border-radius:11px;background:#fff;display:grid;place-items:center;color:var(--green-deep);flex-shrink:0}
.banner.warn .bi{color:#b9760a}
.banner b{font-family:var(--fh);font-size:14.5px}
.banner p{font-size:13px;color:var(--ink-2)}
.banner .btn{margin-left:auto}

.mb18{margin-bottom:18px}.mb24{margin-bottom:24px}.mt18{margin-top:18px}.mt24{margin-top:24px}
.flex{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap-f{flex-wrap:wrap}
.muted{color:var(--muted)}.tac{text-align:center}
.empty{text-align:center;padding:50px 20px;color:var(--muted)}
.empty .ic{width:60px;height:60px;border-radius:16px;background:var(--grad-soft);color:var(--green-deep);display:grid;place-items:center;margin:0 auto 16px}
.empty .ic svg{width:28px;height:28px}
.empty b{font-family:var(--fh);font-size:16px;color:var(--ink);display:block;margin-bottom:6px}

/* responsive */
@media(max-width:1100px){.g-4{grid-template-columns:1fr 1fr}.col-2{grid-template-columns:1fr}}
@media(max-width:900px){
  .auth{grid-template-columns:1fr}.auth-side{display:none}
  .shell{grid-template-columns:1fr}
  .sidebar{position:fixed;left:-280px;width:256px;z-index:100;transition:.3s}
  .sidebar.open{left:0}
  .burger{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#fff;border:1px solid var(--line)}
  .burger svg{width:20px;height:20px}
  .tb-search{display:none}
  .g-3,.g-2,.form-grid{grid-template-columns:1fr}
}
@media(max-width:560px){.g-4{grid-template-columns:1fr}.content{padding:18px}.topbar{padding:14px 18px}}

/* ===== auditoria: a11y + mobile ===== */
:root{--muted:#566E80} /* #6B8295 dava 3,9:1 em fundo branco (abaixo do AA 4,5:1) */
.card.pad0{overflow:auto} /* tabelas rolam na horizontal no celular em vez de vazar */
@media(max-width:900px){.card.pad0 .tbl{min-width:640px}}
.tb-search.keep{display:flex}
.toast.err{background:#B42318}
.toast.err .tk{background:#fff;color:#B42318;font-weight:800}
.btn:focus-visible,.chip:focus-visible,.switch:focus-visible,.nav-i:focus-visible,a:focus-visible,.modal-h .x:focus-visible{outline:3px solid rgba(18,185,129,.55);outline-offset:2px}
.btn[disabled]{opacity:.6;cursor:progress}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ===== Páginas legais (termos, privacidade, LGPD) ===== */
.legal-top{background:var(--dark);color:#fff;padding:18px 0}
.legal-top .in,.legal{width:min(820px,100%);margin:0 auto;padding:0 16px}
.legal-top .in{display:flex;align-items:center;justify-content:space-between;gap:12px}
.legal-top .logo{display:flex;align-items:center;gap:11px;font-family:var(--fh);font-weight:800;font-size:19px;color:#fff;text-decoration:none}
.legal-top nav{display:flex;gap:14px;flex-wrap:wrap;font-size:13.5px}
.legal-top nav a{color:rgba(255,255,255,.75);text-decoration:none}
.legal-top nav a[aria-current]{color:#fff;font-weight:600}
.legal{padding-top:40px;padding-bottom:64px}
.legal h1{font-size:32px;font-weight:800;margin-bottom:6px}
.legal .upd{color:var(--muted);font-size:13.5px;margin-bottom:28px}
.legal h2{font-size:19px;font-weight:700;margin:30px 0 10px}
.legal p,.legal li{font-size:15px;color:var(--ink-2)}
.legal p{margin-bottom:12px}
.legal ul{margin:0 0 12px 20px}
.legal li{margin-bottom:6px}
.legal .ph{background:#FFF4CC;color:#7A5B00;border-radius:4px;padding:0 4px;font-weight:600}
.legal table{width:100%;border-collapse:collapse;margin:8px 0 16px;font-size:14px}
.legal th,.legal td{border:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top}
.legal th{background:var(--bg);font-weight:600}
.legal .tbl{overflow-x:auto}
@media (max-width:600px){.legal h1{font-size:26px}.legal-top nav{display:none}}
