/* Hallmark · scope: app · genre: modern-minimal · theme: blueprint · sheet: whiteprint with cyanotype drawing · v2.0.0 */
/* critique: vehicle records read as a register, with one workshop drawing as its cover. */
@font-face {
  font-family: Plex;
  src: url(/fonts/body.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url(/fonts/body-bold.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/fonts/display.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --body: Plex, system-ui, sans-serif;
  --display: Barlow, "Arial Narrow", sans-serif;
  --paper: #f5f6f3;
  --white: #fff;
  --ink: #172f40;
  --muted: #546775;
  --line: #cbd3d3;
  --navy: #17364c;
  --blue: #174e76;
  --deep: #103957;
  --light: #e7eef0;
  --pale: #d8e5ed;
  --clear: transparent;
  --danger: #942e20;
  --urgent: #fceddf;
  --soon: #77510b;
  --amber: #f4ecce;
  --ok: #28533d;
  --green: #e4eee8;
  --focus: #d47718;
  --shadow: 0 12px 36px rgb(20 46 65 / 0.1);
}
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.5 var(--body);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  min-width: 0;
  overflow-wrap: break-word;
}
h1,
h2,
.brand {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
}
h1 {
  font-size: 3rem;
  letter-spacing: -0.022em;
}
h2 {
  font-size: 1.85rem;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.03rem;
  line-height: 1.4;
}
a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  background: var(--light);
  color: var(--muted);
  border-color: var(--line);
  cursor: wait;
}
button,
a {
  -webkit-tap-highlight-color: var(--clear);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  stroke-width: 1.7;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-linecap: round;
  vertical-align: middle;
}
.wrap {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.bar {
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  gap: 2.6rem;
}
.brand {
  color: var(--ink);
  font-size: 1.63rem;
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 2.25rem;
  height: 2.25rem;
}
.brand-word {
  display: inline-flex;
  gap: 0.23em;
}
.brand-word span {
  color: var(--muted);
}
nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 1.3rem;
}
nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 3px solid var(--clear);
  border-top: 3px solid var(--clear);
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--muted);
  font-weight: 600;
}
nav a[aria-current="page"] {
  border-bottom-color: var(--blue);
  color: var(--blue);
}
.bar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.89rem;
}
main.wrap {
  padding-block: 2.5rem 4rem;
}
.login-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.login-entry {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100% - 3rem, 72rem);
  margin: 2.4rem auto;
  min-height: 32rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.login-copy {
  padding: clamp(2rem, 4.4vw, 5rem);
  align-self: center;
}
.login-copy h1 {
  font-size: 4rem;
  line-height: 0.98;
  max-width: 8em;
}
.login-copy > p {
  margin: 1rem 0 2.25rem;
  max-width: 22rem;
  color: var(--muted);
}
.login-copy form {
  max-width: 24rem;
}
.login-copy .primary {
  width: 100%;
  margin-top: 1.35rem;
}
.blueprint {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.blueprint img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-diagram {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}
.login-diagram img {
  flex: 1;
  min-height: 0;
  height: 25rem;
}
.caption {
  margin: 0 1.5rem;
  padding: 0.9rem 0 1rem;
  border-top: 1px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--pale);
  font-size: 0.85rem;
}
.caption strong {
  color: var(--white);
  font-weight: 600;
}
.login-foot {
  width: min(100% - 3rem, 72rem);
  margin: 0 auto 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.58rem 1rem;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
}
.btn:hover,
.icon-btn:hover {
  background: var(--light);
}
.primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.primary:hover {
  background: var(--deep);
}
.icon-btn {
  width: 2.85rem;
  padding: 0.5rem;
}
.plain {
  background: var(--clear);
  border-color: var(--clear);
}
.small {
  font-size: 0.9rem;
}
.danger {
  color: var(--danger);
}
.txt {
  color: var(--muted);
}
.stack {
  display: grid;
  gap: 1.2rem;
}
.actions,
.rowhead,
.pagehead,
.tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pagehead,
.rowhead {
  justify-content: space-between;
}
.pagehead {
  margin-bottom: 1.65rem;
}
.pagehead p,
.helper {
  color: var(--muted);
  margin-top: 0.5rem;
}
.rowhead {
  padding-bottom: 0.9rem;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
  text-decoration: none;
}
.back .icon {
  width: 1rem;
}
.mission {
  min-height: 14rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.mission-copy {
  padding: 2.4rem;
  align-self: center;
}
.mission h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: 3.65rem;
}
.mission p {
  color: var(--pale);
}
.mission .date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.mission .btn {
  margin-top: 1.3rem;
}
.mission .blueprint img {
  position: absolute;
  inset: 0;
  width: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin: 1.4rem 0 2.5rem;
}
.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--muted);
  text-decoration: none;
}
.stat:first-child {
  padding-left: 0;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat strong {
  font: 600 2.8rem/1 var(--display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat:hover span {
  text-decoration: underline;
}
.sections {
  display: grid;
  gap: 2.1rem;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
}
.empty {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.6rem;
}
.empty p,
.meta {
  color: var(--muted);
  font-size: 0.93rem;
}
.symbol {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--light);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 5px;
}
.symbol .icon {
  width: 1.6rem;
  height: 1.6rem;
}
.register {
  display: grid;
}
.record {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
}
a.record:hover {
  background: var(--light);
}
.record + .record {
  border-top: 1px solid var(--line);
}
.grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.record .chevron {
  width: 1rem;
  color: var(--muted);
}
.plate {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.89rem;
  background: var(--white);
  border: 1px solid var(--ink);
  border-left: 5px solid var(--blue);
  border-radius: 4px;
  padding: 0.08rem 0.48rem;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.tools {
  margin: 0 0 1rem;
  justify-content: space-between;
}
.search,
.password {
  position: relative;
}
.search .icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}
.search input {
  padding-left: 2.6rem;
}
.tabs {
  display: inline-flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.88rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.94rem;
}
.tabs a[aria-current="true"] {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
  background: var(--light);
}
.badge {
  display: inline-flex;
  padding: 0.18rem 0.55rem;
  font-size: 0.85rem;
  border-radius: 4px;
  background: var(--light);
  color: var(--blue);
  font-weight: 600;
}
.badge.due {
  background: var(--urgent);
  color: var(--danger);
}
.badge.soon {
  background: var(--amber);
  color: var(--soon);
}
.badge.planned {
  background: var(--green);
  color: var(--ok);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.6rem;
}
.sectionpad {
  padding: 1.35rem;
}
.kv {
  margin: 0.75rem 0 0;
}
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}
.kv dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.kv dt {
  color: var(--muted);
}
.entry {
  padding: 1.3rem;
  overflow-wrap: anywhere;
}
.entry + .entry {
  border-top: 1px solid var(--line);
}
.entry h3 {
  font-size: 1.13rem;
  margin: 0.3rem 0;
}
.entry p,
.note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry p {
  margin-top: 0.5rem;
}
.entry .rowhead {
  padding: 0;
  align-items: flex-start;
}
.entry .meta {
  display: block;
}
.document {
  display: block;
  width: 100%;
  max-height: 17rem;
  object-fit: contain;
  margin: 1rem 0;
  background: var(--paper);
}
.form-card {
  max-width: 48rem;
  padding: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.form-card fieldset {
  border: 0;
  margin: 0 0 1.7rem;
  padding: 0;
  min-width: 0;
}
.form-card legend {
  font: 600 1.45rem var(--display);
  padding: 0;
  margin: 0 0 1rem;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.wide {
  grid-column: 1/-1;
}
label,
.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 0.35rem;
}
.control,
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  background: var(--white);
  border: 1px solid var(--muted);
  border-radius: 4px;
  color: var(--ink);
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 5.8rem;
}
.password input {
  padding-right: 3rem;
}
.password button {
  position: absolute;
  right: 0.12rem;
  top: 0.1rem;
  border: none;
  min-height: 2.7rem;
}
.choices {
  display: flex;
  gap: 0.5rem;
}
.choices label {
  flex: 1;
  position: relative;
  margin: 0;
  cursor: pointer;
}
.choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}
.choices span {
  min-height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  gap: 0.5rem;
}
.choices input:checked + span {
  background: var(--light);
  color: var(--blue);
  border-color: var(--blue);
}
.choices input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.error:not(:empty) {
  margin: 0.8rem 0;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--danger);
  color: var(--danger);
  background: var(--urgent);
}
.help {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.45rem 0;
}
.file-picker {
  margin: 0;
  cursor: pointer;
}
.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}
.file-picker:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  background: var(--white);
  padding: 0.7rem;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  padding: 0.8rem 1.2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow);
  z-index: 10;
}
.loading {
  padding: 2rem;
}
.panel + .panel {
  margin-top: 1rem;
}
@media (max-width: 50rem) {
  .bar {
    gap: 1.25rem;
  }
  .wrap,
  .login-entry,
  .login-foot {
    width: min(100% - 2rem, 72rem);
  }
  .login-copy {
    padding: 1.7rem;
  }
  .login-copy h1 {
    font-size: 3.2rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .mission-copy {
    padding: 1.7rem;
  }
  .mission h1 {
    font-size: 3rem;
  }
  .stat {
    gap: 0.65rem;
  }
}
@media (max-width: 39rem) {
  .bar {
    min-height: 4rem;
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
    padding-top: 0.65rem;
  }
  .brand {
    font-size: 1.45rem;
  }
  .brand img {
    width: 2rem;
    height: 2rem;
  }
  .bar:has(nav) {
    padding-bottom: 0;
  }
  .bar:not(:has(nav)) {
    padding-top: 0;
  }
  .bar-end {
    margin-left: auto;
  }
  .bar nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: 0.5rem;
  }
  .bar nav a {
    min-height: 2.7rem;
    font-size: 0.88rem;
  }
  .bar nav .icon {
    width: 1rem;
  }
  .logout-text {
    display: none;
  }
  main.wrap {
    padding-block: 1.35rem 3rem;
  }
  .login-entry {
    margin: 0.95rem auto;
    display: flex;
    flex-direction: column-reverse;
    flex: 0 1 auto;
    min-height: 0;
  }
  .login-diagram {
    height: 10.5rem;
    display: block;
  }
  .login-diagram img {
    height: 100%;
    object-fit: cover;
    object-position: center 29%;
  }
  .login-diagram .caption {
    display: none;
  }
  .login-copy {
    align-self: stretch;
    padding: 1.45rem;
  }
  .login-copy h1 {
    max-width: none;
    font-size: 2.65rem;
  }
  .login-copy > p {
    margin: 0.6rem 0 1.3rem;
  }
  .login-foot {
    margin-block: 0.15rem 1rem;
  }
  .mission {
    min-height: 0;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.8fr);
  }
  .mission-copy {
    padding: 1.25rem 0.3rem 1.25rem 1.2rem;
  }
  .mission h1 {
    font-size: 2.5rem;
  }
  .mission .blueprint img {
    width: 180%;
    max-width: none;
    left: -35%;
  }
  .mission .date {
    font-size: 0.82rem;
  }
  .mission .btn {
    margin-top: 0.9rem;
  }
  .stats {
    margin: 0.9rem 0 1.6rem;
  }
  .stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.8rem 0.55rem;
    font-size: 0.82rem;
  }
  .stat strong {
    font-size: 2rem;
  }
  .sections {
    gap: 1.6rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .empty,
  .record,
  .entry {
    padding: 1rem;
  }
  .record {
    gap: 0.65rem;
  }
  .symbol {
    width: 2.6rem;
    height: 2.6rem;
  }
  .record .plate {
    font-size: 0.78rem;
  }
  .pagehead {
    gap: 0.85rem;
    margin-bottom: 1.1rem;
  }
  .pagehead .actions {
    width: 100%;
  }
  .tools {
    align-items: stretch;
  }
  .search {
    width: 100%;
  }
  .tabs {
    gap: 0.25rem;
  }
  .tabs a {
    padding: 0.4rem 0.6rem;
    font-size: 0.87rem;
  }
  .sectionpad {
    padding: 1rem;
  }
  .rowhead {
    gap: 0.6rem;
  }
  .fields {
    gap: 0.8rem;
  }
  .small {
    padding: 0.45rem 0.7rem;
  }
  .record.rem {
    flex-wrap: wrap;
  }
  .record.rem .grow {
    min-width: 48%;
  }
}
@media (max-width: 22rem) {
  .fields {
    grid-template-columns: 1fr;
  }
  .mission {
    grid-template-columns: 1fr;
  }
  .mission .blueprint {
    display: none;
  }
  .record .symbol {
    display: none;
  }
  .login-copy {
    padding: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

h1,
h2 {
  text-wrap: balance;
}
.btn:active,
.icon-btn:active {
  transform: translateY(1px);
}
