/* ==========================================================================
   Edelkluft Dashboard
   Dunkel, ruhig, ein Akzent: Gold.
   ========================================================================== */

:root {
  --bg: #0e0f11;
  --surface: #16171a;
  --surface-2: #1d1e22;
  --border: #26282d;
  --border-strong: #34363c;
  --text: #ecebe7;
  --muted: #8f8d88;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --green: #7ed957;
  --red: #e53935;
  --orange: #f0a030;
  --blue: #3ba9f5;
  --radius: 10px;
  --font: ui-sans-serif, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad { padding: 18px 20px; margin: 0; }
.error-text { color: var(--red); margin: 0 20px 10px; }

/* ---------------------------------------------------------------- Layout */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.shell > * { min-width: 0; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  overflow-y: auto;
}
.logo { display: flex; align-items: center; gap: 12px; padding: 0 6px 22px; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gold); color: #141414;
  font: 700 19px/1 Georgia, "Times New Roman", serif;
}
.logo-mark.large { width: 52px; height: 52px; font-size: 28px; border-radius: 13px; }
.logo-text { font-weight: 600; font-size: 15px; line-height: 1.15; }
.logo-text small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

.nav-label {
  margin: 22px 8px 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.nav-link, .nav-bot {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 7px;
  color: #c9c7c2;
}
.nav-link svg { width: 16px; height: 16px; fill: currentColor; opacity: 0.8; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--gold-soft); color: var(--gold); }
.nav-empty { padding: 4px 8px; color: var(--muted); font-size: 13px; }
.nav-icon { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; object-fit: cover; }
.letter {
  display: inline-grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.letter.big { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; }
.logout { margin-top: auto; padding: 8px; color: var(--muted); font-size: 13px; }
.logout:hover { color: var(--text); }

.content { padding: 32px 40px 60px; max-width: 1240px; width: 100%; }

.page-head { margin-bottom: 26px; }
.page-head.simple h1 { font-size: 26px; }
.page-head.simple p { margin: 4px 0 0; }
.guild-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.guild-title img { width: 48px; height: 48px; border-radius: 12px; }
.guild-title h1 { font-size: 24px; }
.guild-title p { margin: 2px 0 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; }
.tabs a {
  padding: 10px 14px; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--gold); }

.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin: 30px 0 12px;
}
.section-title .count {
  background: var(--surface-2); color: var(--text);
  border-radius: 99px; padding: 0 8px; font-size: 12px; letter-spacing: 0;
}

.two-col > section > .section-title:first-child,
.stack > div > .section-title:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.two-col.wide-left { grid-template-columns: 2fr 1fr; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------------------------------------------------------------- Karten */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card.flush, .card.list { padding: 0; overflow: hidden; }
.card-head { margin-bottom: 16px; }
.card-head h2 { font-size: 16px; }
.card-head p { margin: 4px 0 0; }
.card.empty { text-align: center; padding: 40px 20px; }
.card.empty h3 { margin-bottom: 6px; }
.card.empty .btn { margin-top: 16px; }

.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
}
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }

.bot-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bot-head h3 { font-size: 16px; margin-bottom: 4px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.kv div { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.kv dt { color: var(--muted); font-size: 12px; }
.kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bot-card p { margin: 0; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.18); }
.dot.off { background: #5b5a57; }

.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }
a.list-row:hover { background: var(--surface-2); }
.chev { color: var(--muted); font-size: 18px; }
.rank { width: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }

.bar-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 12px; padding: 10px 18px; }
.bar-row code { background: none; padding: 0; color: var(--text); }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 2px 9px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted);
  white-space: nowrap;
}
.badge.status.on { color: var(--green); background: rgba(126, 217, 87, 0.1); }
.badge.ok { color: var(--green); background: rgba(126, 217, 87, 0.1); }
.badge.warn { color: var(--orange); background: rgba(240, 160, 48, 0.12); }
.badge.danger { color: #ff6b67; background: rgba(229, 57, 53, 0.13); }

/* ---------------------------------------------------------------- Tabellen */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--muted);
  padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
td.reason { max-width: 360px; }
td form { margin: 0; }

/* ---------------------------------------------------------------- Formulare */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
label { font-size: 13px; font-weight: 500; }
input[type=text], input[type=password], input[type=url], input[type=time], input:not([type]), select, textarea {
  width: 100%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 9px 11px; font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}

.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle small { display: block; font-weight: 400; }
.switch {
  position: relative; flex-shrink: 0; margin-top: 2px;
  width: 36px; height: 20px; border-radius: 99px;
  background: var(--border-strong); transition: background 0.15s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: transform 0.15s;
}
.toggle input:checked + .switch { background: var(--gold); }
.toggle input:checked + .switch::after { transform: translateX(16px); }
.toggle input:focus-visible + .switch { box-shadow: 0 0 0 3px var(--gold-soft); }

