/* Public Radar: Gestaltung nach sales-agent-api/app/templates/review.html
   (DM Sans, Akzent #3045e6, Seitenleiste 280px, Karten, ruhige Grautöne).
   Hell/dunkel über prefers-color-scheme, kein JavaScript. Knöpfe 8px Radius. */

/* -- Schrift (selbst gehostet, @fontsource/dm-sans 5.3.0, SIL OFL 1.1: fonts/OFL.txt) -- */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/dm-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/dm-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/dm-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/dm-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/dm-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -- Farben (Werte aus review.html) -------------------------------------- */
:root {
  color-scheme: light dark;
  --bg-body: #ffffff;
  --bg-sidebar: #f3f4f6;
  --bg-card: #ffffff;
  --bg-input: #f3f4f6;
  --bg-hover: #e5e7eb;
  --bg-elevated: #ffffff;
  --bg-simap: #f4f5f7;
  --card-border: rgba(48, 69, 230, .22);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --border-default: #d1d5db;
  --border-subtle: #e5e7eb;
  --border-strong: #9ca3af;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #6f6f6f;
  --accent: #3045e6;
  --on-accent: #ffffff;
  --accent-soft: rgba(48, 69, 230, .08);
  --accent-border: rgba(48, 69, 230, .60);
  --ok: #0a7a3d;
  --ok-soft: rgba(10, 122, 61, .08);
  --ok-border: rgba(10, 122, 61, .35);
  --err: #b00020;
  --err-soft: rgba(176, 0, 32, .06);
  --err-border: rgba(176, 0, 32, .35);
  --warn: #b45309;
  --warn-soft: rgba(217, 119, 6, .08);
  --warn-border: rgba(217, 119, 6, .55);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #212121;
    --bg-sidebar: #171717;
    --bg-card: #262626;
    --bg-input: #2f2f2f;
    --bg-hover: #333333;
    --bg-elevated: #2b2b2b;
    --bg-simap: #1a1a1a;
    --card-border: rgba(147, 165, 255, .22);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    --border-default: #3a3a3a;
    --border-subtle: #2f2f2f;
    --border-strong: #555555;
    --text-primary: #e5e5e5;
    --text-secondary: #b0b0b0;
    --text-muted: #8a8a8a;
    --accent: #93a5ff;
    --on-accent: #10163a;
    --accent-soft: rgba(147, 165, 255, .12);
    --accent-border: rgba(147, 165, 255, .45);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, .08);
    --ok-border: rgba(74, 222, 128, .35);
    --err: #f87171;
    --err-soft: rgba(248, 113, 113, .08);
    --err-border: rgba(248, 113, 113, .40);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .08);
    --warn-border: rgba(251, 191, 36, .50);
  }
}

/* -- Grundlagen ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-body);
  color: var(--text-primary);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent-border); outline-offset: 2px; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }

/* -- Rahmen: Seitenleiste + Inhalt ---------------------------------------- */
/* Die Seitenleiste klebt (100vh); ihre Spalte samt Rand läuft als Hintergrund über die
   ganze Seitenhöhe weiter, auch auf langen Seiten. */
