/* Issuer (DMV) styling — hand-rolled, self-contained (no external fonts/CDNs).
   The license is styled as a physical DL card. */

:root {
  --bg: #eef1f6;
  --card: #ffffff;
  --band: #1b3a6b;
  --band-2: #2b5aa0;
  --ink: #14243f;
  --muted: #5b6b86;
  --line: #cdd6e5;
  --accent: #1b6bd6;
  --ok: #1a8f5f;
  --err: #c8384a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding: 24px;
}

header h1 {
  margin: 0 0 4px;
  font-size: 22px;
}
.sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Physical-DL-style card */
.dl-card {
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20, 36, 63, 0.12);
}
.dl-band {
  background: linear-gradient(100deg, var(--band), var(--band-2));
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.dl-state {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 16px;
}
.dl-title {
  font-size: 12px;
  letter-spacing: 0.15em;
  opacity: 0.9;
}

.dl-body {
  display: flex;
  gap: 16px;
  padding: 16px;
}
.dl-photo {
  flex: 0 0 96px;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f5fa;
  position: relative;
}
.dl-silhouette {
  position: absolute;
  inset: 0;
}
.dl-silhouette::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #c3cede;
  transform: translateX(-50%);
}
.dl-silhouette::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 64px;
  height: 40px;
  border-radius: 32px 32px 0 0;
  background: #c3cede;
  transform: translateX(-50%);
}

.dl-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.dl-fields label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dl-fields input {
  margin-top: 3px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
}
.dl-fields input:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.derived {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}
.chk {
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  font-size: 13px !important;
  text-transform: none !important;
  color: var(--ink) !important;
}
.derived-note {
  font-size: 11px;
  color: var(--muted);
}

.actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
button.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
button.primary:hover {
  filter: brightness(1.05);
}

#status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
#status.ok {
  color: var(--ok);
}
#status.err {
  color: var(--err);
}

footer {
  margin-top: 28px;
  max-width: 560px;
}
.footnote {
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
