/* Meta Ads Launcher — the website. Tokens first; light and dark are both chosen, not flipped. */
:root {
  color-scheme: light;
  --plane: #f6f6f3; --surface: #ffffff; --surface-2: #f3f2ee; --surface-3: #ebe9e3;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
  --line: #e7e6e1; --line-strong: #d6d4cc;
  --accent: #6250d6; --accent-ink: #ffffff; --accent-soft: #efedfc; --accent-text: #4a3aa7;
  --good: #0ca30c; --good-text: #006300; --good-soft: #e5f5e5;
  --warn: #fab219; --warn-text: #7a5000; --warn-soft: #fff4d6;
  --bad: #d03b3b; --bad-text: #b42318; --bad-soft: #fdeceb;
  --bar: #2a78d6; --bar-track: #cde2fb;
  --shadow: 0 1px 2px rgba(20, 20, 18, .04), 0 6px 20px rgba(20, 20, 18, .045);
  --shadow-lg: 0 12px 48px rgba(20, 20, 18, .12);
  --radius: 16px; --radius-sm: 11px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --plane: #0d0d0d; --surface: #1a1a19; --surface-2: #232321; --surface-3: #2c2c2a;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
    --line: #2c2c2a; --line-strong: #383835;
    --accent: #9085e9; --accent-ink: #0d0d0d; --accent-soft: rgba(144, 133, 233, .15); --accent-text: #b9b1f4;
    --good-text: #3fc73f; --good-soft: rgba(12, 163, 12, .16);
    --warn-text: #fab219; --warn-soft: rgba(250, 178, 25, .14);
    --bad-text: #ef7d7d; --bad-soft: rgba(208, 59, 59, .18);
    --bar: #3987e5; --bar-track: rgba(57, 135, 229, .24);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 48px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #0d0d0d; --surface: #1a1a19; --surface-2: #232321; --surface-3: #2c2c2a;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
  --line: #2c2c2a; --line-strong: #383835;
  --accent: #9085e9; --accent-ink: #0d0d0d; --accent-soft: rgba(144, 133, 233, .15); --accent-text: #b9b1f4;
  --good-text: #3fc73f; --good-soft: rgba(12, 163, 12, .16);
  --warn-text: #fab219; --warn-soft: rgba(250, 178, 25, .14);
  --bad-text: #ef7d7d; --bad-soft: rgba(208, 59, 59, .18);
  --bar: #3987e5; --bar-track: rgba(57, 135, 229, .24);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 48px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plane); color: var(--ink);
       font: 14.5px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 650; margin: 0; }
h3 { font-size: 15px; font-weight: 650; margin: 0 0 8px; }
p { margin: 0 0 10px; }
code, pre, textarea.code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.soft { color: var(--ink-2); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the app frame ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line);
        padding: 18px 14px; display: flex; flex-direction: column; gap: 20px; z-index: 50; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px; color: var(--ink); font-weight: 700; font-size: 16px; }
.brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.logo .ic { width: 19px; height: 19px; }
.side-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 0 12px; margin-bottom: 6px; }
.acct-list { display: grid; gap: 4px; }
.acct { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; }
.acct:hover { background: var(--surface-2); text-decoration: none; }
.acct.on { background: var(--accent-soft); color: var(--accent-text); }
.avatar { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700;
          background: var(--surface-3); color: var(--ink-2); }
.acct.on .avatar { background: var(--accent); color: var(--accent-ink); }
.nav { display: grid; gap: 2px; }
.nav a, .nav button { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-2);
                      font: inherit; font-weight: 550; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.nav a:hover, .nav button:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a.on { background: var(--ink); color: var(--surface); }
