:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #33272e;
  background: #f9f5f5;
  --muted: #6c5b63;
  --line: #e8dce0;
  --accent: #803f5c;
  --accent-soft: #f9edf2;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select, summary, .channel, .toggle { cursor: pointer; }
:focus-visible { outline: 2px solid #a44f76; outline-offset: 3px; }
.page { width: min(100% - 2rem, 67rem); margin-inline: auto; }
.brand { display: flex; gap: .8rem; align-items: center; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.monogram { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #ddbecb; border-radius: 50%; color: var(--accent); font: italic 1.7rem var(--serif); }
.brand p, .intro p, footer p { margin: 0; }
.brand-name { font: 1.35rem var(--serif); }
.brand-subtitle { font-size: .875rem; color: var(--muted); margin-top: .2rem !important; }
.intro { padding-block: clamp(1.75rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 2.65rem); }
h1 { font: 400 clamp(2.1rem, 5.5vw, 4.45rem)/1.04 var(--serif); letter-spacing: -.055em; margin: 0 0 .85rem; }
h1 em { font-weight: 400; color: var(--accent); }
.intro p { color: var(--muted); line-height: 1.55; }
.workspace { display: grid; grid-template: 'settings result' min-content 'merchant result' 1fr / 1fr 1fr; align-items: start; gap: 1.2rem; }
.settings { grid-area: settings; min-width: 0; }
.results { grid-area: result; min-width: 0; }
.settings-details { grid-area: merchant; }
.panel, .result-card { border-radius: 1.15rem; padding: clamp(1.1rem, 3vw, 1.65rem); }
.panel { background: #fff; border: 1px solid var(--line); }
h2 { font: 400 1.55rem/1.2 var(--serif); margin: 0 0 1.2rem; }
.settings > label, legend, .result-controls label { display: block; padding: 0; font-size: .9375rem; font-weight: 650; margin-bottom: .55rem; }
.amount-field { display: flex; align-items: center; gap: .65rem; border: 1px solid #d6c4cd; border-radius: .7rem; padding-inline: .85rem; }
.amount-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.amount-field span { color: var(--accent); font-weight: 650; }
.amount-field input { min-width: 0; width: 100%; height: 3.45rem; padding: 0; outline: none; border: 0; background: transparent; color: inherit; font-size: 1.45rem; font-weight: 650; }
.amount-field input::placeholder { color: #796872; }
.alert { color: #9b294e; font-size: .9rem; margin: .5rem 0 0; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 1.35rem 0; }
.channels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem; }
.channel { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: .7rem; padding: .7rem .6rem; }
.channel:has(:checked) { border-color: #b47b95; background: var(--accent-soft); }
.channel input, .toggle input { flex: none; accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin: 0; }
.channel strong, .channel small { display: block; line-height: 1.28; }
.channel strong { font-size: .875rem; }
.channel small { color: var(--muted); font-size: .8125rem; margin-top: .24rem; }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; inset: calc(50% - .3rem) .85rem auto auto; width: .45rem; height: .45rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
select { appearance: none; width: 100%; min-height: 2.8rem; padding: .55rem 1.8rem .55rem .7rem; border: 1px solid #d6c4cd; border-radius: .65rem; color: inherit; background: #fff; }
.settings-details { padding-block: .55rem; }
.settings-details[open] { padding-bottom: 1rem; }
summary { color: var(--accent); font-size: .9375rem; font-weight: 650; padding-block: .7rem; }
.toggle { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; color: var(--muted); font-size: .9375rem; }
.merchant-values { margin-block: .7rem 0; font-size: .875rem; }
.merchant-values div { display: flex; justify-content: space-between; gap: .75rem; padding-block: .45rem; border-bottom: 1px solid var(--line); }
.merchant-values dd { margin: 0; text-align: right; font-weight: 650; }
.result-card { min-width: 0; color: #fff; background: #482b3b; }
.result-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: .75rem; row-gap: .6rem; margin-bottom: 1.1rem; }
.result-header h2 { margin: 0; }
.result-controls { min-width: min(8.5rem, 100%); }
.result-controls label { margin-bottom: .3rem; font-size: .875rem; }
.result-controls select { font-weight: 650; }
.result-card :focus-visible { outline-color: #f7d8e6; }
.empty { color: #efdae4; margin: 0; line-height: 1.5; }
.quote-label, .quote-detail { color: #f1dce5; margin: 0; font-size: .9375rem; }
.quote-amount { margin: .35rem 0 .65rem; font: 400 clamp(2rem, 6vw, 3.6rem)/1 var(--serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.quote-detail { font-size: .875rem; }
.quote-detail span { margin-inline-start: .28rem; }
.copy-link { display: block; width: 100%; margin-top: 1rem; border: 1px solid var(--accent); border-radius: .65rem; min-height: 2.85rem; font-weight: 700; padding: .5rem .75rem; color: var(--accent); background: transparent; }
.copy-link:hover { background: var(--accent-soft); }
.result-card .copy-link { color: #482b3b; border-color: transparent; background: #f5dfe9; }
.result-card .copy-link:hover { background: #fff0f6; }
.share-status { margin: .5rem 0 0; font-size: .875rem; color: var(--muted); }
.result-card .share-status { color: #f1dce5; }
.share-status:empty { display: none; }
.manual-share { margin-top: .35rem; width: 100%; padding: .45rem; border: 1px solid var(--line); border-radius: .3rem; }
.manual-share-label { display: block; margin-top: .6rem; }
.comparison { margin-top: 1rem; }
.comparison h2 { margin-bottom: .75rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .52rem .25rem; border-bottom: 1px solid var(--line); text-align: right; }
thead th { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
tr > :first-child { text-align: left; }
tbody th, tbody td { font-size: .875rem; }
.comparison-payment { font-weight: 700; }
.comparison-total { color: var(--muted); font-size: .8125rem; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--accent-soft); }
tbody th { padding-block: 0; }
tbody th button { border: 0; border-radius: .4rem; background: transparent; color: var(--accent); text-align: left; padding: .22rem .4rem; min-height: 2.75rem; font-weight: 700; }
tr:has(button[aria-pressed="true"]) { background: var(--accent-soft); }
.note { margin: .75rem 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
footer { display: grid; gap: .8rem; font-size: .875rem; line-height: 1.45; color: var(--muted); padding: 1.25rem .1rem 1.5rem; }
.site-credit { border-top: 1px solid var(--line); padding-top: .75rem; font-size: .8125rem; }
.heart { color: var(--accent); }
.credit-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: .8rem; }
.credit-links a { display: inline-flex; gap: .3rem; align-items: center; min-height: 1.5rem; color: inherit; text-underline-offset: .15em; }
.credit-links svg { width: .95rem; height: .95rem; flex: none; }
@media (max-width: 47rem) {
  .workspace { grid-template: 'settings' 'result' 'merchant' / minmax(0, 1fr); gap: .85rem; }
  .brand { padding-block: .95rem; }
  .comparison { margin-top: .85rem; }
}
@media (max-width: 25rem) {
  .page { width: calc(100% - 1.25rem); }
  .channel { gap: .4rem; padding-inline: .42rem; }
  th, td { font-size: .8125rem; }
}
