
.scene.has-r3d > .fl, .scene.has-r3d > .fr, .scene.has-r3d > .fov, .scene.has-r3d > .scap { display: none !important; }
.r3d { position: relative; width: 100%; aspect-ratio: 600 / 280; overflow: hidden; contain: layout paint; --r3d-lab: 13px; }

.card .mini .scene.r3d-hostfill { height: 100%; max-width: none; display: flex; }
.scene.r3d-hostfill .r3d { aspect-ratio: auto; height: 100%; min-height: 120px; }
.r3d-fit { position: absolute; left: 0; top: 0; transform-origin: 0 0; perspective: 900px; perspective-origin: 50% 42%; }
.r3d-cam { position: absolute; inset: 0; transform-style: preserve-3d; }
.r3d-obj { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform; }
.r3d-f { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  --sa: 160deg; --sh: .08; --sd: .2; }

.r3d-f::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(var(--sa), rgba(238, 240, 238, var(--sh)), rgba(20, 23, 22, var(--sd))); }


.r3d-phone .f-front, .r3d-dev .f-front { background: #2C3130; box-shadow: inset 0 0 0 1.5px #555C5A; }
.r3d-phone .f-back, .r3d-dev .f-back { background: #3A403F; }
.r3d-phone .f-edge, .r3d-dev .f-edge { background: #555C5A; }
.r3d-screen { position: absolute; inset: 5px; border-radius: 10px; background: #3A403F; overflow: hidden; transform-style: preserve-3d; }
.r3d-dev .r3d-screen { inset: 4px; border-radius: 7px; }
.r3d-notch { position: absolute; left: 50%; top: 5px; width: 22px; height: 4px; margin-left: -11px; border-radius: 2px; background: #A9AFAC; opacity: .6; }
.r3d-dev .r3d-notch { width: 14px; height: 3px; margin-left: -7px; top: 4px; }
.r3d-form { position: absolute; left: 9px; right: 9px; top: 20px; display: grid; gap: 7px; }
.r3d-field { position: relative; display: block; height: 15px; border-radius: 4px; border: 1.5px solid #A9AFAC; overflow: hidden; }
.r3d-fbar { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 70%; border-radius: 2px; background: #A9AFAC; transform-origin: left center; transform: scaleX(0); }
.r3d-field:nth-child(2) .r3d-fbar { width: 52%; } .r3d-field:nth-child(3) .r3d-fbar { width: 84%; }
.r3d-send { display: grid; place-items: center; height: 19px; margin-top: 4px; border-radius: 10px; background: #FF6B2C; }
.r3d-send svg { width: 18px; height: 11px; }
.r3d-banner { position: absolute; left: 5px; right: 5px; top: 13px; padding: 7px 7px 7px 30px; border-radius: 8px; background: #EEF0EE;
  display: grid; gap: 4px; opacity: 0; transform: translateY(-110%); box-shadow: 0 6px 14px rgba(20, 23, 22, .35); }
.r3d-banner .r3d-bar { display: block; height: 5px; border-radius: 2px; background: #A9AFAC; }
.r3d-ico { position: absolute; left: 7px; top: 7px; width: 17px; height: 12px; border-radius: 3px; background: #FF6B2C; }
.r3d-banner-s { left: 4px; right: 4px; top: 11px; padding: 5px 5px 5px 20px; }
.r3d-banner-s .r3d-ico { left: 5px; top: 5px; width: 11px; height: 8px; border-radius: 2px; }
.r3d-ring { position: absolute; left: 50%; top: 58%; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #FF6B2C; opacity: 0; }


.r3d-deck { width: 100%; height: 100%; border-radius: 12px; background: #3A403F; box-shadow: inset 0 0 0 1.5px #555C5A; transform-style: preserve-3d; }
.r3d-lip { left: 0; width: 100%; height: 8px; top: calc(50% - 4px); background: #555C5A; border-radius: 0 0 6px 6px; }
.r3d-job { position: absolute; left: 12px; right: 12px; top: 12px; height: calc(var(--slot, 40px) - 7px); border-radius: 7px; background: #2C3130;
  box-shadow: inset 0 0 0 1.5px #555C5A; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding-left: 11px; transform-style: preserve-3d; }
.r3d-job.j-new { box-shadow: inset 0 0 0 1.5px #FF6B2C; opacity: 0; }
.r3d-line { display: block; height: 5px; border-radius: 2px; background: #A9AFAC; opacity: .75; }
.r3d-line.r3d-short { opacity: .45; }

.r3d-tag { position: absolute; right: 10px; bottom: 50%; transform-origin: 50% 100%; backface-visibility: hidden; }
.r3d-tag b { display: block; padding: 2px 8px; border-radius: 9px; background: #FF6B2C; color: #2C3130; font-size: 13px; line-height: 16px; font-weight: 700; }


.r3d-sheet { width: 64px; height: 96px; opacity: 0; }
.r3d-pn { position: absolute; left: 0; width: 64px; height: 32px; transform-style: preserve-3d; }
.r3d-pn.p-top { top: 0; transform-origin: 50% 100%; } .r3d-pn.p-mid { top: 32px; } .r3d-pn.p-bot { top: 64px; transform-origin: 50% 0; }
.r3d-paper { width: 64px; height: 32px; background: #EEF0EE; display: grid; align-content: center; gap: 5px; padding: 0 9px; }
.r3d-paper.f-back { transform: rotateY(180deg); background: #C4C9C6; padding: 0; }
.r3d-paper.f-back svg { width: 100%; height: 100%; display: block; }
.p-top .f-front { border-radius: 5px 5px 0 0; } .p-bot .f-front { border-radius: 0 0 5px 5px; }
.p-top .f-back { border-radius: 0 0 5px 5px; } .p-bot .f-back { border-radius: 5px 5px 0 0; }
.r3d-paper .r3d-bar { display: block; height: 5px; border-radius: 2px; background: #A9AFAC; }
.r3d-sendbar { display: block; width: 60%; height: 8px; margin: 0 auto; border-radius: 4px; background: #FF6B2C; }


.r3d-reply { width: 64px; height: 34px; opacity: 0; }
.r3d-env-f { width: 64px; height: 34px; border-radius: 5px; background: #FF6B2C; }
.r3d-env-f svg { width: 100%; height: 100%; display: block; }


.r3d-sh { position: absolute; left: 0; top: 0; height: 16px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(14, 16, 16, .75), rgba(14, 16, 16, 0)); }


.r3d-lab { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: var(--r3d-lab); line-height: 1.25; font-weight: 600;
  color: #EEF0EE; opacity: 0; pointer-events: none; }
.r3d-lab[data-lab="form"], .r3d-lab[data-lab="copy"] { color: #A9AFAC; }


.scene .r3d svg { max-width: none; max-height: none; overflow: visible; }
.scene .r3d .r3d-routes { position: absolute; left: 0; top: 0; pointer-events: none; }
.r3d-routes path { fill: none; stroke-linecap: round; }
.r3d-routes .rt-base { stroke: #6d7472; stroke-width: 1.6; stroke-dasharray: .018 .022; }
.r3d-routes .rt-run { stroke: #A9AFAC; stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.r3d-routes .rt-run.rt-sg { stroke: #FF6B2C; stroke-width: 2.4; }
.scene .r3d .r3d-send svg { width: 18px; height: 11px; }
.scene .r3d .r3d-env-f svg, .scene .r3d .r3d-paper.f-back svg { width: 100%; height: 100%; }


.tier-still .r3d-obj { will-change: auto; }
@media (prefers-reduced-motion: reduce) { .r3d-obj { will-change: auto; } }