body.shell {
  display: flex;
  background: linear-gradient(to right, var(--bg-sidebar) 0 279px, var(--border-default) 279px 280px,
                              var(--bg-body) 280px);
}
.sidebar {
  width: 280px;
  min-width: 280px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-default);
}
.brand {
  display: block;
  padding: 24px 16px 20px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
}
.brand:hover { text-decoration: none; }
.brand picture, .login__brand picture { display: block; line-height: 0; }
.brand__logo { height: 26px; width: auto; display: block; }
.brand__product {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav { padding: 12px 8px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav__link {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav__link:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
.nav__link.is-active {
  background: var(--accent-soft);
  color: var(--text-primary);
  border-left-color: var(--accent-border);
}
.signout { margin: 0; }
.nav__item--logout { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-default); }
.sidebar__user {
  margin: auto 0 0;
  padding: 14px 20px;
  border-top: 1px solid var(--border-default);
  font-size: 12px;
  color: var(--text-muted);
}
.sidebar__user .nav__user { color: var(--text-secondary); font-weight: 600; }

.main { flex: 1; min-width: 0; }
.main__inner { max-width: 1100px; margin: 0 auto; padding: 24px 24px 40px; }

/* -- Kopf, Bestätigung ----------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head__title { font-size: 22px; font-weight: 600; }
.page-head__sub { margin: 4px 0 0; color: var(--text-secondary); font-size: 13px; }
.flash {
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid var(--ok-border);
  border-left-width: 3px;
  border-radius: 8px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 13px;
  font-weight: 500;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -- Karten ----------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.block { padding: 18px 20px; margin-bottom: 16px; }
.block__title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.block__sub {
  margin: 16px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lead { font-size: 15px; font-weight: 500; }
.list { margin: 0; padding-left: 18px; }
.list li { margin: 2px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 13px;
}
.notice p { margin: 0; }
.notice--warn { border-color: var(--warn-border); background: var(--warn-soft); }
.notice--warn strong { color: var(--warn); }
.empty { padding: 36px 20px; text-align: center; color: var(--text-muted); }
.empty__title { font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.error-page { padding: 28px; max-width: 560px; }
.error-page__title { font-size: 18px; font-weight: 600; margin-bottom: 18px; }

/* -- Knöpfe (8px, nie Pillen) --------------------------------------------- */
.btn {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-hover); text-decoration: none; }
.btn--primary { background: transparent; border-color: var(--accent-border); color: var(--accent); font-weight: 600; }
.btn--primary:hover { background: var(--accent-soft); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn--quiet:hover { background: var(--bg-hover); }
.btn--small { padding: 5px 10px; font-size: 12px; }
.btn--danger { color: var(--err); border-color: var(--err-border); }
.btn--danger:hover { background: var(--err-soft); }
.btn--block { display: block; width: 100%; }

/* -- Abzeichen: Einstufung, Status, Restzeit (6px) ------------------------ */
.grade {
  display: inline-block;
  min-width: 24px;
  padding: 1px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
}
.grade--A { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.grade--B { background: transparent; border-color: var(--accent-border); color: var(--accent); }
.grade--C { background: var(--bg-hover); border-color: var(--border-default); color: var(--text-secondary); }
.grade--out { background: transparent; border-color: var(--border-subtle); color: var(--text-muted); text-decoration: line-through; font-weight: 600; }
.grade--offen { background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn); font-weight: 600; }
.status {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: nowrap;
}
.status--gewonnen, .status--aktiv { border-color: var(--ok-border); color: var(--ok); }
.status--verloren, .status--verworfen, .status--inaktiv { color: var(--text-muted); border-color: var(--border-subtle); }
.due { display: inline-block; font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.due--soon { color: var(--warn); font-weight: 600; }
.due--past { color: var(--text-muted); }

/* -- Formulare ------------------------------------------------------------ */
.form { margin: 0; }
.field { display: block; margin: 0 0 12px; min-width: 0; }
.field__label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__hint { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
input[type="text"], input[type="password"], input[type="date"], select, textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.form__actions { margin: 4px 0 24px; }
.form__error { margin: 0 0 12px; color: var(--err); font-size: 13px; }
.form--inline { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 16px; }
.form--inline .field { flex: 1; margin: 0; }
.form--note { padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; align-items: end; }
.field--narrow { max-width: 320px; }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }

/* -- Filter ----------------------------------------------------------------- */
.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.filters .field { margin: 0; }
.filters__actions { display: flex; gap: 6px; }

/* -- Tabellen ----------------------------------------------------------------- */
.table-wrap { overflow: hidden; margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-muted);
  white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--accent-soft); }
.table--chancen th:first-child, .table--chancen td:first-child { width: 1%; padding-left: 16px; }
.cell-title { min-width: 0; overflow-wrap: anywhere; }
.row-link { display: block; color: var(--text-primary); font-weight: 600; }
.row-link:hover { color: var(--accent); }
.row-org { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.cell-date { display: block; white-space: nowrap; }
.table--users td { vertical-align: middle; }
.table--users tr.is-inactive td { color: var(--text-muted); }
.users .table-wrap { margin: 0 -20px 6px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.users .table th:first-child, .users .table td:first-child { padding-left: 20px; }
.grid-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0 12px; align-items: end; }
.field--button { padding-bottom: 0; }

/* -- Detail ----------------------------------------------------------------- */
.backlink { margin: 0 0 12px; font-size: 13px; }
.backlink a { color: var(--text-secondary); }
.detail-head { margin-bottom: 18px; }
.detail-head__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.detail-head__title { font-size: 22px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.detail-head__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 0; color: var(--text-secondary); font-size: 13px; }
.detail-head__meta span { overflow-wrap: anywhere; }
.detail-head__meta span + span::before { content: "·"; margin: 0 8px; color: var(--text-muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.detail-main, .detail-side { min-width: 0; }

/* Originalpublikation: grauer Rahmen, klar getrennt von unserer Einschätzung */
.simap {
  padding: 18px 20px;
  margin-bottom: 16px;
  background: var(--bg-simap);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}
.simap__source {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.simap__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0 0 4px; }
.simap__facts dt { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.simap__facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.simap__text {
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}
.simap__link { margin: 16px 0 0; }
.simap__notice {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-default);
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--border-subtle); font-size: 13px; }
.timeline__item:first-child { border-top: none; padding-top: 0; }
.timeline__when { color: var(--text-muted); white-space: nowrap; font-size: 12px; padding-top: 1px; }
.timeline__text { overflow-wrap: anywhere; }

.notes { list-style: none; margin: 16px 0 0; padding: 0; }
.note { padding: 10px 0; border-top: 1px solid var(--border-subtle); }
.note p { margin: 0; }
.note__meta { font-size: 11px; color: var(--text-muted); }
.note__text { margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.note__step { margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.feedback { display: flex; flex-wrap: wrap; gap: 6px; }

/* -- Einstellungen ------------------------------------------------------------- */
.category { margin: 0; padding: 14px 0 2px; border: none; border-top: 1px solid var(--border-subtle); min-width: 0; }
.category__title { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.category__title + * { clear: both; }
.password-card { max-width: 560px; }
.password { font-size: 16px; font-weight: 600; letter-spacing: .04em; user-select: all; }

/* -- Anmelden ------------------------------------------------------------------ */
body.plain .main__inner { max-width: 420px; padding-top: 12vh; }
.login__card { padding: 28px 24px 24px; }
.login__brand { margin-bottom: 22px; }
.login__logo { height: 26px; width: auto; display: block; }
.login__title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

/* -- Mittlere Breite: Detail einspaltig ------------------------------------------ */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters__actions { grid-column: 1 / -1; }
}

/* -- Mobil: Seitenleiste wird Kopfleiste, Tabellen werden Karten ----------------- */
@media (max-width: 860px) {
  body.shell { display: block; background: var(--bg-body); }
  .sidebar {
    width: auto;
    min-width: 0;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 10px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-default);
  }
  .brand { padding: 0; border-bottom: none; }
  .brand__logo { height: 20px; }
  .brand__product { margin-top: 4px; font-size: 9px; }
  .nav { padding: 0; }
  .nav__list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .nav__link { width: auto; padding: 7px 10px; border-left: none; }
  .nav__link.is-active { border-left: none; box-shadow: inset 0 -2px 0 var(--accent-border); }
  .nav__item--logout { margin: 0; padding: 0; border-top: none; }
  .sidebar__user { display: none; }
  .main__inner { padding: 16px 16px 32px; }
  .page-head__title, .detail-head__title { font-size: 19px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .grid-2, .grid-3, .grid-add, .simap__facts { grid-template-columns: minmax(0, 1fr); }
  .block, .simap { padding: 16px; }
  .users .table-wrap { margin: 0 -16px 6px; }
  .field--narrow { max-width: none; }
  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .detail-head__meta { flex-direction: column; gap: 2px; }
  .detail-head__meta span + span::before { content: none; }

  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
  .table tbody tr:last-child { border-bottom: none; }
  .table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 3px 0;
    border-bottom: none;
    text-align: right;
  }
  .table td::before {
    content: attr(data-label);
    flex: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
  }
  .table td.cell-title { display: block; padding: 4px 0 6px; text-align: left; }
  .table td.cell-title::before { content: none; }
  .table--chancen td:first-child { width: 100%; padding-left: 0; }
  .table td.cell-grade { justify-content: flex-start; padding-bottom: 4px; }
  .table td.cell-grade::before { content: none; }
  .users .table th:first-child, .users .table td:first-child { padding-left: 0; }
  .cell-date { display: inline; }
  .cell-deadline .due { margin-left: 6px; }
  .inline-form { justify-content: flex-end; }
}
@media (max-width: 340px) {
  .filters { grid-template-columns: minmax(0, 1fr); }
}
