:root {
  color-scheme: light;
  --ink: #18211d;
  --muted: #68716b;
  --garage: #17221e;
  --garage-2: #26342e;
  --paper: #f6f2e8;
  --paper-2: #ebe6da;
  --line: #c8c1b3;
  --amber: #e6a93d;
  --amber-light: #f1d37e;
  --green: #68a184;
  --orange: #d96f45;
  --blue: #7599aa;
  --shadow: 0 18px 45px rgb(26 31 28 / 14%);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper-2);
  color: var(--ink);
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgb(24 33 29 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(24 33 29 / 3%) 1px, transparent 1px), var(--paper-2);
  background-size: 28px 28px;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary,
.file-button {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  background: white;
  left: 1rem;
  padding: 0.6rem 1rem;
  position: fixed;
  top: -10rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  background: rgb(23 34 30 / 96%);
  color: var(--paper);
  display: flex;
  height: 66px;
  justify-content: space-between;
  padding: 0 4vw;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 0.7rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-lamp {
  background: #2d3934;
  border: 2px solid #657169;
  border-radius: 50%;
  display: grid;
  height: 34px;
  place-items: center;
  width: 34px;
}

.brand-lamp i {
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--amber);
  display: block;
  height: 11px;
  width: 11px;
}

.site-header nav {
  display: flex;
  font-size: 13px;
  gap: 1.4rem;
}

.site-header nav a {
  color: #d8ded9;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--amber-light);
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin: 3rem 4vw 0;
  padding: 1.5rem 0 2.5rem;
}

.garage {
  margin: 0 auto;
  max-width: 1540px;
  padding: 28px 4vw 0;
}

.garage-door {
  background: var(--garage);
  border: 8px solid #4f5550;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(420px, 1.3fr) minmax(330px, 0.7fr);
  min-height: 680px;
  overflow: hidden;
}

