/* AutomoTim – dunkles Nachtblau mit Glas-Kacheln und blauen Akzenten */
:root {
  --bg: #0a0f1f;
  --surface: #111a33;
  --surface-2: #16203d;
  --surface-3: #1c2850;
  --line: #1f2b4d;
  --line-strong: #2b3a66;
  --text: #eef2ff;
  --text-2: #b8c2de;
  --muted: #8f9bbd;
  --accent: #5b8cff;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(91, 140, 255, .16);
  --accent-ink: #ffffff;
  --ok: #34d399;
  --warn: #fbbf24;
  --crit: #f87171;
  --info: #60a5fa;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .35);
  --card: linear-gradient(160deg, rgba(28, 40, 80, .92), rgba(15, 23, 46, .92));
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
}
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--accent); }
a.link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 22px; }
h2 { font-size: 15px; color: var(--text); }
h3 { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
p { margin: 0 0 8px; }
small, .muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.neg { color: var(--text-2); }
.pos { color: var(--ok); }

/* Layout */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px;
  display: flex; flex-direction: column; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 6px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); border: 0;
  color: var(--accent-ink); font-weight: 800; font-size: 13px; letter-spacing: -0.02em;
}
.brand-name { font-weight: 750; font-size: 16px; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--muted); }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 0 10px 6px; }
.nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2);
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .badge { font-size: 12px; font-weight: 700; padding: 0 7px; border-radius: 10px; background: var(--crit); color: #fff; }
.nav a.tasks-link { background: #fff4ed; color: #9a3412; font-weight: 600; }
.nav a.tasks-link.calm { background: transparent; color: var(--text-2); font-weight: 400; }
.nav-foot { margin-top: auto; font-size: 11.5px; color: var(--muted); padding: 0 10px; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 12px 32px; background: rgba(245,246,244,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar form.search { flex: 1; max-width: 520px; }
.topbar .search input { width: 100%; }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 13px; }
.menu-btn { display: none; }
.content { padding: 28px 32px 56px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 4px 0 0; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 16px; }
.panel + .panel, .grid + .panel, .panel + .grid, .grid + .grid, .note + .panel, .note + .grid { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* KPI */
.kpi { padding: 14px 16px; }
.kpi .label { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; white-space: nowrap; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.accent .value { color: var(--accent); }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--surface); position: sticky; top: 0; }
tbody tr:hover { background: var(--surface-2); }
tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); border-bottom: 0; }
td.wrap { max-width: 380px; }
.clip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.kv th { width: 38%; text-transform: none; letter-spacing: 0; font-size: 13px; position: static; background: none; }
table.kv td, table.kv th { padding: 7px 0; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 1px 8px; border-radius: 20px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip.ok { color: var(--ok); border-color: rgba(21,128,61,.3); background: #f0f9f3; }
.chip.warn { color: var(--warn); border-color: rgba(180,83,9,.3); background: #fff7ed; }
.chip.crit { color: var(--crit); border-color: rgba(192,57,43,.3); background: #fdf1ef; }
.chip.info { color: var(--info); border-color: rgba(29,95,168,.3); background: #eff5fc; }
.chip.plain::before { display: none; }

/* Formulare */
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=file], select, textarea {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px 11px; color: var(--text); min-height: 38px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field input, .field select, .field textarea { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; min-height: 38px; font-weight: 500;
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(.92); }
.btn.danger { color: var(--crit); border-color: rgba(192,57,43,.35); }
.btn.small { padding: 4px 10px; min-height: 28px; font-size: 12.5px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; flex-wrap: wrap; }
.seg a { padding: 6px 11px; color: var(--text-2); font-size: 12.5px; border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Hinweise */
.note { border: 1px solid var(--line-strong); border-left: 3px solid var(--info); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text-2); font-size: 13px; }
.note.warn { border-left-color: var(--warn); }
.note.crit { border-left-color: var(--crit); }
.note.ok { border-left-color: var(--ok); }
.note + .note { margin-top: 8px; }
.flash { margin-bottom: 16px; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; font-weight: 600; }

/* Diagramm */
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--accent); opacity: .8; }
.chart .bar:hover { opacity: 1; }
.chart .axis { fill: var(--muted); font-size: 10px; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }

/* Liste */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .t { min-width: 0; }
.list .t div:first-child { overflow: hidden; text-overflow: ellipsis; }

.bar-split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-3); margin: 8px 0 12px; }
.bar-split span { display: block; height: 100%; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; color: var(--muted); }

/* Anmeldung */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 400px; }
.auth .brand { justify-content: center; margin-bottom: 18px; }
.secret { font-family: var(--mono); font-size: 16px; letter-spacing: .08em; background: var(--surface-2); border: 1px dashed var(--line-strong); padding: 10px 12px; border-radius: var(--radius-sm); text-align: center; user-select: all; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: s; padding-left: 28px; position: relative; margin-bottom: 8px; color: var(--text-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 11px; display: grid; place-items: center; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .18s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(20,24,29,.35); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .topbar .who span { display: none; }
  .content { padding: 18px 16px 40px; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .kpi .value { font-size: 20px; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Hilfsklassen (keine Inline-Styles wegen Content-Security-Policy) */
.full { width: 100%; justify-content: center; }
.mt { margin-top: 14px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 14px; } .mb-s { margin-bottom: 6px; }
.small { font-size: 12px; }
.right { text-align: right; }
.gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.split { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.c1 { fill: #0b6767; background: #0b6767; } .c2 { fill: #1d5fa8; background: #1d5fa8; } .c3 { fill: #15803d; background: #15803d; }
.c4 { fill: #7c3aed; background: #7c3aed; } .c5 { fill: #8a939e; background: #8a939e; } .c6 { fill: #c2410c; background: #c2410c; }
svg.split-bar { width: 100%; height: 8px; display: block; margin: 8px 0 12px; border-radius: 4px; }

/* Korrekturen nach Sichtprüfung */
.grid > .panel, .grid > div { margin-top: 0 !important; }
.btn.menu-btn { display: none; }
table.kv th { width: auto; padding-right: 16px; }
table.kv td { white-space: nowrap; }
@media (max-width: 820px) { .btn.menu-btn { display: inline-flex; } }
details summary { cursor: pointer; }
details summary::marker { color: var(--muted); }

hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0 4px; }
.w-full { width: 100%; }

/* Cockpit (Startseite) */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hello .date { color: var(--muted); font-size: 13px; }
.hello h1 { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; margin-top: 2px; }
.todo { background: var(--accent); color: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); }
.todo.done { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.todo h2 { color: inherit; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.todo .sub { opacity: .85; font-size: 13px; margin-top: 2px; }
.todo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.todo-item { display: block; background: #fff; color: var(--text); border-radius: 12px; padding: 12px 14px; min-height: 44px; }
.todo-item:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.todo-item .t { font-weight: 600; line-height: 1.35; }
.todo-item .d { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.todo-item .sev { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.sev-kritisch, .sev-hoch { color: var(--crit); } .sev-mittel { color: var(--warn); } .sev-info { color: var(--info); }
.todo-more { display: inline-block; margin-top: 14px; color: #fff; font-weight: 600; text-decoration: underline; }
.status-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; }
.status { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status .dot.ok { background: var(--ok); } .status .dot.warn { background: var(--warn); } .status .dot.crit { background: var(--crit); }
.status b { display: block; font-weight: 600; }
.status span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1100px) { .todo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .todo-list { grid-template-columns: 1fr; } }
.nav-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.nav-bottom a { font-size: 13px; padding: 6px 12px; }

/* ---- Nachtblau-Stil: Überschreibungen ---- */
body { background: radial-gradient(1200px 700px at 15% -10%, rgba(91,140,255,.18), transparent 60%),
                   radial-gradient(900px 600px at 100% 0%, rgba(139,92,246,.12), transparent 55%), var(--bg);
       background-attachment: fixed; }
.sidebar { background: rgba(10, 15, 31, .65); border-right: 1px solid rgba(255,255,255,.05); backdrop-filter: blur(10px); }
.brand-mark { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 18px rgba(91,140,255,.35); }
.nav a.active { background: var(--accent-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav a:hover { background: rgba(255,255,255,.04); }
.nav a.tasks-link { background: rgba(248,113,113,.12); color: #fecaca; }
.nav a.tasks-link.calm { background: transparent; color: var(--text-2); }
.nav .badge { background: var(--crit); color: #1a0b0b; }
.topbar { background: rgba(10, 15, 31, .72); border-bottom: 1px solid rgba(255,255,255,.05); }
.panel { background: var(--card); border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow); }
.panel-head { border-bottom: 1px solid rgba(255,255,255,.06); }
th { background: transparent; }
tbody tr:hover { background: rgba(255,255,255,.03); }
th, td { border-bottom-color: rgba(255,255,255,.06); }
.kpi .value { font-size: 30px; font-weight: 700; color: #fff; }
.kpi.accent .value { background: linear-gradient(90deg, #7fb0ff, #b79bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=file], select, textarea {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.topbar .search input { border-radius: 12px; }
.btn { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.btn:hover { background: rgba(255,255,255,.09); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #6d74ff); border: 0; box-shadow: 0 6px 18px rgba(91,140,255,.35); }
.btn.primary:hover { filter: brightness(1.08); }
.seg { border-color: rgba(255,255,255,.1); border-radius: 12px; }
.seg a { border-right-color: rgba(255,255,255,.06); }
.seg a.on { background: var(--accent-soft); color: #fff; }
.chip.ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); }
.chip.warn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); }
.chip.crit { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); }
.chip.info { background: rgba(96,165,250,.1); border-color: rgba(96,165,250,.3); }
.note { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.chart .bar { fill: url(#balken); opacity: 1; }
.chart .bar:hover { filter: brightness(1.2); }
.c1 { fill: #5b8cff; background: #5b8cff; } .c2 { fill: #8b5cf6; background: #8b5cf6; } .c3 { fill: #34d399; background: #34d399; }
.c4 { fill: #f472b6; background: #f472b6; } .c5 { fill: #94a3b8; background: #94a3b8; } .c6 { fill: #fbbf24; background: #fbbf24; }
.todo { background: linear-gradient(135deg, #2b5cff 0%, #5b4bff 55%, #7c3aed 100%); box-shadow: 0 18px 40px rgba(59, 91, 255, .35); }
.todo.done { background: var(--card); border: 1px solid rgba(255,255,255,.06); color: var(--text); box-shadow: var(--shadow); }
.todo-item { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.todo-item:hover { background: rgba(255,255,255,.16); box-shadow: none; }
.todo-item .d { color: rgba(255,255,255,.78); }
.sev-kritisch, .sev-hoch { color: #fecaca; } .sev-mittel { color: #fde68a; } .sev-info { color: #bfdbfe; }
.status { background: var(--card); border: 1px solid rgba(255,255,255,.06); }
.status .dot.ok { box-shadow: 0 0 10px rgba(52,211,153,.7); }
.status .dot.warn { box-shadow: 0 0 10px rgba(251,191,36,.6); }
.status .dot.crit { box-shadow: 0 0 10px rgba(248,113,113,.7); }
.secret { background: rgba(255,255,255,.04); }
@media (max-width: 820px) { body.nav-open .sidebar { background: #0c1226; } }

/* ---- Aufgeräumt ---- */
.period-custom { position: relative; }
.period-custom summary { list-style: none; }
.period-custom summary::-webkit-details-marker { display: none; }
.period-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; background: #121b36; border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 10px; box-shadow: var(--shadow); flex-wrap: nowrap; }
.hello { margin-bottom: 18px; }
.todo { padding: 20px 22px; }
.todo-list { margin-top: 14px; }
.todo-item { padding: 12px 14px; }
.todo-item .t { font-weight: 600; }
.status-line { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 2px 18px; color: var(--muted); font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; }
.status-pill b { color: var(--text); font-weight: 600; }
.status-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-line .dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.7); }
.status-line .dot.warn { background: var(--warn); box-shadow: 0 0 8px rgba(251,191,36,.6); }
.status-line .dot.crit { background: var(--crit); box-shadow: 0 0 8px rgba(248,113,113,.7); }
.kpi { padding: 18px 20px; }
.kpi .label { font-size: 12.5px; }
.content { max-width: 1240px; }
.topbar form.search { max-width: 420px; }
.topbar .search input { background: rgba(255,255,255,.03); }

/* ---- Feinschliff nach Durchgang ---- */
input[type=file] { padding: 6px; }
input[type=file]::file-selector-button { font: inherit; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: rgba(255,255,255,.14); }
details.settings-fold > summary { list-style: none; cursor: pointer; border-bottom: 0; }
details.settings-fold > summary::-webkit-details-marker { display: none; }
details.settings-fold > summary::after { content: "▾"; color: var(--muted); margin-left: 8px; }
details.settings-fold[open] > summary { border-bottom: 1px solid rgba(255,255,255,.06); }
details.settings-fold[open] > summary::after { content: "▴"; }
.mono { overflow-wrap: anywhere; }
.dl dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .hide-md { display: none; } }
@media (max-width: 820px) {
  table:not(.kv) { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .table-wrap table { display: table; }
  .panel, .grid > * { min-width: 0; }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 22px; }
  .hello h1 { font-size: 24px; }
  .kpi .value { font-size: 24px; }
  .topbar .search { min-width: 0; }
  .seg { max-width: 100%; }
  .filters { width: 100%; }
  .period-form { right: auto; left: 0; flex-wrap: wrap; }
}
