/* =====================================================================
   TeamHub — Oberflaeche
   Farben kommen aus Custom Properties, damit Hell/Dunkel eine Zeile ist.
   ===================================================================== */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #dfe3e8;
  --text: #1c2024;
  --text-dim: #62676c;
  --text-faint: #8b9096;
  --accent: #3a5bd9;
  --accent-soft: #e8edfb;
  --green: #18794e;
  --green-soft: #e4f3ea;
  --red: #ce2c31;
  --red-soft: #fdeced;
  --amber: #ab6400;
  --amber-soft: #fdf3e0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .04);
  --radius: 8px;
  --sidebar-w: 220px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #191c1e;
    --surface-2: #212528;
    --border: #2c3134;
    --text: #edeef0;
    --text-dim: #b0b4b9;
    --text-faint: #7c8085;
    --accent: #7d95f0;
    --accent-soft: #1e2542;
    --green: #4cc38a;
    --green-soft: #16281f;
    --red: #ff6369;
    --red-soft: #2d1618;
    --amber: #f1a10d;
    --amber-soft: #2c1f10;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .2);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Layout */

#app { min-height: 100vh; }

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--border);
}
.brand span { color: var(--accent); }

.org-switch { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.org-switch select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
}

.nav { padding: 8px; flex: 1; }
.nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .group {
  padding: 14px 10px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  font-weight: 600;
}
.nav .count {
  font-size: 11px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 10px;
  color: var(--text-faint);
}

.sidebar-foot {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}

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

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.search-wrap { position: relative; flex: 1; max-width: 460px; }
.search-wrap input { width: 100%; }

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 40;
}
.search-results button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
}
.search-results button:hover { background: var(--surface-2); }
.search-results .kind {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
}

.content { padding: 20px; flex: 1; min-width: 0; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-head .sub { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

/* -------------------------------------------------------------- Bausteine */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 16px; }
.card + .card { margin-top: 16px; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.stat { padding: 14px 16px; }
.stat .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
  font-weight: 600;
}
.stat .value { font-size: 24px; font-weight: 650; margin-top: 4px; letter-spacing: -.02em; }
.stat .hint { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* Formulare und Buttons */

input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: transparent;
}
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

button, .btn {
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 7px 13px;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
button:hover, .btn:hover { background: var(--surface-2); text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn-danger { color: var(--red); border-color: var(--border); }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; }
.btn-ghost { border-color: transparent; background: none; color: var(--text-dim); }
.btn-ghost:hover { background: var(--surface-2); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* Tabellen */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
  font-weight: 600;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Chips, Badges */

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-dim);
  white-space: nowrap;
}
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

.label-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  color: #fff;
}

.prio { width: 3px; border-radius: 2px; align-self: stretch; }
.prio-0 { background: var(--border); }
.prio-1 { background: var(--accent); }
.prio-2 { background: var(--amber); }
.prio-3 { background: var(--red); }

/* Kanban */

.board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  align-items: flex-start;
}
.board-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 280px;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 190px);
}
.board-col.drop-target { outline: 2px dashed var(--accent); outline-offset: -2px; }
.board-col-head {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.board-col-head .count { font-size: 11px; color: var(--text-faint); font-weight: 500; }
.board-col-head .sum { font-size: 11.5px; color: var(--text-dim); font-weight: 500; }
.board-col-body { padding: 8px; overflow-y: auto; flex: 1; min-height: 60px; }

.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 10px;
  margin-bottom: 8px;
  cursor: grab;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow);
}
.board-card:active { cursor: grabbing; }
.board-card.dragging { opacity: .4; }
.board-card .body { flex: 1; min-width: 0; }
.board-card .title { font-weight: 550; font-size: 13px; word-break: break-word; }
.board-card .meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-faint);
}
.board-card .value { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-dim); }

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
}
.modal {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  width: 100%;
  max-width: 520px;
}
.modal.wide { max-width: 760px; }
.modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body { padding: 18px; }
.modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Zustaende */

