:root{--indigo:#1F4FB5;--navy:#0F2A6B;--verm:#D9262C;--jade:#1F4FB5;--card:#fff;--text:#0F2A6B;--muted:#5B6B8C;--line:#D3E1F2;--line-green:#06C755}
*{box-sizing:border-box}
body{margin:0;font-family:"IBM Plex Sans Thai",system-ui,sans-serif;font-weight:400;font-size:16px;line-height:1.6;background:linear-gradient(180deg,#BFE0F5 0,#FFFFFF 640px) no-repeat,#fff;color:var(--text);min-height:100vh}
h1,h2,h3,.th-title{font-family:"Prompt",sans-serif;font-weight:700;color:var(--navy)}
.mono{font-family:"IBM Plex Mono",monospace;font-weight:500;letter-spacing:.5px}
.en,.sub{display:block;font-size:12.5px;color:var(--muted);line-height:1.4;font-weight:400}
header{background:linear-gradient(135deg,#1F4FB5,#2E6BE0);color:#fff;padding:16px 18px 56px;border-radius:0 0 28px 28px}header h1{color:#fff}
.brand{display:flex;align-items:center;gap:10px;max-width:880px;margin:0 auto}
.brand h1{margin:0;font-size:1.35rem;letter-spacing:.2px}
.logo{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#fff;border:2px solid #fff;box-shadow:0 2px 8px rgba(15,42,107,.25)}
.tag{max-width:880px;margin:10px auto 0;font-size:15px;opacity:.95}.tag .en{color:#D6E4FF}
main{max-width:880px;margin:-36px auto 24px;padding:0 14px}
.card{background:var(--card);border-radius:16px;box-shadow:0 6px 24px rgba(31,79,181,.12);padding:20px;margin-bottom:16px}
label b{font-family:Prompt;font-weight:600}
input,select,textarea,button{font:inherit;font-size:15px;padding:11px 12px;border-radius:10px;border:1.5px solid var(--line);width:100%;background:#fff;color:var(--text)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--indigo);box-shadow:0 0 0 3px rgba(31,79,181,.15)}
button{background:var(--indigo);color:#fff;border:0;font-weight:500;cursor:pointer}button:hover{filter:brightness(1.15)}
button.sec{background:#EAF2FC;color:var(--text)}button.danger{background:#fff;color:#B42318;border:1.5px solid #F3C9C2}button.cta{background:var(--verm)}
.row{display:flex;gap:8px}.row>*{flex:1}
.search input{border-radius:999px;padding-left:20px;font-family:"IBM Plex Mono",monospace;font-weight:500;letter-spacing:.5px;font-size:20px;padding:14px;text-transform:uppercase}
.search button{flex:0 0 108px;border-radius:999px;line-height:1.2}.search button small{display:block;font-size:12px;opacity:.8}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.chips:empty{display:none}
.chip{width:auto;white-space:nowrap;flex:0 0 auto;padding:4px 12px 4px 10px;border-radius:999px;background:#fff;color:var(--indigo);font-family:"IBM Plex Mono",monospace;font-size:13px;letter-spacing:.5px;border:1.5px solid var(--line)}.chip:before{content:"↺ ";color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;background:#fff;color:var(--navy);border:1.5px solid var(--line);border-radius:999px;padding:3px 12px 3px 4px;font-size:13px;font-weight:500}.flag{width:22px;height:22px;border-radius:50%;flex:0 0 22px;box-shadow:0 0 0 1px #E5E7EB}
.ohead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}
.ohead .mono{font-size:20px;color:var(--navy)}
/* timeline: vertical */
.tl{list-style:none;padding:0;margin:0;--c:var(--indigo)}
.tl.delivered{--c:var(--jade)}
.tl li{position:relative;padding:0 0 24px 48px;display:flex;justify-content:space-between;gap:10px;min-height:56px}
.tl li:last-child{padding-bottom:0}
.tl li:before{content:"";position:absolute;left:15px;top:34px;bottom:2px;border-left:2px dashed var(--line)}
.tl li.done:before{border-left:2px solid var(--c)}
.tl li:last-child:before{display:none}
.node{position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid var(--line);color:#A8A29E}
.node svg{width:17px;height:17px}
.done .node{background:var(--c);border-color:var(--c);color:#fff}
.cur .node{background:var(--indigo);border-color:var(--indigo);color:#fff}
.cur .node:after{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid var(--verm);animation:pulse 1.8s ease-out infinite}
.tl.delivered .cur .node{background:var(--jade);border-color:var(--jade)}.tl.delivered .cur .node:after{display:none}
@keyframes pulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.8);opacity:0}}
@media (prefers-reduced-motion:reduce){.cur .node:after{animation:none;transform:scale(1.35);opacity:.35}}
.th-title{font-size:16px;line-height:1.35;display:block}
.up .th-title{color:var(--muted);font-weight:500}
.cur .th-title{font-weight:700}
.when{font-size:13px;color:var(--muted);text-align:right;white-space:nowrap;line-height:1.4}
.pill{display:inline-block;background:var(--verm);color:#fff;font-size:12px;font-weight:500;border-radius:999px;padding:1px 9px;margin-bottom:3px}
.tl.delivered .pill{background:var(--jade)}
/* horizontal on desktop */
@media (min-width:768px){
 .tl{display:grid;grid-template-columns:repeat(6,1fr)}
 .tl li{flex-direction:column;align-items:center;text-align:center;padding:44px 6px 0;justify-content:flex-start}
 .node{left:50%;transform:translateX(-50%)}
 .tl li:before{left:calc(50% + 18px);right:calc(-50% + 18px);top:15px;bottom:auto;border-left:0;border-top:2px dashed var(--line)}
 .tl li.done:before{border-left:0;border-top:2px solid var(--c)}
 .when{text-align:center;margin-top:6px}
}
.line{display:flex;justify-content:center;align-items:center;gap:8px;background:var(--line-green);color:#fff;text-decoration:none;padding:13px;border-radius:12px;font-weight:500}
.empty{text-align:center;color:var(--muted)}
table{width:100%;border-collapse:collapse;font-size:14px}th{font-family:Prompt;font-weight:600;color:var(--indigo)}td,th{padding:9px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
td button{width:auto;padding:6px 10px;font-size:13px;margin:2px}td a{color:var(--indigo);text-decoration:none}
footer{text-align:center;color:var(--muted);font-size:13px;padding:8px 0 30px}
.banner{background:linear-gradient(135deg,#1F4FB5,#2E6BE0);color:#fff;border-radius:14px;padding:14px 16px;margin-bottom:16px;display:flex;align-items:center;gap:14px}
.banner b{font-family:Prompt;font-weight:700;font-size:16px;line-height:1.35;display:block;color:#fff}.banner .en{color:#D6E4FF}
.dbadge{display:inline-flex;align-items:center;gap:10px;background:#EAF2FC;border:1.5px solid #C5D9F4;border-radius:999px;padding:6px 16px 6px 8px;flex:0 0 auto}
.dbadge svg{width:34px;height:34px;flex:0 0 34px}.dbadge b{font-family:Prompt;font-weight:700;font-size:17px;color:var(--navy);display:block;line-height:1.15}.dbadge .en{font-size:12px}
.banner .shield{width:40px;height:40px;flex:0 0 40px}
.tl li.done.cur:before{display:none}
.search .chip{flex:0 0 auto;border-radius:999px;line-height:1.4}

/* photos */
.tl li{flex-wrap:wrap}
.thumbs{flex:1 1 100%;display:flex;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap}
.th{position:relative;width:52px!important;height:52px;padding:0;border-radius:12px;overflow:hidden;border:2px solid #fff;box-shadow:0 1px 4px rgba(15,42,107,.25);background:#EAF2FC;flex:0 0 52px}
.th img{width:100%;height:100%;object-fit:cover;display:block}
.th .more{position:absolute;inset:0;background:rgba(15,42,107,.6);color:#fff;font-weight:600;display:grid;place-items:center;font-size:14px}
.pcount{font-size:13px;color:var(--indigo);font-weight:500;line-height:1.2;margin-left:2px}.pcount .en{font-size:11px}
@media (min-width:768px){.thumbs{justify-content:center}.th{width:40px!important;height:40px;flex-basis:40px;border-radius:10px}.pcount{flex:1 1 100%;text-align:center}}
.lb{position:fixed;inset:0;z-index:50;background:rgba(10,24,64,.94);display:flex;flex-direction:column;color:#fff}
.lb[hidden]{display:none}
.lbtop{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;font-size:14px}.lbtop b{font-family:Prompt;font-weight:600}#lbn{color:#BFD3F7;margin-left:6px}
.lbx{width:42px!important;height:42px;border-radius:50%;padding:0;background:rgba(255,255,255,.14);font-size:18px}
#lbstage{flex:1;position:relative;display:flex;align-items:center;justify-content:center;min-height:0;padding:0 8px}
#lbimg{max-width:100%;max-height:100%;border-radius:14px;object-fit:contain;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.lbnav{position:absolute;top:50%;transform:translateY(-50%);width:44px!important;height:44px;border-radius:50%;padding:0;background:rgba(255,255,255,.18);font-size:28px;line-height:1}
.lbnav[hidden]{display:none}.prev{left:10px}.next{right:10px}
.lbcap{margin:0;padding:14px 18px 26px;text-align:center;font-size:15px;min-height:60px}
@media (min-width:768px){.tl li{flex-wrap:nowrap}.thumbs{flex:0 0 auto;width:100%;margin-top:10px;gap:4px}}
.lb{background:rgba(10,24,64,.97)}
@media (min-width:768px){.tl .th-title{font-size:14.5px}.tl li{padding-left:3px;padding-right:3px}.tl .en{font-size:12px}}

/* domestic leg tracking pill */
.leg{flex:1 1 100%;display:flex;align-items:center;gap:6px;margin-top:8px;background:#EAF2FC;border:1.5px solid #C5D9F4;border-radius:999px;padding:3px 4px 3px 12px;max-width:100%;font-size:13px;color:var(--navy);line-height:1.35}
.legtxt{flex:1;min-width:0;overflow-wrap:anywhere}.legl{color:var(--muted)}.leg .mono{font-size:13px;color:var(--indigo)}
.copy{flex:0 0 auto;width:auto!important;padding:4px 12px;border-radius:999px;font-size:12.5px;background:var(--indigo)}.copy.ok{background:#137A3A}
@media (min-width:768px){.leg{flex:0 0 auto;width:100%;flex-direction:column;border-radius:12px;padding:6px 8px;text-align:center;gap:4px}.leg .legl{display:block}}
@media (min-width:768px){.leg .sep{display:none}.leg b,.leg .mono{display:block}}

.legs-pub{flex:1 1 100%;margin-top:8px;display:flex;flex-direction:column;gap:5px}.legs-pub .leg{margin-top:0;flex:0 0 auto}
.legcount{font-size:12.5px;color:var(--muted);font-weight:500}
@media (min-width:768px){.legs-pub{flex:0 0 auto;width:100%}.legcount{text-align:center}}
