/* ═══════════════════════════════════════════════════════════════
   Interstate Roleplay · Staff Control Panel
   Thema: Nachtfahrt auf dem Interstate – Asphalt, Schilder, Reflexion
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0d13;
  --bg-soft: #0d1119;
  --surface: rgba(19, 25, 40, 0.72);
  --surface-solid: #131928;
  --surface-2: #1a2236;
  --line: rgba(148, 166, 200, 0.14);
  --line-strong: rgba(148, 166, 200, 0.28);
  --text: #e8edf7;
  --muted: #8a96ad;
  --faint: #5b6780;

  --blue: #3d7bff;
  --blue-soft: rgba(61, 123, 255, 0.14);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, 0.14);
  --green: #18a05e;
  --green-soft: rgba(24, 160, 94, 0.16);
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, 0.14);
  --purple: #9a6bff;
  --purple-soft: rgba(154, 107, 255, 0.14);

  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Overpass', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 100vh;
}

/* Fahrbahn-Hintergrund: dezente Leitlinie + Scheinwerfer-Glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(61, 123, 255, 0.09), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(24, 160, 94, 0.05), transparent 60%),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(148, 166, 200, 0.016) 34px 35px);
  z-index: 0;
}

#app { position: relative; z-index: 1; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(61, 123, 255, 0.35); }

/* ── Layout ─────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 17, 25, 0.92), rgba(10, 13, 19, 0.96));
  backdrop-filter: blur(14px);
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.brand svg { flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: 0.02em; line-height: 1.15; }
.brand-sub {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.nav-group { margin-bottom: 14px; }
.nav-group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  font-weight: 700;
  padding: 0 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.12s, color 0.12s;
  user-select: none;
}
.nav-item:hover { background: rgba(148, 166, 200, 0.07); color: var(--text); text-decoration: none; }
.nav-item.active {
  background: var(--blue-soft);
  border-color: rgba(61, 123, 255, 0.35);
  color: #cfe0ff;
}
.nav-item .ic { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.9; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 99px;
  padding: 1px 7px;
}

.sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.user-chip .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--blue);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .uname { font-weight: 700; font-size: 13px; line-height: 1.2; }
.role-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0px 7px 1px;
  border-radius: 5px;
  border: 1px solid;
}

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 19, 0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.global-search { position: relative; flex: 1; max-width: 460px; }
.global-search input { padding-left: 36px; }
.global-search .sicon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 60;
}
.search-results .sr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.search-results .sr-item:last-child { border-bottom: none; }
.search-results .sr-item:hover { background: var(--blue-soft); }

.server-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot.on { background: var(--green); box-shadow: 0 0 8px rgba(24, 160, 94, 0.8); }
.dot.off { background: var(--red); box-shadow: 0 0 8px rgba(229, 72, 77, 0.7); }

.content { padding: 26px; max-width: 1340px; width: 100%; margin: 0 auto; }

/* ── Seitenkopf im Wegweiser-Stil ───────────────────────────── */
.page-head { margin-bottom: 22px; }
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.page-eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 66%, var(--blue) 66%);
  opacity: 0.9;
}
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.page-sub { color: var(--muted); margin-top: 3px; font-size: 13.5px; }
.page-head .head-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.page-head .head-row > div:first-child { flex: 1; }