.empty { padding: 40px 20px; text-align: center; color: var(--text-faint); }
.empty h3 { color: var(--text-dim); margin-bottom: 6px; }

.alert {
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.alert.error { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.alert.ok { background: var(--green-soft); color: var(--green); border-color: var(--green); }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 11px 15px;
  box-shadow: var(--shadow);
  z-index: 200;
  font-size: 13.5px;
  max-width: 380px;
}
.toast.error { border-left-color: var(--red); color: var(--red); }

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.overdue { color: var(--red); font-weight: 600; }

.bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 3px; }

/* Balkendiagramm fuer gewonnene Deals */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart .col > div { background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart .lbl { font-size: 10px; color: var(--text-faint); text-align: center; margin-top: 4px; }

/* Anmeldeseite */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { border: 0; text-align: center; font-size: 22px; padding: 24px 0 4px; }
.auth-card .tagline { text-align: center; color: var(--text-dim); margin-bottom: 20px; font-size: 13px; }
.auth-switch { text-align: center; margin-top: 14px; font-size: 13px; }

/* Detailseiten */

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--text-faint); font-size: 12.5px; }
.kv dd { margin: 0; word-break: break-word; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 11px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-size: 11.5px; color: var(--text-faint); }
.timeline .who { font-weight: 600; font-size: 13px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs button {
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 12px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.loading { padding: 40px; text-align: center; color: var(--text-faint); }

/* -------------------------------------------------------------- Schmal */

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand { border: 0; padding: 12px 14px; }
  .org-switch { border: 0; flex: 1; min-width: 160px; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; padding: 0 8px 8px; }
  .nav .group { display: none; }
  .nav a { padding: 5px 9px; font-size: 13px; }
  .sidebar-foot { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .content { padding: 14px; }
  .board-col { max-height: none; }
}

/* =====================================================================
   Ergaenzungen: Formularraster, Benachrichtigungen, Belege, Portal
   ===================================================================== */

/* ---------------------------------------------------------- Hilfsklassen */

.mb { margin-bottom: 10px; }
.mb-xs { margin-bottom: 4px; }
.mt { margin-top: 14px; }
.mt-sm { margin-top: 8px; }
.mt-xs { margin-top: 4px; }
.mt-card { margin-top: 16px; }
.grow { flex: 1; min-width: 0; }
.strong { font-weight: 650; }
.full { width: 100%; }
.center { text-align: center; }
.flush { padding-left: 0; }
.tight { padding: 0 4px; }
.narrow { max-width: 130px; }
.auto { width: auto; }
.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.row.top { align-items: flex-start; }
.pre { white-space: pre-wrap; word-break: break-word; }
.clip { overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
        -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.done { text-decoration: line-through; opacity: .6; }
.crumb { font-size: 12.5px; color: var(--text-faint); margin-bottom: 2px; }
.key { font-size: 15px; font-weight: 500; }
.big-value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.dot { width: 10px; height: 10px; border-radius: 3px; margin-top: 5px; flex: 0 0 auto; }
.section-head { border-bottom: 1px solid var(--border); }
.card .section-head + .table-wrap table tbody tr:first-child td { border-top: 0; }
.prio-cell { width: 4px; padding: 0 !important; }
.prio-cell .prio { min-height: 38px; height: 100%; }
.progress-cell { min-width: 150px; }
.funnel-row { margin-bottom: 10px; }
.deal-head { align-items: flex-end; gap: 24px; }
.toolbar { border-bottom: 1px solid var(--border); gap: 8px; }
.toolbar input[type=search] { max-width: 300px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-wrap { display: inline-flex; align-items: center; gap: 2px; }
.scroll-box { max-height: 220px; overflow-y: auto; }
.mail-body { max-height: 45vh; overflow-y: auto; background: var(--surface-2);
             border-radius: 6px; padding: 12px; margin-top: 12px; font-size: 13px; }
.reply-box textarea { font-size: 13.5px; }
.timeline li.internal { border-left: 2px solid var(--amber); padding-left: 10px; }

/* Kontrollkaestchen mit Beschriftung */
label.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
              font-weight: 500; color: var(--text); margin: 0; }
label.check input { width: auto; }
label.check.inline { margin: 0 10px 4px 0; }
label.check.small { font-size: 12.5px; }

/* --------------------------------------------------------- Formularraster */

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field-grid > .field { grid-column: 1 / -1; }
.field-grid > .field.half { grid-column: span 1; }
.field .hint { margin-top: 3px; }
.modal.narrow { max-width: 420px; }

/* ---------------------------------------------------- Benachrichtigungen */

.bell-wrap { position: relative; }
.badge-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 18px;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 340px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 50;
}
.notif-head { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.notif {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
}
.notif:hover { background: var(--surface-2); }
.notif.unread { border-left: 3px solid var(--accent); }
.notif .t { font-size: 13px; font-weight: 550; }
.notif .w { margin-top: 3px; }
.no-hits { padding: 12px; }
.search-results .kind {
  display: inline-block;
  min-width: 62px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
}
.search-results .hit { font-weight: 500; }

/* ------------------------------------------------------ Positionseditor */

.items { display: grid; gap: 4px; }
.items-head, .items-row {
  display: grid;
  grid-template-columns: 1fr 90px 80px 120px 80px 110px 32px;
  gap: 6px;
  align-items: center;
}
.items-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
  font-weight: 600;
  padding-bottom: 2px;
}
.items-head .num, .items-row .amount { text-align: right; }
.items-row input { padding: 5px 7px; font-size: 13px; }
.items-row input.num { text-align: right; }
.totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 20px;
  max-width: 320px;
  margin-left: auto;
  font-size: 13.5px;
}
.totals dt { color: var(--text-dim); }
.totals dd { margin: 0; text-align: right; }
.totals dt.strong, .totals dd.strong {
  border-top: 1px solid var(--border);
  padding-top: 5px;
  margin-top: 3px;
  font-size: 15px;
}

.items-table tfoot td { border-bottom: 0; padding: 4px 12px; }
.items-table tfoot tr.grand td {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: 15px;
}

/* ------------------------------------------------------------- Belege */

.doc-wrap { max-width: 820px; margin: 0 auto; padding: 28px 16px 60px; }
.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
}
.doc-head { margin-bottom: 28px; }
.doc-org { font-weight: 700; font-size: 16px; margin-bottom: 18px; }
.doc-title h1 { font-size: 22px; }
.doc-intro { margin-bottom: 20px; }
.doc-terms { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); }
.doc-paid { margin-top: 12px; text-align: right; color: var(--text-dim); }
.doc-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ------------------------------------------------------------- Portal */