.color-field { display: flex; align-items: center; gap: 10px; }
input[type=color] {
  width: 42px; height: 38px; padding: 3px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border-strong); cursor: pointer;
}
.swatches { display: flex; gap: 6px; }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--surface); cursor: pointer; padding: 0; }
.swatch:hover { outline: 2px solid var(--border-strong); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600;
  padding: 9px 18px; border-radius: 8px; cursor: pointer;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--gold); color: #17140a; border-color: var(--gold); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: #ff6b67; background: rgba(229, 57, 53, 0.1); }
.btn.small { padding: 4px 10px; font-size: 12px; font-weight: 500; }
.btn.full { width: 100%; }

.save-bar {
  position: sticky; bottom: 16px;
  display: flex; justify-content: flex-end;
  padding: 12px 16px; border-radius: var(--radius);
  background: rgba(22, 23, 26, 0.9); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}

.flash {
  padding: 11px 16px; border-radius: 8px; margin-bottom: 18px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
}
.flash.success { border-color: rgba(126, 217, 87, 0.35); background: rgba(126, 217, 87, 0.08); }
.flash.error { border-color: rgba(229, 57, 53, 0.4); background: rgba(229, 57, 53, 0.09); }

/* ---------------------------------------------------------------- Logs */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  padding: 6px 14px; border-radius: 99px;
  border: 1px solid var(--border-strong); color: var(--muted); font-weight: 500;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

.log-entry {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
}
.log-entry:last-child { border-bottom: none; }
.log-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
.log-body h4 { font-size: 14px; margin-bottom: 4px; }
.log-body pre {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font: 13px/1.5 var(--font); color: #b9b7b2;
}
.cat-messages { border-left-color: var(--red); }
.cat-members { border-left-color: var(--blue); }
.cat-moderation { border-left-color: var(--orange); }
.cat-voice { border-left-color: var(--green); }
.cat-server { border-left-color: var(--gold); }

/* ---------------------------------------------------------------- Discord-Vorschau */
.discord-preview { background: #313338; border-radius: var(--radius); padding: 18px 16px; }
.dp-msg { display: flex; gap: 14px; }
.dp-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--gold); color: #141414; font: 700 18px Georgia, serif;
}
.dp-name { font-weight: 600; color: #f2f3f5; margin-bottom: 4px; }
.dp-tag { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px; vertical-align: 1px; margin-left: 4px; }
.dp-ping { color: #c9cdfb; background: rgba(88, 101, 242, 0.3); display: inline-block; padding: 0 3px; border-radius: 3px; margin-bottom: 6px; }
.dp-embed {
  background: #2b2d31; border-left: 4px solid var(--gold); border-radius: 4px;
  padding: 10px 14px 12px; max-width: 440px; color: #dbdee1;
}
.dp-title { font-weight: 700; color: #f2f3f5; margin-bottom: 6px; }
.dp-desc { font-size: 14px; line-height: 1.4; }
.dp-desc code { background: #1e1f22; }
.dp-embed img { display: block; max-width: 100%; border-radius: 4px; margin-top: 10px; }
.dp-footer { font-size: 12px; color: #949ba4; margin-top: 8px; }

/* ---------------------------------------------------------------- Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card {
  width: 100%; max-width: 360px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 10px;
}
.login-card h1 { font-size: 20px; margin-top: 8px; }
.login-card p { margin: 0 0 8px; }
.login-card .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- Mobil */
@media (max-width: 1000px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .two-col, .two-col.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .content { padding: 20px 16px 40px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .row, .toggles { grid-template-columns: 1fr; }
  .card.flush { overflow-x: auto; }
  .log-entry { grid-template-columns: 1fr; gap: 6px; }
  .log-meta { flex-direction: row; align-items: center; }
}

/* ---------------------------------------------------------------- Geburtstage */
.bday-hero {
  display: flex; align-items: center; gap: 24px;
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.14), var(--surface) 55%);
  border-color: rgba(212, 175, 55, 0.35);
  margin-bottom: 8px;
}
.bday-count {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 92px; height: 92px; border-radius: 16px;
  background: var(--bg); border: 1px solid rgba(212, 175, 55, 0.4);
}
.bday-count .big { font: 700 34px/1 Georgia, "Times New Roman", serif; color: var(--gold); }
.bday-count .unit { font-size: 12px; color: var(--muted); margin-top: 4px; }
.eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.bday-hero h2 { font-size: 22px; }
.bday-hero p { margin: 4px 0 0; }
.avatars { display: flex; }
.avatars img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--surface); margin-left: -14px; background: var(--surface-2); }

.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.month {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; min-height: 96px;
}
.month h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.month.now { border-color: rgba(212, 175, 55, 0.5); }
.month.now h3 { color: var(--gold); }
.month.empty { opacity: 0.55; }
.month-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.month-row .day { width: 26px; color: var(--muted); font-variant-numeric: tabular-nums; }
.month-row.today { color: var(--gold); font-weight: 600; }
.month-row .soon { font-size: 11px; color: var(--gold); white-space: nowrap; }

@media (max-width: 1000px) { .month-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .month-grid { grid-template-columns: repeat(2, 1fr); }
  .bday-hero { flex-wrap: wrap; }
}

.month-grid + .two-col { margin-top: 30px; }

/* ---------------------------------------------------------------- Level */
.stat-row.four { grid-template-columns: repeat(4, 1fr); }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin-top: 18px; }
.podium-card {
  position: relative; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 16px 18px;
}
.podium-card.place-1 {
  padding-top: 34px;
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), var(--surface) 70%);
}
.podium-card img { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); }
.podium-card.place-1 img { width: 84px; height: 84px; box-shadow: 0 0 0 3px var(--gold); }
.podium-card h3 { font-size: 16px; margin-top: 10px; }
.podium-card p { margin: 2px 0 0; }
.podium-card .lvl { color: var(--gold); font-weight: 700; font-size: 15px; }
.medal { position: absolute; top: 10px; left: 12px; font-size: 22px; }

