:root {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111d36;
  background: #f1f6fc;
  font-synthesis: none;
  color-scheme: light;
  --navy: #101c34;
  --ink: #111d36;
  --muted: #506078;
  --line: #dce6f2;
  --blue: #0765b8;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea, select { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: var(--blue); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #188bf6; outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.site-header { background: var(--navy); color: #f5f9ff; }
.header-row { display: flex; align-items: center; gap: 17px; min-height: 68px; }
.brand { display: block; flex: none; margin-left: -11px; }
.brand img { display: block; width: 120px; height: auto; }
.header-divider { height: 20px; width: 1px; background: #40516c; }
.header-label { color: #d1e3f8; font-size: .875rem; font-weight: 600; }
.intro { padding-block: 48px 32px; }
h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 3.45rem); line-height: 1.07; letter-spacing: -.065em; }
.intro p { color: var(--muted); line-height: 1.6; margin: 12px 0 0; max-width: 48rem; font-size: 1.04rem; }
.calculator { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr); gap: 20px; }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 19px #16385b08; }
.composer, .breakdown { padding: 23px 25px; }
.panel-heading, .editor-meta, .sender-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-size: 1.11rem; margin: 0; line-height: 1.4; letter-spacing: -.018em; }
.text-button { border: 0; background: transparent; padding: 6px 3px; color: var(--blue); font-size: .875rem; font-weight: 650; }
.text-button:disabled { color: #63738a; cursor: default; }
textarea { display: block; width: 100%; min-height: 177px; resize: vertical; margin-top: 13px; padding: 15px 16px; border: 1px solid #c5d7eb; border-radius: 11px; background: #f9fbff; color: var(--ink); line-height: 1.55; }
textarea::placeholder { color: #5f718d; opacity: 1; }
textarea:focus-visible { outline-offset: 1px; }
.editor-meta { margin-top: 11px; color: var(--muted); font-size: .875rem; flex-wrap: wrap; }
.example-button { border: 1px solid #d2e5fa; background: #eaf4ff; color: #075b9f; font-size: .875rem; font-weight: 650; padding: 7px 11px; border-radius: 8px; }
.example-button:hover { background: #dceeff; }
.sender-row { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 17px; flex-wrap: wrap; }
.sender-row label { font-weight: 700; font-size: .925rem; }
.sender-row p { color: var(--muted); font-size: .875rem; margin: 3px 0 0; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%23465770' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid #c5d7eb; border-radius: 8px; padding: 9px 32px 9px 10px; color: var(--ink); font-size: .875rem; max-width: 100%; }
.estimate { display: flex; flex-direction: column; overflow: hidden; }
.estimate-top { background: var(--navy); color: white; padding: 23px 25px 20px; }
.estimate-top h2 { color: #d8eaff; }
.segment-total { display: flex; align-items: baseline; gap: 11px; margin: 8px 0 13px; font-variant-numeric: tabular-nums; }
.segment-total strong { font-size: clamp(3.1rem, 7vw, 4.65rem); font-weight: 720; line-height: 1; letter-spacing: -.06em; }
.segment-total span { color: #d8eaff; font-size: 1.05rem; }
.meter { height: 7px; background: #344560; border-radius: 12px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: #55aeff; }
.estimate-top p { color: #d8eaff; font-size: .875rem; margin: 11px 0 0; }
.metrics { margin: 0; padding: 7px 25px; flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); }
.metrics div { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metrics div + div { border-top: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-size: .9rem; }
.metrics dd { margin: 0; text-align: right; font-weight: 700; }
.estimate-note {
  margin: 0;
  border-top: 1px solid #dfa64c;
  padding: 13px 25px 15px;
  background: #ffe3a3;
  box-shadow: inset 5px 0 #b96a08;
  color: #533204;
  font-size: .875rem;
  line-height: 1.5;
}
.estimate-note strong { color: #382006; }
.breakdown { grid-column: 1 / -1; }
.breakdown p { color: var(--muted); margin: 6px 0 0; line-height: 1.55; font-size: .94rem; }
.breakdown ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.breakdown li { display: flex; align-items: center; gap: 8px; background: #eef6ff; padding: 5px 10px; border-radius: 8px; overflow-wrap: anywhere; max-width: 100%; }
.glyph { font-weight: 700; }
.glyph-units { color: #354d6b; font-size: .875rem; }
details { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 14px; }
summary { width: fit-content; color: var(--blue); font-size: .9rem; font-weight: 650; }
details p { max-width: 75ch; }
.footer { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 20px 0 32px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.footer p { margin: 0; max-width: 75ch; }
.footer a { flex: none; }
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .intro { padding-block: 34px 23px; }
  .calculator { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .footer { display: grid; gap: 6px; }
}
@media (max-width: 420px) {
  .composer, .breakdown, .estimate-top { padding-inline: 16px; }
  .metrics, .estimate-note { padding-inline: 16px; }
}
.example-button:disabled { opacity: .55; cursor: default; }
.example-button:disabled:hover { background: #eaf4ff; }