.garage-visual {
  background:
    radial-gradient(circle at 50% 16%, rgb(241 211 126 / 24%), transparent 27%),
    linear-gradient(180deg, #25322c 0 70%, #101713 70%);
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.garage-visual::before {
  background: repeating-linear-gradient(90deg, transparent 0 89px, rgb(255 255 255 / 4%) 90px);
  content: "";
  inset: 0;
  position: absolute;
}

.ceiling-lamp {
  background: #4e5953;
  border-radius: 0 0 22px 22px;
  height: 24px;
  left: 50%;
  position: absolute;
  top: 45px;
  transform: translateX(-50%);
  width: 130px;
}

.ceiling-lamp::before {
  background: #727d76;
  content: "";
  height: 46px;
  left: 63px;
  position: absolute;
  top: -46px;
  width: 4px;
}

.ceiling-lamp i {
  background: var(--amber-light);
  border-radius: 50%;
  box-shadow: 0 0 48px 20px rgb(241 211 126 / 40%);
  display: block;
  height: 12px;
  margin: 17px auto 0;
  width: 70px;
}

.tool-wall {
  background: #3a4741;
  border: 7px solid #58645d;
  height: 230px;
  left: 8%;
  position: absolute;
  top: 130px;
  width: 170px;
}

.tool-wall::before {
  background-image: radial-gradient(#768078 1px, transparent 1px);
  background-size: 12px 12px;
  content: "";
  inset: 8px;
  position: absolute;
}

.tool-wall span {
  display: block;
  position: absolute;
}

.wrench {
  border: 7px solid var(--amber);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  height: 50px;
  left: 38px;
  top: 45px;
  transform: rotate(-22deg);
  width: 22px;
}

.wrench::after {
  background: var(--amber);
  content: "";
  height: 90px;
  left: 2px;
  position: absolute;
  top: 34px;
  width: 7px;
}

.socket {
  background: var(--blue);
  border-radius: 3px;
  height: 100px;
  right: 35px;
  top: 44px;
  transform: rotate(15deg);
  width: 14px;
}

.rag {
  background: var(--orange);
  bottom: 18px;
  height: 36px;
  left: 55px;
  opacity: 0.8;
  transform: skew(-15deg);
  width: 70px;
}

.car-shape {
  background: linear-gradient(#7c8b84, #54635c);
  border-radius: 90px 120px 22px 22px;
  bottom: 92px;
  box-shadow: 0 28px 28px rgb(0 0 0 / 40%);
  height: 170px;
  left: 19%;
  position: absolute;
  width: 68%;
}

.car-shape::before {
  background: #64736c;
  border-radius: 80px 80px 0 0;
  content: "";
  height: 120px;
  left: 18%;
  position: absolute;
  top: -87px;
  transform: perspective(250px) rotateX(12deg);
  width: 64%;
}

.car-window {
  background: linear-gradient(135deg, #9db3b6, #3c5456);
  border: 8px solid #4f5e57;
  border-radius: 50px 50px 5px 5px;
  height: 82px;
  left: 24%;
  position: absolute;
  top: -67px;
  width: 52%;
}

.car-shape::after {
  background: var(--amber-light);
  border-radius: 50%;
  box-shadow:
    0 0 20px rgb(241 211 126 / 70%),
    220px 0 0 var(--amber-light),
    220px 0 20px rgb(241 211 126 / 70%);
  content: "";
  height: 28px;
  left: 13%;
  position: absolute;
  top: 68px;
  width: 56px;
}

.wheel {
  background: #121815;
  border: 9px solid #2d3531;
  border-radius: 50%;
  bottom: -30px;
  height: 76px;
  position: absolute;
  width: 76px;
}

.wheel::after {
  background: #838d87;
  border-radius: 50%;
  content: "";
  inset: 15px;
  position: absolute;
}

.wheel.left {
  left: 10%;
}

.wheel.right {
  right: 10%;
}

.floor-line {
  border-bottom: 5px solid #d3bb62;
  bottom: 36px;
  left: 8%;
  position: absolute;
  transform: perspective(80px) rotateX(40deg);
  width: 84%;
}

.first-vehicle {
  align-self: stretch;
  background: linear-gradient(rgb(24 33 29 / 4%) 1px, transparent 1px), var(--paper);
  background-size: 100% 28px;
  padding: clamp(38px, 6vw, 76px);
}

.eyebrow {
  color: #8c6b23;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.03em;
  line-height: 1.35;
}

h2 {
  font-size: 20px;
  line-height: 1.4;
}

h3 {
  font-size: 16px;
  line-height: 1.45;
}

.first-vehicle > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.vehicle-form,
.record-form,
.reminder-form {
  display: grid;
  gap: 1rem;
}

label {
  color: #4e5752;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 0.4rem;
}

input,
select,
textarea {
  background: #fffef9;
  border: 1px solid #bdb7aa;
  border-radius: 5px;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #9e751b;
  box-shadow: 0 0 0 3px rgb(230 169 61 / 18%);
  outline: 0;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.field-pair {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
}

.unit-input {
  align-items: center;
  background: #fffef9;
  border: 1px solid #bdb7aa;
  border-radius: 5px;
  display: flex;
}

.unit-input input {
  background: transparent;
  border: 0;
  flex: 1;
  min-width: 0;
}

.unit-input b {
  color: var(--muted);
  font-size: 12px;
  padding: 0 0.75rem;
}

.privacy-note {
  background: #ece9dd;
  border-left: 3px solid var(--green);
  color: #626a65;
  font-size: 11px;
  line-height: 1.75;
  margin: 0;
  padding: 0.75rem 0.9rem;
}

.primary-button,
.garage-actions button,
.rail-add {
  align-items: center;
  background: #27342e;
  border: 1px solid #56645c;
  border-radius: 5px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
}

.primary-button {
  background: #845f17;
  border-color: #a88334;
}

.primary-button:hover,
.garage-actions button:hover {
  filter: brightness(1.12);
}

.primary-button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-lamp {
  background: var(--amber-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber);
  height: 8px;
  width: 8px;
}

.form-state {
  font-size: 12px;
  margin: 0;
  min-height: 1rem;
}

.form-state[data-tone="error"] {
  color: #a83f27;
}

.form-state[data-tone="ready"] {
  color: #397059;
}

.garage-workspace {
  display: grid;
  gap: 18px;
}

.vehicle-rail {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
}

.vehicle-tabs {
  display: flex;
  gap: 0.55rem;
}

.vehicle-tab {
  align-items: center;
  background: #d9d4c8;
  border: 1px solid #aaa498;
  border-radius: 5px 5px 0 0;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

.vehicle-tab.active {
  background: var(--garage);
  border-color: var(--garage);
  color: white;
}

.tab-car {
  border-bottom: 5px solid currentColor;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  height: 10px;
  position: relative;
  width: 20px;
}

.tab-car::after {
  background: currentColor;
  border-radius: 50%;
  bottom: -8px;
  box-shadow: 12px 0 currentColor;
  content: "";
  height: 5px;
  left: 1px;
  position: absolute;
  width: 5px;
}

.rail-add {
  background: transparent;
  border-color: #a8a297;
  color: #4e5752;
  min-height: 36px;
  white-space: nowrap;
}

.instrument-panel {
  background:
    radial-gradient(circle at 14% 0, rgb(255 255 255 / 9%), transparent 25%),
    linear-gradient(135deg, #1e2b25, #101713);
  border: 8px solid #525a55;
  border-radius: 9px;
  box-shadow: var(--shadow);
  color: white;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(170px, 0.75fr));
  padding: 18px;
}

.vehicle-identity {
  align-items: center;
  display: flex;
  gap: 1.2rem;
  padding: 0.5rem 1rem;
}

.vehicle-identity h1 {
  font-size: 22px;
  margin-bottom: 0.25rem;
}

.vehicle-identity p:last-child {
  color: #aeb9b3;
  font-size: 11px;
  margin: 0;
}

.mini-car {
  background: #7c8982;
  border-radius: 18px 24px 8px 8px;
  flex: 0 0 auto;
  height: 42px;
  position: relative;
  width: 84px;
}

.mini-car span {
  background: #8ca0a0;
  border: 4px solid #627069;
  border-radius: 20px 20px 0 0;
  height: 30px;
  left: 18px;
  position: absolute;
  top: -19px;
  width: 49px;
}

.mini-car i,
.mini-car b {
  background: #111814;
  border: 4px solid #39443e;
  border-radius: 50%;
  bottom: -11px;
  height: 23px;
  position: absolute;
  width: 23px;
}

.mini-car i {
  left: 9px;
}

.mini-car b {
  right: 9px;
}

.odometer,
.dial-card,
.warning-card {
  background: #111915;
  border: 1px solid #445149;
  border-radius: 7px;
  min-height: 105px;
  padding: 0.9rem 1rem;
}

.odometer {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.odometer span {
  color: #89958e;
  flex-basis: 100%;
  font-size: 9px;
  letter-spacing: 0.15em;
}

.odometer strong {
  font-family: "Courier New", monospace;
  font-size: 27px;
  letter-spacing: 0.06em;
}

.odometer small {
  color: #9da7a1;
  font-size: 10px;
  margin-left: 0.35rem;
}

.dial-card {
  display: grid;
  grid-template-columns: 1fr auto;
}

.dial-card span {
  color: #8f9a94;
  font-size: 9px;
  grid-column: 1 / -1;
}

.dial-card strong {
  align-self: center;
  font-size: 17px;
}

.cost-dial {
  border: 6px solid #2d3933;
  border-radius: 50%;
  height: 45px;
  position: relative;
  width: 45px;
}

.cost-dial::after {
  background: #111915;
  border-radius: 50%;
  content: "";
  inset: 7px;
  position: absolute;
}

.warning-card {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.warning-light,
.status-lamp,
.empty-lamp {
  background: #58625d;
  border: 3px solid #717b76;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 25px;
  width: 25px;
}

.warning-card[data-status="soon"] .warning-light,
.reminder-card[data-status="soon"] .status-lamp {
  background: var(--amber);
  border-color: var(--amber-light);
  box-shadow: 0 0 14px rgb(230 169 61 / 65%);
}

.warning-card[data-status="overdue"] .warning-light,
.reminder-card[data-status="overdue"] .status-lamp {
  background: var(--orange);
  border-color: #f09977;
  box-shadow: 0 0 14px rgb(217 111 69 / 65%);
}

.warning-card small {
  color: #8f9a94;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.warning-card strong {
  display: block;
  font-size: 14px;
  margin: 0.15rem 0;
}

.warning-card p {
  color: #aeb7b2;
  font-size: 9px;
  margin: 0;
}

.garage-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.garage-actions button {
  background: #f8f5ed;
  border-color: #aaa398;
  color: #38413c;
}

.garage-actions .primary-button {
  background: #845f17;
  border-color: #9d792e;
  color: white;
}

.garage-actions .danger-button {
  color: #98442f;
}

.carry-menu {
  position: relative;
}

.carry-menu summary {
  background: #f8f5ed;
  border: 1px solid #aaa398;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  padding: 0.75rem 1rem;
}

.carry-menu > div {
  background: white;
  border: 1px solid #a9a397;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
  padding: 0.5rem;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 5;
}

.carry-menu button,
.file-button {
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: #38413c;
  display: block;
  font-size: 12px;
  padding: 0.65rem 0.7rem;
  text-align: left;
}

.carry-menu button:hover,
.file-button:hover {
  background: #eee9df;
}

.file-button input {
  display: none;
}

.garage-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.7fr) minmax(480px, 1.3fr);
}

.service-lane,
.history-bay {
  background: var(--paper);
  border: 1px solid #bdb6aa;
  border-radius: 7px;
  box-shadow: 0 10px 30px rgb(34 40 36 / 8%);
  min-height: 420px;
  padding: 22px;
}

.history-bay {
  min-height: 620px;
}

.section-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
}

.section-heading h2 {
  margin: 0;
}

.section-heading > span {
  background: #ded9ce;
  border-radius: 999px;
  color: #687069;
  font-size: 10px;
  padding: 0.35rem 0.65rem;
}

.reminder-list {
  display: grid;
  gap: 0.7rem;
}

.reminder-card {
  align-items: center;
  background: #e7e3d9;
  border: 1px solid #c5beb1;
  border-left: 5px solid #7d8781;
  border-radius: 5px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto 1fr;
  padding: 0.9rem;
}

.reminder-card[data-status="soon"] {
  border-left-color: var(--amber);
}

.reminder-card[data-status="overdue"] {
  border-left-color: var(--orange);
}

.reminder-card .status-lamp {
  height: 18px;
  width: 18px;
}

.reminder-card small {
  color: #777f79;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.reminder-card h3 {
  margin: 0.15rem 0;
}

.reminder-card p {
  color: #616963;
  font-size: 10px;
  margin: 0;
}

.card-actions {
  display: flex;
  gap: 0.35rem;
  grid-column: 2;
}

.card-actions button,
.card-delete {
  background: transparent;
  border: 1px solid #a9a399;
  border-radius: 3px;
  color: #575f59;
  font-size: 9px;
  padding: 0.35rem 0.55rem;
}

.lane-empty,
.history-empty {
  align-items: center;
  color: #777e79;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  justify-content: center;
  line-height: 1.8;
  min-height: 260px;
  text-align: center;
}

.empty-lamp {
  height: 32px;
  margin-bottom: 1rem;
  width: 32px;
}

.history-filter {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 0.8fr 1.2fr;
  margin-bottom: 1.5rem;
}

.history-filter label {
  position: relative;
}

.history-filter label > span {
  background: var(--paper);
  font-size: 8px;
  left: 8px;
  padding: 0 3px;
  position: absolute;
  top: -5px;
  z-index: 1;
}

.timeline {
  display: grid;
  gap: 1rem;
  padding-left: 18px;
  position: relative;
}

.timeline::before {
  background: #a8aaa2;
  content: "";
  height: 100%;
  left: 6px;
  position: absolute;
  top: 0;
  width: 2px;
}

.history-card {
  background: #fffdf7;
  border: 1px solid #c9c2b6;
  border-radius: 5px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 160px;
  min-height: 150px;
  padding: 1rem;
  position: relative;
}

.timeline-pin {
  background: var(--paper);
  border: 2px solid #8b928d;
  border-radius: 50%;
  height: 17px;
  left: -21px;
  position: absolute;
  top: 24px;
  width: 17px;
}

.timeline-pin span {
  background: var(--green);
  border-radius: 50%;
  inset: 3px;
  position: absolute;
}

.history-card[data-kind="engine"] .timeline-pin span {
  background: var(--amber);
}

.history-card[data-kind="repair"] .timeline-pin span {
  background: var(--orange);
}

.history-card[data-kind="tire"] .timeline-pin span {
  background: var(--blue);
}

.record-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.record-meta span {
  background: #26342e;
  border-radius: 2px;
  color: white;
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem;
}

.record-meta time {
  color: #737a75;
  font-size: 9px;
}

.record-main h3 {
  font-size: 17px;
  margin: 0.7rem 0;
}

.record-numbers {
  align-items: baseline;
  display: flex;
  gap: 1rem;
}

.record-numbers strong {
  font-family: "Courier New", monospace;
  font-size: 18px;
}

.record-numbers span,
.record-main p {
  color: #69716c;
  font-size: 10px;
}

.record-main p {
  line-height: 1.75;
  margin-bottom: 0.35rem;
  white-space: pre-wrap;
}

.history-card figure {
  background: #d8d4ca;
  border: 5px solid white;
  box-shadow: 0 3px 10px rgb(0 0 0 / 12%);
  margin: 0;
  overflow: hidden;
  transform: rotate(1deg);
}

.history-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.card-delete {
  bottom: 0.6rem;
  position: absolute;
  right: 0.6rem;
}

.lift {
  border-bottom: 6px solid #8e9791;
  height: 70px;
  margin-bottom: 1rem;
  position: relative;
  width: 130px;
}

.lift span {
  background: #9ca5a0;
  border-radius: 16px 24px 5px 5px;
  bottom: 15px;
  height: 34px;
  left: 20px;
  position: absolute;
  width: 90px;
}

.lift i {
  border-left: 5px solid #a7aaa5;
  border-right: 5px solid #a7aaa5;
  bottom: 0;
  height: 65px;
  left: 35px;
  position: absolute;
  width: 60px;
}

.local-flow,
.privacy-flow {
  align-items: center;
  background: #26342e;
  border: 6px solid #535d57;
  border-radius: 7px;
  color: white;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  padding: 1.2rem;
}

.local-flow > div,
.privacy-flow > div {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.local-flow strong,
.privacy-flow strong {
  font-size: 11px;
}

.local-flow span,
.privacy-flow span {
  color: #aeb8b2;
  font-size: 9px;
}

.flow-car,
.flow-cloud {
  color: var(--amber-light) !important;
  font-size: 21px !important;
}

.browser-box {
  background: #101814;
  border: 1px solid #4c5a52;
  border-radius: 5px;
  display: grid !important;
  padding: 0.7rem 1rem;
}

.flow-arrow {
  font-size: 18px !important;
}

.flow-stop {
  color: var(--orange) !important;
  font-size: 22px !important;
}

.empty-garage-button {
  background: transparent;
  border: 0;
  color: #8f5849;
  font-size: 10px;
  justify-self: end;
  text-decoration: underline;
}

.garage-dialog {
  background: var(--paper);
  border: 6px solid #59615d;
  border-radius: 7px;
  box-shadow: 0 28px 80px rgb(0 0 0 / 40%);
  max-height: calc(100vh - 40px);
  max-width: 650px;
  overflow-y: auto;
  padding: 2rem;
  width: calc(100% - 32px);
}

.garage-dialog::backdrop {
  background: rgb(13 20 16 / 76%);
  backdrop-filter: blur(3px);
}

.garage-dialog h2 {
  font-size: 22px;
  margin-bottom: 1.2rem;
}

.dialog-close {
  background: transparent;
  border: 0;
  color: #68706b;
  font-size: 24px;
  position: absolute;
  right: 0.8rem;
  top: 0.6rem;
}

.photo-drop {
  align-items: center;
  background: #e5e1d6;
  border: 1px dashed #99958b;
  border-radius: 5px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 78px;
  padding: 0.8rem;
}

.photo-drop input {
  display: none;
}

.photo-icon {
  color: #657f72;
  font-size: 28px;
  grid-row: 1 / 3;
  margin-right: 0.8rem;
}

.photo-drop small {
  color: #787f7a;
  font-size: 9px;
}

.info-page {
  margin: 0 auto;
  max-width: 1160px;
  padding: 52px 5vw;
}

.info-heading {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-heading h1 {
  margin: 0;
}

.guide-gauge {
  background: var(--garage);
  border: 7px solid #59635e;
  border-radius: 50%;
  height: 105px;
  position: relative;
  width: 105px;
}

.guide-gauge::before {
  border: 2px solid #64736b;
  border-bottom-color: var(--amber);
  border-radius: 50%;
  content: "";
  inset: 15px;
  position: absolute;
}

.guide-gauge i {
  background: var(--amber-light);
  height: 3px;
  left: 50%;
  position: absolute;
  top: 51px;
  transform: rotate(34deg);
  transform-origin: left center;
  width: 32px;
}

.guide-gauge span {
  background: var(--amber);
  border-radius: 50%;
  height: 10px;
  left: 44px;
  position: absolute;
  top: 44px;
  width: 10px;
}

.guide-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-steps li {
  background: var(--paper);
  border: 1px solid #c5beb2;
  border-radius: 6px;
  min-height: 350px;
  overflow: hidden;
}

.guide-steps li > div {
  padding: 1.2rem;
}

.guide-steps li strong {
  color: #a37720;
  font-family: "Courier New", monospace;
  font-size: 19px;
}

.guide-steps li h2 {
  font-size: 17px;
  margin: 0.7rem 0;
}

.guide-steps li p {
  color: #68706b;
  font-size: 11px;
  line-height: 1.8;
}

.step-visual {
  background: #27342e;
  display: block;
  height: 150px;
  overflow: hidden;
  position: relative;
}

.car-card i {
  background: #7f8e86;
  border-radius: 30px 45px 8px 8px;
  bottom: 35px;
  height: 48px;
  left: 20%;
  position: absolute;
  width: 60%;
}

.car-card b {
  background: var(--amber-light);
  border-radius: 50%;
  bottom: 48px;
  box-shadow: 85px 0 var(--amber-light);
  height: 14px;
  left: 27%;
  position: absolute;
  width: 23px;
}

.service-card i {
  background: #f5f0e4;
  height: 95px;
  left: 25%;
  position: absolute;
  top: 28px;
  transform: rotate(-3deg);
  width: 54%;
}

.service-card b {
  border-bottom: 5px solid var(--green);
  border-top: 5px solid var(--amber);
  height: 45px;
  left: 35%;
  position: absolute;
  top: 52px;
  width: 35%;
}

.lamp-card i {
  background: var(--amber);
  border: 6px solid var(--amber-light);
  border-radius: 50%;
  box-shadow: 0 0 28px rgb(230 169 61 / 70%);
  height: 48px;
  left: calc(50% - 24px);
  position: absolute;
  top: 40px;
  width: 48px;
}

.lamp-card b {
  background: #59645e;
  bottom: 27px;
  height: 6px;
  left: 32%;
  position: absolute;
  width: 36%;
}

.file-card i,
.file-card b {
  background: #f5f0e4;
  border: 2px solid #aaa397;
  height: 91px;
  left: 25%;
  position: absolute;
  top: 25px;
  transform: rotate(-6deg);
  width: 54%;
}

.file-card b {
  left: 30%;
  transform: rotate(5deg);
}

.safety-card {
  align-items: center;
  background: #2a352f;
  border-left: 7px solid var(--amber);
  color: white;
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
}

.safety-card h2 {
  font-size: 15px;
  margin-bottom: 0.3rem;
}

.safety-card p {
  color: #c1c8c4;
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
}

.storage-box {
  background: #26342e;
  border: 6px solid #59645e;
  color: var(--amber-light);
  display: grid;
  font-family: "Courier New", monospace;
  font-size: 11px;
  height: 100px;
  place-items: center;
  position: relative;
  width: 115px;
}

.storage-box i {
  border: 2px solid #7b8880;
  border-radius: 50%;
  bottom: 14px;
  height: 10px;
  position: absolute;
  width: 10px;
}

.privacy-flow {
  margin-bottom: 2rem;
  min-height: 120px;
}

.privacy-copy {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.privacy-copy article {
  background: var(--paper);
  border: 1px solid #c6bfb3;
  border-top: 5px solid #56645c;
  min-height: 190px;
  padding: 1.3rem;
}

.privacy-copy h2 {
  font-size: 16px;
}

.privacy-copy p {
  color: #626a65;
  font-size: 11px;
  line-height: 1.9;
}

.not-found {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
}

.not-found .warning-light {
  background: var(--amber);
  border-color: var(--amber-light);
  box-shadow: 0 0 18px var(--amber);
  height: 48px;
  margin-bottom: 1.5rem;
  width: 48px;
}

.not-found h1 {
  font-size: 28px;
}

.not-found a {
  color: #775b1e;
  font-size: 13px;
}

@media (max-width: 1050px) {
  .garage-door {
    grid-template-columns: 1fr;
  }

  .garage-visual {
    min-height: 440px;
  }

  .first-vehicle {
    padding: 40px;
  }

  .instrument-panel {
    grid-template-columns: 1fr 1fr;
  }

  .garage-grid {
    grid-template-columns: 1fr;
  }

  .guide-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .site-header {
    padding: 0 18px;
  }

  .site-header nav {
    gap: 0.8rem;
  }

  .garage {
    padding: 14px 12px 0;
  }

  .garage-door {
    border-width: 5px;
  }

  .garage-visual {
    min-height: 340px;
  }

  .tool-wall {
    height: 160px;
    top: 95px;
    transform: scale(0.72);
    transform-origin: top left;
  }

  .car-shape {
    bottom: 65px;
    height: 110px;
  }

  .car-shape::before {
    height: 80px;
    top: -58px;
  }

  .car-window {
    height: 55px;
    top: -46px;
  }

  .car-shape::after {
    box-shadow:
      0 0 20px rgb(241 211 126 / 70%),
      120px 0 0 var(--amber-light),
      120px 0 20px rgb(241 211 126 / 70%);
    height: 18px;
    width: 35px;
  }

  .wheel {
    border-width: 6px;
    bottom: -22px;
    height: 50px;
    width: 50px;
  }

  .first-vehicle {
    padding: 30px 22px;
  }

  .field-pair,
  .history-filter,
  .privacy-copy {
    grid-template-columns: 1fr;
  }

  .instrument-panel {
    border-width: 5px;
    grid-template-columns: 1fr;
  }

  .vehicle-identity {
    min-height: 100px;
  }

  .garage-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .garage-actions .primary-button,
  .carry-menu {
    grid-column: 1 / -1;
  }

  .carry-menu summary {
    text-align: center;
  }

  .carry-menu > div {
    left: 0;
    right: auto;
  }

  .service-lane,
  .history-bay {
    padding: 16px;
  }

  .history-card {
    grid-template-columns: 1fr;
  }

  .history-card figure {
    height: 190px;
  }

  .local-flow,
  .privacy-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .local-flow > div,
  .privacy-flow > div {
    justify-content: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .info-page {
    padding: 38px 18px;
  }

  .info-heading {
    align-items: flex-start;
  }

  .guide-gauge,
  .storage-box {
    flex: 0 0 auto;
    transform: scale(0.75);
    transform-origin: top left;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}

@page {
  margin: 14mm;
  size: A4 portrait;
}

@media print {
  body {
    background: white;
  }

  .site-header,
  footer,
  .vehicle-rail,
  .garage-actions,
  .service-lane .card-actions,
  .card-delete,
  .local-flow,
  .empty-garage-button,
  .history-filter {
    display: none !important;
  }

  .garage {
    max-width: none;
    padding: 0;
  }

  .instrument-panel {
    background: white;
    border: 2px solid #333;
    box-shadow: none;
    color: #111;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    margin-bottom: 8mm;
  }

  .warning-card {
    grid-column: 1 / -1;
  }

  .instrument-panel * {
    color: #111 !important;
  }

  .garage-grid {
    display: block;
  }

  .service-lane,
  .history-bay {
    border: 0;
    box-shadow: none;
    min-height: 0;
    padding: 0;
  }

  .service-lane {
    margin-bottom: 7mm;
  }

  .reminder-list {
    grid-template-columns: 1fr 1fr;
  }

  .reminder-card,
  .history-card {
    break-inside: avoid;
  }

  .history-card {
    min-height: 35mm;
  }
}
