/* AetherCanConnect design system — carried over from the approved demo:
   Hanken Grotesk body / Schibsted Grotesk display, teal accent, soft panels. */
:root {
  --ink: #15202E; --ink2: #46566F; --mut: #7E8B9C;
  --teal: #0E8C8C; --tealDk: #0A6F70; --tealSoft: #E4F1F1;
  --line: #E7EBF1; --line2: #EEF2F6;
  --panel: #F6F8FA; --panel2: #EDF2F6;
  --amber: #BC6F1C; --amberSoft: #FAF0E1;
  --green: #1F8A5B; --greenSoft: #E7F3EC;
  --red: #BE433C; --redSoft: #F8E9E8;
  --slate: #46566F; --slateSoft: #EDF2F6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3 { font-family: 'Schibsted Grotesk', sans-serif; letter-spacing: -.02em; margin: 0; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #cdd5de; border-radius: 9px; border: 3px solid transparent; background-clip: content-box; }
@keyframes ccspin { to { transform: rotate(360deg); } }
@keyframes ccrise { from { transform: translateY(10px); opacity: .01; } to { transform: translateY(0); opacity: 1; } }
.screen { animation: ccrise .3s cubic-bezier(.2,.7,.3,1); }

#app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* ---------- header ---------- */
.hdr {
  flex: none; height: 64px; display: flex; align-items: center; gap: 22px;
  padding: 0 26px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; background: none; border: none; cursor: pointer; padding: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--teal), var(--tealDk)); box-shadow: 0 4px 11px rgba(14,140,140,.35);
}
.brand-can {
  width: 13px; height: 19px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.45), #fff 45%, rgba(255,255,255,.55) 60%, rgba(255,255,255,.85));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.brand-name { font: 800 19px 'Schibsted Grotesk'; letter-spacing: -.01em; }
