*, *::before, *::after { box-sizing: border-box; }
html { min-width: 1040px; min-height: 720px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.top { min-width: 1040px; min-height: 76px; padding: 12px 24px; display: flex; align-items: center; gap: 16px; background: var(--cc); color: #fff; }
.top .logo { width: 72px; height: 48px; object-fit: cover; border-radius: 9px; }
.top h1 { margin: 0; font-size: 20px; }
.top p { margin: 2px 0 0; color: rgba(255,255,255,.68); font-size: 13px; }
.top a { margin-left: auto; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; padding: 9px 13px; font-weight: 750; }
.page { width: 1180px; margin: 24px auto 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.request, .active-panel { grid-column: 1 / -1; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head > div { display: flex; align-items: center; gap: 9px; }
.panel h2 { margin: 0; font-size: 18px; }
.step { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--cc); color: #fff; font-weight: 850; }
form { display: grid; grid-template-columns: 1.5fr .8fr .8fr 180px; gap: 12px; align-items: end; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
label.wide { grid-column: span 2; }
input, select { width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 11px; background: var(--card); color: var(--ink); font: 600 15px/1 inherit; }
button { font: 750 14px/1 inherit; cursor: pointer; }
.primary { height: 42px; border: 0; border-radius: 9px; padding: 0 17px; background: var(--cc); color: #fff; }
.primary:disabled { opacity: .5; cursor: wait; }
.status { margin: 14px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--track); color: var(--muted); }
.status.bad { color: #b42318; background: #fff0ed; }
.intro { color: var(--muted); margin: -5px 0 13px; }
.progress-grid { display: grid; gap: 9px; }
.progress-row { display: grid; grid-template-columns: 1fr 105px 165px; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.crew-label { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.crew-label i { width: 11px; height: 11px; border-radius: 50%; }
.progress-row select { height: 34px; font-size: 13px; }
.empty { color: var(--muted); padding: 28px 8px; text-align: center; }
.decision { border-radius: 12px; padding: 14px; background: #eaf8f0; color: #123d28; margin-bottom: 12px; }
.decision.blocked { background: #fff0ed; color: #7a271a; }
.decision h3 { margin: 0 0 4px; font-size: 17px; }
.decision p { margin: 0; }
.assign { margin-top: 12px; border: 0; border-radius: 8px; padding: 10px 13px; background: var(--cc); color: #fff; }
.candidate { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.candidate strong { display: flex; align-items: center; gap: 8px; }
.candidate .dot { width: 10px; height: 10px; border-radius: 50%; }
.candidate .metrics { color: var(--muted); font-size: 13px; }
.candidate .why { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.pill { align-self: start; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 900; letter-spacing: .06em; background: #eaf8f0; color: #157044; }
.pill.no { background: #fff0ed; color: #b42318; }
.dispatch-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.dispatch-row:first-child { border-top: 0; }
.dispatch-row span { color: var(--muted); font-size: 13px; }
.remove { grid-row: span 2; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 8px; padding: 7px 10px; }
@media (max-width: 1100px) { .page { margin-left: 24px; margin-right: 24px; } }
