:root {
  color-scheme: light;
  --ink: #152033;
  --muted: #6f7b8d;
  --line: #e8ecf1;
  --soft: #f6f8fb;
  --blue: #2367f2;
  --blue-dark: #1753ce;
  --danger: #b43c43;
  --danger-bg: #fff3f2;
  --shadow: 0 20px 60px rgba(34, 49, 78, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: #f7f9fc;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 36px, 920px); margin: 0 auto; padding: 58px 0 36px; }
.hero { padding: 0 4px 26px; }
.eyebrow, .kicker { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 10px 0 8px; font-size: clamp(34px, 6vw, 54px); letter-spacing: -.05em; line-height: 1; }
h2 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.025em; }
.hero-copy { margin: 0; color: var(--muted); font-size: 16px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 25px; padding: 14px 16px; border: 1px solid #dce7ff; border-radius: 12px; background: #f3f7ff; color: #3b4e70; font-size: 13px; line-height: 1.65; }
.notice-icon { display: grid; place-items: center; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--blue); color: white; font-size: 12px; font-weight: 800; }
.view-tabs { display: flex; gap: 5px; margin: 0 0 18px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.view-tab { flex: 1; padding: 11px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; }
.view-tab.active { background: #edf3ff; color: var(--blue); }
.view-panel { display: grid; gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.form-card, .results-card { padding: 26px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.privacy-pill, .count-badge { white-space: nowrap; border-radius: 999px; padding: 7px 10px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.carrier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.carrier-option { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .18s ease; }
.carrier-option:hover { border-color: #b7c9f7; background: #fbfcff; }
.carrier-option.selected { border-color: #9cb8ff; background: #f5f8ff; box-shadow: inset 0 0 0 1px #c9d8ff; }
.carrier-option input { position: absolute; opacity: 0; pointer-events: none; }
.carrier-mark { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; color: white; font-size: 10px; font-weight: 850; letter-spacing: -.02em; }
.sf-mark { background: #e5483e; } .jd-mark { background: #e1251b; } .dhl-mark { background: #f5b700; color: #d5221e; } .fedex-mark { background: #4d3c98; }
.carrier-copy { display: grid; min-width: 0; gap: 2px; } .carrier-copy strong { font-size: 13px; } .carrier-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.input-label-row, .input-meta { display: flex; justify-content: space-between; gap: 12px; }
.input-label-row { margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.input-label-row span, .input-meta { color: var(--muted); font-size: 12px; font-weight: 500; }
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.field { display: grid; gap: 7px; color: #566276; font-size: 12px; font-weight: 750; }
.field.wide { grid-column: span 2; }
.field input, .field select { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #dce2eb; border-radius: 9px; outline: none; background: #fbfcfe; color: var(--ink); font-size: 13px; }
.field input:focus, .field select:focus { border-color: #8eafff; background: white; box-shadow: 0 0 0 4px #edf2ff; }
.quote-card { padding-top: 24px; }
.form-help { margin: -5px 0 13px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.quote-textarea { min-height: 135px; }
.recommendation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.recommendation-card { min-height: 142px; padding: 21px 23px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.price-recommendation { border-top: 4px solid #f0ad2e; } .speed-recommendation { border-top: 4px solid #38a879; }
.recommendation-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.recommendation-value { margin-top: 16px; color: var(--ink); font-size: 25px; font-weight: 850; letter-spacing: -.04em; }
.recommendation-value.empty-value { color: #a1aaba; font-size: 20px; }
.recommendation-detail { margin-top: 7px; color: var(--muted); font-size: 12px; }
.comparison-card { padding: 23px; }
.comparison-table-wrap { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13px; }
.comparison-table th { padding: 11px 12px; border-bottom: 1px solid #dfe5ee; color: var(--muted); text-align: left; font-size: 11px; font-weight: 800; }
.comparison-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: #3c475a; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table .lowest-row td:first-child { color: #b57800; font-weight: 800; }
.comparison-table .fastest-row td:first-child { color: #217c59; font-weight: 800; }
.empty-table { padding: 30px 12px !important; color: #9aa5b5 !important; text-align: center; }
textarea { display: block; width: 100%; resize: vertical; min-height: 170px; padding: 15px; border: 1px solid #dce2eb; border-radius: 12px; outline: none; color: var(--ink); background: #fbfcfe; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.7; transition: .18s ease; }
textarea:focus { border-color: #8eafff; background: white; box-shadow: 0 0 0 4px #edf2ff; }
.input-meta { margin-top: 8px; }
.message { min-height: 21px; margin: 10px 0 5px; color: var(--danger); font-size: 12px; line-height: 1.5; }
.message:empty { min-height: 10px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; margin-top: 5px; padding: 13px 18px; border: 0; border-radius: 10px; background: var(--blue); color: white; font-weight: 800; transition: .18s ease; }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.results-card { margin-top: 18px; }
.results-heading { margin-bottom: 10px; }
.results-intro { margin-bottom: 17px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.results-list { display: grid; gap: 9px; }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; }
.result-number { min-width: 0; overflow: hidden; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.result-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.secondary-button, .official-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; border-radius: 8px; font-size: 12px; font-weight: 750; text-decoration: none; }
.secondary-button { border: 1px solid var(--line); background: white; color: #536077; }
.official-button { border: 1px solid #c8d7ff; background: #f2f6ff; color: #1c5bdc; }
.secondary-button:hover, .official-button:hover { border-color: #91adf0; }
.hidden { display: none; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px 4px 0; color: #9aa5b5; font-size: 11px; }

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 560px); padding-top: 30px; }
  .form-card, .results-card { padding: 18px; border-radius: 15px; }
  .carrier-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .field.wide { grid-column: span 2; }
  .section-heading { margin-bottom: 17px; }
  .privacy-pill { display: none; }
  .result-row { align-items: flex-start; flex-direction: column; gap: 11px; }
  .result-number { max-width: 100%; }
  .result-actions { width: 100%; }
  .secondary-button, .official-button { flex: 1; }
  footer { flex-direction: column; }
}

@media (max-width: 390px) {
  .shell { width: min(100% - 18px, 560px); }
  h2 { font-size: 19px; }
  .carrier-option { padding: 10px 8px; }
  .carrier-mark { flex-basis: 30px; height: 30px; }
  .recommendation-grid { grid-template-columns: 1fr; }
}
