:root {
  color-scheme: light;
  --ink: #202c29;
  --muted: #727a72;
  --paper: #f7f5f0;
  --white: #fffefa;
  --line: #e8e5dc;
  --green: #286449;
  --green-dark: #1c4d38;
  --orange: #db794f;
  --soft-green: #edf3ee;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 12%, rgba(223, 234, 223, .55), transparent 28rem),
    var(--paper);
  color: var(--ink);
}

button, input { font: inherit; }
a { color: inherit; }

.page-shell { width: min(100% - 36px, 960px); margin: 0 auto; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(50, 70, 57, .1); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px 13px 13px 4px; background: var(--green); color: white; font-size: 22px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; line-height: 1.3; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.return-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #d9dfd6; border-radius: 999px; color: var(--green-dark); font-size: 12px; font-weight: 600; text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.return-link:hover { background: #eff4ee; border-color: #bdccbf; }

.hero { position: relative; min-height: 244px; display: flex; align-items: center; margin: 22px 0 20px; padding: 38px 48px; overflow: hidden; border: 1px solid #e4e9df; border-radius: 25px; background: linear-gradient(108deg, #e7eee3 0%, #f0f1e9 55%, #f3e9dc 100%); }
.hero-copy { position: relative; z-index: 1; max-width: 600px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 12px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 43px); font-weight: 800; line-height: 1.35; letter-spacing: -.7px; }
.intro { max-width: 425px; margin: 12px 0 0; color: #626f65; font-size: 14px; line-height: 2; }
.hero-art { position: absolute; top: 0; left: 20px; width: 300px; height: 100%; opacity: .84; }
.art-sun { position: absolute; left: 78px; top: 36px; width: 142px; height: 142px; border-radius: 50%; background: #e7a56d; opacity: .64; }
.art-card { position: absolute; top: 67px; left: 52px; display: grid; gap: 10px; width: 180px; padding: 18px; transform: rotate(-8deg); border: 1px solid rgba(255,255,255,.65); border-radius: 17px; background: rgba(255,255,255,.66); box-shadow: 0 15px 28px rgba(50,70,57,.1); }
.art-card span { display: block; height: 8px; border-radius: 10px; background: #b8c8b9; }
.art-card span:first-child { width: 65%; background: #648c71; }
.art-card span:last-child { width: 74%; }
.art-spark { position: absolute; color: var(--orange); font-size: 26px; }
.art-spark-one { top: 37px; left: 22px; }
.art-spark-two { bottom: 32px; left: 229px; font-size: 17px; color: #638b75; }

.lookup-card { margin: 0 auto; padding: 25px 30px 21px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 10px 25px rgba(45, 57, 46, .045); }
.mode-tabs { display: flex; gap: 5px; width: fit-content; padding: 4px; border-radius: 12px; background: #f2f1eb; }
.mode-tab { padding: 8px 17px; border: 0; border-radius: 9px; background: transparent; color: #657067; cursor: pointer; font-size: 12px; font-weight: 600; }
.mode-tab.active { background: white; color: var(--green-dark); box-shadow: 0 2px 7px rgba(32,44,41,.09); }
#lookup-form { margin-top: 21px; }
.field-label { display: block; margin-bottom: 8px; color: #37443b; font-size: 12px; font-weight: 700; }
.input-row { display: flex; gap: 9px; }
input { width: 100%; min-width: 0; height: 50px; padding: 0 15px; border: 1px solid #dfdfd5; border-radius: 11px; outline: none; background: #fff; color: var(--ink); font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
input::placeholder { color: #a0a39b; }
input:focus { border-color: #77a287; box-shadow: 0 0 0 3px rgba(40,100,73,.1); }
.submit-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 15px; min-width: 165px; padding: 0 17px; border: 0; border-radius: 11px; background: var(--green); color: white; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .15s ease; }
.submit-button:hover { background: var(--green-dark); }
.submit-button:disabled { opacity: .65; cursor: wait; }
.button-arrow { font-size: 18px; line-height: 1; }
.privacy-note { margin: 12px 0 0; color: #8a8e85; font-size: 11px; }
.ambiguity-field { margin-top: 17px; }
.ambiguity-field[hidden] { display: none; }
.message { margin-top: 17px; padding: 12px 14px; border-radius: 11px; background: #fbf2e9; color: #765332; font-size: 12px; line-height: 1.8; }
.message.error { background: #fbefeb; color: #8d4739; }
.message[hidden], .results[hidden] { display: none; }

.results { display: grid; gap: 14px; margin-top: 22px; }
.sync-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border: 1px solid #e5e6dd; border-radius: 13px; background: rgba(255,254,250,.8); color: #687067; font-size: 11px; line-height: 1.8; }
.sync-note.stale { border-color: #ebdcc5; background: #fbf4e9; color: #735c3d; }
.sync-label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--green); font-weight: 700; }
.sync-label::before { width: 7px; height: 7px; border-radius: 50%; background: #5b9b75; content: ""; }
.stale .sync-label { color: #946b35; }
.stale .sync-label::before { background: #c99a52; }
.order-list { display: grid; gap: 12px; }
.order-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 5px 16px rgba(45,57,46,.035); }
.order-card.primary { border-color: #bacbbd; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 19px; border-bottom: 1px solid #eeece5; }
.order-number { min-width: 0; }
.order-number small { display: block; margin-bottom: 3px; color: #838980; font-size: 10px; }
.order-number strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.status-pill { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; background: var(--soft-green); color: var(--green-dark); font-size: 11px; font-weight: 700; }
.order-content { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 17px 19px 19px; }
.detail-label { display: block; margin-bottom: 8px; color: #858980; font-size: 10px; }
.updated-value { color: #465148; font-size: 12px; line-height: 1.9; }
.shipments { display: grid; gap: 7px; }
.shipment { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; background: #f5f5ef; font-size: 11px; }
.shipment-label { color: #6d776c; }
.shipment-code { color: #334940; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.empty-shipment { color: #7d8279; font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; margin: 25px 0 30px; padding: 18px 2px 0; border-top: 1px solid rgba(50,70,57,.1); color: #858980; font-size: 10px; }
.site-footer a { text-decoration: none; }

@media (max-width: 640px) {
  .page-shell { width: min(100% - 24px, 520px); }
  .site-header { min-height: 70px; }
  .brand-mark { width: 38px; height: 38px; }
  .return-link { gap: 7px; padding: 9px 10px; font-size: 10px; }
  .hero { min-height: 218px; margin: 15px 0 14px; padding: 30px 23px; border-radius: 19px; }
  .hero-art { left: -105px; opacity: .35; }
  .hero-copy { max-width: 100%; }
  .intro { max-width: 310px; font-size: 12px; }
  .lookup-card { padding: 20px 17px 18px; border-radius: 16px; }
  .input-row { flex-direction: column; }
  .submit-button { min-height: 48px; width: 100%; }
  .order-content { grid-template-columns: 1fr; gap: 15px; }
  .order-top { padding: 14px; }
  .order-content { padding: 14px; }
  .sync-note { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
