#vAssembly #assemblyFrameStatus {
  margin: 24px;
  color: var(--text, #182435);
}
#vAssembly { padding:0; }
.assembly-frame { display:block; width:100%; height:100dvh; min-height:400px; border:0; background:var(--bg); }
.assembly-frame[hidden], .assembly-kp-alert[hidden], [data-assembly-count][hidden] { display:none; }
.side .nav[data-go=assembly] span { min-width:0; flex:1; line-height:1.45; }
.side .nav[data-go=assembly] svg { flex-shrink:0; }
.ctx .btn-assembly { white-space:nowrap; border-color:#d9c185; }
.ctx .btn-assembly svg { width:16px; height:16px; flex-shrink:0; }
.ctx .btn-assembly.is-sent { background:#e6f6ed; border-color:#64ad83; color:#166334; font-weight:700; }
.qassembly { width:1%; white-space:nowrap; }
.qassembly-badge { display:inline-flex; align-items:center; padding:4px 9px; border-radius:7px; border:1px solid #e8b064; background:#fff1dc; color:#985406; font-size:12px; font-weight:700; line-height:1.3; }
.qassembly-badge.is-ready { border-color:#78bd92; background:#e6f6ed; color:#166334; }
.qassembly-mobile { display:none; }
:root[data-theme="dark"] .qassembly-badge { background:#482f16; border-color:#c68c42; color:#ffd495; }
:root[data-theme="dark"] .qassembly-badge.is-ready { background:#183e2c; border-color:#5cbd83; color:#a0edb8; }
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .qassembly-badge { background:#482f16; border-color:#c68c42; color:#ffd495; }
  :root:not([data-theme="light"]) .qassembly-badge.is-ready { background:#183e2c; border-color:#5cbd83; color:#a0edb8; }
}
@media(max-width:900px) {
  #vQuotes .qassembly { display:none; }
  .qassembly-mobile { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-top:7px; }
  .qassembly-label { color:var(--muted); font-size:12px; }
}
:root[data-theme="dark"] .ctx .btn-assembly.is-sent { background:#183e2c; border-color:#5cbd83; color:#a0edb8; }
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .ctx .btn-assembly.is-sent { background:#183e2c; border-color:#5cbd83; color:#a0edb8; }
}
.assembly-sheet-stage { position:fixed; top:0; left:-12000px; color:#111; background:#fff; }
.assembly-sheet-stage .sheet-in { width:186mm; }
.assembly-pick-actions { justify-content:flex-end; margin-top:14px; }
.assembly-kp-alert {
  display:flex; position:fixed; right:24px; bottom:24px; z-index:1050;
  max-width:min(420px, calc(100vw - 48px)); color:#fff; background:#d71f36; border:2px solid #ff6372;
  border-radius:12px; box-shadow:0 5px 24px #32160c40;
}
.assembly-kp-alert button { min-height:44px; cursor:pointer; border:0; color:inherit; background:transparent; }
.assembly-kp-alert.is-ready { background:#217a4b; border-color:#70d69b; box-shadow:0 5px 24px #123b2840; }
.side [data-assembly-count].has-messages { background:#df2038; color:#fff; opacity:1; font-weight:700; box-shadow:0 0 0 2px #ff7c87; }
.assembly-kp-alert [data-assembly-alert-open] { padding:10px 12px; min-width:0; text-align:left; }
.assembly-kp-alert [data-assembly-alert-close] { flex:0 0 44px; font-size:20px; }
.assembly-kp-alert strong, .assembly-kp-alert small { display:block; }
.assembly-kp-alert strong { font-size:13px; overflow-wrap:anywhere; }
.assembly-kp-alert small { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media(max-width:900px) {
  .assembly-frame { height:calc(100dvh - 106px); }
  .assembly-kp-alert { right:12px; bottom:78px; max-width:calc(100vw - 24px); }
}
.assembly-staff-link { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.assembly-staff-link a { overflow-wrap:anywhere; }
.assembly-staff-editor { display:grid; gap:12px; max-width:620px; margin:22px 0; }
.assembly-staff-editor h4 { margin:0; font-size:16px; }
.assembly-staff-people { display:grid; gap:12px; }
.assembly-staff-people article { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; padding:14px; border:1px solid var(--line); border-radius:12px; }
.assembly-staff-people strong, .assembly-staff-people small { display:block; overflow-wrap:anywhere; }
.assembly-staff-people small { color:var(--muted); margin-top:4px; }
.assembly-kp-alert.notice-stack,.warehouse-alert.notice-stack {
  display:block; padding:0; border:0; background:transparent; box-shadow:none;
  width:min(420px,calc(100vw - 24px)); max-width:calc(100vw - 24px); overflow:visible;
}
.assembly-kp-alert.notice-stack[hidden],.warehouse-alert.notice-stack[hidden] { display:none!important; }
.notice-stack-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:38px!important; margin:0 0 7px; padding:8px 12px; border:1px solid var(--line)!important; border-radius:10px; background:var(--surface,#fff)!important; color:var(--ink,#182435)!important; box-shadow:0 2px 12px #12203318; cursor:pointer; font:inherit; font-size:12px; font-weight:700; }
.notice-stack-toggle span { font-size:11px; font-weight:400; }
.notice-stack-header { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:46px; margin:0 0 7px; padding:0 6px 0 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface,#fff); color:var(--ink,#182435); box-shadow:0 2px 12px #12203318; }
.notice-stack-header>strong { min-width:0; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.notice-stack-tools { display:flex; align-items:center; gap:2px; flex:none; }
.notice-stack-header .notice-stack-toggle,.notice-stack .notice-stack-close { width:auto; min-height:44px!important; margin:0; padding:6px 8px; border:0!important; background:transparent!important; box-shadow:none; color:var(--ink,#182435); font:inherit; font-size:11px; font-weight:500; cursor:pointer; border-radius:7px; }
.notice-stack .notice-stack-close { color:var(--muted,#66717d); }
.notice-stack-header button:hover { text-decoration:underline; }
.notice-stack-header button:focus-visible { outline:2px solid var(--gold,#dbb45b); outline-offset:-3px; }
.notice-stack-list { max-height:min(60dvh,560px); overflow-y:auto; overscroll-behavior:contain; padding:4px 3px 9px; scrollbar-width:thin; }
.order-notice-stack { max-width:1000px; margin:0 auto 20px; }
.order-notice-stack .notice-stack-list { max-height:280px; }
.notice-stack-card { position:relative; display:flex; align-items:stretch; min-height:84px; border:2px solid #ff6372; border-radius:12px; color:#fff; background:#d71f36; box-shadow:0 -3px 12px #42132026; isolation:isolate; }
.notice-stack-card+.notice-stack-card { margin-top:-30px; transition:margin-top .18s ease; }
.notice-stack.is-expanded .notice-stack-card+.notice-stack-card { margin-top:8px; }
@media(hover:hover) {
  .notice-stack-list:hover .notice-stack-card+.notice-stack-card,.notice-stack-list:focus-within .notice-stack-card+.notice-stack-card { margin-top:8px; }
}
.notice-stack-card.is-ready { border-color:#70d69b; background:#217a4b; }
.notice-stack .notice-stack-open { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; flex:1; min-width:0; min-height:80px; padding:10px 12px; border:0; border-radius:10px; color:inherit; background:transparent; text-align:left; font:inherit; cursor:pointer; }
.notice-stack-open strong,.notice-stack-open small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notice-stack-open strong { font-size:13px; line-height:19px; }
.notice-stack-open small { margin-top:3px; font-size:12px; line-height:18px; }
.notice-stack .notice-stack-dismiss { display:flex; flex:0 0 40px; align-items:flex-start; justify-content:center; padding:9px 0; min-height:44px; border:0; color:inherit; background:transparent; font:inherit; font-size:22px; cursor:pointer; }
.notice-stack-dismiss svg { width:18px; height:18px; margin-top:2px; }
.notice-stack button:focus-visible { outline:3px solid #fff; outline-offset:-4px; }
@media(prefers-reduced-motion:reduce) { .notice-stack-card+.notice-stack-card { transition:none; } }
