:root {
  color-scheme: light;
  --ink: #102a2e;
  --muted: #476166;
  --teal: #00665f;
  --line: #dbe7e6;
  --paper: #f1f7f6;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(100% - 2rem, 57rem); margin-inline: auto; }
.brand { background: #0e2226; color: white; }
.brand .shell { display: flex; align-items: center; gap: .7rem; min-height: 4rem; }
.brand img { border-radius: .6rem; }
.brand span { font-size: 1.13rem; font-weight: 760; line-height: 1.15; }
.brand small { display: block; color: #a9cecb; font-size: .73rem; font-weight: 500; margin-top: .19rem; }
main { padding-block: clamp(1.65rem, 5vw, 3.6rem); }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.intro { margin: .65rem 0 1.4rem; color: var(--muted); line-height: 1.5; }
.entry { padding: clamp(1rem, 3vw, 1.5rem); margin: 0 0 1rem; border-radius: 1.15rem; background: #133235; color: white; }
label { display: block; margin-bottom: .55rem; font-weight: 690; }
.input { display: flex; align-items: center; border-radius: .75rem; background: #fff; color: var(--teal); min-height: 3.65rem; padding-inline: .8rem; gap: .55rem; font-size: 1.65rem; font-weight: 730; }
.input:focus-within { outline: 3px solid #53e2ca; outline-offset: 2px; }
input { border: 0; outline: none; flex: 1; min-width: 0; min-height: 3.65rem; background: transparent; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
input::placeholder { color: #627d80; }
.currency { color: var(--muted); font-size: .8rem; }
.help { color: #b6d4d1; margin: .65rem 0 .45rem; font-size: .87rem; }
.help.error { color: #ffd29e; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
button { border: 1px solid #759e98; border-radius: .6rem; background: transparent; color: #e7faf7; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 650; min-height: 2.55rem; padding-inline: .65rem; }
button:hover { background: #245257; }
.clear { border-color: transparent; }
.results { display: grid; gap: 1rem; }
.card { border-radius: 1.05rem; border: 1px solid var(--line); background: white; padding: 1rem; min-width: 0; }
h2 { margin: 0 0 .6rem; font-size: 1.16rem; letter-spacing: -.02em; }
.condition { color: var(--muted); margin: -.2rem 0 .6rem; font-size: .9rem; line-height: 1.4; }
dl { margin: 0; }
dl div { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; padding: .65rem .45rem; }
dl div + div { border-top: 1px solid var(--line); }
dt { line-height: 1.25; }
dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.key { background: #d9f3ed; color: #114d48; border-radius: .65rem; align-items: center; }
.key dt { font-weight: 730; }
.key dt small { display: block; font-size: .875rem; font-weight: 550; margin-top: .2rem; }
.key dd { font-size: 1.48rem; }
.key + .key { margin-top: .5rem; border-top: 0; }
details { margin-top: 1rem; padding: .2rem .85rem .6rem; line-height: 1.45; color: var(--muted); }
summary { cursor: pointer; font-size: .94rem; font-weight: 700; color: var(--teal); padding-block: .55rem; }
details p { margin: .15rem 0 .5rem; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid #008877; outline-offset: 3px; }
@media (min-width: 48rem) {
  .results { grid-template-columns: .9fr 1.1fr; }
  .card { padding: 1.2rem; }
}
