/* Scene "modernize" — legacy monolith retired piece by piece through a routing layer */
.mz { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 0 12px; padding: 18px 18px 0; }
.mz-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mz-head { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.mz-modern .mz-head { color: var(--accent); }
.mz-stack { flex: 1; display: flex; flex-direction: column; gap: 5px; justify-content: flex-end; }
.mz-old { position: relative; flex: 1; max-height: 52px; display: flex; align-items: center; padding: 0 12px; border-radius: 6px; font-size: 11.5px; color: #b7bdd0; background: repeating-linear-gradient(135deg, rgba(160, 166, 190, 0.16) 0 6px, rgba(160, 166, 190, 0.1) 6px 12px); border: 1px solid rgba(180, 186, 210, 0.22); overflow: hidden; transition: opacity 0.6s var(--ease), filter 0.6s, transform 0.6s var(--ease); }
.mz-old span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-old::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 46%, rgba(255, 111, 134, 0.85) 48%, transparent 50%); opacity: 0; transform: scaleX(0.4); transition: opacity 0.3s, transform 0.5s var(--ease); }
.mz-old.is-crack { animation: mz-shake 0.45s; border-color: rgba(255, 111, 134, 0.6); }
.mz-old.is-crack::after { opacity: 1; transform: none; }
.mz-old.is-retired { opacity: 0.28; filter: grayscale(1); transform: scale(0.97); }
.mz-old.is-retired span { text-decoration: line-through; }
@keyframes mz-shake { 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.mz-proxy { position: relative; align-self: stretch; margin: 26px 0 6px; border-radius: 8px; border: 1px dashed rgba(70, 225, 255, 0.45); background: linear-gradient(180deg, rgba(70, 225, 255, 0.08), rgba(70, 225, 255, 0.02)); transition: box-shadow 0.3s, border-color 0.3s; }
.mz-proxy.is-pulse { border-color: var(--cyan); box-shadow: 0 0 22px rgba(70, 225, 255, 0.45); }
.mz-proxy-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; font-size: 9.5px; letter-spacing: 0.08em; color: var(--cyan); text-transform: uppercase; }
.mz-grid { flex: 1; display: flex; flex-direction: column; gap: 5px; justify-content: flex-end; }
.mz-new { flex: 1; max-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 8px; border: 1px dashed var(--line-2); font-size: 12px; color: var(--dim); min-width: 0; transition: all 0.6s var(--ease); }
.mz-new span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-new b { flex: none; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); }
.mz-new.is-live { border-style: solid; border-color: rgba(var(--accent-rgb), 0.55); color: var(--text); background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.24), rgba(154, 131, 255, 0.12)); box-shadow: 0 8px 24px -12px rgba(var(--accent-rgb), 0.9); }
.mz-new.is-live b { color: var(--mint); border-color: rgba(87, 242, 176, 0.45); }
.mz-foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding: 14px 0 16px; font-size: 11px; color: var(--muted); }
.mz-foot b { color: var(--text); font-weight: 500; }
.mz.is-complete .mz-foot b { color: var(--mint); }
.mz-bar { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.mz-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--mint)); transition: width 0.6s var(--ease); }
.mz-packet { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan), 0 0 4px #fff; opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
  .mz { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 0 8px; padding: 14px 12px 0; }
  .mz-new b { display: none; }
  .mz-old, .mz-new { padding: 0 9px; font-size: 11px; }
}
