@font-face {
  font-family: Inter;
  src: url("/admin/inter.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/admin/inter-semibold.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #111827;
  background: #f9fafb;
  --accent: #fc4c02;
  --border: #e5e7eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100dvh;
}
aside {
  width: 256px;
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  flex-shrink: 0;
}
.brand {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 24px;
  color: #e04402;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
nav {
  padding: 24px 12px;
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  border: 0;
}
nav button.active {
  background: #fff0eb;
  color: #c2410c;
}
.account {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: #6b7280;
  overflow-wrap: anywhere;
}
main {
  min-width: 0;
  flex: 1;
}
header {
  height: 80px;
  padding: 16px 32px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h1 {
  font-size: 22px;
  margin: 0;
}
h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  margin: 0;
}
p {
  line-height: 1.6;
}
.content {
  padding: 32px;
  max-width: 1200px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.login {
  max-width: 420px;
  margin: 32px auto;
}
button,
input,
select {
  font: inherit;
}
button {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  min-height: 44px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
button:hover {
  background: #f3f4f6;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}
.primary:hover {
  background: #e04402;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
form {
  display: grid;
  gap: 20px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
input:not([type="radio"]):not([type="checkbox"]),
select {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
  background: #f9fafb;
  color: #111827;
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
input[type="radio"] + span {
  overflow-wrap: anywhere;
}
.muted {
  font-size: 13px;
  color: #6b7280;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.vin {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.error,
#message {
  border-radius: 10px;
  background: #fff0eb;
  color: #9a3412;
  padding: 12px;
  font-size: 14px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.choice small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
fieldset {
  border: 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: 0 0 20px;
  min-width: 0;
}
legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.notice {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: min(740px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #11182766;
}
#close-dialog {
  margin-top: 20px;
}
.event {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.event dl {
  font-size: 14px;
}
.event dd {
  margin: 6px 0 14px;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  body {
    display: block;
  }
  aside {
    position: static;
    width: auto;
    height: auto;
    border-right: 0;
  }
  .brand {
    height: 60px;
  }
  nav {
    display: flex;
    padding: 12px;
  }
  .account {
    display: none;
  }
  header {
    padding: 16px;
    height: auto;
    min-height: 72px;
  }
  .content {
    padding: 16px;
  }
  .grid,
  .choices {
    grid-template-columns: 1fr;
  }
  .row {
    align-items: flex-start;
    flex-direction: column;
  }
  .card {
    padding: 20px;
  }
}
.record-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 13px;
}
.choice span {
  overflow-wrap: anywhere;
  min-width: 0;
  white-space: pre-wrap;
}
