:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0d151c;
  color: #edf2f3;
  --muted: #aebcc5;
  --line: #344550;
  --surface: #15212b;
  --accent: #9ce3ca;
}

* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead .shell { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { color: var(--accent); font-weight: 700; font-size: .9rem; }
nav { display: flex; gap: 20px; font-size: .9rem; }
a { color: var(--muted); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
.intro { margin: 42px 0 28px; }
h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.045em; }
h2 { margin: 0 0 18px; font-size: 1.5rem; letter-spacing: -.025em; }
h3 { margin: 28px 0 12px; font-size: 1.12rem; }
p { line-height: 1.5; }
.intro p, .muted { color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.source { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 182px), 1fr)); gap: 12px; margin: 16px 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; }
input, select, button { font: inherit; border-radius: 6px; }
input, select { min-width: 0; width: 100%; min-height: 40px; padding: 8px 10px; background: #0e1820; color: inherit; border: 1px solid var(--line); }
input[type=file] { width: min(100%, 360px); }
button { padding: 9px 15px; min-height: 40px; border: 1px solid transparent; color: #10201a; background: var(--accent); font-weight: 700; cursor: pointer; }
button.secondary { border-color: var(--line); color: var(--accent); background: transparent; font-size: .86rem; }
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
details { margin: 14px 0; color: var(--muted); font-size: .88rem; }
details summary { cursor: pointer; color: var(--accent); }
details li { overflow-wrap: anywhere; margin: 8px 0; }
pre { max-width: 100%; overflow: auto; padding: 10px; background: #0e1820; border-radius: 6px; }
[role=status] { color: var(--muted); font-size: .88rem; margin: 10px 0; overflow-wrap: anywhere; }
[role=status]:empty { margin: 0; }
[role=status].error { color: #ffb8ac; }
#results { border-top: 1px solid var(--line); margin-top: 20px; }
.metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.metrics div { min-width: 155px; flex: 1; padding: 12px; border-radius: 8px; background: #0e1820; }
.metrics span { display: block; color: var(--muted); font-size: .82rem; }
.metrics strong { display: block; margin-top: 4px; color: var(--accent); font-size: 1.28rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); padding: 0 0 8px; }
td, th { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #0e1820; }
@media (max-width: 600px) {
  .shell { padding: 0 14px; }
  .panel { padding: 15px; }
  nav { gap: 12px; }
}

.locale-selector{display:inline-flex;align-items:center;margin:8px;max-width:100%}.locale-selector select{font:inherit;max-width:100%}
