:root {
  color-scheme: light;
  --cream: #f8f6ed; --paper: #fffef9; --ink: #1a3a30; --muted: #526155;
  --line: #c6cebf; --green: #103b30; --lime: #d0ef9b; --error: #a52d32;
  --input: #ffffff; --input-ink: #1a3a30; --input-border: #7c8b80;
  --buyer-band: #dbeaf7; --buyer-ink: #204862; --buyer-tint: #f0f6fb;
  --cost-band: #f1dfbb; --cost-ink: #604211; --cost-tint: #fcf7eb;
  --keep-band: #d7e9da; --keep-ink: #1c4f38; --keep-tint: #eef6ef;
  --sale-band: #eadff2; --sale-ink: #533366; --sale-tint: #f7f2fa;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 14px/1.5 Arial, Helvetica, sans-serif; }
main, header, footer { max-width: 1600px; margin: auto; padding: 20px 32px; }
header, footer, nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header { border-bottom: 1px solid var(--line); }
a { color: inherit; text-underline-offset: 3px; }
nav { flex-wrap: wrap; font-size: 13px; }
.brand { display: inline-flex; flex-shrink: 0; background: #f8f6ed; border-radius: 8px; }
.brand img { display: block; width: 200px; height: 67px; padding: 3px 8px; object-fit: contain; }
.intro { padding: 28px 0 20px; }
h1 { font: 48px/1.08 Georgia, serif; letter-spacing: -1.5px; margin: 12px 0; }
h1 span { display: block; font-size: .55em; letter-spacing: -.3px; color: var(--muted); margin-top: 8px; }
.intro>p:last-child { font: 21px/1.4 Georgia, serif; }
h2 { font: 24px/1.2 Georgia, serif; }
p { margin: 10px 0; }
.eyebrow { font: 11px/1.5 Arial, sans-serif; letter-spacing: 1.5px; font-weight: 700; color: var(--muted); }
label { display: block; font-weight: 600; }
input, select, button { font: inherit; }
input:not([type=checkbox]), select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--input-border); border-radius: 6px;
  background: var(--input); color: var(--input-ink); min-width: 0; color-scheme: light;
}
input[type=checkbox] { accent-color: #23553d; width: 17px; height: 17px; vertical-align: middle; }
button, .button { background: var(--green); color: var(--cream); border: 1px solid var(--green); border-radius: 6px; padding: 9px 14px; min-height: 40px; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.helper, .definition, small { color: var(--muted); font-size: 12px; font-weight: normal; }
small { display: block; line-height: 1.4; }
.controls { float: right; width: 220px; margin: 0 0 16px 24px; }
.controls label { font-size: 12px; }
.controls select { display: block; margin-top: 5px; }
#calculator>.helper { max-width: 760px; min-height: 58px; padding-top: 6px; font-size: 14px; }
.bulk { clear: both; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 12px 14px; margin: 18px 0; }
.bulk label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bulk select { width: auto; max-width: 220px; }
.bulk input { width: 90px; }
#selection-count { margin-right: auto; font-size: 12px; }
#bulk-status { font-size: 12px; }
.table-heading p { margin: 5px 0; }
.table-heading { margin: 20px 0 12px; }
.table-scroll { position: relative; overflow: auto; max-width: 100%; max-height: 650px; border: 1px solid var(--line); border-radius: 10px; isolation: isolate; }
table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
#pricing { --item-width: 150px; table-layout: auto; }
#pricing th, #pricing td { padding-left: 8px; padding-right: 8px; }
#pricing .field-box { width: 96px; }
#pricing [data-cell=target] .field-box { width: 96px; }
#pricing .column-row th { max-width: 120px; overflow-wrap: normal; }
.band-label { position: sticky; left: calc(var(--item-width) + 8px); display: inline-block; }

th, td { padding: 12px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
thead th { text-align: left; font-size: 12px; font-weight: 700; background: var(--paper); }
#pricing thead th { position: sticky; }
.group-row th { top: 0; z-index: 3; height: 44px; vertical-align: middle; }
.group-row th:not([rowspan]) { font-size: 13px; padding-top: 10px; padding-bottom: 10px; }
.column-row th { top: 44px; z-index: 2; height: 88px; }
.column-row small { margin-top: 5px; font-size: 10px; line-height: 1.4; color: inherit; font-weight: normal; }
.buyer-band { background: var(--buyer-band); color: var(--buyer-ink); }
.cost-band { background: var(--cost-band); color: var(--cost-ink); }
.keep-band { background: var(--keep-band); color: var(--keep-ink); }
.sale-band { background: var(--sale-band); color: var(--sale-ink); }
.buyer-column { background: var(--buyer-tint); }
.cost-column { background: var(--cost-tint); }
.keep-column { background: var(--keep-tint); }
.sale-cell { background: var(--sale-tint); }
thead .buyer-column { color: var(--buyer-ink); }
thead .cost-column { color: var(--cost-ink); }
thead .keep-column { color: var(--keep-ink); }
thead .sale-cell { color: var(--sale-ink); }
#pricing .sale-band { background: var(--sale-band); }
#pricing tbody th, #pricing .item-head { width: var(--item-width); min-width: var(--item-width); max-width: var(--item-width); position: sticky; left: 0; background: var(--paper); z-index: 1; text-align: left; }
#pricing .item-head { z-index: 4; }
.item-head label { display: flex; align-items: center; gap: 7px; }
.item-head small { margin-top: 8px; }
#pricing .item-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
#pricing tbody th>.field-box { width: 120px; }
#pricing tbody td { font-size: 14px; }
.field-box { display: block; position: relative; }
#pricing input[type=number] { padding: 8px 6px; text-align: right; font-size: 14px; height: 38px; }
#pricing input[type=text] { padding: 8px; font-weight: normal; font-size: 13px; height: 38px; }


#pricing [data-cell]>small { margin-top: 7px; font-size: 10px; text-align: left; }
#pricing [data-cell] .shipping-gap { color: var(--cost-ink); }
.key-number, .total-column, .profit-column { font-weight: 700; }
#pricing [data-cell=profit] input { font-weight: 700; }
.negative, #errors { color: var(--error); }
#pricing input.negative { color: #a52d32; }
#pricing tbody tr[aria-invalid=true] [data-cell=cost] input:placeholder-shown { border-color: var(--input-border); }
.fee-breakdown { font-size:11px; line-height:1.6; margin-top:8px; text-align:left; }
.fee-breakdown>div { white-space:nowrap; }
#pricing [data-remove] { background: transparent; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 11px; padding: 2px 4px; min-height: 24px; }
.item-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
#errors, #sale-note, #profit-alert-text, #saved-list-status { overflow-wrap: anywhere; }
#sale-note { font: 18px/1.5 Georgia, serif; }
details { margin: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
#advanced { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
#advanced>summary { font: 20px Georgia, serif; }
.advanced-grid { max-width: 700px; }
.advanced-grid input { max-width: 170px; margin: 6px 0; }
.advanced-grid label { margin-top: 16px; }
#comparison-details table { max-width: 700px; }
#comparison-details th:first-child { text-align: left; }
.profit-alert { background: var(--cost-tint); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 16px 0; max-width: 900px; }
#profit-alert-text { font: 20px/1.4 Georgia, serif; }
.profit-alert .button { display: inline-block; text-decoration: none; margin-top: 6px; }
.cta { background: #103b30; color: #fffef9; border-radius: 12px; padding: 28px 32px; margin: 32px 0; }
.cta .eyebrow { color: #d0ef9b; }
.cta h2 { font-size: 30px; margin: 10px 0; }
.cta p { max-width: 850px; }
.cta .button { display: inline-block; background: #d0ef9b; color: #103b30; border-color: #d0ef9b; text-decoration: none; margin-top: 8px; }
.guide { max-width: 820px; margin: 36px 0; font-size: 15px; line-height: 1.7; }
.guide h2 { font-size: 28px; margin: 28px 0 10px; }
.guide h3 { font: 20px Georgia, serif; margin: 24px 0 8px; }
.guide ul { padding-left: 20px; }
.guide-table { margin: 16px 0; max-width: 620px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.guide-table table { min-width: 490px; }
.guide-table caption { text-align: left; font-weight: bold; padding: 10px; }
.guide-table th:first-child { text-align: left; }
footer { flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 13px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); left: 0; top: 0; }
:focus-visible { outline: 3px solid #729650; outline-offset: 3px; }
@media (max-width: 700px) {
  main, header, footer { padding: 16px; }
  header { flex-wrap: wrap; gap: 16px; }
  nav { gap: 16px; font-size: 12px; }
  .brand img { width: 180px; height: 60px; }
  .intro { padding-top: 20px; }
  h1 { font-size: 38px; letter-spacing: -1px; }
  .intro>p:last-child { font-size: 19px; }
  .controls { float: none; width: 100%; margin: 8px 0 16px; }
  #calculator>.helper { min-height: 0; }
  .bulk { gap: 10px; padding: 12px; }
  .bulk label { width: 100%; min-width: 0; }
  .bulk select { flex: 1; max-width: none; }
  .bulk input { width: 90px; }
  #selection-count { width: 100%; }
  .table-scroll { max-height: 70vh; border-radius: 8px; }
  #pricing th, #pricing td { padding-left: 8px; padding-right: 8px; }
  .item-head label { gap: 4px; }
  .item-head small { font-size: 10px; }
  .table-heading { font-size: 13px; }
  .cta { padding: 24px; }
  .cta h2, .guide h2 { font-size: 25px; }
}

/* Shop tracker: local imports, quiet summaries, and a separate scrolling ledger. */
.tool-tabs { display:flex; gap:4px; padding:5px; border:1px solid var(--line); border-radius:10px; background:var(--paper); width:fit-content; max-width:100%; margin:10px 0 24px; }
.tool-tabs button { background:transparent; color:var(--ink); border-color:transparent; }
.tool-tabs [aria-selected=true] { background:var(--green); color:var(--cream); }
.tracker-intro h2 { font-size:32px; margin:8px 0; }
.tracker-imports { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:24px 0; }
.upload-card { border:1px solid var(--line); background:var(--paper); border-radius:12px; padding:22px; }
.upload-card h3 { margin-top:0; font-size:17px; }
.upload-card p { max-width:65ch; font-size:13px; }
.drop-zone { display:flex; flex-direction:column; gap:8px; padding:22px; margin:18px 0; border:2px dashed var(--input-border); border-radius:8px; background:var(--buyer-tint); cursor:pointer; }
.drop-zone span { font-size:12px; color:var(--muted); font-weight:normal; }
.drop-zone input[type=file] { max-width:100%; padding:6px; font-size:12px; }
.drop-zone.drag-over { outline:3px solid var(--green); }
.tracker-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:28px; }
.tracker-heading h3 { margin:8px 0; font:24px Georgia,serif; }
.tracker-heading label { min-width:150px; font-size:12px; }
.tracker-heading select { margin-top:5px; }
.tracker-tiles { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:16px 0; }
.tracker-tile { background:var(--paper); border:1px solid var(--line); border-radius:9px; padding:18px; }
.tracker-tile span { color:var(--muted); font-size:12px; }
.tracker-tile strong { display:block; margin-top:8px; font-size:23px; overflow-wrap:anywhere; }
.tracker-tile[data-tile=profit] { background:var(--keep-tint); }
.tracker-chart { max-width:100%; overflow:auto; margin:20px 0; }
.tracker-chart svg { display:block; min-width:600px; }
.chart-revenue { fill:var(--buyer-band); stroke:var(--buyer-ink); }
.chart-expenses { fill:var(--cost-band); stroke:var(--cost-ink); }
.chart-profit { fill:var(--green); }.chart-profit-line { fill:none; stroke:var(--green); stroke-width:2; }.chart-axis { stroke:var(--line); }.chart-label { fill:var(--ink); font:12px Arial,sans-serif; }
.chart-legend { display:flex; gap:20px; font-size:12px; }.chart-legend span:before { content:''; display:inline-block; width:12px; height:8px; margin-right:6px; border:1px solid var(--ink); }.legend-revenue:before { background:var(--buyer-band); }.legend-expenses:before { background:var(--cost-band); }.legend-profit:before { background:var(--green); }
.tracker-table-scroll,.tracker-entry-scroll { max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:8px; isolation:isolate; }
#tracker-table { table-layout:auto; min-width:520px; }
#tracker-table th,#tracker-table td { min-width:130px; white-space:nowrap; }
#tracker-table tr>:first-child { position:sticky; left:0; z-index:1; width:240px; min-width:240px; max-width:260px; white-space:normal; text-align:left; background:var(--paper); }
#tracker-table .subtotal>* { background:var(--keep-tint); font-weight:bold; }
#tracker-table thead th { background:var(--buyer-band); color:var(--buyer-ink); }
#tracker-table thead th:first-child { background:var(--paper); color:var(--ink); }
#tracker-entries { table-layout:auto; min-width:860px; }
#tracker-entries td { background:var(--paper); vertical-align:middle; }
#tracker-entries input[type=text] { min-width:180px; }#tracker-entries input[type=month] { min-width:145px; }#tracker-entries input[type=number] { min-width:110px; }
#tracker [aria-invalid=true] { outline:2px solid var(--error); }
#tracker-status,#tracker-unknown { overflow-wrap:anywhere; }
@media(max-width:700px) { .tool-tabs { width:100%; }.tool-tabs button { flex:1; padding:8px; font-size:12px; }.tracker-imports { grid-template-columns:1fr; }.upload-card { padding:16px; }.drop-zone { padding:14px; }.tracker-heading { flex-wrap:wrap; }.tracker-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }.tracker-tile { padding:14px; }.tracker-tile strong { font-size:21px; }#tracker-table tr>:first-child { min-width:170px; width:170px; max-width:170px; } }

.tracker-tiles { grid-template-columns:repeat(7,minmax(0,1fr)); }
.tracker-tile strong { font-size:21px; }.tracker-tile small { margin-top:8px; font-size:10px; }
.coverage-strip { display:flex; max-width:100%; gap:5px; overflow:auto; padding:8px 0; }.coverage-month { flex:1 0 68px; background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:8px; font-size:10px; }.coverage-month span { display:block; }.coverage-month strong { display:block; margin-bottom:4px; }
.tracker-spending { margin:28px 0; max-width:900px; }.spending-row { position:relative; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 0 18px; border-bottom:1px solid var(--line); }.spending-row strong { font-size:12px; }.spending-bar { position:absolute; height:5px; bottom:3px; left:0; background:var(--cost-ink); border-radius:2px; }
.chart-tooltip { min-height:24px; font-size:12px; }.yoy-legend { display:inline-block; padding:4px 12px; font-size:12px; }
.pl-settings { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; max-width:760px; margin:20px 0; }.pl-settings label { font-size:12px; }.pl-settings input,.pl-settings select { display:block; margin-top:5px; }
.pl-document { max-width:820px; background:#fff; color:#111; border:1px solid #c6cebf; padding:28px; margin:20px 0; }.pl-document h2 { font-size:24px; margin:0 0 8px; }.pl-document h3 { font:22px Georgia,serif; margin:8px 0; }.pl-document p { font-size:12px; }.pl-document table { table-layout:auto; font-size:12px; }.pl-document th { text-align:left; font-weight:normal; }.pl-document th,.pl-document td { border:0; padding:5px 4px; }.pl-document tr td:last-child { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }.pl-document .pl-section th { font-weight:bold; padding-top:16px; border-bottom:1px solid #bbb; }.pl-document .subtotal>* { font-weight:bold; border-top:1px solid #ccc; }.pl-document .schedule-line { color:#666; font-size:10px; white-space:nowrap; }.pl-document .helper { color:#444; }.missing-months { color:#604211; }.pl-reference { border-top:1px solid #ccc; padding-top:12px; }
#pl-dialog { width:min(900px,calc(100% - 32px)); max-height:92vh; padding:20px; border:1px solid var(--line); border-radius:10px; background:var(--cream); color:var(--ink); }#pl-dialog::backdrop { background:rgba(10,30,20,.6); }.print-controls { display:flex; justify-content:space-between; gap:10px; }
@media(max-width:700px) { .tracker-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }.pl-settings { grid-template-columns:1fr; }.pl-document { padding:12px; }.pl-document table { font-size:10px; }.pl-document .schedule-line { font-size:8px; white-space:normal; }.pl-document th { overflow-wrap:anywhere; } }
@page { size:Letter portrait; margin:.55in; }
@media print {
 html,body { background:white!important; color:black!important; }
 body>* { display:none!important; }
 body>#pl-dialog[open] { display:block!important; position:static; inset:auto; width:100%; max-width:none; max-height:none; height:auto; margin:0; padding:0; border:0; border-radius:0; overflow:visible; background:white!important; color:black!important; }
 #pl-dialog .print-controls { display:none!important; }
 #pl-dialog .pl-document { margin:0; padding:0; border:0; max-width:none; font-size:10pt; }
 #pl-dialog .pl-document,#pl-dialog .pl-document * { color:black!important; background:white!important; }
 #pl-dialog .pl-document table { font-size:9pt; }#pl-dialog .pl-document th,#pl-dialog .pl-document td { padding:3px; }#pl-dialog .pl-document p { font-size:8pt; line-height:1.3; }#pl-dialog .pl-section th { padding-top:9px; }#pl-dialog .pl-document h2 { font-size:17pt; }#pl-dialog .pl-document h3 { font-size:14pt; }
 #pl-dialog::backdrop { display:none; }
}

.import-summary { background:var(--keep-tint); color:var(--keep-ink); border:1px solid var(--keep-band); border-radius:9px; padding:18px; margin:18px 0 12px; }
.import-summary>strong { display:block; font-size:18px; }.import-summary p { margin:7px 0; }.import-summary ul { margin:10px 0 0; padding-left:18px; max-height:160px; overflow:auto; font-size:13px; }
.import-more { font-size:12px; min-height:32px; }.import-feedback { font-size:12px; overflow-wrap:anywhere; }.import-feedback:empty { display:none; }
.import-conflict { border:1px solid var(--cost-ink); border-radius:8px; padding:14px; background:var(--cost-tint); }.import-conflict button { margin:4px 8px 4px 0; font-size:12px; }
.has-import .drop-zone { padding:14px; margin-top:10px; }

.import-summary .import-file-list { list-style:none; padding-left:0; max-height:220px; }
.import-file-list li { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 0; border-top:1px solid var(--line); }
.import-file-list li>div { min-width:0; }.import-file-list strong { font-size:13px; overflow-wrap:anywhere; }.import-file-list small { margin-top:4px; }
.import-file-list button { font-size:11px; padding:5px 8px; min-height:30px; flex-shrink:0; }

/* Imports are a compact setup step; the results remain the focus. */
.tracker-imports { gap:14px; margin:16px 0; align-items:start; }
.upload-card { padding:14px 16px; }.upload-card h3 { font-size:14px; margin:0 0 6px; }
.import-help { margin:4px 0 8px; }.import-help summary { font-size:11px; color:var(--muted); }.import-help p { font-size:12px; }
.drop-zone { gap:4px; padding:10px 12px; margin:10px 0; background:var(--paper); border-width:1px; }
.drop-zone strong { font-size:13px; }.drop-zone span { font-size:11px; }.drop-zone input[type=file] { padding:4px; }
.upload-card>.helper { font-size:11px; margin:6px 0; }
.import-summary { padding:12px; margin:10px 0; }.import-summary>strong { font-size:14px; }.import-summary p { font-size:12px; margin:4px 0; }.import-summary .import-file-list { max-height:130px; }

#tracker-promo { width:min(700px,calc(100% - 32px)); max-height:92vh; overflow:auto; padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--ink); }
#tracker-promo::backdrop { background:rgba(10,30,20,.65); }
#tracker-promo h2 { font:25px Georgia,serif; margin:0 0 16px; }
.promo-media { aspect-ratio:16/9; background:var(--cream); border-radius:8px; overflow:hidden; }
.promo-media video,.promo-media img { display:block; width:100%; height:100%; object-fit:contain; }
#tracker-promo-copy { font-size:14px; margin:16px 0; }
.promo-progress { display:flex; align-items:center; gap:14px; margin:16px 0; }
.promo-progress progress { width:100%; height:12px; accent-color:var(--green); }
#tracker-promo-percent { min-width:40px; text-align:right; font-variant-numeric:tabular-nums; }
.promo-actions { display:flex; gap:12px; justify-content:space-between; margin-top:18px; }
.promo-actions .button { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
#tracker-promo-again { display:inline-block; font-size:13px; margin-top:4px; }
@media(max-width:700px) { #tracker-promo { padding:16px; }.promo-actions { flex-direction:column; }.promo-actions>* { width:100%; text-align:center; }#tracker-promo h2 { font-size:22px; } }

/* Pricing workspace: costs → goal → listing, using the existing type and color palette. */
.bulk[hidden] { display:none; }
#calculator { --pricing-sage:#e4ead6; }
.table-heading { margin:12px 0 24px; }
.table-heading>p:first-child { font-size:18px; }
.table-heading .helper { margin-top:6px; }
.table-scroll { background:var(--paper); border-radius:12px 12px 0 0; }
#pricing { --item-width:140px; }
#pricing th,#pricing td { border-right:0; padding:22px 10px; }
#pricing tbody tr:last-child>* { border-bottom:0; }
#pricing tbody th { vertical-align:middle; }
#pricing .group-row th { height:54px; padding:12px 10px; background:var(--pricing-sage); color:var(--green); }
#pricing .group-row th:not([rowspan]) { font-size:15px; border-right:1px solid var(--paper); }
#pricing .group-row .item-head { background:var(--paper); }
#pricing .column-row th { top:54px; height:60px; padding:12px 10px; background:var(--cream); color:var(--ink); max-width:none; }
#pricing .column-row small { font-size:11px; }
#pricing tbody td { background:var(--paper); vertical-align:middle; text-align:left; }
#pricing .field-box { width:100%; min-width:76px; }
#pricing tbody th>.field-box { width:100%; }
#pricing input[type=text] { font-weight:600; }
#pricing input[type=number] { text-align:left; }
#pricing [data-cell=target] { min-width:124px; }
#pricing [data-cell=target] .field-box { width:100%; }
#pricing [data-cell=target] select { width:100%; padding:8px 6px; font-size:12px; margin-bottom:8px; }
#pricing [data-cell=listingPrice],#pricing [data-cell=salePrice] { color:var(--keep-ink); font-size:28px; font-weight:700; white-space:nowrap; background:var(--keep-tint); }
#pricing.has-sale [data-cell=listingPrice] { background:var(--paper); font-size:24px; }
#pricing [data-cell=salePrice] { background:var(--pricing-sage); }
#pricing [data-cell=returns] { min-width:130px; max-width:175px; white-space:normal; }
#pricing [data-cell=returns] strong { font-size:22px; display:block; }
#pricing [data-result=margin] { font-size:11px; line-height:1.5; margin-top:4px; }
#pricing [data-result=atList] { margin-top:8px; font-style:italic; color:var(--muted); }
#pricing [data-cell=fees] { min-width:185px; }
#pricing .fee-total { font-size:18px; }
#pricing .fee-breakdown { line-height:1.7; color:var(--ink); }
#pricing .negative { color:var(--error); }
#pricing .shipping-gap { color:var(--muted); }
.item-actions { border:1px solid var(--line); border-top:0; border-radius:0 0 12px 12px; margin:0 0 20px; padding:14px 18px; background:var(--paper); }
.item-actions>small { margin-left:auto; }
.pricing-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin:22px 0; }
#sale-context { margin:0 0 16px; min-height:0; padding:0; }
.mobile-select-all { display:none; }
@media(min-width:1400px) {
 #pricing [data-cell=target] { min-width:185px; }
 #pricing [data-cell=target] select { width:calc(60% - 8px); display:inline-block; margin:0 8px 0 0; }
 #pricing [data-cell=target] .field-box:not([hidden]) { display:inline-block; width:40%; min-width:0; }
}
@media(max-width:700px) {
 .mobile-select-all { display:flex; align-items:center; gap:8px; margin:16px 0; }
 .table-heading { margin-bottom:16px; }
 .table-scroll { border:0; overflow:visible; max-height:none; background:transparent; }
 #pricing,#pricing tbody { display:block; width:100%; }
 #pricing thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 #pricing tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--line); border-radius:12px; overflow:hidden; margin-bottom:16px; }
 #pricing tbody th { position:static; grid-column:1/-1; width:auto; max-width:none; min-width:0; padding:16px; background:var(--paper); }
 #pricing tbody td { min-width:0; max-width:none; padding:16px; border-bottom:1px solid var(--line); }
 #pricing td::before { content:attr(data-label); display:block; font-size:12px; font-weight:600; margin-bottom:10px; white-space:normal; }
 #pricing [data-cell=target],#pricing [data-cell=listingPrice],#pricing [data-cell=salePrice],#pricing [data-cell=returns],#pricing [data-cell=fees],#pricing [data-cell=buyerPays] { grid-column:1/-1; }
 #pricing [data-cell=target] { display:grid; grid-template-columns:1fr 1fr; gap:8px; background:var(--keep-tint); }
 #pricing [data-cell=target]::before { grid-column:1/-1; }
 #pricing [data-cell=target] select { margin:0; }
 #pricing .field-box { min-width:0; }
 #pricing [data-cell=listingPrice],#pricing [data-cell=salePrice] { font-size:32px; }
 #pricing [data-cell=returns] { max-width:none; border-top:1px solid var(--line); }
 #pricing [data-cell=buyer] { grid-column:1/-1; }
 .item-actions { border:0; border-radius:0; background:transparent; padding:0; }
 .item-actions>small { margin-left:0; }
 .pricing-bottom { align-items:flex-start; flex-direction:column; }
}

#pricing .field-box[data-unit="$"]::before { content:'$'; position:absolute; left:9px; top:8px; color:var(--muted); pointer-events:none; }
#pricing .field-box[data-unit="$"] input { padding-left:22px; }
#sale-discount { display:inline-block; padding:2px 7px; border-radius:12px; background:var(--pricing-sage); color:var(--green); }

.pricing-toolbar { display:flex; align-items:center; justify-content:space-between; gap:28px; margin-bottom:18px; }
.pricing-toolbar .table-heading { flex:1; max-width:760px; margin:12px 0; }
.pricing-toolbar .table-heading>p:first-child { font-size:14px; }
.pricing-toolbar .controls { float:none; width:200px; flex-shrink:0; margin:0; }
#pricing [data-cell=buyerPays] { min-width:108px; }
#pricing [data-cell=buyerPays] strong { font-size:19px; }
#pricing [data-cell=buyerPays] small { margin-top:6px; font-size:11px; }
#pricing .field-box[data-unit="%"]::after { content:'%'; position:absolute; right:9px; top:8px; color:var(--muted); pointer-events:none; }
#pricing .field-box[data-unit="%"] input { padding-right:26px; }
@media(max-width:700px) {
 .pricing-toolbar { flex-direction:column; align-items:stretch; gap:10px; }
 .pricing-toolbar .controls { width:100%; }
}

/* Give each desktop row one control track and one aligned value track. */
#pricing [data-cell=returns] strong,#pricing .fee-total,#pricing [data-cell=buyerPays] strong { font-size:16px; }
#pricing input[type=text],#pricing input[type=number],#pricing [data-cell=target] select { font-size:14px; height:38px; }
#pricing [data-cell=returns] small,#pricing [data-cell=buyerPays] small,#pricing .fee-breakdown { font-size:12px; line-height:1.5; }
@media(min-width:701px) {
 #pricing tbody td,#pricing tbody th { vertical-align:top; padding-top:64px; padding-bottom:22px; }
 #pricing .item-controls { position:absolute; top:22px; left:10px; right:10px; height:34px; margin:0; }
 #pricing [data-cell=target] { position:relative; }
 #pricing [data-cell=target] select { position:absolute; top:22px; left:10px; width:calc(100% - 20px); height:34px; margin:0; }
 #pricing [data-cell] >strong { display:block; line-height:38px; }
 #pricing [data-cell=returns] small,#pricing [data-cell=buyerPays] small { margin-top:6px; }
}
@media(min-width:1400px) {
 #pricing [data-cell=target] select { position:static; display:inline-block; width:calc(60% - 8px); height:38px; margin:0 8px 0 0; }
}
#pricing input[type=number] { font-size:16px; line-height:20px; }
#pricing .field-box[data-unit]::before,#pricing .field-box[data-unit]::after { font-size:16px; line-height:20px; top:9px; }
.tracker-intro h2 .tracker-for{display:block;font-size:.55em;font-weight:normal;margin-top:4px}.tracker-intro .tracker-disclaimer{font-size:12px;color:var(--muted);margin-top:4px}

/* Target dropdown: the fixed 34-38px height leaves no room for vertical padding, which clipped the text. */
#pricing [data-cell=target] select { padding-top:0; padding-bottom:0; line-height:normal; }
@media(min-width:701px) and (max-width:1243px) { #pricing [data-cell=target] { min-width:140px; } }
