:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #172746;
  background: #f3f6fc;
  --muted: #4d5d76;
  --blue: #284cc2;
  --line: #dce4f1;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse 70% 380px at 50% 95px, #304884 0%, transparent 98%),
    linear-gradient(#101d38 0 435px, #f3f6fc 435px);
}
[hidden] { display: none !important; }
.shell { width: min(100% - 40px, 760px); margin-inline: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 76px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-weight: 790; font-size: 1.22rem; letter-spacing: -.035em; }
.brand img { border-radius: 10px; }
button, input { font: inherit; }
button { cursor: pointer; }
.install { background: #ffffff0d; color: #eef3ff; border: 1px solid #879bcb78; border-radius: 9px; padding: 8px 13px; font-weight: 650; font-size: .84rem; }
.install:hover { background: #ffffff24; }
.intro { text-align: center; color: #fff; padding: 54px 0 38px; }
.intro h1 { font-size: clamp(2.45rem, 7vw, 4.3rem); line-height: .99; max-width: 640px; margin: 0 auto; letter-spacing: -.076em; font-weight: 810; }
.intro em { display: block; color: #abc5ff; font-style: normal; }
.intro p { color: #dbe5ff; font-size: clamp(1rem, 2.5vw, 1.15rem); margin: 20px 0 0; }
.checker { background: white; border-radius: 22px; padding: clamp(22px, 5vw, 36px); border: 1px solid var(--line); box-shadow: 0 16px 34px #192c5617; }
h2, h3 { margin: 0; letter-spacing: -.035em; }
.checker h2 { font-size: 1.43rem; margin-bottom: 22px; }
label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 700; }
.fields { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input { min-width: 0; background: #f8faff; border: 1px solid #b9c7df; border-radius: 10px; color: inherit; min-height: 52px; padding: 0 15px; }
input::placeholder { color: #626f88; }
input[aria-invalid="true"] { border-color: #b33139; }
.primary { padding: 0 20px; min-height: 52px; border-radius: 10px; background: var(--blue); color: #fff; border: 0; font-weight: 720; }
.primary span { margin-left: 8px; }
.primary:hover { background: #213da0; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #719cff; outline-offset: 3px; }
.status { color: var(--muted); margin: 12px 0 0; font-size: .92rem; }
.status:empty { display: none; }
.status.error { color: #a12733; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 17px; font-size: .83rem; color: var(--muted); }
.examples span { margin-right: 4px; }
.examples button { border: 1px solid var(--line); border-radius: 999px; color: #304981; background: #f4f7ff; padding: 6px 10px; }
.examples button:hover { background: #e6eeff; }
.result { margin-top: 24px; padding: 21px; background: #edf3ff; border: 1px solid #dfe8fd; border-radius: 15px; }
.date { margin: 0 0 5px; color: #395696; font-size: .85rem; font-weight: 700; }
.result h3 { font-size: 1.35rem; }
.metrics { display: flex; flex-wrap: wrap; gap: 15px 28px; align-items: center; margin: 12px 0; }
.metrics p { margin: 0; color: #384b70; font-size: .9rem; }
.metrics .amount { font-size: clamp(3.15rem, 8vw, 4.3rem); color: #2647ad; font-weight: 810; line-height: 1; letter-spacing: -.07em; }
.secondary { display: grid; gap: 7px; }
.secondary strong { color: #172746; margin-right: 6px; }
meter { width: 100%; height: 11px; border: 0; border-radius: 99px; background: #d5e1fa; }
meter::-webkit-meter-bar { border: 0; background: #d5e1fa; border-radius: 99px; }
meter::-webkit-meter-optimum-value { background: #426be1; border-radius: 99px; }
meter::-moz-meter-bar { background: #426be1; border-radius: 99px; }
.forecast-note { margin: 10px 0 0; font-size: .85rem; color: #425478; }
.note { display: flex; gap: 13px; margin: 21px 0 0; padding: 17px 20px; background: #eaf0fc; border-radius: 13px; }
.info { flex: 0 0 20px; height: 20px; border-radius: 50%; background: #d7e3ff; color: #2c4b94; text-align: center; font-weight: 800; font-size: .86rem; }
.note h2 { font-size: 1rem; }
.note p, details p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 4px 0 0; }
details { margin: 20px 0; font-size: .88rem; }
summary { cursor: pointer; color: #304981; font-weight: 650; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 17px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer > span:first-child { font-weight: 750; }
footer a { color: inherit; text-underline-offset: 3px; }
dialog { color: inherit; width: min(100% - 40px, 420px); padding: 23px; border: 1px solid var(--line); border-radius: 16px; }
dialog::backdrop { background: #101d3899; }
dialog p { color: var(--muted); line-height: 1.5; }
.close { float: right; border: 0; border-radius: 6px; padding: 3px 9px; color: inherit; background: #edf3ff; font-size: 1.2rem; }
@media (max-width: 480px) {
  .shell { width: calc(100% - 28px); }
  .intro { padding: 36px 0 29px; }
  .fields { grid-template-columns: 1fr; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
