/* TCS Tracker Pro – front-end styles. Everything is scoped under .tcst so the theme stays untouched. */
.tcst{position:relative;margin:1.5em 0;border-radius:24px;overflow:hidden;line-height:1.5;text-align:left;-webkit-font-smoothing:antialiased}
.tcst *,.tcst *::before,.tcst *::after{box-sizing:border-box}
.tcst button,.tcst input{font:inherit;letter-spacing:normal;text-transform:none;margin:0;text-shadow:none}
.tcst input{-webkit-appearance:none;appearance:none;max-width:none;line-height:normal;box-shadow:none}
.tcst button{-webkit-appearance:none;appearance:none;line-height:1.2}
.tcst h2,.tcst h3,.tcst p{letter-spacing:normal;text-transform:none;color:inherit;border:0;padding:0;background:none}
.tcst h2::before,.tcst h2::after,.tcst h3::before,.tcst h3::after{display:none}
.tcst svg{display:block;max-width:100%;height:auto}
.tcst ul,.tcst ol{margin-left:0}
.tcst :focus-visible{outline:3px solid #F2A93B;outline-offset:2px}
.tcst-d1{font-family:"Source Sans 3","Segoe UI",system-ui,sans-serif}
.tcst-hint{margin:10px 0 0;font-size:14px;opacity:.75}
.tcst-alert{margin-top:18px;padding:16px 18px;border-radius:14px;background:rgba(180,35,24,.1);border:1px solid rgba(180,35,24,.3);font-size:16px}
.tcst-d4 .tcst-alert{color:#FFD5D6;background:rgba(229,72,77,.15);border-color:rgba(229,72,77,.5)}
.tcst-go[disabled]{opacity:.7;cursor:progress}
.tcst-preview-label{display:inline-block;margin-bottom:12px;padding:4px 10px;border-radius:8px;background:#FDEBD3;color:#7A4508;font-size:13px;font-weight:700}
.tcst-d4 .tcst-preview-label{background:rgba(255,181,71,.15);color:#FFB547}
.tcst-d4 .tcst-scene{margin-top:20px}
/* Shared helpers */
.tcst-form-row{display:flex;gap:10px}
.tcst-form-row input{flex:1;min-width:0}
@media (max-width:560px){.tcst-form-row{flex-direction:column}.tcst-form-row input{flex:none;width:100%}.tcst-d2 .tcst-pill input{flex:none;width:100%}}
.tcst-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;font-size:14px}
.tcst-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tcst-fadeup{animation:tcst-fadeup .5s ease-out both}
@keyframes tcst-fadeup{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes tcst-spin{to{transform:rotate(360deg)}}
@keyframes tcst-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.tcst-wheel{transform-box:fill-box;transform-origin:center;animation:tcst-spin .5s linear infinite}
.tcst-parked .tcst-wheel{animation:none}
.tcst-bob{animation:tcst-bob .9s ease-in-out infinite}
.tcst-parked .tcst-bob{animation:none}
@media (prefers-reduced-motion:reduce){.tcst *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* ========== Design 1: Route Rider ========== */
.tcst-d1{background:#F2F4F6;color:#1D2430;padding:clamp(18px,4vw,44px)}
.tcst-d1 .tcst-title{margin:0 0 16px;font-family:"Bricolage Grotesque",sans-serif;font-weight:800;font-size:clamp(1.7rem,1.2rem+2.4vw,2.9rem);letter-spacing:-.03em;line-height:1.05}
.tcst-d1 .tcst-search{background:#fff;border:1px solid #E1E6EA;border-radius:18px;padding:18px;box-shadow:0 6px 0 #D3E3E0,0 26px 40px -24px rgba(14,48,44,.45)}
.tcst-d1 label{display:block;font-weight:700;margin-bottom:8px}
.tcst-d1 input{height:56px;padding:0 18px;border:2px solid #D5DCE2;border-radius:12px;background:#F7F9FA;font-size:20px;color:#1D2430}
.tcst-d1 input:focus{outline:none;border-color:#0E6E64;box-shadow:0 0 0 4px #DDF0EC}
.tcst-d1 .tcst-go{height:56px;padding:0 28px;border:0;border-radius:12px;background:#0E6E64;color:#fff;font-family:"Bricolage Grotesque",sans-serif;font-weight:700;font-size:18px;cursor:pointer;box-shadow:0 5px 0 #09504A;transform:translateY(-2px);transition:transform .12s,box-shadow .12s}
.tcst-d1 .tcst-go:active{transform:translateY(3px);box-shadow:0 0 0 #09504A}
.tcst-d1 .tcst-chip{min-height:36px;padding:4px 12px;border:1px solid #D5DCE2;border-radius:999px;background:#fff;color:#1D2430;cursor:pointer}
.tcst-d1 .tcst-out{margin-top:22px}
.tcst-d1 .tcst-card{background:#fff;border:1px solid #E1E6EA;border-radius:18px;padding:clamp(16px,3vw,26px)}
.tcst-d1 .tcst-map{position:relative;height:260px;border-radius:20px;overflow:hidden;background:#E5EEEC;border:1px solid #D3E3E0;box-shadow:0 6px 0 #C7DAD6;margin-bottom:18px}
.tcst-d1 .tcst-plane{position:absolute;left:-12%;right:-12%;top:30px;height:380px;transform:perspective(900px) rotateX(58deg);transform-origin:center top;background-color:#EEF5F3;background-image:repeating-linear-gradient(0deg,transparent 0 46px,#D4E4E0 46px 48px),repeating-linear-gradient(90deg,transparent 0 46px,#D4E4E0 46px 48px)}
.tcst-d1 .tcst-cities{position:absolute;inset:16px 20px auto;display:flex;justify-content:space-between}
.tcst-d1 .tcst-cities small{display:block;font-size:12px;font-weight:700;color:#5B6575}
.tcst-d1 .tcst-cities b{font-family:"Bricolage Grotesque",sans-serif;font-size:clamp(18px,3vw,26px)}
.tcst-d1 .tcst-track{position:absolute;left:7%;right:7%;top:196px;height:10px;border-radius:6px;background:#C9D7D4}
.tcst-d1 .tcst-fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:6px;background:#B5650D;transition:width 1.9s cubic-bezier(.2,.8,.2,1)}
.tcst-d1 .tcst-rider{position:absolute;top:-82px;left:0;width:110px;margin-left:-55px;transition:left 1.9s cubic-bezier(.2,.8,.2,1)}
.tcst-d1 .tcst-pin{position:absolute;top:-38px;width:30px}
.tcst-d1 .tcst-pin.tcst-a{left:-15px}.tcst-d1 .tcst-pin.tcst-b{right:-15px}
.tcst-d1 .tcst-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}
@media (max-width:760px){.tcst-d1 .tcst-grid{grid-template-columns:1fr}}
.tcst-d1 .tcst-status{display:flex;align-items:center;gap:10px;font-family:"Bricolage Grotesque",sans-serif;font-size:clamp(24px,4vw,34px);font-weight:800;color:#B5650D}
.tcst-d1 .tcst-pulse{width:14px;height:14px;border-radius:50%;background:#B5650D;animation:tcst-pulse 1.6s ease-out infinite}
@keyframes tcst-pulse{0%{box-shadow:0 0 0 0 rgba(181,101,13,.5)}100%{box-shadow:0 0 0 16px rgba(181,101,13,0)}}
.tcst-d1 .tcst-msg{font-size:20px;font-weight:600;margin:8px 0 4px}
.tcst-d1 .tcst-ur{color:#5B6575;margin:0 0 12px}
.tcst-d1 .tcst-tip{padding:12px 14px;border-radius:12px;background:#FDEBD3}
.tcst-d1 .tcst-dark{background:#1D2430;color:#fff;border-radius:18px;padding:22px;box-shadow:0 6px 0 #0E6E64;display:grid;gap:14px;align-content:start}
.tcst-d1 .tcst-dark small{display:block;color:#AEB8C3;font-size:13px}
.tcst-d1 .tcst-dark b{font-size:18px}
.tcst-d1 .tcst-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:16px 0;text-align:center;font-size:14px;font-weight:700}
.tcst-d1 .tcst-steps span.tcst-n{display:grid;place-items:center;width:36px;height:36px;margin:0 auto 6px;border-radius:50%;background:#C9D1D9;color:#fff}
.tcst-d1 .tcst-steps .tcst-done span.tcst-n{background:#0E6E64}
.tcst-d1 .tcst-steps .tcst-cur span.tcst-n{background:#B5650D;box-shadow:0 0 0 6px #FDEBD3}
.tcst-d1 .tcst-steps .tcst-todo{color:#7A8592}
.tcst-d1 .tcst-ev{display:grid;grid-template-columns:110px 20px 1fr;gap:12px;padding:10px;border-radius:12px}
.tcst-d1 .tcst-ev:first-of-type{background:#FDEBD3}
.tcst-d1 .tcst-ev .tcst-t{text-align:right;font-weight:700;font-size:15px}.tcst-d1 .tcst-ev .tcst-t small{display:block;font-weight:400;color:#5B6575}
.tcst-d1 .tcst-ev .tcst-dot{width:16px;height:16px;margin-top:3px;border-radius:50%;border:4px solid #8A96A3;background:#fff}
.tcst-d1 .tcst-ev:first-of-type .tcst-dot{border-color:#B5650D}
.tcst-d1 .tcst-ev .tcst-p{color:#5B6575;font-size:15px}
@media (max-width:560px){.tcst-d1 .tcst-ev{grid-template-columns:20px 1fr}.tcst-d1 .tcst-ev .tcst-t{order:3;grid-column:2;text-align:left}}
.tcst-d1 .tcst-nf{display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:center}
@media (max-width:640px){.tcst-d1 .tcst-nf{grid-template-columns:1fr;text-align:center}.tcst-d1 .tcst-nf svg{margin:0 auto}}
.tcst-d1 .tcst-nf h3{margin:0 0 6px;font-family:"Bricolage Grotesque",sans-serif;font-size:28px}
.tcst-d1 .tcst-nf ul{margin:10px 0 0;padding-left:20px;text-align:left}
.tcst-d1 .tcst-loading{display:grid;place-items:center;gap:10px;padding:40px}
.tcst-d1 .tcst-zoom{animation:tcst-zoom 1.2s ease-in-out infinite}
@keyframes tcst-zoom{0%,100%{transform:translateX(-30px)}50%{transform:translateX(30px)}}

/* ========== Design 2: Dabba ========== */
.tcst-d2{background:#DCEBFF;color:#13294B;font-family:"Nunito Sans",sans-serif;padding:clamp(18px,4vw,44px)}
.tcst-d2 .tcst-top{display:grid;grid-template-columns:320px 1fr;gap:28px;align-items:center}
@media (max-width:760px){.tcst-d2 .tcst-top{grid-template-columns:1fr}}
.tcst-d2 .tcst-stage{position:relative;height:330px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
.tcst-d2 .tcst-bubble{position:absolute;top:0;left:0;right:0;padding:14px 16px;background:#fff;border-radius:20px;font-family:"Fredoka",sans-serif;font-weight:600;font-size:18px;line-height:1.3;box-shadow:0 5px 0 #B8CDEA;text-align:center}
.tcst-d2 .tcst-bubble::after{content:"";position:absolute;bottom:-12px;left:50%;width:24px;height:24px;background:#fff;transform:translateX(-50%) rotate(45deg);box-shadow:4px 4px 0 #B8CDEA}
.tcst-d2 .tcst-float{animation:tcst-float 3s ease-in-out infinite;perspective:800px;margin-bottom:22px}
@keyframes tcst-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.tcst-d2 .tcst-cube{position:relative;width:150px;height:150px;transform-style:preserve-3d;animation:tcst-sway 4.5s ease-in-out infinite}
@keyframes tcst-sway{0%,100%{transform:rotateX(-16deg) rotateY(-30deg)}50%{transform:rotateX(-10deg) rotateY(-16deg)}}
.tcst-d2 .tcst-spinning .tcst-cube{animation:tcst-tumble .9s linear infinite}
@keyframes tcst-tumble{to{transform:rotateX(-16deg) rotateY(330deg)}}
.tcst-d2 .tcst-f{position:absolute;inset:0;border-radius:10px}
.tcst-d2 .tcst-f.tcst-fr{transform:translateZ(75px);background:#F5A524;display:grid;place-items:center;box-shadow:inset 0 0 0 3px #E0901A}
.tcst-d2 .tcst-f.tcst-r{transform:rotateY(90deg) translateZ(75px);background:#D98815}
.tcst-d2 .tcst-f.tcst-l{transform:rotateY(-90deg) translateZ(75px);background:#D98815}
.tcst-d2 .tcst-f.tcst-b{transform:rotateY(180deg) translateZ(75px);background:#E79A1F}
.tcst-d2 .tcst-f.tcst-t{transform:rotateX(90deg) translateZ(75px);background:#FFC45C;display:flex;justify-content:center}
.tcst-d2 .tcst-f.tcst-t::after{content:"";width:28px;background:#FFF3D6}
.tcst-d2 .tcst-f.tcst-bo{transform:rotateX(-90deg) translateZ(75px);background:#B87210}
.tcst-d2 .tcst-shadow{width:150px;height:18px;border-radius:50%;background:#13294B;opacity:.18}
.tcst-d2 .tcst-title{margin:0 0 8px;font-family:"Fredoka",sans-serif;font-size:clamp(1.9rem,1.3rem+2.6vw,3.2rem);line-height:1}
.tcst-d2 p.tcst-lead{margin:0 0 16px;font-size:18px}
.tcst-d2 .tcst-pill{display:flex;gap:10px;padding:8px;background:#fff;border-radius:999px;box-shadow:0 6px 0 #B8CDEA}
@media (max-width:560px){.tcst-d2 .tcst-pill{border-radius:20px;flex-direction:column}}
.tcst-d2 input{height:52px;padding:0 20px;border:2px solid transparent;border-radius:999px;background:#F2F7FF;font-family:"Fredoka",sans-serif;font-size:20px;color:#13294B;flex:1;min-width:0}
.tcst-d2 input:focus{outline:none;border-color:#13294B}
.tcst-d2 .tcst-go{height:52px;padding:0 26px;border:0;border-radius:999px;background:#E0553A;color:#fff;font-family:"Fredoka",sans-serif;font-weight:700;font-size:19px;cursor:pointer;box-shadow:0 5px 0 #A93A22}
.tcst-d2 .tcst-go:active{transform:translateY(4px);box-shadow:none}
.tcst-d2 .tcst-chip{min-height:36px;padding:4px 14px;border:0;border-radius:999px;background:#fff;color:#13294B;font-weight:800;cursor:pointer}
.tcst-d2 .tcst-out{margin-top:24px}
.tcst-d2 .tcst-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}
@media (max-width:760px){.tcst-d2 .tcst-row{grid-template-columns:1fr}}
.tcst-d2 .tcst-box{background:#fff;border-radius:22px;padding:20px}
.tcst-d2 .tcst-box small{display:block;font-weight:800;color:#5774A3;font-size:13px}
.tcst-d2 .tcst-big{background:#B5650D;color:#fff}
.tcst-d2 .tcst-big b{display:block;font-family:"Fredoka",sans-serif;font-size:clamp(28px,4vw,38px)}
.tcst-d2 .tcst-belt{position:relative;height:110px;margin:16px 0 4px}
.tcst-d2 .tcst-belt .tcst-bar{position:absolute;left:0;right:0;top:58px;height:24px;border-radius:12px;background:#2C3E5E;box-shadow:0 6px 0 #1A2843}
.tcst-d2 .tcst-belt .tcst-rollers{position:absolute;left:10px;right:10px;top:65px;height:10px;border-radius:5px;background-image:repeating-linear-gradient(90deg,#4A5F84 0 20px,#2C3E5E 20px 40px);animation:tcst-belt .8s linear infinite}
@keyframes tcst-belt{to{background-position:-40px 0}}
.tcst-d2 .tcst-belt .tcst-mini{position:absolute;bottom:52px;left:3%;transform:translateX(-50%);transition:left 1.8s cubic-bezier(.2,.8,.2,1)}
.tcst-d2 .tcst-stations{display:grid;grid-template-columns:repeat(5,1fr);text-align:center;font-weight:800;font-size:14px;gap:4px}
.tcst-d2 .tcst-stations i{display:block;width:16px;height:16px;margin:0 auto 4px;border-radius:50%;background:#C3D1E6}
.tcst-d2 .tcst-stations .tcst-done i{background:#0E6E64}.tcst-d2 .tcst-stations .tcst-cur i{background:#B5650D;box-shadow:0 0 0 5px #FDEBD3}
.tcst-d2 .tcst-stations .tcst-todo{color:#7D8FAD}
.tcst-d2 .tcst-two{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;margin-top:16px;align-items:start}
@media (max-width:760px){.tcst-d2 .tcst-two{grid-template-columns:1fr}}
.tcst-d2 .tcst-diary{display:grid;gap:10px}
.tcst-d2 .tcst-entry{display:flex;gap:14px;padding:14px 16px;background:#fff;border-radius:18px;border:3px solid #C3D1E6}
.tcst-d2 .tcst-entry:first-of-type{border-color:#B5650D}
.tcst-d2 .tcst-entry .tcst-w{min-width:92px;font-weight:800}.tcst-d2 .tcst-entry .tcst-w small{display:block;font-weight:400;color:#5774A3}
.tcst-d2 .tcst-entry b{font-family:"Fredoka",sans-serif;font-weight:600;font-size:18px;display:block}
.tcst-d2 .tcst-navy{background:#13294B;color:#fff;border-radius:22px;padding:22px;box-shadow:0 6px 0 #E0553A}
.tcst-d2 .tcst-navy h3{margin:0 0 8px;font-family:"Fredoka",sans-serif}
.tcst-d2 .tcst-nfbox{background:#fff;border-radius:24px;padding:24px}
.tcst-d2 .tcst-nfbox h3{margin:0 0 8px;font-family:"Fredoka",sans-serif;font-size:26px}

/* ========== Design 3: Parcel Pass ========== */
.tcst-d3{background:#E6ECF4;color:#0F1C3F;font-family:"Archivo",sans-serif;padding:clamp(18px,4vw,44px)}
.tcst-d3 .tcst-title{margin:0 0 16px;font-weight:900;font-stretch:118%;font-size:clamp(1.7rem,1.2rem+2.4vw,2.9rem);line-height:1}
.tcst-d3 label{display:block;font-weight:700;margin-bottom:8px}
.tcst-d3 input{height:58px;padding:0 18px;border:3px solid #B9C5D6;border-radius:10px;background:#fff;font-family:"IBM Plex Mono",monospace;font-size:22px;letter-spacing:.06em;color:#0F1C3F}
.tcst-d3 input:focus{outline:none;border-color:#0F1C3F}
.tcst-d3 .tcst-go{height:58px;padding:0 28px;border:0;border-radius:10px;background:#C8322B;color:#fff;font-weight:800;font-stretch:112%;font-size:18px;cursor:pointer;box-shadow:0 4px 0 #6E1A15}
.tcst-d3 .tcst-go:active{transform:translateY(3px);box-shadow:none}
.tcst-d3 .tcst-chip{min-height:36px;padding:4px 12px;border:2px solid #0F1C3F;border-radius:6px;background:transparent;font-family:"IBM Plex Mono",monospace;color:#0F1C3F;cursor:pointer}
.tcst-d3 .tcst-out{margin-top:24px}
.tcst-d3 .tcst-wrap{perspective:1400px;padding:6px 0 14px}
.tcst-d3 .tcst-ticket{display:grid;grid-template-columns:1fr 260px;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 8px 0 #B9C5D6,0 40px 60px -30px rgba(15,28,63,.55);transform:rotateX(6deg) rotateY(-4deg);transition:transform .5s cubic-bezier(.2,.8,.2,1);animation:tcst-tin .7s cubic-bezier(.2,.8,.2,1) backwards}
.tcst-d3 .tcst-ticket:hover{transform:none}
@keyframes tcst-tin{from{opacity:0;transform:translateY(20px) rotateX(20deg)}}
@media (max-width:760px){.tcst-d3 .tcst-ticket{grid-template-columns:1fr;transform:none}.tcst-d3 .tcst-stub{border-left:0!important;border-top:3px dashed #B9C5D6}}
.tcst-d3 .tcst-thead{display:flex;justify-content:space-between;padding:14px 24px;background:#0F1C3F;color:#fff;font-weight:800;font-stretch:115%}
.tcst-d3 .tcst-thead span:last-child{font-family:"IBM Plex Mono",monospace;font-weight:500;color:#B9C5D6;font-size:14px}
.tcst-d3 .tcst-route{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:24px}
.tcst-d3 .tcst-route small{display:block;font-size:12px;font-weight:700;color:#4A5878}
.tcst-d3 .tcst-route .tcst-code3{font-weight:900;font-stretch:125%;font-size:clamp(40px,7vw,62px);line-height:1}
.tcst-d3 .tcst-route .tcst-r{text-align:right}
.tcst-d3 .tcst-line{position:relative;height:56px}
.tcst-d3 .tcst-line::before{content:"";position:absolute;left:0;right:0;top:38px;border-top:3px dashed #B9C5D6}
.tcst-d3 .tcst-line .tcst-fill{position:absolute;left:0;top:37px;height:5px;width:0;border-radius:3px;background:#B5650D;transition:width 1.8s cubic-bezier(.2,.8,.2,1)}
.tcst-d3 .tcst-line .tcst-van{position:absolute;top:2px;left:0;margin-left:-30px;transition:left 1.8s cubic-bezier(.2,.8,.2,1)}
.tcst-d3 .tcst-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:16px 24px 24px;border-top:2px solid #E6ECF4}
@media (max-width:760px){.tcst-d3 .tcst-fields{grid-template-columns:repeat(2,1fr)}}
.tcst-d3 .tcst-fields small{display:block;font-size:12px;font-weight:700;color:#4A5878}
.tcst-d3 .tcst-fields b{font-size:16px}
.tcst-d3 .tcst-mono{font-family:"IBM Plex Mono",monospace}
.tcst-d3 .tcst-stub{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:16px;padding:22px;border-left:3px dashed #B9C5D6;background:#F6F8FB}
.tcst-d3 .tcst-stamp{display:inline-block;align-self:center;padding:8px 14px;border:4px solid #B5650D;border-radius:8px;color:#B5650D;font-weight:900;font-stretch:120%;font-size:22px;transform:rotate(-14deg);animation:tcst-slam .55s .5s cubic-bezier(.3,1.4,.5,1) backwards}
.tcst-d3 .tcst-stamp.tcst-void{border-color:#C8322B;color:#C8322B}
@keyframes tcst-slam{from{transform:rotate(-14deg) scale(2.4);opacity:0}}
.tcst-d3 .tcst-barcode{display:flex;height:52px}
.tcst-d3 .tcst-log{display:grid;grid-template-columns:1.6fr 1fr;gap:18px;margin-top:20px;align-items:start}
@media (max-width:760px){.tcst-d3 .tcst-log{grid-template-columns:1fr}}
.tcst-d3 .tcst-panel{background:#fff;border-radius:18px;padding:22px}
.tcst-d3 .tcst-panel h3{margin:0 0 12px;font-weight:800;font-stretch:112%}
.tcst-d3 .tcst-lrow{display:grid;grid-template-columns:90px 80px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid #E6ECF4;font-size:15px}
.tcst-d3 .tcst-lrow:first-of-type b{color:#B5650D}
.tcst-d3 .tcst-lrow small{display:block;color:#4A5878}
@media (max-width:560px){.tcst-d3 .tcst-lrow{grid-template-columns:1fr}}
.tcst-d3 .tcst-navy{background:#0F1C3F;color:#fff;border-radius:18px;padding:22px;box-shadow:0 6px 0 #C8322B}
.tcst-d3 .tcst-navy h3{margin:0 0 8px}
.tcst-d3 .tcst-printer{display:grid;place-items:center}
.tcst-d3 .tcst-slot{width:min(560px,100%);height:32px;border-radius:10px;background:#0F1C3F;box-shadow:0 6px 0 #051030}
.tcst-d3 .tcst-paper{width:min(500px,92%);background:#fff;overflow:hidden;animation:tcst-print 1.2s steps(10) infinite;padding:0 20px;border-radius:0 0 8px 8px}
@keyframes tcst-print{from{height:0}to{height:120px}}

/* ========== Design 4: Night Drive ========== */
.tcst-d4{background:#141A3A;color:#EEF0FF;font-family:"Manrope",sans-serif;padding:clamp(18px,4vw,44px)}
.tcst-d4 .tcst-title{margin:0 0 16px;font-family:"Sora",sans-serif;font-weight:800;font-size:clamp(1.6rem,1.1rem+2.4vw,2.7rem);letter-spacing:-.03em;line-height:1.05}
.tcst-d4 label{display:block;font-weight:700;color:#B7BEE6;margin-bottom:8px}
.tcst-d4 input{height:58px;padding:0 20px;border:2px solid #343C72;border-radius:14px;background:#1D2450;font-family:"Sora",sans-serif;font-size:20px;color:#fff}
.tcst-d4 input:focus{outline:none;border-color:#FFB547}
.tcst-d4 .tcst-go{height:58px;padding:0 26px;border:0;border-radius:14px;background:#FFB547;color:#2A1A00;font-family:"Sora",sans-serif;font-weight:800;font-size:17px;cursor:pointer;box-shadow:0 4px 0 #B9781D}
.tcst-d4 .tcst-go:active{transform:translateY(3px);box-shadow:none}
.tcst-d4 .tcst-chip{min-height:36px;padding:4px 12px;border:1px solid #343C72;border-radius:999px;background:transparent;color:#D5D9F5;cursor:pointer}
.tcst-d4 .tcst-chips span{color:#8D95C7}
.tcst-d4 .tcst-scene{position:relative;height:clamp(260px,40vw,360px);margin-top:20px;border-radius:24px;overflow:hidden;background:linear-gradient(180deg,#0B1030,#2A2F6A);box-shadow:0 8px 0 #0B1028;transition:background .8s}
.tcst-d4 .tcst-scene.tcst-day{background:linear-gradient(180deg,#4E9BE8,#BFE3FF)}
.tcst-d4 .tcst-scene.tcst-fog{background:linear-gradient(180deg,#3B4366,#7A84A6)}
.tcst-d4 .tcst-orb{position:absolute;right:12%;top:36px;width:56px;height:56px;border-radius:50%;background:#E8E6FF;box-shadow:0 0 60px #E8E6FF}
.tcst-d4 .tcst-day .tcst-orb{background:#FFE07A;box-shadow:0 0 70px #FFE07A}
.tcst-d4 .tcst-layer{position:absolute;left:0;bottom:90px;display:flex;width:max-content}
.tcst-d4 .tcst-far{animation:tcst-scroll 40s linear infinite;height:160px}
.tcst-d4 .tcst-near{animation:tcst-scroll 14s linear infinite;height:120px}
.tcst-d4 .tcst-far span{align-self:flex-end;margin-right:6px;background:rgba(38,44,96,.9)}
.tcst-d4 .tcst-day .tcst-far span{background:rgba(80,96,140,.45)}
.tcst-d4 .tcst-near span{align-self:flex-end;margin-right:18px;border-radius:4px 4px 0 0;background-color:#1C2250;background-image:repeating-linear-gradient(0deg,transparent 0 14px,rgba(255,210,122,.55) 14px 20px),repeating-linear-gradient(90deg,#1C2250 0 10px,transparent 10px 18px)}
.tcst-d4 .tcst-day .tcst-near span{background-color:#56638F;background-image:repeating-linear-gradient(0deg,transparent 0 14px,rgba(255,255,255,.25) 14px 20px),repeating-linear-gradient(90deg,#56638F 0 10px,transparent 10px 18px)}
@keyframes tcst-scroll{to{transform:translateX(-50%)}}
.tcst-d4 .tcst-road{position:absolute;left:0;right:0;bottom:0;height:90px;background:#22284A}
.tcst-d4 .tcst-dash{position:absolute;left:0;bottom:40px;width:2400px;height:6px;background-image:repeating-linear-gradient(90deg,#FFD27A 0 60px,transparent 60px 120px);animation:tcst-scroll 1.2s linear infinite}
.tcst-d4 .tcst-stopped .tcst-far,.tcst-d4 .tcst-stopped .tcst-near,.tcst-d4 .tcst-stopped .tcst-dash,.tcst-d4 .tcst-stopped .tcst-wheel,.tcst-d4 .tcst-stopped .tcst-bob{animation-play-state:paused}
.tcst-d4 .tcst-vanwrap{position:absolute;bottom:34px;left:6%;width:clamp(150px,22vw,220px);transition:left 1.6s cubic-bezier(.2,.8,.2,1)}
.tcst-d4 .tcst-label{position:absolute;left:18px;top:16px;padding:10px 14px;border-radius:14px;background:rgba(12,16,44,.6);backdrop-filter:blur(6px)}
.tcst-d4 .tcst-label small{display:block;color:#B7BEE6;font-size:13px}.tcst-d4 .tcst-label b{font-family:"Sora",sans-serif;font-size:clamp(16px,2.4vw,22px)}
.tcst-d4 .tcst-house{position:absolute;right:5%;bottom:84px;width:clamp(110px,15vw,160px)}
.tcst-d4 .tcst-sign{position:absolute;right:16%;bottom:80px;width:110px}
.tcst-d4 .tcst-scan{position:absolute;top:0;bottom:0;width:30%;background:linear-gradient(90deg,transparent,rgba(255,181,71,.25),transparent);animation:tcst-scan 1.1s linear infinite}
@keyframes tcst-scan{from{left:-30%}to{left:100%}}
.tcst-d4 .tcst-glass{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:22px}
.tcst-d4 .tcst-g2{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-top:18px}
@media (max-width:760px){.tcst-d4 .tcst-g2{grid-template-columns:1fr}}
.tcst-d4 .tcst-st{display:flex;align-items:center;gap:10px;font-family:"Sora",sans-serif;font-weight:800;font-size:clamp(24px,4vw,32px);color:#FFB547}
.tcst-d4 .tcst-st i{width:12px;height:12px;border-radius:50%;background:#FFB547;box-shadow:0 0 16px #FFB547}
.tcst-d4 .tcst-glass small{display:block;color:#8D95C7;font-size:13px}
.tcst-d4 .tcst-kv{display:grid;gap:12px}
.tcst-d4 .tcst-trip{margin-top:16px}
.tcst-d4 .tcst-trip h3{margin:0 0 10px;font-family:"Sora",sans-serif}
.tcst-d4 .tcst-tr{display:grid;grid-template-columns:22px 1fr 170px;gap:12px;padding:12px 0;border-top:1px solid rgba(255,255,255,.08)}
.tcst-d4 .tcst-tr i{width:12px;height:12px;margin-top:6px;border-radius:50%;border:3px solid #5A6299}
.tcst-d4 .tcst-tr:first-of-type i{border-color:#FFB547}
.tcst-d4 .tcst-tr .tcst-p{color:#B7BEE6;font-size:15px}.tcst-d4 .tcst-tr .tcst-w{text-align:right;color:#B7BEE6;font-size:15px}
@media (max-width:560px){.tcst-d4 .tcst-tr{grid-template-columns:22px 1fr}.tcst-d4 .tcst-tr .tcst-w{grid-column:2;text-align:left}}
.tcst-d4 .tcst-next{margin-top:10px;padding:12px 14px;border-radius:12px;background:rgba(255,181,71,.1)}

/* Simplified result pieces */
.tcst-meta{display:flex;flex-wrap:wrap;gap:10px 28px;margin:14px 0 4px;font-weight:700;font-size:17px}
.tcst-meta small{display:block;font-weight:600;font-size:13px;opacity:.7}
.tcst-latest{margin:12px 0 0;font-size:16px;opacity:.9}
.tcst-hist{margin-top:14px;border-top:1px solid rgba(127,140,160,.25);padding-top:10px}
.tcst-hist summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}.tcst-hist summary::-webkit-details-marker{display:none}.tcst-hist summary::before{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s}.tcst-hist[open] summary::before{transform:rotate(45deg)}
.tcst-hist ol{list-style:none;margin:6px 0 0;padding:0}
.tcst-hist li{display:grid;grid-template-columns:1fr auto;gap:2px 16px;padding:10px 0;border-top:1px solid rgba(127,140,160,.18)}
.tcst-hist li span{grid-column:1;opacity:.75;font-size:15px}
.tcst-hist li time{grid-column:2;grid-row:1 / span 2;opacity:.75;font-size:14px;text-align:right}
.tcst-msg{font-size:19px;font-weight:600;margin:8px 0 0}
.tcst-d1 .tcst-map.tcst-small{height:210px}
.tcst-d1 .tcst-map.tcst-small .tcst-track{top:150px}
.tcst-d1 .tcst-map.tcst-small .tcst-cities{display:flex;justify-content:space-between}
.tcst-d2 .tcst-s2{font-family:"Fredoka",sans-serif;font-size:clamp(28px,4vw,38px);font-weight:700;color:#B5650D}
.tcst-d2 .tcst-box{margin-top:6px}
.tcst-d3 .tcst-panel{margin-top:8px;padding:6px 22px}.tcst-d3 .tcst-panel .tcst-hist{margin-top:0;border-top:0;padding-top:0}
.tcst-d3 .tcst-stub{justify-content:center;align-items:center}
.tcst-d4 .tcst-meta.tcst-dark small{color:#8D95C7;opacity:1}
.tcst-d4 .tcst-hist{border-color:rgba(255,255,255,.12)}
