/* Public reference-style H5 home and estimate skin. Kept page-scoped so account,
   order, admin, contract and signing views continue using the base stylesheet. */
:root {
  --reference-yellow: #ffeb00;
  --reference-ink: #242424;
  --reference-muted: #8b8b8b;
  --reference-green: #169447;
}

/* Home shell: edge-to-edge H5 canvas, with a persistent 3-item bottom tab bar. */
body[data-page="home"] { background: #f5f5f5; color: var(--reference-ink); }
body[data-page="home"] .header { display: none; }
body[data-page="home"] main {
  width: 100%; min-height: 100vh; margin: 0; padding: 0 0 calc(68px + env(safe-area-inset-bottom));
}
body[data-page="home"] #app { width: 100%; max-width: none; margin: 0; padding: 0; }
.reference-home { width: 100%; max-width: 750px; margin: 0 auto; overflow: hidden; background: #f5f5f5; }
.reference-home img { display: block; max-width: 100%; }
.reference-home a { color: inherit; text-decoration: none; }
.reference-home a:hover { text-decoration: none; }

.reference-banner { position: relative; width: 100%; height: 250px; overflow: hidden; background: var(--reference-yellow); }
.reference-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.reference-banner picture { display: block; width: 100%; height: 100%; }
.reference-flow {
  position: absolute; z-index: 2; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 28px);
  width: min(92%, 660px); min-height: 56px; padding: 10px 20px;
  border-radius: 999px; background: rgb(255 255 255 / 93%); box-shadow: 0 4px 14px rgb(0 0 0 / 13%);
  color: #222; font-size: 14px; font-weight: 700; text-align: center;
}
.reference-flow a { color: inherit; }
.reference-flow > * + *::before { content: '›'; margin-right: clamp(8px, 3vw, 28px); color: #a4a4a4; font-size: 20px; vertical-align: -1px; }
.reference-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 0;
  margin: 0; padding: 16px 6px; list-style: none; background: #fff; text-align: center;
}
.reference-trust > * { min-width: 0; padding: 2px 6px; font-size: 14px; font-weight: 650; }
.reference-trust > * + * { border-left: 1px solid #eee; }
.reference-trust small, .reference-trust .muted { display: block; margin-top: 4px; color: var(--reference-muted); font-size: 11px; font-weight: 400; }

.reference-categories {
  display: grid; grid-template-columns: 51% 49%; grid-template-rows: repeat(2, auto); gap: 0;
  width: 100%; overflow: hidden; background: #fff;
}
.reference-categories > :first-child { grid-column: 1; grid-row: 1 / span 2; }
.reference-categories > :nth-child(2) { grid-column: 2; grid-row: 1; }
.reference-categories > :nth-child(3) { grid-column: 2; grid-row: 2; }
.reference-categories a, .reference-categories picture { display: block; min-width: 0; overflow: hidden; }
.reference-categories img { width: 100%; height: auto; object-fit: contain; }
.reference-categories > * + * { border-left: 1px solid #fff; }
.reference-categories > :nth-child(3) { border-top: 1px solid #fff; }
.reference-green { display: block; width: 100%; overflow: hidden; background: #fff; }
.reference-green img { width: 100%; height: auto; object-fit: contain; }
.reference-balance { margin: 10px 12px; padding: 16px; border-radius: 10px; background: #fff; }
.reference-balance a { color: inherit; text-decoration: none; }
.reference-faq { margin: 10px 12px 14px; padding: 16px; border-radius: 10px; background: #fff; }
.reference-faq h2 { margin: 0 0 12px; font-size: 17px; }
.reference-faq details { padding: 13px 0; border-bottom: 1px solid #f0f0f0; }
.reference-faq details:last-child { border-bottom: 0; }
.reference-faq summary { position: relative; padding-left: 25px; color: #292929; font-size: 14px; font-weight: 500; list-style: none; cursor: pointer; }
.reference-faq summary::-webkit-details-marker { display: none; }
.reference-faq summary::before { content: 'Q'; position: absolute; left: 0; top: 0; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: #f2f2f2; color: #888; font-size: 11px; font-weight: 700; }
.reference-faq details[open] summary { color: #222; }
.reference-faq details p { margin: 9px 0 0 25px; color: #777; font-size: 13px; line-height: 1.7; }
nav.reference-tabs {
  position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  min-height: 56px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); gap: 0;
  border-top: 1px solid #eee; background: rgb(255 255 255 / 97%); box-shadow: 0 -2px 10px rgb(0 0 0 / 4%);
}
nav.reference-tabs a {
  display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 2px 6px; border-radius: 0; color: #777; font-size: 11px; line-height: 1.2; text-decoration: none;
}
nav.reference-tabs a[aria-current], nav.reference-tabs a[aria-selected="true"] { color: #222; background: transparent; font-weight: 700; }
nav.reference-tabs img, nav.reference-tabs svg, nav.reference-tabs .tab-icon { display: block; width: 23px; height: 23px; object-fit: contain; }

/* Estimate view: compact white cards, image-led device chooser, yellow action accent. */
body[data-page="estimate"] { background: #f5f5f5; color: var(--reference-ink); }
body[data-page="estimate"] .header { display: none; }
body[data-page="estimate"] main { width: 100%; max-width: 750px; margin: 0 auto; padding: 10px 0 30px; }
body[data-page="estimate"] #app { width: 100%; max-width: none; margin: 0; padding: 0 12px; }
.reference-estimate { display: grid; gap: 10px; }
.reference-estimate > .page-head { margin: 0; padding: 7px 4px 3px; }
.reference-estimate > .page-head h1 { color: #222; font-size: 20px; font-weight: 700; }
.reference-estimate > .page-head p { margin-top: 4px; color: #888; font-size: 13px; }
.reference-estimate .steps { gap: 0; margin: 0; padding: 13px 10px; border: 0; border-radius: 9px; background: #fff; }
.reference-estimate .steps li { position: relative; border: 0; padding: 0; color: #999; font-size: 12px; text-align: center; }
.reference-estimate .steps li::before { content: ''; display: block; width: 20px; height: 20px; margin: 0 auto 5px; border: 1px solid #ddd; border-radius: 50%; background: #fff; }
.reference-estimate .steps li::after { content: ''; position: absolute; top: 9px; left: calc(50% + 16px); width: calc(100% - 32px); height: 1px; background: #e7e7e7; }
.reference-estimate .steps li:last-child::after { display: none; }
.reference-estimate .steps li[aria-current] { color: #333; font-weight: 700; }
.reference-estimate .steps li[aria-current]::before, .reference-estimate .steps li.done::before { border-color: var(--reference-yellow); background: var(--reference-yellow); }
#quote-form.reference-estimate, .reference-estimate #quote-form {
  display: grid; gap: 14px; margin: 0; padding: 15px 13px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 5px rgb(0 0 0 / 3%);
}
.reference-estimate .spec { min-width: 0; margin: 0; padding: 0; border: 0; }
.reference-estimate .spec legend { margin: 0 0 9px; padding: 0; color: #333; font-size: 15px; font-weight: 700; }
.reference-estimate .device-list, .reference-estimate .model-options {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 7px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reference-estimate .device-list::-webkit-scrollbar, .reference-estimate .model-options::-webkit-scrollbar { display: none; }
.reference-estimate .device-card, .reference-estimate .model-card {
  position: relative; display: flex; flex: 0 0 96px; min-height: 115px; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  padding: 8px 5px; border: 1px solid #eee; border-radius: 8px; background: #fff; color: #444; font-size: 12px; line-height: 1.4; text-align: center; cursor: pointer;
}
.reference-estimate .device-card:has(input:checked), .reference-estimate .model-card:has(input:checked) { border: 1px solid #e3cc00; background: #fffef2; }
.reference-estimate .device-card input, .reference-estimate .model-card input { position: absolute; top: 5px; left: 5px; width: 14px; height: 14px; margin: 0; accent-color: #dbc900; }
.reference-estimate .device-card img, .reference-estimate .model-card img { display: block; width: 46px; height: 65px; object-fit: contain; }
.reference-estimate .spec-grid, .reference-estimate .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
.reference-estimate .chip-option, .reference-estimate .opt {
  display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 5px; padding: 6px 11px;
  border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; color: #555; font-size: 13px; font-weight: 400; cursor: pointer;
}
.reference-estimate .chip-option:has(input:checked), .reference-estimate .opt:has(input:checked) { border-color: #e0cb00; background: #fffde8; color: #333; }
.reference-estimate .chip-option input, .reference-estimate .opt input { width: 14px; height: 14px; margin: 0; accent-color: #d7c600; }
.reference-estimate .options { display: flex; flex-wrap: wrap; gap: 8px; }
.reference-estimate textarea { min-height: 60px; border-color: #e5e5e5; border-radius: 6px; }
.reference-estimate .summary { align-items: center; margin: 0; padding: 12px 0; border-block: 1px solid #f0f0f0; color: #444; font-size: 13px; }
.reference-estimate .summary strong, .reference-estimate .summary b { color: #e14b38; font-size: 22px; font-weight: 700; }
.reference-estimate .summary b { font-size: 19px; }
.reference-estimate .fine-print, .reference-estimate .notice { font-size: 12px; }
.reference-estimate .agree { color: #555; font-size: 13px; font-weight: 400; }
.reference-estimate .tool-row { align-items: center; }
.reference-estimate #order-button, .reference-estimate .btn {
  min-height: 44px; border: 0; border-radius: 999px; background: var(--reference-yellow); color: #222; font-size: 15px; font-weight: 700;
}
.reference-estimate #order-button:hover, .reference-estimate .btn:hover { background: #f3df00; color: #222; }
.reference-estimate #order-button[disabled] { background: #eee; color: #999; }
.reference-estimate > .stack > .panel, .reference-estimate .panel { border: 0; border-radius: 10px; box-shadow: 0 1px 5px rgb(0 0 0 / 3%); }
.reference-estimate details { padding: 10px 0; border-bottom: 1px solid #f1f1f1; }
.reference-estimate details:last-child { border-bottom: 0; }
.reference-estimate details summary { color: #444; font-size: 13px; }
.reference-estimate details p { margin-top: 7px; color: #777; font-size: 12px; }

@media (max-width: 560px) {
  .reference-banner { height: 200px; }
  .reference-flow { bottom: 9px; min-height: 48px; padding: 8px 12px; gap: 5px; font-size: 12px; }
  .reference-flow > * + *::before { margin-right: 5px; font-size: 17px; }
  .reference-trust { padding: 13px 3px; }
  .reference-trust > * { padding-inline: 3px; font-size: 12px; }
  .reference-trust small, .reference-trust .muted { font-size: 10px; }
  .reference-balance, .reference-faq { margin-inline: 9px; padding: 13px; }
  body[data-page="estimate"] main { padding-top: 7px; }
  body[data-page="estimate"] #app { padding-inline: 9px; }
  .reference-estimate { gap: 8px; }
  .reference-estimate .device-card, .reference-estimate .model-card { flex-basis: 84px; min-height: 104px; font-size: 11px; }
  .reference-estimate .device-card img, .reference-estimate .model-card img { width: 40px; height: 58px; }
}
@media (min-width: 751px) {
  .reference-home { box-shadow: 0 0 18px rgb(0 0 0 / 4%); }
}


/* Exact estimate header + compact reference picker (selectors cover the root's
   new wrapper as well as the current .model-options/.model-card markup). */
body[data-page="estimate"] main { max-width: none; padding: 0 0 24px; }
body[data-page="estimate"] #app { width: 100%; max-width: none; padding: 0; }
body[data-page="estimate"] .reference-estimate { width: 100%; max-width: none; margin: 0; }
body[data-page="estimate"] .reference-estimate > .estimate-head,
.reference-estimate > .estimate-head {
  position: relative; display: block; width: 100%; height: 134px; min-height: 134px; margin: 0; padding: 13px 12px 0;
  overflow: hidden; background: linear-gradient(165deg, #e3f7f8, #e5f7f9); color: #252525;
}
.reference-estimate .estimate-head h1 { margin: 0; color: #222; font-size: 18px; line-height: 24px; font-weight: 700; }
.reference-estimate .estimate-head p { margin: 0; color: #555; font-size: 13px; line-height: 19px; }
.reference-estimate .estimate-head .steps {
  position: absolute; top: 58px; right: 0; left: 0; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start;
  width: 100%; height: 56px; gap: 0; margin: 0; padding: 0 10px; overflow: hidden; border: 0; border-radius: 0; background: transparent;
}
.reference-estimate .estimate-head .steps li {
  position: relative; display: flex; flex: 0 1 auto; align-items: center; gap: 5px; min-width: 0; padding: 0 8px 0 0;
  border: 0; color: #666; font-size: 12px; line-height: 18px; white-space: nowrap; text-align: left;
}
.reference-estimate .estimate-head .steps li::before {
  content: ''; display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; border: 1px solid #9ab6b7; border-radius: 50%; background: #fff;
}
.reference-estimate .estimate-head .steps li::after {
  content: '›'; position: static; display: inline; width: auto; height: auto; margin-left: 3px; background: none; color: #87a5a6; font-size: 17px;
}
.reference-estimate .estimate-head .steps li:last-child::after { display: none; }
.reference-estimate .estimate-head .steps li[aria-current] { color: #222; font-weight: 700; }
.reference-estimate .estimate-head .steps li[aria-current]::before,
.reference-estimate .estimate-head .steps li.done::before { border-color: var(--reference-yellow); background: var(--reference-yellow); }
.reference-estimate > .steps {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; height: 56px; min-height: 56px;
  gap: 0; margin: -76px 0 20px; padding: 0 10px; overflow: hidden; border: 0; border-radius: 0; background: transparent;
}
.reference-estimate > .steps li { display: flex; flex: 0 1 auto; align-items: center; gap: 5px; min-width: 0; padding: 0 8px 0 0; border: 0; font-size: 12px; white-space: nowrap; }
.reference-estimate > .steps li::before { content: ''; display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; border: 1px solid #9ab6b7; border-radius: 50%; background: #fff; }
.reference-estimate > .steps li::after { content: '›'; position: static; display: inline; width: auto; height: auto; margin-left: 3px; background: none; color: #87a5a6; font-size: 17px; }
.reference-estimate > .steps li:last-child::after { display: none; }
.reference-estimate #quote-form, .reference-estimate form#quote-form {
  display: grid; width: 100%; gap: 14px; margin: 0; padding: 14px 12px; border: 0; border-radius: 0; background: #fff; box-shadow: none;
}
.reference-estimate .model-options { gap: 9px; }
.reference-estimate .model-card {
  flex: 0 0 74px; min-height: 82px; gap: 3px; padding: 6px 4px 5px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 11px;
}
.reference-estimate .model-card img { width: 56px; height: 56px; object-fit: contain; }
.reference-estimate .model-card:has(input:checked) { border: 1px solid #e3d100; background: #fffef2; }
.reference-estimate .model-card input { top: 2px; left: 2px; width: 12px; height: 12px; }
.reference-estimate .spec-grid, .reference-estimate .grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
.reference-estimate .spec .options { gap: 8px; }
.reference-estimate .opt { min-width: 66px; min-height: 33px; padding: 5px 10px; }
.reference-estimate .reference-entry { width: 100%; }
@media (max-width: 560px) {
  body[data-page="estimate"] main { padding: 0 0 18px; }
  body[data-page="estimate"] #app { padding: 0; }
  .reference-estimate .estimate-head { height: 134px; min-height: 134px; padding-top: 13px; }
  .reference-estimate .estimate-head .steps { top: 58px; padding-inline: 8px; }
  .reference-estimate .estimate-head .steps li, .reference-estimate > .steps li { gap: 4px; padding-right: 5px; font-size: 11px; }
  .reference-estimate .model-options { gap: 6px; }
  .reference-estimate .model-card { flex-basis: 68px; min-height: 78px; }
  .reference-estimate .model-card img { width: 56px; height: 56px; }
  .reference-estimate #quote-form, .reference-estimate form#quote-form { padding: 13px 11px; }
}


/* Root-rendered estimate variant: the flow is inside the 134px gradient head;
   brand is intentionally visually hidden on the reference-only entry form. */
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.reference-estimate .estimate-head { flex: none; }
.reference-estimate .estimate-head > h1 { margin: 0; color: #242424; font-size: 18px; line-height: 24px; font-weight: 700; }
.reference-estimate .estimate-head > p { margin: 0; color: #565656; font-size: 13px; line-height: 18px; }
.reference-estimate .estimate-head .steps.panel {
  position: absolute; top: 58px; right: 0; bottom: auto; left: 0; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start;
  width: 100%; height: 56px; min-height: 56px; gap: 0; margin: 0; padding: 0 10px; overflow: hidden;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.reference-estimate .estimate-head .steps.panel li { flex: 0 1 auto; gap: 5px; padding-right: 8px; font-size: 12px; }
.reference-estimate .estimate-slogan { margin: 0; padding: 8px 12px 2px; color: #444; font-size: 14px; line-height: 20px; font-weight: 600; }
.reference-estimate .reference-entry { gap: 11px; margin: 0; padding: 10px 12px 14px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.reference-estimate .reference-entry > .spec:first-child { display: none; }
.reference-estimate .reference-entry > .spec:nth-child(2) > legend { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.reference-estimate .reference-entry .model-options { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 9px; padding: 0 0 4px; overflow-x: auto; }
.reference-estimate .reference-entry .model-card { flex: 0 0 66px; min-height: 72px; gap: 2px; padding: 3px 2px; border-radius: 5px; font-size: 10px; }
.reference-estimate .reference-entry .model-card img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; }
.reference-estimate .reference-entry .model-card:has(input:checked) { border-color: #d9c900; background: #fffef1; }
.reference-estimate .reference-entry .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.reference-estimate .reference-entry .spec { display: grid; gap: 0; }
.reference-estimate .reference-entry .spec legend { margin-bottom: 6px; font-size: 14px; }
.reference-estimate .reference-entry .options { gap: 7px; }
.reference-estimate .reference-entry .opt { min-width: 62px; min-height: 31px; padding: 4px 9px; border-radius: 5px; font-size: 12px; }
.reference-estimate .reference-entry .estimate-remark { margin-top: 0; }
.reference-estimate .reference-entry .summary { padding: 9px 0; }
.reference-estimate .reference-entry .fine-print { margin: 0; line-height: 1.5; }
.reference-estimate .reference-entry .notice { margin: 0; padding: 8px 10px; }
.reference-estimate .reference-entry .tool-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.reference-estimate .reference-entry #order-button { width: 100%; }
.reference-estimate .referenceFaq, .reference-estimate .reference-faq { margin: 0; padding: 13px 12px; border: 0; border-radius: 0; background: #fff; }
.reference-estimate .referenceFaq h2, .reference-estimate .reference-faq h2 { margin-bottom: 8px; font-size: 15px; }
nav.reference-tabs a.estimate-tab.active, nav.reference-tabs a.active { color: #222; background: transparent; font-weight: 700; }
nav.reference-tabs .tab-icon { display: grid; place-items: center; }
nav.reference-tabs .tab-icon svg { width: 23px; height: 23px; }
@media (max-width: 560px) {
  .reference-estimate .estimate-head .steps.panel { top: 58px; padding-inline: 8px; }
  .reference-estimate .estimate-head .steps.panel li { gap: 4px; padding-right: 5px; font-size: 11px; }
  .reference-estimate .reference-entry { gap: 9px; padding: 8px 10px 12px; }
  .reference-estimate .reference-entry .model-options { gap: 6px; }
  .reference-estimate .reference-entry .model-card { flex-basis: 64px; }
}


/* Screenshot-calibrated estimate details (1249px reference viewport). */
.reference-estimate .estimate-head .steps.panel li {
  position: relative; flex: 0 0 72px; min-width: 72px; height: 55px; flex-direction: column; justify-content: flex-start; gap: 5px;
  padding: 0 12px 0 0; color: #222; font-size: 11px; line-height: 15px; text-align: center;
}
.reference-estimate .estimate-head .steps.panel li::before {
  content: '✎'; display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center;
  border: 0; border-radius: 8px; background: #fff; color: #e4c900; font-size: 21px; line-height: 1;
}
.reference-estimate .estimate-head .steps.panel li:nth-child(2)::before { content: '✓'; }
.reference-estimate .estimate-head .steps.panel li:nth-child(3)::before { content: '➤'; }
.reference-estimate .estimate-head .steps.panel li:nth-child(4)::before { content: '▱'; }
.reference-estimate .estimate-head .steps.panel li::after {
  content: '›'; position: absolute; top: 1px; right: 0; display: block; width: 13px; height: 32px;
  margin: 0; background: transparent; color: #e4c900; font-size: 22px; line-height: 30px;
}
.reference-estimate .estimate-head .steps.panel li[aria-current] { font-weight: 500; }
.reference-estimate .estimate-head .steps.panel li[aria-current]::before,
.reference-estimate .estimate-head .steps.panel li.done::before { border: 0; background: #fff; }
.reference-estimate > .stack { display: grid; gap: 0; }
.reference-estimate .estimate-slogan {
  height: 39px; min-height: 39px; margin: 12px 10px; padding: 0 12px; display: flex; align-items: center;
  border-radius: 9px; background: #fff0e2; color: #171717; font-size: 13px; line-height: 18px; font-weight: 700;
}
.reference-estimate .reference-entry {
  display: flex; flex-direction: column; gap: 0; padding: 0 10px 10px; background: #fff;
}
.reference-estimate .reference-entry > .spec:nth-child(2) { order: 1; }
.reference-estimate .reference-entry > .grid { order: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.reference-estimate .reference-entry > .estimate-remark { order: 3; }
.reference-estimate .reference-entry > .tool-row { order: 4; display: grid; grid-template-columns: 2.1fr 1fr; gap: 10px; margin-top: 7px; }
.reference-estimate .reference-entry > .summary { order: 5; display: flex; justify-content: center; align-items: center; gap: 3px; padding: 9px 0 7px; border: 0; color: #222; font-size: 12px; line-height: 18px; }
.reference-estimate .reference-entry > .summary > div:first-child { display: inline; }
.reference-estimate .reference-entry > .summary .muted { display: inline; color: #222; font-size: 12px; }
.reference-estimate .reference-entry > .summary strong,
.reference-estimate .reference-entry > .summary b { display: inline; color: #111; font-size: 14px; line-height: inherit; }
.reference-estimate .reference-entry > div:has(> .agree) { order: 6; padding: 3px 0; }
.reference-estimate .reference-entry > .fine-print { order: 7; padding: 2px 0; }
.reference-estimate .reference-entry > .notice { order: 8; }
.reference-estimate .reference-entry > .tool-row #order-button,
.reference-estimate .reference-entry > .tool-row .btn { min-height: 46px; height: 46px; border-radius: 8px; }
.reference-estimate .reference-entry > .tool-row > a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #ffaaa4; border-radius: 8px; background: #fff7f6; color: #222; font-size: 13px; font-weight: 700; }
.reference-estimate .reference-entry .spec legend { position: relative; padding-left: 10px; margin-bottom: 8px; color: #171717; font-size: 14px; line-height: 19px; }
.reference-estimate .reference-entry .spec legend::before { content: ''; position: absolute; left: 0; top: 2px; width: 4px; height: 14px; border-radius: 3px; background: var(--reference-yellow); }
.reference-estimate .reference-entry .model-options { gap: 4px; min-height: 100px; padding: 0 0 4px; align-items: flex-start; }
.reference-estimate .reference-entry .model-card { flex: 0 0 74px; width: 74px; min-height: 96px; gap: 4px; padding: 5px 2px 3px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; }
.reference-estimate .reference-entry .model-card img { flex: 0 0 56px; width: 56px; height: 56px; }
.reference-estimate .reference-entry .model-card span { display: block; width: 70px; overflow: hidden; color: #333; font-size: 11px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.reference-estimate .reference-entry .model-card:has(input:checked) { border: 1px solid #d7d7d7; background: #fff; }
.reference-estimate .reference-entry .model-card input { display: none; }
.reference-estimate .reference-entry .spec .options { display: flex; flex-wrap: wrap; gap: 8px; }
.reference-estimate .reference-entry .opt {
  display: inline-flex; min-width: 68px; height: 32px; min-height: 32px; align-items: center; justify-content: flex-start; gap: 5px;
  padding: 4px 10px; border: 1px solid #dedede; border-radius: 5px; background: #fff; color: #555; font-size: 12px; font-weight: 400;
}
.reference-estimate .reference-entry .opt input[type="radio"] {
  appearance: none; display: inline-grid; flex: 0 0 14px; width: 14px; height: 14px; margin: 0; place-content: center;
  border: 1px solid #d4d4d4; border-radius: 50%; background: #fff; accent-color: #e1ca00;
}
.reference-estimate .reference-entry .opt input[type="radio"]::before {
  content: ''; width: 7px; height: 7px; transform: scale(0); border-radius: 50%; background: #e1ca00; transition: transform 90ms ease-in-out;
}
.reference-estimate .reference-entry .opt input[type="radio"]:checked::before { transform: scale(1); }
.reference-estimate .reference-entry .opt:has(input:checked) { border-color: #222; background: #fff; color: #222; font-weight: 700; }
.reference-estimate .reference-entry .estimate-remark { order: 3; margin: 5px 0; }
.reference-estimate .reference-entry .estimate-remark summary { color: #444; font-size: 13px; }
.reference-estimate .reference-entry .reference-faq { margin: 0; }
.reference-estimate .reference-faq details { min-height: 46px; padding: 0; border-bottom: 1px solid #eee; }
.reference-estimate .reference-faq summary { display: flex; min-height: 45px; align-items: center; padding: 0 22px 0 35px; color: #222; font-size: 12px; font-weight: 600; }
.reference-estimate .reference-faq summary::before { display: none; }
.reference-estimate .reference-faq summary .question-mark { position: absolute; left: 12px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 5px; background: var(--reference-yellow); color: #222; font-size: 11px; font-weight: 800; }
.reference-estimate .reference-faq summary::after { content: '⌄'; position: absolute; right: 12px; color: #aaa; font-size: 18px; font-weight: 400; }
.reference-estimate .reference-faq details[open] summary::after { content: '⌃'; }
.reference-estimate .reference-faq details p { margin: 0 12px 12px 35px; }
.reference-home .reference-flow { display: block; }
.reference-home .reference-flow > summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.reference-home .reference-flow > summary::-webkit-details-marker { display: none; }
.reference-home .reference-flow > summary > span:nth-child(2) { display: grid; gap: 2px; text-align: left; }
.reference-home .reference-flow > summary strong { font-size: 13px; }
.reference-home .reference-flow > summary small { color: #777; font-size: 11px; font-weight: 400; }
.reference-home .reference-flow .play-icon { color: #e0c600; font-size: 14px; }
.reference-home .reference-flow .flow-arrow { margin-left: auto; color: #999; font-size: 20px; }
.reference-home .reference-flow > p { margin: 0; padding: 0 14px 12px; color: #666; font-size: 12px; }
.reference-home .reference-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reference-home .reference-trust > span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.reference-home .reference-trust > span img { width: 27px; height: 27px; object-fit: contain; }
.reference-home .reference-trust > span + span { border-left: 0; }
.reference-home .reference-balance { display: flex; align-items: center; gap: 9px; color: #333; font-size: 14px; }
.reference-home .reference-balance strong { margin-left: auto; font-size: 17px; }
.reference-home .reference-balance .wallet-icon { color: #d7bd00; }
.reference-home .reference-balance .withdraw-link { color: #777; font-size: 12px; }
.reference-home .reference-demo { padding: 0 12px 12px; color: #888; font-size: 11px; text-align: center; }
.reference-home .reference-demo a { text-decoration: underline; }

/* Final supplied screenshot and root markup corrections. */
.reference-home { max-width:none; width:100%; }
body[data-page="home"] main,body[data-page="home"] #app { max-width:none;width:100%; }
body[data-page="home"] > .footer { display:none!important; }
.reference-home .reference-flow { top:10px;bottom:auto;left:12px;right:12px;transform:none;width:auto;height:50px;min-height:50px;padding:0;border-radius:25px;background:rgb(0 0 0 / 58%);color:white;overflow:hidden;box-shadow:none; }
.reference-home .reference-flow > summary { display:flex;height:50px;align-items:center;gap:9px;padding:0 15px;list-style:none;color:white; }
.reference-home .reference-flow > summary::marker,.reference-home .reference-flow > summary::-webkit-details-marker { display:none;content:''; }
.reference-home .reference-flow > summary > span:nth-child(2) { display:grid;gap:2px;text-align:left; }
.reference-home .reference-flow > summary strong { color:white;font-size:13px;white-space:nowrap; }
.reference-home .reference-flow > summary small { color:white;font-size:11px;white-space:nowrap; }
.reference-home .reference-flow > summary .play-icon { display:grid;flex:0 0 24px;width:24px;height:24px;place-items:center;border-radius:50%;background:#ffeb00;color:#222;font-size:10px; }
.reference-home .reference-flow .flow-arrow { margin-left:auto;color:white; }
.reference-home .reference-flow[open] { height:auto;min-height:50px; }
.reference-home .reference-flow > p { padding:0 15px 11px 48px;color:#eee; }
.reference-home .reference-trust { display:flex;height:52px;min-height:52px;align-items:center;justify-content:space-around;padding:0 12px;gap:0; }
.reference-home .reference-trust > span { display:flex;flex:1 1 0;flex-direction:row;align-items:center;justify-content:center;gap:6px;padding:0;font-size:12px;white-space:nowrap; }
.reference-home .reference-trust > span img { display:block;flex:0 0 13px;width:13px;height:13px;object-fit:contain; }
.reference-home .reference-trust > span + span { border:0; }
.reference-home .reference-categories { width:calc(100% - 24px);margin:12px;padding:4px;gap:4px;grid-template-columns:calc(51% - 2px) calc(49% - 2px);border-radius:24px;background:white;overflow:hidden; }
.reference-home .reference-categories a { border:0;border-radius:16px;overflow:hidden; }
.reference-home .reference-categories img { display:block;width:100%;height:auto;object-fit:contain; }
.reference-home .reference-green { width:calc(100% - 24px);height:60px;margin:0 12px;border-radius:12px; }
.reference-home .reference-green img { width:100%;height:60px;object-fit:cover;object-position:center; }
.reference-home .reference-balance { display:flex;min-height:56px;align-items:center;gap:8px;margin:12px;padding:0 14px;background:white;border-radius:10px;color:#222; }
.reference-home .reference-balance strong { margin-left:auto;font-size:15px;white-space:nowrap; }
.reference-home .reference-balance .wallet-icon { color:#d9bf00; }
.reference-home .reference-balance .withdraw-link { color:#777;font-size:12px;white-space:nowrap; }
.reference-home .reference-faq summary { display:flex;min-height:45px;align-items:center;padding:0 23px 0 34px;font-size:14px;font-weight:700;color:#171717; }
.reference-home .reference-faq summary::before { display:none!important;content:none!important; }
.reference-home .reference-faq summary .question-mark { position:absolute;left:7px;display:grid;width:18px;height:18px;place-items:center;border-radius:4px;background:#ffeb00;color:#222;font-size:11px;font-weight:800; }
.reference-home .reference-faq summary::after { content:'⌄';position:absolute;right:7px;color:#aaa;font-size:17px; }
.reference-home .reference-faq details { min-height:46px;padding:0;border-bottom:1px solid #eee; }
.reference-home .reference-faq details p { margin:0 10px 10px 34px; }
.reference-home .reference-demo { padding:2px 12px;font-size:9px;line-height:13px; }
nav.reference-tabs a.estimate-tab .tab-icon { position:relative;top:-12px;display:grid;width:46px;height:46px;margin:0 0 -12px;place-items:center;border:3px solid white;border-radius:50%;background:#ffeb00;color:#292929;box-shadow:0 1px 4px rgb(0 0 0 / 13%); }
nav.reference-tabs a.estimate-tab .tab-icon svg { width:22px;height:22px; }
.reference-estimate .reference-entry .opt input[type="radio"] { min-height:0!important;height:15px!important;padding:0!important;border:1px solid #d4d4d4!important;width:15px!important;flex:0 0 15px;border-radius:50%;background:white; }
.reference-estimate .reference-entry .opt { height:32px;min-height:32px;align-items:center;border:1px solid #dedede;background:white;font-weight:400; }
.reference-estimate .reference-entry .opt:has(input:checked) { border-color:#222;background:white;color:#222;font-weight:700; }
.reference-estimate .reference-entry .model-card input { display:none!important; }
.reference-estimate .reference-entry .model-card { width:74px;flex-basis:74px;min-height:96px; }
.reference-estimate .reference-entry .model-card span { display:block;width:70px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:400; }
.reference-estimate .estimate-head .steps.panel { gap:38px;padding-left:12px;overflow:visible; }
.reference-estimate .estimate-head .steps.panel li { position:relative;display:flex;flex:0 0 44px;width:44px;min-width:44px;height:56px;flex-direction:column;align-items:center;gap:6px;padding:0;font-size:11px;font-weight:400;line-height:15px; }
.reference-estimate .estimate-head .steps.panel li::before { display:none!important;content:none!important; }
.reference-estimate .estimate-head .steps.panel li::after { content:'›';position:absolute;top:8px;left:58px;right:auto;display:block;width:12px;height:20px;margin:0;color:#e4c900;background:none;font-size:22px;line-height:20px; }
.reference-estimate .estimate-head .steps.panel li:last-child::after { display:none; }
.reference-estimate .step-icon { display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:8px;background:white;color:#e4c900; }
.reference-estimate .step-icon svg { display:block;width:24px;height:24px;stroke:#e4c900; }
@media(max-width:560px) {
 .reference-home .reference-banner { height:260px; }
 .reference-home .reference-flow { top:10px;left:12px;right:12px; }
 .reference-home .reference-trust { height:52px;min-height:52px; }
 .reference-home .reference-categories { width:calc(100% - 24px);margin:12px; }
 .reference-home .reference-green,.reference-home .reference-green img { height:62px; }
 .reference-estimate .estimate-head .steps.panel li { flex-basis:44px;min-width:44px; }
}

@media (max-width: 560px) {
  .reference-estimate .estimate-head .steps.panel li { flex-basis: 44px; min-width: 44px; }
  .reference-estimate .estimate-slogan { margin-inline: 10px; }
  .reference-estimate .reference-entry { padding-inline: 10px; }
  .reference-estimate .reference-entry > .tool-row { grid-template-columns: 2.1fr 1fr; gap: 8px; }
  .reference-estimate .reference-entry .model-card { flex-basis: 74px; }
}
/* Final same-viewport checks: preserve input focus, wrapping and reference spacing. */
body[data-page="home"], body[data-page="estimate"] { font-family: "Noto Sans SC", Arial, "Microsoft YaHei", sans-serif; background:#fff; color:#111; }
body[data-page="home"] > footer, body[data-page="estimate"] > footer { display:none; }
.reference-estimate .estimate-head .steps.panel li { flex-basis:44px; min-width:44px; }
.reference-estimate .reference-entry .model-card { position:relative; }
.reference-estimate .reference-entry .model-card input { display:block!important; position:absolute; width:1px!important; height:1px!important; min-height:0!important; padding:0; opacity:0; }
.reference-estimate .reference-entry .model-card:focus-within { outline:2px solid #4090ee; outline-offset:2px; }
.reference-estimate .reference-entry .grid { gap:20px; }
.reference-estimate .reference-entry .opt { font-size:13px; padding:4px 12px; }
.reference-estimate .reference-entry .model-options { margin-bottom:14px; }
.reference-estimate .reference-faq summary { font-size:14px; }
.reference-estimate .reference-entry .summary { margin:0; font-size:12px; white-space:nowrap; }
.reference-estimate .reference-entry .summary strong,.reference-estimate .reference-entry .summary b { font-size:13px; }
.reference-estimate .reference-entry .tool-row > a svg { width:18px; height:18px; color:#e3c700; margin-right:6px; }
.reference-estimate .estimate-slogan { margin-top:12px; margin-bottom:12px; }
.reference-home .reference-balance strong { margin-left:0; }
.reference-home .reference-balance .withdraw-link { margin-left:auto; }
.reference-home .reference-trust img { opacity:.4; }
.reference-home .reference-trust { margin-bottom:0; }
.reference-home .reference-categories { margin-top:0; }
.reference-home .reference-demo { margin-bottom:60px; }
@media (max-width:560px) {
 .reference-estimate .estimate-head { height:139px; min-height:139px; }
 .reference-estimate .reference-entry .grid { gap:20px; }
 .reference-estimate .reference-entry .opt { padding:4px 12px; }
 .reference-estimate .reference-entry .options { max-width:350px; }
}

/* Phone controls keep readable labels and reliable touch targets. */
@media (max-width: 560px) {
  .reference-estimate .reference-entry .opt { min-height: 42px; display: inline-flex; align-items: center; }
  .reference-estimate .reference-entry .model-card { min-height: 96px; }
  .reference-estimate .reference-entry .summary { white-space: normal; flex-wrap: wrap; }
  .reference-estimate .estimate-head .steps.panel li { flex: 1 1 0; min-width: 0; }
  .reference-estimate .reference-entry .options { max-width: 100%; }
  .reference-home .reference-banner { height: clamp(170px, 58vw, 250px); }
}

/* Public reference guide video. */
.reference-home .reference-flow { padding:0; }
.reference-flow[hidden] { display:none!important; }
.reference-home .flow-video-trigger { display:flex;align-items:center;gap:9px;width:100%;height:50px;padding:0 43px 0 12px;border:0;border-radius:30px;background:transparent;color:white;text-align:left; }
.flow-video-trigger > span:nth-child(2) { display:grid;gap:2px; }
.flow-video-trigger strong { color:white;font-size:13px; }
.flow-video-trigger small { color:#ddd;font-size:11px; }
.flow-video-trigger .play-icon { display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ffeb00;color:#222;font-size:11px; }
.flow-video-trigger .flow-arrow { margin-left:auto;color:#ffeb00; }
.reference-home .flow-dismiss { position:absolute;right:9px;top:13px;width:24px;height:24px;padding:0;border:0;background:transparent;color:#ddd;font-size:19px; }
.guide-video { width:min(94vw,460px);max-width:none;max-height:96dvh;padding:0;border:0;background:transparent;color:#fff;overflow:auto; }
.guide-video::backdrop { background:rgba(0,0,0,.9); }
.guide-video-head { display:flex;align-items:center;justify-content:space-between;padding:4px 0 14px; }
.guide-video-head h2 { font-size:18px;color:#fff; }
.guide-video-head button { padding:0 5px;border:0;background:transparent;color:#fff;font-size:30px;line-height:1; }
.guide-video video { display:block;width:100%;height:min(67dvh,680px);object-fit:contain;background:#000;border-radius:10px; }
.guide-video-steps { display:flex;justify-content:space-between;gap:8px;padding:16px 2px;color:#fff;font-size:13px; }
.guide-video-estimate { display:block;width:fit-content;margin:0 auto 5px;padding:13px 18px;border-radius:8px;background:#ffe600;color:#111;font-size:15px;font-weight:700; }

