.ws { --sheet-border: #d9d6ce; --sheet-soft: #f6f4ed; --sheet-size: 16px; --sheet-note: .875rem; }
.ws *, .ws *::before, .ws *::after { box-sizing: border-box; }
.ws [hidden] { display: none !important; }
.ws-wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.ws-header { background: var(--paper); border-bottom: 1px solid var(--sheet-border); }
.ws-header-inner, .ws-brand, .ws-languages, .ws-actions { display: flex; align-items: center; }
.ws-header-inner { min-height: 66px; justify-content: space-between; gap: 1rem; }
.ws-brand { gap: .65rem; font: 600 clamp(1rem, 2.4vw, 1.3rem)/1.15 var(--font-display); color: var(--navy-800); }
.ws-brand img { flex: 0 0 auto; object-fit: contain; }
.ws-languages { gap: .1rem; }
.ws-languages a { display: grid; place-items: center; padding: .4rem; min-width: 36px; min-height: 40px; font-size: var(--sheet-note); font-weight: 650; border-bottom: 2px solid transparent; }
.ws-languages a[aria-current] { color: var(--navy-800); border-color: var(--gold-600); }
.ws a:hover { text-decoration: underline; text-underline-offset: .2em; }
.ws-lede { padding: clamp(1.2rem, 3.2vw, 2.4rem) 0 1.4rem; max-width: 54rem; }
.ws-back, .ws-sources a { color: var(--navy-700); text-decoration: underline; text-underline-offset: .2em; }
.ws-back { display: inline-block; font-size: var(--sheet-note); font-weight: 600; margin-bottom: .75rem; }
.ws h1 { font-size: clamp(1.75rem, 3.8vw, 2.25rem); color: var(--navy-800); }
.ws-lede > p { margin-top: .55rem; color: var(--ink-soft); line-height: 1.5; }
.ws-lede .ws-privacy { display: inline-block; border-left: 3px solid var(--gold-600); padding: .25rem 0 .25rem .65rem; margin-top: .8rem; font-size: var(--sheet-note); color: var(--ink); }
.ws-sheet, .ws-noscript { background: var(--paper); border: 1px solid var(--sheet-border); border-radius: var(--radius); }
.ws-noscript { padding: 1rem; }
.ws-setup { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; padding: clamp(1rem, 2.8vw, 1.65rem); }
.ws h2 { color: var(--navy-800); font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.ws-setup p, .ws-row-title p, .ws-reading p { color: var(--ink-soft); line-height: 1.5; }
.ws-setup p, .ws-row-title p { margin-top: .4rem; font-size: var(--sheet-note); }
.ws-mode label, .ws-mode small { display: block; }
.ws-mode label { font-size: var(--sheet-note); font-weight: 650; }
.ws-mode small, .ws-sources small { color: var(--ink-soft); font-size: .8125rem; }
.ws input, .ws select { width: 100%; min-width: 0; border: 1px solid #848c9c; border-radius: 6px; padding: .58rem .55rem; background: white; color: var(--ink); font: inherit; font-size: var(--sheet-size); line-height: 1.25; min-height: 44px; }
.ws input { font-variant-numeric: tabular-nums; }
.ws input[aria-invalid="true"] { border-color: #943a26; }
.ws select { cursor: pointer; }
.ws-mode select { margin: .18rem 0; }
.ws-columns, .ws-row { display: grid; grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(0, 1fr)) minmax(0, .85fr); gap: clamp(.6rem, 2vw, 1.4rem); padding-inline: clamp(1rem, 2.8vw, 1.65rem); }
.ws-columns { padding-block: .65rem; color: white; background: var(--navy-800); font-size: var(--sheet-note); font-weight: 600; }
.ws-row { padding-block: 1.12rem; border-bottom: 1px solid var(--sheet-border); }
.ws-row[data-row="cash"] { background: #fbf7ec; }
.ws-row h3, .ws-sources h3 { font-size: 1.12rem; color: var(--navy-800); }
.ws-row-title p { font-size: .8125rem; }
.ws-cell { min-width: 0; }
.ws-cell select { font-size: .8125rem; min-height: 38px; margin-top: .4rem; }
.ws-sr, .ws-cell-label, .ws-result-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ws-error { display: block; color: #863224; font-size: .8125rem; line-height: 1.4; margin-top: .25rem; }
.ws-result output { display: block; box-sizing: border-box; min-height: 44px; padding-block: .6rem; color: #59627a; font-size: var(--sheet-note); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ws-result output.ready { font-size: 1rem; color: var(--navy-800); font-weight: 750; }
.ws-actions { gap: .7rem; justify-content: flex-end; padding: .7rem clamp(1rem, 2.8vw, 1.65rem); font-size: var(--sheet-note); flex-wrap: wrap; }
.ws-actions button { min-height: 40px; border: 1px solid #848c9c; border-radius: 6px; padding: .45rem .85rem; font-weight: 600; }
.ws-actions button:hover { background: var(--sheet-soft); }
.ws-reading { padding: clamp(1.5rem, 4vw, 2.5rem) 0; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); }
.ws-reading p { margin-top: .65rem; font-size: var(--sheet-note); }
.ws-sources { border-left: 1px solid var(--sheet-border); padding-left: 1.5rem; display: flex; align-items: flex-start; flex-direction: column; gap: .35rem; }
.ws-sources a { font-size: var(--sheet-note); }
.ws-footer { border-top: 1px solid var(--sheet-border); padding: 1rem 0 1.5rem; color: var(--ink-soft); font-size: .8125rem; }
@media (max-width: 760px) {
  .ws-wrap { width: min(100% - 2rem, 40rem); }
  .ws-setup, .ws-reading { grid-template-columns: 1fr; }
  .ws-columns { display: none; }
  .ws-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .7rem; row-gap: .6rem; }
  .ws-row[data-row="cash"] { border-top: 1px solid var(--sheet-border); }
  .ws-row-title, .ws-result { grid-column: 1 / -1; }
  .ws-cell-label, .ws-result-label { position: static; display: block; width: auto; height: auto; margin: 0 0 .2rem; overflow: visible; clip-path: none; white-space: normal; font-size: .8125rem; font-weight: 650; color: var(--navy-800); }
  .ws-result { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem; border-top: 1px dashed var(--sheet-border); padding-top: .4rem; }
  .ws-result output { min-height: 0; padding-block: 0; }
  .ws-sources { border: 0; padding: 0; }
}
@media (max-width: 400px) {
  .ws-wrap { width: calc(100% - 1.5rem); }
  .ws-header-inner { gap: .4rem; }
  .ws-brand { gap: .3rem; }
  .ws-brand img { width: 33px; height: 33px; }
  .ws-cell select { font-size: .75rem; padding-inline: .2rem; }
}
