:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #15242c;
  background: #f6f7f3;
  font-synthesis: none;
  --yellow: #ffd51c;
  --ink: #14242d;
  --muted: #627077;
  --line: #e3e7e2;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 20px; }
[hidden] { display: none !important; }
.tracking-widget { max-width: 800px; margin: 0 auto; border: 1px solid #dfe4de; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 15px 46px #172b2510, 0 2px 6px #172b2505; }
.widget-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding: 16px 34px; background: var(--ink); border-bottom: 4px solid var(--yellow); }
.widget-header img { display: block; width: 112px; height: 44px; object-fit: contain; }
.header-label { display: inline-flex; align-items: center; gap: 8px; color: #f2e4a0; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.header-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px #ffd51c12; }
.widget-content { padding: 32px 34px 30px; }
.tracking-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.eyebrow { margin: 0 0 10px; color: #7b724b; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; color: var(--ink); font-size: clamp(29px, 5vw, 39px); line-height: 1.14; font-weight: 700; letter-spacing: -.045em; }
.intro { margin: 11px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.parcel-mark { flex: 0 0 auto; width: 65px; height: 65px; padding: 12px; border: 1px solid #f1e5ad; border-radius: 17px; color: #8d7525; background: #fff9df; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
form { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; }
form label { display: block; margin-bottom: 9px; color: #46565d; font-size: 11px; font-weight: 750; }
.form-row { display: flex; gap: 10px; }
input { width: 100%; min-width: 0; height: 50px; padding: 0 14px; border: 1px solid #cdd7d1; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 16px; letter-spacing: .01em; box-shadow: inset 0 1px 2px #14242d03; }
input::placeholder { color: #89958f; font-size: 14px; letter-spacing: 0; }
input:focus { outline: 3px solid #ffdc5a66; border-color: #9a7700; }
button { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 0 20px; border: 1px solid #ebc000; border-radius: 7px; color: var(--ink); background: var(--yellow); font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background .15s, box-shadow .15s; }
button:hover { background: #ffe057; box-shadow: 0 3px 10px #dcb62d21; }
button:focus-visible, a:focus-visible { outline: 3px solid #997800; outline-offset: 3px; }
button:disabled { opacity: .7; cursor: wait; }
.field-help { margin: 9px 0 0; color: #78857e; font-size: 10px; line-height: 1.55; }
.notice { margin: 18px 0 0; padding: 13px 15px; border: 1px solid #e1e7e4; border-radius: 9px; color: #526873; background: #f2f6f3; font-size: 13px; line-height: 1.5; }
.notice.is-error { border-color: #ead6cb; color: #8b3d20; background: #fff4ee; }
.tracking-result { margin-top: 24px; border: 1px solid #dbe3dc; border-radius: 13px; overflow: hidden; background: #fff; }
.result-heading { padding: 19px 21px 21px; color: #fff; background: var(--ink); border-bottom: 3px solid var(--yellow); }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.result-heading p { margin: 0; color: #c0cec7; font-size: 11px; font-weight: 700; letter-spacing: .06em; overflow-wrap: anywhere; }
.result-topline > span { display: inline-flex; align-items: center; gap: 6px; color: #e4d98f; font-size: 8px; font-weight: 750; letter-spacing: .09em; white-space: nowrap; }
.result-topline i { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.result-heading h2 { margin: 0; color: #fff; font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: -.03em; overflow-wrap: anywhere; }
.tracking-result[data-status-kind="delivered"] .result-heading { border-bottom-color: #78b98e; }
.tracking-result[data-status-kind="delivered"] .result-topline i { background: #91d3a6; }
.tracking-result[data-status-kind="attention"] .result-heading { border-bottom-color: #edaa5e; }
.tracking-result[data-status-kind="attention"] .result-topline i { background: #f2b773; }
.result-facts { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; margin: 0; padding: 21px 21px 11px; }
.result-facts > div { min-width: 0; }
.result-facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.result-facts dt { margin-bottom: 6px; color: #6d7c73; font-size: 10px; }
.result-facts dd { margin: 0; color: #243b30; font-size: 13px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.timezone { margin: 0; padding: 0 21px 18px; color: #7b887f; font-size: 10px; line-height: 1.5; }
.milestone-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 21px 13px; border-top: 1px solid var(--line); }
.milestone-heading h3 { margin: 0; font-size: 13px; font-weight: 750; letter-spacing: -.01em; }
.milestone-heading > span { color: #849087; font-size: 9px; }
.tracking-events { margin: 0; padding: 0 21px 9px 24px; list-style: none; }
.tracking-events li { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 49px; padding: 1px 0 17px 22px; color: #53675b; font-size: 12px; line-height: 1.5; }
.tracking-events li::before { content: ""; position: absolute; top: 6px; left: 0; width: 7px; height: 7px; border: 1px solid #bccdc2; border-radius: 50%; background: #fff; }
.tracking-events li::after { content: ""; position: absolute; top: 15px; bottom: -4px; left: 3px; width: 1px; background: #dfe7e1; }
.tracking-events li:last-child::after { display: none; }
.tracking-events li:first-child { color: #203c2c; font-weight: 750; }
.tracking-events li:first-child::before { border-color: #c2a331; background: var(--yellow); box-shadow: 0 0 0 3px #fff7d1; }
.tracking-result[data-status-kind="delivered"] .tracking-events li:first-child::before { border-color: #66a27b; background: #78b98e; box-shadow: 0 0 0 3px #e7f3eb; }
.tracking-events li > span { min-width: 0; overflow-wrap: anywhere; }
.tracking-events time { flex: 0 0 auto; padding-top: 1px; color: #7b8a80; font-size: 10px; font-weight: 400; white-space: nowrap; }
.widget-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 34px; border-top: 1px solid var(--line); color: #7b877f; background: #fafbf8; font-size: 10px; line-height: 1.6; }
.widget-footer a { color: #364d40; font-weight: 700; text-decoration: none; }
.widget-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.widget-footer a span { margin-left: 3px; color: #8d7525; }
@media (max-width: 560px) {
  body { padding: 8px; }
  .tracking-widget { border-radius: 14px; }
  .widget-header { min-height: 71px; padding: 12px 21px; }
  .widget-header img { width: 96px; height: 41px; }
  .header-label { font-size: 8px; gap: 6px; letter-spacing: .07em; }
  .widget-content { padding: 25px 20px 23px; }
  .tracking-intro { align-items: flex-start; gap: 12px; }
  .parcel-mark { width: 48px; height: 48px; padding: 8px; border-radius: 12px; }
  .eyebrow { max-width: 200px; font-size: 8px; }
  h1 { max-width: 250px; font-size: 32px; }
  .intro { margin-bottom: 20px; font-size: 13px; }
  form { padding: 14px; }
  .form-row { flex-direction: column; gap: 9px; }
  .result-heading { padding: 17px; }
  .result-heading h2 { font-size: 25px; }
  .result-facts { grid-template-columns: 1fr 1fr; padding: 18px 17px 10px; gap: 17px; }
  .result-facts > div + div { padding-left: 0; border-left: 0; }
  .result-facts > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
  .result-facts > div:nth-child(2) dd { font-size: 19px; }
  .timezone { padding: 0 17px 17px; }
  .milestone-heading { padding: 15px 17px 12px; }
  .tracking-events { padding: 0 17px 6px 20px; }
  .tracking-events li { gap: 12px; padding-left: 19px; font-size: 11px; }
  .tracking-events time { font-size: 9px; }
  .widget-footer { padding: 14px 20px; flex-direction: column; align-items: flex-start; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
