/* Ultimate Tankers — admin / moderator dashboard (V11_SPEC §9).
   Dark military theme after the game's UI theme (client/scripts/ui/ui_theme.gd):
   slate panels with a brushed-metal rim, warm gold accent, Inter. No build step. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("inter_regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("inter_bold.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0b0e13;
  --slate-0: #10141a;
  --slate-1: #1b2026;
  --panel: #13171e;
  --panel-2: #1c212a;
  --panel-3: #262c37;
  --well: #080a0e;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --outline: rgba(0, 0, 0, 0.6);
  --text: #ebf0f7;
  --muted: #9eabbd;
  --dim: #737f91;
  --gold: #f2c14e;
  --gold-light: #ffe08a;
  --gold-dark: #9e6e1f;
  --gold-ink: #1a1205;
  --cyan: #54d1eb;
  --good: #54d978;
  --warn: #ffb833;
  --danger: #ed544a;
  --danger-bg: #4a1613;
  --xp: #8c9eff;
  --red: #e5484d;
  --blue: #4493f8;
  --green: #3fb950;
  --purple: #a371f7;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.5 var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(242, 193, 78, 0.07), transparent 70%),
    radial-gradient(900px 600px at 100% 100%, rgba(68, 147, 248, 0.05), transparent 70%),
    var(--bg);
  display: flex;
  flex-direction: column;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
a { color: var(--gold); }
a:hover { color: var(--gold-light); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.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;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--gold); color: var(--gold-ink);
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---- header -------------------------------------------------------------- */
.top {
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter);
  padding-top: calc(10px + env(safe-area-inset-top));
  background: linear-gradient(180deg, #161b22, #0f1218);
  border-bottom: 1px solid var(--outline);
  box-shadow: inset 0 -1px 0 var(--border), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.logo { width: 40px; height: 40px; border-radius: 8px; box-shadow: 0 0 0 1px var(--border-strong); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 700; letter-spacing: 0.08em; font-size: 15px; white-space: nowrap; }
.brand-sub { color: var(--gold); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }

/* ---- tabs ---------------------------------------------------------------- */
.tabs {
  display: flex; gap: 6px; padding: 10px var(--gutter) 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: 8px 16px;
  background: transparent; border: 0; border-bottom: 3px solid transparent;
  color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px;
  cursor: pointer; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.tab-count {
  display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px;
  border-radius: 11px; background: var(--panel-3); color: var(--text); font-size: 12px; line-height: 22px; text-align: center;
}

/* ---- layout -------------------------------------------------------------- */
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter) 32px; }
.page { animation: fade 160ms ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.foot {
  padding: 14px var(--gutter);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); text-align: center;
}
.foot .sep { margin: 0 8px; }
.foot a, .foot span { white-space: nowrap; }

/* Brushed-metal panel like the game's MetalBox: vertical slate gradient, dark
   outline, light inner line and a bevel highlight along the top. */
.panel { padding: 18px; border-radius: var(--radius); }
.metal {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--slate-1), var(--slate-0));
  border: 1px solid var(--outline);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    var(--shadow);
}
.metal.gold {
  position: relative;
  box-shadow:
    inset 0 0 0 2px rgba(242, 193, 78, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 24px rgba(242, 193, 78, 0.08),
    var(--shadow);
}
/* corner studs of the gold frame */
.metal.gold::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at 11px 11px, var(--gold-light) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 11px) 11px, var(--gold-light) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 11px calc(100% - 11px), var(--gold-light) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), var(--gold-light) 0 2.5px, transparent 3.5px);
}

