:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #17202a; background: #f4f1ea; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.shell { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.topbar, .section-heading, .result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.topbar { align-items: center; margin-bottom: 32px; }
.eyebrow { margin: 0 0 8px; color: #a13d27; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(30px, 6vw, 52px); letter-spacing: 0; line-height: 1; }
h2 { margin-bottom: 0; font-size: 24px; letter-spacing: 0; }
.status, .badge { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border: 1px solid #d6cec0; border-radius: 6px; color: #6e675e; font-size: 12px; font-weight: 700; }
.query-panel, .result-panel, .history-panel { padding: 28px; border-top: 3px solid #17202a; background: #fffdf8; box-shadow: 0 8px 24px rgba(45, 37, 28, 0.06); }
.result-panel, .history-panel { margin-top: 20px; }
label { display: block; margin: 24px 0 8px; color: #6e675e; font-size: 12px; font-weight: 700; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid #cfc6b8; border-radius: 4px; color: #17202a; background: #fff; font: inherit; }
input:focus { outline: 3px solid rgba(161, 61, 39, 0.18); border-color: #a13d27; }
button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 4px; color: #fffdf8; background: #a13d27; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #85311f; }
.secondary { margin-top: 22px; color: #17202a; background: #ebe4d8; }
.secondary:hover { background: #ddd3c3; }
.hint { color: #81796f; font-size: 12px; line-height: 1.5; }
.hidden { display: none !important; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 20px; }
.metrics div { padding: 16px; background: #f1ece3; }
.metrics span, dt { display: block; color: #81796f; font-size: 12px; }
.metrics strong { display: block; margin-top: 7px; font-size: 30px; }
.details { display: flex; gap: 32px; margin: 0; }
.details dd { margin: 5px 0 0; font-size: 14px; }
.history-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e7dfd3; color: #81796f; font-size: 13px; }
.history-row strong { color: #17202a; }
.error { min-height: 22px; margin: 18px 0 0; color: #a13d27; font-size: 14px; }
@media (max-width: 640px) { .shell { padding-top: 28px; } .topbar, .section-heading, .result-header { display: block; } .status, .hint { margin-top: 12px; } .input-row { grid-template-columns: 1fr; } .metrics { gap: 6px; } .metrics div { padding: 12px 10px; } .metrics strong { font-size: 23px; } .details { display: block; } .details div + div { margin-top: 12px; } .history-row { grid-template-columns: 1fr; gap: 5px; } }
