.left { width: 330px; max-height: calc(100vh - 32px); overflow-y: auto; }
.right { width: 300px; max-height: calc(100vh - 32px); overflow-y: auto; }
.head .link { margin-top: 8px; padding: 0; }
.kpi.head { padding: 6px 0 2px; border-top: 0; }
.kpi.head em, .kpi em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--mut); text-align: right; line-height: 1.2; }
.kpi.pair, .kpi.now, .kpi.head { display: grid; grid-template-columns: 1fr 70px 62px; gap: 6px; align-items: baseline; }
.kpi.pair b, .kpi.now b { font-size: 17px; text-align: right; }
.kpi.pair i { font-style: normal; font-size: 14px; color: var(--mut); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi.head + .kpi { border-top: 0; }
.log button.bad { color: var(--bad); }
.log button.good { color: var(--ok); }
.tag.calm { background: #fff; color: #334155; }
.tag.bad { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.doc { width: 360px; }
.doc h2 { margin: 0 0 4px; font-size: 17px; }
.doc .sub { margin: 0 0 8px; font-size: 14px; color: var(--mut); }
.doc .now { margin: 0 0 8px; font-size: 15px; }
.jbar { display: block; width: 100%; height: 22px; border-radius: 4px; background: #f1f5f9; }
.split { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; font-size: 14px; font-weight: 600; }
.split .g { color: #15803d; } .split .r { color: #b91c1c; }
.journey { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.journey li { display: grid; grid-template-columns: 44px 1fr auto; gap: 6px; padding: 3px 0; }
.journey li i { font-style: normal; color: var(--mut); font-variant-numeric: tabular-nums; }
.journey li.wait { color: #b91c1c; } .journey li.work { color: #15803d; }
.journey li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.doctabs span { font-weight: 700; font-size: 14px; }
.term .big2 { font-size: 16px; }
.term .g { color: #15803d; } .term .r { color: #b91c1c; }
.term .mono { font-variant-numeric: tabular-nums; font-size: 14px; }
.term .list { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; }
.term .list li { padding: 4px 0; display: flex; justify-content: space-between; gap: 10px; }
.term .list.waste li { display: block; }
.term .list.waste li b, .term .list li b { color: var(--ink); }
.term .list.waste li b { display: block; }
.term .list li b { font-weight: 700; }
.term .chart { width: 100%; height: auto; }
.map { left: 362px; right: 332px; }
.tag.wait { background: #fef3c7; border-color: #d97706; }
.doc { top: 92px; left: 362px; width: 380px; }
.kcap { margin: 6px 0 2px; font-size: 13px; line-height: 1.35; color: var(--mut); }
.kpis .kpi { padding: 6px 0; }
.kpi.pair b, .kpi.now b { font-size: 16px; }
.step { padding: 8px 0; }
.step .why { margin-top: 2px; }
.left { width: 300px; }
.right { width: 290px; }
.views { left: 332px; right: 322px; }
.head .speed { align-items: center; flex-wrap: wrap; }
.head .speed .link { margin: 0 0 0 4px; padding: 0; border: 0; background: none; }
.head .clock { font-size: 14px; }
@media (max-height: 760px) and (min-width: 821px) { .left, .right, .map, .views { zoom: 0.74; } .left, .right { max-height: calc((100vh - 32px) / 0.74); } }
.swh { margin: 0 0 6px; font-size: 16px; }
table.swsheet { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.3; margin-bottom: 6px; }
table.swsheet th { text-align: left; font-size: 12px; color: var(--mut); padding: 2px 4px; }
table.swsheet td { padding: 5px 4px; vertical-align: top; border-top: 2px solid var(--line); }
table.swsheet td:first-child { font-weight: 700; color: var(--mut); }
table.swsheet tr.now td { background: #ecfdf5; }
table.swsheet tr.fail td { background: #fef2f2; color: #b91c1c; }
.swtally { margin: 4px 0 12px; font-size: 14px; }
.swtally .g { color: #15803d; } .swtally .r { color: #b91c1c; }
.tag.hi { background: #facc15; border-color: #a16207; color: #0f172a; font-size: 15px; font-weight: 700; padding: 3px 10px; z-index: 2; }
#map g.box { cursor: pointer; }
#map g.box:hover rect:first-child { stroke: #2563eb; }
body.compact .clsub { display: none; }
body.compact .head .speed { flex-wrap: nowrap; }
body.compact .head .speed button { font-size: 13px; padding: 5px 7px; }
body.compact .head .speed .link { margin-left: 2px; }
