/* Fab OS Web – Fab CC Design System */
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Regular.otf"); font-weight: 400; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Medium.otf"); font-weight: 500; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-SemiBold.otf"); font-weight: 600; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Bold.otf"); font-weight: 700; }

:root {
  --blue: #0057FF; --blue-700: #0038A6; --blue-600: #0047D1; --blue-300: #7AA1FF; --blue-100: #D6E2FF; --blue-50: #EEF3FF;
  --ink-900: #0B0B0F; --ink-800: #16161C; --ink-700: #23232B; --ink-600: #3A3A45; --ink-500: #5C5C69; --ink-400: #8A8A97;
  --ink-300: #B9B9C4; --ink-200: #DADAE1; --ink-100: #ECECF0; --ink-50: #F4F4F7; --ink-25: #F9F9FB;
  --success: #00A25B; --warning: #FFB000; --danger: #E5342A;
  --paper: #FFFFFF; --surface: #FFFFFF; --surface-muted: #F4F4F7; --text: #0B0B0F; --text-2: #5C5C69; --text-3: #8A8A97;
  --border: #DADAE1; --hover: #ECECF0; --link: #0057FF; --blue-fill: #EEF3FF; --success-fill: #E6F6EE; --warning-fill: #FFF4D6; --danger-fill: #FCE7E5;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0B0B0F; --surface: #16161C; --surface-muted: #1C1C24; --text: #F4F4F7; --text-2: #B9B9C4; --text-3: #8A8A97;
    --border: #2E2E38; --hover: #23232B; --link: #7AA1FF; --blue-fill: #0F1E44; --success-fill: #0F2A1D; --warning-fill: #332600; --danger-fill: #3A1210; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--text); font: 14px/1.45 "Pretendard", -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h3 { font-size: 16px; font-weight: 700; margin: 0; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.eyebrow.blue { color: var(--link); }
.muted { color: var(--text-2); } .tiny { font-size: 11px; } .small { font-size: 12px; } .num { font-variant-numeric: tabular-nums; }
.code { font-weight: 500; letter-spacing: 0.03em; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; } .col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; } .right { margin-left: auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card.muted { background: var(--surface-muted); border-color: transparent; }
.section { display: flex; flex-direction: column; gap: 10px; }
.section .eyebrow { margin-bottom: 2px; }
.section .foot { font-size: 12px; color: var(--text-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; white-space: nowrap; background: transparent; color: var(--text); transition: background .12s; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--blue); color: #fff; } .btn.primary:hover { background: var(--blue-600); } .btn.primary:active { background: var(--blue-700); }
.btn.secondary { box-shadow: inset 0 0 0 1.5px var(--text); } .btn.secondary:hover { background: var(--hover); }
.btn.white { background: #fff; color: var(--blue); } .btn.outline-white { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; } .btn.outline-white:hover { background: rgba(255,255,255,.16); }
.btn.icon { width: 28px; height: 28px; padding: 0; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.lg { padding: 12px 22px; font-size: 16px; }

/* Segmented */
.seg { display: inline-flex; background: var(--surface-muted); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg button.on { background: var(--blue); color: #fff; }
.seg.lg button { padding: 11px 26px; font-size: 16px; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--hover); color: var(--text); white-space: nowrap; }
.tag.blue { background: var(--blue-fill); color: var(--link); } .tag.success { background: var(--success-fill); color: var(--success); }
.tag.warning { background: var(--warning-fill); color: #7A5200; } .tag.danger { background: var(--danger-fill); color: var(--danger); }

/* Fields */
.field { display: flex; align-items: center; gap: 12px; }
.field > label { width: 200px; flex: none; }
.field input, .field select, .field textarea, input.box, select.box { flex: 1; min-width: 0; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); outline: none; }
.field input:focus, input.box:focus, select.box:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,255,.18); }
.field .unit { color: var(--text-2); font-size: 12px; }
.field input[type="date"], .field input[type="time"] { flex: 0 0 auto; min-width: 170px; width: auto; -webkit-appearance: none; appearance: none; font: inherit; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper b { min-width: 60px; text-align: center; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle .sw { width: 40px; height: 22px; border-radius: 999px; background: var(--ink-300); position: relative; transition: background .12s; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .12s; }
.toggle.on .sw { background: var(--blue); } .toggle.on .sw::after { left: 20px; }
.progress { height: 4px; background: var(--hover); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue); }

/* Layout */
#app { height: 100%; display: flex; }
.sidebar { width: 210px; flex: none; background: var(--surface-muted); display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.sidebar .brand { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sidebar nav { display: flex; flex-direction: column; padding: 4px 8px; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; }
.sidebar nav a.on { background: var(--blue-fill); color: var(--link); }
.sidebar .foot { margin-top: auto; padding: 10px 12px; border-top: 1px solid var(--border); font-size: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.main .body { flex: 1; overflow: auto; padding: 24px 28px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.banner.warn { background: var(--warning-fill); } .banner.blue { background: var(--blue-fill); }
.wordmark { display: inline-block; width: 4.52em; height: 1em; background: currentColor; -webkit-mask: url("logo.svg") no-repeat left center / contain; mask: url("logo.svg") no-repeat left center / contain; vertical-align: middle; }
.wordmark i { display: none; }
.wordmark-rsvp { display: inline-block; font-weight: 800; letter-spacing: -0.02em; line-height: 1; } .wordmark-rsvp b { font-weight: 600; opacity: .7; }

/* Blue full screens */
.blue-screen { position: fixed; inset: 0; background: var(--blue); color: #fff; overflow: auto; padding: 32px 48px; display: flex; flex-direction: column; }
.blue-screen .eyebrow { color: rgba(255,255,255,.75); }
.blue-screen h1.display { font-size: 48px; letter-spacing: -0.03em; color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; cursor: pointer; font-weight: 600; background: transparent; border: 0; }
.pill .av { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.pill.on { background: #fff; color: var(--blue); box-shadow: none; } .pill.on .av { background: var(--blue); color: #fff; }
.mode-card { background: #fff; color: var(--ink-900); border-radius: 6px; padding: 32px; width: 460px; height: 280px; display: flex; flex-direction: column; gap: 16px; cursor: pointer; box-shadow: 0 6px 12px rgba(11,11,15,.12); transition: transform .18s, box-shadow .18s; border: 0; text-align: left; }
.mode-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11,11,15,.28); }
.mode-card .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.mode-card h2 { font-size: 30px; letter-spacing: -0.02em; } .mode-card p { margin: 0; color: var(--ink-500); font-size: 15px; }
.mode-card .go { margin-top: auto; color: var(--blue); font-weight: 600; }

/* Scan */
.scan-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.scan-field { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.scan-field:focus-within { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.scan-field input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 28px; font-weight: 500; }
.flash { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 6px; border: 1px solid; }
.flash.ok { background: var(--success-fill); border-color: var(--success); color: var(--success); }
.flash.bad { background: var(--danger-fill); border-color: var(--danger); color: var(--danger); }
.flash b { font-size: 24px; } .flash .d { color: var(--text); }
.bignum { font-size: 40px; font-weight: 700; line-height: 1; }

/* Rack */
.rack { display: flex; gap: 8px; align-items: flex-start; }
.rack .col { gap: 6px; }
.cell { width: 170px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 8px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.cell.free { background: var(--surface-muted); border-style: dashed; color: var(--text-3); align-items: center; justify-content: center; }
.cell.small { height: 58px; } .cell.large { height: 92px; }
.cell.target { background: var(--blue); color: #fff; border-color: var(--blue); animation: pulse .75s ease-in-out infinite alternate; }
.cell.dim { opacity: .55; }
.cell.dragover { outline: 3px solid var(--blue); }
@keyframes pulse { from { transform: scale(1); box-shadow: 0 0 6px rgba(0,87,255,.15); } to { transform: scale(1.06); box-shadow: 0 0 22px rgba(0,87,255,.55); } }
.rowlabel { width: 44px; font-size: 12px; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.level { width: 290px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-muted); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.level.target { background: var(--blue); color: #fff; animation: pulse .75s ease-in-out infinite alternate; }
.chip { display: inline-flex; flex-direction: column; min-width: 120px; padding: 6px; border-radius: 6px; background: var(--warning-fill); border: 1px solid rgba(255,176,0,.4); font-size: 12px; cursor: pointer; }
.chip.empty { background: var(--danger-fill); }

/* Overlay */
.overlay { position: fixed; inset: 0; background: rgba(11,11,15,.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.overlay .box { background: var(--blue); color: #fff; border-radius: 8px; padding: 32px; display: flex; gap: 28px; max-width: 1400px; width: 100%; max-height: 100%; }
.overlay .box .rackpane { background: var(--paper); color: var(--text); border-radius: 6px; padding: 16px; flex: 1; overflow: auto; }
.guide { position: fixed; inset: 0; background: var(--paper); z-index: 40; display: flex; flex-direction: column; padding: 28px; gap: 16px; }
.guide .huge { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; color: var(--link); line-height: 1; }
.guide .big { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

/* Lists */
.list { display: flex; flex-direction: column; }
.list .item { display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-bottom: 1px solid var(--border); }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 6px; border-bottom: 1px solid var(--text); }
table.tbl td { padding: 7px 6px; border-bottom: 1px solid var(--hover); }
.modal { position: fixed; inset: 0; background: rgba(11,11,15,.45); display: flex; align-items: center; justify-content: center; z-index: 60; }
.modal .win { background: var(--paper); border-radius: 8px; padding: 24px; width: min(640px, calc(100vw - 24px)); max-width: 100%; box-sizing: border-box; max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal .win.wide { width: min(860px, calc(100vw - 24px)); }
.field > *:not(label) { min-width: 0; }
.swatch-grid, .swatch-row { min-width: 0; }
.hidden { display: none !important; }
label.plain { display: flex; gap: 8px; align-items: center; }

/* Rundgang */
.tour { position: fixed; right: 24px; bottom: 24px; width: 520px; max-width: calc(100vw - 48px); background: var(--blue); color: #fff; border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 24px rgba(11,11,15,.35); z-index: 70; }
.tour ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Einheitliche Seitenköpfe ---------- */
.body > .row:first-child { flex-wrap: wrap; row-gap: 10px; margin-bottom: 4px; }
.body > .row:first-child h1, .body > .row:first-child h2 { margin-right: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.tbl-wrap { overflow-x: auto; }

/* ---------- Kopf-/Tableiste (nur schmal) ---------- */
.topbar { display: none; align-items: center; gap: 10px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--surface-muted); border-bottom: 1px solid var(--border); flex: none; }
.tabbar { display: none; }
.scrim { display: none; }
.scan-field .cam-btn { width: 44px; height: 44px; font-size: 20px; box-shadow: none; background: var(--blue-fill); color: var(--link); flex: none; }
.scan-field .cam-btn:hover { background: var(--blue-100); }

/* ---------- Kamera-Scan ---------- */
.cam { position: fixed; inset: 0; background: #000; z-index: 90; display: flex; flex-direction: column; color: #fff; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-frame { position: absolute; left: 50%; top: 50%; width: min(78vw, 520px); height: min(34vh, 260px); transform: translate(-50%, -50%); border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); pointer-events: none; }
.cam-frame i { position: absolute; inset: 0; border: 3px solid #fff; border-radius: 12px; opacity: .9; }
.cam-frame::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--blue-300); box-shadow: 0 0 10px var(--blue); animation: scanline 1.6s ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
.cam.hit .cam-frame i { border-color: var(--success); box-shadow: 0 0 24px var(--success); }
.cam-top, .cam-bottom { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.cam-top { padding-top: calc(16px + env(safe-area-inset-top)); }
.cam-title { font-weight: 600; font-size: 16px; flex: 1; }
.cam-bottom { margin-top: auto; flex-direction: column; align-items: stretch; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.cam-status { font-size: 13px; opacity: .85; text-align: center; }
.cam-last { min-height: 44px; border-radius: 8px; padding: 10px 14px; font-weight: 600; text-align: center; background: rgba(255,255,255,.12); }
.cam-last.ok { background: var(--success); color: #fff; } .cam-last.bad { background: var(--danger); color: #fff; }
.cam-last:empty { display: none; }

/* ---------- Kiosk ---------- */
.kiosk { position: fixed; inset: 0; background: var(--paper); display: flex; flex-direction: column; gap: 18px; padding: 20px 28px; padding-top: calc(16px + env(safe-area-inset-top)); overflow: auto; }
.kiosk-top { gap: 18px; flex-wrap: wrap; }
.kiosk-main { max-width: 900px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.scan-field.xl { padding: 22px 26px; }
.scan-field.xl input { font-size: 34px; }
.flash.xl { padding: 22px 26px; } .flash.xl b { font-size: 34px; } .flash.xl .d { font-size: 18px; }
.kiosk-idle { text-align: center; color: var(--text-3); font-size: 22px; font-weight: 500; padding: 26px; border: 1px dashed var(--border); border-radius: 6px; }
.kiosk .bignum { font-size: 56px; }
.kiosk > .card { max-width: 900px; width: 100%; margin: 0 auto; }

/* ---------- Schmale Bildschirme (Handy, Tablet hochkant) ---------- */
@media (max-width: 820px) {
  #app { flex-direction: column; }
  .topbar { display: flex; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 85vw; z-index: 45; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(11,11,15,.3); padding-top: env(safe-area-inset-top); }
  .sidebar.open { transform: none; }
  .sidebar.open ~ .scrim, .scrim:has(~ .sidebar.open) { display: block; }
  .sidebar.open + .scrim { display: block; }
  .scrim { position: fixed; inset: 0; background: rgba(11,11,15,.4); z-index: 44; }
  .main { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .main .body { padding: 16px 14px; }
  h1 { font-size: 22px; } h2 { font-size: 18px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface-muted); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 4px 2px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar a span { font-size: 18px; line-height: 1; }
  .tabbar a.on { color: var(--link); background: var(--blue-fill); }
  .field { flex-direction: column; align-items: stretch; gap: 4px; }
  .field > label { width: auto; font-size: 12px; color: var(--text-2); }
  .field input, .field select, .field textarea { width: 100%; }
  .modal { align-items: flex-end; } .modal .win { width: 100%; max-height: 92vh; border-radius: 10px 10px 0 0; padding: 18px; }
  .scan-wrap { gap: 14px; }
  .scan-field { padding: 12px 14px; gap: 10px; } .scan-field input { font-size: 20px; }
  .seg.lg button { padding: 9px 14px; font-size: 14px; }
  .btn { padding: 8px 12px; }
  .blue-screen { padding: 20px 18px; padding-top: calc(20px + env(safe-area-inset-top)); }
  .blue-screen h1.display { font-size: 34px; }
  .mode-card { width: 100%; height: auto; padding: 22px; gap: 10px; } .mode-card h2 { font-size: 24px; }
  .blue-screen .row[style*="flex-start"] { flex-direction: column; }
  .overlay { padding: 10px; } .overlay .box { flex-direction: column; padding: 18px; gap: 14px; overflow: auto; }
  .guide { padding: 16px; } .guide .huge { font-size: 40px; } .guide .big { font-size: 26px; }
  .tour { right: 10px; left: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); width: auto; padding: 16px; }
  .level { width: 100%; }
  .rack { overflow-x: auto; padding-bottom: 8px; }
  .cell { width: 140px; }
  table.tbl { min-width: 640px; }
  .kiosk { padding: 12px 12px; }
  .kiosk-top .seg.lg button { padding: 8px 12px; font-size: 13px; }
  .scan-field.xl input { font-size: 24px; }
  .kiosk .bignum { font-size: 40px; }
}
@media (max-width: 480px) {
  .list .item { flex-wrap: wrap; gap: 8px; }
  .body > .row:first-child .btn { padding: 7px 10px; font-size: 13px; }
}

.scan-wrap > .row { flex-wrap: wrap; row-gap: 10px; }
.scan-wrap .muted.small { white-space: nowrap; }
@media (max-width: 820px) { .scan-wrap > .row .seg.lg { flex: 1; justify-content: center; } .scan-wrap > .row .seg.lg button { flex: 1; } }
.scan-field, .kiosk-main { min-width: 0; }
.scan-field input { min-width: 0; }
.kiosk-top .seg.lg { flex: 1; min-width: 0; }
@media (max-width: 820px) { .kiosk-top .seg.lg { flex-basis: 100%; order: 3; } .kiosk-top .seg.lg button { flex: 1; } }

/* ---------- Wallboard (großer Monitor) ---------- */
.board { position: fixed; inset: 0; background: var(--ink-900); color: #F4F4F7; display: flex; flex-direction: column; gap: 22px; padding: 28px 36px; overflow: auto; --text: #F4F4F7; --text-2: #B9B9C4; --text-3: #8A8A97; --border: #2E2E38; --surface: #16161C; --surface-muted: #1C1C24; --hover: #23232B; --link: #7AA1FF; --blue-fill: #0F1E44; }
.board .muted { color: #B9B9C4; } .board .eyebrow { color: #8A8A97; }
.bhead { gap: 14px; } .bclock { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.board .btn.icon { color: #fff; box-shadow: inset 0 0 0 1px #2E2E38; }
.bgrid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; flex: 1; min-height: 0; }
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; align-content: start; }
.bcard { background: #16161C; border: 1px solid #2E2E38; border-radius: 8px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.bcard.done { border-color: var(--success); }
.bname { font-size: 26px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpct { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--blue-300); flex: none; } .bpct small { font-size: 22px; }
.bcard.done .bpct { color: var(--success); }
.bprog { height: 10px; border-radius: 5px; background: #23232B; overflow: hidden; } .bprog i { display: block; height: 100%; background: var(--blue); transition: width .6s; }
.bcard.done .bprog i { background: var(--success); }
.bstats { display: flex; gap: 22px; flex-wrap: wrap; } .bstats div { display: flex; flex-direction: column; } .bstats b { font-size: 24px; line-height: 1.1; } .bstats span { font-size: 12px; color: #8A8A97; }
.bfoot { font-size: 14px; color: #B9B9C4; flex-wrap: wrap; } .bfoot b { color: #fff; }
.balert { background: #3A1210; color: #FF8A80; border-radius: 6px; padding: 8px 12px; font-weight: 600; font-size: 13px; }
.bside { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.bpanel { background: #16161C; border: 1px solid #2E2E38; border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bfeed { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #23232B; font-size: 14px; } .bfeed b { color: #fff; }
.bfeed.pack { border-left: 3px solid var(--blue); padding-left: 8px; } .bfeed.in { border-left: 3px solid var(--success); padding-left: 8px; } .bfeed.out { border-left: 3px solid var(--warning); padding-left: 8px; }
.board .tag.blue { background: #0F1E44; color: #7AA1FF; }
@media (max-width: 1100px) { .bgrid { grid-template-columns: 1fr; } .bcards { grid-template-columns: 1fr; } .board { padding: 16px; } }
.bfeed .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bfeed .tiny { white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Icons (ein Satz für alle Bereiche) ---------- */
.ic { display: inline-flex; width: 18px; height: 18px; flex: none; align-items: center; justify-content: center; }
.ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar nav a .ic { color: var(--text-2); } .sidebar nav a.on .ic { color: var(--link); }
.tabbar a .ic { width: 22px; height: 22px; } .tabbar a .ic svg { width: 22px; height: 22px; }
.mode-card .ic svg { width: 30px; height: 30px; stroke-width: 1.5; }

/* ---------- Eingebettet in der Mac-App: nur der Inhalt, Navigation macht die native Seitenleiste ---------- */
.embed .sidebar, .embed .topbar, .embed .tabbar, .embed .scrim { display: none !important; }
.embed #app { flex-direction: row; }
.embed .main { padding-bottom: 0; }

/* ---------- Projekte ---------- */
.dropzone { border: 2px dashed var(--border); border-radius: 6px; padding: 22px; background: var(--surface-muted); transition: border-color .12s, background .12s; }
.dropzone.over { border-color: var(--blue); background: var(--blue-fill); }
.field textarea { flex: 1; min-width: 0; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); outline: none; resize: vertical; font: inherit; }
.field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,255,.18); }
.part-row input.box, .part-row select.box { padding: 6px 8px; }
.tbl tr[data-fn]:hover td { background: var(--hover); }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }

/* ---------- Rundgang mit Hervorhebung ---------- */
.coach { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.coach-scrim { position: absolute; inset: 0; }
.coach-hole { position: absolute; border-radius: 8px; box-shadow: 0 0 0 100vmax rgba(11,11,15,.55), 0 0 0 3px var(--blue), 0 0 24px rgba(0,87,255,.6); transition: left .25s, top .25s, width .25s, height .25s; animation: coachPulse 1.4s ease-in-out infinite alternate; }
.coach-hole[style*="display: none"] + .coach-card { box-shadow: 0 0 0 100vmax rgba(11,11,15,.55), 0 14px 40px rgba(11,11,15,.4); }
@keyframes coachPulse { from { box-shadow: 0 0 0 100vmax rgba(11,11,15,.55), 0 0 0 3px var(--blue), 0 0 10px rgba(0,87,255,.4); } to { box-shadow: 0 0 0 100vmax rgba(11,11,15,.55), 0 0 0 4px var(--blue), 0 0 30px rgba(0,87,255,.8); } }
.coach-card { position: absolute; pointer-events: auto; background: var(--blue); color: #fff; border-radius: 8px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 40px rgba(11,11,15,.4); transition: left .25s, top .25s; }
.coach-card h2 { font-size: 20px; } .coach-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #fff; }
.coach-card .coach-tip { font-size: 13px; color: rgba(255,255,255,.85); border-left: 2px solid rgba(255,255,255,.5); padding-left: 10px; }
.coach-dots { display: flex; gap: 4px; flex-wrap: wrap; } .coach-dots i { width: 14px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); } .coach-dots i.done { background: rgba(255,255,255,.7); } .coach-dots i.on { background: #fff; width: 22px; }
@media (prefers-reduced-motion: reduce) { .coach-hole { animation: none; } }

/* Farb-Swatches (Katalog, Positionen) */
.swatch { display: inline-block; flex: none; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); background-size: cover; background-position: center; box-sizing: border-box; }
.swatch.pick { cursor: pointer; }
.swatch.pick:hover { transform: scale(1.12); }
.swatch.sel { box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 4px var(--blue); }
.swatch-row { display: inline-flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.swatch-grid { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.swatch-item { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.swatch-item button { border: 0; background: transparent; color: var(--ink-500); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.swatch-item button:hover { color: var(--danger); }
.size-pick { cursor: pointer; border: 1px solid var(--border); }

.btn.small { padding: 4px 10px; font-size: 12px; }

/* Feinschliff 2026-09: Listen, Modal, Thread */
.list .item:not(label):hover { background: var(--surface-muted); }
.modal .win { position: relative; }
.modal .win .mclose { position: sticky; top: 0; align-self: flex-end; margin: -8px -8px -28px 0; z-index: 2; background: var(--paper); box-shadow: inset 0 0 0 1px var(--border); }
.modal .win .mclose:hover { background: var(--hover); }
.thread > * { flex: none; }
.thread .sysline { align-self: center; text-align: center; padding: 2px 10px; border-radius: 999px; background: var(--surface-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.level > .row:first-child { flex-wrap: nowrap; }
.sidebar nav a { transition: background .12s; } .sidebar nav a:hover:not(.on) { background: var(--hover); }
.btn.icon:hover { box-shadow: inset 0 0 0 1px var(--text-2); }
