:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #253647;
  background: #f4f6f8;
  font-synthesis: none;
  --ink: #152b3c;
  --muted: #7b8795;
  --line: #e5e9ed;
  --accent: #e99a31;
  --green: #238365;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #f2b866;
  outline-offset: 3px;
}
input:focus,
select:focus {
  outline: 0;
  border-color: #d99b46;
  box-shadow: 0 0 0 3px #edb35e20;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 226px;
  flex-shrink: 0;
  background: var(--ink);
  color: #a9bac7;
  display: flex;
  flex-direction: column;
  padding: 35px 20px 25px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: 2px;
  margin: 0 8px 54px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #f2a83d;
  border-radius: 9px;
  width: 37px;
  height: 39px;
  color: #173043;
}
.brand-mark svg {
  width: 27px;
  height: 27px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.4px;
  color: #a8bac6;
  margin-top: 2px;
  font-weight: 500;
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6f8a9d;
  margin: 0 17px 13px;
}
.main-nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #a9bdcb;
  padding: 13px 16px;
  border-radius: 8px;
  font-weight: 550;
  text-align: left;
}
.nav-item svg {
  width: 19px;
  height: 19px;
}
.nav-item:hover {
  background: #ffffff08;
  color: #fff;
}
.nav-item.active {
  background: #ffffff10;
  color: #fff;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: 20px;
  height: 18px;
  width: 3px;
  border-radius: 2px;
  background: #efad4b;
}
.nav-arrow {
  margin-left: auto;
  color: #6b8599;
  font-size: 21px;
  line-height: 1;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 50px 15px 0;
}
.small-box {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #486171;
  border-radius: 8px;
  color: #d9a561;
  margin-bottom: 15px;
}
.sidebar-bottom strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #d0dce4;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #7d96a8;
  line-height: 1.9;
  margin-top: 8px;
}
.sidebar-footer {
  border-top: 1px solid #2b4151;
  padding-top: 22px;
  margin-top: 29px;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #5f7b8e;
}
.main-shell {
  margin-left: 226px;
  width: calc(100% - 226px);
}
.topbar {
  height: 71px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fff;
}
.breadcrumb {
  color: #87939f;
  font-size: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.breadcrumb span {
  color: #d2d9df;
}
.breadcrumb strong {
  font-weight: 500;
  color: #4e6170;
}
.connection {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #778892;
}
.status-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #2f9b78;
  box-shadow: 0 0 0 4px #2f9b7810;
}
.status-dot.loading {
  background: #d1a05e;
  box-shadow: 0 0 0 4px #d1a05e10;
}
.status-dot.error {
  background: #c35a52;
  box-shadow: 0 0 0 4px #c35a5210;
}
main {
  max-width: 1460px;
  padding: 36px 42px 22px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 29px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 2.5px;
  color: #94a1ab;
  margin-bottom: 9px;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.8px;
  color: #182e40;
  line-height: 1.35;
  margin: 0;
}
h2 {
  font-size: 15px;
  font-weight: 650;
  margin: 0;
  color: #263b4c;
}
h3 {
  font-size: 12px;
  font-weight: 650;
  margin: 0;
  color: #3d5161;
}
.page-heading p {
  color: #85929d;
  font-size: 12px;
  margin: 9px 0 0;
}
.coverage-badge {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #5a6a77;
  white-space: nowrap;
}
.coverage-badge > svg {
  width: 34px;
  height: 34px;
  stroke-width: 1;
  color: #8c9caa;
}
.coverage-badge strong {
  font-size: 21px;
  font-weight: 650;
  margin-right: 3px;
  color: #304759;
}
.coverage-caption {
  display: block;
  font-size: 10px;
  color: #98a3ac;
}
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(390px, 1.25fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}
.input-column {
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-width: 0;
}
.card {
  border: 1px solid #e3e8ec;
  border-radius: var(--radius);
  background: #fff;
  padding: 23px;
  box-shadow: 0 3px 8px #17314b02;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.section-number {
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #a1adb6;
  border: 1px solid #e7ebef;
  border-radius: 5px;
  padding: 2px 5px;
  line-height: 1.7;
}
.quiet-badge {
  display: inline-flex;
  background: #f5f7f9;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
  color: #84939f;
  font-weight: 450;
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: #768c9c;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.5;
}
.link-button:hover {
  color: #c58025;
}
.link-button svg {
  width: 15px;
  height: 15px;
}
.field-grid {
  display: grid;
  gap: 16px;
}
.two-columns {
  grid-template-columns: 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #647786;
  font-size: 11px;
  font-weight: 500;
}
.field input,
.field select,
.weight-input select,
.field-topline select {
  border: 1px solid #dfe5e9;
  background: #fff;
  border-radius: 7px;
  min-width: 0;
  padding: 10px 12px;
  height: 43px;
  color: #263c4c;
  font-size: 13px;
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder {
  color: #b4bdc6;
}
select {
  cursor: pointer;
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-with-addon {
  position: relative;
}
.input-with-addon input {
  padding-right: 49px;
}
.input-with-addon > span {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #97a5af;
  font-size: 11px;
  font-weight: 500;
}
.date-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 19px;
}
.date-row .field {
  width: calc(50% - 8px);
}
.date-row .field-hint {
  padding-top: 22px;
}
.field-hint {
  font-size: 10px;
  color: #9aa5ae;
  line-height: 1.8;
  margin: 7px 0 0;
}
.packaging-card .section-heading {
  margin-bottom: 15px;
}
.packaging-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f9fa;
  border: 1px solid #eef1f3;
  border-radius: 9px;
  padding: 14px 17px;
  margin-bottom: 21px;
  gap: 10px;
  min-height: 91px;
}
.packaging-intro p {
  font-size: 11px;
  color: #6d7f8c;
  font-weight: 550;
  margin: 0 0 5px;
}
.packaging-intro span {
  font-size: 10px;
  color: #9ba7af;
}
.box-illustration {
  width: 93px;
  height: 64px;
  color: #9aaebb;
  stroke-width: 1.1;
}
.box-fill {
  fill: #eef2f5;
}
.box-dash {
  stroke-dasharray: 3 3;
  stroke: #c3cdd4;
}
.field-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.field-label {
  font-size: 11px;
  color: #5f7280;
  font-weight: 500;
}
.field-topline select {
  width: 95px;
  height: 28px;
  font-size: 10px;
  padding: 3px 7px;
  border-color: #e7ebef;
  color: #778995;
  background: #fafbfc;
}
.dimension-fields {
  display: grid;
  grid-template-columns: 1fr 12px 1fr 12px 1fr;
  gap: 8px;
  align-items: end;
}
.dimension-fields .field {
  gap: 5px;
  color: #94a1ab;
  font-size: 10px;
}
.dimension-times {
  margin-bottom: 12px;
  color: #c2cbd2;
  font-size: 12px;
  text-align: center;
}
.weight-field {
  margin-top: 19px;
}
.weight-input {
  display: flex;
}
.weight-input input {
  border-radius: 7px 0 0 7px;
  border-right: 0;
}
.weight-input select {
  width: 107px;
  border-radius: 0 7px 7px 0;
  background: #fbfcfd;
  color: #81919d;
  font-size: 11px;
}
.example-note {
  font-size: 10px;
  color: #c3985b;
  margin-top: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.example-note span {
  width: 4px;
  height: 4px;
  background: #d6ac72;
  border-radius: 50%;
}
.options-card {
  padding: 16px 22px;
}
.options-card summary {
  font-size: 11px;
  color: #667b8b;
  font-weight: 550;
  cursor: pointer;
}
.options-card summary span {
  font-weight: 400;
  font-size: 10px;
  color: #a2adb5;
  float: right;
}
.options-content {
  padding-top: 17px;
}
.check-field {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #728695;
  margin-top: 15px;
}
.check-field input {
  accent-color: #294e65;
  width: 14px;
  height: 14px;
}
.primary-button {
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #eaa13f;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 0 4px 8px #d8902820;
  transition: background 0.15s;
}
.primary-button:hover:not(:disabled) {
  background: #d89234;
}
.primary-button svg {
  width: 17px;
  height: 17px;
}
.primary-button.busy svg {
  animation: pulse 1s ease-in-out infinite;
}
.submission-note {
  text-align: center;
  color: #9da8b0;
  font-size: 10px;
  margin: -8px 0 0;
}
.result-column {
  min-width: 0;
  position: sticky;
  top: 23px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.result-card {
  padding: 0;
  overflow: hidden;
}
.fee-hero {
  background: #183449;
  color: #d2dfe8;
  padding: 25px 26px 23px;
  position: relative;
}
.fee-hero:after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid #ffffff09;
  border-radius: 22px;
  transform: rotate(25deg);
  right: -44px;
  bottom: -60px;
  pointer-events: none;
}
.fee-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #aabfce;
}
.result-market {
  border: 1px solid #476174;
  font-size: 10px;
  border-radius: 5px;
  padding: 3px 7px;
  color: #d2dfe8;
}
.fee-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  font-variant-numeric: tabular-nums;
}
.fee-amount > span:first-child {
  font-size: 17px;
  font-weight: 500;
  color: #afc3d2;
}
.fee-amount strong {
  font-size: 58px;
  line-height: 1.1;
  color: #fff;
  font-weight: 500;
  letter-spacing: -2px;
}
.fee-amount .per-unit {
  font-size: 11px;
  color: #92acbd;
  margin-left: 1px;
}
.fee-hero > p {
  font-size: 10px;
  color: #8eabbd;
  margin: 10px 0 15px;
}
.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  background: #ffffff0d;
  border: 1px solid #486074;
  color: #bed0dd;
  padding: 3px 7px;
  border-radius: 4px;
}
.fee-breakdown {
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px dashed #e3e9ee;
}
.fee-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #82919d;
  gap: 10px;
}
.fee-breakdown strong {
  font-size: 12px;
  font-weight: 550;
  color: #3a5161;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fee-breakdown .discount-value {
  color: #35886c;
}
.fee-breakdown small {
  font-size: 9px;
  color: #a0acb6;
}
.result-dimensions {
  padding: 20px 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 14px;
}
.result-dimensions > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-dimensions span {
  font-size: 10px;
  color: #9aa6af;
}
.result-dimensions strong {
  font-size: 12px;
  font-weight: 550;
  color: #506879;
  overflow-wrap: anywhere;
}
.result-actions {
  border-top: 1px solid #eff2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 25px;
  background: #fbfcfd;
  gap: 8px;
}
.result-actions button {
  background: none;
  border: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #6d8191;
  font-size: 10px;
  padding: 0;
}
.result-actions svg {
  width: 13px;
  height: 13px;
}
.result-actions > span {
  color: #abb5bd;
  font-size: 9px;
}
.notice-stack {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.notice {
  padding: 12px 14px;
  background: #f7f8fa;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  color: #8b97a1;
  font-size: 10px;
  line-height: 1.8;
}
.notice.warning {
  background: #fff9ef;
  border-color: #f0dfc5;
  color: #9b7c4e;
}
.notice strong {
  font-weight: 600;
  color: inherit;
  display: block;
  margin-bottom: 3px;
}
.source-card {
  margin-top: 15px;
  padding: 17px 20px;
}
.source-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.source-card h3 span {
  font-size: 9px;
  color: #9eabb5;
  font-weight: 400;
}
.source-card ul,
.source-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.source-card li,
.source-list li {
  font-size: 10px;
  line-height: 1.9;
  margin: 5px 0;
}
.source-card a,
.source-list a {
  color: #768d9e;
  word-break: break-word;
}
.source-card a:hover,
.source-list a:hover {
  color: #c58b3c;
}
.source-card a:after,
.source-list a:after {
  content: " ↗";
  color: #b3bfc8;
}
.scope-note {
  display: flex;
  gap: 10px;
  padding: 1px 3px;
  color: #9ba7b1;
}
.scope-note svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
  margin-top: 3px;
}
.scope-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.9;
}
.result-placeholder {
  text-align: center;
  padding: 58px 25px 32px;
  min-height: 362px;
}
.placeholder-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  width: 61px;
  height: 61px;
  border: 1px solid #e7edf1;
  border-radius: 17px;
  background: #fafbfc;
  color: #a8bac8;
}
.placeholder-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.15;
}
.result-placeholder h2 {
  font-size: 15px;
  color: #7d919e;
  font-weight: 500;
}
.result-placeholder p {
  font-size: 11px;
  color: #a4afb8;
  line-height: 2;
  margin-top: 10px;
}
.placeholder-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: 9px;
  color: #a7b3bd;
  border-top: 1px solid #f0f3f5;
  padding-top: 24px;
  margin-top: 33px;
}
.quote-result {
  background: #fffdf8;
  padding: 30px 26px;
}
.quote-icon {
  width: 42px;
  height: 42px;
  background: #faf0d9;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #bd9859;
  margin-bottom: 21px;
}
.quote-result .quiet-badge {
  background: #faf1dd;
  color: #b49360;
}
.quote-result h2 {
  margin-top: 12px;
  font-size: 21px;
  color: #8b6b3a;
  font-weight: 550;
}
.quote-result p {
  font-size: 12px;
  color: #a08a66;
  line-height: 1.9;
  margin: 13px 0 22px;
}
.form-error {
  border: 1px solid #e8d3d1;
  background: #fff8f7;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 11px;
  color: #ac625d;
}
.page-footer {
  margin-top: 36px;
  padding-top: 17px;
  border-top: 1px solid #e4e9ed;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #a6b0b8;
  font-size: 9px;
}
.compare-selector-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 12px;
}
.compare-selector-heading p {
  font-size: 11px;
  color: #8d9ba5;
  margin: 0;
}
.market-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.market-price {
  display: grid;
  grid-template-columns: 18px 1fr 71px;
  gap: 5px;
  align-items: center;
  padding: 8px 9px;
  background: #f9fafb;
  border: 1px solid #ebeff2;
  border-radius: 6px;
}
.market-price:has(input:checked) {
  border-color: #d6e1e8;
  background: #f6f9fb;
}
.market-price > input {
  accent-color: #32556d;
  width: 13px;
  height: 13px;
  margin: 0;
}
.market-price label {
  font-size: 10px;
  white-space: nowrap;
  color: #758996;
}
.market-price label small {
  font-size: 8px;
  color: #abb6be;
  display: block;
  line-height: 1.4;
}
.market-price input[type="number"] {
  border: 1px solid #e1e7ec;
  background: #fff;
  border-radius: 4px;
  width: 100%;
  min-width: 0;
  padding: 5px 7px;
  font-size: 11px;
  height: 31px;
  text-align: right;
  color: #4b6678;
}
.market-price input:disabled {
  background: #f4f6f8;
  opacity: 0.5;
}
.compare-result {
  padding: 21px 20px;
}
.compare-result .section-heading {
  margin-bottom: 10px;
}
.table-scroll {
  overflow: auto;
  margin-top: 17px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
}
th {
  text-align: left;
  color: #a0adb7;
  font-weight: 500;
  border-bottom: 1px solid #e6ecf0;
  padding: 9px 6px;
  white-space: nowrap;
}
td {
  border-bottom: 1px solid #edf1f4;
  padding: 12px 6px;
  color: #728693;
  white-space: nowrap;
}
td small {
  display: block;
  font-size: 8px;
  color: #a7b2bb;
}
td:nth-child(3) {
  color: #27475c;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.comparison-row {
  cursor: pointer;
}
.comparison-row:hover,
.comparison-row.selected {
  background: #f7fafc;
}
td.quote-cell {
  color: #b19364;
  font-size: 10px;
  font-weight: 500;
}
.compare-detail {
  padding: 14px;
  margin-top: 13px;
  background: #f7f9fb;
  border: 1px solid #e5ecf1;
  border-radius: 8px;
  font-size: 11px;
  color: #708695;
  line-height: 1.9;
}
.compare-detail strong {
  display: block;
  font-weight: 600;
  color: #39566a;
  margin-bottom: 5px;
}
.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
}
.api-intro {
  font-size: 12px;
  color: #8a9aa7;
}
.endpoint {
  display: flex;
  gap: 11px;
  align-items: center;
  background: #f6f9fa;
  border: 1px solid #e3eaee;
  padding: 12px 14px;
  border-radius: 7px;
  margin: 20px 0 12px;
  overflow: auto;
}
.endpoint > span {
  color: #2b9072;
  font-size: 10px;
  font-weight: 650;
}
.endpoint code {
  font-size: 11px;
  color: #506f84;
}
pre {
  margin: 0 0 20px;
  background: #172f40;
  color: #b6ccdb;
  border-radius: 9px;
  padding: 20px;
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow: auto;
}
.api-endpoints {
  display: grid;
  gap: 0;
}
.api-endpoints > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 5px 10px;
  border-bottom: 1px solid #edf1f4;
  padding: 13px 0;
  align-items: center;
}
.api-endpoints span {
  font-size: 9px;
  font-weight: 650;
  color: #61859c;
}
.api-endpoints code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.api-endpoints small {
  grid-column: 2;
  font-size: 9px;
  color: #a3afb8;
}
.api-rules h2 {
  margin-bottom: 18px;
}
#supported-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#supported-markets span {
  padding: 5px 8px;
  font-size: 10px;
  border: 1px solid #e4e9ed;
  background: #fafbfc;
  border-radius: 5px;
  color: #8c9ba6;
}
.api-rule-note {
  border-top: 1px solid #edf1f4;
  margin-top: 23px;
  padding-top: 21px;
}
.api-rule-note h3 {
  margin: 0 0 7px;
}
.api-rule-note p {
  font-size: 11px;
  line-height: 1.9;
  color: #98a5af;
  margin: 0 0 23px;
}
.api-rule-note dl {
  font-size: 10px;
  border-top: 1px solid #edf1f4;
  padding-top: 10px;
}
.api-rule-note dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.api-rule-note dt {
  color: #a5b0b9;
}
.api-rule-note dd {
  color: #7a91a1;
  margin: 0;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: #173246;
  color: #fff;
  border-radius: 8px;
  padding: 11px 20px;
  box-shadow: 0 5px 30px #0002;
  font-size: 12px;
}
.noscript-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: #fff4dc;
  color: #775a2a;
  padding: 15px;
  z-index: 100;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
    transform: translateX(3px);
  }
}
@media (min-width: 1550px) {
  .calculator-layout {
    grid-template-columns: minmax(430px, 1.2fr) minmax(370px, 1fr);
    gap: 30px;
  }
  .card {
    padding: 28px;
  }
  .result-card {
    padding: 0;
  }
  .fee-hero {
    padding: 30px;
  }
  .fee-amount strong {
    font-size: 65px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 196px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
    margin-left: 6px;
  }
  .brand-mark {
    width: 32px;
    height: 35px;
  }
  .nav-item.active:before {
    left: 15px;
  }
  .main-shell {
    margin-left: 196px;
    width: calc(100% - 196px);
  }
  main {
    padding: 30px 25px 20px;
  }
  .topbar {
    padding: 0 25px;
  }
  .calculator-layout {
    grid-template-columns: minmax(345px, 1.2fr) minmax(285px, 1fr);
    gap: 17px;
  }
  .card {
    padding: 19px;
  }
  .result-card {
    padding: 0;
  }
  .fee-amount strong {
    font-size: 51px;
  }
  .fee-hero {
    padding: 22px;
  }
  .market-price {
    grid-template-columns: 16px 1fr 57px;
    padding: 6px;
  }
  .quiet-badge {
    font-size: 8px;
  }
}
@media (max-width: 940px) {
  .sidebar {
    width: 76px;
    padding: 25px 12px;
  }
  .brand {
    margin: 0 auto 45px;
  }
  .brand > span:last-child,
  .sidebar-label,
  .sidebar-bottom,
  .nav-arrow {
    display: none;
  }
  .brand-mark {
    width: 39px;
    height: 40px;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 14px;
  }
  .nav-item svg {
    width: 22px;
    height: 22px;
  }
  .nav-item.active:before {
    left: 12px;
  }
  .main-shell {
    margin-left: 76px;
    width: calc(100% - 76px);
  }
  .calculator-layout {
    grid-template-columns: minmax(330px, 1.15fr) minmax(270px, 1fr);
  }
  .coverage-badge {
    display: none;
  }
  .api-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 730px) {
  .sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 18px;
    gap: 15px;
  }
  .brand {
    margin: 0;
  }
  .brand > span:last-child {
    display: block;
    font-size: 14px;
    letter-spacing: 1.5px;
  }
  .brand small {
    font-size: 6px;
  }
  .brand-mark {
    width: 30px;
    height: 33px;
  }
  .brand-mark svg {
    width: 24px;
    height: 24px;
  }
  .main-nav {
    display: flex;
    gap: 5px;
  }
  .nav-item {
    padding: 10px;
    border-radius: 7px;
  }
  .nav-item.active:before {
    display: none;
  }
  .nav-item svg {
    width: 19px;
    height: 19px;
  }
  .app-shell {
    display: block;
  }
  .main-shell {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 49px;
    padding: 0 20px;
  }
  .breadcrumb,
  .connection {
    font-size: 10px;
  }
  main {
    padding: 25px 18px 18px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .card {
    padding: 22px;
  }
  .result-column {
    position: static;
  }
  .result-card {
    padding: 0;
  }
  .fee-amount strong {
    font-size: 58px;
  }
  .result-placeholder {
    min-height: 270px;
    padding: 36px 20px 25px;
  }
  .placeholder-points {
    margin-top: 23px;
    padding-top: 18px;
  }
  .result-hero {
    padding: 25px;
  }
  .page-footer {
    font-size: 8px;
    gap: 10px;
    margin-top: 28px;
  }
  .market-price {
    grid-template-columns: 16px 1fr 80px;
    padding: 8px;
  }
  .market-price-grid {
    gap: 8px;
  }
  .api-endpoints code {
    font-size: 10px;
  }
  .options-card {
    padding: 17px 22px;
  }
  .date-row {
    gap: 13px;
  }
  .date-row .field-hint {
    font-size: 9px;
  }
}
@media (max-width: 380px) {
  .brand > span:last-child {
    display: none;
  }
  .quiet-badge {
    font-size: 7px;
    padding: 3px 4px;
  }
  .card {
    padding: 18px;
  }
  .result-card {
    padding: 0;
  }
  .market-price {
    grid-template-columns: 15px 1fr 60px;
  }
  .page-footer {
    flex-direction: column;
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep the main calculation action visible on common desktop screens. */
@media (min-width: 731px) {
  main {
    padding-top: 26px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .input-column {
    gap: 13px;
  }
  .input-column .card {
    padding: 19px 22px;
  }
  .input-column .section-heading {
    margin-bottom: 16px;
  }
  .date-row {
    margin-top: 14px;
  }
  .packaging-intro {
    min-height: 65px;
    padding: 9px 14px;
    margin-bottom: 15px;
  }
  .box-illustration {
    width: 75px;
    height: 50px;
  }
  .weight-field {
    margin-top: 14px;
  }
  .example-note {
    margin-top: 9px;
  }
  .input-column .field input,
  .input-column .field select,
  .weight-input select {
    height: 40px;
  }
  .input-column .options-card {
    padding: 16px 22px;
  }
}
