:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  overflow: auto;
}

.background { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.shape {
  position: absolute;
  width: 240px; height: 240px;
  opacity: 0.15;
  border-radius: 16px;
  background: linear-gradient(135deg, #cbd5e1, #f1f5f9);
  animation: float 24s ease-in-out infinite;
}
.shape-1 { top: 10%; left: 5%; border-radius: 50%; }
.shape-2 { top: 40%; right: 10%; transform: rotate(25deg); }
.shape-3 { bottom: 5%; left: 30%; border-radius: 50% 20% 50% 20% / 20% 50% 20% 50%; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 32px auto;
  padding: 0 20px;
}

h1 { font-size: 22px; margin: 0 0 12px; }

form { display: flex; gap: 8px; margin-bottom: 12px; position: relative; }
form > div { position: relative; }
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: var(--card);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}

.autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}

.autocomplete-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: #f9fafb;
}

.autocomplete-item.active {
  background: #f3f4f6;
}

.autocomplete-plate {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.autocomplete-details {
  font-size: 13px;
  color: var(--muted);
}
button {
  padding: 10px 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
button:hover { filter: brightness(0.95); }

.card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
}
.hero {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 4px;
}
.hero-line { font-size: 16px; font-weight: 700; }
.hero-sub { font-size: 13px; color: var(--muted); }
.card img {
  width: 140px; height: 105px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb;
}
.media { width: 140px; }
.placeholder { width: 140px; height: 105px; border: 1px solid #e5e7eb; border-radius: 8px; background:#f3f4f6; display:flex; align-items:center; justify-content:center; color:#6b7280; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.label { color: var(--muted); font-size: 11px; }
.value { font-weight: 600; font-size: 14px; }

.muted { color: var(--muted); margin-top: 6px; font-size: 12px; }
.error { color: #b91c1c; margin-top: 8px; }
.hidden { display: none; }

@media (max-width: 640px) {
  .background { display: none; }
  .container { margin: 16px auto; padding: 0 12px; }
  h1 { font-size: 18px; }
  .card { grid-template-columns: 1fr; padding: 10px; }
  .card img { width: 100%; height: auto; max-height: 160px; }
  .grid { grid-template-columns: 1fr; gap: 6px; }
  .label { font-size: 10px; }
  .value { font-size: 13px; }
  input[type="text"] { font-size: 13px; padding: 9px 10px; }
  button { padding: 9px 10px; font-size: 13px; }
  .hero-line { font-size: 15px; }
}

/* timeline sizing */
.timeline-entry { font-size: 11px; }


