/* Стиль по ТЗ 4.4: белый фон, синий акцент, тёмно-серый текст, скругление 6px, без теней. */
:root {
  --accent: #2589ff; --accent-hover: #0879fe; --accent-soft: #dee8ff; --accent-bg: #f5f9ff;
  --text: #1e222d; --text-2: #474766; --text-3: #808899;
  --line: #e6ebf2; --line-2: #f2f2f2;
  --ok: #17a064; --warn: #d98c00; --err: #f35050;
  --radius: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--text); font: 14px/1.45 Inter, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 8px; font-weight: 600; } h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 14px; color: var(--text-2); }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 16px; }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.brand { font-weight: 700; color: var(--text); font-size: 16px; }
.nav { display: flex; align-items: center; gap: 16px; } .nav a { color: var(--text-2); } .nav__user { color: var(--text-3); }
main { padding-block: 20px; } .foot { color: var(--text-3); font-size: 12px; padding-block: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; background: #fff; }
.card--narrow { max-width: 420px; margin: 40px auto; }
.card--free { border-color: var(--accent-soft); background: var(--accent-bg); }
.card--paid { border-style: dashed; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
.muted { color: var(--text-3); } .small { font-size: 12px; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .err { color: var(--err); }
.big { font-size: 20px; font-weight: 600; }
.inline { display: inline; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form label { display: flex; flex-direction: column; gap: 4px; color: var(--text-2); font-size: 13px; }
.form--row { flex-direction: row; flex-wrap: wrap; align-items: center; }
.form--filters { flex-direction: row; flex-wrap: wrap; gap: 6px; }
input, select { font: inherit; padding: 8px 10px; border: 1px solid #cfd6e0; border-radius: var(--radius); background: #fff; color: var(--text); min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input--plate { width: 150px; text-transform: uppercase; font-weight: 600; letter-spacing: .5px; }
.input--vin { width: 200px; text-transform: uppercase; }
.btn { font: inherit; font-weight: 600; padding: 8px 14px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; background: #fff; color: var(--text); line-height: 1.2; }
.btn--primary { background: var(--accent); color: #fff; } .btn--primary:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--accent); color: var(--accent); } .btn--outline:hover { background: var(--accent-bg); }
.btn--ghost { border-color: var(--line); color: var(--text-2); } .btn--ghost:hover { border-color: #cfd6e0; background: #fafbfd; }
.btn--sm { padding: 5px 10px; font-size: 12px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.tag--free { background: var(--accent-soft); border-color: var(--accent-soft); color: #1b5fc7; }
.tag--paid { background: #fff5e6; border-color: #ffe3b3; color: #9a5b00; }
.status { display: inline-block; font-weight: 600; font-size: 13px; }
.status--queued, .status--running { color: var(--text-3); }
.status--found, .status--valid { color: var(--ok); } .status--expired { color: var(--warn); }
.status--not_found { color: var(--text-2); } .status--error { color: var(--err); } .status--cancelled { color: var(--text-3); }
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; border: 1px solid; }
.flash--ok { background: #eef9f3; border-color: #bfe8d2; color: #0e6b44; }
.flash--err { background: #fff1f1; border-color: #ffc9c9; color: #a12525; }
.note { padding: 8px 12px; border-radius: var(--radius); font-size: 13px; }
.note--warn { background: #fff8e8; color: #7a4d00; border: 1px solid #ffe3b3; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .3px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table--compact td, .table--compact th { padding: 6px 8px; font-size: 13px; }
.row--paid td { background: #fffcf6; }
.plate { font-weight: 700; letter-spacing: .5px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
.status-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: var(--text-3); margin-bottom: 4px; }
.stat__value { font-size: 18px; font-weight: 600; }
.stat__value--ok { color: var(--ok); } .stat__value--warn { color: var(--warn); } .stat__value--err { color: var(--err); }
.stat form { margin-top: 6px; }
.proxies { margin: -6px 0 16px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0 0; }
.dl dt { color: var(--text-3); } .dl dd { margin: 0; }
.pre { background: #f7f8fa; border-radius: var(--radius); padding: 12px; overflow-x: auto; font-size: 12px; }
.dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; max-width: 440px; }
.dialog::backdrop { background: rgba(30, 34, 45, .35); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
details.card summary { cursor: pointer; font-weight: 600; }
