@scope (.pfm-app) {
:scope {
  color-scheme: light;
  --paper: #f7f8f2;
  --ink: #122820;
  --muted: #536159;
  --line: #d9e0d7;
  --green: #356248;
  --lime: #d9f89c;
  --white: #fff;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
:scope { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #588643; outline-offset: 3px; }
section { scroll-margin-top: 28px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1152px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: 8px; padding: 8px; background: white; transform: translateY(-150%); z-index: 5; }
.skip:focus { transform: none; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; min-height: 73px; gap: 40px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; font-weight: 810; font-size: 21px; letter-spacing: -.06em; white-space: nowrap; }
.brand img { margin-right: 9px; }
.brand span { color: var(--green); }
.nav nav { margin-inline: auto; display: flex; gap: 30px; }
.nav nav a, .footer-inner > a:last-child { text-decoration: none; font-weight: 650; font-size: 14px; }
.nav nav a:hover, .footer-inner > a:last-child:hover { text-decoration: underline; }
.quiet { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 13px; font-weight: 700; }
.quiet:hover:not(:disabled) { background: #edf2e7; }
.nav-compare span { background: #e8efe0; border-radius: 4px; padding: 1px 5px; margin-left: 5px; }
.hero { padding-block: 64px 68px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 76px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .15em; font-weight: 800; color: var(--green); }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: #75a955; }
h1, .section-heading h2, .calc-intro h2, .method h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.065em; line-height: .99; }
h1 { margin-block: 14px 22px; font-size: clamp(58px, 6.3vw, 95px); }
h1 em { color: #426e46; font-weight: inherit; }
.lede { max-width: 440px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 750; font-size: 14px; }
.primary { background: var(--ink); color: var(--lime); }
.primary:hover { background: #25483a; }
.text-button:hover { background: #eaf0e4; }
.cost-card { background: #112b23; color: #edf6e8; border-radius: 17px; padding: 25px 28px 20px; box-shadow: 0 13px 30px #12282022; }
.cost-card .eyebrow { color: #b8d6ad; margin-bottom: 7px; }
.cost-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 17px; }
.cost-head h2 { font-size: 27px; font-weight: 730; letter-spacing: -.05em; }
.cost-head p:last-child, .cost-row span { color: #c4d6c9; font-size: 14px; }
.cost-badge { background: #29483b; color: #d6ebd3; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 750; }
.cost-row, .cost-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid #335346; }
.cost-row strong, .cost-total strong { font-variant-numeric: tabular-nums; }
.cost-total { margin-top: 5px; }
.cost-total span { font-weight: 720; }
.cost-total small { display: block; color: #b8cbbd; font-weight: 400; }
.cost-total strong { font-size: 32px; color: var(--lime); letter-spacing: -.05em; }
.cost-link { display: inline-block; margin-top: 7px; font-size: 12px; color: #c7dec5; text-underline-offset: 3px; }
.explore { padding-bottom: 57px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.section-heading h2, .calc-intro h2, .method h2 { margin-top: 9px; font-size: clamp(41px, 5vw, 63px); }
.section-heading > p { color: var(--muted); font-size: 14px; padding-bottom: 3px; }
.finder, .result-wrap, .offer, .calc, details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.market-bar { display: flex; gap: 6px; padding: 9px; border-bottom: 1px solid var(--line); }
.market-bar button { background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 8px 15px; font-weight: 700; font-size: 14px; }
.market-bar button:hover { background: #f2f5ed; }
.market-bar button[aria-pressed="true"] { background: #e5efd9; border-color: #d2e4c5; }
.market-bar button span { margin-right: 4px; }
.filters { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 13px; padding: 13px 15px 8px; }
.filters label, .calc label { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: #435149; font-size: 12px; font-weight: 720; }
input:not([type="checkbox"]), select { width: 100%; min-height: 41px; background: #fafbf7; border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; color: var(--ink); font-size: 14px; font-weight: 500; }
.filter-bottom { display: flex; align-items: center; justify-content: space-between; padding: 4px 15px 11px; }
.check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; }
input[type="checkbox"] { accent-color: #345c3e; width: 16px; height: 16px; }
.reset { padding: 5px 2px; border: 0; background: none; color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 700; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; gap: 8px; }
.results-bar p, .results-bar label { font-size: 13px; color: var(--muted); }
.results-bar label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.results-bar select { width: auto; min-height: 36px; font-size: 13px; }
.result-wrap { overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; background: #eef2e9; font-size: 12px; font-weight: 800; }
th, td { padding: 10px 13px; border-bottom: 1px solid #e7ebe3; }
td { font-variant-numeric: tabular-nums; }
#results tbody tr:last-child td { border-bottom: 0; }
#results tbody tr:hover { background: #fafcf8; }
.plan-button { padding: 0; border: 0; background: none; text-align: left; display: flex; align-items: center; gap: 9px; }
.plan-button:hover .firm { text-decoration: underline; text-underline-offset: 3px; }
.initials { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; border-radius: 8px; font-size: 11px; font-weight: 830; background: #e1efe0; color: #1d4930; }
.initials.purple { background: #eee8fb; color: #53378a; }
.initials.peach { background: #f9e8d7; color: #76421d; }
.initials.blue { background: #e1ebfa; color: #254c80; }
.firm { display: block; font-size: 14px; font-weight: 760; }
.sub { display: block; color: var(--muted); font-size: 12px; }
.total { color: #2d5d3a; font-weight: 820; }
.center { text-align: center; }
.empty { padding: 26px; text-align: center; }
.fine { color: var(--muted); font-size: 12px; margin-top: 11px; }
.section-band { background: #edf2e8; border-block: 1px solid var(--line); padding-block: 53px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.offer { padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.offer-top { display: flex; align-items: center; gap: 9px; }
.offer-top > div { flex: 1; }
.offer-price { font-weight: 820; color: var(--green); }
.offer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; align-items: center; }
.offer-actions a { font-size: 13px; font-weight: 650; text-underline-offset: 3px; }
.tools-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 61px; align-items: center; }
.calc-intro > p:last-child { color: var(--muted); margin-top: 14px; max-width: 370px; }
.calc { padding: 17px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-block: 9px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 13px; background: #e9f1e2; border-radius: 7px; }
.calc-result span, .calc-result strong { display: block; }
.calc-result span { font-size: 12px; }
.calc-result strong { font-size: 23px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.method { border-top: 1px solid var(--line); padding-block: 49px 56px; }
.method-grid { margin-top: 19px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; align-items: start; }
details { padding: 11px 14px; font-size: 14px; }
summary { font-weight: 750; }
details p { color: var(--muted); margin-top: 8px; }
footer { border-top: 1px solid var(--line); background: #edf2e8; }
.footer-inner { min-height: 83px; padding-block: 15px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.footer-inner p { color: var(--muted); font-size: 12px; }
.tray, .feedback { position: fixed; bottom: 14px; z-index: 2; background: #142f25; color: white; border: 1px solid #456256; border-radius: 11px; box-shadow: 0 10px 24px #13282040; }
.tray { display: flex; align-items: center; gap: 10px; padding: 10px 13px; left: 50%; transform: translateX(-50%); width: min(670px, calc(100% - 22px)); }
.tray > div { flex: 1; min-width: 0; }
#selectedNames { font-size: 12px; color: #d4e2d5; overflow-wrap: anywhere; }
.tray .primary { background: var(--lime); color: var(--ink); }
.tray .quiet:hover { color: var(--ink); }
.feedback { right: 14px; bottom: 99px; padding: 9px 13px; font-size: 14px; z-index: 4; }
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; width: min(620px, calc(100% - 22px)); max-height: min(88vh, 850px); padding: 18px; }
dialog.wide { width: min(930px, calc(100% - 22px)); }
dialog::backdrop { background: #10241f9e; }
.dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dialog-top h2 { font-size: clamp(20px, 4vw, 28px); letter-spacing: -.045em; }
.dialog-scroll { overflow-x: auto; }
.dialog-scroll th, .dialog-scroll td { min-width: 120px; }
.dialog-note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.detail-grid div { padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.detail-grid dt { font-size: 12px; color: var(--muted); }
.detail-grid dd { margin: 1px 0 0; font-weight: 730; }
@media (max-width: 870px) {
  .shell { width: calc(100% - 42px); }
  .hero { gap: 25px; padding-block: 47px; }
  .nav { gap: 15px; }
  .nav nav { gap: 15px; }
  th, td { padding-inline: 8px; }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 30px); }
  .nav { min-height: 61px; justify-content: space-between; gap: 8px; }
  .nav nav { margin-inline: 0; gap: 12px; }
  .nav nav a { font-size: 12px; }
  .nav-compare { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 32px 40px; gap: 25px; }
  h1 { font-size: clamp(52px, 11vw, 69px); margin-bottom: 16px; }
  .lede { font-size: 15px; }
  .hero-actions { margin-top: 18px; }
  .cost-card { padding: 16px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 15px; }
  .desktop { display: none; }
  .filters { grid-template-columns: 1fr 1fr; gap: 8px; padding-inline: 9px; }
  .filter-bottom { padding-inline: 9px; }
  .market-bar { gap: 2px; padding: 5px; }
  .market-bar button { font-size: 12px; padding: 8px 6px; flex: 1; }
  .market-bar button span { margin-right: 0; }
  #results, #results tbody { display: block; }
  #results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #results tr { display: grid; grid-template-columns: 1fr 1fr; padding: 9px; gap: 2px 8px; border-bottom: 1px solid var(--line); }
  #results tr:last-child { border-bottom: 0; }
  #results td { display: block; border: none; padding: 4px; }
  #results td:first-child { grid-column: 1 / -1; }
  #results td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
  #results td:first-child::before { content: none; }
  #results .center { text-align: left; }
  .offer-grid, .tools-section, .method-grid { grid-template-columns: 1fr; }
  .tools-section { gap: 15px; padding-block: 39px; }
  .section-band, .method { padding-block: 37px; }
  .footer-inner { flex-wrap: wrap; }
  .tray .button { min-height: 40px; padding-inline: 8px; gap: 4px; font-size: 12px; }
  .tray .quiet { padding-inline: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  :scope { scroll-behavior: smooth; }
}

.collection-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.collection-links a { color: var(--green); background: #edf2e7; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-weight: 730; padding: 8px 10px; text-decoration: none; }
.collection-links a:hover { background: #e1ecd9; }
.plan-button { text-decoration: none; }
.compare-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; }
.detail-page { padding-block: 38px 58px; }
.detail-heading { max-width: 830px; margin-bottom: 23px; }
.detail-heading h1 { font-size: clamp(44px, 7vw, 76px); }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--green); font-size: 14px; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: 1.25fr .75fr; align-items: start; gap: 20px; }
.detail-layout h2 { font-size: 23px; margin-bottom: 12px; }
.detail-box { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.offer-status { margin-block: 11px; padding: 10px; border-radius: 6px; color: var(--muted); background: #f0f3ec; font-size: 14px; }
.offer-status.recheck { background: #fff1d9; color: #694d22; }
.source-line { margin-top: 14px; color: var(--muted); font-size: 13px; }
.related { margin-top: 22px; }
.collection-table { overflow-x: auto; }
.collection-table td, .collection-table th { min-width: 105px; }
.collection-table td:first-child { min-width: 160px; }
.collection-table a { font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 670px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-page { padding-block: 26px 40px; }
  .collection-table table, .collection-table tbody { display: block; }
  .collection-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .collection-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 9px; }
  .collection-table td { display: block; border: 0; padding: 5px; min-width: 0; }
  .collection-table td:first-child { grid-column: 1 / -1; }
  .collection-table td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); }
}

}
body.pfm-app { margin: 0; }

.pfm-app #pfmMonthly { width: min(490px, calc(100vw - 32px)); padding: 24px; max-height: calc(100dvh - 32px); }
.pfm-app #pfmMonthly h2 { margin: 8px 0; }
.pfm-app #pfmMonthly p { margin-bottom: 14px; }
.pfm-app .pfm-month-close { display: flex; justify-content: flex-end; margin-bottom: 10px; }

.pfm-app #heroTitle {
  font-size: clamp(2rem, 3.6vw, 3.375rem);
  line-height: 1.08;
  letter-spacing: -.043em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
@media (max-width: 670px) {
  .pfm-app #heroTitle { font-size: clamp(1.75rem, 5.7vw, 2.125rem); }
}
@media (max-width: 670px) {
  .pfm-app .nav { flex-wrap: wrap; }
  .pfm-app .nav nav { flex-wrap: wrap; }
}
