:root { --bg: #f4f5f7; --card: #fff; --ink: #142031; --muted: #5d6878; --line: #e2e6eb; --acc: #0f62fe; --ok: #0a7d4b; --zle: #b42318; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #142031; color: #fff; flex-wrap: wrap; }
.top .logo { width: 34px; height: 34px; border-radius: 8px; background: #ffd23f; color: #142031; font-weight: 800; display: grid; place-items: center; font-size: 18px; }
.top .sub { display: block; font-size: 12.5px; opacity: .75; }
.top .kto { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
main { max-width: 1500px; margin: 0 auto; padding: 14px 16px 40px; }
h1 { font-size: 20px; margin: 0 0 6px; } h2 { font-size: 15px; margin: 0 0 6px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); } h3 { font-size: 16px; margin: 0 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .pad { padding: 16px; } .ladowanie { color: var(--muted); padding: 40px 0; text-align: center; }
.btn { appearance: none; border: 1px solid var(--acc); background: var(--acc); color: #fff; border-radius: 8px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); font-weight: 500; padding: 5px 10px; }
.top .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.on { background: #ffd23f; border-color: #e0b400; }
.btn:disabled { opacity: .5; }
.login { max-width: 380px; margin: 50px auto; display: grid; gap: 10px; }
.login label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.login input, textarea, select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
select { width: auto; padding: 5px 8px; }
.blad { color: var(--zle); min-height: 1.3em; margin: 0; }
.pasek { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0 6px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.chip { appearance: none; white-space: nowrap; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.chip b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); font-size: 12px; margin-right: 2px; }
.chip small { margin-left: 6px; color: var(--muted); font-weight: 700; }
.chip[aria-selected="true"] { background: #142031; color: #fff; border-color: #142031; }
.chip[aria-selected="true"] b { background: #ffd23f; color: #142031; } .chip[aria-selected="true"] small { color: #ffd23f; }
.lead { margin: 6px 0 12px; font-size: 15.5px; }
.siatka { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.kafel { background: #dfe6dc; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: min(72vh, 760px); min-height: 420px; position: relative; }
.kafel.troj { background: #cfe3f5; } .kafel canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.plan { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; }
.narz { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 8px; min-height: 34px; }
.przel { font-size: 13px; display: inline-flex; align-items: center; gap: 3px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.kpi b { display: block; font-size: 26px; line-height: 1.15; } .kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.glowny { background: #142031; color: #fff; border-color: #142031; } .kpi.glowny span { color: #c9d2de; } .kpi.glowny b { color: #ffd23f; }
.dwie { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.strefy, .pm, .legenda, .uwl { list-style: none; margin: 0; padding: 0; }
.strefy li { padding: 3px 0; border-top: 1px solid var(--line); } .strefy li:first-child { border-top: 0; } .strefy b { display: inline-block; min-width: 30px; }
.pm li { padding: 3px 0 3px 22px; position: relative; }
.pm li::before { position: absolute; left: 0; font-weight: 800; } .pm .plus::before { content: "+"; color: var(--ok); } .pm .minus::before { content: "−"; color: var(--zle); }
.legenda { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: grid; gap: 3px; }
.kol { display: inline-block; width: 16px; height: 10px; border: 1.5px solid #142031; margin-right: 7px; vertical-align: -1px; }
.kol.st-ist { background: #fff; } .kol.st-proj { background: #c5ccd6; } .kol.st-nowe { background: #ffd23f; } .kol.st-inv { background: #3b82f6; } .kol.st-war { background: #ff8a3d; } .kol.st-bus { background: #a855f7; } .kol.st-kr { background: #22c55e; } .kol.st-obs { background: #e11d48; }
.przewin { overflow-x: auto; }
.por { border-collapse: collapse; width: 100%; font-size: 14px; }
.por th, .por td { text-align: right; padding: 7px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.por th:first-child { text-align: left; font-weight: 600; } .por tr:first-child th { border-top: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.por tr { cursor: pointer; } .por tr.akt { background: #fff7d6; }
.spr { margin: 0 0 12px; padding-left: 20px; } .spr li { margin-bottom: 5px; }
.uwf { display: grid; gap: 8px; margin-bottom: 12px; } .uwf .btn { justify-self: start; }
.uwl li { border-top: 1px solid var(--line); padding: 8px 0; } .uwl p { margin: 2px 0 0; white-space: pre-wrap; }
/* plan 2D (jednostka = 1 m) */
.tlo { fill: #dfe6dc; }
.utw { fill: #c3c7cd; stroke: #9aa0a8; stroke-width: .12; }
.zielen { fill: #b7d3a4; stroke: #8fb07a; stroke-width: .12; }
.nowa { fill: #ffd23f; fill-opacity: .28; stroke: #c99a00; stroke-width: .18; stroke-dasharray: .9 .6; }
.dz { fill: none; stroke: #c78a00; stroke-width: .22; stroke-dasharray: 1.4 .8; } .dz.obca { stroke: #7c8794; }
.teren { fill: #0f62fe; fill-opacity: .05; stroke: #0f62fe; stroke-width: .45; }
.bud { fill: #3d4650; stroke: #1c232b; stroke-width: .25; } .bud.padel { fill: #56606c; }
.ob { fill: #eef1f4; stroke: #4b5563; stroke-width: .18; }
.zb { fill: #fff; stroke: #4b5563; stroke-width: .25; } .slup { fill: #6b6258; }
.szlaban { stroke: #e11d48; stroke-width: .5; stroke-dasharray: 1.2 1.2; }
.psp { fill: #ef4444; fill-opacity: .13; stroke: #dc2626; stroke-width: .25; stroke-dasharray: 1 .7; }
.jazda { fill: none; stroke: #38bdf8; stroke-opacity: .3; stroke-linejoin: round; stroke-linecap: round; }
.strz { fill: none; stroke: #0b5c85; stroke-width: .28; stroke-linecap: round; }
.piesi { fill: none; stroke: #0a7d4b; stroke-width: .45; stroke-dasharray: .9 .9; }
.st { stroke: #142031; stroke-width: .16; fill: #fff; fill-opacity: .82; }
.st-proj { fill: #c5ccd6; } .st-nowe { fill: #ffd23f; } .st-inv { fill: #3b82f6; } .st-war { fill: #ff8a3d; fill-opacity: .7; stroke-dasharray: .6 .4; } .st-bus { fill: #a855f7; } .st-kr { fill: #22c55e; } .st-obs { fill: #e11d48; fill-opacity: .55; }
.wej { fill: #0a7d4b; stroke: #fff; stroke-width: .25; }
.wym { stroke: #111827; stroke-width: .18; } .wym.lin { stroke: #b42318; stroke-width: .3; } .lin { fill: #b42318; }
.skala { stroke: #111827; stroke-width: .5; } .pn { stroke: #111827; stroke-width: .35; fill: none; }
.t { font: 600 2px system-ui, sans-serif; text-anchor: middle; fill: #111827; paint-order: stroke; stroke: #fff; stroke-width: .55; stroke-linejoin: round; pointer-events: none; }
.dzt { font-size: 1.7px; fill: #8a6100; } .budt { font-size: 3px; fill: #fff; stroke: #1c232b; } .budt2 { font-size: 2px; fill: #e5e7eb; stroke: #1c232b; font-weight: 500; }
.obt { font-size: 1.6px; font-weight: 500; } .pspt { font-size: 1.7px; fill: #991b1b; } .pspt2 { font-size: 1.3px; fill: #991b1b; font-weight: 500; } .wymt { font-size: 1.8px; }
@media (max-width: 980px) { .siatka, .dwie { grid-template-columns: 1fr; } .kafel { height: 62vh; } }