table.board td { vertical-align: middle; }
table.board th.wide { width: 32%; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who img { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); flex-shrink: 0; }
.lvl-badge {
  display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px;
  border-radius: 8px; background: var(--gold-soft); color: var(--gold); font-weight: 700;
}
table.board .bar { margin-bottom: 4px; }

.xp-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.xp-rules div { display: flex; flex-direction: column; gap: 2px; }
.rule-icon { font-size: 22px; margin-bottom: 4px; }
.level-table { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }

.reward-row { display: grid; grid-template-columns: auto 80px 1fr auto; align-items: center; gap: 10px; margin-bottom: 10px; }
.reward-row input[type=number] {
  width: 100%; background: var(--bg); color: var(--text); font: inherit;
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px;
}
#add-reward { margin-bottom: 6px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }

@media (max-width: 1000px) {
  .stat-row.four { grid-template-columns: repeat(2, 1fr); }
  .xp-rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .podium { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
}
.podium + .two-col { margin-top: 30px; }

/* ---------------------------------------------------------------- Ungespeicherte Änderungen */
.unsaved-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 50;
  transform: translate(-50%, 140%);
  width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 12px;
  background: #0b0c0e; border: 1px solid var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
.unsaved-bar.show { transform: translate(-50%, 0); }
.unsaved-bar[hidden] { display: flex; visibility: hidden; }
.unsaved-bar.show[hidden] { visibility: visible; }
.unsaved-bar > div { display: flex; gap: 8px; flex-shrink: 0; }
.btn.success { background: #248046; border-color: #248046; color: #fff; }
.btn.success:hover { filter: brightness(1.1); }
.btn.ghost-plain { background: transparent; border-color: transparent; color: var(--text); font-weight: 500; }
.btn.ghost-plain:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Befehle */
.intro { max-width: 720px; margin: -6px 0 6px; }
.cat-desc { margin: -6px 0 10px; }
.cmd-table td { vertical-align: middle; }
.cmd-table tr.off td:not(:last-child) { opacity: 0.45; }
.cmd-table .right { text-align: right; }
.toggle.inline { display: inline-flex; padding: 0; justify-content: flex-end; }
.toggle input:disabled + .switch { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 760px) {
  .unsaved-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .unsaved-bar > div { justify-content: center; }
}
.bday-count .big.small-word { font-size: 22px; }
.place-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted);
}
.place-1 .place-num { background: var(--gold); color: #17140a; }
.rule-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
table.cmd-table { table-layout: fixed; }
.cmd-table th:nth-child(1) { width: 26%; }
.cmd-table th:nth-child(2) { width: 38%; }
.cmd-table th:nth-child(3) { width: 18%; }
.cmd-table th:nth-child(4) { width: 10%; }
.cmd-table th:nth-child(5) { width: 8%; }
.cmd-table td { overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 761px) { .unsaved-bar { left: calc(50% + 124px); width: min(720px, calc(100% - 300px)); } }
.stat-row + .two-col { margin-top: 30px; }
.sidebar-foot { margin-top: auto; display: flex; gap: 14px; padding: 8px; }
.sidebar-foot a { color: var(--muted); font-size: 13px; }
.sidebar-foot a:hover { color: var(--text); }
.flash.notice { border-color: rgba(212, 175, 55, 0.4); background: var(--gold-soft); }
.flash a { color: var(--gold); text-decoration: underline; }
.card.narrow { max-width: 420px; }
