/* Leitstand 4 – Design (Pixel, 2026-11-18, #51). Aus dem Entwurf web/entwurf/ übernommen.
   Grundsätze: Handy zuerst · eine Frage pro Bereich · ganze Sätze statt Kürzel · viel Weissraum · wenige, klare Farben. */
:root {
  --bg: #f6f6f3; --panel: #ffffff; --soft: #efefeb; --line: #e4e4de; --ink: #15171a; --muted: #6a6f76; --faint: #9a9fa6;
  --accent: #2f5bea; --ok: #1e8e4e; --ok-bg: #e7f5ec; --wait: #b8650a; --wait-bg: #fdf1e2; --bad: #cc2f3b; --bad-bg: #fcebec;
  --tf: #7c4dd6; --tc: #b07d00; --dm: #1f8a68; --ls: #0f7b8a;
  --r: 18px; --shadow: 0 1px 2px rgba(20,20,20,.04), 0 4px 16px rgba(20,20,20,.05);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1113; --panel: #171a1d; --soft: #1f2327; --line: #2a2f34; --ink: #eef0f2; --muted: #9aa1a9; --faint: #6d747c;
    --accent: #7b9cff; --ok: #4cc17f; --ok-bg: #15281d; --wait: #f0a24a; --wait-bg: #2b2114; --bad: #f2737c; --bad-bg: #2d1719;
    --tf: #b392f5; --tc: #e3b53a; --dm: #4fc6a0; --ls: #4cc3d3; --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; padding-bottom: 84px; }
a { color: inherit; text-decoration: none; }
.page { max-width: 1080px; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 32px; }
.page > * { min-width: 0; }

/* Navigation: oben am Computer, unten am Handy. Nur 4 Ziele. */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); }
.nav a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 0; border-radius: 12px; position: relative; }
.nav a svg { width: 22px; height: 22px; }
.nav a[aria-current] { color: var(--accent); }
.nav .badge { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--bad); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.brand { display: none; }
@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .nav { position: sticky; top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: center; gap: 4px; padding: 10px 16px; }
  .nav .in { width: 100%; max-width: 1080px; display: flex; align-items: center; gap: 4px; }
  .brand { display: block; font-weight: 750; font-size: 17px; margin-right: auto; letter-spacing: -.01em; }
  .nav a { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 14px; }
  .nav a svg { width: 18px; height: 18px; }
  .nav a[aria-current] { background: var(--soft); color: var(--ink); }
  .nav .badge { position: static; }
}
@media (max-width: 819px) { .nav .in { display: contents; } }