.portal-wrap { max-width: 1000px; margin: 0 auto; padding: 24px 16px 60px; }
.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.portal-head .brand { padding: 0; border: 0; font-size: 19px; }

/* -------------------------------------------------------------- Drucken */

@media print {
  :root {
    --bg: #fff; --surface: #fff; --surface-2: #fff; --border: #ccc;
    --text: #000; --text-dim: #333; --text-faint: #666; --shadow: none;
  }
  body { background: #fff; }
  .no-print, .topbar, .sidebar, .toast, .modal-backdrop, .doc-foot { display: none !important; }
  .doc, .card { border: 0; box-shadow: none; padding: 0; }
  .doc-wrap, .portal-wrap { padding: 0; max-width: none; }
  .items-table { font-size: 11pt; }
  a { color: #000; text-decoration: none; }
}

/* -------------------------------------------------------------- Schmal */

@media (max-width: 860px) {
  .field-grid { grid-template-columns: 1fr; }
  .field-grid > .field.half { grid-column: 1 / -1; }
  .items-head { display: none; }
  .items-row { grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px 0;
               border-bottom: 1px solid var(--border); }
  .notif-panel { width: calc(100vw - 32px); right: -8px; }
  .doc { padding: 20px; }
  .toolbar input[type=search] { max-width: none; }
}
