:root{--page:#f2f7fd;--page-deep:#eaf1f9;--card:#fafcfe;--navy:#182a51;--body:#212942;--muted:#60728c;--orange:#fe6009;--orange-text:#d94708;--peach:#fff0e5;--border:#dce6f2;--shadow:0 10px 28px rgba(35,65,110,.075),0 2px 7px rgba(35,65,110,.04)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;color:var(--body);font-family:system-ui,"PingFang SC","Microsoft YaHei","Malgun Gothic",Arial,sans-serif;background:linear-gradient(180deg,#f8fbff 0,var(--page) 42%,var(--page-deep) 100%)}button,textarea{font:inherit}button{cursor:pointer}button:focus-visible,textarea:focus-visible{outline:3px solid #8dbdff;outline-offset:2px}.shell{width:min(100% - 40px,1112px);margin-inline:auto}[hidden]{display:none!important}.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}
.preview-notice{min-height:30px;display:flex;justify-content:center;align-items:center;gap:7px;padding:5px 14px;color:#5b4a2d;background:#fff1d7;border-bottom:1px solid #f2dec0;font-size:11px;line-height:1.4;text-align:center}.preview-notice strong{font-weight:800}.notice-dot{width:6px;height:6px;border-radius:50%;background:var(--orange);flex:0 0 auto}.site-header{background:rgba(250,252,254,.9);border-bottom:1px solid #e7edf5}.header-inner{min-height:67px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}.brand-logo{display:block;width:42px;height:42px;object-fit:contain}.brand-copy{display:flex;flex-direction:column;gap:2px;line-height:1.1}.brand-copy strong{color:var(--navy);letter-spacing:.055em;font-size:16px;font-weight:900}.brand-copy span{font-size:10px;font-weight:650;color:var(--muted);letter-spacing:.06em}.language-switch{display:flex;align-items:center;gap:3px;padding:4px;background:#edf3fa;border:1px solid #dfe8f3;border-radius:12px}.language-button{min-height:36px;padding:0 11px;border:0;border-radius:8px;background:transparent;color:#5e708a;font-size:12px;font-weight:750;white-space:nowrap}.language-button.is-active{background:#fff;color:var(--navy);box-shadow:0 2px 7px rgba(35,65,110,.11)}.language-button:hover:not(.is-active){color:var(--orange-text)}
.app-main{padding-bottom:8px}.hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr);gap:28px;align-items:center;padding:24px 0 19px}.hero-main{min-width:0}.eyebrow{display:flex;align-items:center;gap:7px;color:var(--orange-text);font-size:10px;font-weight:850;letter-spacing:.16em}.eyebrow-line{width:17px;height:3px;border-radius:3px;background:var(--orange)}h1{margin:8px 0 5px;color:var(--navy);font-size:clamp(26px,3vw,37px);font-weight:900;letter-spacing:-.045em;line-height:1.2}.heading-accent{color:var(--orange)}.hero-lead{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.search-panel{margin-top:15px;padding:14px 16px 10px;background:var(--card);border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow)}.search-label-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.search-label-row label{color:var(--navy);font-size:13px;font-weight:850}.input-limit{color:#8292a7;font-size:11px}.input-wrap{background:#f8fafd;border:1px solid #d7e2ef;border-radius:10px;transition:background .18s,border-color .18s,box-shadow .18s}.input-wrap:focus-within{background:#fff;border-color:#82a9de;box-shadow:0 0 0 4px rgba(118,165,230,.12)}.input-wrap textarea{display:block;width:100%;min-height:73px;max-height:130px;resize:vertical;padding:9px 12px;border:0;outline:0;background:transparent;color:var(--navy);font-size:13px;font-weight:750;line-height:1.4;letter-spacing:.015em}.input-wrap textarea::placeholder{color:#8898ad;font-weight:500;letter-spacing:0}.search-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.search-help{margin:0;max-width:350px;color:var(--muted);font-size:10px;line-height:1.4}.search-button{height:42px;min-width:120px;padding:0 13px;border:0;border-radius:10px;background:var(--orange);color:#fff;display:inline-flex;justify-content:center;align-items:center;gap:7px;font-size:13px;font-weight:850;box-shadow:0 5px 12px rgba(254,96,9,.16);white-space:nowrap;transition:background .18s,opacity .18s}.search-button:hover{background:#ec5708}.search-button:disabled{opacity:.65;cursor:wait}.search-button svg{width:16px;height:16px}.form-error{margin:7px 0 0;color:#b42b25;font-size:11px;font-weight:700}.sample-button{padding:5px 0 0;border:0;background:transparent;color:#285b9d;text-decoration:underline;text-underline-offset:2px;font-size:10px;font-weight:750}.sample-button:hover{color:var(--orange-text)}
.journey-visual{position:relative;height:206px;border:1px solid #dfeafa;border-radius:23px;overflow:hidden;background:radial-gradient(circle at 82% 5%,#dbeaff 0,transparent 45%),linear-gradient(135deg,#f6faff 4%,#e7f0fb 100%);box-shadow:0 12px 30px rgba(42,75,121,.075)}.journey-visual::before,.journey-visual::after{content:"";position:absolute;width:220px;height:220px;border:1px solid #d5e4f5;border-radius:50%;top:-100px;right:-70px}.journey-visual::after{width:310px;height:310px;top:-145px;right:-118px}.journey-glow{position:absolute;width:200px;height:200px;border-radius:50%;background:#e7f1ff;filter:blur(20px);bottom:-100px;left:-65px}.journey-label{position:absolute;top:17px;left:20px;color:#8294ae;font-size:9px;font-weight:800;letter-spacing:.16em}.journey-card{position:absolute;inset:47px 19px 43px;border-radius:15px;border:1px solid #e0e9f5;background:rgba(255,255,255,.82);box-shadow:0 8px 25px rgba(31,64,112,.05);overflow:hidden}.journey-arc{position:absolute;left:22%;right:22%;top:19px;height:74px;border-top:2px dashed #a5bfdf;border-radius:50% 50% 0 0;transform:rotate(-7deg)}.journey-dot{position:absolute;top:69px;width:10px;height:10px;border-radius:50%;background:#fff;border:3px solid var(--orange);box-shadow:0 0 0 5px #fff0e5}.origin-dot{left:22%}.destination-dot{right:22%;border-color:#315b98;box-shadow:0 0 0 5px #e8f0fa}.journey-plane{position:absolute;top:20px;left:calc(50% - 17px);width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;background:var(--orange);transform:rotate(13deg);box-shadow:0 8px 15px rgba(254,96,9,.18)}.journey-plane svg{width:21px;height:21px}.journey-start,.journey-end{position:absolute;top:82px;display:flex;flex-direction:column;gap:1px;color:var(--navy)}.journey-start{left:calc(22% - 20px)}.journey-end{right:calc(22% - 20px);text-align:right}.journey-start small,.journey-end small{color:var(--muted);font-size:8px;font-weight:650}.journey-start strong,.journey-end strong{font-size:17px;letter-spacing:.035em}.journey-caption{position:absolute;left:21px;bottom:13px;display:flex;align-items:center;gap:7px;color:#526884;font-size:11px;font-weight:700}.caption-mark{width:15px;height:3px;border-radius:3px;background:var(--orange)}
.results-section{min-width:0}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 8px}.section-overline{margin:0 0 2px;color:#788ca7;font-size:9px;letter-spacing:.18em;font-weight:850}.section-heading h2{margin:0;color:var(--navy);font-size:20px;line-height:1.25;font-weight:900}.example-tag{padding:5px 8px;border-radius:8px;background:#e8eff8;color:#48627f;font-size:10px;font-weight:750}.batch-summary{min-height:31px;display:flex;align-items:center;gap:9px;margin-bottom:8px;color:var(--muted);font-size:11px;font-weight:650}.batch-summary strong{color:var(--navy);font-size:12px}.summary-sep{width:1px;height:14px;background:#cbd9e9}.results-workspace{height:clamp(315px,calc(100dvh - 385px),505px);display:grid;grid-template-columns:minmax(250px,305px) minmax(0,1fr);gap:12px}.result-list,.detail-panel{min-width:0;min-height:0;background:var(--card);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow)}.result-list{overflow-y:auto;padding:8px}.result-card{width:100%;min-height:86px;display:block;text-align:left;padding:12px 13px;margin:0 0 7px;background:#fff;border:1px solid #e3ebf4;border-radius:12px;color:var(--body);transition:border-color .16s,background .16s,box-shadow .16s}.result-card:last-child{margin-bottom:0}.result-card:hover{border-color:#b5cae3}.result-card.is-selected{border-color:var(--orange);background:#fffaf6;box-shadow:0 0 0 2px rgba(254,96,9,.09)}.card-top,.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.card-waybill{min-width:0;overflow-wrap:anywhere;color:var(--navy);font-size:14px;font-weight:900;letter-spacing:.01em}.card-status{flex:0 0 auto;padding:5px 8px;border-radius:8px;background:var(--peach);color:var(--orange-text);font-size:10px;font-weight:800}.card-status.delivered{background:#e8f5ec;color:#16784c}.card-status.unknown{background:#edf1f5;color:#60728c}.card-bottom{margin-top:9px;color:var(--muted);font-size:11px}.card-bottom strong{color:#49627f;font-weight:700}.card-chevron{font-size:18px;color:#9aacc2;line-height:1}.detail-panel{overflow-y:auto;padding:16px 20px}.detail-placeholder{height:100%;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:13px}.detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid #e6edf6}.detail-kicker{margin:0 0 3px;color:#8292a7;font-size:10px;font-weight:800;letter-spacing:.13em}.detail-number{margin:0;color:var(--navy);font-size:20px;line-height:1.25;font-weight:900;overflow-wrap:anywhere}.detail-state{margin-top:8px;display:inline-flex;align-items:center;gap:7px;color:var(--orange-text);font-size:13px;font-weight:850}.state-dot{width:7px;height:7px;border-radius:50%;background:var(--orange)}.detail-state.delivered{color:#16784c}.detail-state.delivered .state-dot{background:#28a86b}.detail-updated{text-align:right;color:var(--muted);font-size:10px;white-space:nowrap}.detail-updated strong{display:block;margin-top:4px;color:var(--navy);font-size:12px}.detail-description{margin:11px 0;color:var(--muted);font-size:11px;line-height:1.5}.progress{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:12px}.progress-step{text-align:center;padding:7px 2px;background:#edf3fa;border-radius:7px;color:#6c819d;font-size:10px;font-weight:750}.progress-step.complete{background:#e5effa;color:#315b98}.progress-step.current{background:var(--peach);color:var(--orange-text)}.timeline-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #e6edf6;color:var(--navy);font-size:13px;font-weight:850}.timeline-heading span{color:var(--muted);font-size:10px;font-weight:700}.timeline{list-style:none;margin:0;padding:0}.event{position:relative;display:grid;grid-template-columns:74px 13px minmax(0,1fr);gap:9px;min-height:58px}.event-time{padding-top:11px;color:var(--muted);font-size:10px;line-height:1.35}.event-time strong{display:block;color:#405573;font-size:10px}.event-marker{position:relative}.event-marker::before{content:"";position:absolute;top:0;bottom:0;left:5px;width:2px;background:#dbe5f1}.event:first-child .event-marker::before{top:16px}.event:last-child .event-marker::before{bottom:calc(100% - 16px)}.event-marker::after{content:"";position:absolute;top:12px;left:1px;width:10px;height:10px;border:2px solid var(--card);border-radius:50%;background:#9aafc9;box-shadow:0 0 0 1px #d6e1ef}.event.latest .event-marker::after{background:var(--orange);box-shadow:0 0 0 3px var(--peach)}.event-content{padding:9px 0 10px;border-bottom:1px solid #edf1f7}.event:last-child .event-content{border:0}.event-content h4{margin:0;color:var(--navy);font-size:12px;font-weight:850}.event.latest .event-content h4{color:var(--orange-text)}.event-content p{margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.45}.photo-strip{display:flex;gap:7px;margin-top:9px}.photo-thumb{width:83px;height:58px;display:flex;align-items:center;justify-content:center;gap:3px;border:1px solid #d7e2ef;border-radius:8px;background:linear-gradient(135deg,#e4effb,#f8fbff);color:#547295;font-size:10px;font-weight:750}.photo-thumb:hover{border-color:#8fb0d9}.photo-thumb span{font-size:17px}.unknown-detail{height:100%;min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.unknown-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#edf3fa;color:#607a9b;font-size:26px}.unknown-detail h3{margin:12px 0 6px;color:var(--navy);font-size:17px}.unknown-detail p{max-width:340px;margin:0;color:var(--muted);font-size:12px;line-height:1.55}.site-footer{padding:12px 0 15px}.footer-inner{display:flex;justify-content:space-between;gap:12px;color:#788ba3;font-size:10px;font-weight:700}
.detail-sheet,.photo-viewer{position:fixed;inset:0;z-index:30}.sheet-backdrop,.photo-viewer-backdrop{position:absolute;inset:0;background:rgba(15,32,61,.47)}.sheet-panel{position:absolute;inset:0;background:var(--page);display:flex;flex-direction:column}.sheet-top,.photo-viewer-top{height:58px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--border);background:var(--card);color:var(--navy);font-size:16px}.close-button{width:38px;height:38px;border:0;border-radius:10px;background:#edf3fa;color:var(--navy);font-size:26px;line-height:1}.sheet-content{min-height:0;overflow:auto;padding:15px}.sheet-content .detail-inner{padding:18px;background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}.photo-viewer{z-index:40}.photo-viewer-panel{position:absolute;top:50%;left:50%;width:min(calc(100% - 30px),560px);transform:translate(-50%,-50%);overflow:hidden;border-radius:17px;background:var(--card);box-shadow:0 20px 60px rgba(15,32,61,.25)}.photo-demo-large{height:320px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;background:linear-gradient(140deg,#e4effb,#f8fbff);color:var(--navy);text-align:center}.photo-demo-icon{font-size:70px;color:#8aa7c7}.photo-demo-large strong{font-size:17px}.photo-demo-large small{color:var(--muted);font-size:11px}
@media(max-width:900px){.hero{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.journey-visual{height:190px}.journey-card{inset:43px 12px 42px}.results-workspace{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:700px){.shell{width:min(100% - 26px,560px)}.header-inner{min-height:62px;align-items:center;gap:6px}.brand-logo{width:35px;height:35px}.brand{gap:6px}.brand-copy strong{font-size:12px}.brand-copy span{font-size:8px}.language-switch{gap:0;padding:2px}.language-button{min-height:33px;padding:0 5px;font-size:10px}.hero{display:block;padding:19px 0 14px}.journey-visual{display:none}h1{font-size:26px}.hero-lead{font-size:11px}.search-panel{margin-top:12px;padding:11px 12px 9px}.input-wrap textarea{min-height:59px;max-height:85px;resize:none;font-size:12px}.search-help{font-size:9px}.search-button{min-width:93px;height:37px;font-size:11px}.sample-button{font-size:9px}.section-heading h2{font-size:18px}.results-workspace{height:clamp(210px,calc(100dvh - 388px),460px);display:block}.result-list{height:100%;padding:6px}.detail-panel{display:none}.result-card{min-height:72px;padding:10px 11px;margin-bottom:5px}.card-waybill{font-size:13px}.card-bottom{margin-top:6px}.site-footer{padding:10px 0}.detail-top{display:block;padding-bottom:14px}.detail-number{font-size:clamp(16px,5vw,21px);white-space:nowrap;overflow-wrap:normal}.detail-updated{margin-top:9px;text-align:left}.detail-updated strong{display:inline;margin-left:7px}.event{grid-template-columns:77px 14px minmax(0,1fr);min-height:70px}.event-content h4{font-size:14px}.event-content p{font-size:12px}.event-time,.event-time strong{font-size:11px}}
@media(max-width:420px){.preview-notice{flex-wrap:wrap;column-gap:5px;row-gap:0;font-size:9px}.brand-copy span{display:none}.language-button{font-size:9px;padding:0 4px}.search-actions{align-items:flex-end}.search-help{max-width:190px}.batch-summary{font-size:10px}.footer-inner{font-size:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Three balanced columns for the public tracking desk. */
.shell{width:min(100% - 48px,1320px)}
.tracking-layout{height:clamp(640px,calc(100dvh - 137px),840px);display:grid;grid-template-columns:minmax(315px,350px) minmax(265px,305px) minmax(0,1fr);gap:17px;padding:17px 0 8px}
.hero{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:0}
.hero-main{flex:0 0 auto}
.hero h1{font-size:clamp(27px,2.35vw,34px);line-height:1.22;margin:10px 0 7px}
.hero-lead{font-size:14px;line-height:1.55}
.search-panel{margin-top:17px;padding:17px;border-radius:19px}
.search-label-row{margin-bottom:9px}
.search-label-row label{font-size:15px}
.input-limit{font-size:12px}
.input-wrap textarea{height:193px;min-height:193px;max-height:193px;resize:none;padding:11px 13px;font-size:14px;line-height:1.52}
.search-actions{margin-top:11px;align-items:center}
.search-actions{justify-content:flex-end}
.search-help{max-width:172px;font-size:11px;line-height:1.5}
.search-button{height:44px;min-width:120px;font-size:13px}
.sample-button{padding-top:10px;font-size:11px}
.journey-visual{display:block;flex:1 1 auto;width:100%;height:auto;min-height:165px;max-height:290px;border-radius:21px}
.journey-card{inset:48px 20px 44px}
.journey-arc{top:20%;height:62%}
.journey-plane{top:19%}
.journey-dot{top:54%}
.journey-start,.journey-end{top:64%}
.results-section{min-width:0;min-height:0;display:flex;flex-direction:column}
.section-heading{min-height:57px;margin:0 0 6px;align-items:center}
.section-heading h2{font-size:22px}
.section-overline{font-size:10px}
.example-tag{font-size:11px;padding:6px 9px}
.batch-summary{min-height:29px;margin:0 0 8px;font-size:12px;gap:7px}
.batch-summary strong{font-size:12px}
.results-workspace{display:block;flex:1 1 auto;height:auto;min-height:0}
.result-list{height:100%;overflow-y:auto;padding:10px;border-radius:18px}
.result-card{min-height:98px;padding:15px 13px;margin-bottom:9px;border-radius:13px}
.card-waybill{font-size:15px}
.card-status{font-size:11px}
.card-bottom{margin-top:16px;font-size:12px}
.timeline-column{min-width:0;min-height:0}
.detail-panel{display:block;height:100%;overflow-y:auto;padding:14px 21px;border-radius:18px}
.detail-top{padding-bottom:8px}
.detail-number{font-size:23px}
.detail-state{font-size:14px}
.detail-updated{font-size:11px}
.detail-updated strong{font-size:13px}
.detail-description{font-size:12px;margin:6px 0}
.progress{margin-bottom:6px}
.progress-step{font-size:11px;padding:7px 3px}
.timeline-heading{font-size:14px;padding:4px 0}
.timeline-heading span{font-size:11px}
.event{min-height:45px;grid-template-columns:80px 14px minmax(0,1fr);gap:10px}
.event-time{padding-top:8px;font-size:12px}
.event-time strong{font-size:12px}
.event-zone{display:block;margin-top:2px;color:#6d8099;font-size:9px;font-weight:700;line-height:1.15;white-space:nowrap}
.event-marker::after{top:9px}
.event:first-child .event-marker::before{top:13px}
.event:last-child .event-marker::before{bottom:calc(100% - 13px)}
.event-content{padding:6px 0 7px}
.event-content h4{font-size:14px}
.event-content p{font-size:12px;line-height:1.35;margin-top:3px}
.photo-strip{margin-top:4px}
.photo-thumb{width:83px;height:43px}
.site-footer{padding:5px 0 10px}
.modal-open{overflow:hidden}
@media(min-width:961px){.detail-panel{padding-bottom:5px}.detail-top{padding-bottom:5px}.timeline-heading{padding:2px 0}}
@media(min-width:961px){html[lang=vi] .card-top{flex-direction:column;align-items:flex-start;gap:6px}html[lang=vi] .card-waybill{white-space:nowrap;overflow-wrap:normal}}

@media(max-width:1100px) and (min-width:961px){
  .tracking-layout{grid-template-columns:minmax(275px,310px) minmax(225px,270px) minmax(0,1fr);gap:11px}
  .search-panel{padding:14px}
  .search-help{max-width:140px}
  .detail-panel{padding:15px}
  .detail-number{font-size:19px}
}
@media(max-width:960px){
  .shell{width:min(100% - 34px,760px)}
  .tracking-layout{height:auto;min-height:0;display:block;padding:19px 0 5px}
  .hero{display:block;padding:0 0 18px}
  .hero h1{font-size:30px}
  .search-panel{margin-top:14px}
  .input-wrap textarea{height:96px;min-height:96px;max-height:96px}
  .search-help{max-width:none}
  .journey-visual{display:none}
  .results-section{display:block}
  .section-heading{min-height:0;margin:0 0 7px}
  .results-workspace{height:clamp(230px,calc(100dvh - 460px),500px)}
  .result-card{min-height:78px;padding:12px;margin-bottom:7px}
  .card-bottom{margin-top:9px}
  .timeline-column{display:none}
}
@media(max-width:700px){
  .shell{width:min(100% - 26px,560px)}
  .tracking-layout{padding-top:18px}
  .hero{padding-bottom:14px}
  .hero h1{font-size:26px;margin:8px 0 5px}
  .hero-lead{font-size:11px}
  .search-panel{margin-top:12px;padding:11px 12px 9px}
  .search-label-row label{font-size:13px}
  .input-limit{font-size:11px}
  .input-wrap textarea{height:80px;min-height:80px;max-height:80px;padding:9px 12px;font-size:12px}
  .search-help{font-size:9px;max-width:190px}
  .search-button{min-width:93px;height:37px;font-size:11px}
  .sample-button{font-size:9px;padding-top:5px}
  .section-heading h2{font-size:18px}
  .batch-summary{font-size:10px}
  .results-workspace{height:clamp(220px,calc(100dvh - 387px),460px)}
  .result-card{min-height:72px;padding:10px 11px;margin-bottom:5px}
  .card-waybill{font-size:13px}
  .card-bottom{margin-top:6px;font-size:11px}
  .site-footer{padding:8px 0}
  .sheet-content .detail-inner .detail-number{font-size:clamp(16px,5vw,21px)}
  .sheet-content .event{min-height:70px}
  .sheet-content .event-content{padding:9px 0 10px}
  .sheet-content .event-content h4{font-size:14px}
  .sheet-content .event-content p{font-size:12px}
  .sheet-content .event-time,.sheet-content .event-time strong{font-size:11px}
  .sheet-content .photo-thumb{height:58px}
}

/* Fill the browser height without adding a page scrollbar. */
html,body{height:100%;overflow:hidden}
body{height:100dvh;display:flex;flex-direction:column}
.preview-notice,.site-header,.site-footer{flex:0 0 auto}
.app-main{flex:1 1 auto;min-height:0;padding-bottom:0}
.tracking-layout{height:100%;min-height:0;max-height:none;padding:17px 0 10px}
.hero,.results-section,.timeline-column{min-height:0}
.journey-visual{min-height:0;max-height:none}
.result-list,.detail-panel,.sheet-content{scrollbar-width:none}
.result-list::-webkit-scrollbar,.detail-panel::-webkit-scrollbar,.sheet-content::-webkit-scrollbar{display:none}

@media(max-width:960px){
  .tracking-layout{display:flex;flex-direction:column;height:100%;min-height:0;padding:16px 0 8px}
  .hero{flex:0 0 auto}
  .results-section{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  .results-workspace{flex:1 1 auto;min-height:0;height:auto}
  .result-list{height:100%}
}
@media(max-height:650px) and (min-width:961px){
  .input-wrap textarea{height:115px;min-height:115px;max-height:115px}
  .journey-card{inset:25px 20px 22px}
  .journey-label,.journey-caption{display:none}
}
@media(min-width:961px){
  .hero{justify-content:space-between}
  .journey-visual{flex:0 1 350px;min-height:130px;max-height:350px}
}
@media(min-width:961px) and (min-height:651px){
  .input-wrap textarea{height:clamp(193px,calc(100dvh - 900px),350px);min-height:193px;max-height:350px}
}
@media(min-width:961px) and (min-height:950px){
  .detail-panel,.detail-inner{display:flex;flex-direction:column}
  .detail-inner{flex:1 1 auto;min-height:0}
  .timeline{flex:1 1 auto;display:flex;flex-direction:column}
  .event{flex:1 1 0;min-height:49px}
}

/* Two columns: input on the left, waybills above the selected history. */
.brand-copy strong{font-size:19px}
.input-wrap textarea{scrollbar-width:none}
.input-wrap textarea::-webkit-scrollbar{display:none}
@media(min-width:961px){
  .tracking-layout{grid-template-columns:minmax(300px,350px) minmax(0,1fr);gap:18px}
  .right-workspace{min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px}
  .results-section{flex:0 0 auto}
  .section-heading{min-height:43px}
  .batch-summary{min-height:24px;margin-bottom:6px}
  .results-workspace{flex:0 1 auto;height:auto;max-height:200px;min-height:0}
  .result-list{height:auto;max-height:200px;overflow-y:auto;padding:6px}
  .result-card{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:47px;padding:5px 13px;margin-bottom:4px}
  .card-top{min-width:0;flex:1 1 auto;justify-content:flex-start;gap:18px}
  html[lang=vi] .card-top{flex-direction:row;align-items:center;gap:18px}
  .card-waybill{white-space:nowrap;overflow-wrap:normal;font-size:16px}
  .card-bottom{flex:0 0 auto;margin:0;gap:18px;white-space:nowrap;font-size:12px}
  .timeline-column{flex:1 1 auto;min-height:0}
  .detail-panel{height:100%}
}
@media(max-width:960px){
  .brand-copy strong{font-size:16px}
  .right-workspace{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  .results-section{flex:1 1 auto;min-height:0}
  .results-workspace{flex:1 1 auto;min-height:0;max-height:none;height:auto}
  .result-list{height:100%;max-height:none}
}
@media(max-width:700px){.brand-copy strong{font-size:14px}}
@media(max-width:420px){.brand-copy strong{font-size:13px}}

/* Keep the page headings and result summary on one line. */
@media(min-width:961px){
  .hero-main{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center}
  .eyebrow{grid-column:1;grid-row:1;white-space:nowrap;font-size:9px;letter-spacing:.1em}
  .eyebrow-line{width:13px}
  .hero h1{grid-column:2;grid-row:1;margin:0;font-size:23px;line-height:1.2;white-space:nowrap}
  .search-panel{grid-column:1/-1;grid-row:2;margin-top:9px}
  .results-section{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:29px auto;column-gap:15px;row-gap:8px;align-items:center}
  .section-heading{display:contents}
  .section-heading>div{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;white-space:nowrap}
  .section-overline{margin:0;font-size:9px;letter-spacing:.09em}
  .section-heading h2{font-size:20px;line-height:1}
  .example-tag{grid-column:3;grid-row:1;justify-self:end;white-space:nowrap}
  .batch-summary{grid-column:2;grid-row:1;justify-self:end;min-height:0;margin:0;white-space:nowrap}
  .results-workspace{grid-column:1/-1;grid-row:2;width:100%}
  .progress-step{min-height:42px;display:flex;align-items:center;justify-content:center;padding:7px 3px;font-size:13px}
}

/* A photo entry needs its own space in the timeline. */
.event:has(.photo-strip){min-height:112px}
@media(max-width:700px){.event:has(.photo-strip){min-height:130px}}

/* Keep the event date and clock together; show the time zone underneath. */
.event{grid-template-columns:138px 14px minmax(0,1fr);gap:8px}
.event-time{padding-top:7px;font-size:14px;line-height:1.25}
.event-clock{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
.event-time strong{display:inline;font-size:inherit;font-weight:800}
.event-clock span{font-weight:700}
.event-zone{margin-top:3px;font-size:11px;line-height:1.2}
@media(max-width:700px){
  .event,.sheet-content .event{grid-template-columns:136px 14px minmax(0,1fr);gap:6px}
  .event-time,.sheet-content .event-time,.sheet-content .event-time strong{font-size:13px}
  .event-zone{font-size:10px}
}

/* Make the company name easier to read beside the logo. */
.brand-copy strong{font-size:23px}
@media(max-width:960px){.brand-copy strong{font-size:18px}}
@media(max-width:700px){.brand-copy strong{font-size:15px}}
@media(max-width:420px){.brand-copy strong{font-size:14px}}

/* Use the full left column instead of leaving a large gap between cards. */
@media(min-width:961px){
  .hero{justify-content:flex-start;gap:12px}
  .journey-visual{flex:1 1 auto;min-height:0;max-height:none}
}
@media(min-width:961px) and (min-height:651px){
  .input-wrap textarea{height:clamp(193px,calc(50dvh - 195px),470px);min-height:193px;max-height:470px}
}

.search-actions{justify-content:space-between}
.search-help{max-width:none;font-size:12px;font-weight:650;white-space:nowrap}
@media(max-width:700px){.search-help{font-size:10px}}
