:root{--bg:#eef2f6;--surface:#fff;--surface-2:#f8fafc;--line:#dde5ed;--text:#0f172a;--muted:#64748b;--brand:#0d7d78;--brand-dark:#0a615d;--green:#16a34a;--green-soft:#dcfce7;--yellow:#b45309;--yellow-soft:#fef3c7;--red:#dc2626;--red-soft:#fee2e2;--radius:12px;--shadow:0 1px 2px #0f172a0f, 0 8px 24px #0f172a0f;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0}h1,h2,h3{margin:0;line-height:1.2}.num,.num-mixed{font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.small{font-size:.8rem}.warn{color:var(--red);font-weight:600}.flag{color:var(--yellow);font-weight:600}.loading{height:100%;color:var(--muted);place-items:center;font-size:1.1rem;display:grid}button{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;border-radius:8px;padding:.35rem .7rem}button:hover:not(:disabled){border-color:var(--brand);color:var(--brand-dark)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}button.ghost{background:0 0}button.primary{background:var(--brand);border-color:var(--brand);color:#fff;padding:.6rem 1.4rem;font-weight:600}.leitstand{grid-template-rows:auto minmax(0,1fr);height:100%;display:grid}.topbar{background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:1.25rem;padding:.6rem 1rem;display:flex}.topbar-clock{align-items:baseline;gap:.6rem;display:flex}.topbar-clock .day{font-weight:700}.topbar-clock .time{letter-spacing:.02em;font-size:1.5rem;font-weight:700}.speeds{gap:.25rem;display:flex}.speeds button{min-width:3rem}.speeds button.is-active{background:var(--brand);border-color:var(--brand);color:#fff}.view-tools{gap:.3rem;display:flex}.view-tools button.is-active{background:var(--surface-2);border-color:var(--brand);color:var(--brand-dark)}.topbar-stats{flex-wrap:wrap;align-items:center;gap:1rem;margin-left:auto;display:flex}.topbar-stats .money{font-size:1.15rem;font-weight:700}.stars{letter-spacing:.05em;color:var(--yellow)}.stars .num{color:var(--muted);font-size:.85rem}.columns{grid-template-columns:minmax(290px,24%) 1fr minmax(250px,22%);gap:.75rem;min-height:0;padding:.75rem;display:grid}.column{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-height:0;padding:.75rem;overflow-y:auto}.column h2{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:.6rem;font-size:.78rem}.column h2.team-heading{margin-top:1.25rem}.empty{padding:1rem 0}.patient-list,.room-occupants,.team,.log,.incidents{margin:0;padding:0;list-style:none}.patient-list{gap:.4rem;display:grid}.patient{text-align:left;border:1px solid var(--line);background:var(--surface-2);border-radius:10px;gap:.3rem;width:100%;padding:.55rem .6rem;display:grid}.patient.is-selected{border-color:var(--brand);box-shadow:inset 3px 0 0 var(--brand)}.patient.is-weak{border-color:var(--yellow)}.patient.is-critical{border-color:var(--red);background:var(--red-soft)}.patient-head{align-items:center;gap:.45rem;display:flex}.patient-number{font-weight:700}.patient-name{font-weight:600}.patient-waited{color:var(--muted);margin-left:auto;font-size:.82rem}.patient-symptom{color:var(--text);font-size:.85rem}.patient-meters{align-items:center;gap:.5rem;display:flex}.patience{color:var(--yellow);white-space:nowrap;font-size:.78rem}.patience.is-urgent{color:var(--red);font-weight:700}.triage{white-space:nowrap;border-radius:999px;align-items:center;gap:.3rem;padding:.1rem .45rem;font-size:.72rem;font-weight:700;display:inline-flex}.triage-dot{background:currentColor;border-radius:50%;width:8px;height:8px}.triage-gruen{background:var(--green-soft);color:var(--green)}.triage-gelb{background:var(--yellow-soft);color:var(--yellow)}.triage-rot{background:var(--red-soft);color:var(--red)}.bar-row{flex:1;align-items:center;gap:.4rem;display:flex}.bar{background:#e2e8f0;border-radius:999px;flex:1;height:7px;overflow:hidden}.bar-fill{background:var(--brand);height:100%;transition:width .25s linear}.bar-good .bar-fill{background:var(--green)}.bar-warn .bar-fill{background:var(--yellow)}.bar-bad .bar-fill{background:var(--red)}.bar-label{color:var(--muted);text-align:right;min-width:3.2rem;font-size:.75rem}.clinic-main{background:#e8e4dc;min-height:0;position:relative;overflow:hidden}.praxis-stage{background:#e8e4dc;position:absolute;inset:0}.praxis-viewport{width:100%;height:100%;position:relative;overflow:hidden}.praxis-canvas{cursor:grab;touch-action:none;width:100%;height:100%;display:block}.praxis-viewport.is-dragging .praxis-canvas{cursor:grabbing}.praxis-canvas:focus-visible{outline:3px solid var(--brand);outline-offset:-3px}.praxis-camera-controls{z-index:5;border:1px solid var(--line);box-shadow:var(--shadow);background:#ffffffeb;border-radius:8px;gap:.25rem;padding:.25rem;display:flex;position:absolute;top:.75rem;right:.75rem}.praxis-camera-controls button{width:2rem;height:2rem;padding:0;font-weight:700}.game-panel,.room-panel{z-index:4;border:1px solid var(--line);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fffffff7;border-radius:8px;position:absolute}.game-panel{width:min(390px,100% - 1.5rem);max-height:calc(100% - 7.5rem);padding:.75rem;top:.75rem;left:.75rem;overflow-y:auto}.game-panel-head{z-index:1;border-bottom:1px solid var(--line);background:#fffffff7;justify-content:space-between;align-items:center;margin:-.75rem -.75rem .75rem;padding:.65rem .75rem;display:flex;position:sticky;top:-.75rem}.game-panel-head h2,.game-panel h3{text-transform:uppercase;letter-spacing:.08em;font-size:.82rem}.game-panel h3{color:var(--muted);margin:.9rem 0 .45rem}.game-panel-head button,.panel-close{width:2rem;height:2rem;padding:0;font-size:1.2rem}.incoming-list{gap:.4rem;margin:0;padding:0;list-style:none;display:grid}.incoming-list li{border:1px solid var(--line);background:var(--surface-2);border-radius:8px;grid-template-columns:1fr auto;align-items:center;gap:.6rem;padding:.55rem;display:grid}.incoming-list small{color:var(--muted);margin-top:.2rem;display:block}.room-panel{width:min(360px,100% - 1.5rem);padding:.75rem;top:4.25rem;right:.75rem}.room-panel .panel-close{z-index:1;position:absolute;top:.35rem;right:.35rem}.room-panel .room{background:0 0;border:0;padding:0}.room-selector{z-index:3;pointer-events:none;justify-content:center;gap:.35rem;display:flex;position:absolute;bottom:4.75rem;left:.75rem;right:.75rem;overflow-x:auto}.room-selector button{box-shadow:var(--shadow);pointer-events:auto;flex:none;font-size:.76rem}.room-selector button.is-active{border-color:var(--brand);background:#eef4fd}.selection-overlay{z-index:3;border:1px solid var(--line);min-height:3.25rem;box-shadow:var(--shadow);border-radius:8px;position:absolute;bottom:.75rem;left:.75rem;right:.75rem}.ausbau{grid-template-rows:auto 1fr;height:100%;display:grid}.ausbau-body{grid-template-columns:minmax(260px,22%) 1fr;gap:.75rem;min-height:0;padding:.75rem;display:grid}.ausbau-katalog{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:.75rem;overflow-y:auto}.ausbau-katalog h2{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:.6rem;font-size:.78rem}.katalog-list{gap:.4rem;margin:0 0 .75rem;padding:0;list-style:none;display:grid}.katalog-list button{text-align:left;gap:.15rem;width:100%;padding:.55rem .7rem;display:grid}.katalog-list button.is-active{border-color:var(--brand);background:#eef4fd}.ausbau-stage{border:1px solid var(--line);border-radius:var(--radius);background:#e8e4dc;min-height:0;overflow:hidden}.dayend-actions{justify-content:center;gap:.6rem;display:flex}.gallery{grid-template-rows:auto 1fr;height:100vh;display:grid}.gallery-head{background:var(--surface);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:.6rem 1rem;display:flex}.gallery-stage{min-height:0}.room{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;align-content:start;gap:.5rem;padding:.6rem;display:grid}.room-belegt{border-color:var(--brand)}.room-reinigung{background:#f1f5f9}.room-gesperrt{opacity:.7;border-style:dashed}.room-head{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.room-head h3{font-size:.95rem}.room-state{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.72rem}.room-occupants{gap:.3rem;display:grid}.occupant-head{font-size:.85rem}.room-empty{min-height:2.4rem;margin:0;font-size:.82rem}.room-actions{flex-wrap:wrap;gap:.3rem;display:flex}.room-actions button{padding:.25rem .5rem;font-size:.78rem}.team{gap:.5rem;display:grid}.team li{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;gap:.15rem;max-width:22rem;padding:.5rem .6rem;display:grid}.team li.is-tired{border-color:var(--yellow)}.team-name{font-weight:600}.log{gap:.3rem;font-size:.82rem;display:grid}.log li{border-bottom:1px solid var(--line);gap:.5rem;padding-bottom:.3rem;display:flex}.log-time{color:var(--muted);flex:none}.log-verlust span:last-child,.log-abwanderung span:last-child,.log-voll span:last-child{color:var(--red);font-weight:600}.log-diagnose span:last-child{font-weight:600}.log-rot span:last-child{color:var(--red)}.log-ueberweisung span:last-child{color:var(--yellow)}.selection{background:var(--surface);border-top:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:1rem;min-height:3.1rem;padding:.6rem 1rem;display:flex}.selection-info{align-items:center;gap:.5rem;display:flex}.selection-actions{align-items:center;gap:.35rem;margin-left:auto;display:flex}.patience-readout{margin-left:.75rem}.dayend{place-items:center;min-height:100%;padding:2rem 1rem;display:grid}.dayend-sheet{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);gap:.6rem;width:min(640px,100%);padding:2rem;display:grid}.dayend-day{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin:0;font-size:.78rem}.dayend-profit{color:var(--brand-dark);margin:0;font-size:3.2rem;font-weight:800;line-height:1}.dayend-profit.is-negative{color:var(--red)}.dayend-tiles{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.6rem;margin:.6rem 0;display:grid}.tile{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;padding:.6rem}.tile-label{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-size:.72rem}.tile-value{font-size:1.3rem;font-weight:700}.tile-hint{color:var(--muted);font-size:.75rem}.dayend-table{border-collapse:collapse;width:100%;font-size:.9rem}.dayend-table td{border-bottom:1px solid var(--line);padding:.25rem 0}.dayend-table td:last-child{text-align:right}.dayend-table .sum td{border-bottom:none;padding-top:.5rem;font-weight:700}.incidents{gap:.2rem;font-size:.85rem;display:grid}.hint{background:var(--surface-2);border-left:3px solid var(--brand);border-radius:0 8px 8px 0;margin:.4rem 0;padding:.6rem .8rem}.errorbar{background:var(--red);color:#fff;box-shadow:var(--shadow);border-radius:999px;padding:.5rem 1rem;font-size:.9rem;position:fixed;bottom:4.5rem;left:50%;transform:translate(-50%)}.conn{color:var(--muted);align-items:center;gap:.35rem;font-size:.78rem;display:inline-flex}.conn-dot{background:var(--muted);border-radius:50%;width:8px;height:8px}.conn-live .conn-dot{background:var(--green)}.conn-offline .conn-dot{background:var(--red)}@media (width<=1100px){.columns{grid-template-columns:1fr;overflow-y:auto}.column{overflow:visible}.ausbau-body{grid-template-columns:1fr;overflow-y:auto}.ausbau-stage{min-height:62vh}}@media (width<=640px){.topbar,.gallery-head{align-items:flex-start}.topbar-stats{gap:.6rem;width:100%;margin-left:0}.columns,.ausbau-body{padding:.4rem}.ausbau-stage{height:72vw;min-height:300px}.game-panel{width:auto;max-height:calc(100% - 6rem);top:.4rem;left:.4rem;right:.4rem}.room-panel{width:auto;inset:auto .4rem 5.4rem}.room-selector{justify-content:flex-start;bottom:4.9rem;left:.4rem;right:.4rem}.selection-overlay{bottom:.4rem;left:.4rem;right:.4rem}.selection-actions{flex-wrap:wrap;width:100%;margin-left:0}.dayend-actions{flex-direction:column;align-items:stretch}}
