/* San Diego RP · Team-Board – Farben aus dem Logo: Türkis, Sonnenuntergang (Orange/Gelb), Nachtblau */
:root {
  --teal: #34aba8;
  --teal-strong: #1f8f8c;
  --sun: #f5a623;
  --sunset: #ef6c35;
  --yellow: #f7cf46;
  --red: #e5484d;
  --green: #2f9e44;
  --blurple: #5865f2;

  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #eaf0f3;
  --border: #d5dee4;
  --text: #12202e;
  --muted: #5d6f7e;
  --shadow: 0 1px 2px rgba(16, 32, 46, 0.08), 0 4px 14px rgba(16, 32, 46, 0.06);
  --radius: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c1826;
  --surface: #13243a;
  --surface-2: #1a304b;
  --border: #26405f;
  --text: #e9f1f6;
  --muted: #93a8ba;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a.chip { text-decoration: none; border-color: var(--teal); }
a.chip:hover { background: rgba(52, 171, 168, 0.18); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.boot img { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; transform: scale(0.97); } }

/* ---------- Knöpfe & Felder ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--text);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: var(--teal); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #06221f; }
.btn.primary:hover { background: #3fc0bc; }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.icon { width: 44px; padding: 0; font-size: 18px; }
.btn.discord { background: var(--blurple); border-color: var(--blurple); color: #fff; min-height: 52px; font-size: 16px; width: 100%; }
.btn.discord:hover { background: #6773f5; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
}
textarea.input { resize: vertical; min-height: 96px; }
.input:disabled { opacity: 0.75; background: var(--surface-2); }

/* ---------- Anmeldung ---------- */
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(180deg, rgba(8, 18, 30, 0.55), rgba(8, 18, 30, 0.9)), url("/login-bg.jpg") center / cover no-repeat #0c1826;
}
.login-card {
  width: min(420px, 100%); padding: 28px 24px 24px; border-radius: 22px; text-align: center; color: #e9f1f6;
  background: rgba(15, 30, 48, 0.82); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.login-card img { width: 148px; height: 148px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)); }
