/* MSP Uno configurator styles */
html, body { height: 100%; }

/* Rack canvas */
.rack-frame {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 2px solid #0f172a;
  border-radius: 8px;
  box-shadow: inset 0 0 0 6px #1e293b, 0 10px 30px -15px rgba(2,6,23,.35);
}
.u-row {
  border-bottom: 1px dashed #e2e8f0;
}
.u-row:hover { background: #eff6ff; }
.u-label { color: #94a3b8; font-variant-numeric: tabular-nums; }

.placed-item {
  position: absolute;
  left: 46px;
  right: 46px;
  border-radius: 4px;
  overflow: hidden;
  cursor: move;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 2px 4px rgba(0,0,0,.25);
  transition: box-shadow .15s, transform .15s;
}
.placed-item:hover { box-shadow: 0 0 0 2px #3d72e7, 0 2px 6px rgba(0,0,0,.3); }
.placed-item.locked { cursor: not-allowed; }
.placed-item .label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 11px; font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  padding: 0 8px; text-align: center;
  pointer-events: none;
}
.placed-item.has-image {
  padding: 2px 4px;
}
.placed-item img {
  width: 100%; height: 100%; object-fit: fill; display: block;
}
.placed-item .actions {
  position: absolute; top: 2px; right: 4px;
  display: none; gap: 4px;
}
.placed-item:hover .actions { display: flex; }
.placed-item .actions button {
  background: rgba(255,255,255,.9); border: 0; border-radius: 3px;
  width: 18px; height: 18px; font-size: 11px; line-height: 1;
  cursor: pointer; color: #0f172a;
}

.u-row.drop-valid { background: rgba(61,114,231,.12); }
.u-row.drop-invalid { background: rgba(239,68,68,.12); }

/* Scrollbar tidy */
.scroll-y { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.scroll-y::-webkit-scrollbar { width: 8px; }
.scroll-y::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

@media (max-width: 1279px) {
  #small-screen { display: flex !important; }
}