:root {
  --ink: #123b4b;
  --ink-2: #22566a;
  --muted: #708b96;
  --line: #dbe9ee;
  --paper: #f3f9fb;
  --white: #ffffff;
  --acid: #9edbea;
  --acid-2: #82cadc;
  --mint: #e6f5f9;
  --orange: #43a0bc;
  --danger: #dc4d42;
  --shadow: 0 16px 50px rgba(31, 91, 111, 0.09);
  --radius: 20px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(111, 193, 217, 0.17), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }

svg {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-screen {
  min-height: 100vh;
  padding: 32px 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(158, 219, 234, .55), transparent 30rem),
    radial-gradient(circle at 82% 85%, rgba(102, 177, 200, .22), transparent 26rem),
    linear-gradient(145deg, #f5fbfd, #e8f4f8);
}

.login-card {
  width: min(430px, 100%);
  padding: 34px 38px 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(65, 137, 160, .17);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 70px rgba(31, 92, 112, .14);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #9edbea, #4d9fba);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.login-brand .brand-mark { width: 33px; height: 33px; border-radius: 10px; }
.login-brand .brand-mark svg { width: 22px; height: 22px; }
.login-brand > span:last-child span { color: #3d92ad; }

.welcome-icon {
  width: 48px;
  height: 48px;
  margin-top: 35px;
  display: grid;
  place-items: center;
  color: #347f98;
  border-radius: 14px;
  background: #e3f4f8;
}

.welcome-icon svg { width: 25px; height: 25px; }
.login-eyebrow { margin-top: 22px; display: block; color: #4a94ab; font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.login-card h1 { margin: 7px 0 0; font-size: 30px; letter-spacing: -.045em; }
.login-card > p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-form { margin-top: 25px; display: grid; gap: 15px; }
.login-form label > span { margin-bottom: 7px; display: block; color: #496d7b; font-size: 9px; font-weight: 750; }
.login-input { height: 48px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; transition: .16s ease; }
.login-input:focus-within { border-color: #5ea4bb; box-shadow: 0 0 0 3px rgba(94, 164, 187, .11); }
.login-input > svg { width: 17px; height: 17px; margin-left: 13px; flex: 0 0 auto; color: #73a3b3; }
.login-input input { width: 100%; height: 100%; min-width: 0; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 11px; font-weight: 650; }
.login-input input::placeholder { color: #a5b8bf; font-weight: 500; }
.login-input button { width: 43px; height: 100%; display: grid; place-items: center; flex: 0 0 auto; color: #789aa6; border: 0; background: transparent; }
.login-input button:hover { color: var(--ink); }
.login-input button svg { width: 17px; height: 17px; }
.login-error { margin: -3px 0 0 !important; padding: 9px 11px; color: #a84038 !important; border-radius: 9px; background: #fff0ee; font-size: 9px !important; font-weight: 650; }
.login-submit { height: 48px; margin-top: 2px; padding: 0 17px; display: flex; align-items: center; justify-content: center; gap: 9px; color: white; border: 0; border-radius: 12px; background: linear-gradient(135deg, #347f98, #246278); font-size: 11px; font-weight: 750; box-shadow: 0 8px 18px rgba(36, 98, 120, .18); }
.login-submit:hover { background: linear-gradient(135deg, #3b8ba5, #286b82); }
.login-submit svg { width: 17px; height: 17px; }
.login-footnote { margin-top: 21px !important; display: flex; align-items: center; justify-content: center; gap: 7px; color: #8aa0a8 !important; font-size: 8px !important; }
.login-footnote i { width: 6px; height: 6px; border-radius: 50%; background: #55a4bd; box-shadow: 0 0 0 3px rgba(85, 164, 189, .12); }

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(38, 104, 126, 0.1);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
}

.header-inner, .page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand > span:last-child span { color: #3d92ad; }

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 11px;
  background: var(--acid);
}

.brand-mark svg { width: 25px; height: 25px; stroke-width: 2; }
.brand-mark.mini { width: 34px; height: 34px; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.live-status i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #47a4bf;
  box-shadow: 0 0 0 4px rgba(71, 164, 191, 0.13);
}

.icon-button, .text-button, .dialog-close {
  border: 0;
  background: transparent;
}

.icon-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.icon-button:hover { border-color: #a9c3cd; }
.icon-button svg { width: 17px; height: 17px; }
.logout-button { color: #557681; background: #f8fbfc; }

.page-shell { padding: 34px 0 30px; }

.section-kicker {
  color: #4a8da4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(340px, .88fr);
  align-items: start;
  gap: 22px;
}

.form-card, .summary-card {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card {
  border: 1px solid rgba(38, 104, 126, 0.1);
  background: var(--white);
}

.card-heading {
  padding: 26px 28px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.card-heading h2, .admin-header h2 {
  margin: 5px 0 0;
  font-size: 21px;
  letter-spacing: -.03em;
}

.text-button {
  padding: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.text-button:hover { color: var(--ink); }
.text-button svg { width: 15px; height: 15px; }

.form-section {
  padding: 25px 28px 28px;
  border-top: 1px solid var(--line);
}

.form-section.first-section { border-top: 0; }
.form-section.compact-section { padding-top: 20px; padding-bottom: 20px; background: #fbfcfb; }

.step-title {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-title > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #367e96;
  border-radius: 9px;
  background: var(--mint);
  font-size: 10px;
  font-weight: 850;
}

.step-title h3 { margin: 0; font-size: 15px; letter-spacing: -.015em; }
.step-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

.auction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.auction-option {
  position: relative;
  min-height: 74px;
  padding: 12px 12px 12px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: .18s ease;
}

.auction-option:hover { border-color: #a8c6d1; transform: translateY(-1px); }
.auction-option.active { border-color: #55a0b9; background: #f1fbfe; box-shadow: 0 0 0 3px rgba(111, 193, 217, .18); }

.auction-option .auction-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.auction-option strong { display: block; font-size: 13px; }
.auction-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.auction-option .check-dot { position: absolute; top: 8px; right: 8px; width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid #bdc9c4; border-radius: 50%; color: transparent; }
.auction-option.active .check-dot { color: var(--ink); border-color: var(--acid-2); background: var(--acid); }
.auction-option .check-dot svg { width: 10px; height: 10px; stroke-width: 2.5; }

.field-grid { display: grid; gap: 12px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.three-columns { grid-template-columns: .8fr .9fr 1fr; }

.field { min-width: 0; display: block; }
.field > span { margin-bottom: 7px; display: block; color: #476b79; font-size: 10px; font-weight: 750; }
.field > span small { color: var(--muted); font-weight: 500; }

.field select, .field > input, .admin-field input, .admin-field select, .admin-field textarea, .small-money-input {
  width: 100%;
  height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  transition: .15s ease;
}

.field > input { padding: 0 13px; }
.field select:focus, .field > input:focus, .admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { border-color: #68a9bd; box-shadow: 0 0 0 3px rgba(91, 165, 188, .11); }

.select-wrap { position: relative; }
.select-wrap select { padding: 0 38px 0 13px; appearance: none; }
.select-wrap > svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }

.route-price-card {
  margin-top: 11px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d3eaf1;
  border-radius: 12px;
  background: #f3fbfd;
}

.route-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #397f97; border-radius: 9px; background: #dff2f7; }
.route-icon svg { width: 18px; height: 18px; }
.route-price-card div { display: flex; flex-direction: column; gap: 3px; }
.route-price-card small { color: var(--muted); font-size: 9px; }
.route-price-card strong { font-size: 14px; }
.auto-badge { margin-left: auto; padding: 5px 8px; color: #397f97; border-radius: 999px; background: #dff2f7; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.port-choice { margin-top: 11px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 11px; }
.port-choice > span { color: #476b79; font-size: 9px; font-weight: 750; }
.port-choice > div { padding: 3px; display: flex; gap: 2px; border-radius: 9px; background: #edf1ef; }
.port-choice button { min-width: 59px; height: 28px; padding: 0 10px; color: var(--muted); border: 0; border-radius: 7px; background: transparent; font-size: 9px; font-weight: 700; }
.port-choice button.active { color: var(--ink); background: white; box-shadow: 0 2px 6px rgba(15, 38, 30, .08); }
.port-choice > small { justify-self: end; color: var(--muted); font-size: 8px; }
.port-choice > small strong { color: var(--ink); }

.bid-field > span { margin-bottom: 9px; }
.money-input { height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; border: 1.5px solid #b9ced6; border-radius: 13px; background: #fff; transition: .15s; }
.money-input:focus-within { border-color: #5da2b8; box-shadow: 0 0 0 3px rgba(93, 162, 184, .11); }
.money-input > span { padding-left: 16px; color: #4389a1; font-size: 24px; font-weight: 700; }
.money-input input { min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); font-size: 26px; font-weight: 780; letter-spacing: -.03em; }
.money-input small { padding-right: 16px; color: var(--muted); font-size: 10px; font-weight: 750; }
.money-input input::-webkit-outer-spin-button, .money-input input::-webkit-inner-spin-button, .field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.instant-fee { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.instant-fee span { display: inline-flex; align-items: center; gap: 6px; }
.instant-fee svg { width: 13px; height: 13px; }
.instant-fee strong { color: var(--ink); font-size: 11px; }

.customs-toggle { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; cursor: pointer; }
.customs-toggle-icon { width: 37px; height: 37px; display: grid; place-items: center; color: #3f8299; border-radius: 10px; background: #e0f2f7; }
.customs-toggle-icon svg { width: 19px; height: 19px; }
.customs-toggle strong, .customs-toggle small { display: block; }
.customs-toggle strong { font-size: 12px; }
.customs-toggle small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.customs-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.customs-toggle > i { width: 38px; height: 22px; position: relative; border-radius: 999px; background: #c9d1ce; transition: .2s; }
.customs-toggle > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: .2s; }
.customs-toggle input:checked + i { background: #55a4bd; }
.customs-toggle input:checked + i::after { transform: translateX(16px); }

.customs-fields { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.customs-action-row { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.small-money-input { display: flex; align-items: center; }
.small-money-input span { padding-left: 12px; color: #71857e; }
.small-money-input input { width: 100%; height: 100%; padding: 0 12px 0 7px; border: 0; outline: 0; background: transparent; font-weight: 700; }
.secondary-button, .admin-secondary, .admin-primary, .primary-button, .share-button {
  border: 0;
  border-radius: 11px;
  font-weight: 750;
}
.secondary-button { height: 44px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); border: 1px solid var(--line); background: white; font-size: 11px; }
.secondary-button:hover { border-color: #9ead9f; }
.secondary-button svg { width: 16px; height: 16px; }
.api-note { margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.api-note a { color: #347d96; font-weight: 700; }

.summary-card {
  position: sticky;
  top: 18px;
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(190, 232, 243, .16), transparent 13rem),
    linear-gradient(155deg, #347b92, #245d72);
}

.summary-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--acid); }
.summary-top { padding: 25px 25px 15px; display: flex; align-items: center; justify-content: space-between; }
.section-kicker.light { color: #a9bea9; }
.summary-auction { display: flex; align-items: center; gap: 8px; }
.summary-auction > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #1656a0; font-size: 12px; font-weight: 900; }
.summary-auction small, .summary-auction strong { display: block; }
.summary-auction small { color: #b6d2dc; font-size: 8px; }
.summary-auction strong { margin-top: 2px; font-size: 11px; }

.total-block { padding: 19px 25px 23px; border-bottom: 1px solid rgba(255,255,255,.1); }
.total-block > span { color: #c4dae2; font-size: 10px; font-weight: 650; }
.total-block > div { margin-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.total-block div small { color: var(--acid); font-size: 17px; font-weight: 750; }
.total-block div strong { font-size: clamp(31px, 3vw, 38px); line-height: 1; letter-spacing: -.05em; }
.total-block div em { margin-left: 5px; color: #b3ced8; font-size: 9px; font-style: normal; font-weight: 750; }
.total-block p { margin: 12px 0 0; color: #d8f2f8; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }

.route-line { padding: 20px 25px 15px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.route-line > div { position: relative; display: flex; align-items: flex-start; gap: 7px; }
.route-line > div:not(:last-child)::after { content: ""; position: absolute; top: 4px; left: 9px; width: calc(100% - 14px); height: 1px; background: rgba(190,232,243,.45); }
.route-line i { width: 9px; height: 9px; position: relative; z-index: 1; flex: 0 0 auto; border: 2px solid var(--acid); border-radius: 50%; background: #28657a; }
.route-line > div:last-child i { background: var(--acid); }
.route-line small, .route-line strong { max-width: 80px; display: block; }
.route-line small { color: #b2ced8; font-size: 7px; }
.route-line strong { margin-top: 4px; overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }

.cost-breakdown { position: relative; padding: 14px 25px 6px; }
.cost-breakdown h3 { margin: 0 0 11px; color: #c4dae2; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.cost-row { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.065); font-size: 10px; }
.cost-row span { color: #c0d6de; }
.cost-row strong { color: #f6faf8; font-size: 10px; }
.cost-row button { width: 15px; height: 15px; margin-left: 3px; padding: 0; color: #a6b8b1; border: 1px solid #536b62; border-radius: 50%; background: transparent; font-size: 8px; }
.customs-cost-row strong { color: var(--acid); }
.fee-popover { margin: 1px 0 8px; padding: 9px 10px; border-radius: 8px; background: rgba(255,255,255,.09); color: #d0e1e7; font-size: 8px; line-height: 1.6; }
.fee-popover div { display: flex; justify-content: space-between; gap: 10px; }

.summary-actions { padding: 18px 25px 9px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.primary-button { height: 45px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--acid); }
.primary-button:hover { background: var(--acid-2); }
.primary-button svg, .share-button svg { width: 17px; height: 17px; }
.share-button { width: 45px; height: 45px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.share-button:hover { background: rgba(255,255,255,.12); }
.summary-disclaimer { margin: 0; padding: 3px 25px 22px; color: #a9c8d3; font-size: 7px; line-height: 1.5; text-align: center; }

.trust-row { padding: 23px 6px 0; display: flex; align-items: center; justify-content: center; gap: 38px; color: var(--muted); font-size: 9px; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 13px; height: 13px; color: #4695ae; }

.admin-section { max-width: 760px; }
.admin-section + .admin-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.admin-section-title { margin-bottom: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.admin-section-title h3 { margin: 0; font-size: 14px; }
.admin-section-title p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.admin-field { display: block; }
.admin-field > span { margin-bottom: 7px; display: block; color: #496d7b; font-size: 9px; font-weight: 750; }
.admin-field input, .admin-field select { padding: 0 12px; font-size: 11px; }
.admin-field textarea { min-height: 85px; height: auto; padding: 11px 12px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.admin-help { margin-top: 8px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.admin-actions { margin-top: 18px; display: flex; align-items: center; gap: 9px; }
.admin-primary, .admin-secondary { min-height: 39px; padding: 0 15px; font-size: 10px; }
.admin-primary { background: var(--ink); color: white; }
.admin-primary:hover { background: var(--ink-2); }
.admin-secondary { border: 1px solid var(--line); background: white; }
.admin-secondary:hover { border-color: #a8b7b0; }
.admin-secondary.danger { color: var(--danger); }
.admin-select-row { margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.admin-select-row .admin-field { width: 220px; }
.data-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.admin-table th { padding: 10px 9px; color: var(--muted); background: #f5f8f5; text-align: left; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.admin-table td { padding: 7px 6px; border-top: 1px solid var(--line); }
.admin-table input { width: 100%; min-width: 70px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; outline: 0; background: transparent; font-size: 9px; }
.admin-table input:focus { border-color: #9bc4d2; background: #fff; }
.admin-table .delete-row { width: 29px; height: 29px; display: grid; place-items: center; color: #b55c54; border: 0; border-radius: 7px; background: transparent; }
.admin-table .delete-row:hover { background: #fff0ee; }
.admin-table .delete-row svg { width: 14px; height: 14px; }
.empty-table { padding: 30px; color: var(--muted); text-align: center; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.source-card { padding: 13px; display: flex; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.source-card + .source-card { margin-top: 9px; }
.source-card i { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #3e839a; border-radius: 8px; background: #e1f2f7; font-style: normal; font-size: 10px; font-weight: 800; }
.source-card strong { display: block; font-size: 10px; }
.source-card p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.source-card a { color: #387f96; }

.toast { position: fixed; left: 50%; bottom: 25px; z-index: 100; padding: 11px 16px; color: white; border-radius: 10px; background: var(--ink); box-shadow: 0 10px 35px rgba(0,0,0,.18); font-size: 10px; font-weight: 650; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .summary-card { position: relative; top: 0; }
  .admin-shell { grid-template-columns: 180px 1fr; }
  .trust-row { flex-wrap: wrap; }
}

@media (max-width: 650px) {
  .header-inner, .page-shell { width: min(100% - 24px, 1180px); }
  .header-inner { height: 64px; }
  .login-card { padding: 29px 23px 26px; }
  .live-status { display: none; }
  .icon-button { width: 40px; padding: 0; justify-content: center; }
  .icon-button span { display: none; }
  .page-shell { padding-top: 24px; }
  .card-heading, .form-section { padding-left: 18px; padding-right: 18px; }
  .auction-grid { grid-template-columns: 1fr; }
  .auction-option { min-height: 64px; }
  .two-columns, .three-columns, .customs-action-row { grid-template-columns: 1fr; }
  .port-choice { grid-template-columns: 1fr auto; }
  .port-choice > small { grid-column: 1 / -1; justify-self: start; }
  .trust-row { gap: 13px 22px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-select-row { align-items: stretch; flex-direction: column; }
  .admin-select-row .admin-field { width: 100%; }
}
