/* GF Board: ruhige Arbeitsoberfläche, Systemschrift, Rollenfarben als einzige kräftige Farbe */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --soft: #eef0f3; --fg: #171a21; --muted: #5f6675; --line: #dde1e7;
  --accent: #2448c9; --accent-fg: #ffffff; --danger: #c0392b; --warn: #a86400;
  --teal: #0e8f7e; --teal-bg: #d9f2ee; --amber: #b86e00; --amber-bg: #fbecd2;
  --violet: #6a3fd1; --violet-bg: #e8e0fb; --blue: #1f6fd1; --blue-bg: #dcebfd;
  --rose: #c2366b; --rose-bg: #fbe0ea; --green: #3d8a1f; --green-bg: #e3f2d6;
  --orange: #c9530f; --orange-bg: #fde4d4; --slate: #4f5b6e; --slate-bg: #e4e8ee;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318; --surface: #1a1d24; --soft: #23272f; --fg: #e9ecf1; --muted: #9aa2b1; --line: #2d323c;
    --accent: #8ea2ff; --accent-fg: #111318; --danger: #ff7a6b; --warn: #f0aa45;
    --teal: #3cc9b4; --teal-bg: #133a35; --amber: #f0aa45; --amber-bg: #3d2e14;
    --violet: #a98bff; --violet-bg: #2c2350; --blue: #6aaeff; --blue-bg: #142c4a;
    --rose: #ff7aa8; --rose-bg: #431a2a; --green: #8fd35f; --green-bg: #22361a;
    --orange: #ff9a5c; --orange-bg: #43230f; --slate: #a9b4c6; --slate-bg: #2a303b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.stack { display: grid; gap: 12px; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 8px; padding: 8px 14px; font-weight: 500; font-size: 14px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--fg); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.btn.danger.armed { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn:disabled { opacity: .55; cursor: default; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; min-width: 0; }
input, select { font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; width: 100%; }
input[type="date"] { min-height: 38px; }

/* Boot / Login */
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: grid; gap: 14px; }
.note { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: 8px; background: var(--soft); }
.note.error { color: var(--danger); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-family: var(--display); font-size: 16px; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: 12.5px; font-weight: 750; letter-spacing: .02em; }

/* Shell */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.nav a.on { color: var(--fg); background: var(--soft); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.main { max-width: 1240px; margin: 0 auto; padding: 24px 20px calc(48px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 20px; }
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding-inline: 16px; }
  .topbar .brand span:last-child, #user-email { display: none; }
  .nav { order: 3; flex-basis: 100%; }
  .main { padding-inline: 16px; padding-top: 16px; }
}

/* Personal: Kopf */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; background: var(--soft); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; min-width: 0; }
@media (max-width: 640px) { .panel { padding: 14px; border-radius: 12px; } }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }

/* Stichtag */
.st-top { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; }
.date-big { font-family: var(--display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.st-controls input[type="range"] { flex: 1 1 260px; accent-color: var(--accent); padding: 0; border: 0; background: none; }
.st-controls input[type="date"] { width: auto; }
.jumps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-family: var(--mono); }
.chip:hover, .chip.on { border-color: var(--accent); color: var(--accent); }
.dept-block { margin-top: 18px; display: grid; gap: 10px; }
.dept-head { display: flex; align-items: baseline; gap: 10px; }
.dept-head h3 { font-size: 15px; font-weight: 650; }
.snap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.role-col { border-radius: 10px; padding: 11px 13px; background: var(--cb); display: grid; gap: 6px; align-content: start; min-width: 0; }
.role-col .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.role-col .name { font-weight: 600; color: var(--c); }
.role-col .count { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.role-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.role-col li { font-size: 14px; }
.role-col li small { color: var(--muted); font-size: 12px; }
.role-col .count .plus { display: block; font-size: 11px; font-weight: 600; text-align: right; color: var(--muted); font-family: var(--font); margin-top: 2px; }
.role-col li.planned { color: var(--muted); }
.tag.plan { color: var(--muted); border-style: dashed; }
.tag.leave.planned { border-style: dashed; }
.mode-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: -6px; }
.seg-mode button.on[data-mode="plan"] { color: var(--accent); }
.role-col .none { color: var(--muted); font-size: 13.5px; font-style: italic; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 0 5px; margin: 2px 4px 0 0; border: 1px solid currentColor; white-space: nowrap; }
.tag.prob { color: var(--accent); }
.tag.fix { color: var(--warn); }
.tag.leave { color: var(--danger); }
.alerts { margin-top: 18px; display: grid; gap: 6px; }
.alert { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 8px; background: var(--soft); font-size: 14px; }
.alert time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); flex: none; }
.alert.exit { box-shadow: inset 3px 0 var(--danger); border-radius: 0 8px 8px 0; }
.alert.prob { box-shadow: inset 3px 0 var(--accent); border-radius: 0 8px 8px 0; }
.alert.fix { box-shadow: inset 3px 0 var(--warn); border-radius: 0 8px 8px 0; }

