/* Scene "portal" — role-based dashboard with a public/gated route strip */
.pt-wrap { position: absolute; inset: 0; container-type: inline-size; }
.pt { position: relative; height: 100%; display: grid; grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: 46px minmax(0, 1fr) auto; font-size: 12px; }
.pt-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(5, 10, 28, 0.5); }
.pt-app { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pt-app i { width: 14px; height: 14px; border-radius: 4px; background: var(--grad); }
.pt-tabs { position: relative; display: flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(5, 10, 28, 0.6); }
.pt-tab { position: relative; z-index: 1; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.4s; }
.pt-tab.is-on { color: var(--bg); }
.pt-thumb { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 0; border-radius: 999px; background: var(--mint); box-shadow: 0 0 16px rgba(87, 242, 176, 0.4); transition: transform 0.55s var(--ease), width 0.55s var(--ease); }
.pt-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.pt-side { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 8px; border-right: 1px solid var(--line); background: rgba(5, 10, 28, 0.3); }
.pt-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pt-menu li { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-menu li.is-on { background: rgba(var(--accent-rgb), 0.16); color: var(--text); }
.pt-lock { font-size: 9.5px; color: var(--dim); letter-spacing: 0.04em; padding: 0 6px; filter: grayscale(0.4); }
.pt-main { display: flex; flex-direction: column; gap: 10px; padding: 12px; min-width: 0; }
.pt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pt-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(140, 165, 255, 0.05); min-width: 0; }
.pt-card span { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-card b { font-size: 19px; letter-spacing: -0.03em; font-weight: 600; white-space: nowrap; }
.pt-lower { flex: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; min-height: 0; }
.pt-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; align-content: start; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; }
.pt-list li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-list li:last-child { border-bottom: 0; }
.pt-list li i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pt-chart { display: flex; align-items: flex-end; gap: 5px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.06)); }
.pt-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--cyan), rgba(var(--accent-rgb), 0.5)); transform-origin: bottom; }
.pt-access { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); background: rgba(5, 10, 28, 0.55); font-size: 11px; }
.pt-route { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.pt-route b { font-weight: 500; color: var(--text); }
.pt-toast { position: absolute; right: 14px; top: 54px; padding: 6px 10px; border-radius: 8px; font-size: 10.5px; color: var(--mint); border: 1px solid rgba(87, 242, 176, 0.4); background: rgba(5, 14, 30, 0.92); opacity: 0; transform: translateY(-6px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.pt-toast.is-on { opacity: 1; transform: none; }
/* role-change animation */
.pt.is-anim .pt-menu li, .pt.is-anim .pt-card, .pt.is-anim .pt-list li { animation: pt-in 0.55s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.pt.is-anim .pt-chart i { animation: pt-grow 0.7s var(--ease) both; animation-delay: calc(0.2s + var(--i) * 50ms); }
@keyframes pt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pt-grow { from { transform: scaleY(0); } }
@container (max-width: 470px) {
  .pt { grid-template-columns: minmax(0, 1fr); }
  .pt-side { display: none; }
  .pt-app { display: none; }
  .pt-tabs { margin: 0 auto 0 0; }
  .pt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-cards .pt-card:nth-child(3) { display: none; }
  .pt-lower { grid-template-columns: minmax(0, 1fr); }
  .pt-chart { display: none; }
}