.brand-name em { color: var(--teal); font-style: normal; }
.brand-sub { font-size: 10.5px; color: var(--mut); letter-spacing: .05em; margin-top: 3px; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav button {
  appearance: none; border: none; background: none; cursor: pointer;
  font: 600 15px 'Hanken Grotesk'; padding: 7px 2px; color: var(--mut); border-bottom: 2px solid transparent;
}
.nav button.on { color: var(--ink); border-bottom-color: var(--teal); }
/* super admin's 12-item nav (v0.51.0): tighter, first 7 inline, the rest under "More ▾" */
.nav.dense { gap: 16px; }
.nav.dense button { font-size: 13.5px; white-space: nowrap; }
.nav-more { position: relative; }
.nav-more-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20,30,40,.12); padding: 6px; min-width: 190px; z-index: 40; }
.nav-more.open .nav-more-menu { display: block; }
.nav-more-menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; border-bottom: none; }
.nav-more-menu button:hover { background: var(--panel); color: var(--ink); }
.nav-more-menu button.on { background: var(--tealSoft); color: var(--tealDk); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { text-align: right; line-height: 1.2; padding-left: 16px; border-left: 1px solid var(--line); }
.who b { font: 600 13px 'Hanken Grotesk'; display: block; }
.who span { font-size: 11px; color: var(--mut); }
/* currency of the signed-in account (v0.45.1) — CAD/USD are separate logins */
.curpill { display: inline-block; font: 800 10.5px 'Hanken Grotesk'; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.curpill.cad { background: #e3f1ff; color: #0f4c81; }
.curpill.usd { background: #e6f7ea; color: #1d6b3a; }
.curnote { margin-top: 8px; font: 500 12.5px 'Hanken Grotesk'; color: var(--ink2); background: var(--panel2); border-radius: 9px; padding: 7px 11px; display: inline-flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
  font: 700 13px 'Schibsted Grotesk'; background: linear-gradient(140deg, #2a3a52, #46566F); border: none; cursor: pointer;
}

/* ---------- common ---------- */
main.body { flex: 1; min-height: 0; position: relative; background: var(--panel); overflow: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 34px 40px 70px; }
.kicker { font-size: 12.5px; color: var(--teal); font-weight: 700; letter-spacing: .07em; }
.h1 { font-size: 32px; font-weight: 800; margin-top: 7px; }
.sub { color: var(--ink2); margin-top: 6px; font-size: 14.5px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal); color: #fff; border: none; border-radius: 11px; padding: 12px 19px;
  font: 700 14.5px 'Hanken Grotesk'; cursor: pointer; box-shadow: 0 8px 20px rgba(14,140,140,.32);
  transition: background .15s;
}
.btn:hover { background: var(--tealDk); }
.btn[disabled] { background: var(--panel2); color: var(--mut); box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink2); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--panel); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.pill {
  display: inline-block; font: 700 11px 'Hanken Grotesk'; padding: 4px 9px; border-radius: 7px; white-space: nowrap;
}
.pill.amber { color: var(--amber); background: var(--amberSoft); }
.pill.green { color: var(--green); background: var(--greenSoft); }
.pill.teal { color: var(--tealDk); background: var(--tealSoft); }
.pill.slate { color: var(--slate); background: var(--slateSoft); }
.pill.muted { color: var(--mut); background: var(--panel2); }
.pill.red { color: var(--red); background: var(--redSoft); }
.chip {
  appearance: none; cursor: pointer; border-radius: 9px; padding: 8px 14px; font: 600 13px 'Hanken Grotesk';
  border: 1px solid var(--line); background: #fff; color: var(--ink2); transition: all .15s;
}
.chip.on { border-color: var(--teal); background: var(--tealSoft); color: var(--tealDk); }
.field { display: block; margin-top: 14px; }
.field span { display: block; font: 700 12.5px 'Hanken Grotesk'; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font: 500 14px 'Hanken Grotesk'; color: var(--ink); background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.err {
  background: var(--redSoft); border: 1px solid #eccbc8; border-radius: 11px; padding: 11px 14px;
  font-size: 13px; color: #8a3530; margin-top: 14px; line-height: 1.5;
}
.note { font-size: 12px; color: var(--mut); line-height: 1.5; }
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 90px 0; color: var(--mut); }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal); animation: ccspin .8s linear infinite; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; background:
  radial-gradient(120% 90% at 20% 0%, #eef6f6, transparent 60%),
  radial-gradient(110% 80% at 90% 100%, #eef1f5, transparent 55%), #fff; }
.login-card { width: 400px; padding: 34px 34px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(20,32,46,.12); }

/* ---------- catalog ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 20px; }
.pcard {
  text-align: left; appearance: none; cursor: pointer; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 16px 16px 15px; display: flex; flex-direction: column; gap: 13px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pcard:hover { box-shadow: 0 18px 38px rgba(20,32,46,.13); transform: translateY(-4px); border-color: #d6dde6; }
.pcard-stage {
  height: 200px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 92% at 50% 16%, #fdfefe, #eef2f6); border-radius: 13px;
}
/* staff pending-count badge: inline red circle beside the nav label (Aug 25
   nit — the absolute-positioned count overlapped "Operations") */
.navdot { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px;
  border-radius: 999px; background: #ef4444; color: #fff; font: 800 10.5px 'Hanken Grotesk';
  margin-left: 6px; padding: 0 4px; vertical-align: 1px; }

/* release-order manifest (Claude Design "Release Order Manifest v2") */
@keyframes ccPop { 0% { transform: scale(.45); opacity: 0; } 65% { transform: scale(1.07); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.ro-card:hover { box-shadow: 0 0 0 2px rgba(13,148,136,.22); }
.ro-sub:hover { border-color: var(--teal); color: var(--teal); }
.ro-clear:hover { border-color: rgba(255,255,255,.5); }
.ro-review:hover { filter: brightness(1.06); }

.flat-art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; }
.flat-art img { max-width: 100%; max-height: 100%; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 10px 22px rgba(20,32,46,.14); }
.mini-can { position: relative; width: 118px; height: 182px; filter: drop-shadow(0 16px 17px rgba(20,32,46,.22)); }
.mini-can.h473 { width: 108px; height: 196px; }
.mini-can.slk { width: 100px; height: 188px; }
.mini-can .lid { position: absolute; top: -5px; left: 9px; right: 9px; height: 15px; border-radius: 50%; background: linear-gradient(#eef2f6, #c2c9d2); z-index: 3; }
.mini-can .bod { position: absolute; top: 2px; bottom: 3px; left: 0; right: 0; border-radius: 13px/9px; overflow: hidden; background: linear-gradient(90deg,#9aa2ac,#e8ebee 47%,#9aa2ac); }
.mini-can .art { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mini-can .sheen { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,14,22,.46), rgba(8,14,22,.03) 24%, rgba(255,255,255,.4) 47%, rgba(255,255,255,.02) 63%, rgba(8,14,22,.13) 82%, rgba(8,14,22,.5)); }
.pcard h3 { font-size: 18px; font-weight: 700; }
.pcard .meta { color: var(--ink2); font-size: 13.5px; margin-top: 3px; }
.pcard .foot { display: flex; justify-content: space-between; margin-top: 12px; align-items: center; border-top: 1px solid var(--line2); padding-top: 11px; font: 600 11.5px 'Hanken Grotesk'; color: var(--mut); }

/* ---------- studio ---------- */
.studio { position: absolute; inset: 0; display: flex; }
.stage { flex: 1; min-width: 0; position: relative; overflow: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; position: relative; z-index: 1; }
/* stage loading state (v0.60.0): ghost can shimmer + progress while the spec STL streams in */
.stage-load { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; pointer-events: none; transition: opacity .45s ease; padding-bottom: 6%; }
.stage-load.out { opacity: 0; }
.stage-load .ghost {
  width: 116px; height: 232px; border-radius: 30px / 20px; position: relative;
  background: linear-gradient(90deg, #cfd4db 0%, #f6f8fa 40%, #e9edf1 52%, #f6f8fa 64%, #cfd4db 100%);
  background-size: 240% 100%; animation: ccshimmer 1.7s ease-in-out infinite;
  box-shadow: 0 36px 54px -26px rgba(20,32,46,.45), inset 0 0 0 1px rgba(255,255,255,.7);
}
.stage-load .ghost::before { content: ""; position: absolute; left: 9%; right: 9%; top: -7px; height: 24px; border-radius: 50%; background: linear-gradient(#f2f4f7, #c6ccd4); box-shadow: inset 0 -2px 4px rgba(20,32,46,.12); }
.stage-load .ghost::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: -5px; height: 16px; border-radius: 50%; background: #bfc6cf; }
.stage-load .lbl { font: 700 12.5px 'Hanken Grotesk'; color: var(--ink2); letter-spacing: .02em; background: rgba(255,255,255,.6); backdrop-filter: blur(8px); border-radius: 20px; padding: 6px 13px; margin-top: 10px; }
.stage-load .bar { width: 150px; height: 4px; border-radius: 4px; background: rgba(20,32,46,.12); overflow: hidden; }
.stage-load .bar i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 4px; transition: width .18s linear; }
@keyframes ccshimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.stage-topleft {
  position: absolute; top: 18px; left: 20px; z-index: 4; display: flex; align-items: center; gap: 13px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px; padding: 11px 16px 11px 13px; box-shadow: 0 10px 30px rgba(20,32,46,.1);
}
.stage-hint {
  position: absolute; top: 22px; right: 22px; z-index: 4; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(8px); border-radius: 20px; padding: 7px 13px;
  color: var(--ink2); font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,.6);
}
.stage-bar {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.82); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.75); border-radius: 18px; padding: 8px 12px;
  box-shadow: 0 18px 48px rgba(20,32,46,.2); max-width: calc(100% - 28px); flex-wrap: wrap; justify-content: center;
}
.stage-bar .lbl { font-size: 10px; font-weight: 700; color: var(--mut); letter-spacing: .06em; margin-right: 3px; }
.stage-bar .sep { width: 1px; height: 26px; background: var(--line); flex: none; }
.seg { appearance: none; border: none; cursor: pointer; border-radius: 9px; padding: 7px 11px; font: 700 12px 'Hanken Grotesk'; background: transparent; color: var(--ink2); transition: all .15s; }
.seg.on { background: var(--ink); color: #fff; box-shadow: 0 2px 7px rgba(20,32,46,.22); }
.envdot { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: none; transition: box-shadow .15s; }
.iconbtn { width: 38px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 11px; cursor: pointer; color: var(--ink2); font-size: 15px; }
.iconbtn.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.transp-note { position: absolute; bottom: 112px; left: 50%; transform: translateX(-50%); z-index: 4; background: rgba(21,32,46,.82); color: #fff; font-size: 11.5px; font-weight: 600; padding: 6px 13px; border-radius: 18px; backdrop-filter: blur(6px); white-space: nowrap; }
.rail { width: 420px; flex: none; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.rail-scroll { flex: 1; overflow: auto; padding: 24px 24px 16px; }
.rail-foot { flex: none; border-top: 1px solid var(--line); padding: 16px 24px 18px; background: var(--panel); }
.optgrid { display: grid; gap: 8px; }
.optbtn { appearance: none; cursor: pointer; text-align: left; border-radius: 11px; padding: 11px; transition: all .15s; border: 1.5px solid var(--line); background: #fff; }
.optbtn.on { border-color: var(--teal); background: var(--tealSoft); }
.optbtn b { font: 700 13px 'Hanken Grotesk'; display: block; }
.optbtn small { font-size: 10.5px; color: var(--mut); line-height: 1.3; display: block; margin-top: 3px; }
.stepbox { border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.stepbox .row { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.stepbtn { appearance: none; cursor: pointer; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; font-weight: 600; }
.bignum { font: 800 22px 'Schibsted Grotesk'; }

/* ---------- orders ---------- */
.tbl { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tbl-head { display: grid; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font: 700 11px 'Hanken Grotesk'; color: var(--mut); letter-spacing: .04em; }
.tbl-row { width: 100%; display: grid; gap: 12px; padding: 14px 20px; align-items: center; background: none; border: none; cursor: pointer; text-align: left; border-bottom: 1px solid var(--line2); }
.tbl-row:hover { background: var(--panel); }
.tbl-exp { padding: 4px 20px 20px; background: var(--panel); border-bottom: 1px solid var(--line2); }
.line-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr; gap: 10px; padding: 9px 14px; font-size: 12.5px; align-items: center; }
.line-grid.hd { font: 700 10.5px 'Hanken Grotesk'; color: var(--mut); letter-spacing: .04em; padding-bottom: 4px; }
.prog { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.alert-banner {
  margin-top: 20px; background: linear-gradient(100deg, #FBF1E4, #fdf7ee); border: 1px solid #ecd9bf;
  border-radius: 14px; padding: 15px 18px; display: flex; align-items: center; gap: 14px;
}

/* ---------- notifications ---------- */
.bell { position: relative; }
.bell .dot { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font: 700 10px 'Hanken Grotesk'; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* staff pending-actions count on the mobile tab bar — visual styling for the
   inline-positioned .dot badge (desktop nav uses .navdot instead) */
.tabbar .dot {
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--red); color: #fff; font: 700 9.5px 'Hanken Grotesk';
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.drop {
  position: absolute; right: 26px; top: 60px; width: 380px; max-height: 480px; overflow: auto; z-index: 90;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(20,32,46,.22);
}
.drop .item { padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.drop .item.unread { background: var(--tealSoft); }

/* ---------- toast + modal ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 120;
  display: flex; align-items: center; gap: 13px; background: var(--ink); color: #fff; border-radius: 13px;
  padding: 13px 16px; box-shadow: 0 18px 44px rgba(20,32,46,.34); max-width: 480px;
}
.modal-veil { position: fixed; inset: 0; background: rgba(15,22,32,.45); z-index: 100; display: grid; place-items: center; }
.modal { width: 480px; max-width: calc(100vw - 40px); max-height: 86vh; overflow: auto; background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 40px 90px rgba(10,16,26,.4); }
.modal.wide { width: 860px; }
/* shared-items navigator (v0.46.0) */
.cur-nav { display: grid; grid-template-columns: 200px 1fr; gap: 14px; margin-top: 12px; }
.cur-rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; align-self: start; }
.cur-railbtn { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid transparent; background: var(--panel2); border-radius: 9px; padding: 8px 10px; font: 600 12.5px 'Hanken Grotesk'; color: var(--ink2); cursor: pointer; }
.cur-railbtn span { flex: 1; } .cur-railbtn b { font-size: 11px; color: var(--green); } .cur-railbtn.on { border-color: var(--line); background: #fff; color: var(--ink); }
.cur-body { max-height: 52vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.cur-grouphead { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font: 700 13px 'Hanken Grotesk'; cursor: pointer; }
.cur-grouphead .chev { display: inline-block; transition: transform .15s; color: var(--mut); } .cur-grouphead .cnt { font-size: 11px; color: var(--green); }
.cur-items { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 4px 18px; }
.cur-item { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.cur-item:has(input:checked) { border-color: var(--green); background: var(--greenSoft); }

/* ---------- upload ---------- */
.drop-zone {
  border: 2px dashed #c9d3de; border-radius: 14px; background: var(--panel); padding: 34px 20px;
  text-align: center; cursor: pointer; transition: all .15s;
}
.drop-zone.over { border-color: var(--teal); background: var(--tealSoft); }
.wrap-preview { border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: repeating-conic-gradient(#e8ebef 0% 25%, #f7f9fb 0% 50%) 0 0/18px 18px; }
.wrap-preview img, .wrap-preview canvas { display: block; width: 100%; }

/* ---------- admin ---------- */
.admin-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.admin-tbl th { text-align: left; font: 700 10.5px 'Hanken Grotesk'; color: var(--mut); letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-tbl td { padding: 3px 4px; border-bottom: 1px solid var(--line2); }
.admin-tbl input { width: 100%; border: 1px solid transparent; border-radius: 6px; padding: 6px 7px; font-size: 12.5px; background: transparent; }
.admin-tbl input:focus { border-color: var(--teal); background: #fff; outline: none; }

/* ---------- dunnage ---------- */
:root { --kraft: #B98755; --kraftSoft: #F5EBDD; }
@keyframes ccpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ccslide { from { transform: translateX(40px); opacity: .01; } to { transform: translateX(0); opacity: 1; } }
.dn-sheet-veil { position: fixed; inset: 0; z-index: 100; background: rgba(21,32,46,.4); backdrop-filter: blur(2px); }
.dn-sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: calc(100vw - 30px); z-index: 101;
  background: #fff; box-shadow: -24px 0 60px rgba(20,32,46,.25); display: flex; flex-direction: column;
  animation: ccslide .28s cubic-bezier(.2,.7,.3,1);
}
.dn-pop { width: 440px; max-width: calc(100vw - 40px); background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(20,32,46,.35); overflow: hidden; }
.dn-step { width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; font-size: 15px; color: var(--ink2); flex: none; }
.dn-step:hover { background: var(--panel2); }
.dn-count { font: 800 19px 'Schibsted Grotesk'; width: 64px; text-align: center; border: none; background: none; padding: 0; }
.dn-count:focus { outline: 2px solid var(--tealSoft); border-radius: 6px; }
.dn-qcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; text-align: left; width: 100%; }
.dn-qcard.on { border-color: var(--teal); box-shadow: 0 0 0 3px var(--tealSoft); }
.dn-dest { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; cursor: pointer; width: 100%; }
.dn-dest.on { border-color: var(--teal); box-shadow: 0 0 0 3px var(--tealSoft); }

@media (max-width: 980px) {
  .rail { width: 360px; }
  .wrap { padding: 26px 20px 60px; }
}

/* ---------- mobile companion (AetherCanConnect Mobile design, Aug 2026) ----------
   Same design DNA recomposed for one thumb: compact translucent app bar,
   role-specific bottom tab bar, search-first catalog, 2-col product grid,
   bottom sheets instead of side rails, one primary action per screen. */
@keyframes ccsheet { from { transform: translateY(48px); opacity: .35; } to { transform: translateY(0); opacity: 1; } }
.tabbar { display: none; }
.role-badge { display: none; }
.rail-handle { display: none; appearance: none; background: none; border: none; cursor: pointer; padding: 10px 0 2px; width: 100%; }
.rail-handle i { display: block; width: 38px; height: 4.5px; border-radius: 3px; background: #D6DDE5; margin: 0 auto; }
.cat-search { display: none; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; margin-bottom: 6px; color: var(--mut); }
.cat-search input { border: none; outline: none; flex: 1; font: 500 14px 'Hanken Grotesk'; background: none; padding: 0; color: var(--ink); }

@media (max-width: 760px) {
  #app { height: 100dvh; }

  /* compact translucent app bar */
  .hdr { height: 54px; padding: 0 14px; gap: 10px; background: rgba(255,255,255,.94); }
  .nav, .who, .brand-sub, .ver-tick, #feedbackBtn { display: none; }
  .hdr-right { gap: 9px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
  .brand-can { width: 10px; height: 15px; }
  .brand-name { font-size: 17px; }
  .avatar { width: 32px; height: 32px; font-size: 11.5px; }
  .role-badge { display: inline-block; font: 700 9px 'Hanken Grotesk'; letter-spacing: .06em; border-radius: 5px; padding: 3px 7px; }
  .role-badge.staff { color: var(--slate); background: var(--slateSoft); }
  .role-badge.admin { color: var(--tealDk); background: var(--tealSoft); }
  .role-badge.super { color: var(--red); background: var(--redSoft); }

  /* bottom tab bar (role-specific sets, rendered by shell) */
  .tabbar {
    display: flex; flex: none; padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 30;
  }
  .tabbar button {
    appearance: none; background: none; border: none; cursor: pointer; flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--mut); font: 600 10px 'Hanken Grotesk'; padding: 0;
  }
  .tabbar button.on { color: var(--teal); font-weight: 700; }

  /* layout + type scale */
  .wrap { padding: 16px 16px 40px; }
  .h1 { font-size: 24px; }
  .sub { font-size: 12.5px; }

  /* search-first catalog · 2-col product grid, design card scale */
  .cat-search { display: flex; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard { padding: 11px; border-radius: 16px; gap: 9px; }
  .pcard:hover { transform: none; }
  .pcard-stage { height: 132px; border-radius: 11px; }
  .mini-can { width: 74px; height: 114px; }
  .mini-can.h473 { width: 68px; height: 122px; }
  .mini-can.slk { width: 62px; height: 118px; }
  .mini-can .lid { top: -3px; left: 6px; right: 6px; height: 9px; }
  .mini-can .bod { border-radius: 8px/6px; }
  .pcard h3 { font-size: 14.5px; }
  .pcard .meta { font-size: 11px; }
  .pcard .foot { font-size: 10px; margin-top: 6px; padding-top: 6px; }

  /* data tables keep their columns and scroll sideways instead of crushing */
  .tbl { overflow-x: auto; }
  .tbl-head, .tbl-row, .tbl-exp { min-width: 720px; }
  .card { overflow-x: auto !important; }   /* wins over inline overflow:hidden — wide content scrolls, never crushes */
  .line-grid { min-width: 520px; }

  /* fixed multi-column layouts stack (opt-in via .m-stack on the container) */
  .m-stack { grid-template-columns: 1fr !important; }

  .cur-nav { grid-template-columns: 1fr; } .cur-rail { flex-direction: row; flex-wrap: wrap; position: static; }
  /* modals + the return slide-over become bottom sheets */
  .modal-veil { align-items: end; justify-items: stretch; }
  .modal {
    width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; max-height: 88dvh;
    padding: 14px 18px calc(24px + env(safe-area-inset-bottom));
    animation: ccsheet .28s cubic-bezier(.2,.7,.3,1);
  }
  .modal::before { content: ""; display: block; width: 38px; height: 4.5px; border-radius: 3px; background: #D6DDE5; margin: 0 auto 12px; }
  .dn-sheet {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 88dvh;
    border-radius: 22px 22px 0 0; box-shadow: 0 -14px 44px rgba(20,32,46,.3);
    animation: ccsheet .28s cubic-bezier(.2,.7,.3,1);
  }

  /* notifications dropdown becomes a full-width panel */
  .drop { left: 10px; right: 10px; width: auto; top: 56px; }

  /* studio: full-bleed stage + bottom-sheet configuration rail */
  .studio { flex-direction: column; }
  .stage { min-height: 0; }
  .rail {
    width: 100%; flex: none; border-left: none; border-radius: 22px 22px 0 0;
    box-shadow: 0 -14px 44px rgba(20,32,46,.16); margin-top: -20px; z-index: 5; max-height: 56dvh;
  }
  .rail-handle { display: block; }
  .rail.collapsed .rail-scroll { display: none; }
  .rail-scroll { padding: 4px 18px 12px; }
  .rail-foot { padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); }
  .stage-topleft { top: 12px; left: 12px; padding: 8px 12px 8px 9px; gap: 9px; }
  .stage-hint { top: 14px; right: 12px; font-size: 10.5px; padding: 6px 11px; }
  .stage-bar { bottom: 10px; gap: 8px; padding: 7px 9px; }
  .transp-note { bottom: 92px; font-size: 10.5px; }

  /* login + toast */
  .login-card { width: min(400px, calc(100vw - 28px)); padding: 26px 22px 22px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
}

/* ---- step tracker + approvals board (v0.49.1, matches the approval email) ---- */
.trk { display: flex; gap: 3px; margin-top: 14px; }
.trk .st { flex: 1; min-width: 0; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 6px; background: var(--panel2); color: #9aa4ae; border-radius: 4px; }
.trk .st b { font: 800 9.5px 'Hanken Grotesk'; letter-spacing: .05em; white-space: nowrap; }
.trk .st span { font: 600 8.5px 'Hanken Grotesk'; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.trk .st.done { background: var(--tealSoft); color: var(--tealDk); }
.trk .st.cur { background: var(--amber); color: #fff; }
.trk .st.cur span { opacity: .9; }
.trk-cap { margin-top: 8px; font: 600 12px 'Hanken Grotesk'; color: var(--mut); }
.abd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.abd-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s; }
.abd-stat:hover, .abd-stat.on { border-color: var(--teal); }
.abd-stat b { display: block; font: 800 22px 'Schibsted Grotesk'; letter-spacing: -.02em; }
.abd-stat span { font: 700 10.5px 'Hanken Grotesk'; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.abd-stat.staff b { color: var(--amber); } .abd-stat.customer b { color: var(--tealDk); } .abd-stat.complete b { color: var(--green); }
.abd { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; margin-top: 14px; }
.abd-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.abd-card.staff { border-left: 4px solid var(--amber); }
.abd-card.customer { border-left: 4px solid var(--teal); }
.abd-card.complete { border-left: 4px solid var(--green); }
.abd-kick { display: inline-block; font: 800 10.5px 'Hanken Grotesk'; letter-spacing: .06em; text-transform: uppercase; border-radius: 20px; padding: 3px 10px; }
.abd-kick.staff { background: var(--amberSoft); color: var(--amber); }
.abd-kick.customer { background: var(--tealSoft); color: var(--tealDk); }
.abd-kick.complete, .abd-kick.none { background: var(--greenSoft); color: var(--green); }
.abd-need { margin-top: 12px; border-radius: 10px; padding: 11px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font: 600 13px 'Hanken Grotesk'; }
.abd-need.staff { background: var(--amberSoft); color: #7a4d10; }
.abd-need.customer { background: var(--tealSoft); color: var(--tealDk); }
.abd-need.none { background: var(--greenSoft); color: var(--green); }
.abd-need .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.abd-quote { margin-top: 10px; background: #faf1de; border: 1px solid #f0e2c4; border-radius: 9px; padding: 10px 13px; font: 500 12.5px 'Hanken Grotesk'; color: var(--ink2); }
.abd-quote b { display: block; font: 800 10px 'Hanken Grotesk'; letter-spacing: .06em; color: #8a6116; margin-bottom: 4px; }
.abd-proof { margin-top: 10px; display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.abd-proof img { width: 84px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--panel2); }
.abd-proof .ph { flex: 1; min-width: 0; font: 600 12px 'Hanken Grotesk'; color: var(--ink2); } .abd-proof .ph small { display: block; color: var(--mut); font-weight: 500; margin-top: 2px; }
.abd-ref { margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; font: 500 12.5px 'Hanken Grotesk'; color: var(--ink2); line-height: 1.7; }
.abd-ref b { color: var(--ink); font-weight: 700; }
.abd-ref .so { display: inline-block; margin-right: 6px; }
.abd-hist { margin-top: 8px; font: 500 11.5px 'Hanken Grotesk'; color: var(--mut); }
.abd-empty { padding: 30px; text-align: center; color: var(--mut); background: #fff; border: 1px dashed var(--line); border-radius: 14px; margin-top: 14px; }
@media (max-width: 720px) { .abd { grid-template-columns: 1fr; } .trk .st span { display: none; } .trk .st { height: 34px; } }

/* ---- Hooligan page (super admin, v0.51.0) ---- */
.hq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.hq-tile { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.hq-tile span { display: block; font: 700 10.5px 'Hanken Grotesk'; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.hq-tile b { display: block; font: 800 18px 'Schibsted Grotesk'; letter-spacing: -.01em; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-tile small { display: block; font: 500 11.5px 'Hanken Grotesk'; color: var(--ink2); margin-top: 3px; line-height: 1.4; }
.hq-tile.ok { border-left-color: var(--green); } .hq-tile.warn { border-left-color: var(--amber); } .hq-tile.bad { border-left-color: var(--red); }
.hq-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.hq-link { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.hq-link:hover { border-color: var(--teal); }
.hq-link b { display: block; font: 700 14px 'Schibsted Grotesk'; } .hq-link span { display: block; font: 500 12px 'Hanken Grotesk'; color: var(--mut); margin-top: 3px; }

/* ---- Dunnage hub (v0.52.0) ---- */
.dn-subnav { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.dn-subnav a { text-decoration: none; font: 600 12.5px 'Hanken Grotesk'; color: var(--ink2); padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.dn-subnav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dn-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 20px; }
.dn-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.dn-card:hover { border-color: var(--teal); transform: translateY(-1px); }
.dn-card.attn { border-color: var(--amber); }
.dn-card.muted { background: var(--panel); }
.dn-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dn-card-head b { font: 800 17px 'Schibsted Grotesk'; letter-spacing: -.01em; }
.dn-stats { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.dn-stat b { display: block; font: 800 20px 'Schibsted Grotesk'; letter-spacing: -.02em; white-space: nowrap; }
.dn-stat span { font: 600 10.5px 'Hanken Grotesk'; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }
.dn-stat.amber b { color: var(--amber); } .dn-stat.red b { color: var(--red); }
.dn-card .note { margin-top: 12px; min-height: 18px; }
.dn-go { margin-top: 14px; font: 700 13px 'Hanken Grotesk'; color: var(--teal); }
.dn-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line2); text-decoration: none; color: var(--ink); font-size: 13.5px; }
.dn-row:hover { background: var(--panel); }

/* ---- order builder (v0.53.0) ---- */
.ob-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; margin-top: 18px; align-items: start; }
.ob-side { padding: 16px 18px; position: sticky; top: 12px; }
.ob-side input:not([type=checkbox]):not([type=radio]), .ob-side textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 600 13px 'Hanken Grotesk'; margin-top: 6px; }
.ob-side textarea { min-height: 48px; }
.ob-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.ob-line.bad { background: #fff8f8; }
.ob-thumb { width: 64px; height: 44px; border-radius: 8px; background: var(--panel2); overflow: hidden; display: flex; align-items: center; justify-content: center; font: 800 16px 'Schibsted Grotesk'; color: var(--mut); flex: none; }
.ob-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ob-thumb-shared { background: var(--slateSoft); color: var(--slate); }
.ob-main { min-width: 0; font-size: 13.5px; }
.ob-cfg { margin-top: 5px; font: 500 12.5px 'Hanken Grotesk'; color: var(--ink2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ob-cfg input { width: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font: 600 12.5px 'Hanken Grotesk'; }
.ob-price { text-align: right; min-width: 92px; } .ob-price b { display: block; font: 800 15px 'Schibsted Grotesk'; } .ob-price small { display: block; font-size: 11px; color: var(--mut); }
.ob-acts { display: flex; gap: 6px; }
.ob-empty { padding: 26px; text-align: center; color: var(--mut); border: 1px dashed var(--line); border-radius: 12px; font-size: 13px; line-height: 1.5; }
.ob-addr { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; font-size: 12.5px; }
.ob-addr.on { border-color: var(--teal); background: var(--tealSoft); }
.ob-totals { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ob-totals span { display: block; font-size: 11.5px; color: var(--mut); } .ob-totals b { display: block; font: 800 22px 'Schibsted Grotesk'; }
.ob-picklist { margin-top: 12px; max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.ob-pick { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.ob-pick:hover { border-color: var(--teal); background: var(--tealSoft); }
.ob-pick .ob-thumb { width: 52px; height: 36px; }
@media (max-width: 860px) { .ob-layout { grid-template-columns: 1fr; } .ob-side { position: static; } .ob-line { grid-template-columns: 52px minmax(0, 1fr); } .ob-price { text-align: left; } }

/* dunnage preview in the order builder (v0.54.0) */
.ob-dunnage { margin-top: 12px; background: var(--slateSoft); border-radius: 10px; padding: 10px 13px; font: 500 12.5px 'Hanken Grotesk'; color: var(--ink2); line-height: 1.5; }
.ob-dunnage b { color: var(--ink); }

/* can graphics templates in the wizard (v0.55.0) */
.tpl-hint { margin-top: 10px; background: var(--tealSoft); color: var(--tealDk); border-radius: 10px; padding: 10px 12px; font: 500 12.5px 'Hanken Grotesk'; line-height: 1.5; }
.tpl-hint b { font-weight: 700; }
.tpl-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tpl-block { margin-top: 12px; background: var(--amberSoft); color: #6b4a12; border: 1px solid #efdcb8; border-radius: 10px; padding: 12px 14px; font: 500 13px 'Hanken Grotesk'; line-height: 1.55; }
.tpl-block b { color: var(--ink); }

/* address book (v0.57.0) */
.ad-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.ad-card { padding: 16px 18px; }
.ad-card.on { border-color: var(--teal); }
.ad-head { font: 700 14px 'Schibsted Grotesk'; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ad-addr { margin-top: 6px; font: 500 13px 'Hanken Grotesk'; color: var(--ink2); line-height: 1.5; }
.ad-instr { margin-top: 6px; font: 500 12.5px 'Hanken Grotesk'; color: var(--amber); }
.ad-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
