/* Panel dowódcy (dowodzenie.js). Każdy biznes ma swój kolor (--biz); kolory stanu jak w całym Centrum: bursztyn = czeka na ciebie, zieleń = zrobione/żyje. */
.biz-biuro { --biz: #4FA3E0; } .biz-kdm { --biz: #F0A84A; } .biz-centrum { --biz: #9C8CF2; } .biz-dona { --biz: #5DC38B; } .biz-krystian { --biz: var(--accent); }
@media (prefers-color-scheme: light) { .biz-biuro { --biz: #1F6FB2; } .biz-kdm { --biz: #A86200; } .biz-centrum { --biz: #5B47C9; } .biz-dona { --biz: #2B7A4B; } }
.start.dw { gap: 16px; }
body.desk .start.dw { max-width: 1280px; }
.dw-wejscie { width: 100%; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 11px 14px; font: 600 14.5px/1.3 var(--f-body); cursor: pointer; }
.dw-naglowek { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: end; }
.dw-tytul { display: grid; gap: 2px; }
.dw-tytul h1 { margin: 0; font: 800 26px/1.05 var(--f-display); font-stretch: 85%; letter-spacing: -.005em; }
.dw-misja { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; text-wrap: pretty; }
.dw-dnia { display: flex; gap: 8px; }
.dw-dz { display: grid; gap: 1px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; min-width: 104px; }
.dw-dz b { font: 800 22px/1.05 var(--f-display); font-variant-numeric: tabular-nums; }
.dw-dz.czeka b { color: var(--wait); } .dw-dz.live b { color: var(--accent); } .dw-dz.ok b { color: var(--ok); }
.dw-przel { display: flex; gap: 6px; flex-wrap: wrap; }
.dw-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 13px; font: 600 13.5px/1 var(--f-body); cursor: pointer; }
.dw-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--biz, var(--off)); }
.dw-chip:first-child::before { display: none; }
.dw-chip[aria-selected="true"] { color: var(--ink); border-color: var(--biz, var(--ink)); background: color-mix(in srgb, var(--biz, var(--ink)) 14%, var(--surface)); }
.dw-chip:hover { color: var(--ink); }
.dw-chip-l { font: 600 11px/1 var(--f-mono); color: var(--wait); background: var(--wait-bg); border-radius: 999px; padding: 2px 6px; }
.dw-siatka { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .dw-siatka { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .dw-siatka { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dw-karta { position: relative; display: grid; gap: 9px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; overflow: hidden; min-width: 0;
  background-image: linear-gradient(160deg, color-mix(in srgb, var(--biz) 13%, transparent), transparent 45%); }
.dw-karta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--biz); }
.dw-karta.pelna { padding: 18px 20px 16px; }
.dw-karta.pauza { opacity: .92; }
.dw-gl { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dw-nazwa { margin: 0; font: 750 18px/1.15 var(--f-display); color: var(--ink); }
.dw-tryb { font: 500 11.5px/1.3 var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.dw-tryb.pauza { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 50%, transparent); }
.dw-cel { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dw-karta.pelna .dw-cel { -webkit-line-clamp: unset; display: block; font-size: 14.5px; color: var(--ink); }
.dw-pasek { display: grid; gap: 4px; }
.dw-tor { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dw-tor.pusty { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.dw-wyp { display: block; height: 100%; border-radius: 999px; background: var(--biz); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.dw-ai { display: grid; gap: 2px; }
.dw-ai-w { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ink); text-align: left; padding: 5px 6px; border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer; }
.dw-ai-w:hover { background: var(--bg); }
.dw-ai-w .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-ai-n { font-weight: 600; white-space: nowrap; }
.dw-ai-w.live .dot { animation: pulse 1s infinite; }
.dw-h { font: 700 11.5px/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.dw-pusto { padding: 2px; }
.dw-co { display: grid; gap: 2px; text-align: left; width: 100%; border: 1px solid var(--line); border-left: 3px solid var(--biz); background: var(--bg); color: var(--ink); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.dw-co.pilne { border-left-color: var(--wait); }
.dw-co:hover { border-color: var(--biz); }
.dw-co-t { font-weight: 600; overflow-wrap: anywhere; }
.dw-rek { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.dw-wiecej { justify-self: start; }
.dw-liczby { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dw-liczba { display: grid; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.dw-liczba b { font: 800 20px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.dw-liczba.brak b { color: var(--off); }
.dw-cel-l { font-size: 11px; }
.dw-prio { font-size: 13.5px; padding: 6px 0 6px 10px; border-left: 2px solid var(--biz); overflow-wrap: anywhere; }
.dw-stopka { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
@media (max-width: 520px) { .dw-naglowek { grid-template-columns: minmax(0, 1fr); } .dw-dnia { display: grid; grid-template-columns: repeat(3, 1fr); } .dw-dz { min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .dw-wyp { transition: none; } .dw-ai-w.live .dot { animation: none; } }
/* runda 5: skreślanie i gra */
.dw-zad { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; cursor: default; }
.dw-zad-t { display: grid; gap: 2px; min-width: 0; }
.dw-zad .dw-co-t { color: var(--ink); text-decoration: none; }
.dw-zad .dw-co-t:hover { text-decoration: underline; }
.dw-kolko { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--biz); background: transparent; cursor: pointer; position: relative; flex: none; padding: 0; }
.dw-kolko:hover { background: color-mix(in srgb, var(--biz) 20%, transparent); }
.dw-zad.skreslone .dw-kolko { background: var(--ok); border-color: var(--ok); animation: dw-pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.dw-zad.skreslone .dw-kolko::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--bg); font: 800 13px/1 var(--f-body); }
.dw-zad.skreslone .dw-co-t { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.dw-zad.skreslone { border-left-color: var(--ok); }
.dw-zad.wyslane { opacity: .7; }
.dw-cofnij { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 5px 9px; font: 600 12px/1 var(--f-mono); cursor: pointer; white-space: nowrap; }
@keyframes dw-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.dw-poziom { display: grid; grid-template-columns: auto 90px minmax(0, 1fr); align-items: center; gap: 8px; }
.dw-lv { font: 700 11.5px/1 var(--f-mono); color: var(--biz); border: 1px solid color-mix(in srgb, var(--biz) 55%, transparent); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.dw-lv-tor { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dw-lv-wyp { display: block; height: 100%; background: var(--biz); border-radius: 999px; }
.dw-poziom .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-gra { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.dw-seria { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px; }
.dw-seria b { font: 800 28px/1 var(--f-display); color: var(--muted); }
.dw-seria.on b { color: var(--wait); } .dw-seria.on b::after { content: " 🔥"; font-size: 20px; }
.dw-seria .meta { max-width: 110px; }
.dw-tydz { display: grid; gap: 4px; min-width: 0; }
.dw-tydz-t { font-weight: 650; }
.dw-tydz .dw-wyp { background: linear-gradient(90deg, var(--accent), var(--ok)); }
.dw-siatka-dni { display: grid; grid-template-columns: repeat(14, 14px); gap: 3px; }
.dw-dzien { width: 14px; height: 14px; border-radius: 3px; border: 0; padding: 0; cursor: pointer; background: color-mix(in srgb, var(--ok) calc(var(--moc) * 100%), var(--line)); }
.dw-dzien.dzis { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.dw-dzien.wyb { outline: 2px solid var(--accent); outline-offset: 1px; }
.dw-dzien-lista { grid-column: 1 / -1; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.dw-wyg { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; font-size: 13px; align-items: baseline; }
.dw-wyg span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-wyg-s { font: 600 10.5px/1 var(--f-mono); color: var(--ok); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 520px) { .dw-gra { grid-template-columns: auto minmax(0, 1fr); } .dw-siatka-dni { grid-column: 1 / -1; grid-template-columns: repeat(14, 1fr); } .dw-dzien { width: auto; aspect-ratio: 1; height: auto; } }
@media (prefers-reduced-motion: reduce) { .dw-zad.skreslone .dw-kolko { animation: none; } }
