:root {
  color-scheme: light;
  --navy: #071d55;
  --blue: #21498d;
  --ink: #152b52;
  --muted: #465b7b;
  --line: #d5dfed;
  --pale: #eff4fb;
  --white: #fff;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f4f7fc; color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.mast { background: #f5f5f5; border-bottom: 1px solid var(--line); }
.mast-inner, .footer-inner, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mast img { display: block; width: 220px; max-width: 100%; height: auto; }
#identity { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 8px; }
.hero { color: white; background: radial-gradient(ellipse at 90% 10%, #2f5899, transparent 60%), linear-gradient(115deg, #061655, #123370); padding: 38px 0 56px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.05; letter-spacing: -.045em; margin: 8px 0 12px; }
.hero p { margin: 0; color: #e3ebf8; }
.community { font-weight: 700; }
main.wrap { position: relative; margin-top: -24px; padding-bottom: 36px; flex: 1; }
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 26px); margin-bottom: 16px; box-shadow: 0 8px 25px #0927640d; }
h2, h3 { margin: 0 0 12px; }
.login { max-width: 470px; }
label { display: block; font-weight: 700; margin-bottom: 5px; }
input, select, button { font: inherit; border-radius: 9px; padding: 9px 13px; }
input, select { border: 1px solid #879cbe; background: white; color: var(--ink); }
form:not(#search) input, form select { display: block; width: 100%; margin-bottom: 13px; }
button { border: 1px solid var(--blue); color: white; background: var(--blue); font-weight: 700; cursor: pointer; }
button:hover { background: var(--navy); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { color: var(--ink); background: white; border-color: #aebdd5; }
button.secondary:hover { background: var(--pale); }
:focus-visible { outline: 3px solid #5f7eb0; outline-offset: 3px; }
.bar { display: flex; gap: 8px; flex-wrap: wrap; }
.bar input { flex: 1; min-width: 155px; text-transform: uppercase; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
nav.bar { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
aside { padding: 12px 16px; margin-bottom: 16px; background: #e8effa; border-left: 4px solid #5f7eb0; border-radius: 8px; }
#notice:empty, #edit-error:empty { display: none; }
#notice, #edit-error { color: #852635; background: #fff1f2; padding: 10px 14px; border-radius: 9px; }
#notice { margin: 0 0 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--pale); font-size: .9rem; }
td:first-child { min-width: 110px; }
td .plate-link { color: var(--navy); background: transparent; border: 0; text-decoration: underline; padding: 1px 2px; white-space: nowrap; }
.records-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 260px),1fr)); gap: 12px; }
.record { background: var(--pale); padding: 16px; border-radius: 12px; overflow-wrap: anywhere; }
.record h3 { letter-spacing: .04em; }
.record p { margin: 6px 0; }
.record .bar { margin-top: 12px; }
#management-content > p { border-bottom: 1px solid var(--line); padding-bottom: 9px; }
#account-form { max-width: 420px; margin-top: 20px; }
dialog { border: 1px solid var(--line); border-radius: 16px; width: min(460px, calc(100% - 24px)); color: var(--ink); }
dialog::backdrop { background: #06165588; }
footer { border-top: 1px solid var(--line); background: white; padding: 22px 0; }
footer p { margin: 4px 0; color: var(--muted); }
footer img { width: 120px; height: auto; }
@media (max-width: 560px) { .mast img { width: 165px; } .hero { padding-top: 28px; } .footer-inner { align-items: flex-start; } }


.external-lookup { margin: 10px 0 0; }
.external-lookup a { color: var(--blue); font-weight: 700; }.external-lookup a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border-radius: 9px; background: #e5edf9; border: 1px solid #7795c4; color: #092764; font-weight: 750; text-decoration: none; }
.external-lookup a:hover { background: #d7e5f9; text-decoration: underline; }
