:root {
  color-scheme: light;
  --ink: #142219;
  --muted: #6d786f;
  --paper: #f4f2ea;
  --card: #fffef9;
  --forest: #173d2b;
  --lime: #d9f77e;
  --sand: #f3dfae;
  --pale: #dce9df;
  --coral: #ffd4c8;
  --line: rgba(20, 34, 25, 0.12);
  --shadow: 0 12px 34px rgba(29, 48, 36, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { color: inherit; }

.shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; padding: 24px 18px 112px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.language-picker select { height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 800; box-shadow: 0 6px 18px rgba(29,48,36,.06); }
.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; }
.eyebrow { margin: 0 0 4px; color: #728078; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 8vw, 48px); font-weight: 500; letter-spacing: -.04em; }
.refresh { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font-size: 22px; box-shadow: 0 6px 18px rgba(29,48,36,.06); }
.refresh.loading { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.view { display: none; }
.view.active { display: block; animation: reveal .2s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }

.hero-card { display: flex; justify-content: space-between; align-items: flex-end; min-height: 174px; padding: 24px; border-radius: 28px; background: var(--forest); color: white; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; top: -72px; border: 38px solid rgba(217,247,126,.18); border-radius: 50%; }
.hero-label { margin: 0 0 10px; color: #c9d5cd; font-size: 14px; }
.hero-value { font: 500 66px/1 Georgia, serif; letter-spacing: -.06em; }
.hero-unit { margin-left: 7px; color: #c9d5cd; }
.hero-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--lime); color: var(--forest); font-size: 25px; z-index: 1; }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 30px; }
.metric-card { min-height: 145px; padding: 18px; border-radius: 22px; display: flex; flex-direction: column; }
.metric-card span { font-size: 13px; font-weight: 700; }
.metric-card strong { margin-top: auto; font: 500 42px/1 Georgia, serif; }
.metric-card small { margin-top: 8px; color: rgba(20,34,25,.62); line-height: 1.25; }
.lime { background: var(--lime); } .sand { background: var(--sand); } .pale { background: var(--pale); } .coral { background: var(--coral); }

.section-heading, .form-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading button, .form-heading button { border: 0; background: transparent; color: #366048; font-weight: 700; }
.shipment-list { display: grid; gap: 10px; }
.shipment-list.roomy { margin-top: 16px; }
.shipment-card { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 15px; background: var(--card); border: 1px solid rgba(20,34,25,.07); border-radius: 18px; box-shadow: 0 6px 20px rgba(29,48,36,.05); }
.carrier-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #e8eee8; color: var(--forest); font-size: 11px; font-weight: 900; text-transform: uppercase; overflow: hidden; }
.shipment-main strong, .shipment-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shipment-main strong { font-size: 14px; }
.shipment-main span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.status { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status.delivered { background: #dff3df; color: #275c31; }
.status.transit { background: #fff0bd; color: #725b12; }
.status.attention { background: #ffe1da; color: #8b3c2d; }
.status.preparing { background: #e9ebef; color: #59606d; }
.empty-state { padding: 30px 18px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }

.search-field { display: flex; align-items: center; gap: 9px; padding: 13px 15px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filter-row { display: flex; gap: 8px; margin: 14px 0; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 12px; }
.chip.active { background: var(--forest); border-color: var(--forest); color: white; }

.notice { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; padding: 15px 17px; border-radius: 16px; background: var(--lime); }
.notice strong { font-size: 14px; }.notice span { font-size: 12px; color: #50613f; }
.price-form { padding: 18px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.price-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 750; }
.price-form select, .price-form input { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); outline: none; }
.price-form select:focus, .price-form input:focus { border-color: #52735d; box-shadow: 0 0 0 3px rgba(82,115,93,.12); }
.form-heading { margin-top: 21px; font-size: 14px; font-weight: 800; }
.cargo-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; }
.cargo-item .wide { grid-column: 1 / -1; }
.item-number { grid-column: 1 / -1; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.remove-item { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; color: #a24f40; font-size: 18px; }
.primary-button { width: 100%; margin-top: 16px; padding: 15px; border: 0; border-radius: 14px; background: var(--forest); color: white; font-weight: 800; }
.primary-button:disabled { opacity: .6; }
.quote-panel { margin-top: 14px; padding: 18px; border-radius: 20px; background: var(--forest); color: white; }
.quote-panel h3 { margin: 0 0 4px; }.quote-panel > p { margin: 0 0 14px; color: #cbd8cf; font-size: 12px; }
.provider-quotes { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.05); }
.provider-quotes h4 { margin: 0 0 2px; font-size: 14px; }
.quote-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.14); }
.quote-line span { font-size: 12px; }.quote-line strong { white-space: nowrap; color: var(--lime); }
.quote-empty span { color: #cbd8cf; }
.quote-warning { margin-top: 10px; color: #ffdf9b; font-size: 12px; }

.error-banner { position: fixed; left: 18px; right: 18px; bottom: 92px; max-width: 684px; margin: auto; padding: 13px 15px; border-radius: 14px; background: #7d3027; color: white; box-shadow: var(--shadow); font-size: 13px; z-index: 5; }
.bottom-nav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 720px); padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: rgba(255,254,249,.94); border-top: 1px solid var(--line); backdrop-filter: blur(18px); z-index: 4; }
.bottom-nav button { display: grid; justify-items: center; gap: 3px; padding: 7px; border: 0; border-radius: 12px; background: transparent; color: #7b857e; font-size: 10px; font-weight: 700; }
.bottom-nav button .nav-icon { font-size: 21px; line-height: 1; }.bottom-nav button.active { color: var(--forest); background: #edf2eb; }

@media (min-width: 620px) {
  .shell { padding-inline: 28px; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .metric-card { min-height: 160px; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
