:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #162033; background: #f5f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #2457ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 0 max(20px, calc((100vw - 1120px) / 2)); background: #fff; border-bottom: 1px solid #e2e7f0; }
.brand { color: #162033; font-weight: 800; letter-spacing: -.02em; }
nav { display: flex; gap: 14px; font-size: 14px; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; }
.hero { max-width: 760px; margin: 0 auto 40px; text-align: center; }
h1 { margin: 0; font-size: clamp(32px, 6vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.muted { color: #667085; }
.search { display: flex; gap: 10px; margin: 28px auto 0; max-width: 680px; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 15px; border: 1px solid #cfd7e6; border-radius: 7px; background: #fff; color: #162033; font: inherit; font-size: 16px; }
.search button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 7px; background: #2457ff; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search button:hover { background: #1745da; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.card { display: block; padding: 16px; border: 1px solid #e0e5ee; border-radius: 7px; background: #fff; color: inherit; }
.card:hover { border-color: #2457ff; text-decoration: none; }
.code { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.title { margin-top: 5px; font-weight: 700; }
.meta { margin-top: 4px; color: #667085; font-size: 14px; }
.panel { padding: 24px; border: 1px solid #e0e5ee; border-radius: 8px; background: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 26px 0; }
.stat { padding: 14px; border: 1px solid #e0e5ee; border-radius: 7px; background: #fff; }
.stat strong { display: block; margin-top: 4px; font-size: 20px; }
.back { display: inline-block; margin-bottom: 22px; }
.result-list { display: grid; gap: 10px; margin-top: 18px; }
.empty, .loading, .error { padding: 22px; border-radius: 7px; background: #fff; color: #667085; }
.error { color: #b42318; }
@media (max-width: 560px) { .site-header { align-items: flex-start; flex-direction: column; padding: 16px 20px; } .search { flex-direction: column; } main { width: min(100% - 28px, 1120px); padding-top: 32px; } }
