:root { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #16212c; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; }
header { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.eyebrow { color: #526575; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 8px 0 4px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.045em; }
p { margin: 0; color: #5c6a77; }
.controls { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
label { display: grid; gap: 6px; color: #526575; font-size: 13px; font-weight: 600; }
input, select, button { min-height: 42px; border-radius: 8px; font: inherit; }
input, select { border: 1px solid #cbd5df; padding: 0 11px; color: #16212c; background: white; }
button { border: 0; padding: 0 18px; color: white; background: #175c72; cursor: pointer; font-weight: 600; }
button:hover { background: #10485a; }
button:disabled { opacity: .6; cursor: wait; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 19px 22px; border: 1px solid #e1e7ed; border-radius: 10px; background: white; }
.stat span { display: block; color: #60707e; font-size: 13px; }
.stat strong { display: block; margin-top: 8px; font-size: 30px; letter-spacing: -.04em; }
.panel { overflow: hidden; border: 1px solid #e1e7ed; border-radius: 10px; background: white; margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid #e9edf1; }
.panel-head h2 { margin: 0; font-size: 17px; }
#status, .status-line { margin-top: 4px; font-size: 13px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { color: #61707d; background: #f9fafb; font-size: 12px; font-weight: 700; white-space: nowrap; }
th, td { padding: 13px 17px; border-bottom: 1px solid #edf0f3; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td small { display: block; margin-top: 3px; color: #687987; }
.plate { font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.badge { display: inline-block; border-radius: 5px; padding: 5px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eef1f4; color: #4d5964; }
.badge.ok { background: #e5f4ec; color: #16714c; }
.badge.warn { background: #fff1da; color: #925900; }
.badge.error { background: #fbe9e8; color: #ab352e; }
.empty { padding: 44px 22px; text-align: center; color: #667582; }
.hidden { display: none; }

.nav { display: flex; align-items: center; gap: 12px; }
.hamburger { width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: white; color: #175c72; border: 1px solid #cbd5df; border-radius: 8px; cursor: pointer; }
.hamburger:hover { background: #eef3f5; }
.hamburger svg { display: block; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(22, 33, 44, .35); opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 40; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; left: 0; height: 100%; width: 280px; max-width: 86vw; background: white; border-right: 1px solid #e1e7ed; box-shadow: 2px 0 24px rgba(22,33,44,.08); transform: translateX(-100%); transition: transform .22s ease; z-index: 41; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid #e9edf1; display: flex; justify-content: space-between; align-items: center; }
.drawer-head strong { font-size: 15px; letter-spacing: -.01em; }
.drawer-close { background: transparent; color: #526575; min-height: 32px; padding: 0 8px; border-radius: 6px; font-size: 20px; line-height: 1; }
.drawer-close:hover { background: #eef3f5; color: #16212c; }
.drawer .menu { display: flex; flex-direction: column; padding: 10px 0; }
.drawer .menu a { display: block; padding: 13px 22px; color: #16212c; text-decoration: none; font-weight: 600; font-size: 14px; border-left: 3px solid transparent; }
.drawer .menu a:hover { background: #f4f6f8; }
.drawer .menu a.active { border-left-color: #175c72; color: #175c72; background: #eef5f8; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.step { padding: 16px 18px; border: 1px solid #e1e7ed; border-radius: 10px; background: white; }
.step .step-num { color: #8695a3; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.step .step-title { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: #16212c; }
.step .step-score { display: block; margin-top: 10px; font-size: 24px; letter-spacing: -.03em; font-weight: 700; }
.step .step-desc { display: block; margin-top: 4px; font-size: 12px; color: #687987; }
.step.ok { border-left: 4px solid #16a06a; }
.step.warn { border-left: 4px solid #d79a2b; }
.step.error { border-left: 4px solid #c74a40; }
.step.neutral { border-left: 4px solid #cbd5df; }

.dots { display: inline-flex; gap: 6px; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #eef1f4; color: #8695a3; }
.dot.ok { background: #e5f4ec; color: #16714c; }
.dot.fail { background: #fbe9e8; color: #ab352e; }
.dot.na { background: #f4f6f8; color: #b7c1cb; }

.row-alert { background: #fff6f5; }

.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.overview .stat strong { font-size: 36px; }
.overview .stat.ok { border-left: 4px solid #16a06a; }
.overview .stat.error { border-left: 4px solid #c74a40; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  main { padding: 24px 14px; }
  .summary, .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 15px; }
  .controls { width: 100%; }
  .controls label { flex: 1; }
}
