/* ====================================================================
   Ergo Container Direct — facade styles
   Brand matched to ergomotion.com:
   deep blue #043673 · accent blues #1C7FB8 / #2E9BD6 / #4197B4
   type: Plus Jakarta Sans · text #1D2020 / #646464
   ==================================================================== */

/* ---- Ergomotion brand font (local copy → works offline) ---- */
@font-face{
  font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:400 800; font-display:swap;
  src:url(assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:400 800; font-display:swap;
  src:url(assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root{
  /* Ergomotion palette (sampled from ergomotion.com) */
  --ink:#0C2745;                /* deep blue-ink: headings & dark surfaces */
  --navy:#043673;               /* BRAND primary deep blue */
  --navy2:#0A5BA6;              /* gradient lighter blue */
  --teal:#1C7FB8; --teal-d:#0E5E8E; --teal-l:#E8F2F8;   /* primary interactive accent (brand blue) */
  --amber:#2E9BD6; --amber-d:#1A5578; --gold:#4197B4;   /* bright accent (AI / key CTA) */
  --red:#C24D45; --green:#2E9E6B;
  --bg:#EEF2F6; --card:#FFFFFF; --line:#DDE4EC; --line2:#EAF0F5;
  --ink-70:#3A4B61; --muted:#646464; --muted2:#93A1B2;  /* body gray matches ergomotion.com */
  --shadow:0 10px 30px rgba(4,54,115,.08), 0 2px 6px rgba(4,54,115,.06);
  --shadow-lg:0 24px 60px rgba(4,54,115,.18);
  --r:16px; --r-sm:10px;
  --font:'Plus Jakarta Sans',-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --panel-w:360px;              /* assistant panel width */
  --dock-space:calc(var(--panel-w) + 48px);  /* gutter reserved when open */
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font); color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; line-height:1.45;
}
button{font-family:inherit; cursor:pointer}
h1,h2,h3,h4{margin:0; line-height:1.2}
.muted{color:var(--muted)} .tiny{font-size:12px}

/* ---------- Top bar ---------- */
.topbar{
  position:sticky; top:0; z-index:40; display:flex; align-items:center; gap:24px;
  padding:0 26px; height:64px;
  background:linear-gradient(100deg,var(--ink),var(--navy) 70%,var(--navy2));
  color:#fff; box-shadow:0 2px 14px rgba(15,36,64,.25);
}
.brand{display:flex; align-items:center; gap:13px}
.brand-logo{height:26px; width:auto; display:block}
.brand-divider{width:1px; height:22px; background:rgba(255,255,255,.28)}
.brand-sub{font-size:11px; letter-spacing:2px; text-transform:uppercase; color:#AFCCE4; font-weight:700; white-space:nowrap}
.top-nav{display:flex; gap:4px; margin-left:8px}
.top-nav a{
  color:#cdd9e6; text-decoration:none; font-size:13.5px; font-weight:600;
  padding:8px 14px; border-radius:8px;
}
.top-nav a.active{color:#fff; background:rgba(255,255,255,.12)}
.top-nav a:hover{color:#fff}
.account{margin-left:auto; display:flex; align-items:center; gap:12px}
.account-info{display:flex; flex-direction:column; text-align:right; line-height:1.15}
.account-name{font-weight:700; font-size:13.5px}
.account-role{font-size:11px; color:#9fb2c6}
.avatar{
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  font-weight:700; font-size:13px; background:var(--amber); color:#fff;
}

/* ---------- Stepper ---------- */
.stepper{
  display:flex; align-items:center; gap:0; justify-content:center;
  padding:16px 24px 4px; flex-wrap:wrap;
}
.step{display:flex; align-items:center; gap:10px; color:var(--muted2)}
.step .num{
  width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  font-weight:700; font-size:13px; background:#fff; border:2px solid var(--line);
  color:var(--muted2); transition:.25s;
}
.step .lbl{font-size:13px; font-weight:600}
.step.done .num{background:var(--teal); border-color:var(--teal); color:#fff}
.step.active .num{background:var(--ink); border-color:var(--ink); color:#fff; box-shadow:0 0 0 4px rgba(15,36,64,.12)}
.step.active .lbl{color:var(--ink)}
.step.done .lbl{color:var(--teal-d)}
.step-sep{width:46px; height:2px; background:var(--line); margin:0 10px}
.step-sep.done{background:var(--teal)}

/* ---------- Stage / cards ---------- */
.stage{max-width:1180px; margin:10px auto 120px; padding:14px 24px; transition:margin .28s ease}
.view{animation:fade .35s ease}
@keyframes fade{from{opacity:0; transform:translateY(8px)}to{opacity:1; transform:none}}
.view-head{margin-bottom:18px}
.view-head .kicker{font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--teal-d); font-weight:800}
.view-head h1{font-size:28px; margin-top:4px}
.view-head p{color:var(--muted); margin:6px 0 0; max-width:720px}
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow)}
.grid{display:grid; gap:18px}
.g2{grid-template-columns:1fr 1fr}
.g3{grid-template-columns:repeat(3,1fr)}
.pad{padding:22px}
.row{display:flex; gap:16px; align-items:center}
.spread{display:flex; justify-content:space-between; align-items:center}

/* ---------- Buttons ---------- */
.btn{
  border:none; border-radius:10px; padding:13px 22px; font-size:14.5px; font-weight:700;
  background:var(--teal); color:#fff; box-shadow:0 6px 16px rgba(28,127,184,.3); transition:.18s;
}
.btn:hover{transform:translateY(-1px); background:var(--teal-d)}
.btn.lg{padding:15px 30px; font-size:15.5px}
.btn.ghost{background:#fff; color:var(--ink); border:1.5px solid var(--line); box-shadow:none}
.btn.ghost:hover{border-color:var(--ink); background:#fff}
.btn.ink{background:var(--ink)} .btn.ink:hover{background:#06162b}
.btn.amber{background:var(--amber); box-shadow:0 6px 16px rgba(46,155,214,.3)} .btn.amber:hover{background:var(--teal-d)}
.btn:disabled{opacity:.45; cursor:not-allowed; transform:none}
.btnbar{display:flex; gap:12px; justify-content:space-between; margin-top:26px; align-items:center}

/* ---------- Start view ---------- */
.opt-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.opt{
  position:relative; padding:24px; border-radius:var(--r); cursor:pointer;
  background:var(--card); border:2px solid var(--line); transition:.2s;
}
.opt:hover{border-color:var(--teal); transform:translateY(-3px); box-shadow:var(--shadow)}
.opt.sel{border-color:var(--teal); box-shadow:0 0 0 4px var(--teal-l)}
.opt .ic{font-size:26px} 
.opt h3{margin:12px 0 6px; font-size:17px}
.opt p{margin:0; color:var(--muted); font-size:13.5px}
.opt .tag{position:absolute; top:14px; right:14px; font-size:10.5px; font-weight:800; letter-spacing:.5px;
  background:var(--teal-l); color:var(--teal-d); padding:4px 9px; border-radius:20px}
.defaults{display:grid; grid-template-columns:repeat(4,1fr); gap:0}
.def{padding:16px 18px; border-right:1px solid var(--line2)}
.def:last-child{border-right:none}
.def .k{font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--muted2); font-weight:700}
.def .v{font-size:15px; font-weight:700; margin-top:5px}
.def .v small{display:block; font-weight:500; color:var(--muted); font-size:12px}

/* IOR panel */
.ior{display:flex; gap:18px; align-items:flex-start; padding:22px;
  background:linear-gradient(120deg,#fff, var(--teal-l)); border:1.5px solid var(--teal);}
.ior .ic{font-size:30px}
.ior h3{font-size:18px}
.ior p{color:var(--ink-70); margin:6px 0 0; font-size:13.5px; max-width:640px}
.toggle{position:relative; width:54px; height:30px; border-radius:30px; background:var(--line);
  border:none; transition:.2s; flex:none}
.toggle.on{background:var(--teal)}
.toggle::after{content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%;
  background:#fff; transition:.2s; box-shadow:0 2px 5px rgba(0,0,0,.25)}
.toggle.on::after{left:27px}
.doclist{display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:16px}
.doc{display:flex; align-items:center; gap:10px; font-size:13px; padding:8px 12px;
  background:#fff; border:1px solid var(--line); border-radius:8px}
.doc .ck{color:var(--teal); font-weight:800}
.collapse{overflow:hidden; max-height:0; transition:max-height .35s ease, opacity .3s; opacity:0}
.collapse.open{max-height:260px; opacity:1}

/* ---------- Plan / 3D view ---------- */
.plan-grid{display:grid; grid-template-columns:340px 1fr; gap:18px}
.catalog{max-height:560px; overflow:auto}
.cat-item{display:flex; gap:12px; align-items:center; padding:13px 16px; border-bottom:1px solid var(--line2)}
.cat-item:last-child{border-bottom:none}
.cat-thumb{width:46px; height:46px; border-radius:9px; flex:none; display:grid; place-items:center;
  font-size:22px; background:var(--teal-l)}
.cat-meta{flex:1; min-width:0}
.cat-meta .nm{font-weight:700; font-size:13.5px}
.cat-meta .sk{font-size:11.5px; color:var(--muted2)}
.qty{display:flex; align-items:center; gap:8px}
.qty button{width:26px; height:26px; border-radius:7px; border:1px solid var(--line); background:#fff; font-weight:800; color:var(--ink)}
.qty input{width:44px; text-align:center; border:1px solid var(--line); border-radius:7px; padding:5px; font-weight:700}

.loadbox{position:relative; padding:0; overflow:hidden; display:flex; flex-direction:column}
.scene-head{display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid var(--line2)}
.scene-head .ttl{font-weight:800; font-size:15px}
.scene-head .ctl{display:flex; gap:8px}
.chip-btn{font-size:12px; font-weight:700; padding:7px 12px; border-radius:20px; border:1px solid var(--line);
  background:#fff; color:var(--ink-70)}
.chip-btn.on{background:var(--ink); color:#fff; border-color:var(--ink)}

.scene3d{position:relative; height:430px; background:
  radial-gradient(130% 100% at 50% 0%, #fbfdff, #eaf0f6 70%, #e2e9f1);
  cursor:grab; perspective:1500px; perspective-origin:50% 42%; overflow:hidden}
.scene3d.grab{cursor:grabbing}
.scene3d .floor-grid{position:absolute; inset:0; background-image:
  linear-gradient(rgba(27,58,94,.06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(27,58,94,.06) 1px, transparent 1px);
  background-size:34px 34px; transform:perspective(600px) rotateX(60deg) scale(2); transform-origin:center 80%; opacity:.6}
.world{position:absolute; left:50%; top:52%; width:0; height:0; transform-style:preserve-3d}
.box{position:absolute; left:0; top:0; transform-style:preserve-3d}
.face{position:absolute; left:50%; top:50%}
.eff-overlay{position:absolute; top:16px; left:20px; display:flex; gap:10px; flex-wrap:wrap; z-index:5}
.eff{background:rgba(255,255,255,.92); border:1px solid var(--line); border-radius:12px; padding:9px 14px; box-shadow:var(--shadow); backdrop-filter:blur(4px)}
.eff .k{font-size:10.5px; letter-spacing:1px; text-transform:uppercase; color:var(--muted2); font-weight:800}
.eff .v{font-size:19px; font-weight:800; line-height:1.1}
.eff.hl .v{color:var(--teal-d)}
.hintbar{position:absolute; bottom:12px; left:0; right:0; text-align:center; font-size:12px; color:var(--muted); z-index:5}
.fillbar{height:10px; border-radius:10px; background:var(--line2); overflow:hidden; margin-top:4px}
.fillbar > i{display:block; height:100%; background:linear-gradient(90deg,var(--teal),var(--teal-d)); transition:width .8s cubic-bezier(.2,.8,.2,1)}

/* ---------- Costing ---------- */
.fwd{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.fwd .f{padding:20px; border:2px solid var(--line); border-radius:var(--r); cursor:pointer; transition:.2s; position:relative; background:#fff}
.fwd .f:hover{border-color:var(--teal); transform:translateY(-2px)}
.fwd .f.sel{border-color:var(--teal); box-shadow:0 0 0 4px var(--teal-l)}
.fwd .f .tag{position:absolute; top:-11px; left:18px; font-size:10.5px; font-weight:800; letter-spacing:.5px; background:var(--teal); color:#fff; padding:4px 10px; border-radius:20px}
.fwd .f h3{font-size:16px}
.fwd .f .price{font-size:26px; font-weight:800; margin:10px 0 2px}
.fwd .f .sub{font-size:12.5px; color:var(--muted)}
.fwd .f .days{display:inline-block; margin-top:10px; font-size:12px; font-weight:700; color:var(--navy); background:var(--line2); padding:5px 11px; border-radius:20px}
.ldtable{width:100%; border-collapse:collapse}
.ldtable td{padding:12px 6px; border-bottom:1px solid var(--line2); font-size:14px}
.ldtable tr:last-child td{border-bottom:none}
.ldtable td:last-child{text-align:right; font-weight:700}
.ldtable .total td{font-size:17px; font-weight:800; color:var(--ink); border-top:2px solid var(--ink)}
.ldtable .note td{color:var(--muted); font-size:12px; font-weight:500}
.illus{display:inline-block; font-size:10.5px; font-weight:800; letter-spacing:.5px; color:var(--teal-d); background:var(--teal-l); padding:3px 9px; border-radius:20px}

/* ---------- Review / summary ---------- */
.sumline{display:flex; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--line2); font-size:14px}
.sumline:last-child{border-bottom:none}
.sumline .k{color:var(--muted)}
.sumline .v{font-weight:700}
.pill{font-size:11.5px; font-weight:800; padding:4px 10px; border-radius:20px; background:var(--teal-l); color:var(--teal-d)}

/* ---------- Confirmation ---------- */
.confirm{text-align:center; padding:50px 24px}
.check{width:92px; height:92px; border-radius:50%; margin:0 auto 22px; background:var(--teal); display:grid; place-items:center;
  box-shadow:0 14px 40px rgba(28,127,184,.4); animation:pop .5s cubic-bezier(.2,1.4,.4,1)}
.check svg{width:46px; height:46px}
@keyframes pop{from{transform:scale(.2); opacity:0}to{transform:scale(1); opacity:1}}
.confirm h1{font-size:30px}
.confirm .ord{display:inline-block; margin-top:14px; font-size:15px; font-weight:800; letter-spacing:1px; color:var(--ink);
  background:var(--line2); padding:10px 20px; border-radius:10px}
.confirm .items{max-width:560px; margin:26px auto 0; text-align:left}

/* ---------- Tracking ---------- */
.track-top{display:grid; grid-template-columns:1fr 360px; gap:18px}
.route{position:relative; height:220px; border-radius:var(--r); overflow:hidden;
  background:linear-gradient(180deg,#0f2440,#1b3a5e 60%,#27507d)}
.route .sea{position:absolute; inset:0; opacity:.3; background-image:
  radial-gradient(circle at 20% 40%, rgba(255,255,255,.1) 0 2px, transparent 3px),
  radial-gradient(circle at 70% 70%, rgba(255,255,255,.08) 0 2px, transparent 3px)}
.route svg{position:absolute; inset:0; width:100%; height:100%}
.port{position:absolute; bottom:24px; color:#fff; text-align:center; transform:translateX(-50%)}
.port .pin{font-size:22px}
.port .nm{font-size:12px; font-weight:800; margin-top:2px}
.port .sub{font-size:10.5px; color:#9fb2c6}
.ship{position:absolute; font-size:26px; transition:left 1.2s ease, top 1.2s ease; transform:translate(-50%,-50%); filter:drop-shadow(0 4px 6px rgba(0,0,0,.4))}
.eta-badge{position:absolute; top:16px; right:18px; background:rgba(255,255,255,.95); border-radius:12px; padding:10px 15px; box-shadow:var(--shadow)}
.eta-badge .k{font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--muted2); font-weight:800}
.eta-badge .v{font-size:18px; font-weight:800}

.milestones{position:relative; padding:6px 0}
.ms{display:flex; gap:16px; padding:0 0 4px}
.ms .rail{display:flex; flex-direction:column; align-items:center}
.ms .dot{width:22px; height:22px; border-radius:50%; background:#fff; border:3px solid var(--line); z-index:2; transition:.3s; display:grid; place-items:center; font-size:11px}
.ms .line{width:3px; flex:1; background:var(--line); margin:2px 0}
.ms:last-child .line{display:none}
.ms.done .dot{background:var(--teal); border-color:var(--teal); color:#fff}
.ms.done .line{background:var(--teal)}
.ms.current .dot{background:var(--amber); border-color:var(--amber); color:#fff; box-shadow:0 0 0 5px rgba(46,155,214,.2); animation:pulse 1.8s infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 5px rgba(46,155,214,.2)}50%{box-shadow:0 0 0 9px rgba(46,155,214,.08)}}
.ms .body{padding-bottom:22px; flex:1}
.ms .body .t{font-weight:700; font-size:14.5px}
.ms .body .d{font-size:12.5px; color:var(--muted); margin-top:2px}
.ms.current .body .t{color:var(--amber-d)}
.ms.pending{opacity:.55}

.detgrid{display:grid; grid-template-columns:1fr 1fr; gap:0}
.det{padding:12px 16px; border-bottom:1px solid var(--line2); border-right:1px solid var(--line2)}
.det:nth-child(2n){border-right:none}
.det .k{font-size:10.5px; letter-spacing:.8px; text-transform:uppercase; color:var(--muted2); font-weight:800}
.det .v{font-size:14px; font-weight:700; margin-top:3px; word-break:break-word}

.demohint{display:flex; align-items:center; gap:10px; justify-content:center; margin-top:18px; font-size:12.5px; color:var(--muted)}

/* ---------- AI dock ---------- */
.ai-dock{position:fixed; right:22px; bottom:22px; z-index:60}
.ai-fab{position:relative; width:60px; height:60px; border-radius:50%; border:none; color:#fff; font-size:24px;
  background:linear-gradient(135deg,var(--amber),var(--teal)); box-shadow:0 12px 30px rgba(46,155,214,.45)}
.ai-fab-glow{position:absolute; inset:-6px; border-radius:50%; background:var(--amber); opacity:.35; animation:pulse2 2s infinite; z-index:-1}
@keyframes pulse2{0%{transform:scale(1); opacity:.35}70%{transform:scale(1.5); opacity:0}100%{opacity:0}}
/* fab attention nudge when the assistant speaks while minimized (medium/mobile) */
.ai-fab.nudge{ animation:fabNudge .7s ease }
.ai-fab.nudge::after{ content:""; position:absolute; top:-2px; right:-2px; width:14px; height:14px; border-radius:50%;
  background:var(--amber); border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.25) }
@keyframes fabNudge{0%{transform:translateY(0)}30%{transform:translateY(-8px)}55%{transform:translateY(0)}72%{transform:translateY(-4px)}100%{transform:translateY(0)}}
.ai-panel{position:absolute; right:0; bottom:74px; width:var(--panel-w); max-height:min(560px, calc(100vh - 120px)); display:flex; flex-direction:column;
  background:#fff; border-radius:18px; box-shadow:var(--shadow-lg); border:1px solid var(--line);
  transform-origin:bottom right; transition:.25s; overflow:hidden}
.ai-panel.hidden{opacity:0; transform:scale(.9) translateY(10px); pointer-events:none}
.ai-head{display:flex; align-items:center; justify-content:space-between; padding:14px 16px;
  background:linear-gradient(100deg,var(--ink),var(--navy)); color:#fff}
.ai-id{display:flex; gap:11px; align-items:center}
.ai-orb{width:38px; height:38px; border-radius:11px; display:grid; place-items:center; font-size:18px;
  background:linear-gradient(135deg,var(--amber),var(--teal)); box-shadow:0 3px 10px rgba(46,155,214,.45)}
.ai-id-text{display:flex; flex-direction:column; line-height:1.2}
.ai-id-text strong{font-size:14.5px}
.ai-status{font-size:11.5px; color:#bcd; display:flex; align-items:center; gap:6px}
.ai-status .dot{width:7px; height:7px; border-radius:50%; background:#49d38a; display:inline-block; box-shadow:0 0 0 0 rgba(73,211,138,.6); animation:blink 2s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.4}}
.ai-min{background:transparent; border:none; color:#bcd; font-size:20px; line-height:1}
.ai-body{flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; background:#f7fafc; min-height:160px}
.msg{max-width:88%; padding:11px 14px; border-radius:14px; font-size:13.5px; line-height:1.45; animation:fade .3s}
.msg.ai{align-self:flex-start; background:#fff; border:1px solid var(--line); border-bottom-left-radius:4px}
.msg.me{align-self:flex-end; background:var(--ink); color:#fff; border-bottom-right-radius:4px}
.msg.ai b{color:var(--teal-d)}
.typing{align-self:flex-start; background:#fff; border:1px solid var(--line); border-radius:14px; padding:13px 16px; display:flex; gap:4px}
.typing i{width:7px; height:7px; border-radius:50%; background:var(--muted2); animation:tp 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s} .typing i:nth-child(3){animation-delay:.4s}
@keyframes tp{0%,60%,100%{transform:translateY(0); opacity:.4}30%{transform:translateY(-5px); opacity:1}}
.ai-chips{display:flex; gap:7px; flex-wrap:wrap; padding:0 14px 10px; background:#f7fafc}
.ai-chip{font-size:12.5px; font-weight:700; padding:8px 13px; border-radius:20px; border:1.5px solid var(--teal);
  background:#fff; color:var(--teal-d); transition:.15s}
.ai-chip:hover{background:var(--teal); color:#fff}
.ai-input{display:flex; gap:8px; padding:12px 14px; border-top:1px solid var(--line); background:#fff}
.ai-input input{flex:1; border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:13.5px; outline:none}
.ai-input input:focus{border-color:var(--teal)}
.ai-input button{border:none; background:var(--teal); color:#fff; border-radius:10px; padding:0 16px; font-weight:700}

/* ---------- Shop (eShop grid) ---------- */
.persona{display:flex; gap:12px; align-items:center; padding:12px 16px; margin-bottom:16px; font-size:13px;
  background:linear-gradient(120deg,#fff,var(--teal-l)); border:1px solid var(--teal); border-radius:12px}
.persona .ic{font-size:22px}
.persona b{color:var(--teal-d)}
.shop-wrap{display:grid; grid-template-columns:1fr 330px; gap:18px; align-items:start}
.shop-tools{display:flex; gap:10px; align-items:center; margin-bottom:14px; flex-wrap:wrap}
.tabs{display:flex; gap:6px; flex-wrap:wrap}
.tab{font-size:12.5px; font-weight:700; padding:8px 13px; border-radius:20px; border:1.5px solid var(--line); background:#fff; color:var(--ink-70)}
.tab.on{background:var(--ink); color:#fff; border-color:var(--ink)}
.tab:hover{border-color:var(--ink)}
.search{margin-left:auto; position:relative}
.search input{border:1.5px solid var(--line); border-radius:20px; padding:9px 14px 9px 34px; font-size:13.5px; width:210px; outline:none}
.search input:focus{border-color:var(--teal)}
.search .mg{position:absolute; left:13px; top:9px; color:var(--muted2)}
.shop-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.pcard{background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; display:flex; flex-direction:column; transition:.18s}
.pcard:hover{box-shadow:var(--shadow); transform:translateY(-2px)}
.p-img{height:120px; display:grid; place-items:center; background:#f2f6f9; position:relative}
.p-img svg{width:94px; height:72px}
.p-badge{position:absolute; top:10px; left:10px; font-size:9.5px; font-weight:800; letter-spacing:.4px; padding:3px 8px; border-radius:20px; color:#fff}
.p-cat{position:absolute; top:12px; right:12px; width:10px; height:10px; border-radius:50%}
.p-body{padding:13px 14px; display:flex; flex-direction:column; gap:7px; flex:1}
.p-name{font-weight:800; font-size:14px; line-height:1.2}
.p-sku{font-size:11px; color:var(--muted2); font-weight:600}
.p-blurb{font-size:12px; color:var(--muted); line-height:1.35; flex:1}
.p-size{display:flex; gap:5px; flex-wrap:wrap}
.p-size button{font-size:10.5px; font-weight:700; padding:4px 8px; border-radius:7px; border:1px solid var(--line); background:#fff; color:var(--ink-70)}
.p-size button.on{background:var(--teal-l); border-color:var(--teal); color:var(--teal-d)}
.p-foot{display:flex; align-items:center; justify-content:space-between; margin-top:4px; min-height:40px}
.p-price{font-weight:800; font-size:16px}
.p-price small{font-weight:600; color:var(--muted2); font-size:10px; display:block}
.p-add{border:none; background:var(--teal); color:#fff; border-radius:9px; padding:9px 15px; font-weight:800; font-size:13px}
.p-add:hover{background:var(--teal-d)}
.p-qty{display:flex; align-items:center; gap:9px}
.p-qty button{width:30px; height:30px; border-radius:8px; border:1px solid var(--line); background:#fff; font-weight:800; color:var(--ink)}
.p-qty b{min-width:40px; text-align:center; font-size:14px}

.cartrail{position:sticky; top:16px; align-self:start; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); overflow:hidden}
.cartrail h3{font-size:14px; padding:16px 16px 6px}
.cart-lines{max-height:300px; overflow:auto; padding:4px 16px}
.cline{display:flex; gap:8px; align-items:center; padding:9px 0; border-bottom:1px solid var(--line2)}
.cline:last-child{border-bottom:none}
.cline .nm{flex:1; font-size:12.5px; font-weight:700; line-height:1.25}
.cline .nm small{display:block; color:var(--muted2); font-weight:600; font-size:11px}
.cline .q{font-size:12px; color:var(--muted); font-weight:700; white-space:nowrap}
.cline .rm{border:none; background:none; color:var(--muted2); font-size:17px; line-height:1; cursor:pointer}
.cline .rm:hover{color:var(--red)}
.cart-empty{padding:34px 16px; text-align:center; color:var(--muted2); font-size:13px}
.cart-tot{padding:14px 16px; background:#f7fafc; border-top:1px solid var(--line)}
.cart-tot .r{display:flex; justify-content:space-between; font-size:13px; padding:3px 0}
.cart-tot .r .muted{color:var(--muted)}
.cart-tot .r.big{font-size:17px; font-weight:800; margin-top:6px; color:var(--ink)}
.cart-cta{padding:0 16px 16px; background:#f7fafc}
.cart-cta .btn{width:100%; justify-content:center}

/* ---------- Assistant-aware layout ----------
   When the assistant is open on a wide screen, shift the main content left so the
   docked panel never covers it. Minimizing the assistant returns full width. */
@media (min-width:1180px){
  body.ai-open .stage{ margin-left:auto; margin-right:var(--dock-space); }
}

/* ---------- Responsive-ish ---------- */
@media (max-width:980px){
  .plan-grid,.track-top,.shop-wrap{grid-template-columns:1fr}
  .opt-grid,.fwd,.g3{grid-template-columns:1fr}
  .shop-grid{grid-template-columns:1fr 1fr}
  .defaults{grid-template-columns:1fr 1fr}
  .top-nav{display:none}
  .cartrail{position:relative; top:0}
}
@media (max-width:620px){ .shop-grid{grid-template-columns:1fr} }

/* On phones/tablets the panel becomes a full-width bottom sheet (no overlap of cards) */
@media (max-width:760px){
  .ai-panel{position:fixed; left:12px; right:12px; bottom:92px; width:auto; max-height:70vh}
}

/* ====================================================================
   WAREHOUSE PORTAL — sidebar shell + portal screens (overrides/additions)
   ==================================================================== */
body{display:flex; min-height:100vh}

/* ---- Sidebar ---- */
.sidebar{width:248px; flex-shrink:0; background:linear-gradient(180deg,var(--navy),#06234a); color:#dbe6f5;
  display:flex; flex-direction:column; position:sticky; top:0; height:100vh}
.side-brand{padding:20px 20px 16px; display:flex; flex-direction:column; gap:8px}
.side-logo{height:24px; width:auto}
.side-sub{font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:#7fa2cf; font-weight:700}
.side-nav{padding:8px 12px; flex:1; overflow:auto}
.side-group{font-size:10.5px; text-transform:uppercase; letter-spacing:.9px; color:#6f93c0; padding:14px 12px 6px; font-weight:800}
.side-nav button{display:flex; align-items:center; gap:11px; width:100%; text-align:left; background:transparent; border:none;
  color:#c6d6ec; padding:10px 12px; border-radius:9px; font-size:13.5px; font-weight:600; margin-bottom:2px; transition:.15s}
.side-nav button:hover{background:rgba(255,255,255,.07); color:#fff}
.side-nav button.active{background:var(--teal); color:#fff; box-shadow:0 4px 12px rgba(28,127,184,.35)}
.side-nav .ic{font-size:15px; width:18px; text-align:center}
.side-badge{margin-left:auto; background:rgba(255,255,255,.18); font-size:11px; padding:1px 8px; border-radius:20px; font-weight:700}
.side-foot{padding:14px 18px; border-top:1px solid rgba(255,255,255,.1); font-size:11.5px; color:#8fb0d6}
/* ⇄ Switch customer type — in the top bar (always visible, matches Container-Direct) */
.top-switch{text-decoration:none; font-size:12.5px; font-weight:700; color:var(--teal-d);
  background:var(--teal-l); border:1px solid var(--line); padding:8px 13px; border-radius:9px;
  white-space:nowrap; transition:.15s}
.top-switch:hover{background:#dbeaf4; color:var(--navy)}
@media (max-width:720px){ .topsearch{display:none} }
.side-foot b{color:#fff}

/* ---- Main / topbar (white) ---- */
.main{flex:1; min-width:0; display:flex; flex-direction:column; transition:padding .28s ease}
.topbar{background:#fff; color:var(--ink); box-shadow:none; border-bottom:1px solid var(--line); gap:16px; height:62px}
.topbar h1{font-size:18px; font-weight:800}
.topsearch{margin-left:auto; display:flex; align-items:center; gap:8px; background:var(--bg); border:1px solid var(--line);
  border-radius:10px; padding:8px 12px; width:280px; color:var(--muted)}
.topsearch input{border:none; background:transparent; outline:none; font-size:13px; width:100%; color:var(--ink)}
.topbar .account{margin-left:0}
.topbar .account-name{color:var(--ink)} .topbar .account-role{color:var(--muted)}
.topbar .avatar{background:linear-gradient(135deg,var(--navy),var(--teal))}

.content{padding:24px 28px 90px; max-width:1240px; width:100%; transition:margin .28s ease, padding .28s ease}

/* ---------------------------------------------------------------
   AI dock layout contract — the assistant NEVER covers interactive content.
   The content "pulls in" (horizontal reflow) so nothing is overlapped, at any
   viewport height. Three gap-free regimes (assistant defaults open ≥1180,
   closed below — see app.js boot — so medium/mobile load with the sidebar):
     ≥1180px : right-docked panel; content reserves a right gutter. Sidebar stays.
     860–1179: when OPEN, the sidebar tucks away and content gutters beside the
               panel → full reflow, no overlap (sidebar returns when minimized).
     ≤859px  : full-width bottom sheet; sidebar hidden (mobile layout).
   --------------------------------------------------------------- */
/* NB: the gutter is a padding-right on .main (the flex column), NOT a margin on
   .content — .content is width:100% inside a flex column, so a margin would overflow
   instead of shrinking it. Padding the container reliably reserves the panel's space. */
@media (min-width:1180px){ body.ai-open .main{ padding-right:var(--dock-space) } }

@media (min-width:860px) and (max-width:1179px){
  body.ai-open .sidebar{ display:none }
  body.ai-open .main{ padding-right:var(--dock-space) }
  /* inner grids reflow to the narrower content column (only while open) */
  body.ai-open .kpis{ grid-template-columns:repeat(2,1fr) }
  body.ai-open .cart2, body.ai-open .two, body.ai-open .plan-grid, body.ai-open .addr-grid{ grid-template-columns:1fr }
  body.ai-open .shop-grid{ grid-template-columns:1fr 1fr }
}

@media (max-width:859px){
  .sidebar{ display:none }
  body.ai-open .ai-panel{ position:fixed; left:12px; right:12px; bottom:94px;
    width:auto; max-height:min(58vh, calc(100vh - 140px)); transform-origin:bottom center; }
  body.ai-open .content{ padding-bottom:140px }
}

.concept{background:#FBF3DF00; background:linear-gradient(0deg,#FEF6E9,#FEF6E9); color:#8a5a12; border:1px solid #f3d9ad;
  border-radius:10px; padding:10px 14px; font-size:12.5px; font-weight:600; margin-bottom:20px}

/* ---- Dashboard ---- */
.hero{padding:24px 26px; background:linear-gradient(120deg,var(--navy),#0c4f8c 55%,var(--teal)); color:#fff;
  border-radius:var(--r); margin-bottom:22px; display:flex; align-items:center; gap:20px; box-shadow:var(--shadow)}
.hero h2{font-size:21px} .hero p{color:#cfe0f3; font-size:13.5px; margin-top:6px; max-width:580px}
.hero p b{color:#fff}
.hero-cta{margin-left:auto; display:flex; gap:10px}
.btn.light{background:rgba(255,255,255,.16); color:#fff; box-shadow:none; border:1px solid rgba(255,255,255,.3)}
.btn.light:hover{background:rgba(255,255,255,.26)}
.btn.wht{background:#fff; color:var(--navy); box-shadow:none}
.kpis{display:grid; grid-template-columns:repeat(4,1fr); gap:16px}
.kpi{padding:18px 20px} .kpi .lbl{font-size:12px; color:var(--muted); display:flex; align-items:center; gap:8px}
.kpi .val{font-size:27px; font-weight:800; margin-top:8px; letter-spacing:-.5px} .kpi .sub{font-size:11.5px; margin-top:4px}
.kpi .sub.ok{color:var(--green)} .kpi .ki{width:30px; height:30px; border-radius:9px; display:grid; place-items:center; font-size:15px; background:var(--teal)}
.ki.b2{background:#2E9BD6}.ki.b3{background:var(--green)}.ki.b4{background:#4197B4}
.sec-title{font-size:15px; font-weight:800; margin:26px 0 14px; display:flex; align-items:center; gap:10px}
.sec-title.sm{font-size:13.5px; margin:20px 0 10px}
.sec-title .link{margin-left:auto; font-size:12.5px; color:var(--teal-d); font-weight:700; cursor:pointer}

/* ---- Tables + status pills ---- */
.tbl{width:100%; border-collapse:collapse; font-size:13px}
.tbl thead th{text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); font-weight:700; padding:12px 16px; border-bottom:1px solid var(--line)}
.tbl td{padding:13px 16px; border-bottom:1px solid var(--line2)} .tbl tbody tr:last-child td{border-bottom:none}
.tbl tr.clk{cursor:pointer} .tbl tr.clk:hover{background:var(--bg)}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace}
.pill{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:20px}
.pill::before{content:""; width:7px; height:7px; border-radius:50%; background:currentColor}
.p-ok,.p-delivered{background:#e9f9f2; color:#047857} .p-transit{background:#e8f0fe; color:#1d4ed8}
.p-fulfill{background:#f1f5f9; color:#475569} .p-finance{background:#FEF6E9; color:#b45309} .p-placed{background:#ede9fe; color:#6d28d9}

/* ---- Shop: product card version toggle + bar ---- */
.prod{display:flex; flex-direction:column; overflow:hidden; transition:.18s}
.prod:hover{box-shadow:var(--shadow); transform:translateY(-2px)}
.prod .p-body{padding:14px; display:flex; flex-direction:column; gap:7px; flex:1}
.p-ver{display:flex; gap:6px}
.p-ver button{flex:1; font-size:11px; font-weight:700; padding:7px 6px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--ink-70)}
.p-ver button small{color:var(--muted2); font-weight:600}
.p-ver button.on{background:var(--teal-l); border-color:var(--teal); color:var(--teal-d)}
.p-ver.na{font-size:11px; color:var(--muted2); font-weight:600; padding:4px 0}
.shopbar{position:sticky; bottom:16px; margin-top:20px; display:flex; align-items:center; justify-content:space-between;
  background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); padding:14px 18px; font-size:14px}

/* ---- Checkout mini-stepper ---- */
.costep{display:flex; align-items:center; justify-content:center; margin:0 0 22px; flex-wrap:wrap}
.cstep{display:flex; align-items:center; gap:9px; color:var(--muted2)}
.cstep .n{width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:12.5px; background:#fff; border:2px solid var(--line); color:var(--muted2)}
.cstep .l{font-size:13px; font-weight:700}
.cstep.done .n{background:var(--teal); border-color:var(--teal); color:#fff} .cstep.done .l{color:var(--teal-d)}
.cstep.active .n{background:var(--ink); border-color:var(--ink); color:#fff; box-shadow:0 0 0 4px rgba(4,54,115,.12)} .cstep.active .l{color:var(--ink)}
.csep{width:44px; height:2px; background:var(--line); margin:0 10px} .csep.done{background:var(--teal)}
.cstep{cursor:pointer}

/* ---- Cart ---- */
.cart2{display:grid; grid-template-columns:1fr 330px; gap:22px; align-items:start}
.cline2{display:flex; align-items:center; gap:14px; padding:14px 16px; border-bottom:1px solid var(--line2)}
.cline2:last-child{border-bottom:none}
.cthumb{width:50px; height:50px; border-radius:10px; flex:none; display:grid; place-items:center; background:var(--teal-l)}
.cthumb svg{width:70%; height:70%}
.cmeta{flex:1; min-width:0} .cmeta b{font-size:13.5px}
.eng{display:inline-block; margin-top:4px; font-size:10.5px; font-weight:800; color:var(--teal-d); background:var(--teal-l); padding:2px 8px; border-radius:20px}
.lp{width:92px; text-align:right; font-weight:700; font-size:13.5px}
.rm{border:none; background:none; color:var(--muted2); font-size:18px; cursor:pointer} .rm:hover{color:var(--red)}
.splitnote{background:#e8f0fe; border:1px solid #c7dafc; color:#1d4ed8; border-radius:12px; padding:12px 16px; font-size:12.5px; margin-top:16px; line-height:1.5}
.summary{padding:20px; position:sticky; top:84px} .summary h3{font-size:15px; margin-bottom:12px}
.sumrow{display:flex; justify-content:space-between; font-size:13px; padding:7px 0; color:#475569}
.summary .terms{background:var(--bg); border-radius:10px; padding:12px 14px; font-size:11.5px; color:var(--muted); margin:12px 0 14px; line-height:1.5}
.summary .terms b{color:var(--navy)}
.center{display:flex; justify-content:center; margin-top:18px}
.empty{text-align:center; padding:50px 20px; color:var(--muted); font-size:30px}
.empty .e-ttl{font-size:16px; color:var(--ink); font-weight:700; margin-top:8px} .empty p{font-size:13px; margin-top:6px}

/* ---- Plan: mode optimizer ---- */
.modes{display:flex; flex-direction:column; gap:10px; padding:10px 14px}
.mode{position:relative; border:2px solid var(--line); border-radius:12px; padding:13px 15px; cursor:pointer; transition:.18s}
.mode:hover{border-color:var(--teal)} .mode.sel{border-color:var(--teal); box-shadow:0 0 0 4px var(--teal-l)}
.mode .tag{position:absolute; top:-10px; right:12px; font-size:10px; font-weight:800; letter-spacing:.4px; background:var(--teal); color:#fff; padding:3px 9px; border-radius:20px}
.mode .m-top{display:flex; justify-content:space-between; align-items:baseline} .mode .m-price{font-size:18px; font-weight:800}
.mode .m-best{font-size:12px; font-weight:700; color:var(--teal-d); margin-top:3px}
.mode .m-note{font-size:11.5px; color:var(--muted); margin-top:2px}
.mode .m-pu{font-size:11.5px; color:var(--ink-70); margin-top:8px; border-top:1px solid var(--line2); padding-top:7px}

/* ---- Review: shipment summary cards ---- */
.ship-sum{padding:18px 20px; margin-bottom:16px}
.ss-h{display:flex; align-items:center; gap:12px; margin-bottom:10px}
.ss-ic{width:40px; height:40px; border-radius:10px; display:grid; place-items:center; font-size:20px; background:var(--teal-l)}
.ss-ic.parcel{background:#e8f0fe}

/* ---- Confirmation ---- */
.confirm{text-align:center; padding:30px 20px 10px}
.confirm .check{width:70px; height:70px; border-radius:50%; background:var(--green); display:grid; place-items:center; margin:0 auto 18px; box-shadow:0 14px 40px rgba(46,160,110,.4)}
.confirm .check svg{width:34px; height:34px}
.confirm h1{font-size:26px} .confirm .ord{font-size:20px; font-weight:800; color:var(--navy); margin:16px 0 6px}
.splitcard{max-width:560px; margin:14px auto 0; background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px 22px; font-size:13.5px; line-height:1.6; box-shadow:var(--shadow)}

/* ---- Tracking (split tracks) ---- */
.track-head{margin-bottom:20px}
.track-head .back{font-size:13px; color:var(--teal-d); font-weight:700; cursor:pointer; margin-bottom:10px; display:inline-block}
.track-toggle{display:flex; gap:8px; margin-bottom:18px}
.track-toggle button{font-size:13px; font-weight:700; padding:9px 16px; border-radius:10px; border:1.5px solid var(--line); background:#fff; color:var(--ink-70)}
.track-toggle button.on{background:var(--ink); color:#fff; border-color:var(--ink)}
.eta-banner{background:linear-gradient(120deg,var(--teal),#0e5e8e); color:#fff; padding:18px 22px; border-radius:var(--r); display:flex; align-items:center; gap:16px; margin-bottom:22px}
.eta-banner .eb-ic{font-size:30px} .eta-banner .eb-big{font-size:21px; font-weight:800} .eta-banner .eb-track{font-size:15px; font-weight:700}
.two{display:grid; grid-template-columns:1fr 340px; gap:22px; align-items:start}
.timeline{padding:22px 24px}
.tstep{display:flex; gap:16px; position:relative; padding-bottom:24px}
.tstep:last-child{padding-bottom:0}
.tstep .tdot{width:28px; height:28px; border-radius:50%; flex:none; display:grid; place-items:center; z-index:1; background:#fff; border:2px solid var(--line); color:var(--muted2); font-size:12px}
.tstep::before{content:""; position:absolute; left:13px; top:28px; bottom:0; width:2px; background:var(--line)}
.tstep:last-child::before{display:none}
.tstep.done .tdot{background:var(--green); border-color:var(--green); color:#fff} .tstep.done::before{background:var(--green)}
.tstep.current .tdot{background:var(--teal); border-color:var(--teal); color:#fff; box-shadow:0 0 0 5px rgba(28,127,184,.18)}
.tstep .tbody b{font-size:13.5px} .tstep.pending .tbody b{color:var(--muted2)}
.tstep .td{font-size:12px; color:#475569; margin-top:3px}
.docs{display:flex; gap:10px; flex-wrap:wrap}
.doc{display:flex; align-items:center; gap:8px; padding:11px 15px; border:1px solid var(--line); border-radius:10px; font-size:12.5px; font-weight:700; background:#fff; cursor:pointer}
.doc:hover{border-color:var(--teal); color:var(--teal-d)}
.ship-card{padding:20px; display:grid; grid-template-columns:1fr 1fr; gap:18px 24px}
.ship-card .b{font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.4px; font-weight:700; margin-bottom:4px}
.ship-card .v{font-size:13.5px; font-weight:600}

/* ---- Addresses / Account ---- */
.addr-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:16px}
.addr{padding:18px 20px} .addr h3{font-size:14.5px; display:flex; align-items:center; gap:8px}
.addr .dft{font-size:10.5px; font-weight:800; color:var(--teal-d); background:var(--teal-l); padding:2px 8px; border-radius:20px}
.arow{display:flex; gap:8px; font-size:12.5px; margin-top:9px; color:#475569}
.acode{font-size:11.5px; color:var(--muted); margin-top:12px; padding-top:10px; border-top:1px solid var(--line)}
.deflist{padding:4px 0} .dr{display:flex; justify-content:space-between; padding:13px 20px; border-bottom:1px solid var(--line2); font-size:13px}
.dr:last-child{border-bottom:none} .dr span{color:var(--muted)} .dr b .pill,.dr b.ok,.ok{color:var(--green)}
.navycard{padding:18px 20px; margin-top:16px; background:var(--navy); color:#fff}
.navycard b{font-size:14px} .navycard p{font-size:12.5px; color:#cfe0f3; margin:8px 0 14px; line-height:1.5}

/* ---- Toast ---- */
.toast{position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--ink); color:#fff;
  padding:13px 22px; border-radius:12px; font-size:13.5px; font-weight:600; box-shadow:0 10px 30px rgba(0,0,0,.25);
  opacity:0; pointer-events:none; transition:.3s; z-index:100} .toast.show{opacity:1; transform:translateX(-50%) translateY(0)}

@media (max-width:1000px){ .cart2,.two,.plan-grid{grid-template-columns:1fr} .kpis{grid-template-columns:repeat(2,1fr)} .ship-card{grid-template-columns:1fr} .summary{position:static} }
