/* PHASE 4 - demo */
/* The primary button stays legible before there is a job; Undo and Clear only appear when they can act. */
.packing-run:disabled{opacity:1;background:transparent;color:#a3a3a3;border-color:#fafbfc33}
.packing-edit button:disabled{visibility:hidden}
/* One instruction (the step row). The empty paragraph and the stage note repeated it. */
.packing-empty{display:none!important}
.packing-stage-note,.packing-stage-wrap .packing-stage-note{display:none!important}
/* Six outlined slots show the capacity and fill as parts are added (also removes the orphan cell on phones). */
.packing-plan li.slot{display:flex;align-items:center;gap:11px;padding:0 9px;min-height:46px;border:1px dashed #fafbfc1f;background:none}
.packing-plan li.slot .order{background:none;border:1px solid #fafbfc2e;color:#797979;box-shadow:none}
@media(max-width:700px){.packing-plan li.slot{min-height:44px;padding:0 7px;gap:7px}}
/* "Take a part" becomes a ring over the next part, the same visual language as the pocket markers. */
.packing-source{font-size:0;min-height:0;width:46px;height:46px;padding:0;display:grid;place-items:center;border-radius:50%;white-space:normal;
  background:#111111a6;color:#f6f7f8;border:1.5px solid #f6f7f8;box-shadow:0 0 0 7px #f6f7f826}
.packing-source span{font-size:22px;line-height:1;font-weight:300;padding:0}
.packing-source.selected{background:#f6f7f8;color:#111111;border-color:#f6f7f8}
.packing-source:disabled{opacity:.5}
@media(prefers-reduced-motion:no-preference){.packing-source:not(.selected):not(:disabled){animation:source-ring 2.6s ease-out infinite}}
@keyframes source-ring{0%{box-shadow:0 0 0 0 #f6f7f870}70%,100%{box-shadow:0 0 0 16px #f6f7f800}}
/* Touch devices of any width choose pockets from the list (44px+ targets), not from 27px markers in the scene. */
@media(pointer:coarse) and (min-width:701px){
  .packing-targets{display:none}
  .packing-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px 16px;background:#292929;border-top:1px solid #fafbfc17}
  .packing-pocket-option{min-height:48px;padding:8px;border:1px solid #b8b8b840;border-radius:3px;background:#fafbfc05;color:#d0d0d0;font:13px var(--sans);cursor:pointer}
  .packing-pocket-option.chosen{background:#ff5a1f24;color:#ff5a1f;border-color:#ff5a1f55}
  .packing-pocket-option:disabled:not(.chosen){opacity:.3}
}
.packing-pocket.chosen{font-family:var(--mono)}