/* Farben */
.c-teal { --c: var(--teal); --cb: var(--teal-bg); } .c-amber { --c: var(--amber); --cb: var(--amber-bg); }
.c-violet { --c: var(--violet); --cb: var(--violet-bg); } .c-blue { --c: var(--blue); --cb: var(--blue-bg); }
.c-rose { --c: var(--rose); --cb: var(--rose-bg); } .c-green { --c: var(--green); --cb: var(--green-bg); }
.c-orange { --c: var(--orange); --cb: var(--orange-bg); } .c-slate { --c: var(--slate); --cb: var(--slate-bg); }

/* Gantt */
.gantt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gantt-inner { min-width: 780px; }
.g-row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.g-sec { padding: 14px 0 6px; font-weight: 650; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--line); }
.g-name { text-align: left; background: none; border: 0; padding: 10px 10px 10px 0; display: grid; gap: 1px; min-width: 0; }
.g-name strong { font-weight: 600; font-size: 14.5px; }
.g-name span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-name em { font-style: normal; color: var(--danger); }
.g-name:hover strong { color: var(--accent); }
.g-track { position: relative; min-height: 52px; cursor: crosshair; }
.g-months { position: relative; height: 46px; }
.g-month { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); padding: 8px 0 0 5px; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.g-month.year { color: var(--muted); }
.g-grid { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--soft); pointer-events: none; }
.bar { position: absolute; top: 12px; bottom: 12px; border-radius: 6px; background: var(--cb); border: 1.5px solid var(--c); color: var(--c); font-size: 12px; font-weight: 600; padding: 0 8px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; pointer-events: none; }
.bar.planned { background: repeating-linear-gradient(135deg, var(--cb) 0 6px, transparent 6px 11px); border-style: dashed; }
.endmark.planned { border-left-style: dashed; }
.bar.open { border-right-style: dashed; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cursor { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; z-index: 3; }
.today { position: absolute; top: 0; bottom: 0; border-left: 1.5px dotted var(--muted); pointer-events: none; z-index: 1; }
.cursor-label { position: absolute; top: 3px; transform: translateX(-50%); background: var(--accent); color: var(--accent-fg); font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; z-index: 4; pointer-events: none; }
.endmark { position: absolute; top: 8px; bottom: 8px; border-left: 2px solid var(--danger); pointer-events: none; z-index: 2; }
.endmark span { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 600; color: var(--danger); }
.vmark { position: absolute; top: 3px; bottom: 3px; border-left: 2.5px dashed var(--c); pointer-events: none; z-index: 3; }
.vmark span { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--surface); background: var(--c); padding: 3px 6px; border-radius: 5px; box-shadow: 0 0 0 2px var(--surface); }
.vmark.flip span { left: auto; right: 4px; }
.m-prob { --c: var(--accent); } .m-fix { --c: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 10px; border-radius: 3px; background: var(--cb); border: 1.5px solid var(--c); }
.legend i.line { width: 0; height: 12px; border: 0; border-left: 2px dashed var(--c); background: none; border-radius: 0; }
.legend i.hatch { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 5px); border: 1.5px dashed var(--muted); }
.legend i.end { width: 0; height: 12px; border: 0; border-left: 2px solid var(--danger); background: none; border-radius: 0; }
.empty { text-align: center; padding: 30px 12px; color: var(--muted); }

/* Meilensteine */
.events { list-style: none; margin: 0; padding: 0; display: grid; }
.events button { width: 100%; display: grid; grid-template-columns: 92px 12px 1fr; gap: 10px; align-items: baseline; text-align: left; background: none; border: 0; padding: 8px 6px; border-radius: 8px; }
.events button:hover { background: var(--soft); }
.events li.past { opacity: .5; }
.events time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.events small { display: block; color: var(--muted); font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); display: inline-block; }
.dot.exit { --c: var(--danger); }

