:root {
  --navy: #10253f;
  --navy-2: #173553;
  --blue: #1478f2;
  --blue-dark: #0d62c8;
  --ink: #162235;
  --muted: #6f7d90;
  --line: #e5eaf0;
  --canvas: #f4f7fa;
  --white: #fff;
  --green: #159a6a;
  --amber: #e99a18;
  --red: #d64747;
  --shadow: 0 10px 35px rgba(22, 42, 70, .07);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 248px; display: flex; flex-direction: column; color: #cbd6e3; background: var(--navy); }
.logo { height: 88px; display: flex; align-items: center; gap: 12px; padding: 0 27px; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .04em; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo small { display: block; color: #7f95ad; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: var(--blue); border-radius: 11px 11px 11px 3px; }
.sidebar nav { padding: 26px 14px; flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 8px; color: #9fb0c3; font-weight: 600; margin: 3px 0; transition: .2s; }
.sidebar nav a i { width: 21px; font-size: 20px; font-style: normal; text-align: center; }
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar nav a.active { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(20,120,242,.25); }
.nav-label { display: block; margin: 21px 14px 9px; color: #60778f; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.nav-label:first-child { margin-top: 0; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; padding: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer b, .sidebar-footer small { display: block; max-width: 105px; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer b { color: #fff; font-size: 13px; }
.sidebar-footer small { color: #748ba2; font-size: 10px; margin-top: 3px; }
.sidebar-footer form { margin-left: auto; }
.sidebar-footer button { color: #8fa2b7; border: 0; background: none; font-size: 18px; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #2c4967; color: #fff; font-weight: 800; }

.app-shell { min-height: 100vh; margin-left: 248px; display: flex; flex-direction: column; }
.topbar { height: 88px; padding: 0 36px; display: flex; align-items: center; gap: 20px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar > div { flex: 1; }
.topbar h1 { margin: 0; font-size: 21px; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.menu-toggle { display: none; border: 0; background: none; font-size: 22px; }
.content { width: 100%; max-width: 1530px; padding: 31px 36px 45px; margin: 0 auto; flex: 1; }
footer { padding: 22px 36px; color: #8c98a7; font-size: 11px; border-top: 1px solid var(--line); }
footer span { margin: 0 8px; }

.button { min-height: 44px; padding: 0 19px; border: 1px solid transparent; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-weight: 700; transition: .18s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 6px 15px rgba(20,120,242,.2); }
.button-primary:hover { background: var(--blue-dark); }
.button-light { color: var(--navy); background: #fff; }
.button-secondary { color: #fff; background: var(--navy); }
.button-ghost { color: var(--muted); border-color: var(--line); background: #fff; }
.button-full { width: 100%; }
.button.compact { min-height: 39px; font-size: 12px; }

.eyebrow { display: block; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.hero { position: relative; min-height: 238px; display: flex; align-items: flex-end; justify-content: space-between; padding: 42px 46px; overflow: hidden; color: #fff; background: linear-gradient(120deg, #132b47, #174064); border-radius: 12px; box-shadow: var(--shadow); }
.hero h2 { position: relative; z-index: 1; margin: 10px 0 8px; font-size: 36px; line-height: 1.12; letter-spacing: -.035em; }
.hero h2 em, .login-brand h1 em { color: #53a3ff; font-style: normal; }
.hero p { position: relative; z-index: 1; margin: 0; color: #b7c8d9; max-width: 550px; }
.hero .button { position: relative; z-index: 2; }
.hero-grid { position: absolute; right: -60px; top: -100px; width: 500px; height: 500px; opacity: .12; transform: rotate(25deg); background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.4) 1px,transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle, #000, transparent 70%); }

.stats-grid { margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { display: flex; align-items: center; gap: 18px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 20px rgba(22,42,70,.035); }
.stat-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 10px; font-size: 22px; }
.stat-icon.blue { color: var(--blue); background: #eaf4ff; }
.stat-icon.green { color: var(--green); background: #e8f8f2; }
.stat-icon.amber { color: var(--amber); background: #fff6e4; }
.stat-card span, .type-label { display: block; color: #8a97a7; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.stat-card strong { display: inline-block; margin: 4px 10px 0 0; font-size: 25px; }
.stat-card small { color: var(--muted); font-size: 10px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 20px rgba(22,42,70,.035); }
.panel-head { min-height: 78px; padding: 19px 23px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 5px 0 0; font-size: 16px; }
.panel-head > a { color: var(--blue); font-size: 11px; font-weight: 700; }
.job-list, .position-list { padding: 4px 22px 11px; }
.job-row, .position-row { min-height: 66px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f4; }
.job-row:last-child, .position-row:last-child { border: 0; }
.identity-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); background: #eef6ff; border-radius: 7px; font-weight: 800; }
.job-row > div, .position-row > div { flex: 1; }
.job-row b, .job-row small, .position-row b, .position-row small { display: block; }
.job-row b, .position-row b { font-size: 12px; }
.job-row small, .position-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.position-row time { color: var(--muted); font-size: 10px; }
.map-dot { width: 10px; height: 10px; margin: 0 10px; border: 2px solid var(--blue); border-radius: 50%; box-shadow: 0 0 0 4px #e9f3ff; }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { color: #a86e0b; background: #fff6df; }
.status-running { color: #1478f2; background: #e9f3ff; }
.status-completed { color: #10865b; background: #e5f7ef; }
.status-failed { color: #c93f48; background: #ffecef; }
.inline-empty { padding: 50px 20px; color: var(--muted); text-align: center; }

.alert { padding: 13px 16px; margin: 0 0 20px; border: 1px solid; border-radius: 7px; font-size: 12px; }
.alert-error { color: #9d2933; border-color: #fac9ce; background: #fff0f1; }
.alert-success { color: #0c7750; border-color: #bae8d5; background: #eaf9f2; }
.alert-warning { color: #875e13; border-color: #f3daa9; background: #fff8e9; }
.empty-state { padding: 100px 30px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.empty-state.small { border: 0; padding: 70px 30px; }
.empty-state h2 { margin: 16px 0 8px; }
.empty-state p { color: var(--muted); }
.empty-state code { display: inline-block; padding: 12px; color: var(--navy); background: #edf2f7; border-radius: 6px; }
.empty-icon { width: 52px; height: 52px; margin: auto; display: grid; place-items: center; color: var(--blue); background: #edf6ff; border-radius: 50%; font-weight: 800; }

.form-layout { max-width: 1120px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.form-panel { padding: 34px 39px 0; }
.form-panel > h2 { margin: 8px 0 6px; font-size: 25px; }
.form-panel > p { margin: 0 0 30px; color: var(--muted); }
.import-form fieldset { margin: 0; padding: 25px 0; border: 0; border-top: 1px solid var(--line); }
.import-form legend { padding: 0 15px 0 0; font-size: 13px; font-weight: 800; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 21px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 15px 17px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.segmented b, .segmented small { display: block; }
.segmented b { font-size: 12px; }
.segmented small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.segmented input:checked + span { border-color: var(--blue); background: #f0f7ff; box-shadow: inset 3px 0 var(--blue); }
.main-input > span, .field-grid label, .search-bar > label:not(.search-input), .form-stack label { display: block; font-size: 11px; font-weight: 700; }
input, select { width: 100%; height: 44px; padding: 0 13px; color: var(--ink); background: #fff; border: 1px solid #dce2e9; border-radius: 6px; outline: 0; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,120,242,.1); }
.main-input input, .main-input select { margin-top: 8px; }
.main-input small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.vehicle-picker { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vehicle-picker-tools { padding: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.picker-search { position: relative; width: min(380px, 100%); }
.picker-search > span { position: absolute; z-index: 1; left: 12px; top: 10px; color: var(--muted); font-size: 18px; }
.picker-search input { height: 39px; padding-left: 38px; }
.vehicle-picker-tools > div { display: flex; gap: 6px; }
.picker-action { padding: 8px 12px; color: var(--blue); background: #fff; border: 1px solid #d8e3ef; border-radius: 5px; font-size: 10px; font-weight: 800; }
.picker-action:hover { background: #edf6ff; }
.vehicle-picker-count { padding: 9px 14px; color: var(--muted); background: #fff; border-bottom: 1px solid var(--line); font-size: 10px; }
.vehicle-picker-count b { color: var(--blue); }
.vehicle-options { max-height: 310px; padding: 6px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: #fff; }
.vehicle-option { min-width: 0; padding: 11px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.vehicle-option:hover { background: #f6f9fc; }
.vehicle-option:has(input:checked) { border-color: #b9d8fb; background: #eff7ff; }
.vehicle-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vehicle-check { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; color: transparent; border: 1px solid #cdd6e0; border-radius: 5px; font-size: 11px; font-weight: 900; }
.vehicle-option input:checked + .vehicle-check { color: #fff; border-color: var(--blue); background: var(--blue); }
.vehicle-option > span:last-child { min-width: 0; }
.vehicle-option b, .vehicle-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-option b { font-size: 11px; }
.vehicle-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.picker-note { display: block; padding: 9px 13px; color: var(--muted); background: #f8fafc; border-top: 1px solid var(--line); font-size: 9px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid input { margin-top: 8px; }
.form-actions { margin: 5px -39px 0; padding: 21px 39px; display: flex; justify-content: flex-end; gap: 10px; background: #fafbfd; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.info-card { padding: 28px; color: #fff; background: var(--navy); border-radius: 10px; box-shadow: var(--shadow); }
.info-number { width: 29px; height: 29px; display: grid; place-items: center; color: var(--navy); background: #55a4fb; border-radius: 50%; font-weight: 900; }
.info-card h3 { margin: 16px 0 24px; }
.info-card ol { margin: 0; padding: 0; list-style: none; counter-reset: info; }
.info-card li { position: relative; min-height: 73px; padding-left: 35px; counter-increment: info; }
.info-card li::before { content: counter(info); position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; color: #75b3f8; border: 1px solid #43617e; border-radius: 50%; font-size: 9px; font-weight: 800; }
.info-card li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; border-left: 1px dashed #49627a; }
.info-card li b, .info-card li span { display: block; }
.info-card li b { font-size: 12px; }
.info-card li span { margin-top: 5px; color: #93a9bf; font-size: 10px; line-height: 1.5; }
.info-note { padding: 14px; margin-top: 14px; color: #9fb3c6; background: rgba(255,255,255,.05); border-left: 2px solid var(--blue); font-size: 10px; line-height: 1.55; }

.filters-head { flex-wrap: wrap; }
.filter-pills { display: flex; padding: 3px; background: #f1f4f7; border-radius: 7px; }
.filter-pills a { padding: 7px 11px; color: var(--muted); border-radius: 5px; font-size: 10px; font-weight: 700; }
.filter-pills a.active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.07); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 17px; color: #8a97a7; background: #fafbfd; font-size: 8px; font-weight: 900; letter-spacing: .11em; text-align: left; white-space: nowrap; }
td { padding: 15px 17px; border-top: 1px solid #edf0f4; font-size: 11px; vertical-align: middle; }
tbody tr:hover { background: #fafcff; }
tbody tr.focused { background: #f1f7ff; box-shadow: inset 3px 0 var(--blue); }
.block { display: block; }
td small.block { margin-top: 4px; color: var(--muted); font-size: 9px; }
.type-label { margin-bottom: 4px; font-size: 7px; }
.error-detail { display: block; max-width: 220px; margin-top: 6px; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
.row-link { margin-top: 5px; color: var(--blue); font-size: 9px; font-weight: 700; }

.search-bar { padding: 17px 20px; display: grid; grid-template-columns: minmax(220px, 1fr) 160px 160px auto auto; gap: 10px; align-items: end; border-bottom: 1px solid var(--line); }
.search-bar > label:not(.search-input) { color: var(--muted); font-size: 9px; }
.search-bar > label:not(.search-input) input { margin-top: 5px; }
.search-input { position: relative; }
.search-input span { position: absolute; left: 14px; top: 12px; color: var(--muted); font-size: 18px; }
.search-input input { padding-left: 40px; }
.clear-filter { align-self: center; color: var(--blue); font-size: 10px; font-weight: 700; }
.positions-table td:nth-child(3) { min-width: 190px; max-width: 300px; }
.ignition { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; }
.ignition-on { background: var(--green); box-shadow: 0 0 0 3px #ddf5eb; }
.ignition-off { background: #aab3be; }
.map-link { color: var(--blue); font-weight: 700; white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 10px; }
.json-link { padding: 6px 8px; color: #5b6878; background: #f3f6f9; border: 1px solid #dfe5eb; border-radius: 5px; font: 800 9px/1 "SFMono-Regular", Consolas, monospace; white-space: nowrap; }
.json-link:hover { color: var(--blue); border-color: #b9d8fb; background: #eff7ff; }
.pagination { padding: 15px 20px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.pagination div { display: flex; gap: 8px; }
.pagination a { padding: 6px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; font-weight: 700; }

.log-stats { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.log-stats article { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 4px 20px rgba(22,42,70,.035); }
.log-stats span, .log-summary span { display: block; color: #8a97a7; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.log-stats strong { display: block; margin-top: 7px; font-size: 23px; }
.log-stats strong small { color: var(--muted); font-size: 11px; }
.text-red { color: var(--red); }
.rate-config-panel { margin-bottom: 20px; padding: 16px 20px; display: flex; align-items: center; gap: 30px; background: #eef5fc; border: 1px solid #d8e7f6; border-radius: 9px; }
.rate-config-panel > div:first-child { min-width: 190px; }
.rate-config-panel b, .rate-config-panel small { display: block; }
.rate-config-panel b { margin-top: 5px; font-size: 13px; }
.rate-config-panel small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.rate-config-panel dl { margin: 0; display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 8px; }
.rate-config-panel dl > div { min-width: 91px; padding: 9px 11px; background: #fff; border: 1px solid #dce7f2; border-radius: 6px; }
.rate-config-panel dt { color: var(--muted); font-size: 8px; }
.rate-config-panel dd { margin: 4px 0 0; color: var(--navy); font-size: 11px; font-weight: 900; }
.log-filter { grid-template-columns: 1fr 1fr 1.4fr .8fr 1fr auto auto; }
.log-filter label { color: var(--muted); font-size: 9px; font-weight: 700; }
.log-filter input, .log-filter select { margin-top: 5px; }
.method-badge { display: inline-block; padding: 4px 6px; margin-right: 7px; color: var(--blue); background: #eaf4ff; border-radius: 4px; font-size: 8px; font-weight: 900; }
.detail-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.back-link { color: var(--blue); font-size: 11px; font-weight: 700; }
.log-summary { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.log-summary article { min-width: 0; padding: 17px 19px; border-right: 1px solid var(--line); }
.log-summary article:nth-child(4n) { border-right: 0; }
.log-summary b { display: block; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.log-detail-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.code-panel { min-width: 0; overflow: hidden; }
.code-panel .panel-head h3 { max-width: 560px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.code-section { padding: 19px 22px; border-top: 1px solid var(--line); }
.code-section:first-of-type { border-top: 0; }
.code-section > span { display: block; margin-bottom: 9px; color: #8a97a7; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.code-section pre { max-height: 300px; margin: 0; padding: 16px; overflow: auto; color: #dbe8f5; background: #102238; border-radius: 7px; font: 11px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-section pre.response-body { max-height: 620px; }
.vehicle-page-head { margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 15px; }
.vehicle-stats { margin: 0; }
.vehicle-stats .sync-date { font-size: 15px; line-height: 1.5; }
.sync-card { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: center; background: var(--navy); border-radius: 9px; color: #fff; }
.sync-card .sync-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #75b9ff; background: rgba(255,255,255,.08); border-radius: 8px; font-size: 21px; }
.sync-card b, .sync-card small { display: block; }
.sync-card b { font-size: 12px; }
.sync-card small { margin-top: 4px; color: #8fa7bf; font-size: 9px; line-height: 1.4; }
.sync-card .button { grid-column: 1 / -1; min-height: 38px; }
.vehicle-search { grid-template-columns: minmax(260px, 1fr) 180px auto auto; }
.job-filter { grid-template-columns: minmax(280px, 1fr) 190px auto auto; }
.positions-filter { grid-template-columns: minmax(230px, 1.2fr) minmax(190px, 1fr) 145px 145px auto auto; }
.plate-badge { display: inline-block; padding: 6px 9px; color: var(--navy); background: #edf2f7; border: 1px solid #dce3eb; border-radius: 5px; font-weight: 900; letter-spacing: .08em; }
.vehicles-table td:first-child { min-width: 125px; }
.vehicles-table td:nth-child(2), .vehicles-table td:nth-child(3) { min-width: 180px; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 28px; display: flex; align-items: center; justify-content: center; background: rgba(8, 22, 38, .72); backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.json-modal { width: min(920px, 100%); max-height: calc(100vh - 56px); display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 11px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.json-modal header { padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.json-modal header h2 { margin: 6px 0 0; font-size: 17px; }
.json-modal header > button { width: 34px; height: 34px; color: var(--muted); background: #f2f5f8; border: 0; border-radius: 50%; font-size: 22px; }
.json-modal-toolbar { padding: 10px 23px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 9px; }
.json-modal-toolbar button { padding: 7px 10px; color: var(--blue); background: #fff; border: 1px solid #d8e3ef; border-radius: 5px; font-size: 9px; font-weight: 800; }
.json-modal pre { min-height: 280px; margin: 0; padding: 22px; overflow: auto; color: #dbe8f5; background: #102238; font: 11px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.login-page { color: #fff; background: var(--navy); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.15fr) minmax(430px, .85fr); }
.login-brand { position: relative; padding: 8vh 9vw; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: linear-gradient(145deg,#0d2139 0%,#153959 100%); }
.login-brand::before { content: ""; position: absolute; width: 650px; height: 650px; right: -250px; top: -250px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.018), 0 0 0 180px rgba(255,255,255,.012); }
.brand-mark-large { width: 53px; height: 53px; margin-bottom: 55px; font-size: 27px; border-radius: 15px 15px 15px 4px; }
.login-brand h1 { margin: 14px 0 18px; font-size: clamp(39px, 4.4vw, 65px); line-height: 1.02; letter-spacing: -.055em; }
.login-brand > p { max-width: 530px; margin: 0 0 55px; color: #9db0c4; font-size: 15px; line-height: 1.6; }
.login-feature { display: flex; gap: 17px; margin: 12px 0; }
.login-feature > span { width: 28px; height: 28px; display: grid; place-items: center; color: #63abfb; border: 1px solid #46627d; border-radius: 50%; font-size: 9px; }
.login-feature b, .login-feature small { display: block; }
.login-feature b { font-size: 12px; }
.login-feature small { margin-top: 4px; color: #8096ac; font-size: 10px; }
.login-card { padding: 11vh clamp(45px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; color: var(--ink); background: #fff; }
.login-card h2 { margin: 10px 0 7px; font-size: 34px; letter-spacing: -.03em; }
.login-card > p { margin: 0 0 31px; color: var(--muted); }
.form-stack { display: grid; gap: 18px; }
.form-stack input { margin-top: 8px; }
.form-stack .button { margin-top: 7px; }
.secure-note { margin-top: 23px; color: #99a4b2; text-align: center; font-size: 9px; }
.mobile-logo { display: none; }

@media (max-width: 1000px) {
  .sidebar { transform: translateX(-100%); transition: .2s; }
  .menu-open .sidebar { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .app-shell { margin-left: 0; }
  .menu-toggle { display: block; }
  .content { padding: 25px 22px; }
  .topbar { padding: 0 22px; }
  .stats-grid { grid-template-columns: 1fr; }
  .two-columns { grid-template-columns: 1fr; }
  .log-summary { grid-template-columns: repeat(3, 1fr); }
  .log-summary article:nth-child(3) { border-right: 0; }
  .log-detail-grid { grid-template-columns: 1fr; }
  .vehicle-page-head { grid-template-columns: 1fr; }
  .vehicle-options { grid-template-columns: 1fr; }
  .rate-config-panel { align-items: stretch; flex-direction: column; gap: 13px; }
  .rate-config-panel dl { justify-content: flex-start; flex-wrap: wrap; }
  .login-shell { grid-template-columns: 1fr 1fr; }
  .login-brand { padding: 6vw; }
  .login-brand h1 { font-size: 46px; }
}

@media (max-width: 760px) {
  .topbar .button { display: none; }
  .hero { padding: 34px 28px; align-items: flex-start; flex-direction: column; }
  .hero h2 { font-size: 29px; }
  .stats-grid { gap: 10px; }
  .form-layout { grid-template-columns: 1fr; }
  .form-panel { padding: 25px 22px 0; }
  .form-actions { margin-left: -22px; margin-right: -22px; padding: 18px 22px; }
  .info-card { order: -1; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .log-filter { grid-template-columns: 1fr 1fr; }
  .vehicle-search, .job-filter, .positions-filter { grid-template-columns: 1fr 1fr; }
  .log-stats { grid-template-columns: 1fr 1fr; }
  .log-summary { grid-template-columns: 1fr 1fr; }
  .log-summary article:nth-child(odd) { border-right: 1px solid var(--line); }
  .log-summary article:nth-child(even) { border-right: 0; }
  .search-input { grid-column: 1 / -1; }
  .login-shell { display: block; }
  .login-brand { display: none; }
  .login-card { min-height: 100vh; padding: 12vw; }
  .mobile-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 70px; }
  .mobile-logo b { color: var(--muted); font-weight: 500; }
  .segmented, .field-grid { grid-template-columns: 1fr; }
  .vehicle-picker-tools { align-items: stretch; flex-direction: column; }
  .picker-search { width: 100%; }
  .modal-backdrop { padding: 10px; }
  .json-modal { max-height: calc(100vh - 20px); }
}
