:root {
  --ink: #18211f;
  --muted: #6c7772;
  --line: #dce4df;
  --paper: #f7f9f6;
  --card: #ffffff;
  --green: #1e6b50;
  --green-soft: #e4f1ea;
  --orange: #d47b36;
  --shadow: 0 14px 40px rgba(23, 50, 39, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, #edf5ee 0, transparent 34rem), var(--paper);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 80px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.eyebrow, .card-kicker { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.05em; line-height: 1; margin: 0 0 15px; }
.intro { color: var(--muted); font-size: 17px; margin: 0; max-width: 650px; }
.file-button { background: var(--ink); border-radius: 9px; color: white; cursor: pointer; font-weight: 700; padding: 12px 17px; white-space: nowrap; }
.file-button input { display: none; }
.status-card { align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: flex; gap: 13px; padding: 15px 19px; }
.status-dot { background: var(--orange); border-radius: 50%; height: 10px; width: 10px; }
.status-dot.ready { background: #3eaa70; }
.status-card strong, .status-card span { display: block; }
.status-card span { color: var(--muted); font-size: 13px; }
.stats { color: var(--green); font-size: 13px; font-weight: 700; margin-left: auto; }
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 26px; margin-top: 45px; }
.tab { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-weight: 750; padding: 0 0 13px; position: relative; }
.tab.active { color: var(--green); }
.tab.active::after { background: var(--green); bottom: -1px; content: ""; height: 3px; left: 0; position: absolute; right: 0; }
.search-panel { margin: 28px 0 40px; }
.search-panel label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 9px; }
.search-box { align-items: center; background: white; border: 1px solid #bfcfc5; border-radius: 12px; display: flex; gap: 12px; padding: 0 16px; transition: box-shadow .2s, border .2s; }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.search-box > span { color: var(--green); font-size: 29px; line-height: 1; transform: rotate(-20deg); }
.search-box input { background: none; border: 0; color: var(--ink); flex: 1; font: 18px inherit; outline: 0; padding: 17px 0; }
.clear { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 25px; visibility: hidden; }
.clear.visible { visibility: visible; }
.suggestions { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: none; margin-top: 6px; max-height: 330px; overflow-y: auto; position: absolute; width: min(100%, 1080px); z-index: 5; }
.suggestions.visible { display: block; }
.search-panel { position: relative; }
.suggestion { align-items: center; border: 0; border-bottom: 1px solid #eef2ef; cursor: pointer; display: flex; gap: 12px; justify-content: space-between; padding: 11px 14px; text-align: left; width: 100%; }
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover, .suggestion.selected { background: var(--green-soft); }
.suggestion-value { color: var(--ink); font-size: 14px; font-weight: 700; }
.suggestion-meta { color: var(--muted); font-size: 11px; white-space: nowrap; }
.hint { color: var(--muted); font-size: 13px; margin-top: 9px; }
.results-header { align-items: baseline; display: flex; justify-content: space-between; }
h2 { font-size: 22px; letter-spacing: -.025em; margin: 0 0 17px; }
#resultCount { color: var(--muted); font-size: 13px; }
.results { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(315px, 1fr)); }
.machine-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 5px 18px rgba(23, 50, 39, .04); padding: 19px; }
.card-top { align-items: start; display: flex; justify-content: space-between; gap: 12px; }
.card-kicker { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
h3 { font-size: 20px; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.year { background: var(--green-soft); border-radius: 20px; color: var(--green); font-size: 12px; font-weight: 800; padding: 4px 8px; white-space: nowrap; }
.engine { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; margin: 13px 0 14px; padding-bottom: 13px; }
.filter-grid { display: grid; gap: 8px; }
.filter { background: #f5f8f5; border-radius: 8px; padding: 8px 10px; }
.filter-label { color: var(--muted); display: block; font-size: 10px; font-weight: 800; letter-spacing: .04em; margin-bottom: 2px; text-transform: uppercase; }
.filter-value { display: flex; flex-direction: column; font-size: 13px; gap: 3px; }
.filter-line { display: block; }
.source { color: #9aa49f; font-size: 11px; margin: 14px 0 0; }
.empty { background: white; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); padding: 35px; text-align: center; }
mark { background: #ffe2ae; border-radius: 3px; color: inherit; padding: 0 2px; }
@media (max-width: 650px) { .shell { width: min(100% - 24px, 1120px); padding-top: 32px; } .hero { align-items: start; flex-direction: column; } .file-button { align-self: stretch; text-align: center; } .stats { display: none; } .results { grid-template-columns: 1fr; } }