/* Dialoge */
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); padding: 0; width: min(800px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgb(10 14 24 / .45); }
.dlg { padding: 20px; display: grid; gap: 14px; }
.dlg-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; position: sticky; bottom: 0; background: var(--surface); padding-top: 8px; }
.dlg-foot div { display: flex; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.phase { display: grid; grid-template-columns: 1.2fr 1fr 1fr 78px auto auto; gap: 8px; align-items: end; }
label.check { display: inline-flex; width: fit-content; max-width: 100%; justify-self: start; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--fg); font-weight: 500; padding-bottom: 9px; }
label.check input { width: auto; margin: 0; accent-color: var(--accent); }
.dlg > label.check, fieldset > label.check { padding-bottom: 0; }
.x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 8px; }
.x:hover { color: var(--danger); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding: 0 4px; color: var(--muted); }
fieldset.exitbox legend { color: var(--danger); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.err { color: var(--danger); font-size: 13.5px; margin: 0; }
.role-edit { display: grid; grid-template-columns: 1fr 120px auto auto; gap: 8px; align-items: center; }
.role-edit label.check { padding-bottom: 0; font-size: 13px; white-space: nowrap; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
@media (max-width: 560px) { .phase { grid-template-columns: 1fr 1fr; } .phase label:first-child { grid-column: 1 / -1; } .phase label.check { padding-bottom: 0; } }
@media (prefers-reduced-motion: no-preference) { .cursor, .cursor-label { transition: left .1s ease; } }

/* Datumsfeld */
.datefield { position: relative; display: block; min-width: 0; }
.datefield .df-input { padding-right: 36px; font-variant-numeric: tabular-nums; }
.df-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 6px; line-height: 0; }
.df-btn:hover { color: var(--fg); background: var(--soft); }

.st-controls .datefield { width: 160px; flex: none; }

.login-alt { display: flex; justify-content: center; }
.login-alt .btn { font-size: 12.5px; text-align: center; white-space: normal; }

.role-col .fte { font-size: 12px; color: var(--c); font-weight: 600; margin-top: -4px; }
.role-col .pct { font-size: 11.5px; font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; }

/* Einheitliche Formularfelder: gleiche Höhe und gleicher Stil für Text, Datum, Zahl und Auswahl */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select { height: 40px; line-height: 1.2; }
input[type="checkbox"] { width: auto; height: auto; }
input[type="range"] { height: auto; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%238a93a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.phase label.check { height: 40px; padding-bottom: 0; }
.phase .x { height: 40px; }

/* Stichtag-Regler direkt über der Timeline, bündig mit der Monatsleiste */
.tl-controls { display: grid; grid-template-columns: 220px 1fr; align-items: center; padding-bottom: 6px; }
.tl-date { padding-right: 14px; }
.tl-date .datefield { width: 100%; }
.tl-range { position: relative; }
.tl-range input[type="range"] { width: calc(100% + 18px); margin: 0 0 0 -9px; accent-color: var(--accent); padding: 0; border: 0; background: none; display: block; }

/* Kalender-Popup */
.df-cal { position: fixed; z-index: 1000; width: 260px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.df-cal button { border: 0; background: none; border-radius: 7px; font-size: 13.5px; }
.df-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.df-cal-head strong { font-size: 14px; }
.df-cal-head button { font-size: 20px; line-height: 1; padding: 2px 10px; color: var(--muted); }
.df-cal-head button:hover { background: var(--soft); color: var(--fg); }
.df-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.df-cal-grid em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.df-cal-grid button { height: 32px; font-variant-numeric: tabular-nums; }
.df-cal-grid button:hover { background: var(--soft); }
.df-cal-grid button.df-today { color: var(--accent); font-weight: 700; }
.df-cal-grid button.sel { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.df-cal-foot { display: flex; justify-content: space-between; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.df-cal-foot button { color: var(--accent); font-weight: 500; padding: 5px 8px; }
.df-cal-foot button:hover { background: var(--soft); }

.bar.cut { border-left-style: dotted; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.g-track { overflow: hidden; }

.tl-date { display: flex; gap: 6px; align-items: center; }
.tl-date .datefield { flex: 1; }
.tl-date #p-today { height: 40px; flex: none; }
#p-today.on { border-color: var(--accent); color: var(--accent); }

.today-label { position: absolute; bottom: 2px; transform: translateX(-50%); background: var(--soft); color: var(--muted); border: 1px dashed var(--muted); font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 4px; white-space: nowrap; z-index: 2; pointer-events: none; }

/* Planstelle: Häkchen für geplante Phasen/Kündigung ausblenden (gilt dort automatisch) */
.only-plan { display: none; }
.is-plan .only-plan { display: inline; }
.is-plan .hide-plan { display: none; }
.is-plan .phase label.check { visibility: hidden; }
.is-plan label.check:has(#pe-exitplanned) { display: none; }

/* ---------- Büro ---------- */
.b-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.b-datebox { width: 260px; padding: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { background: var(--soft); border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat strong { font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.stat.ok strong { color: var(--green); }
.stat.bad { background: color-mix(in srgb, var(--danger) 12%, var(--soft)); }
.stat.bad strong { color: var(--danger); }
#b-verdict:not(:empty) { margin-top: 12px; }
.chart { margin: 8px 0 26px; }
.chart-area { position: relative; height: 150px; display: flex; gap: 3px; border-bottom: 1px solid var(--line); }
.cbar { position: relative; flex: 1; height: 100%; border: 0; background: none; padding: 0; border-radius: 4px 4px 0 0; }
.cbar:hover { background: var(--soft); }
.cbar i { position: absolute; left: 12%; right: 12%; bottom: 0; background: var(--teal-bg); border: 1.5px solid var(--teal); border-bottom: 0; border-radius: 4px 4px 0 0; }
.cbar.over i { background: color-mix(in srgb, var(--danger) 18%, transparent); border-color: var(--danger); }
.cbar.cur i { box-shadow: 0 0 0 2px var(--accent); }
.cbar span { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.cline { position: absolute; left: 0; right: 0; border-top: 2px solid var(--accent); pointer-events: none; z-index: 2; }
.cline.cap { border-top: 2px dashed var(--muted); }
.cline em { position: absolute; right: 0; top: -18px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--surface); padding: 0 4px; border-radius: 3px; }
.cline.cap em { color: var(--muted); right: 90px; }
.unseated { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 8px; border: 1.5px dashed var(--line); border-radius: 10px; align-items: center; }
.unseated.drop, .seat.drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--cb, var(--soft)); color: var(--fg); font-size: 13.5px; font-weight: 600; cursor: grab; border: 1.5px solid var(--c, var(--line)); max-width: 100%; }
.pchip .dot { background: var(--c, var(--muted)); }
.pchip small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.pchip.planned { border-style: dashed; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.room { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.room-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.room-head h3 { font-size: 16px; font-weight: 650; }
.room .cap { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 4px; }
.room .cap.warn { color: var(--warn); border-color: var(--warn); }
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.seat { min-height: 74px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; align-content: start; cursor: pointer; background: var(--bg); text-align: left; font: inherit; color: inherit; }
.seat:hover { border-color: var(--accent); }
.seat.taken { border-style: solid; background: var(--surface); }
.seat-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.seat-free { font-size: 13px; color: var(--muted); font-style: italic; }
.seat.add { align-content: center; justify-content: center; color: var(--accent); font-weight: 600; font-size: 13.5px; }

.pchip .dots { display: inline-flex; gap: 3px; }
.room-warn { font-size: 13px; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-radius: 8px; padding: 6px 10px; margin: 0; }

.b-tl { margin-top: 12px; }
.b-tl .tl-range { padding-bottom: 22px; }
.b-axis { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; border-top: 1px solid var(--line); }
.ax-m { position: absolute; top: 3px; padding-left: 4px; border-left: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; line-height: 14px; }
.ax-today { position: absolute; top: -26px; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--soft); border: 1px dashed var(--muted); border-radius: 4px; padding: 0 5px; pointer-events: none; }
.b-tl .tl-range input[type="range"] { position: relative; z-index: 1; }
#b-verdict:not(:empty) { margin-top: 14px; display: grid; gap: 6px; }
.ax-m.tick { height: 6px; padding: 0; }
.b-tl .tl-range { padding-bottom: 40px; }
.b-axis { height: 38px; }
.ax-today { top: 19px; }