.nav .count { margin-left: auto; }
.side-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.pagebar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; padding: 30px 36px 6px; }
.pagebar h1 { font-size: 27px; font-weight: 680; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.crumbs a { color: var(--ink-2); }
.sub { color: var(--ink-2); margin: 6px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.content { padding: 18px 36px 64px; width: 100%; max-width: 1320px; display: grid; gap: 18px; align-content: start; }
.mobilebar, .scrim { display: none; }

/* ---------- cards, notices ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-head p { margin: 2px 0 0; }
.card-body { padding: 16px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); }
.notice .ic { margin-top: 1px; color: var(--accent-text); }
.notice.good { background: var(--good-soft); } .notice.good .ic { color: var(--good-text); }
.notice.warn { background: var(--warn-soft); } .notice.warn .ic { color: var(--warn-text); }
.notice.bad { background: var(--bad-soft); } .notice.bad .ic { color: var(--bad-text); }
.notice p { margin: 0; }
.notice.lockbar { align-items: center; } .notice.lockbar p { flex: 1; } .notice.lockbar form { margin: 0; }

/* ---------- number tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 15px; }
.kpi .label { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.kpi .value { font-size: 23px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; }
.kpi.lead { background: var(--accent); border-color: var(--accent); }
.kpi.lead .label { color: var(--accent-ink); opacity: .82; }
.kpi.lead .value { color: var(--accent-ink); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
.t th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left;
        padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--surface-2); }
.t .num, .t th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t td.name { font-weight: 550; white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.t tr.group td { background: var(--surface-2); font-weight: 650; }
.t tr.group td.name { font-weight: 700; }
.t tr.total td { background: var(--surface-2); font-weight: 700; border-top: 1px solid var(--line-strong); }
.t tr.rest td { color: var(--ink-2); }
.t td.check, .t th.check { width: 44px; padding-right: 0; }
.t .sub-name { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 12.5px; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.mark { display: inline-block; width: 1.1em; color: var(--ink-2); }

/* share of spend: a bar on its own light track (width classes, below) */
.share { display: flex; align-items: center; gap: 10px; justify-content: flex-end; min-width: 150px; }
.bar { position: relative; flex: 1 1 90px; max-width: 120px; height: 8px; border-radius: 4px; background: var(--bar-track); overflow: hidden; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar); border-radius: 0 4px 4px 0; }
.share b { font-weight: 600; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650;
        background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.pill.on, .pill.done { background: var(--good-soft); color: var(--good-text); }
.pill.on::before, .pill.done::before { background: var(--good); }
.pill.failed { background: var(--bad-soft); color: var(--bad-text); }
.pill.failed::before { background: var(--bad); }
.pill.running { background: var(--accent-soft); color: var(--accent-text); }
.pill.running::before { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.pill.plain::before { display: none; }
/* delivery (cli.delivery tones): good · learn · warn · bad; off stays plain grey */
.pill.good { background: var(--good-soft); color: var(--good-text); } .pill.good::before { background: var(--good); }
.pill.learn { background: var(--accent-soft); color: var(--accent-text); } .pill.learn::before { background: var(--accent); }
.pill.warn { background: var(--warn-soft); color: var(--warn-text); } .pill.warn::before { background: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad-text); } .pill.bad::before { background: var(--bad); }
.pill.pending { color: var(--muted); } .pill.pending::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- busy: a page loading or an action running (app.js) ---------- */
body.is-busy { cursor: progress; }
.busybar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; overflow: hidden; pointer-events: none;
           background: var(--accent-soft); opacity: 0; transition: opacity .15s; }
.is-busy .busybar { opacity: 1; }
.busybar::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--accent);
                   border-radius: 0 3px 3px 0; animation: busybar 1.1s ease-in-out infinite; }
@keyframes busybar { to { left: 100%; } }
.busytoast { position: fixed; left: 50%; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 10px;
             width: max-content; max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px;
             background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
             font-size: 14px; line-height: 1.4; opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
             transition: opacity .2s, transform .2s; }
.busytoast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 901px) {  /* next to the 252px menu: centred on the page's content, not the window */
  body:has(> .app) .busytoast { left: calc(50% + 126px); max-width: min(560px, calc(100vw - 252px - 32px)); }
}
.busytime { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.spinner { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-soft);
           border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .busybar::before { animation: none; left: 0; width: 100%; opacity: .5; }
  .spinner, .btn.is-busy::after { animation-duration: 2.4s; }
  .pill.pending::before { animation: none; }
  .busytoast { transition: none; }
}
.note-bad { color: var(--bad-text); } .note-warn { color: var(--warn-text); }

/* ---------- forms and buttons ---------- */
label { font-weight: 550; }
.field { display: grid; gap: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.form { display: grid; gap: 16px; max-width: 640px; }
input, select, textarea, button { font: inherit; color: var(--ink); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 9px 12px; min-height: 42px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
textarea.code { line-height: 1.55; min-height: 420px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
       border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.danger { color: var(--bad-text); border-color: var(--bad-soft); background: var(--bad-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn.is-busy::after { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor;
                      border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); cursor: pointer; font-weight: 550; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.choice:hover { background: var(--surface-2); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 2px; }
.choice .hint { display: block; color: var(--ink-2); font-weight: 400; font-size: 13px; }
.choices { display: grid; gap: 8px; }
.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1 1 240px; }

/* period buttons and split chips */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 13px; background: var(--surface-2); }
.seg label { position: relative; padding: 6px 12px; border-radius: 9px; font-weight: 550; color: var(--ink-2); cursor: pointer; font-size: 13.5px; }
.seg label:hover { color: var(--ink); }
.seg label.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 18, .12); }
.seg input, .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 550; cursor: pointer; font-size: 13.5px; color: var(--ink-2); background: var(--surface); }
.chips label.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.toolbar { display: grid; gap: 14px; }
.toolbar .row { gap: 12px; }

/* ---------- logs (terminal output, as the terminal would print it) ---------- */
.log { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
       font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; overflow: auto; max-height: 68vh; color: var(--ink); }
.t-b { font-weight: 700; }
.t-dim { color: var(--muted); }
.t-red { color: var(--bad-text); }
.t-green { color: var(--good-text); }
.t-yellow { color: var(--warn-text); }
.t-cyan { color: var(--accent-text); }

