/* The drawer bay (RESERVED plates and live drawer pulls, one group at a time), the open drawer, the freight-lift
   crate, and the phone's mini-knob strip + drawer handles. */
.m-bay .machine-body { flex-direction: column; gap: 8px; }
.bay-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bay-tab { min-height: var(--tap); padding: 0 2px; border: 0; border-radius: 3px; cursor: pointer; font: 700 9.5px var(--font-stencil); letter-spacing: .1em; color: rgba(0,0,0,0.6);
  background: linear-gradient(180deg, #c9ba8c, #96865a); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35), 0 2px 0 rgba(0,0,0,0.45); text-shadow: 0 1px 0 rgba(255,255,255,0.3); overflow: hidden; }
.bay-tab.on { background: linear-gradient(180deg, #ffe5a6, #d9b45a); color: #2a1a04; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35), 0 0 10px rgba(255,190,80,0.45); }
.bay-slots { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.bay-slot { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-height: 58px; padding: 6px 26px; border: 0; border-radius: 4px; cursor: pointer; overflow: hidden; }
.bay-slot.reserved { background: repeating-linear-gradient(92deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #5c6461, #3d4442);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 0 0 1px rgba(0,0,0,0.5), 0 2px 3px rgba(0,0,0,0.5); color: rgba(0,0,0,0.6); }
.slot-stencil { font: 700 14px var(--font-stencil); letter-spacing: .38em; color: rgba(10,12,12,0.55); text-shadow: 0 1px 0 rgba(255,255,255,0.12); }
.slot-name { font: 700 9px var(--font-stencil); letter-spacing: .2em; color: rgba(230,225,210,0.6); }
.slot-screw { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #d0d6d3, #616967 60%, #2b3130); }
.slot-screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 4px; height: 2px; background: rgba(0,0,0,0.6); transform: rotate(35deg); }
.slot-screw.l { left: 8px; } .slot-screw.r { right: 8px; }
.bay-slot.live { background: linear-gradient(180deg, #2f3534, #1c2120); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 1px rgba(0,0,0,0.6), 0 3px 0 #0b0d0e; }
.bay-slot.live .slot-name { color: #f0e6c8; font-size: 11px; }
.slot-pull { width: 60%; height: 10px; border-radius: 5px; background: linear-gradient(180deg, #e6ebe8, #8c9592 60%, #4c5452); box-shadow: 0 2px 3px rgba(0,0,0,0.6); }
.slot-lamp { position: absolute; right: 10px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f0fff4, #6fe39a 50%); box-shadow: 0 0 8px #6fe39a; }
.bay-slot.arrived { animation: arrived 1.2s ease-out; }
@keyframes arrived { 0% { box-shadow: 0 0 0 3px var(--amber), 0 0 30px var(--amber); } }
.crate { position: absolute; inset: 4px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #a4793f 0 16px, #8f6633 16px 18px), #a4793f; box-shadow: inset 0 0 0 3px #6e4a20, 0 6px 10px rgba(0,0,0,0.6);
  color: #2a1a08; animation: crate-drop 1.4s cubic-bezier(.5, 0, .7, 1) both; }
.crate b { font: 700 11px var(--font-stencil); letter-spacing: .16em; } .crate i { font: 700 8px var(--font-stencil); letter-spacing: .2em; font-style: normal; opacity: .7; }
@keyframes crate-drop { 0% { transform: translateY(-180%); } 45% { transform: translateY(0); } 52% { transform: translateY(-6%); } 58% { transform: translateY(0); } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.04); } }

.drawer { grid-area: drawer; z-index: 5; min-height: 0; display: flex; flex-direction: column; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #4b5753, #323c39); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 0 0 1px rgba(0,0,0,0.4), 0 -10px 30px rgba(0,0,0,0.7);
  animation: drawer-up .22s cubic-bezier(.2, .9, .3, 1); }
@keyframes drawer-up { from { transform: translateY(40%); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-bottom: 2px solid rgba(0,0,0,0.3); }
.drawer-group { font: 700 9px var(--font-stencil); letter-spacing: .3em; color: rgba(0,0,0,0.55); }
.drawer-name { flex: 1; font: 700 13px var(--font-stencil); letter-spacing: .22em; color: #efe6cc; }
.drawer-close { min-height: var(--tap); min-width: 96px; border: 0; border-radius: 5px; cursor: pointer; font: 700 11px var(--font-stencil); letter-spacing: .18em; color: #efe6cc;
  background: linear-gradient(180deg, #3b3f40, #1f2224); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6), 0 3px 0 #0b0d0e; }
.drawer-body { flex: 1; min-height: 0; display: flex; padding: 10px; }
.drawer-body > .machine { flex: 1; }
.reserved-plate { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 6px;
  background: repeating-linear-gradient(92deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #66706c, #424a47);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 0 0 1px rgba(0,0,0,0.5); }
.rp-stencil { font: 700 30px var(--font-stencil); letter-spacing: .5em; color: rgba(10,12,12,0.5); text-shadow: 0 1px 0 rgba(255,255,255,0.15); }
.rp-name { font: 700 14px var(--font-stencil); letter-spacing: .3em; color: rgba(240,234,214,0.75); }
.rp-note { font: 700 10px var(--font-stencil); letter-spacing: .2em; color: rgba(0,0,0,0.55); }
.placeholder-note { margin: auto; max-width: 30em; text-align: center; font: 700 13px var(--font-type); color: var(--paper); }

/* phone: mini knob strip and drawer handles */
.strip { grid-area: strip; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 10px; border-radius: 7px;
  background: linear-gradient(180deg, #2a302e, #1a1f1e); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 0 0 1px rgba(0,0,0,0.6); }
.degauss.mini { min-width: 54px; margin: 0; font-size: 10px; }
.handles { grid-area: handles; gap: 6px; }
.handle { flex: 1; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 6px 6px 3px 3px; cursor: pointer;
  background: linear-gradient(180deg, #4a5551, #2c3432); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 0 0 1px rgba(0,0,0,0.5), 0 3px 0 #0b0d0e;
  font: 700 10px var(--font-stencil); letter-spacing: .16em; color: rgba(240,232,210,0.7); }
.handle-pull { width: 56%; height: 7px; border-radius: 4px; background: linear-gradient(180deg, #e6ebe8, #8c9592 60%, #4c5452); box-shadow: 0 2px 2px rgba(0,0,0,0.6); }
.handle.on { background: linear-gradient(180deg, #5d6a65, #3b4542); color: var(--amber); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 0 0 1px rgba(0,0,0,0.5), 0 6px 0 #0b0d0e, 0 0 12px rgba(255,180,60,0.25); }