/* ── Karten & Panels ────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 18px;
}
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; } /* im Grid regelt gap den Abstand */
.card-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .spacer { flex: 1; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-card { padding: 16px 18px; }
.stat-value { font-size: 26px; font-weight: 800; font-family: var(--mono); letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.stat-accent { width: 26px; height: 4px; border-radius: 2px; margin-bottom: 10px; }

/* ── Kennzeichen-Chip (Signature-Element) ───────────────────── */
.plate {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 6px;
  background: linear-gradient(180deg, #1d2436, #141a2a);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  color: #c9d6ef;
  white-space: nowrap;
}
.plate.small { font-size: 11px; padding: 1px 7px; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge.blue { color: #9fc0ff; border-color: rgba(61, 123, 255, 0.45); background: var(--blue-soft); }
.badge.green { color: #6fd8a5; border-color: rgba(24, 160, 94, 0.45); background: var(--green-soft); }
.badge.red { color: #ff9295; border-color: rgba(229, 72, 77, 0.45); background: var(--red-soft); }
.badge.amber { color: #ffcd6b; border-color: rgba(255, 176, 32, 0.45); background: var(--amber-soft); }
.badge.gray { color: var(--muted); border-color: var(--line-strong); background: rgba(148, 166, 200, 0.07); }
.badge.purple { color: #c5a8ff; border-color: rgba(154, 107, 255, 0.45); background: var(--purple-soft); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: filter 0.12s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.14); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.danger { background: var(--red-soft); border-color: rgba(229, 72, 77, 0.5); color: #ff9ea1; }
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.block { width: 100%; }
.btn .ic { width: 15px; height: 15px; }

/* ── Formulare ──────────────────────────────────────────────── */
input, select, textarea {
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text);
  background: rgba(10, 13, 19, 0.65);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 123, 255, 0.18);
}
textarea { resize: vertical; min-height: 80px; }
label.field { display: block; margin-bottom: 12px; }
label.field span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; cursor: pointer; }
.checkbox-row input { width: auto; }

/* ── Tabellen ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(10, 13, 19, 0.5);
  white-space: nowrap;
}
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr.clickable { cursor: pointer; transition: background 0.1s; }
tbody tr.clickable:hover { background: rgba(61, 123, 255, 0.07); }
.num { font-family: var(--mono); font-size: 12.5px; }
.money { font-family: var(--mono); font-weight: 600; color: #6fd8a5; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.pagination { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.pagination .info { color: var(--muted); font-size: 12.5px; margin-right: auto; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  padding: 9px 15px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  user-select: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: #cfe0ff; border-bottom-color: var(--blue); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
}
.modal.wide { max-width: 760px; }
.modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ── Toasts ─────────────────────────────────────────────────── */
.toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast {
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  min-width: 260px;
  max-width: 380px;
  animation: toast-in 0.22s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Login ──────────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1000px 600px at 70% -10%, rgba(61, 123, 255, 0.13), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(229, 72, 77, 0.06), transparent 55%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card .brand-name { font-size: 19px; }
.login-card form { text-align: left; margin-top: 22px; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 16px 0;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; width: 100%; }
.login-error {
  background: var(--red-soft);
  border: 1px solid rgba(229, 72, 77, 0.4);
  color: #ff9ea1;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
}

/* ── Detail-Elemente ────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { word-break: break-word; }

.list-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 13, 19, 0.4);
  margin-bottom: 8px;
}
.list-tile .grow { flex: 1; min-width: 0; }

.thread { display: flex; flex-direction: column; gap: 10px; }
.msg {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(10, 13, 19, 0.4);
  max-width: 85%;
}
.msg.staff { align-self: flex-end; background: var(--blue-soft); border-color: rgba(61, 123, 255, 0.3); }
.msg .msg-meta { font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 3px; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.item-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 13, 19, 0.45);
  padding: 10px 12px;
  position: relative;
}
.item-cell .iname { font-weight: 700; font-size: 12.5px; word-break: break-all; }
.item-cell .icount { font-family: var(--mono); color: var(--muted); font-size: 11.5px; }
.item-cell .slot-no { position: absolute; top: 6px; right: 9px; font-size: 10px; color: var(--faint); font-family: var(--mono); }

.progress { height: 7px; border-radius: 4px; background: rgba(148, 166, 200, 0.12); overflow: hidden; }
.progress > div { height: 100%; border-radius: 4px; background: var(--green); }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 36px 16px;
  font-size: 13.5px;
}
.empty .big { font-size: 26px; display: block; margin-bottom: 8px; opacity: 0.6; }

.loading { display: grid; place-items: center; padding: 44px; color: var(--muted); }
.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

pre.code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(5, 7, 11, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 16px; }

.chart-box { position: relative; height: 260px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 90;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-flex !important; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .content { padding: 18px 14px; }
  .kv { grid-template-columns: 120px 1fr; }
  .perm-grid { grid-template-columns: 1fr; }
  .server-pill .hostname { display: none; }
}
.menu-btn { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Ticket-Bildanhänge ---------- */
.attach-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.attach-thumb { position: relative; }
.attach-thumb img, .attach-view {
  width: 92px; height: 92px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border, #2a2f3a); cursor: pointer; display: block;
}
.attach-view { width: 120px; height: 120px; }
.attach-view:hover, .attach-thumb img:hover { border-color: var(--blue, #3d7bff); }
.attach-rm {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; border: none; cursor: pointer; line-height: 1;
  background: #e5484d; color: #fff; font-size: 11px;
}
.lightbox {
  position: fixed; inset: 0; z-index: 9999; cursor: zoom-out;
  background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }

/* ---------- Ticket-Zuweisungen (mehrere) ---------- */
.assignee-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.assignee-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(61, 123, 255, .14); color: #cdd9ff;
  border: 1px solid rgba(61, 123, 255, .35);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.assignee-rm {
  border: none; background: none; color: #9fb2e6; cursor: pointer;
  font-size: 11px; line-height: 1; padding: 0;
}
.assignee-rm:hover { color: #e5484d; }

.assignee-chip.sm { padding: 2px 8px; font-size: 11px; }
.assignee-chips { align-items: center; }

/* ---------- Aktivitäts-Balken (ohne Chart.js) ---------- */
.actbars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 240px; padding: 10px 4px 0;
}
.actbar {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%; gap: 4px; min-width: 0;
}
.actbar-val { font-size: 11px; color: var(--muted, #8a96ad); font-variant-numeric: tabular-nums; height: 14px; }
.actbar-fill {
  width: 70%; min-height: 2px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #4f8cff, #3d7bff);
  transition: height .3s ease;
}
.actbar:hover .actbar-fill { filter: brightness(1.25); }
.actbar-day {
  font-size: 10px; color: var(--muted, #8a96ad);
  white-space: nowrap; transform: rotate(-45deg); transform-origin: center;
  margin-top: 4px; height: 16px;
}
