
:root{--red:#a41f29;--reddeep:#75141e;--sea:#35aca8;--sea2:#80c8c2;--ink:#212a35;--muted:#718090;--line:#e5e9ec;--canvas:#f5f7f9;--good:#279873;--warn:#ba8732;--bad:#c44750;--shadow:0 10px 28px rgba(25,37,50,.06);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink)}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a4dad9;outline-offset:2px}h1,h2,h3{line-height:1.2;margin:0}h1{font-size:27px}h2{font-size:21px}h3{font-size:16px}p{line-height:1.5}.hidden{display:none!important}.muted{color:var(--muted)}.tiny{font-size:11px}.sm{font-size:12px}.uppercase{text-transform:uppercase;letter-spacing:.11em}.strong{font-weight:800}
#app{min-height:100vh}.loading-shell{display:grid;place-content:center;text-align:center;height:100vh;color:#889}.spinner{width:36px;height:36px;border:4px solid #ddd;border-top-color:var(--red);border-radius:50%;animation:spin 1s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}
.signin{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:white}.signin-art{background:linear-gradient(140deg,#79151e,#b7222b 56%,#34ada9);padding:clamp(25px,8vw,80px);color:white;display:flex;flex-direction:column;justify-content:center;gap:25px}.signin-art img{height:130px;width:130px;object-fit:contain;background:#fff;border-radius:20px;padding:10px}.signin-art h1{font-size:clamp(30px,5vw,48px);max-width:590px}.signin-art p{font-size:17px;max-width:600px;color:#fffde8}.signin-main{display:grid;place-items:center;padding:30px}.signin-box{width:min(100%,420px);display:grid;gap:18px}.signin-box .pill{justify-self:start}.signin-box label{display:grid;gap:8px}.signin-box h2{font-size:26px}.signin-box input{width:100%}.signin-footer{font-size:12px;color:var(--muted)}.link{color:#157b7d;text-decoration:underline;cursor:pointer}
.layout{min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr)}.sidebar{background:linear-gradient(155deg,var(--reddeep),var(--red) 78%,#b13e42);color:white;position:sticky;top:0;height:100vh;overflow-y:auto;z-index:8;display:flex;flex-direction:column}.sidetop{padding:22px 16px;border-bottom:1px solid #ffffff22}.sidebrand{font-size:13px;font-weight:850;line-height:1.28;letter-spacing:.04em}.sidebrand small{font-size:10px;font-weight:500;opacity:.8}.side-nav{display:grid;gap:2px;padding:12px 7px 28px;flex:1}.nav-btn,.nav-link{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 12px;background:transparent;color:#fff;border-radius:9px;font-size:13px;line-height:1.1}.nav-btn:hover,.nav-link:hover{background:#ffffff18}.nav-btn.active{background:#fff;color:var(--reddeep);font-weight:750;box-shadow:0 2px 10px #0001}.nav-ico{width:22px;flex:none;text-align:center;font-size:17px}.group-label{font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#ffe0de88;padding:18px 11px 6px}.sidefoot{padding:15px;border-top:1px solid #ffffff24}.mainarea{min-width:0}.topbar{height:92px;background:#fff;display:flex;gap:18px;align-items:center;padding:15px clamp(15px,3vw,38px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:6}.topbar .brand-logo{height:68px;width:72px;object-fit:contain}.brandlabel{font-weight:850;letter-spacing:.02em;font-size:17px;line-height:1.25}.brandlabel small{font-weight:500;color:var(--sea);font-size:12px}.top-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.nav-toggle{display:none;background:#f6f6f6;border-radius:10px;padding:10px 12px;font-size:18px}.content{max-width:1350px;margin:auto;padding:29px clamp(15px,3vw,38px) 80px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px;flex-wrap:wrap}.page-head h1{font-size:25px}.page-head .sub{color:var(--muted);margin-top:5px}.line{height:3px;background:linear-gradient(90deg,var(--red),var(--sea));margin:18px 0 24px;border-radius:99px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:10px 15px;border-radius:9px;background:linear-gradient(100deg,var(--red),#c7494c);color:white;font-weight:720;box-shadow:0 3px 10px #a41f2922}.btn:hover{filter:brightness(.97)}.btn.secondary{background:#fff;border:1px solid #ccd7dc;color:#31434e;box-shadow:none}.btn.sea{background:linear-gradient(110deg,#2aa9a3,#67c4a7)}.btn.ghost{background:transparent;color:var(--reddeep);box-shadow:none}.btn.danger{background:var(--bad)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.small{min-height:31px;padding:7px 11px;font-size:12px}.btnrow{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:90px;padding:6px 10px;font-size:12px;font-weight:700;background:#e9eff1;color:#4d6473}.pill.good{background:#e6f6ec;color:#19865a}.pill.warn{background:#fff3db;color:#9b6c19}.pill.bad{background:#ffebee;color:#b33444}.pill.neutral{background:#e8edf2;color:#6f8493}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:var(--shadow);min-width:0}.card+.card{margin-top:17px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}.card-head h3{font-size:17px}.card h2{font-size:23px}.hero{background:linear-gradient(112deg,#b52c36 0%,#bb3c43 40%,#3db4ac 100%);color:white;padding:32px 38px;display:flex;justify-content:space-between;gap:22px;align-items:center;border-radius:17px;margin-bottom:25px;box-shadow:0 12px 25px #b3343b18}.hero h1{font-size:30px;margin:10px 0}.hero p{color:#fffde9;margin:4px 0}.hero small{text-transform:uppercase;letter-spacing:.14em;color:#fffac9}.hero-date{text-align:right;font-weight:800;font-size:26px;white-space:nowrap}.hero-date small{display:block;font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;margin-top:6px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:18px -24px -24px;border-top:1px solid var(--line)}.stat{padding:26px 24px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.stat:nth-child(3n){border-right:0}.stat strong{display:block;font-size:35px;line-height:1.05}.stat span{display:block;color:#6b7c87;font-size:12px;font-weight:800;letter-spacing:.04em;margin-top:9px;text-transform:uppercase}.stat small{display:block;color:#96a4ab;margin-top:7px}.stack{display:grid;gap:18px}.grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.service-list{display:grid}.service{display:flex;align-items:center;gap:14px;padding:18px 3px;border-bottom:1px solid var(--line)}.service:last-child{border-bottom:0}.service-icon{font-size:21px;border-radius:50%;height:38px;width:38px;display:grid;place-items:center;background:#e9f6f5}.service-name{font-weight:750}.service-detail{margin-left:auto;color:#7c8b92;text-align:right;font-size:12px}.notice{border-radius:12px;padding:14px 17px;background:#e6f4f6;border:1px solid #cde9ee;color:#31596b;margin:13px 0;line-height:1.55}.notice.warning{background:#fff8e7;border-color:#f3dfb0;color:#825b19}.notice.danger{background:#fff0f1;border-color:#ffd5d9;color:#a52a39}.notice.success{background:#effaf1;border-color:#c7ebd4;color:#257950}.empty{text-align:center;padding:45px 16px;color:var(--muted)}.empty .symbol{font-size:47px;display:block;margin-bottom:15px}.empty strong{display:block;color:var(--ink);font-size:21px}.empty p{max-width:480px;margin:12px auto}.list{display:grid;gap:11px}.listrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:white;flex-wrap:wrap}.listrow strong{display:block}.listrow small{color:var(--muted)}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}.table th{background:#f2f6f7;font-size:11px;color:#596f79;text-transform:uppercase;letter-spacing:.05em;text-align:left}.table td,.table th{padding:12px;border-bottom:1px solid var(--line)}.table tbody tr:hover{background:#fbfdfd}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.field{display:grid;gap:7px;font-size:12px;color:#42505a;font-weight:700}.field.full{grid-column:1/-1}.field input,.field select,.field textarea,.input{width:100%;border:1px solid #d2dce1;border-radius:8px;background:white;padding:12px;color:var(--ink);min-height:43px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#3ab1ae;box-shadow:0 0 0 3px #2daaa41c}.field textarea{min-height:95px;resize:vertical}.field input[readonly]{background:#f1f5f6}.stepper{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:23px}.step{display:flex;align-items:center;gap:7px;padding:9px 10px;border-radius:8px;background:#edf0f1;color:#71808a;font-size:11px;flex:1;min-width:110px}.step b{background:#d6dce0;border-radius:50%;height:21px;width:21px;display:grid;place-items:center;color:#536778}.step.active{background:#f6e2e4;color:var(--reddeep);font-weight:800}.step.active b,.step.done b{background:var(--red);color:#fff}.step.done{background:#edf7f1;color:#3a865e}.wizard-actions{margin-top:22px;display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.goods-card{border:1px solid #d9e1e3;border-radius:12px;padding:17px;margin-bottom:12px;background:#fbfcfc}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.filters input,.filters select{min-height:39px;padding:9px 12px;border-radius:9px;border:1px solid var(--line);background:white;max-width:100%}.gate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gate-check{border:1px solid var(--line);border-radius:11px;padding:14px}.gate-check span{display:block;color:var(--muted);font-size:12px}.gate-check strong{display:block;margin-top:5px}.dev-note{font-family:ui-monospace,monospace;font-size:12px;word-break:break-all}.toast{position:fixed;bottom:24px;right:22px;background:#173947;color:white;padding:15px 20px;border-radius:11px;z-index:30;max-width:390px;box-shadow:0 15px 30px #0002}.toast.error{background:#9f2932}.overlay{position:fixed;inset:0;background:#17202a88;display:grid;place-items:center;z-index:20;padding:15px}.modal{background:#fff;border-radius:17px;width:min(100%,660px);max-height:86vh;overflow:auto;padding:25px;box-shadow:0 25px 80px #0003}.modal h2{margin-bottom:20px}.divider{height:1px;background:var(--line);margin:15px 0}.code{background:#f2f5f6;border:1px solid var(--line);font-family:monospace;padding:13px;border-radius:8px;font-size:12px;overflow:auto}.logo-mark{height:70px;object-fit:contain}.footerinfo{display:flex;justify-content:space-between;color:#83929d;font-size:12px;padding-top:25px;gap:12px;flex-wrap:wrap}.badge-info{background:#fff3d8;color:#a1711a;border-radius:7px;padding:8px;font-size:12px}
@media(max-width:1100px){.layout{grid-template-columns:74px minmax(0,1fr)}.sidebar{width:74px}.sidebrand,.nav-label,.group-label,.sidefoot .nav-label{display:none}.nav-btn,.nav-link{justify-content:center;padding:15px 7px}.nav-ico{font-size:21px}.sidetop{padding:22px 12px}.sidetop .sidebrand{display:none}}
@media(max-width:800px){.signin{grid-template-columns:1fr}.signin-art{padding:25px;min-height:230px}.signin-art img{height:70px;width:70px}.signin-art h1{font-size:25px}.signin-art p{font-size:13px}.signin-main{padding:28px 20px}.grid2,.grid3{grid-template-columns:1fr}.topbar{height:75px}.topbar .brand-logo{height:54px;width:58px}.brandlabel{font-size:14px}.brandlabel small{font-size:11px}.top-actions .hide-mobile{display:none}.hero{padding:22px;flex-wrap:wrap}.hero h1{font-size:24px}.hero-date{text-align:left;font-size:17px}.hero-date small{display:inline;margin-left:8px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat:nth-child(3n){border-right:1px solid var(--line)}.stat:nth-child(2n){border-right:0}.formgrid,.gate-grid{grid-template-columns:1fr}}
@media(max-width:600px){.layout{display:block}.sidebar{position:fixed;top:0;left:0;width:235px;transform:translateX(-101%);transition:transform .2s;box-shadow:0 0 30px #0003}.layout.open .sidebar{transform:translateX(0)}.sidetop .sidebrand,.nav-label,.group-label,.sidefoot .nav-label{display:block}.nav-btn,.nav-link{justify-content:flex-start;padding:13px}.nav-ico{font-size:18px}.nav-toggle{display:block}.topbar{gap:6px;padding:8px 12px}.topbar .brand-logo{height:47px;width:47px}.top-actions{gap:4px}.top-actions .btn.small{padding:8px;font-size:11px}.content{padding:21px 13px 60px}.card{padding:17px}.stats{margin:17px -17px -17px}.stat{padding:18px 14px}.stat strong{font-size:28px}.page-head h1{font-size:22px}.step{min-width:35px;flex:0 0 auto}.step .step-title{display:none}.step.active{flex:auto}.step.active .step-title{display:inline}.hero{padding:20px}.hero h1{font-size:24px}.service{padding:15px 0}.service-detail{max-width:140px}.hide-phone{display:none}}
@media print{.sidebar,.topbar,.btn,.filters,.footerinfo,.wizard-actions,.nav-toggle{display:none!important}.layout{display:block}.content{padding:0;max-width:none}.card{box-shadow:none;break-inside:avoid}.page-head{margin:0}.hero{background:#fff;color:black;border:1px solid #888}.hero p{color:black}}


/* TLI compact icon rail, expand on touch or hover, and account header */
.tli-rail-menu{display:none;width:42px;height:42px;border-radius:9px;border:1px solid #ffffff46;background:#ffffff18;color:#fff;font-size:22px}
.tli-hmrc-bell{width:38px;height:38px;background:#fff;color:#a41f29;border-radius:9px;border:1px solid #e3e8ed;font-size:22px}
.tli-profile-menu{position:relative}.tli-profile-trigger{display:flex;align-items:center;gap:7px;max-width:290px;padding:9px 11px;border:1px solid #e5e9ed;border-radius:10px;background:#fff;color:#253848;font-size:11px;font-weight:800}.tli-profile-trigger:hover{background:#fff4f5}
.tli-name-full{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tli-name-short{display:none}
.tli-profile-options{position:absolute;right:0;top:calc(100% + 8px);min-width:235px;border:1px solid #e3e8ee;border-radius:13px;background:white;padding:8px;box-shadow:0 18px 38px #15283b2d;z-index:80;display:flex;flex-direction:column}
.tli-profile-options[hidden],.tli-rail-curtain[hidden]{display:none!important}
.tli-profile-options button,.tli-profile-options a{display:block;text-decoration:none;width:100%;background:#fff;text-align:left;color:#354b5d;border:0;border-radius:8px;padding:12px;font-size:12px;font-weight:700}.tli-profile-options button:hover,.tli-profile-options a:hover{background:#f4f7f9;color:#a41f29}
.tli-rail-curtain{position:fixed;inset:0;z-index:47;background:#14253472;border:0}
.tli-arrival-card p{font-size:12px;color:#738391;padding:12px 0;line-height:1.7}.tli-arrival-card p strong{color:#394b5c}
@media(min-width:601px) and (max-width:1100px){.sidebar{transition:width .2s;z-index:48}.sidebar:is(:hover,:focus-within),.layout.open .sidebar{width:245px;box-shadow:10px 0 24px #182b3d33}.sidebar:is(:hover,:focus-within) :is(.nav-label,.group-label,.sidebrand),.layout.open .sidebar :is(.nav-label,.group-label,.sidebrand){display:block!important}.sidebar:is(:hover,:focus-within) :is(.nav-btn,.nav-link),.layout.open .sidebar :is(.nav-btn,.nav-link){justify-content:flex-start;padding:12px}.tli-rail-menu{display:block}.sidebar .sidetop{display:flex;flex-wrap:wrap;gap:7px}}
@media(max-width:900px){.tli-name-full{display:none}.tli-name-short{display:inline}}
@media(max-width:600px){.layout{display:block!important}.mainarea{margin-left:60px!important;width:calc(100% - 60px)}.sidebar{position:fixed!important;left:0!important;top:0!important;width:60px!important;height:100dvh!important;transform:none!important;z-index:55!important;transition:width .2s!important}.layout.open .sidebar{width:min(260px,88vw)!important;box-shadow:8px 0 25px #1c2a3c44!important}.tli-rail-menu{display:block}.sidebar .sidetop{padding:10px 7px!important;display:flex;justify-content:center;align-items:center}.sidebar :is(.sidebrand,.nav-label,.group-label){display:none!important}.layout.open .sidebar :is(.sidebrand,.nav-label,.group-label){display:block!important}.sidebar :is(.nav-btn,.nav-link){justify-content:center!important;padding:14px 6px!important}.layout.open .sidebar :is(.nav-btn,.nav-link){justify-content:flex-start!important;padding:12px!important}.topbar{height:auto!important;min-height:77px;display:flex;flex-wrap:wrap;gap:6px!important;padding:8px 10px!important}.topbar .nav-toggle{display:none!important}.topbar .brand-logo{height:43px!important;width:43px!important}.topbar .brandlabel{flex:1;min-width:0;font-size:12px!important}.topbar .brandlabel small{font-size:9px!important}.topbar .top-actions{width:100%;margin-left:0!important;justify-content:flex-end;padding-top:4px;border-top:1px solid #e8edf0;gap:5px!important}.tli-hmrc-bell{height:33px;width:33px}.tli-profile-trigger{padding:7px 9px}.content{padding:18px 12px 50px!important}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none!important}}

/* Desktop compact icon rail; full menu on hover, focus, or explicit toggle. */
@media(min-width:1101px){
 .layout{grid-template-columns:74px minmax(0,1fr)}
 .sidebar{width:74px;z-index:52;transition:width .22s ease}
 .sidebar .sidebrand,.sidebar .nav-label,.sidebar .group-label{display:none}
 .sidebar .nav-btn,.sidebar .nav-link{justify-content:center;padding:15px 7px}
 .sidebar .nav-ico{font-size:21px}
 .sidebar .sidetop{padding:17px 11px;display:flex;flex-wrap:wrap;gap:7px}
 .tli-rail-menu{display:block}
 .sidebar:is(:hover,:focus-within),.layout.open .sidebar{width:245px;box-shadow:10px 2px 28px #182a3e35}
 .sidebar:is(:hover,:focus-within) .sidebrand,.sidebar:is(:hover,:focus-within) .nav-label,.sidebar:is(:hover,:focus-within) .group-label,.layout.open .sidebar .sidebrand,.layout.open .sidebar .nav-label,.layout.open .sidebar .group-label{display:block}
 .sidebar:is(:hover,:focus-within) .nav-btn,.sidebar:is(:hover,:focus-within) .nav-link,.layout.open .sidebar .nav-btn,.layout.open .sidebar .nav-link{justify-content:flex-start;padding:12px}
}