/* ---------- files ---------- */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.folder { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.folder:hover { border-color: var(--line-strong); text-decoration: none; transform: translateY(-1px); }
.folder .fi { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.folder b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder small { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tile .thumb { display: block; aspect-ratio: 1; background: var(--surface-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .doc { display: grid; place-items: center; height: 100%; color: var(--ink-2); gap: 6px; text-align: center; padding: 10px; }
.tile .doc .ic { width: 30px; height: 30px; color: var(--accent-text); }
.tile .cap { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 12px; color: var(--ink-2); }
.tile .cap span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--bad-soft); color: var(--bad-text); }
.icon-btn .ic { width: 16px; height: 16px; }
.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 26px 18px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-2); }
.drop .ic { width: 30px; height: 30px; color: var(--accent-text); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
progress { width: 100%; height: 8px; accent-color: var(--accent); }

/* ---------- accounts (home) ---------- */
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.account-card .top { display: flex; gap: 14px; align-items: center; }
.account-card .avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 15px; background: var(--accent); color: var(--accent-ink); }
.account-card h2 { font-size: 18px; }
.stat-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; }
.stat-line div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.stat-line b { display: block; font-size: 20px; font-weight: 650; }
.stat-line span { color: var(--ink-2); font-size: 12.5px; }

/* ---------- sign in ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px;
        background: radial-gradient(900px 520px at 12% -8%, var(--accent-soft), transparent 70%),
                    radial-gradient(700px 480px at 100% 110%, var(--accent-soft), transparent 70%), var(--plane); }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 30px; }
.auth-card .brand { padding: 0; margin-bottom: 22px; }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; }
.qr { display: grid; grid-template-columns: 168px 1fr; gap: 14px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 12px; }
.qrbox svg { display: block; width: 168px; height: 168px; background: #fff; border-radius: 10px; }
.key { word-break: break-all; font-weight: 600; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: 284px; height: auto; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  body.menu-open .side { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; }
  .mobilebar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 14px;
               background: var(--surface); border-bottom: 1px solid var(--line); }
  .mobilebar .brand { font-size: 15px; }
  .mobilebar .logo { width: 30px; height: 30px; }
  .pagebar { padding: 18px 16px 2px; }
  .pagebar h1 { font-size: 23px; }
  .content { padding: 12px 16px 48px; gap: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .value { font-size: 21px; }
  .card-head, .card-body, .card-foot { padding-left: 14px; padding-right: 14px; }
  .t th, .t td { padding: 10px 11px; }
  .t td.name { max-width: 210px; }
  .log { white-space: pre-wrap; overflow-wrap: anywhere; }
  .qr { grid-template-columns: 1fr; justify-items: center; }
  .accounts { grid-template-columns: minmax(0, 1fr); }
}

/* bar widths (no inline styles: the page's CSP allows none) */
.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }
.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-36 { width: 36%; }
.w-37 { width: 37%; }
.w-38 { width: 38%; }
.w-39 { width: 39%; }
.w-40 { width: 40%; }
.w-41 { width: 41%; }
.w-42 { width: 42%; }
.w-43 { width: 43%; }
.w-44 { width: 44%; }
.w-45 { width: 45%; }
.w-46 { width: 46%; }
.w-47 { width: 47%; }
.w-48 { width: 48%; }
.w-49 { width: 49%; }
.w-50 { width: 50%; }
.w-51 { width: 51%; }
.w-52 { width: 52%; }
.w-53 { width: 53%; }
.w-54 { width: 54%; }
.w-55 { width: 55%; }
.w-56 { width: 56%; }
.w-57 { width: 57%; }
.w-58 { width: 58%; }
.w-59 { width: 59%; }
.w-60 { width: 60%; }
.w-61 { width: 61%; }
.w-62 { width: 62%; }
.w-63 { width: 63%; }
.w-64 { width: 64%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-67 { width: 67%; }
.w-68 { width: 68%; }
.w-69 { width: 69%; }
.w-70 { width: 70%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-73 { width: 73%; }
.w-74 { width: 74%; }
.w-75 { width: 75%; }
.w-76 { width: 76%; }
.w-77 { width: 77%; }
.w-78 { width: 78%; }
.w-79 { width: 79%; }
.w-80 { width: 80%; }
.w-81 { width: 81%; }
.w-82 { width: 82%; }
.w-83 { width: 83%; }
.w-84 { width: 84%; }
.w-85 { width: 85%; }
.w-86 { width: 86%; }
.w-87 { width: 87%; }
.w-88 { width: 88%; }
.w-89 { width: 89%; }
.w-90 { width: 90%; }
.w-91 { width: 91%; }
.w-92 { width: 92%; }
.w-93 { width: 93%; }
.w-94 { width: 94%; }
.w-95 { width: 95%; }
.w-96 { width: 96%; }
.w-97 { width: 97%; }
.w-98 { width: 98%; }
.w-99 { width: 99%; }
.w-100 { width: 100%; }
