:root { --accent: #3454D1; --ink: #1D1C18; --muted: #726F5C; --line: #E4E1D3; --paper: #F6F4EE; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.topbar { border-bottom: 1px solid var(--line); background: #FBFAF6; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; }
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; }
.accent { color: var(--accent); }

main { padding: 40px 24px 60px; }
h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 32px; max-width: 640px; margin: 0 0 10px; }
h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; margin: 0 0 4px; }
.lede { color: var(--muted); max-width: 600px; margin: 0 0 26px; line-height: 1.6; }

.tabs { display: inline-flex; background: #ECE9DC; border-radius: 10px; padding: 4px; gap: 2px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 9px 20px; border-radius: 7px; border: none; background: transparent; color: #55533F; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.tab.active { background: var(--ink); color: #fff; }

.panel { display: none; }
.panel.active { display: block; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 20px; }

.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 16px; }
.row.align-center { align-items: center; }
.row-tight { display: flex; gap: 8px; }
.field { flex: 1 1 200px; min-width: 0; }
.field.grow { flex: 2 1 280px; }

label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; }
input, select { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid #D7D3C2; background: #FBFAF6; font-size: 14px; font-family: inherit; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--accent); }

.btn { padding: 11px 24px; border-radius: 9px; border: none; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { opacity: 0.92; }

.note { background: #FBFAF6; border: 1px solid #ECE9DC; border-radius: 10px; padding: 12px 16px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 14px; font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; background: #FAF8F2; border-bottom: 1px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px solid #F1EFE4; }
.results-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; }
.swatch { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(0,0,0,0.08); }
.swatch-lg { width: 64px; height: 64px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); flex-shrink: 0; }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 16px; }
.stat-box { background: #FBFAF6; border: 1px solid #ECE9DC; border-radius: 10px; padding: 12px 14px; }
.stat-box.highlight { background: var(--accent); }
.stat-box .label { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.stat-box.highlight .label { color: rgba(255,255,255,0.8); }
.stat-box .value { font-family: 'IBM Plex Mono', monospace; font-size: 15px; }
.stat-box.highlight .value { color: #fff; font-weight: 700; font-size: 20px; }

.footer { border-top: 1px solid var(--line); background: #FBFAF6; padding: 22px 0; margin-top: 40px; }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .card { padding: 20px; }
}
