#kdsPanel{display:flex;flex-direction:column;gap:10px;min-height:calc(100vh - 160px)}
#kdsPanel:fullscreen{background:var(--bg,#faf7f2);padding:14px;min-height:100vh;overflow:auto}
.kds-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.kds-clock{font-size:20px;font-variant-numeric:tabular-nums;padding-right:14px;border-right:2px solid currentColor;line-height:1.1}
.kds-counters{display:flex;flex-wrap:wrap;gap:8px}
.kds-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid;border-radius:999px;padding:4px 12px;font-size:13px;background:white}
.kds-chip::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.kds-chip b{font-size:16px;color:#2a2025}
.chip-queued{color:#b7791f}.chip-preparing{color:#2563eb}.chip-late{color:#c53030}.chip-ready{color:#1f7a5a}
.kds-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.kds-live{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700}
.kds-live::before{content:'';width:8px;height:8px;border-radius:50%;background:#1f9d55;box-shadow:0 0 0 3px #1f9d5533}
.kds-late{display:flex;align-items:center;gap:6px;font-size:12px;margin:0}
.kds-late input{width:64px;margin:0;padding:6px 8px}
.kds-tool{width:40px;height:40px;display:grid;place-items:center;padding:0;border:1px solid var(--border,#e9e0d8);border-radius:10px;background:white;color:#2a2025}
.kds-tool svg,.kds-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kds-tool[aria-pressed="true"]{background:var(--wine,#681f29);border-color:var(--wine,#681f29);color:white}
.kds-status{margin:0;min-height:1.4em;font-size:13px;color:var(--muted,#7b7070)}
.kds-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;flex:1;min-height:0}
.kds-column{display:flex;flex-direction:column;background:#efebe6;border-radius:14px;padding:10px;min-height:320px;max-height:calc(100vh - 230px)}
#kdsPanel:fullscreen .kds-column{max-height:calc(100vh - 110px)}
.kds-column>header{display:flex;align-items:center;gap:8px;padding:2px 4px 10px}
.kds-column h3{margin:0;font-size:15px;flex:1;display:flex;align-items:center;gap:8px}
.kds-column h3::before{content:'';width:9px;height:9px;border-radius:50%;background:currentColor}
.column-queued h3::before{background:#e0a800}.column-preparing h3::before{background:#2563eb}.column-ready h3::before{background:#1f9d55}
.kds-column-count{min-width:24px;text-align:center;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:700;background:white}
.kds-list{display:flex;flex-direction:column;gap:10px;overflow:auto;padding-right:2px}
.kds-empty{margin:30px 0;text-align:center;color:var(--muted,#7b7070)}
.kds-card{background:white;border:1px solid var(--border,#e9e0d8);border-radius:12px;overflow:hidden}
.kds-card[data-level="warning"]{border-color:#f0c36d}.kds-card[data-level="warning"] .kds-card-head{background:#fff8e6}
.kds-card[data-level="late"]{border-color:#e8a0a0}.kds-card[data-level="late"] .kds-card-head{background:#fdecec}
.kds-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:10px 12px;border-bottom:1px solid var(--border,#e9e0d8)}
.kds-code{font-size:18px}
.kds-kind,.kds-batch{border-radius:6px;padding:2px 8px;font-size:12px;font-weight:700;color:white;background:#d9480f}
.kind-pickup{background:#7048e8}.kind-counter{background:#0b7285}.kind-table{background:#5c940d}.kds-batch{background:#495057}
.kds-timer{margin-left:auto;border-radius:6px;padding:2px 8px;background:#f1f3f5;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.kds-card[data-level="warning"] .kds-timer{background:#ffd43b}.kds-card[data-level="late"] .kds-timer{background:#c53030;color:white}
.kds-items{list-style:none;margin:0;padding:10px 12px;display:grid;gap:6px;font-size:15px}
.kds-items b{color:#0b7285}
.kds-items small{display:block;padding-left:22px;font-size:13px;color:#495057}
.kds-action{display:flex;align-items:center;justify-content:center;gap:8px;width:calc(100% - 24px);margin:0 12px 12px;min-height:44px;border:0;border-radius:10px;background:#0b7a68;color:white;font-weight:700}
.kds-action .filled{fill:currentColor;stroke:none}
.kds-action.ready{background:#1f6fd1}
.kds-action:disabled{opacity:.6}
.kds-wait{margin:0 12px 12px;font-size:13px;color:#1f7a5a;font-weight:700}
.kds-note{margin:0;font-size:12px;color:var(--muted,#7b7070)}
.category-kitchen{gap:6px;font-size:12px;margin:0}
@media(max-width:900px){.kds-clock{border-right:0;padding-right:0}.kds-board{grid-template-columns:1fr}.kds-column{max-height:none;min-height:0}.kds-tools{margin-left:0}}
