/* ================= DUZAPI ================= */
:root {
  --night: #050806;
  --night-2: #0b130e;
  --night-3: #13201a;
  --lime: #9dff3c;
  --green: #18e06d;
  --green-d: #0ba856;
  --grad: linear-gradient(135deg, var(--lime), var(--green));
  --bg: #f2f6f3;
  --card: #ffffff;
  --ink: #0d1712;
  --muted: #66756c;
  --line: #e3ebe6;
  --soft: #eefaf2;
  --ok: #0f9f4f;
  --ok-bg: #e2f8ea;
  --warn: #a86a00;
  --warn-bg: #fff3d6;
  --err: #d23b3b;
  --err-bg: #fde7e7;
  --blue: #2f6bff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 30, 20, .04), 0 8px 24px rgba(10, 30, 20, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.err { color: var(--err); min-height: 1.2em; margin: 0; }
code { background: #eef3f0; padding: 1px 6px; border-radius: 5px; font-size: .9em; }
a { color: inherit; text-decoration: none; cursor: pointer; }

/* ---------- ícones ---------- */
i[data-icon] { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; }
i[data-icon] svg, .icon-btn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic { margin-right: 8px; }
.ic.green { color: var(--green-d); } .ic.blue { color: var(--blue); }

/* ---------- botões ---------- */
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer; white-space: nowrap; transition: transform .08s, filter .15s, background .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.primary { background: var(--grad); color: #052611; box-shadow: 0 6px 18px rgba(24, 224, 109, .28); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.soft { background: var(--soft); color: #0a6b38; border: 1px solid #d3efdd; }
.btn.soft:hover { background: #e2f6e9; }
.btn.danger { background: var(--err-bg); color: var(--err); }
.btn.danger.solid { background: #e5484d; color: #fff; }
.btn.on-dark { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn.on-dark:hover { background: rgba(255,255,255,.22); }
.btn.ghost-dark { background: transparent; color: #cfe; border: 1px solid #2a3b31; }
.btn.small { padding: 9px 14px; font-size: .88rem; border-radius: 10px; }
.btn.wide { width: 100%; }
.link { color: var(--green-d); font-weight: 700; font-size: .9rem; }
.icon-btn { background: none; border: 0; color: inherit; width: 42px; height: 42px; padding: 9px; border-radius: 10px; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.08); }

/* ---------- formulários ---------- */
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7faf8; color: var(--ink); width: 100%; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 224, 109, .18); background: #fff; }
textarea { resize: vertical; }
.form { gap: 16px; }
.row { display: flex; gap: 10px; }
.row > input { flex: 1; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 3px; }

/* interruptor */
.switch-row, .switch-only { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; }
.switch-row input, .switch-only input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.switch { width: 46px; height: 26px; border-radius: 99px; background: #cfd9d3; position: relative; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
input:checked + .switch { background: var(--green); }
input:checked + .switch::after { transform: translateX(20px); }
input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(24, 224, 109, .3); }

/* chips */
.chip { font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: #eef2f0; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.err { background: var(--err-bg); color: var(--err); }
.chip.info { background: #e6eeff; color: var(--blue); }

/* ================= LOGIN ================= */
.auth { min-height: 100vh; min-height: 100dvh; background: var(--night); display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth-glow { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 20%, rgba(24, 224, 109, .22), transparent 45%), radial-gradient(circle at 80% 90%, rgba(157, 255, 60, .10), transparent 40%); pointer-events: none; }
.auth-box { position: relative; width: min(420px, 100%); display: grid; gap: 18px; justify-items: center; }
.auth-logo { width: 210px; mix-blend-mode: lighten; }
.auth-card { width: 100%; background: #fff; border-radius: 24px; padding: 26px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.auth-card h2 { font-size: 1.5rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #eef3f0; border-radius: 14px; padding: 4px; }
.auth-tabs button { font: inherit; font-weight: 700; border: 0; background: none; padding: 10px; border-radius: 11px; color: var(--muted); cursor: pointer; }
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.auth-form { display: grid; gap: 14px; }
.auth-foot { color: #5f7467; font-size: .85rem; margin: 0; }
.big-emoji { font-size: 3rem; }

/* ================= ESTRUTURA ================= */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--night) 272px, var(--bg) 272px); }
.topbar, .scrim { display: none; }
.side { background: var(--night); color: #dfeee5; padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid #0f1a14; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.side-head .close { display: none; color: #cfe; }
.brand, .brand-mini { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: .02em; }
.brand img { width: 46px; mix-blend-mode: lighten; }
.brand b, .brand-mini b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav { display: grid; gap: 3px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: #b9cdc1; font-weight: 600; user-select: none; transition: background .15s, color .15s; }
nav a:hover { background: var(--night-2); color: #fff; }
nav a.active { background: linear-gradient(135deg, rgba(157,255,60,.16), rgba(24,224,109,.16)); color: #fff; box-shadow: inset 0 0 0 1px rgba(24,224,109,.35); }
nav a.active i { color: var(--lime); }
.nav-sep { height: 1px; background: #16241c; margin: 8px 6px; }
.nav-badge { margin-left: auto; background: var(--lime); color: #052611; font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 2px 8px; }
.side-user { margin-top: auto; display: flex; gap: 12px; align-items: center; background: var(--night-2); border: 1px solid #16241c; border-radius: 16px; padding: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #052611; display: grid; place-items: center; font-weight: 800; font-family: var(--display); font-size: 1.1rem; flex-shrink: 0; }
.side-user-txt { display: grid; min-width: 0; }
.side-user-txt b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.side-user-txt span { color: #8fa898; font-size: .8rem; }

main { padding: 26px 30px 40px; min-width: 0; }
main > section { display: grid; gap: 20px; max-width: 1240px; margin: 0 auto; }

.banner { background: radial-gradient(circle at 85% 0%, rgba(157,255,60,.25), transparent 45%), linear-gradient(120deg, #07120c, #0d3b22 60%, #0f6b3a); color: #fff; border-radius: 22px; padding: 26px 30px; box-shadow: 0 14px 30px rgba(8, 60, 30, .18); }
.banner.warm { background: radial-gradient(circle at 85% 0%, rgba(255,210,80,.35), transparent 45%), linear-gradient(120deg, #3a1d00, #a4500b 60%, #d97a0f); box-shadow: 0 14px 30px rgba(140, 70, 10, .18); }
.banner h1 { font-size: 1.75rem; }
.banner p { margin: 6px 0 0; opacity: .85; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-h h3 { display: flex; align-items: center; font-size: 1.08rem; }
.card-b { padding: 18px 20px; display: grid; gap: 12px; align-content: start; flex: 1; }
.card-f { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.card-f:empty { display: none; }
.kv { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: .92rem; }
.kv span { color: var(--muted); }
.tip { margin: 0; background: #f1fbf4; border: 1px solid #cdeed8; color: #1d4d31; border-radius: 16px; padding: 14px 18px; line-height: 1.5; }

/* ----- instância ----- */
.instance { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.instance-head { display: flex; align-items: center; gap: 14px; padding: 18px 24px; background: linear-gradient(120deg, #0c2a19, #0f7a40 70%, #14b35a); color: #fff; }
.instance-head h2 { font-size: 1.3rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inst-num { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-weight: 800; font-family: var(--display); flex-shrink: 0; }
.instance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 22px 24px; }
.instance-grid .card { box-shadow: none; }
.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 24px 24px; }
.feature { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.f-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--green-d); display: grid; place-items: center; flex-shrink: 0; }
.f-txt { display: grid; flex: 1; min-width: 140px; }
.f-txt b { font-family: var(--display); font-size: 1rem; }
.f-txt span { color: var(--muted); font-size: .83rem; }
.sched-edit { width: 100%; display: grid; gap: 12px; padding-top: 6px; border-top: 1px dashed var(--line); }

.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: g; }
.glist li { counter-increment: g; display: flex; align-items: center; gap: 10px; background: #f6f9f7; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: .9rem; min-width: 0; }
.glist li::before { content: counter(g); width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #052611; font-size: .75rem; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.glist li .gname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glist li.more { background: none; justify-content: center; color: var(--muted); font-weight: 500; }
.glist li.more::before, .glist li.empty::before { display: none; }
.glist li.empty { background: none; color: var(--muted); font-weight: 500; justify-content: center; border: 1px dashed var(--line); }
.stores { display: flex; gap: 4px; }

.store-logo { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-weight: 900; font-size: .68rem; flex-shrink: 0; font-family: var(--display); }
.store-logo.ml { background: #ffe600; color: #2d3277; }
.store-logo.amz { background: #131a22; color: #ff9900; font-size: .95rem; }
.store-logo.shp { background: #ee4d2d; color: #fff; font-size: .85rem; }
.store-logo.off { opacity: .25; filter: grayscale(1); }

.qr { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr img, .qr canvas { width: 220px !important; height: 220px !important; }
.wa-empty { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 8px 0; }
.wa-empty .big { width: 64px; height: 64px; border-radius: 18px; background: var(--soft); color: var(--green-d); display: grid; place-items: center; }
.wa-empty .big i { width: 34px; height: 34px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: grid; box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: .88rem; }
.stat b { font-size: 1.9rem; font-family: var(--display); }

/* ----- grupos ----- */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #e5ede8; border-radius: 16px; padding: 5px; max-width: 520px; }
.seg button { font: inherit; font-weight: 700; border: 0; background: none; padding: 12px; border-radius: 12px; color: var(--muted); cursor: pointer; }
.seg button span { font-size: .8rem; opacity: .8; margin-left: 4px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.group { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border .15s, background .15s; user-select: none; }
.group:hover { border-color: #b9e8c9; }
.group.sel { border-color: var(--green); background: #f2fdf6; }
.group.other { opacity: .55; }
.group .gav { width: 40px; height: 40px; border-radius: 12px; background: #eef3f0; display: grid; place-items: center; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.group.sel .gav { background: var(--grad); color: #052611; }
.group .name { flex: 1; min-width: 0; }
.group .name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group .name span { color: var(--muted); font-size: .8rem; }
.check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #cbd7d0; display: grid; place-items: center; flex-shrink: 0; color: transparent; font-weight: 900; font-size: .8rem; }
.group.sel .check { background: var(--green); border-color: var(--green); color: #052611; }
.empty-box { text-align: center; padding: 34px 20px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 16px; grid-column: 1 / -1; }
.sticky-save { position: sticky; bottom: 16px; z-index: 2; max-width: 420px; }

/* ----- credenciais ----- */
.cred-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cred-h { display: flex; gap: 14px; align-items: center; padding: 20px 20px 6px; }
.cred-h .store-logo { width: 50px; height: 50px; border-radius: 14px; font-size: 1.1rem; }
.cred-h .store-logo.amz { font-size: 1.6rem; }
.cred-h .store-logo.shp { font-size: 1.4rem; }
.cred-h p { margin: 2px 0 0; }
.cred-status { padding: 6px 20px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.locked { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 18px 6px; }
.locked .lk { font-size: 2.2rem; }
.locked b { font-family: var(--display); font-size: 1.05rem; }
.masked { background: #f6f9f7; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; }
.masked span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.masked b { font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; }
.subbox { border: 1px dashed #cfe3d6; border-radius: 14px; padding: 12px 14px; background: #fafdfb; display: grid; gap: 10px; }
.subbox summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; list-style: none; }
.subbox summary::-webkit-details-marker { display: none; }
.subbox[open] { gap: 12px; }
.subbox > *:not(summary) { margin-top: 10px; }

/* ----- teste ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.out { white-space: pre-wrap; word-break: break-word; background: #f0fbf4; border: 1px solid #cdeedb; border-radius: 12px; padding: 14px; margin: 0; min-height: 90px; font-family: inherit; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .85rem; }
.links li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; word-break: break-all; display: grid; gap: 3px; }
.links .tag { font-weight: 800; }

/* ----- log ----- */
.log { list-style: none; margin: 0; padding: 4px 20px 14px; display: grid; max-height: 340px; overflow: auto; }
.log.big { max-height: none; }
.log li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; display: flex; gap: 12px; }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; font-size: .82rem; padding-top: 1px; }
.log .ok { color: var(--ok); } .log .warn { color: var(--warn); } .log .error { color: var(--err); }

/* ----- admin ----- */
.users { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ucard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 12px; }
.ucard-top { display: flex; gap: 12px; align-items: center; }
.ucard-top .avatar { width: 40px; height: 40px; font-size: 1rem; }
.ucard-top .who { flex: 1; min-width: 0; display: grid; }
.ucard-top .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucard-top .who span { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umeta { display: flex; gap: 6px; flex-wrap: wrap; }
.ulimits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ulimits input { padding: 8px 10px; }
.uactions { display: flex; gap: 8px; flex-wrap: wrap; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(90px); background: var(--night); color: #fff; padding: 13px 20px; border-radius: 14px; transition: transform .25s, opacity .25s; z-index: 50; max-width: calc(100% - 32px); opacity: 0; visibility: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); border: 1px solid #1c2c22; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

/* ================= TABLET ================= */
@media (max-width: 1180px) {
  .instance-grid, .feature-row { grid-template-columns: 1fr 1fr; }
  .instance-grid > .card:first-child { grid-column: 1 / -1; }
  .feature-row > .feature:first-child { grid-column: 1 / -1; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
}

/* ================= CELULAR ================= */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .topbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid #13201a; }
  .brand-mini { justify-self: center; font-size: 1.25rem; }
  .brand-mini img { width: 34px; mix-blend-mode: lighten; }
  .dot-status { justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: #6b7b72; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
  .dot-status.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(24,224,109,.2); }
  .dot-status.warn { background: #ffb020; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 40; transform: translateX(-102%); transition: transform .25s ease; height: 100dvh; box-shadow: 10px 0 40px rgba(0,0,0,.4); }
  .side.open { transform: none; }
  .side-head .close { display: block; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
  main { padding: 16px 14px 40px; }
  main > section { gap: 16px; }
  .banner { padding: 20px; border-radius: 18px; }
  .banner h1 { font-size: 1.3rem; }
  .banner p { font-size: .9rem; }
  .instance { border-radius: 20px; }
  .instance-head { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .instance-head h2 { font-size: 1.05rem; }
  .instance-head .btn { padding: 8px 12px; font-size: .82rem; }
  .instance-grid, .feature-row { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 14px; }
  .feature-row { padding-top: 0; }
  .instance-grid > .card:first-child, .feature-row > .feature:first-child { grid-column: auto; }
  .card-h, .card-b { padding-left: 16px; padding-right: 16px; }
  .card-f { padding-left: 16px; padding-right: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px 16px; }
  .stat b { font-size: 1.5rem; }
  .cred-grid, .split, .two, .row2, .users, .groups { grid-template-columns: minmax(0, 1fr); }
  .row { flex-direction: column; }
  .seg { max-width: none; }
  .sticky-save { max-width: none; bottom: 12px; }
  .log { padding: 4px 16px 12px; }
  .log li { flex-direction: column; gap: 2px; }
}
