.frame { position: relative; background: var(--graphite-900); border: 1px solid var(--graphite-600); }
.frame--browser { border-radius: 6px; overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.8rem; background: var(--graphite-800); border-bottom: 1px solid var(--graphite-600); }
.frame__bar i { width: 0.55rem; height: 0.55rem; background: var(--graphite-500); transform: rotate(45deg); }
.frame__url { margin-inline-start: 0.6rem; padding: 0.15rem 0.7rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--graphite-300); background: var(--graphite-950); border: 1px solid var(--graphite-600); }
.frame--phone { width: min(100%, 17.5rem); margin-inline: auto; padding: 0.6rem; border-radius: 26px; background: #0f1317; border-color: var(--graphite-500); }
.frame--phone .shot { border-radius: 18px; }
.frame__speaker { display: block; width: 3.2rem; height: 0.3rem; margin: 0 auto 0.5rem; background: var(--graphite-600); border-radius: 2px; }

.shot { display: block; width: 100%; height: auto; background: var(--graphite-800); }
.pstage__open { display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; }
.pstage__open:focus-visible { outline-offset: -4px; }

.ptabs { display: inline-flex; border: 1px solid var(--graphite-600); margin-bottom: 1.5rem; }
.ptab { min-height: 2.75rem; padding: 0 1.4rem; background: transparent; border: 0; color: var(--graphite-300); font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.ptab + .ptab { border-inline-start: 1px solid var(--graphite-600); }
.ptab:hover { color: var(--survey); }
.ptab[aria-selected="true"] { background: var(--orange); color: var(--graphite-950); }
.ptab:focus-visible { outline-offset: -3px; }

.pstage { display: grid; justify-items: center; }
.pstage__fig { display: grid; gap: 1rem; width: 100%; justify-items: center; margin: 0; animation: fade-in 0.35s var(--ease) both; }
.pstage[data-kind="web"] .pstage__fig .frame { width: min(100%, 62rem); }
.pstage__caption { display: grid; gap: 0.3rem; max-width: 62ch; text-align: center; color: var(--graphite-300); font-size: 0.9375rem; }
.pstage__caption strong { color: var(--survey); font-size: 1.0625rem; }
.pstage__badge { color: var(--warning); font-size: 0.6875rem; letter-spacing: 0.1em; text-align: center; }
.pthumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.pthumb { display: inline-flex; gap: 0.5rem; align-items: baseline; min-height: 2.75rem; padding: 0.4rem 0.9rem; background: transparent; border: 1px solid var(--graphite-600); color: var(--graphite-300); font-size: 0.875rem; transition: border-color 0.2s, color 0.2s; }
.pthumb:hover { color: var(--survey); border-color: var(--graphite-400); }
.pthumb[aria-current="true"] { color: var(--survey); border-color: var(--orange); }
.pthumb .mono { font-size: 0.75rem; color: var(--graphite-400); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.jr__where { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.where { display: grid; gap: 1.25rem; padding: clamp(1rem, 2.4vw, 2rem); background: var(--graphite-900); border: 1px solid var(--graphite-700); }
.where__head { display: flex; align-items: center; gap: 0.9rem; }
.where__head h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.where__trace { flex: none; width: 3rem; height: 2px; background: var(--orange); transform-origin: left center; animation: draw-line 0.7s var(--ease) both; }
[dir="rtl"] .where__trace { transform-origin: right center; }
@keyframes draw-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.where__grid { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.where__col { display: grid; gap: 0.7rem; align-content: start; min-width: 0; }
.where__col h4 { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.where__col p { margin: 0; color: var(--graphite-300); font-size: 0.9375rem; }
.where__fig { display: grid; gap: 0.5rem; margin: 0; }
.where__badge { color: var(--graphite-400); font-size: 0.6875rem; letter-spacing: 0.06em; }
.where__none { padding: 0.8rem 1rem; border: 1px dashed var(--graphite-600); font-size: 0.875rem; color: var(--graphite-400); }
.where__sim { margin: 0; font-size: 0.8125rem; color: var(--graphite-400); }
.where__col--history { padding-inline-start: 1rem; border-inline-start: 2px solid var(--graphite-700); }
.where { animation: fade-in 0.35s var(--ease) both; }

.lightbox { width: min(96vw, 110rem); max-height: 94vh; padding: 0; background: var(--graphite-950); color: var(--survey); border: 1px solid var(--graphite-500); }
.lightbox::backdrop { background: rgba(10, 13, 16, 0.86); }
.lightbox img { display: block; width: 100%; max-height: 82vh; object-fit: contain; background: var(--graphite-900); }
.lightbox__close { position: absolute; inset-block-start: 0.6rem; inset-inline-end: 0.6rem; z-index: 2; background: var(--graphite-950); }
.lightbox__badge { margin: 0; padding: 0.6rem 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--warning); }

@media (max-width: 70rem) { .where__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .where__col--history { grid-column: 1 / -1; padding-inline-start: 0; border-inline-start: 0; padding-top: 0.8rem; border-top: 2px solid var(--graphite-700); } }
@media (max-width: 48rem) { .where__grid { grid-template-columns: 1fr; } .frame--phone { width: min(100%, 15rem); } .pthumb { flex: 1 1 100%; } }
