:root {
  color-scheme: light;
  --ink: #211e30;
  --muted: #5e596e;
  --paper: #f6f5f2;
  --white: #fff;
  --line: #dedbe3;
  --violet: #5035a1;
  --plum: #28203e;
  --wash: #f0ebfc;
  --lemon: #f1ec9f;
  --rust: #8c3627;
  --warn: #fff0e2;
  --green: #245a47;
  --good: #e5f3eb;
  --radius: 15px;
  font-family: "PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.58;
  accent-color: var(--violet);
}
*,*::before,*::after { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; min-height: 100vh }
a { color: var(--violet); text-underline-offset: .23em }
a:hover { text-decoration-thickness: 2px }
button,input,select { font: inherit; color: inherit }
button,summary { cursor: pointer }
button:disabled { cursor: default }
:focus-visible { outline: 3px solid #7454ce; outline-offset: 3px }
::selection { color: var(--plum); background: var(--lemon) }
h1,h2,h3,p,figure { margin: 0 }
h1 { font-size: clamp(29px, 4vw, 45px); line-height: 1.22; letter-spacing: -.03em }
h2 { font-size: 22px; line-height: 1.35; letter-spacing: -.025em }
h3 { font-size: 16px; line-height: 1.4 }
p + p { margin-top: 8px }
.sr,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip:focus { position: fixed; inset: 8px auto auto 8px; z-index: 20; padding: 10px; background: white }
.icon { display: inline-block; inline-size: 20px; block-size: 20px; flex: none; vertical-align: middle }
.mast-inner,.sitefoot > div { max-width: 1256px; padding-inline: 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px }
.mast { background: var(--white); border-bottom: 1px solid var(--line) }
.mast-inner { min-height: 70px }
.wordmark { color: var(--ink); font-size: 21px; letter-spacing: -.035em; text-decoration: none; font-weight: 780; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap }
.wordmark .brand-mark { width: 33px; height: 33px; background: var(--plum); color: var(--lemon); border-radius: 8px; padding: 6px }
.product-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.product-nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-weight: 650; padding: 9px 13px; border-radius: 7px; min-height: 44px }
.product-nav a:hover { color: var(--violet); background: #f6f4f8 }
.product-nav a[aria-current] { color: var(--violet); background: var(--wash) }
.local { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); font-size: 13px }
.local .icon { width: 16px; height: 16px }
main { max-width: 1160px; margin: 0 auto; padding: 32px 28px 50px; min-height: 66vh }
.pagehead { margin-bottom: 24px }
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; color: var(--muted) }
.crumb .icon { width: 14px; height: 14px }
.pagehead p { color: var(--muted); margin-top: 8px }
.stack { display: grid; gap: 18px; min-width: 0; align-content: start }
.split { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 18px; align-items: start }
.equal { grid-template-columns: repeat(2,minmax(0,1fr)) }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 23px }
.panel > h2,.panel > h3 { margin-bottom: 13px }
.panel > .muted + * { margin-top: 14px }
.muted { color: var(--muted) }
.small { font-size: 13px }
.number, .date, td, dd { font-variant-numeric: tabular-nums lining-nums }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px }
.actions.spaced { margin-top: 17px }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-align: center; text-decoration: none; background: var(--white); color: var(--ink); border: 1px solid #c9c3d2; border-radius: 8px; min-height: 44px; padding: 8px 14px; line-height: 1.35; font-weight: 680 }
.btn:hover { background: var(--wash); border-color: #a99ac8 }
.btn.primary { background: var(--violet); border-color: var(--violet); color: white }
.btn.primary:hover { background: #3c267e }
.btn:disabled { background: #eeecf1; color: #6d667a; border-color: #dedbe3 }
.textbtn { background: transparent; border: 0; border-radius: 4px; min-height: 44px; padding: 5px 3px; color: var(--violet); font-weight: 680; text-decoration: underline; text-underline-offset: .23em; text-align: left }
.tag { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 12px; font-weight: 700; background: var(--wash); color: #4c3483; white-space: nowrap }
.tag.warn,.notice.warn,.tag.bad,.notice.bad { background: var(--warn); color: var(--rust) }
.tag.good,.notice.good { background: var(--good); color: var(--green) }
.tag.neutral { background: #efedf1; color: #514a60 }
.notice { background: var(--wash); border-radius: 9px; padding: 12px 14px; color: #432e79; overflow-wrap: anywhere }
.notice + *,.notice.after { margin-top: 13px }
.hero { background: var(--plum); color: #fff; border-radius: 19px; overflow: hidden; padding: clamp(26px, 4vw, 50px); display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(22px,4vw,52px); align-items: center; min-height: 335px }
.hero h1 { font-size: clamp(36px,5vw,66px); line-height: 1.13; text-wrap: balance; max-width: 10em }
.hero p { color: #e1d8f5; max-width: 32em; margin-top: 15px }
.hero .actions { margin-top: 23px }
.hero .btn.primary { background: var(--lemon); border-color: var(--lemon); color: var(--plum) }
.hero .btn.primary:hover { background: #fff8b3 }
.hero .btn.secondary { color: white; background: transparent; border-color: #82749d }
.hero .btn.secondary:hover { background: #ffffff20 }
.manifest { border-radius: 12px; background: #352a50; border: 1px solid #6b5d87; padding: 17px; min-width: 0 }
.manifest-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #6b5d87; color: #e4d9fa; font-size: 12px }
.manifest-cap .icon { color: var(--lemon) }
.route { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding-block: 15px }
.route small { display: block; color: #ded0f4; font-size: 12px }
.route strong { color: white; font-size: clamp(20px,3vw,28px); letter-spacing: -.025em }
.route span:last-child { text-align: right }
.route-line { height: 1px; margin-top: 18px; background: #ad96e3; position: relative }
.route-line::before,.route-line::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border: 1px solid #e3d6ff; border-radius: 100%; background: #352a50 }
.route-line::after { right: 0; background: var(--lemon); border-color: var(--lemon) }
.manifest-total { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; border-radius: 7px; background: var(--lemon); color: var(--plum); padding: 9px 12px }
.manifest-total strong { font-size: clamp(22px,3vw,32px); line-height: 1.15; letter-spacing: -.035em }
.entry-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden }
.entry { padding: 15px 17px; min-height: 78px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; text-align: left; border: 0; background: white; color: var(--ink); text-decoration: none }
.entry:hover { background: var(--wash) }
.entry:focus-visible { outline-offset: -4px }
.entry + .entry { border-left: 1px solid var(--line) }
.entry small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px }
.entry > .icon { color: var(--violet) }
.agenda + .agenda { border-top: 1px solid var(--line) }
.agenda summary,.disclose > summary { min-height: 44px; padding: 9px 0; font-weight: 700 }
.agenda summary { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; list-style: none }
.agenda summary::-webkit-details-marker { display: none }
.agenda summary::after { content: ""; display: block; width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: 0 4px 5px 1px }
.agenda[open] summary::after { transform: rotate(225deg); margin-bottom: -3px }
.agenda p { margin: 0 0 13px; font-size: 13px; color: var(--muted) }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px }
.fields.three { grid-template-columns: repeat(3,minmax(0,1fr)) }
.fields.four { grid-template-columns: repeat(4,minmax(0,1fr)) }
.field { min-width: 0; display: grid; align-content: start; gap: 4px; font-weight: 650; font-size: 13px }
.field input,.field select,select.filter { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #beb8c9; background: white; border-radius: 7px; padding: 8px 9px; font-size: 16px; font-weight: 480 }
.field input[aria-invalid="true"] { border-color: var(--rust); background: var(--warn) }
.field-error { color: var(--rust); font-weight: 650 }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0 }
legend { font-weight: 700; margin-bottom: 5px }
.choices { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.choice { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 14px; max-width: 100%; min-width: 0 }
.choice input[type=file] { max-width: 100%; min-width: 0; font: inherit }
.choice:has(:checked) { border-color: #aa98d1; background: var(--wash); color: #432e79 }
.choice input { margin: 0 }
.rule { padding-top: 14px; margin-top: 15px; border-top: 1px solid var(--line) }
.metric { background: var(--plum); border-radius: var(--radius); padding: 24px; color: white }
.metric .muted { color: #e2d7f7 }
.metric .tag { background: var(--lemon); color: var(--plum) }
.metric h2 { font-size: clamp(25px,4vw,43px); letter-spacing: -.035em }
.metric-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; flex-wrap: wrap; margin-bottom: 9px }
.metric strong .currency,.metric h2 .currency { color: var(--lemon) }
.metric .value { color: var(--lemon) }
.series { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 17px; border-top: 1px solid #776a91 }
.series > div { padding: 10px 10px 0 0 }
.series > div + div { border-left: 1px solid #776a91; padding-left: 13px }
.series small { display: block; color: #e3d9f5 }
.series strong { display: block; font-size: 23px; letter-spacing: -.03em }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain }
table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left }
th,td { padding: 9px 10px; vertical-align: middle; border-bottom: 1px solid var(--line) }
thead th { font-size: 12px; color: var(--muted); background: #f6f4f8 }
tbody tr:last-child > * { border-bottom: 0 }
td.money,th.money,td.num,th.num { text-align: right; white-space: nowrap }
dl { margin: 0 }
.data-list > div,.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding: 9px 0 }
.data-list > div:last-child,.kv > div:last-child { border-bottom: 0 }
dt { color: var(--muted) }
dd { margin: 0; text-align: right; font-weight: 690 }
.drop { border: 1px dashed #9d8cb6; background: #faf8fe; border-radius: 10px; padding: 19px 14px; text-align: center }
.drop > .icon { width: 30px; height: 30px; color: var(--violet); margin-bottom: 7px }
.drop .actions { justify-content: center; margin-top: 12px }
.issue { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line) }
.issue:last-child { border-bottom: 0 }
.issue p { margin: 0 }
.coverage { display: flex; gap: 3px; height: 10px; margin: 15px 0 9px; border-radius: 5px; overflow: hidden }
.coverage span:nth-child(1) { flex: 80; background: var(--lemon) }
.coverage span:nth-child(2) { flex: 15; background: #b4a2eb }
.coverage span:nth-child(3) { flex: 5; background: #ea9b78 }
.coverage-bar { display: flex; gap: 3px; height: 10px; margin: 15px 0 9px; border-radius: 5px; overflow: hidden; background: #4e4263 }
.coverage-bar span { display: block }
.coverage-bar .c { background: var(--lemon) }
.coverage-bar .p { background: #b4a2eb }
.coverage-bar .u { background: #ea9b78 }
legend + .choices,.field + .disclose { margin-top: 4px }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px }
.filters button[aria-pressed="true"] { color: #412b72; background: var(--wash); border-color: #a795c9 }
.report-shell { background: #eeebf2; border-radius: var(--radius); padding: clamp(10px,3vw,28px); min-width: 0 }
.report { background: white; border: 1px solid var(--line); padding: clamp(14px,3vw,29px); min-width: 0; box-shadow: 0 5px 15px #241a3710; overflow-wrap: anywhere }
.split > * { min-width: 0 }
.report-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding-bottom: 11px; border-bottom: 2px solid var(--plum); margin-bottom: 16px }
.report-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 750 }
.report-logo .icon { width: 33px; height: 33px; background: var(--plum); color: var(--lemon); border-radius: 8px; padding: 6px }
.report .data-list dd,.report .kv dd { color: var(--violet) }
.report h3 { margin-top: 16px }
.report ol { padding-inline-start: 22px; margin: 5px 0 13px }
.sitefoot { color: var(--muted); font-size: 12px }
.sitefoot > div { border-top: 1px solid var(--line); min-height: 65px; flex-wrap: wrap }
.sitefoot span:first-child { color: var(--ink); font-weight: 750 }
dialog { border: 0; border-radius: 15px; width: min(580px,calc(100% - 28px)); max-height: min(85dvh,720px); overflow: auto; overscroll-behavior: contain; padding: 21px; color: var(--ink); box-shadow: 0 20px 60px #211e3060 }
dialog::backdrop { background: #211b35a8 }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line) }
.dialog-head .btn { flex: none }
progress { width: 100%; accent-color: var(--violet) }
@keyframes flash { 0%,100% { background: transparent } 30% { background: var(--lemon) } }
.flash { animation: flash 1.6s ease }
@media(max-width: 900px) {
  .entry-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .entry:nth-child(3) { border-left: 0 }
  .entry:nth-child(n+3) { border-top: 1px solid var(--line) }
}
@media(max-width: 720px) {
  .mast-inner,.sitefoot > div { padding-inline: 16px }
  .mast-inner { min-height: auto; padding-block: 10px 7px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px }
  .product-nav { grid-row: 2; grid-column: 1/-1; gap: 4px }
  .product-nav a { padding-inline: 9px; font-size: 13px }
  .product-nav .icon { width: 17px; height: 17px }
  main { padding: 22px 16px 32px }
  .hero,.split { grid-template-columns: minmax(0,1fr) }
  .hero { padding: 23px }
  .panel,.metric { padding: 16px }
  .local { font-size: 12px }
}
@media(max-width: 380px) {
  .wordmark { font-size: 19px }
  .entry { padding: 10px 8px; gap: 6px }
  .entry .icon { width: 16px; height: 16px }
  .fields.four { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .manifest-total { flex-wrap: wrap }
}
main:focus, main:focus-visible { outline: none }
.field input[readonly] { background: #f6f4f8; color: var(--muted) }
.sitefoot > div { padding-block: 8px }
.agenda-date { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 5px 8px }
@media(max-width: 440px) {
  .agenda-date { display: grid; justify-items: end }
}
.route-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px }
.route-bands { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px }
.route-modes .choice,.route-bands .choice { padding: 9px 11px; gap: 9px; min-height: 54px }
.route-modes small,.route-bands small { display: block; color: var(--muted); line-height: 1.4 }
.route-panel legend:has(h2) { margin-bottom: 12px }
.route-panel #distance-error,.route-help { margin-top: 9px }
.choice:focus-within { outline: 2px solid var(--violet); outline-offset: 2px }
.distance-metric .metric-top { align-items: center; margin-bottom: 12px }
.distance-metric .metric-tags { gap: 11px }
.distance-scope { color: #eee5ff; font-size: 14px; font-weight: 670 }
.distance-excluded { margin-top: 12px }
.distance-metric .btn { background: transparent; color: white; border-color: #9e8dbd }
.distance-metric .btn:hover { background: #ffffff20 }
.distance-metric .btn.distance-primary { color: var(--plum); background: var(--lemon); border-color: var(--lemon) }
.distance-metric .btn.distance-primary:hover { background: #fff8b3 }
.distance-metric .btn:disabled { color: #d5c9e7; background: #4e4263; border-color: #827395 }
.scope-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 8px }
#budget-out .data-list + .notice { margin-top: 10px }
@media(max-width: 440px) {
  .route-modes .choice,.route-bands .choice { padding: 8px; gap: 6px }
  .route-modes { gap: 7px }
  .route-bands { gap: 6px }
}

/* English copy uses the same grid with more room for long controls. */
:root { font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif }
.hero h1 { max-width: 14ch; font-size: clamp(33px,4.35vw,62px) }
.hero .actions { align-items: stretch }
.manifest-cap { flex-wrap: wrap }
.pagehead h1, .panel h2, .metric h2 { text-wrap: balance }
.btn, .entry, .choice, .field > span, .data-list > div, .kv > div, th, td { overflow-wrap: anywhere }
.tag { white-space: normal }
.agenda-date .date { white-space: nowrap }
.data-list dt, .data-list dd, .kv dt, .kv dd { min-width: 0 }
.field:has(select[name$="Service"],select[name$="Included"]) { grid-column: 1/-1 }
@media(max-width: 1040px) {
  .field:has(select[name="service"],select[name="speed"]) { grid-column: 1/-1 }
}
@media(max-width: 720px) {
  .field:has(select[name="packaging"]) { grid-column: 1/-1 }
  .fields.four { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .product-nav a { padding-inline: 7px }
  .sitefoot > div { column-gap: 12px; row-gap: 4px }
}
@media(max-width: 440px) {
  .route-modes { grid-template-columns: minmax(0,1fr) }
  .entry { grid-template-columns: auto minmax(0,1fr); align-content: center }
  .entry .icon:last-child { display: none }
  .fields:has(select[name="packaging"]) { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .local { white-space: normal; line-height: 1.3 }
}

/* Keep rate figures and headers intact, with horizontal scrolling only as needed. */
.data-list > div,.kv > div { display: grid; grid-template-columns: minmax(0,1fr) fit-content(56%) }
.data-list dd,.kv dd { overflow-wrap: normal }
th, td { overflow-wrap: normal }
.rates-table th:nth-child(2), .rates-table th:nth-child(3),
.rates-table td:nth-child(2), .rates-table td:nth-child(3) { white-space: nowrap }
@media(max-width: 440px) {
  .product-nav .icon { display: none }
  .product-nav { gap: 3px }
  .product-nav a { padding-inline: 5px }
  .mast-inner { column-gap: 8px }
  .rates-table th, .rates-table td { padding-inline: 5px }
  .rates-table td, .rates-table tbody th { font-size: 13px }
}
@media(max-width: 380px) {
  .field:has(select[data-group="import"][name="address"]) { grid-column: 1/-1 }
  .field:has(select[data-group="single"][name$="Unit"]) { grid-column: 1/-1 }
}
@media(max-width: 380px) {
  .rates-table table { table-layout: fixed }
  .rates-table thead th:first-child { width: 34% }
  .rates-table thead th:nth-child(2), .rates-table thead th:nth-child(3) { width: 51px }
  .rates-table tbody th, .rates-table td:last-child { overflow-wrap: anywhere }
  .rates-table .tag { padding-inline: 4px }
}

.metric .package-facts { display: flex; flex-wrap: wrap; gap: 2px 10px }

/* Compatibility helpers kept for inline views that reuse the old class names. */
.kv { margin: 0 }
.rate { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: white; min-width: 0 }
.rate-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap }
.rate p { margin: .35rem 0 0 }
.toast { position: fixed; right: 1rem; bottom: 1rem; background: var(--plum); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-size: .88rem; z-index: 30 }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 }
.drop .btn { margin-top: 2px }