/* Typografie */
.hello { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
h1 { font-size: clamp(26px, 6vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 750; }
h2 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 14px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
h2 small { font-size: 14px; color: var(--muted); font-weight: 500; }
h2 .more { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.lead { font-size: 17px; color: var(--muted); margin: 10px 0 0; max-width: 60ch; }

/* Status-Punkt + Wort */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st.ok { color: var(--ok); background: var(--ok-bg); } .st.wait { color: var(--wait); background: var(--wait-bg); } .st.bad { color: var(--bad); background: var(--bad-bg); } .st.idle { color: var(--muted); background: var(--soft); }

/* „Für dich“-Banner */
.foryou { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; }
.foryou .n { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 750; font-size: 20px; background: var(--wait-bg); color: var(--wait); }
.foryou.none .n { background: var(--ok-bg); color: var(--ok); }
.foryou b { display: block; font-size: 16px; }
.foryou span { color: var(--muted); font-size: 14px; }
.foryou .go { margin-left: auto; font-weight: 650; color: var(--accent); white-space: nowrap; font-size: 15px; }

/* Projekt-Karten */
.projects { display: grid; gap: 14px; }
@media (min-width: 700px) { .projects { grid-template-columns: 1fr 1fr; gap: 18px; } }
.pc { display: grid; gap: 14px; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.pc:hover { border-color: var(--line); transform: translateY(-1px); }
.pc .top { display: flex; align-items: center; gap: 10px; }
.pc .name { font-size: 19px; font-weight: 750; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.pc .name::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--pc); }
.pc .top .st { margin-left: auto; }
.pc .live { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pc .ver { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1; }
.pc .ver.txt { font-size: 17px; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
.pc .age { color: var(--muted); font-size: 14px; }
.pc .now { font-size: 15px; display: grid; gap: 4px; }
.pc .now .k { color: var(--muted); font-size: 13px; }
.pc .foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pc .foot .chip { background: var(--soft); border-radius: 999px; padding: 3px 10px; color: var(--ink); }
.pc .foot .chip.bad { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.pc .foot .open { margin-left: auto; color: var(--accent); font-weight: 650; }

/* Zeitleiste */
.timeline { display: grid; gap: 0; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px 0; }
.tl { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 18px; }
.tl + .tl { border-top: 1px solid var(--line); }
.tl .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); margin-top: 7px; }
.tl b { font-weight: 650; }
.tl p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.tl time { color: var(--faint); font-size: 13px; white-space: nowrap; }

/* Projekt-Seite */
.back { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; margin-bottom: 14px; }
.phead { display: grid; gap: 8px; }
.phead .title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.phead .title::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: var(--pc); }
.tiles { display: grid; gap: 12px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tile { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.tile .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile .v { font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.tile .v.small { font-size: 17px; letter-spacing: 0; line-height: 1.35; font-weight: 650; }
.tile .s { color: var(--muted); font-size: 14px; }
.tile.bad .v { color: var(--bad); }
.seg { display: inline-flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 2px; margin-bottom: 14px; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.board { display: grid; gap: 16px; }
@media (min-width: 820px) { .board { grid-template-columns: repeat(3, 1fr); } .seg.cols { display: none; } }
@media (max-width: 819px) { .board > .lane:not(.on) { display: none; } .lane h3 { display: none; } }
.lane h3 { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 10px; display: flex; gap: 8px; }
.lane .list { display: grid; gap: 8px; }
.item { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 4px; }
.item .t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.item .m { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.item .tag { font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.item .tag.bug { background: var(--bad-bg); color: var(--bad); } .item .tag.idee { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.item.hot { box-shadow: inset 3px 0 0 var(--bad), var(--shadow); }
.empty { color: var(--muted); font-size: 14px; background: var(--panel); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.two { display: grid; gap: 32px; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } }
.team { display: flex; flex-wrap: wrap; gap: 8px; }
.team span { background: var(--panel); box-shadow: var(--shadow); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.team span b { font-weight: 650; }
.note { font-size: 13px; color: var(--faint); text-align: center; }
.nav .badge[hidden] { display: none; }
@media (max-width: 819px) { .board .lane h3 { display: none; } }

/* Kanban (Entwurf) */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: var(--panel); box-shadow: var(--shadow); color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.chips button i { width: 10px; height: 10px; border-radius: 3px; background: var(--pc, var(--muted)); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.kb { display: grid; gap: 16px; align-items: start; }
@media (min-width: 820px) { .kb { grid-template-columns: 1.2fr 1fr minmax(170px, .45fr) minmax(170px, .45fr); } .kb .seg { display: none; } }
@media (max-width: 819px) { .kb > .lane:not(.on) { display: none; } .kb .lane > h3 { display: none; } }
.kb .lane { background: var(--soft); border-radius: var(--r); padding: 14px; }
.kb .lane > h3 { font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.kb .lane > h3 .n { color: var(--muted); font-weight: 600; }
.kb .lane > h3 .tog { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 600; }
.kb .lane.zu .list { display: none; }
.kb .hint { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.kitem { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; background: var(--panel); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); border-left: 4px solid var(--pc); }
.kitem .rk { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 3px 7px; cursor: grab; }
.kitem .t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.kitem .m { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; }
.kitem .m .pn { color: var(--pc); font-weight: 650; }
.kitem.frei { box-shadow: inset 0 0 0 2px var(--wait), var(--shadow); }
.group { font-size: 13px; font-weight: 700; color: var(--muted); margin: 6px 2px 2px; }

/* Melden (Entwurf) */
.form { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 20px; }
.q { display: grid; gap: 8px; }
.q > label, .q > .lbl { font-weight: 650; font-size: 15px; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.big3 button { font: inherit; border: 2px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 16px; padding: 14px 8px; display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.big3 button b { font-size: 16px; } .big3 button span { font-size: 12px; color: var(--muted); text-align: center; }
.big3 button .ic { font-size: 22px; }
.big3 button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { font: inherit; font-size: 14px; font-weight: 600; border: 2px solid var(--line); background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pills button i { width: 10px; height: 10px; border-radius: 3px; background: var(--pc); }
.pills button[aria-pressed="true"] { border-color: var(--accent); }
.form input[type=text], .form textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--soft); border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: var(--panel); }
.form textarea { min-height: 110px; resize: vertical; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.drop b { color: var(--accent); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--soft); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.switch small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.switch .tg { width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; }
.switch .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.send { font: inherit; font-size: 17px; font-weight: 700; border: 0; background: var(--accent); color: #fff; border-radius: 14px; padding: 14px; cursor: pointer; }
.mine { display: grid; gap: 8px; }
.mine .item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.mine .item .st { grid-row: span 2; }
.cols2 { display: grid; gap: 32px; }
@media (min-width: 900px) { .cols2 { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.kb .lane > h3 .tog { white-space: nowrap; }
.kb .lane.zu > h3 { flex-wrap: wrap; }
.kb .lane.zu > h3 .tog { margin-left: 0; flex-basis: 100%; }

/* Kein seitliches Scrollen am iPhone (Ada, #255): lange Wörter umbrechen, nichts breiter als der Bildschirm. */
html, body { max-width: 100%; overflow-x: hidden; }
.page, .pc, .item, .tile, .tl, .foryou, h1, .lead { overflow-wrap: anywhere; }
.pc .gross { font-size: 14px; display: grid; gap: 6px; }
.pc .gross .bar, .tile .bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.pc .gross .bar i, .tile .bar i { display: block; height: 100%; background: var(--pc, var(--accent)); border-radius: 3px; }
.pc .gross .k { color: var(--muted); font-size: 13px; }
.pc .ver.none { font-size: 17px; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.updated { font-size: 13px; color: var(--faint); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
@media (max-width: 699px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; } .tile .v { font-size: 22px; } .tile .v.small { font-size: 15px; }
  .pc { padding: 16px; gap: 10px; }
  .pc .ver { font-size: 26px; }
  .seg button { padding: 7px 10px; }
}

/* ---------- Kanban (3.6.0) ---------- */
:root { --chip: var(--soft); --fg: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: var(--panel); box-shadow: var(--shadow); color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.chips button i { width: 10px; height: 10px; border-radius: 3px; background: var(--pc, var(--muted)); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.kb { display: grid; gap: 16px; align-items: start; }
.kb > .seg { justify-self: start; max-width: 100%; overflow-x: auto; }
@media (min-width: 820px) { .kb { grid-template-columns: var(--kcols, 1.2fr 1fr .45fr .45fr); } .kb > .seg { display: none; } }
@media (max-width: 819px) { .kb > .lane:not(.on) { display: none; } .kb .lane > h3 { display: none; } .kb .lane { background: none; padding: 0; } }
.kb .lane { background: var(--soft); border-radius: var(--r); padding: 14px; min-width: 0; }
.kb .lane > h3 { font-size: 15px; color: var(--ink); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 12px; }
.kb .lane > h3 .n { color: var(--muted); font-weight: 600; }
.kb .lane > h3 .tog { margin-left: auto; font: inherit; font-size: 13px; color: var(--accent); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; white-space: nowrap; }
.kb .lane.zu > h3 .tog { margin-left: 0; flex-basis: 100%; text-align: left; }
.kb .list { display: grid; gap: 8px; }
.seg.small { margin: 0 0 2px; } .seg.small button { font-size: 13px; padding: 4px 10px; }
.group { font-size: 13px; font-weight: 700; color: var(--muted); margin: 8px 2px 0; }
.group.need { color: var(--wait); }
details.kc { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); border-left: 4px solid var(--pc); }
details.kc.hot { box-shadow: inset 0 0 0 2px var(--bad-bg), var(--shadow); }
details.kc.frei { box-shadow: inset 0 0 0 2px var(--wait), var(--shadow); }
details.kc.dragging { box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: .95; }
details.kc > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; }
details.kc > summary::-webkit-details-marker { display: none; }
details.kc > summary > .kb-b { grid-column: 2; }
details.kc > summary > .kb-b:first-child { grid-column: 1 / 3; }
.kc .rk { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--soft); border: 0; border-radius: 8px; padding: 4px 8px; cursor: grab; touch-action: none; }
.kc .t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.kc .m { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; }
.kc .m .pn { color: var(--pc); font-weight: 650; }
.kc .mv { display: flex; gap: 4px; }
.kc .mv button { font: inherit; font-size: 12px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--soft); color: var(--muted); cursor: pointer; }
.kb-body { padding: 0 14px 14px; display: grid; gap: 10px; font-size: 14px; }
.kb-body .txt { white-space: pre-wrap; }
.kb-body .imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-body .imgs a { width: 110px; height: 82px; border-radius: 10px; overflow: hidden; }
.kb-body .imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb-body ol.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.kb-body ol.hist time { margin-right: 6px; color: var(--faint); }
.kb-body ol.hist b { color: var(--ink); font-weight: 600; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: var(--soft); color: var(--ink); border-radius: 10px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; }
.btn.ghost { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.ph { border: 2px dashed var(--line); border-radius: 14px; }
.kom textarea { font: inherit; width: 100%; background: var(--soft); color: var(--ink); border: 0; border-radius: 10px; padding: 8px 10px; }
.kom button { font: inherit; font-weight: 600; border: 0; background: var(--accent); color: #fff; border-radius: 10px; padding: 6px 12px; cursor: pointer; }
details.morebox > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 2px; }
details.morebox > .list { display: grid; gap: 8px; margin-top: 8px; }
@media (max-width: 819px) { .kb .lane { background: none; padding: 0; } .kb .lane > h3 { display: none; } }
a.grow { display: grid; gap: 8px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; border-left: 4px solid var(--pc); }
a.grow .gt { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
a.grow .gt b { font-size: 15px; } a.grow .gt span { color: var(--muted); font-size: 13px; }
a.grow .bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; } a.grow .bar i { display: block; height: 100%; background: var(--pc); }
.kc .rk.user { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* ---------- Für dich (3.7.0) ---------- */
.fd-wrap { display: grid; gap: 28px; }
.fd-sec { display: grid; gap: 10px; }
.fd-sec > h2 { margin: 0 0 4px; }
article.fd { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 10px; border-left: 4px solid var(--pc); }
article.fd.bad { box-shadow: inset 0 0 0 2px var(--bad), var(--shadow); }
article.fd.sent { opacity: .75; }
article.fd .t { font-weight: 650; font-size: 16px; line-height: 1.4; white-space: pre-wrap; }
article.fd .m { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
article.fd .m .pn { color: var(--pc); font-weight: 650; } article.fd .m .old { color: var(--wait); font-weight: 600; }
article.fd .txt { white-space: pre-wrap; font-size: 14px; color: var(--muted); }
article.fd details.more > summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600; }
article.fd .free { display: grid; gap: 8px; }
article.fd textarea { font: inherit; width: 100%; background: var(--soft); color: var(--ink); border: 0; border-radius: 10px; padding: 10px; }
.btn.pri { background: var(--accent); color: #fff; }
.btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.fd-note { font-size: 13px; color: var(--muted); } .fd-note.arrived { color: var(--ok); font-weight: 600; }
.copy { display: flex; gap: 8px; align-items: center; background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
a.btn { text-decoration: none; justify-self: start; }
/* 3.2.1: alle Projekt-Karten gleich – Chips einzeilig mit „…“, gleiche Höhe, Fusszeile unten bündig */
.pc { display: flex; flex-direction: column; }
.pc .foot { margin-top: auto; flex-wrap: nowrap; align-items: center; min-width: 0; }
.pc .foot .chip { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 20px; height: 26px; display: inline-flex; align-items: center; }
.pc .foot .chip:first-child { flex: none; }
.pc .foot .open { flex: none; white-space: nowrap; }
.projects { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc, .pc > * { min-width: 0; }
.pc .foot .chip { display: block; }

/* ---------- Verlauf (3.3.0) ---------- */
.page > .seg { justify-self: start; margin: 0; }
.vtools { display: grid; gap: 10px; } .vtools:empty { display: none; }
.vtools .chips button { padding: 6px 12px; font-size: 13px; }
input.search { font: inherit; font-size: 16px; width: 100%; max-width: 520px; background: var(--panel); color: var(--ink); border: 0; box-shadow: var(--shadow); border-radius: 12px; padding: 11px 14px; }
.vbody { display: grid; gap: 20px; min-width: 0; }
.vbody > .seg { justify-self: start; margin: 0; }
.vbody .sum { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; font-size: 17px; line-height: 1.55; }
.wk { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .wk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wcard { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 14px; border-top: 4px solid var(--pc); min-width: 0; }
.wcard .wh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.wcard .wh .name { font-weight: 750; font-size: 18px; color: var(--pc); } .wcard .wh .vers { font-size: 13px; color: var(--muted); }
.wcard .nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wcard .nums div { background: var(--soft); border-radius: 12px; padding: 10px; display: grid; gap: 2px; min-width: 0; }
.wcard .nums b { font-size: 20px; letter-spacing: -.02em; line-height: 1.1; } .wcard .nums span { font-size: 12px; color: var(--muted); }
.wcard h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.wcard ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.wcard .mut, .vb .mut { color: var(--muted); }
.wcard .wline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 600; }
.wcard .wline .wait { color: var(--wait); } .wcard .wline .mut { font-weight: 500; }
@media (max-width: 520px) { .wcard .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vb { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 10px; min-width: 0; }
.vb h2 { margin: 0; }
.vscroll { overflow-x: auto; }
.vt { display: grid; grid-template-columns: 96px repeat(7, minmax(44px, 1fr)) 64px; gap: 6px 6px; align-items: end; min-width: 520px; }
.vt .hd { font-size: 12px; color: var(--muted); text-align: center; } .vt .pn { font-size: 13px; font-weight: 650; align-self: center; }
.vt .cell { display: grid; justify-items: center; gap: 3px; } .vt .bar { width: 70%; border-radius: 4px 4px 2px 2px; display: block; }
.vt .v { font-size: 11px; color: var(--muted); } .vt .cell.out .v { color: var(--wait); font-weight: 700; }
.vt .sum2 { font-size: 13px; font-weight: 650; text-align: right; align-self: center; }
.vwarn { color: var(--wait); font-weight: 600; font-size: 14px; }
.timeline .tl.hit { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.timeline ul.items { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 2px; }
.ents { display: grid; gap: 10px; }
article.ent { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 6px; border-left: 4px solid var(--pc); }
article.ent .m { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
article.ent .m .pn { color: var(--pc); font-weight: 650; } article.ent .m .ok { color: var(--ok); font-weight: 600; } article.ent .m .wait { color: var(--wait); font-weight: 600; }
article.ent .fq { font-size: 14px; color: var(--muted); white-space: pre-wrap; } article.ent .a { font-weight: 650; white-space: pre-wrap; }
/* 3.3.1 Woche einheitlich: Abschnitte über alle Karten einer Reihe ausrichten (subgrid), Kacheln gleich hoch */
.wk { grid-auto-rows: auto; }
.wcard { grid-row: span 5; grid-template-rows: subgrid; align-content: start; row-gap: 14px; }
.wcard .nums div { grid-template-rows: auto auto; align-content: start; }
.wcard .nums span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* L3: Stand-Meldungen der Sitzungen */
.pc .meld { font-size: 13px; color: var(--muted); }
.pc .meld.still { color: var(--wait); font-weight: 650; }
.pc .meld.alt { color: var(--faint); }
/* 3.4.3 Für dich ruhiger: [hidden] gilt immer, Knopfreihe, gesendete Karten einzeilig, angekommene weg */
[hidden] { display: none !important; }
article.fd .t.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
article.fd .fd-hint { font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 4px 10px; justify-self: start; }
article.fd .acts { display: flex; flex-wrap: wrap; gap: 8px; }
article.fd .acts .btn { background: var(--soft); color: var(--ink); padding: 7px 14px; }
article.fd .acts .btn:hover { box-shadow: inset 0 0 0 1px var(--line); }
article.fd .free { display: grid; gap: 8px; } article.fd .free textarea { min-height: 70px; }
.btn.small { justify-self: start; padding: 7px 16px; }
.linkbtn { font: inherit; font-size: 13px; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; }
.fd-sent { display: none; align-items: center; gap: 12px; }
article.fd.sent { opacity: 1; padding: 10px 18px; gap: 4px; }
article.fd.sent > :not(.t):not(.fd-sent) { display: none; }
article.fd.sent .t { font-size: 14px; font-weight: 500; color: var(--muted); -webkit-line-clamp: 1; }
article.fd.sent .fd-sent { display: flex; }
article.fd.sent .fd-note { color: var(--muted); }
article.fd.arrived { display: none; }
.logout { position: absolute; top: 14px; right: 16px; z-index: 11; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--panel); border: 0; box-shadow: var(--shadow); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
@media (min-width: 820px) { .logout { position: fixed; top: auto; bottom: 16px; right: 16px; } }
details.kc.still { box-shadow: inset 0 0 0 2px var(--wait), var(--shadow); }
details.kc.still .m span:last-child { color: var(--wait); font-weight: 600; }
/* Wer macht gerade was (mehrere Agenten) */
.pc ul.who { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; }
.pc ul.who li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 14px; }
.pc ul.who li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); align-self: center; grid-row: 1; position: absolute; margin-left: -12px; }
.pc ul.who li { position: relative; margin-left: 12px; }
.pc ul.who li b { font-weight: 650; white-space: nowrap; }
.pc ul.who li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pc ul.who li.still::before { background: var(--wait); } .pc ul.who li.still span { color: var(--wait); }
.pc ul.who li.more { color: var(--muted); font-size: 13px; display: block; }
.pc ul.who li.more::before { display: none; }
/* Projekt-Seite: Kachel „Gerade aktiv“ über die ganze Breite, gleiche Personen-Liste wie auf der Übersicht */
.tile.wide { grid-column: 1 / -1; }
.tile ul.who, .pc ul.who { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.tile ul.who li { position: relative; margin-left: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 15px; }
.tile ul.who li::before { content: ""; position: absolute; left: -14px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.tile ul.who li b { font-weight: 650; white-space: nowrap; }
.tile ul.who li span { min-width: 0; overflow-wrap: anywhere; }
.tile ul.who li.still::before { background: var(--wait); } .tile ul.who li.still span { color: var(--wait); }
.ptiles .tile.wide { order: 9; }
@media (min-width: 700px) { .ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Im Hintergrund: ruhige Statusliste */
.slist { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 0; }
.srow { display: grid; grid-template-columns: 10px 130px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 18px; }
.srow + .srow { border-top: 1px solid var(--line); }
.srow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.srow.ok .dot { background: var(--ok); } .srow.wait .dot { background: var(--wait); } .srow.bad .dot { background: var(--bad); } .srow.idle .dot { background: var(--faint); }
.srow .sk { color: var(--muted); font-size: 14px; }
.srow .sv { font-weight: 650; font-size: 15px; }
.srow.bad .sv { color: var(--bad); } .srow.wait .ss { color: var(--wait); font-weight: 600; }
.srow .ss { color: var(--faint); font-size: 13px; text-align: right; white-space: nowrap; }
.srow .schips { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.schip { font-size: 12px; font-weight: 600; background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 2px 9px; }
.schip.still { background: var(--wait-bg); color: var(--wait); }
@media (max-width: 560px) {
  .srow { grid-template-columns: 10px minmax(0, 1fr) auto; padding: 11px 14px; }
  .srow .sk { grid-column: 2; } .srow .sv { grid-column: 2; grid-row: 2; } .srow .ss { grid-column: 3; grid-row: 1 / 3; }
  .srow .dot { grid-row: 1 / 3; } .srow .schips { grid-column: 2 / -1; }
}
@media (max-width: 560px) {
  .srow { grid-template-columns: 10px minmax(0, 1fr); }
  .srow .ss { grid-column: 2; grid-row: 3; text-align: left; white-space: normal; }
  .srow .dot { grid-row: 1 / 4; align-self: start; margin-top: 5px; }
  .srow .schips { grid-column: 2; grid-row: 4; }
}
