:root { color-scheme: light dark; --line: #8884; --accent: #2457d6; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1200px; padding: 1.25rem; font: 16px/1.55 system-ui, sans-serif; }
nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
nav a:first-child { font-weight: 700; margin-right: auto; }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 .25rem; }
.lede { margin: 0 0 1rem; }
.tools { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
button, .file { font: inherit; font-weight: 600; padding: .55rem .9rem; border-radius: 6px; border: 1px solid var(--line); background: none; color: inherit; cursor: pointer; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.file input { position: absolute; opacity: 0; width: 1px; }
.file:focus-within, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
select { font: inherit; padding: .3rem; }
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea { width: 100%; height: 55vh; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; font: 14px/1.5 ui-monospace, monospace; resize: vertical; background: none; color: inherit; }
.about { max-width: 70ch; margin-top: 2rem; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } textarea { height: 35vh; } }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.calc label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .35rem 0; }
.calc input[type=number] { font: inherit; width: 7rem; padding: .3rem; text-align: right; }
.calc select { max-width: 60%; }
.result { width: 100%; border-collapse: collapse; }
.result td { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.result td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.big td { font-size: 1.4rem; font-weight: 700; }
.rates { border-collapse: collapse; width: 100%; font-size: .95rem; }
.rates td, .rates th { text-align: left; padding: .35rem .5rem .35rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