/* ---- login --------------------------------------------------------------- */
.page-login { display: flex; flex-direction: column; align-items: center; padding-top: 4vh; }
.login-card { width: 100%; max-width: 440px; padding: 26px 24px 22px; }
.login-title { margin: 0 0 6px; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; }
.login-lead { margin: 0 0 18px; font-size: 14px; }
.login-foot { margin-top: 18px; max-width: 440px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field-hint { font-size: 13px; color: var(--dim); }
input[type="text"], input[type="password"], input[type="search"], input[type="number"], textarea, .select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--well); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
input:focus, textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--gold); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { resize: vertical; min-height: 84px; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.code-input {
  font-size: 30px; letter-spacing: 0.42em; text-align: center; font-weight: 700;
  font-variant-numeric: tabular-nums; padding-left: 0.42em; min-height: 62px;
}
.msg { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.msg.err { border-color: rgba(237, 84, 74, 0.6); color: #ff8b83; background: rgba(237, 84, 74, 0.08); }
.msg.ok { border-color: rgba(84, 217, 120, 0.5); color: #8fe8a7; background: rgba(84, 217, 120, 0.07); }
.msg.warn { border-color: rgba(255, 184, 51, 0.5); color: var(--warn); background: rgba(255, 184, 51, 0.07); }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #2b323c, #1a1e25);
  color: var(--text); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: filter 120ms, transform 60ms;
}
.btn:hover { filter: brightness(1.15); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, #ffd976, #e2ad2d);
  color: var(--gold-ink); border-color: #ffe9a8;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { color: var(--gold-ink); }
.btn-danger {
  background: linear-gradient(180deg, #7a2420, #4a1613);
  border-color: var(--danger); color: #ffd9d6;
}
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--border-strong); color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-cyan { border-color: rgba(84, 209, 235, 0.7); color: #c9f3fb; background: linear-gradient(180deg, #1c3a44, #122730); }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-icon::before { content: attr(data-icon); font-weight: 400; }

/* ---- toolbars ------------------------------------------------------------ */
.toolbar { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.toolbar.between { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar p { margin: 0; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input[type="search"] { flex: 1 1 220px; }
.search .select { flex: 0 0 150px; width: auto; }

/* ---- tables -------------------------------------------------------------- */
.results { min-height: 80px; }
.tbl-wrap { border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th {
  text-align: left; padding: 10px 12px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  background: rgba(0, 0, 0, 0.35); border-bottom: 1px solid var(--border-strong);
  position: sticky; top: 0; z-index: 1;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.018); }
.tbl tbody tr:hover td { background: rgba(242, 193, 78, 0.05); }
.tbl tr.is-banned td { background: rgba(237, 84, 74, 0.07); }
.tbl tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .actions .btn { margin-left: 6px; }
.tbl .actions .btn:first-child { margin-left: 0; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl .name { font-weight: 700; }
.tbl .details { max-width: 420px; overflow-wrap: anywhere; color: var(--muted); font-size: 13.5px; }
.group-title {
  margin: 18px 0 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.group-title:first-child { margin-top: 0; }
.group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(242, 193, 78, 0.5), transparent); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.loading { padding: 28px 16px; text-align: center; color: var(--dim); }
.stack { display: flex; flex-direction: column; gap: 3px; }
.stack-line { white-space: nowrap; }

/* ---- badges & chips ------------------------------------------------------ */
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 20px;
  border: 1px solid var(--border-strong); color: var(--muted); background: rgba(255, 255, 255, 0.04); white-space: nowrap;
}
.badge-admin { color: var(--gold-ink); background: var(--gold); border-color: var(--gold-light); }
.badge-moderator, .badge-mod { color: #0a1d22; background: var(--cyan); border-color: #a9eaf6; }
.badge-banned { color: #fff; background: #9b2a24; border-color: var(--danger); }
.badge-online { color: #0b2512; background: var(--good); border-color: #a3f0b8; }
.badge-perm { color: #ffd9d6; background: var(--danger-bg); border-color: var(--danger); }
.badge-map { color: var(--text); background: var(--panel-3); border-color: var(--border-strong); letter-spacing: 0.04em; }
.army { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.army::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
.army-red::before { background: var(--red); }
.army-blue::before { background: var(--blue); }
.army-green::before { background: #f08a24; }   /* 2026-10-16: the "green" army id is the Orange army (C.TEAMS green = #f08a24) */
.army-purple::before { background: var(--purple); }
.tag { color: var(--gold); font-weight: 700; }
.dot-online { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 6px var(--good); margin-right: 6px; vertical-align: 1px; }
.ping-good { color: var(--good); }
.ping-warn { color: var(--warn); }
.ping-bad { color: var(--danger); }
.lv { display: inline-block; min-width: 26px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); font-weight: 700; text-align: center; font-size: 13px; }

/* ---- modal --------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 6, 10, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fade 140ms ease-out;
}
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 0; }
.modal-head { padding: 16px 20px 12px; border-bottom: 1px solid var(--border); }
.modal.danger .modal-head { position: relative; padding-top: 22px; }
.modal.danger .modal-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(135deg, var(--gold) 0 12px, #10141a 12px 24px);
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal-title { margin: 0; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.modal.danger .modal-title { color: #ff9a92; }
.modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-body p { margin: 0; }
.modal-foot { padding: 12px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-foot .btn { flex: 1 1 auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.watch-link { font-size: 16px; }
.target-name { color: var(--gold); font-weight: 700; }

/* ---- toast --------------------------------------------------------------- */
.toast-host {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 460px); pointer-events: none;
}
.toast {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: fade 140ms ease-out;
}
.toast.ok { border-color: var(--good); }
.toast.err { border-color: var(--danger); color: #ffb3ad; }

/* ---- responsive: tables become cards ------------------------------------- */
@media (max-width: 720px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 10px 12px 12px; border-bottom: 1px solid var(--border-strong); }
  .tbl tbody tr:nth-child(even) td { background: transparent; }
  .tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.018); }
  .tbl tbody tr:hover td { background: transparent; }
  .tbl tr.is-banned, .tbl tr.is-banned td { background: rgba(237, 84, 74, 0.07); }
  .tbl tr.is-me { box-shadow: inset 3px 0 0 var(--gold); }
  .tbl tr.is-me td:first-child { box-shadow: none; }
  .tbl td { display: flex; gap: 10px; padding: 4px 0; border: 0; align-items: baseline; }
  .tbl td::before {
    content: attr(data-l); flex: 0 0 96px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-top: 3px;
  }
  .tbl td.name { font-size: 17px; }
  .tbl td.name::before { display: none; }
  .tbl td.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; text-align: left; }
  .tbl td.actions::before { display: none; }
  .tbl td.actions .btn { margin: 0; flex: 1 1 auto; min-height: 42px; }
  .tbl td.num { text-align: left; }
  .tbl .details { max-width: none; }
  .who-name { display: none; }
  .brand-sub { display: none; }
  .modal-foot .btn { width: 100%; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 13px; }
}


/* ---- v1.1 dashboard additions ------------------------------------------- */
.tbl-wrap.panel { padding: 0; }
.result-count { margin: 0 0 8px; }
.gap { gap: 8px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: stretch; border-radius: 7px; overflow: hidden; white-space: nowrap;
  border: 1px solid var(--border-strong); font-size: 12.5px; line-height: 22px;
}
.chip-k { padding: 0 6px; background: var(--panel-3); color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.chip-v { padding: 0 7px; background: rgba(255, 255, 255, 0.06); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 28px; text-align: center; }
.who-exp { white-space: nowrap; }
.group-title.cave { color: #c7b7ff; }
.group-title.cave::after { background: linear-gradient(90deg, rgba(163, 113, 247, 0.5), transparent); }
.group-title.lobby { color: var(--cyan); }
.group-title.lobby::after { background: linear-gradient(90deg, rgba(84, 209, 235, 0.5), transparent); }
.group-title.dimmed { color: var(--muted); }
.group-title.dimmed::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent); }
.group-empty { margin: 0 0 6px; padding-left: 2px; }
.dot-dead, .dot-wait { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-dead { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.dot-wait { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets .btn { min-height: 34px; padding: 4px 10px; font-size: 12px; }
.badge-act { color: var(--text); background: var(--panel-3); text-transform: none; letter-spacing: 0.02em; }
.badge-act.act-danger { color: #ffd9d6; background: var(--danger-bg); border-color: rgba(237, 84, 74, 0.7); }
.badge-act.act-good { color: #0b2512; background: var(--good); border-color: #a3f0b8; }
.badge-act.act-cyan { color: #c9f3fb; background: #12303a; border-color: rgba(84, 209, 235, 0.6); }
.more { display: flex; justify-content: center; margin-top: 14px; }
.search .select { flex: 0 1 170px; }
.tbl td .stack .small { font-weight: 400; }
@media (max-width: 720px) {
  .who-exp { display: none; }
  .search .select { flex: 1 1 140px; }
  .tbl td.name .stack { width: 100%; }
}

.tbl-online, .tbl-lobby { table-layout: fixed; }
.tbl-online th:nth-child(1) { width: 30%; }
.tbl-online th:nth-child(2) { width: 9%; }
.tbl-online th:nth-child(3) { width: 12%; }
.tbl-online th:nth-child(4) { width: 11%; }
.tbl-online th:nth-child(5) { width: 11%; }
.tbl-online th:nth-child(6) { width: 13%; }
.tbl-lobby th:nth-child(1) { width: 30%; }
.tbl-online td.name, .tbl-lobby td.name { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .tbl-online, .tbl-lobby { table-layout: auto; }
  /* phone cards: the player name on top, the other cells in two columns, actions at the bottom */
  .tbl tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .tbl td { flex-direction: column; gap: 1px; padding: 0; min-width: 0; }
  .tbl td::before { flex: none; padding-top: 0; }
  .tbl td.name, .tbl td.actions, .tbl td.details { grid-column: 1 / -1; }
  .tbl td.actions { margin-top: 4px; flex-direction: row; }
  .tbl td.name { margin-bottom: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* players: action buttons in a compact 2-column grid so the table fits on laptops */
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.act-grid .btn { margin: 0 !important; }
.act-grid .btn:nth-child(3) { grid-column: 1 / -1; }
@media (min-width: 721px) {
  .tbl-players td.actions { width: 1%; }
  .tbl-players td.actions .act-grid { min-width: 176px; }
  .tbl-players td:nth-child(6) { min-width: 104px; }
  .tbl-players td:nth-child(7) { max-width: 180px; }
}
@media (max-width: 720px) {
  .tbl-players td.actions { display: block; }
  .act-grid { width: 100%; }
  .act-grid .btn { min-height: 42px; }
}

/* ---- 2026-10-15 (owner): admin-granted medals ---------------------------- */
.medal-icon { display: inline-block; vertical-align: -3px; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55)); }
.medal-row { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; }
/* 2026-10-15 (owner): hours played column + the worn Sword medal (the Light Saber's glow pulses) */
td.hours { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours-v { display: inline-flex; align-items: center; gap: 5px; }
.sword-icon .saber-glow { animation: saber-pulse 1.6s ease-in-out infinite; }
@keyframes saber-pulse { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.42; } }
@media (prefers-reduced-motion: reduce) { .sword-icon .saber-glow { animation: none; } }
.medal-toggles { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.medal-toggles-k { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.medal-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0;
  border-radius: 10px; border: 1px dashed var(--border-strong); background: var(--well); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.medal-btn .medal-icon { opacity: 0.42; filter: grayscale(1); transition: opacity 0.15s, filter 0.15s; }
.medal-btn:hover .medal-icon, .medal-btn:focus-visible .medal-icon { opacity: 0.75; filter: grayscale(0.2); }
.medal-btn.on { border: 1px solid var(--gold); background: rgba(242, 193, 78, 0.12); box-shadow: 0 0 0 1px rgba(242, 193, 78, 0.25) inset, 0 0 10px rgba(242, 193, 78, 0.18); }
.medal-btn.on .medal-icon { opacity: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55)); }
.medal-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.medal-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
@media (max-width: 720px) {
  .medal-btn { width: 44px; height: 44px; }
}

/* ---- CLODBLER ANTI CHEAT ENGINE ------------------------------------------ */
.clod-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 3px 10px 3px 7px; border-radius: 999px;
  border: 1px solid rgba(84, 209, 235, 0.35); background: rgba(84, 209, 235, 0.07);
  color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.clod-chip b { color: var(--text); font-weight: 700; }
.clod-shield { flex: none; }
.clod-foot { color: var(--cyan); letter-spacing: 0.06em; }
.clod-mode { margin-left: 6px; }
.badge-enforce { color: #0a1d22; background: var(--cyan); border-color: #a9eaf6; }
.badge-logonly { color: #2a1d02; background: var(--warn); border-color: #ffd98a; }
.badge-code { font-family: var(--mono); letter-spacing: 0.02em; text-transform: none; }
.badge-code.code-ban { color: #fff; background: #9b2a24; border-color: var(--danger); }
.badge-code.code-would { color: #2a1d02; background: var(--warn); border-color: #ffd98a; }
.clod-player { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--gold-light); text-decoration: underline; }
.tbl-clodbler td.details { word-break: break-word; }
@media (max-width: 720px) {
  .clod-chip { padding: 4px; }
  .clod-chip-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .foot .clod-foot { display: block; margin-top: 6px; white-space: normal; }
  .foot .clod-foot + .sep, .foot .sep:has(+ .clod-foot) { display: none; }
}
@media (max-width: 480px) {
  /* phones: no room next to the name / role / Log out — the footer carries the line */
  .top .clod-chip { display: none; }
}

/* v1.3.2 Discord feed tab */
.discord-form { display: flex; flex-direction: column; gap: 10px; max-width: 640px; padding: 16px; margin: 0 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.discord-form input[type="password"] { width: 100%; }
.discord-form .check { display: flex; align-items: center; gap: 8px; }
.discord-form .row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
/* 2026-10-15 (owner): 5 webhook channel cards, each with its own filters */
.discord-form.discord-multi { max-width: 760px; }
.discord-channels { display: flex; flex-direction: column; gap: 12px; }
.dc-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--well); min-width: 0; }
.dc-card.dc-off { opacity: 0.85; }
.dc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.dc-head h3 { margin: 0; font-size: 14px; }
.dc-state { font-size: 12px; }
.dc-card input[type="text"], .dc-card input[type="password"] { width: 100%; min-width: 0; box-sizing: border-box; }
.dc-filters { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.dc-filters legend { font-size: 12px; color: var(--muted); padding: 0; margin-bottom: 4px; }
.dc-card .check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dc-card .row-btns { margin-top: 2px; }
.dc-err { font-size: 12px; margin: 0; }
@media (max-width: 520px) { .dc-filters { grid-template-columns: 1fr; } }
.err-text { color: #f0666b; }
.ok-text { color: var(--good); }

/* ---- 2026-10-15 (owner): segmented filters (Online: All / Real / AI; Log: All / Real player logins) ---- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; background: var(--well); align-self: flex-start; max-width: 100%; }
.seg-btn {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; border: 0;
  padding: 6px 14px; min-height: 32px; cursor: pointer; white-space: nowrap;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--border); }
.seg-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.seg-btn[aria-checked="true"] { color: var(--gold-ink); background: var(--gold); }
.seg-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.badge-ai { color: #e8e2ff; background: #2a2350; border-color: rgba(140, 158, 255, 0.7); margin-left: 6px; font-size: 10px; line-height: 16px; padding: 0 6px; }
.badge-act.act-login { color: #0b2512; background: var(--good); border-color: #a3f0b8; }

/* ---- 2026-10-16 (owner): Equip player (admin only) ----------------------- */
.toast.warn { border-color: var(--warn); color: #ffd98a; }
.btn-equip { border-color: rgba(242, 193, 78, 0.7); color: var(--gold); background: linear-gradient(180deg, #2c2512, #1d180b); }
.btn-equip:hover { color: var(--gold-light); }
.act-grid .btn-equip { grid-column: 1 / -1; }
.equip-panel { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.equip-panel[hidden] { display: none; }
.equip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.equip-title { margin: 0; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.equip-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.equip-map-field { flex: 1 1 320px; min-width: 0; }
.equip-btn { min-width: 140px; letter-spacing: 0.12em; text-transform: uppercase; }
.equip-result { display: flex; flex-direction: column; gap: 10px; }
.equip-result:empty { display: none; }
.equip-res { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.equip-res p { margin: 0; overflow-wrap: anywhere; }
.equip-res-t { margin: 0; font-size: 15px; }
.equip-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; max-height: 40vh; overflow: auto; }
.equip-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 12px 14px; text-align: left; white-space: normal; }
.equip-choice-t { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.equip-choice-d { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: 0.9; }
.modal.modal-wide { max-width: 760px; }
.rare-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rare-filters input[type="search"] { flex: 1 1 200px; width: auto; min-width: 0; }
.rare-filters .select { flex: 0 1 170px; width: auto; }
.rare-filters .check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.rare-list { display: flex; flex-direction: column; gap: 4px; max-height: 46vh; overflow: auto; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--well); }
.rare-row { display: grid; grid-template-columns: auto 1fr 84px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; border: 1px solid transparent; }
.rare-row[hidden] { display: none; }
.rare-row.on { border-color: rgba(242, 193, 78, 0.5); background: rgba(242, 193, 78, 0.07); }
.rare-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }
.rare-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; cursor: pointer; overflow-wrap: anywhere; }
.rare-name { font-weight: 700; }
.rare-row .rare-qty { min-height: 38px; padding: 6px 8px; text-align: right; }
.rare-summary { margin: 0; }
@media (max-width: 520px) {
  .rare-row { grid-template-columns: auto 1fr 70px; gap: 8px; }
  .equip-btn { flex: 1 1 auto; }
}

/* 2026-10-16 (owner): Guild Deed tools */
.row-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.row-pick .name { min-width: 0; overflow-wrap: anywhere; }
tr.is-warn td { background: rgba(255, 170, 60, 0.08); }

/* 2026-10-20 (owner): Server Options tab */
.so-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.so-banner-text { flex: 1 1 320px; min-width: 0; }
.so-banner-text ul { margin: 4px 0 0; padding-left: 20px; }
.so-grid { display: flex; flex-direction: column; gap: 16px; }
.so-box { margin: 0; max-width: 900px; min-width: 0; }
.so-title { margin: 0 0 2px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.so-lead { margin: 0; }
.so-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.so-fieldset legend { padding: 0; margin-bottom: 4px; }
.so-box .field input[type="number"] { max-width: 220px; }
.so-src { margin: 0; color: var(--muted); }
.so-src.so-pending { color: var(--warn); }
.so-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; letter-spacing: 0.08em; vertical-align: 1px; border: 1px solid var(--border-strong); }
.so-tag-restart { color: var(--warn); border-color: rgba(255, 184, 51, 0.55); background: rgba(255, 184, 51, 0.08); }
.so-tag-live { color: var(--good); border-color: rgba(84, 217, 120, 0.5); background: rgba(84, 217, 120, 0.07); }
/* 2026-10-31 (owner): Weather tab "Test controls" block of each map card */
.wx-test { margin-top: 10px; padding: 10px 12px 2px; border: 1px dashed var(--border-strong); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.wx-test .so-sub { margin: 0 0 4px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wx-test .so-row-ctl input[type="number"] { width: 64px; }
.wx-test .so-row-ctl .select { min-width: 110px; }
.so-table .tbl { font-size: 13.5px; }
.so-table .tbl td { padding: 8px 10px; }
.so-table .tbl-wrap { margin: 0; }
.so-rows { display: flex; flex-direction: column; gap: 0; }
.so-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); }
.so-rows .so-row:first-child { border-top: 0; padding-top: 4px; }
.so-row-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 340px; min-width: 0; }
.so-row-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.so-row-ctl input[type="number"] { width: 90px; }
.so-row-ctl .select { width: auto; min-width: 140px; }
.so-row-ctl .check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.so-result { margin: 0; color: var(--good); overflow-wrap: anywhere; }
.so-result.err-text { color: #f0666b; }
.so-state { color: var(--warn); font-weight: 700; }
.so-danger { border-color: rgba(237, 84, 74, 0.55); background: linear-gradient(180deg, rgba(74, 22, 19, 0.35), var(--panel) 60%); }
.so-danger .so-title { color: #ff9a92; }
.so-danger .so-row { border-top-color: rgba(237, 84, 74, 0.25); }
.so-confirm-input { width: 100%; font-family: var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
@media (max-width: 720px) {
  .so-row-ctl { justify-content: flex-start; width: 100%; }
  .so-row-ctl .btn { flex: 1 1 auto; }
  .so-box .field input[type="number"] { max-width: none; }
}

/* ---- 2026-10-20 (owner: "see the clipping for the buttons and options on the players tab") ----------------------
   The tab bar wraps onto a second line instead of scrolling off the right edge (Server Options was hidden), and the
   players' action buttons sit in a fixed-width 2-column grid whose labels may wrap, so the table never pushes them
   past the panel edge on a laptop-width window. */
.tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 4px; }
@media (min-width: 721px) {
  .tbl-players td.actions { width: 272px; min-width: 272px; white-space: normal; }
  .tbl-players td.actions .act-grid { min-width: 0; width: 272px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl-players td.actions .act-grid .btn { white-space: normal; line-height: 1.15; padding: 7px 6px; font-size: 11.5px; letter-spacing: 0.04em; min-height: 36px; }
  .tbl-players td:nth-child(1) { min-width: 150px; overflow-wrap: anywhere; }
  .tbl-players th, .tbl-players td { padding-left: 10px; padding-right: 10px; }
  .tbl-players td.actions .medal-toggles, .tbl-players td.actions > div:last-child { max-width: 272px; flex-wrap: wrap; }
}
@media (min-width: 721px) and (max-width: 1200px) {
  /* 2026-10-20: narrower windows drop Hours played (col 4) and Banned (col 8) so the actions never clip */
  .tbl-players th:nth-child(4), .tbl-players td:nth-child(4), .tbl-players th:nth-child(8), .tbl-players td:nth-child(8) { display: none; }
}
@media (min-width: 721px) { .tbl-players { min-width: 940px; } }

/* 2026-10-20 (owner): Server Options as its own page: header, sub-tabs, settings groups */
.so-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.so-page-title { font-size: 22px; margin: 0 0 4px; }
.so-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 6px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.so-subtab { appearance: none; border: 1px solid transparent; background: transparent; color: inherit; font: inherit; font-weight: 600;
  font-size: 14px; padding: 8px 14px; border-radius: 8px; cursor: pointer; opacity: 0.75; white-space: nowrap; }
.so-subtab:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }
.so-subtab:focus-visible { outline: 2px solid #4aa3ff; outline-offset: 2px; }
.so-subtab.active, .so-subtab[aria-selected="true"] { opacity: 1; background: rgba(74, 163, 255, 0.18); border-color: rgba(74, 163, 255, 0.55); }
.so-subtab-danger.active, .so-subtab-danger[aria-selected="true"] { background: rgba(255, 80, 70, 0.16); border-color: rgba(255, 80, 70, 0.55); }
.so-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.so-list { margin: 0 0 12px; padding-left: 18px; }
.so-list li { margin: 3px 0; }
.tune-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; margin: 12px 0; }
.tune-group { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 10px 12px 8px; min-width: 0; }
.tune-group-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tune-group-head .btn { margin-left: auto; }
.tune-title { font-size: 15px; margin: 0; }
.tune-note { margin: 4px 0 8px; }
.tune-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 104px auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; }
.tune-label { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.tune-unit { display: inline-block; margin-left: 6px; font-size: 11px; opacity: 0.6; }
.tune-row input[type="number"] { width: 100%; min-width: 0; box-sizing: border-box; }
.tune-def { white-space: nowrap; text-align: right; }
.tune-changed { background: rgba(255, 196, 64, 0.10); }
.tune-dirty { background: rgba(74, 163, 255, 0.18); }
.tune-row input[aria-invalid="true"] { outline: 2px solid #ff5a4f; }
.tune-msg { margin-left: 8px; }
/* 2026-11-01 (owner): OPTIMIZATIONS -- a one-line explanation under a row, the clients' live numbers table */
.tune-help { grid-column: 1 / -1; margin: -3px 0 2px; font-size: 12px; line-height: 1.35; }
.cperf-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.cperf-tbl th, .cperf-tbl td { padding: 6px 8px; text-align: right; border-top: 1px solid var(--border); white-space: nowrap; }
.cperf-tbl th:first-child, .cperf-tbl td:first-child { text-align: left; }
.cperf-tbl thead th { border-top: 0; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.cperf-bad { color: var(--warn); }
.cperf-good { color: var(--good); }
.cperf-wrap { overflow-x: auto; }
.discord-form.so-wide { max-width: none; }
@media (max-width: 760px) {
  .so-head { flex-direction: column; }
  .so-subtabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tune-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .tune-def { text-align: left; }
}
#sub-super .discord-form, #sub-haven .discord-form { max-width: none; }

/* 2026-10-20 (owner): give / revoke any award */
.awards-admin-h { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.awards-admin-list { display: flex; flex-direction: column; gap: 4px; }
.awards-admin-row { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; }
.awards-admin-row.has { border-color: rgba(120, 220, 140, 0.45); }
.awards-admin-ico { display: inline-flex; width: 24px; height: 24px; }
.awards-admin-name { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .awards-admin-row { grid-template-columns: 28px 1fr auto; } .awards-admin-row > span:nth-child(3) { display: none; } }
.awards-admin-bulk { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* 2026-10-25 (owner): flashing red light bulb for new bans */
.ban-bulb { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid #ff3b3b; border-radius: 999px;
  background: rgba(255, 40, 40, 0.15); color: #ff3b3b; font-weight: 700; cursor: pointer; animation: ban-flash 0.9s ease-in-out infinite; }
.ban-bulb[hidden] { display: none; }
.ban-bulb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ban-bulb-n { font-size: 13px; min-width: 1ch; }
@keyframes ban-flash { 0%, 100% { filter: drop-shadow(0 0 2px #ff3b3b); opacity: 1; } 50% { filter: drop-shadow(0 0 10px #ff0000); opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .ban-bulb { animation: none; } }

/* 2026-10-31 (owner): DELETE PLAYER on the Players tab toolbar */
#btn-delete-player { align-self: flex-start; font-weight: 800; letter-spacing: 0.04em; }

/* 2026-10-31 (owner): ACCOUNTS tab -- one chip per character (map · name · level · class) and the modal check boxes */
.tbl-accounts .chip-v { text-align: left; white-space: nowrap; }
.tbl-accounts td:nth-child(2) .stack { gap: 4px; }
.modal .check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.modal .check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }

/* ---- 2026-11-09 (owner: "On the accounts dashboard see the buttons on the right skewed?") ---- */
@media (min-width: 721px) {
  .tbl-accounts { table-layout: fixed; width: 100%; font-size: 13px; }
  .tbl-accounts th, .tbl-accounts td { padding-left: 8px; padding-right: 8px; overflow-wrap: anywhere; word-break: normal; }
  .tbl-accounts th:nth-child(1), .tbl-accounts td:nth-child(1) { width: 14%; }
  .tbl-accounts th:nth-child(2), .tbl-accounts td:nth-child(2) { width: 17%; }
  .tbl-accounts th:nth-child(3), .tbl-accounts td:nth-child(3) { width: 7%; }
  .tbl-accounts th:nth-child(4), .tbl-accounts td:nth-child(4) { width: 7%; }
  .tbl-accounts th:nth-child(5), .tbl-accounts td:nth-child(5) { width: 8%; }
  .tbl-accounts th:nth-child(6), .tbl-accounts td:nth-child(6) { width: 8%; }
  .tbl-accounts th:nth-child(7), .tbl-accounts td:nth-child(7) { width: 5%; }
  .tbl-accounts th:nth-child(8), .tbl-accounts td:nth-child(8) { width: 8%; }
  .tbl-accounts th:nth-child(9), .tbl-accounts td:nth-child(9) { width: 6%; }
  .tbl-accounts th.actions, .tbl-accounts td.actions { width: 20%; min-width: 0; }
  .tbl-accounts td.actions .act-grid { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl-accounts td.actions .act-grid .btn:nth-child(3) { grid-column: auto; }
  .tbl-accounts td.actions .act-grid .btn { white-space: normal; line-height: 1.15; padding: 7px 6px; font-size: 11px; min-height: 34px; }
  .tbl-accounts .chip { white-space: normal; max-width: 100%; }
  .tbl-wrap { scrollbar-width: thin; }
}