.login-card h1 { font-size: 26px; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.login-card h1 span { color: var(--teal); }
.login-card p { color: #a9bccb; margin: 10px 0 20px; }
.login-card .hint { font-size: 13px; margin: 16px 0 0; }
.login-error { background: rgba(229, 72, 77, 0.16); border: 1px solid rgba(229, 72, 77, 0.5); color: #ffd7d8; padding: 10px 12px; border-radius: 12px; margin-bottom: 16px; text-align: left; }
.sunline { height: 4px; border-radius: 4px; margin: 14px auto 0; width: 120px; background: linear-gradient(90deg, var(--teal), var(--yellow), var(--sunset)); }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px max(16px, env(safe-area-inset-left));
  background: #0c1826; color: #e9f1f6; border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--teal), var(--yellow), var(--sunset)) 1;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 44px; height: 44px; }
.brand b { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.brand small { display: block; color: var(--teal); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; color: #b9c9d6; text-decoration: none; font-weight: 600; white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav a.active { background: rgba(52, 171, 168, 0.2); color: #7fe3df; }
.topbar .spacer { flex: 1; }
.topbar .btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #e9f1f6; }
.topbar .btn.primary { background: var(--teal); border-color: var(--teal); color: #06221f; }
.me { display: flex; align-items: center; gap: 8px; min-width: 0; }
.me .who { line-height: 1.15; min-width: 0; }
.me .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.narrow { display: none; }
.me .who small { color: var(--yellow); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; background: var(--teal-strong); color: #fff;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; border: 2px solid var(--surface);
}
.avatar.big { width: 38px; height: 38px; border-color: rgba(255, 255, 255, 0.2); }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -8px; }

main { padding: 20px max(16px, env(safe-area-inset-left)) 80px; max-width: 1500px; margin: 0 auto; }

/* ---------- Meine Aufgaben ---------- */
.hello { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hello h1 { font-size: 26px; }
.hello p { margin: 4px 0 0; color: var(--muted); }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.stat b { display: block; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat.warn { border-top-color: var(--red); }
.stat.sun { border-top-color: var(--sun); }
.stat.sunset { border-top-color: var(--sunset); }
.section { margin-bottom: 26px; }
.section > h2 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section > h2 .count { color: var(--muted); font-weight: 600; }
.list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }

/* ---------- Board ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .input { width: auto; flex: 1 1 150px; max-width: 240px; }
.toolbar .search { flex: 2 1 200px; max-width: 320px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-weight: 600; cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--teal); }
.coltabs { display: none; }
.columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.column { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 10px; min-height: 180px; }
.column.over { outline: 2px dashed var(--teal); outline-offset: -4px; }
.column > header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 700; }
.column > header .dot { width: 10px; height: 10px; border-radius: 50%; }
.column > header .count { margin-left: auto; color: var(--muted); font-weight: 600; background: var(--surface); border-radius: 999px; padding: 0 9px; font-size: 13px; }
.column[data-status="open"] > header .dot { background: var(--muted); }
.column[data-status="progress"] > header .dot { background: var(--sun); }
.column[data-status="review"] > header .dot { background: var(--blurple); }
.column[data-status="done"] > header .dot { background: var(--green); }
.cards { display: grid; gap: 10px; min-height: 60px; }
.col-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 6px; }

.card {
  position: relative; display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--teal);
  border-radius: 12px; padding: 11px 12px 10px; box-shadow: var(--shadow); min-height: 44px;
}
.card:hover { border-color: var(--teal); border-left-color: var(--teal); }
.card[data-priority="low"] { border-left-color: #8fa3b3; }
.card[data-priority="high"] { border-left-color: var(--sun); }
.card[data-priority="urgent"] { border-left-color: var(--red); }
.card.dragging { opacity: 0.4; }
.card.done .title { text-decoration: line-through; color: var(--muted); }
.card .title { font-weight: 650; overflow-wrap: anywhere; }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.card .meta .avatars { margin-left: auto; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.tag.area { color: var(--teal-strong); background: rgba(52, 171, 168, 0.14); }
:root[data-theme="dark"] .tag.area { color: #7fe3df; }
.tag.overdue { color: #fff; background: var(--red); }
.tag.soon { color: #3d2a00; background: var(--yellow); }
.tag.lock { color: #3d2a00; background: var(--yellow); }
.tag.urgent { color: #fff; background: var(--red); }
.tag.high { color: #3d2a00; background: var(--sun); }
.bar { height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--teal); border-radius: 5px; }

/* ---------- Aufgaben-Fenster ---------- */
dialog {
  border: 1px solid var(--border); border-radius: 18px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
dialog::backdrop { background: rgba(6, 14, 24, 0.6); backdrop-filter: blur(2px); }
.dlg { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.dlg > header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border); }
.dlg > header h2 { font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg > .body { padding: 16px 18px; overflow-y: auto; display: grid; gap: 16px; }
.dlg > footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); }
.dlg > footer .left { margin-right: auto; display: flex; gap: 8px; }
textarea.title-input { font-size: 20px; font-weight: 700; min-height: 48px; resize: none; overflow: hidden; line-height: 1.25; }
.grid2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.seg button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; padding: 0 4px; }
.seg button.on { background: var(--teal); color: #06221f; }
.seg button:disabled { cursor: not-allowed; opacity: 0.7; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.person {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 10px 2px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 13px;
}
.person.on { background: rgba(52, 171, 168, 0.18); border-color: var(--teal); }
.person:disabled { cursor: not-allowed; opacity: 0.55; }
.person .avatar { border: 0; width: 26px; height: 26px; }
.lockbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(247, 207, 70, 0.16); border: 1px solid rgba(247, 207, 70, 0.6); font-weight: 600; cursor: pointer; }
.lockbox input { width: 20px; height: 20px; accent-color: var(--sun); }
.lockbox small { display: block; font-weight: 400; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 2px 4px; border-radius: 8px; }
.check:hover { background: var(--surface-2); }
.check input { width: 20px; height: 20px; accent-color: var(--teal); flex: none; }
.check span { flex: 1; overflow-wrap: anywhere; }
.check.done span { text-decoration: line-through; color: var(--muted); }
.check .x { border: 0; background: transparent; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; }
.check .x:hover { color: var(--red); background: var(--surface); }
.addrow { display: flex; gap: 8px; margin-top: 8px; }
.addrow .input { flex: 1; }
.subhead { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.subhead .count { font-weight: 600; text-transform: none; letter-spacing: 0; }
.comment { display: flex; gap: 10px; padding: 8px 0; }
.comment .avatar { width: 32px; height: 32px; border: 0; }
.comment .bubble { flex: 1; min-width: 0; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.comment .bubble header { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.comment .bubble header time { color: var(--muted); font-size: 12px; }
.comment .bubble header button { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; }
.comment .bubble p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
details.history summary { cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); min-height: 36px; display: flex; align-items: center; }
details.history ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
details.history li b { color: var(--text); font-weight: 600; }
.readonly-note { font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 8px 12px; border-radius: 10px; }

/* ---------- Kalender ---------- */
.cal-head h1 { font-size: 22px; min-width: 190px; text-align: center; }
.cal-head .legend { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.cal-head .legend .cal-item { cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-weekday { text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 4px 0; }
.cal-day { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.cal-day:hover { border-color: var(--teal); }
.cal-day.other { opacity: 0.45; }
.cal-day.today { border: 2px solid var(--teal); }
.cal-day .num { font-weight: 700; font-size: 13px; color: var(--muted); padding: 0 2px; }
.cal-day.today .num { color: var(--teal); }
.cal-item { display: block; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; background: var(--surface-2); color: var(--text); border-left: 3px solid var(--teal); }
a.cal-item:hover { filter: brightness(1.12); }
.cal-item.task.low { border-left-color: #8fa3b3; }
.cal-item.task.high { border-left-color: var(--sun); }
.cal-item.task.urgent, .cal-item.task.overdue { border-left-color: var(--red); }
.cal-item.task.overdue { background: rgba(229, 72, 77, 0.16); }
.cal-item.event { border-left-color: var(--sunset); background: rgba(239, 108, 53, 0.16); }
.cal-item.absence { border-left-color: var(--yellow); background: rgba(247, 207, 70, 0.16); font-weight: 500; }
.cal-item.more { border-left-color: transparent; background: transparent; color: var(--muted); }
.agenda { display: none; gap: 10px; }
.agenda-day { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px 10px; }
.agenda-day.today { border: 2px solid var(--teal); }
.agenda-day.past { opacity: 0.6; }
.agenda-date { display: flex; align-items: center; justify-content: space-between; }
.agenda-items { display: grid; gap: 4px; }
.agenda-items .cal-item { white-space: normal; padding: 8px 10px; font-size: 14px; }

/* ---------- Team-Übersicht ---------- */
.team-list { display: grid; gap: 10px; }
.team-card { display: grid; grid-template-columns: minmax(170px, 1.1fr) auto minmax(0, 2fr) auto; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.team-card.away { border-left: 5px solid var(--yellow); }
.team-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-who .avatar { border-color: var(--border); }
.team-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-who small { color: var(--muted); font-weight: 600; }
.team-numbers { display: flex; gap: 18px; }
.team-numbers div { text-align: center; min-width: 54px; }
.team-numbers b { display: block; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.team-numbers span { font-size: 12px; color: var(--muted); font-weight: 600; }
.team-numbers .bad b { color: var(--red); }
.team-notes { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }

/* Handy-Navigation unten (nur auf kleinen Bildschirmen sichtbar) */
.bottomnav { display: none; }

/* ---------- Hinweise ---------- */
#toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: #0c1826; color: #e9f1f6; border: 1px solid rgba(255, 255, 255, 0.16); border-left: 5px solid var(--teal); padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); animation: rise 0.18s ease-out; }
.toast.error { border-left-color: var(--red); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; row-gap: 4px; }
  .nav { display: none; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #0c1826; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a { display: grid; justify-items: center; gap: 1px; padding: 7px 2px 8px; min-height: 56px; color: #93a8ba; text-decoration: none; font-size: 11px; font-weight: 600; }
  .bottomnav a .ico { font-size: 20px; line-height: 1.1; filter: grayscale(0.7); }
  .bottomnav a.active { color: #7fe3df; }
  .bottomnav a.active .ico { filter: none; }
  main { padding-bottom: 96px; }
  #toasts { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .cal-grid { display: none; }
  .agenda { display: grid; }
  .cal-head .legend { display: none; }
  .cal-head h1 { flex: 1; min-width: 0; font-size: 19px; }
  .team-card { grid-template-columns: 1fr; gap: 10px; }
  .team-numbers { justify-content: space-around; background: var(--surface-2); border-radius: 10px; padding: 8px 4px; }
  .team-notes { grid-column: 1 / -1; }
  .team-card > .btn { grid-column: 1 / -1; }
  .me .who { display: none; }
  .brand span { display: none; }
  .topbar { gap: 8px; }
  .wide { display: none; }
  .narrow { display: inline; }
  .logout { width: 44px; padding: 0; min-height: 44px; font-size: 18px; }
  .topbar .btn.small { min-height: 44px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coltabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 12px; }
  .coltabs button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 13px; line-height: 1.1; padding: 2px; }
  .coltabs button.on { background: var(--surface); box-shadow: var(--shadow); }
  .coltabs button small { display: block; color: var(--muted); font-weight: 600; }
  .columns { grid-template-columns: 1fr; }
  .column { display: none; }
  .column.show { display: block; }
  .column > header { display: none; }
  .toolbar .input, .toolbar .search { max-width: none; flex: 1 1 140px; }
  .grid2 { grid-template-columns: 1fr; }
  dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .dlg { max-height: 100dvh; height: 100dvh; }
  .dlg > .body { flex: 1; }
  .seg button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
