/* The supervisor's "Пилот" panel. Colours come from the admin theme variables, so the dark theme needs no extra rules. */
.admin-pilot{min-width:0;--pilot-ok:#16794b;--pilot-warn:#b45309;--pilot-info:#6b6e75}
html[data-theme=dark] .admin-pilot{--pilot-ok:#7be0ad;--pilot-warn:#ffc584;--pilot-info:#aeb5c0}
.pilot-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}
.pilot-heading h3{margin:4px 0 6px;font-size:1.625rem;line-height:1.15}
.pilot-heading button,.pilot-state button,.pilot-table button,.pilot-report footer button{min-height:40px;border:1px solid var(--line);background:var(--white);color:var(--ink);font-size:.8125rem}
.pilot-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-bottom:18px;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--line)}
.pilot-tile{display:flex;flex-direction:column;gap:3px;min-width:0;padding:18px 20px;background:var(--white)}
.pilot-tile strong{font-size:2rem;line-height:1;font-variant-numeric:tabular-nums}
.pilot-tile span{font-size:.875rem;font-weight:650}
.pilot-tile small{color:var(--muted);font-size:.75rem}
.pilot-checks{display:grid;gap:1px;margin:0 0 22px;padding:0;list-style:none;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--line)}
.pilot-check{display:flex;gap:14px;align-items:flex-start;padding:14px 18px;background:var(--white)}
.pilot-check div{display:grid;gap:2px;min-width:0}
.pilot-check strong{font-size:.9375rem}
.pilot-check small{color:var(--muted);font-size:.8125rem;line-height:1.45}
.pilot-dot{flex:none;width:10px;height:10px;margin-top:6px;border-radius:50%;background:var(--pilot-info)}
.pilot-check[data-state=ok] .pilot-dot{background:var(--pilot-ok)}
.pilot-check[data-state=warn] .pilot-dot{background:var(--pilot-warn)}
.pilot-check[data-state=warn] strong{color:var(--pilot-warn)}
.pilot-switch{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;padding:16px 20px;border:1px solid var(--line);border-radius:16px;background:var(--white)}
.pilot-switch[data-state=off]{border-color:var(--pilot-warn)}
.pilot-switch div{display:grid;gap:3px;min-width:0}
.pilot-switch strong{font-size:.9375rem}
.pilot-switch[data-state=off] strong{color:var(--pilot-warn)}
.pilot-switch small{color:var(--muted);font-size:.8125rem;line-height:1.45}
.pilot-switch button{flex:none;min-height:40px;padding:0 18px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);font-size:.8125rem;font-weight:650}
.pilot-switch .pilot-primary{border-color:var(--red);background:var(--red);color:#fff}
.pilot-switch .pilot-danger{border-color:var(--pilot-warn);color:var(--pilot-warn)}
.pilot-switch button:focus-visible{outline:3px solid #e3061355;outline-offset:2px}
.pilot-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.pilot-columns--wide{grid-template-columns:1fr}
.pilot-panel,.pilot-empty,.pilot-state,.pilot-report{border:1px solid var(--line);border-radius:16px;background:var(--white)}
.pilot-panel{padding:20px;min-width:0}
.pilot-panel h4,.pilot-section h4{margin:0 0 14px;font-size:1.125rem}
.pilot-panel p.muted{margin:12px 0 0;font-size:.8125rem}
.pilot-row{display:grid;grid-template-columns:132px minmax(0,1fr) 36px;align-items:center;gap:12px;min-height:34px;font-size:.875rem}
.pilot-row b{text-align:right;font-variant-numeric:tabular-nums}
.pilot-meter{display:block;height:8px;overflow:hidden;border-radius:999px;background:var(--soft)}
.pilot-meter i{display:block;height:100%;border-radius:999px;background:var(--red)}
.pilot-bars{display:flex;align-items:stretch;gap:6px;height:132px}
.pilot-bar{display:flex;flex:1;flex-direction:column;justify-content:flex-end;gap:6px;min-width:0;height:100%}
.pilot-bar i{display:block;min-height:4px;border-radius:5px 5px 2px 2px;background:var(--red);opacity:.85}
.pilot-bar em{display:block;height:14px;color:var(--muted);font-size:.75rem;font-style:normal;line-height:14px;text-align:center}
.pilot-line{margin:0 0 14px;font-size:.9375rem}
.pilot-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--white)}
.pilot-table-wrap .pilot-table th:first-child,.pilot-table-wrap .pilot-table td:first-child{padding-left:20px}
.pilot-table-wrap .pilot-table th:last-child,.pilot-table-wrap .pilot-table td:last-child{padding-right:20px}
.pilot-section .pilot-table th:last-child,.pilot-section .pilot-table td:last-child{text-align:right}
.pilot-table{width:100%;border-collapse:collapse;font-size:.875rem}
.pilot-table th{padding:8px 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.75rem;font-weight:650;text-align:left;white-space:nowrap}
.pilot-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
.pilot-table tr:last-child td{border-bottom:0}
.pilot-table td small{display:block;margin-top:2px;color:var(--muted);font-size:.75rem}
.pilot-table a{color:var(--ink);white-space:nowrap}
.pilot-section{margin-top:26px}
.pilot-count{display:inline-block;margin-left:8px;padding:2px 9px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.75rem;font-weight:700;vertical-align:middle}
.pilot-empty,.pilot-state{display:grid;gap:6px;padding:22px}
.pilot-empty span,.pilot-state p{color:var(--muted);font-size:.875rem}
.pilot-state button{justify-self:start}
.pilot-reports{display:grid;gap:12px}
.pilot-report{display:grid;gap:10px;padding:18px 20px}
.pilot-report[data-status=resolved]{opacity:.7}
.pilot-report header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.pilot-report time{color:var(--muted);font-size:.8125rem}
.pilot-badge{margin-left:auto;padding:4px 10px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.75rem;font-weight:750}
.pilot-badge[data-status=new]{background:#fff0f1;color:#a90918}
html[data-theme=dark] .pilot-badge[data-status=new]{background:#482830;color:#ff9099}
.pilot-report-text{margin:0;font-size:.9375rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.pilot-report small{color:var(--muted);font-size:.75rem;line-height:1.5}
.pilot-report footer{display:flex;flex-wrap:wrap;gap:8px}
.pilot-report footer .pilot-primary{border-color:var(--red);background:var(--red);color:#fff}
.pilot-heading button:focus-visible,.pilot-table button:focus-visible,.pilot-report footer button:focus-visible{outline:3px solid #e3061355;outline-offset:2px}
@media(max-width:900px){.pilot-tiles{grid-template-columns:1fr 1fr}.pilot-columns{grid-template-columns:1fr}}
@media(max-width:700px){.pilot-switch{flex-direction:column;align-items:stretch}.pilot-heading{align-items:start;flex-direction:column}.pilot-tile{padding:15px 16px}.pilot-tile strong{font-size:1.6875rem}.pilot-row{grid-template-columns:104px minmax(0,1fr) 30px}}
