/*
 * DivyGfx, industry pages: rich section kit (v1).
 * Loaded after industries.css. Behaviour lives in industries-x.js.
 *   .xj  [data-xj]  journey: node rail + travelling puck + stage panes
 *   .xh  [data-xh]  hub: core + orbiting satellites, spokes with data packets
 *   .xr  [data-xr]  roles: vertical role cards + device stage
 *   .xv  [data-xv]  vault: security rings, travelling request, live audit log
 *   .xm-*           animated mock primitives, replay each time their pane opens
 */

@keyframes xIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes xPop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes xFade { from { opacity: 0; } }
@keyframes xGrow { from { width: 0; } }
@keyframes xGrowY { from { transform: scaleY(0); } }
@keyframes xSpin { to { transform: rotate(360deg); } }
@keyframes xBob { 50% { transform: translateY(-7px); } }
@keyframes xPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--svc) 45%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes xBlink { 50% { opacity: .3; } }
@keyframes xDash { to { background-position: 40px 0; } }
@keyframes xTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =====================================================================
   JOURNEY
   ===================================================================== */
.xj { position: relative; --n: 6; --i: 0; --p: 0; }
.xj-rw { position: relative; margin: 0 auto 22px; }
.xj-rail { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; padding-top: 4px; }
.xj-line { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 33px; height: 4px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.xj-line::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--svc) 22%, transparent) 0 8px, transparent 8px 20px); background-size: 40px 4px; animation: xDash 1.2s linear infinite; }
.xj-line u { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--svc), var(--svc-2)); transition: width .8s var(--ease); }
.xj-puck { position: absolute; z-index: 1; top: 25px; left: calc(100% / var(--n) * (var(--i) + .5)); width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--svc-2); box-shadow: 0 0 0 6px color-mix(in srgb, var(--svc-2) 22%, transparent), 0 6px 14px -4px var(--svc); transition: left .8s var(--ease); pointer-events: none; opacity: 0; }
.xj-n { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 2px 6px; border: 0; background: none; font: inherit; color: var(--muted); text-align: center; cursor: pointer; }
.xj-n > i { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); color: var(--muted-2); font-style: normal; transition: transform .45s var(--ease), background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease; }
.xj-n > i::before { content: ""; position: absolute; inset: -7px; border-radius: 25px; border: 1.5px dashed color-mix(in srgb, var(--svc) 50%, transparent); opacity: 0; transform: scale(.85); transition: opacity .35s ease, transform .45s var(--ease); }
.xj-n b { font-size: 14px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; transition: color .3s ease; }
.xj-n small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; color: var(--muted-3); }
.xj-n > em { display: block; width: 46px; height: 3px; margin-top: 2px; border-radius: 99px; background: var(--soft-2); overflow: hidden; opacity: 0; }
.xj-n > em::after { content: ""; display: block; height: 100%; border-radius: inherit; background: var(--svc); transform: scaleX(0); transform-origin: left; }
.xj-n:hover > i { transform: translateY(-3px); border-color: color-mix(in srgb, var(--svc) 40%, var(--line)); }
.xj-n.done > i { border-color: color-mix(in srgb, var(--svc) 45%, var(--line)); color: var(--svc); }
.xj-n.done > i::after { content: "✓"; position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--svc); color: #fff; font-size: 11px; font-weight: 700; border: 2px solid #fff; animation: xPop .4s var(--ease) both; }
.xj-n.on > i { background: linear-gradient(140deg, var(--svc), color-mix(in srgb, var(--svc) 60%, var(--svc-2))); border-color: transparent; color: #fff; transform: translateY(-6px) scale(1.06); box-shadow: 0 18px 30px -14px var(--svc); animation: xPulse 1.8s ease-out infinite; }
.xj-n.on > i::before { opacity: 1; transform: none; animation: xSpin 9s linear infinite; }
.xj-n.on b { color: var(--ink); }
.xj-n.on > em { opacity: 1; }
.xj-n.on > em::after { animation: xTimer var(--dur, 4s) linear forwards; }
.xj.paused .xj-n.on > em::after { animation-play-state: paused; }
.xj.manual .xj-n > em { opacity: 0 !important; }

.xj-stage { position: relative; }
.xj-p { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 34px; align-items: center; padding: 30px; border-radius: 30px; background: linear-gradient(160deg, color-mix(in srgb, var(--svc-soft) 70%, #fff), #fff 55%); border: 1px solid color-mix(in srgb, var(--svc) 14%, var(--line)); box-shadow: 0 30px 60px -48px color-mix(in srgb, var(--svc) 80%, #000); overflow: hidden; isolation: isolate; }
.xj-p::before { content: ""; position: absolute; right: -120px; top: -140px; z-index: -1; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--svc-2) 18%, transparent), transparent); animation: xBob 8s ease-in-out infinite; }
.xj-p[hidden] { display: none !important; }
.xj-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.xj-k { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.xj-k > i { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--svc); color: #fff; font-style: normal; font-size: 11.5px; font-family: var(--font-mono); }
.xj-k > em { font-style: normal; color: var(--muted-3); font-weight: 500; }
.xj-copy h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.04em; line-height: 1.12; margin: 2px 0 0; }
.xj-copy > p { color: #4a5164; margin: 0; max-width: 520px; }
.xj-pts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.xj-pts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.xj-pts li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; background: var(--svc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.xj-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.xj-meta span { display: flex; flex-direction: column; padding: 9px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); min-width: 104px; }
.xj-meta b { font-family: var(--font-head); font-size: 20px; letter-spacing: -.04em; line-height: 1.15; color: var(--svc-ink); font-variant-numeric: tabular-nums; }
.xj-meta small { font-size: 12px; color: var(--muted-2); }
.xj-vis { position: relative; min-width: 0; }
.xj-p.is-on .xj-copy > * { animation: xIn .55s var(--ease) both; }
.xj-p.is-on .xj-copy > *:nth-child(2) { animation-delay: .05s; } .xj-p.is-on .xj-copy > *:nth-child(3) { animation-delay: .1s; } .xj-p.is-on .xj-copy > *:nth-child(4) { animation-delay: .15s; } .xj-p.is-on .xj-copy > *:nth-child(5) { animation-delay: .2s; }
.xj-p.is-on .xj-pts li { animation: xIn .5s var(--ease) both; } .xj-p.is-on .xj-pts li:nth-child(2) { animation-delay: .22s; } .xj-p.is-on .xj-pts li:nth-child(3) { animation-delay: .3s; } .xj-p.is-on .xj-pts li:nth-child(4) { animation-delay: .38s; }
.xj-p.is-on .xj-vis { animation: xIn .6s var(--ease) .08s both; }

/* journey on dark bands */
.dark-band .xj-line { background: rgba(255,255,255,.08); }
.dark-band .xj-line::before { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 8px, transparent 8px 20px); }
.dark-band .xj-n > i { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.65); }
.dark-band .xj-n b { color: rgba(255,255,255,.62); } .dark-band .xj-n.on b { color: #fff; }
.dark-band .xj-n small { color: rgba(255,255,255,.45); }
.dark-band .xj-n.done > i { border-color: color-mix(in srgb, var(--svc-2) 60%, transparent); color: var(--svc-2); }
.dark-band .xj-n.done > i::after { border-color: var(--dark); background: var(--svc-2); color: var(--dark); }
.dark-band .xj-n.on > i { background: linear-gradient(140deg, color-mix(in srgb, var(--svc) 70%, #fff 0%), var(--svc-2)); color: #fff; }
.dark-band .xj-n > em { background: rgba(255,255,255,.1); } .dark-band .xj-n > em::after { background: var(--svc-2); }
.dark-band .xj-puck { border-color: var(--svc-2); background: var(--dark); }
.dark-band .xj-p { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border-color: rgba(255,255,255,.1); box-shadow: none; }
.dark-band .xj-copy h3 { color: #fff; }
.dark-band .xj-copy > p { color: rgba(255,255,255,.72); }
.dark-band .xj-pts li { color: rgba(255,255,255,.86); }
.dark-band .xj-pts li::before { background-color: color-mix(in srgb, var(--svc) 60%, var(--svc-2)); }
.dark-band .xj-k { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.dark-band .xj-k > em { color: rgba(255,255,255,.55); }
.dark-band .xj-meta span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.dark-band .xj-meta b { color: #fff; } .dark-band .xj-meta small { color: rgba(255,255,255,.6); }

/* =====================================================================
   HUB
   ===================================================================== */
.xh { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.xh-orb { --o: min(500px, 49cqw); position: relative; width: var(--o); height: var(--o); margin: 30px auto; justify-self: center; }
.xh-orb > .xh-ring { position: absolute; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--svc) 28%, transparent); pointer-events: none; }
.xh-orb > .xh-ring:nth-of-type(1) { inset: 10%; animation: xSpin 60s linear infinite; }
.xh-orb > .xh-ring:nth-of-type(2) { inset: 26%; border-style: solid; border-color: color-mix(in srgb, var(--svc) 12%, transparent); background: radial-gradient(closest-side, color-mix(in srgb, var(--svc-soft) 90%, transparent), transparent); }
.xh-sp { position: absolute; left: 50%; top: 50%; width: 38%; height: 2px; transform-origin: 0 50%; transform: rotate(var(--a)); pointer-events: none; }
.xh-sp::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--svc) 35%, transparent) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: xDash 1.4s linear infinite reverse; opacity: .7; transition: opacity .3s ease; }
.xh-sp u { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--svc-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc-2) 25%, transparent); animation: xhPk 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.xh-sp u + u { background: var(--svc); animation-name: xhPk2; animation-delay: calc(var(--d, 0s) + 1.2s); }
@keyframes xhPk { 0% { left: 14%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 84%; opacity: 0; } }
@keyframes xhPk2 { 0% { left: 84%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 14%; opacity: 0; } }
.xh-sp.on::before { opacity: 1; background-image: repeating-linear-gradient(90deg, var(--svc) 0 8px, transparent 8px 12px); }
.xh-sp.on u { animation-duration: 1.2s; }
.xh-core { position: absolute; left: 50%; top: 50%; z-index: 2; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--svc) 75%, #fff), var(--svc) 55%, var(--svc-ink)); color: #fff; text-align: center; box-shadow: 0 30px 60px -24px var(--svc), inset 0 -10px 30px rgba(0,0,0,.18); animation: xPulse 2.4s ease-out infinite; }
.xh-core::before, .xh-core::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--svc) 30%, transparent); animation: xhWave 3s ease-out infinite; }
.xh-core::after { animation-delay: 1.5s; }
@keyframes xhWave { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.xh-core svg { margin-bottom: 2px; }
.xh-core b { font-family: var(--font-head); font-size: clamp(14px, 1.8vw, 18px); letter-spacing: -.03em; line-height: 1.1; }
.xh-core small { font-size: 11px; opacity: .8; line-height: 1.2; }
.xh-s { position: absolute; z-index: 3; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px 9px; min-width: 96px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 30px -20px rgba(15,17,21,.45); font: inherit; text-align: center; cursor: pointer; transition: transform .45s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.xh-s > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--svc-soft); color: var(--svc); font-style: normal; transition: background-color .3s ease, color .3s ease; }
.xh-s b { font-size: 13px; letter-spacing: -.02em; line-height: 1.2; }
.xh-s small { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; line-height: 1.2; }
.xh-s small::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #22c55e; vertical-align: 1px; animation: xBlink 1.6s infinite; }
.xh-s:hover { transform: translate(-50%, -50%) translateY(-3px); }
.xh-s.on { transform: translate(-50%, -50%) scale(1.1); border-color: color-mix(in srgb, var(--svc) 50%, var(--line)); box-shadow: 0 22px 40px -22px var(--svc); }
.xh-s.on > i { background: var(--svc); color: #fff; }
.xh-d { position: relative; min-width: 0; }
.xh-p { display: flex; flex-direction: column; gap: 14px; }
.xh-p[hidden] { display: none !important; }
.xh-p.is-on > * { animation: xIn .5s var(--ease) both; } .xh-p.is-on > *:nth-child(2) { animation-delay: .07s; } .xh-p.is-on > *:nth-child(3) { animation-delay: .14s; } .xh-p.is-on > *:nth-child(4) { animation-delay: .21s; }
.xh-p h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.04em; margin: 0; }
.xh-p h3 > i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; background: var(--svc); color: #fff; font-style: normal; }
.xh-p > p { margin: 0; color: #4a5164; }
.dark-band .xh-s { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); }
.dark-band .xh-s small { color: rgba(255,255,255,.6); }
.dark-band .xh-s > i { background: rgba(255,255,255,.1); color: var(--svc-2); }
.dark-band .xh-p h3 { color: #fff; } .dark-band .xh-p > p { color: rgba(255,255,255,.72); }
.dark-band .xh-orb > .xh-ring:nth-of-type(2) { background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent); }

/* =====================================================================
   ROLES
   ===================================================================== */
.xr { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: stretch; }
.xr-tabs { display: flex; flex-direction: column; gap: 8px; }
.xr-t { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease, transform .4s var(--ease), background-color .3s ease; }
.xr-t > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--soft); color: var(--muted-2); font-style: normal; transition: background-color .3s ease, color .3s ease, transform .4s var(--ease); }
.xr-t b { display: block; font-size: 15px; letter-spacing: -.02em; }
.xr-t small { display: block; font-size: 12.5px; color: var(--muted-2); line-height: 1.35; }
.xr-t > em { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--svc), var(--svc-2)); transform: scaleX(0); transform-origin: left; }
.xr-t:hover { transform: translateX(3px); }
.xr-t.on { border-color: color-mix(in srgb, var(--svc) 40%, var(--line)); background: linear-gradient(120deg, var(--svc-soft), #fff 70%); box-shadow: 0 16px 30px -24px var(--svc); transform: translateX(6px); }
.xr-t.on > i { background: var(--svc); color: #fff; transform: rotate(-6deg); }
.xr-t.on > em { animation: xTimer var(--dur, 5s) linear forwards; }
.xr.paused .xr-t.on > em { animation-play-state: paused; }
.xr.manual .xr-t > em { display: none; }
.xr-stage { position: relative; min-width: 0; }
.xr-p { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; padding: 28px; border-radius: 30px; background: radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--svc-soft) 90%, transparent), transparent 70%), linear-gradient(160deg, #fff, var(--soft) 120%); border: 1px solid color-mix(in srgb, var(--svc) 14%, var(--line)); overflow: hidden; isolation: isolate; }
.xr-p[hidden] { display: none !important; }
.xr-p::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--svc) 14%, transparent) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(60% 60% at 30% 50%, #000, transparent); mask-image: radial-gradient(60% 60% at 30% 50%, #000, transparent); }
.xr-dev { position: relative; display: grid; place-items: center; min-height: 420px; }
.xr-info { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.xr-info h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.04em; line-height: 1.15; margin: 0; }
.xr-info > p { margin: 0; color: #4a5164; }
.xr-p.is-on .xr-info > * { animation: xIn .5s var(--ease) both; } .xr-p.is-on .xr-info > *:nth-child(2) { animation-delay: .06s; } .xr-p.is-on .xr-info > *:nth-child(3) { animation-delay: .12s; } .xr-p.is-on .xr-info > *:nth-child(4) { animation-delay: .18s; } .xr-p.is-on .xr-info > *:nth-child(5) { animation-delay: .24s; }
.xr-p.is-on .xr-dev > :first-child { animation: xrDev .7s var(--ease) both; }
@keyframes xrDev { from { opacity: 0; transform: translateY(30px) rotate(-3deg) scale(.95); } }
.xr-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-float); font-size: 12px; white-space: nowrap; animation: xPop .5s var(--ease) both, xBob 5s ease-in-out infinite; }
.xr-chip > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--c, var(--svc)) 14%, #fff); color: var(--c, var(--svc)); font-style: normal; }
.xr-chip b { display: block; font-size: 12.5px; } .xr-chip small { color: var(--muted-2); font-size: 11px; }
.xr-p.is-on .xr-chip:nth-of-type(1) { animation-delay: .6s, .6s; } .xr-p.is-on .xr-chip:nth-of-type(2) { animation-delay: 1s, 1s; } .xr-p.is-on .xr-chip:nth-of-type(3) { animation-delay: 1.4s, 1.4s; }
.xr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 4px; }
.xr-stats span { padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.xr-stats b { display: block; font-family: var(--font-head); font-size: 22px; letter-spacing: -.04em; color: var(--svc-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.xr-stats small { font-size: 12px; color: var(--muted-2); line-height: 1.3; display: block; }
.dark-band .xr-t { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #fff; }
.dark-band .xr-t small { color: rgba(255,255,255,.55); }
.dark-band .xr-t > i { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.dark-band .xr-t.on { background: rgba(255,255,255,.1); border-color: color-mix(in srgb, var(--svc-2) 50%, transparent); }
.dark-band .xr-t.on > i { background: var(--svc-2); color: var(--dark); }
.dark-band .xr-p { background: radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--svc) 30%, transparent), transparent 70%), rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.dark-band .xr-p::after { background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); }
.dark-band .xr-info h3 { color: #fff; } .dark-band .xr-info > p { color: rgba(255,255,255,.72); }
.dark-band .xr-info .in-list li { color: rgba(255,255,255,.86); } .dark-band .xr-info .in-list svg { color: var(--svc-2); }
.dark-band .xr-stats span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.dark-band .xr-stats b { color: #fff; } .dark-band .xr-stats small { color: rgba(255,255,255,.6); }

/* devices */
.xd-phone { position: relative; width: 236px; height: 470px; padding: 11px; border-radius: 40px; background: #0f1115; box-shadow: 0 50px 80px -40px rgba(15,17,21,.75), inset 0 0 0 2px #2a2d35; }
.xd-phone::before { content: ""; position: absolute; left: 50%; top: 18px; z-index: 5; width: 70px; height: 20px; margin-left: -35px; border-radius: 99px; background: #0f1115; }
.xd-scr { position: relative; height: 100%; border-radius: 30px; background: #f5f6fa; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; }
.xd-top { padding: 44px 14px 12px; background: linear-gradient(150deg, var(--svc), color-mix(in srgb, var(--svc) 60%, var(--svc-2))); color: #fff; }
.xd-top small { display: block; font-size: 10.5px; opacity: .8; } .xd-top b { font-size: 16px; letter-spacing: -.02em; line-height: 1.2; }
.xd-body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; position: relative; }
.xd-tab { position: relative; width: 100%; max-width: 440px; aspect-ratio: 4 / 3; padding: 12px; border-radius: 26px; background: #0f1115; box-shadow: 0 50px 80px -40px rgba(15,17,21,.75), inset 0 0 0 2px #2a2d35; }
.xd-tab > .xd-scr { border-radius: 16px; }
.xd-tab .xd-top { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.xd-lap { position: relative; width: 100%; max-width: 470px; }
.xd-lap > .xd-scr { height: auto; aspect-ratio: 16 / 10.5; border-radius: 14px 14px 0 0; border: 9px solid #0f1115; border-bottom-width: 12px; }
.xd-lap::after { content: ""; display: block; height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #d9dde5, #b9bfca); box-shadow: 0 30px 40px -24px rgba(15,17,21,.6); }
.xd-lap .xd-top { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.xd-tv { position: relative; width: 100%; max-width: 460px; padding: 10px; border-radius: 18px; background: #0f1115; box-shadow: 0 40px 70px -40px rgba(15,17,21,.75); }
.xd-tv::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 90px; height: 26px; margin-left: -45px; background: linear-gradient(180deg, #2a2d35, #15171c); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }

/* =====================================================================
   VAULT (security)
   ===================================================================== */
.xv { display: flex; flex-direction: column; gap: 16px; align-items: center; width: 100%; }
.xv-orb { position: relative; width: min(400px, 100%); aspect-ratio: 1; }
.xv-ring { position: absolute; inset: calc(var(--k) * var(--st, 9.5%)); border-radius: 50%; border: 2px solid color-mix(in srgb, var(--svc) calc(18% + var(--k) * 8%), #fff); background: color-mix(in srgb, var(--svc) calc(2% + var(--k) * 2.5%), transparent); transition: border-color .4s ease, background-color .4s ease, box-shadow .4s ease; }
.xv-ring::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px dashed transparent; border-top-color: color-mix(in srgb, var(--svc) 60%, transparent); border-right-color: color-mix(in srgb, var(--svc) 30%, transparent); animation: xSpin calc(10s + var(--k) * 4s) linear infinite; }
.xv-ring:nth-child(even)::before { animation-direction: reverse; }
.xv-ring > em { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 14px -10px rgba(15,17,21,.4); font-style: normal; font-size: 11.5px; font-weight: 650; white-space: nowrap; color: var(--ink-2); transition: background-color .3s ease, color .3s ease, transform .3s var(--ease), border-color .3s ease; }
.xv-ring.on { border-color: var(--svc); background: color-mix(in srgb, var(--svc) calc(6% + var(--k) * 3%), transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--svc) 10%, transparent); }
.xv-ring.on > em { background: var(--svc); border-color: var(--svc); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.xv-ring.on > em::after { content: " ✓"; }
.xv-ring.bad { border-color: #ef4444; box-shadow: 0 0 0 6px rgba(239,68,68,.12); }
.xv-ring.bad > em { background: #ef4444; border-color: #ef4444; color: #fff; }
.xv-ring.bad > em::after { content: " ✕"; }
.xv-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 300deg, color-mix(in srgb, var(--svc-2) 28%, transparent) 360deg); animation: xSpin 4s linear infinite; -webkit-mask-image: radial-gradient(closest-side, #000 98%, transparent); mask-image: radial-gradient(closest-side, #000 98%, transparent); pointer-events: none; }
.xv-core { position: absolute; inset: 38%; z-index: 2; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--svc) 70%, #fff), var(--svc) 60%, var(--svc-ink)); color: #fff; box-shadow: 0 20px 40px -14px var(--svc); transition: transform .4s var(--ease), box-shadow .4s ease; }
.xv-core.ok { transform: scale(1.08); box-shadow: 0 0 0 10px color-mix(in srgb, #22c55e 25%, transparent), 0 20px 40px -14px var(--svc); }
.xv-pk { position: absolute; z-index: 3; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--svc); box-shadow: 0 8px 18px -8px rgba(15,17,21,.5); font-size: 13px; transform: rotate(var(--ang, -40deg)) translateY(calc(var(--r, 52) * -1%)) rotate(calc(var(--ang, -40deg) * -1)); transition: transform 1s var(--ease), background-color .3s ease, color .3s ease, opacity .3s ease; }
.xv-orb { container-type: inline-size; }
.xv-pk { transform: rotate(var(--ang, -40deg)) translateY(calc(var(--r, 52) * -1cqw)) rotate(calc(var(--ang, -40deg) * -1)); }
.xv-pk.bad { background: #ef4444; color: #fff; }
.xv-pk.gone { opacity: 0; }
.xv-log { width: min(460px, 100%); border-radius: 18px; background: var(--dark); color: #d6dbe6; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0; overflow: hidden; box-shadow: 0 30px 50px -36px rgba(15,17,21,.8); }
.xv-log-h { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.6); font-family: var(--font-body); font-size: 12px; }
.xv-log-h b { color: #fff; font-weight: 600; } .xv-log-h span { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.xv-log-h span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: xBlink 1.4s infinite; }
.xv-log-b { height: 124px; padding: 8px 14px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.xv-log-b > div { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; white-space: nowrap; animation: xIn .4s var(--ease) both; }
.xv-log-b > div > span { overflow: hidden; text-overflow: ellipsis; }
.xv-log-b time { color: rgba(255,255,255,.4); }
.xv-log-b em { font-style: normal; color: #4ade80; } .xv-log-b .bad em { color: #f87171; } .xv-log-b .bad span { color: #fecaca; }

/* =====================================================================
   MOCK PRIMITIVES (.xm-*)
   ===================================================================== */
.xm { position: relative; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(15,17,21,.55), 0 2px 6px -2px rgba(15,17,21,.06); overflow: hidden; font-size: 13px; color: var(--ink); text-align: left; }
.xm-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: #fafbfc; }
.xm-h > i { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--svc-soft); color: var(--svc); font-style: normal; }
.xm-h b { display: block; font-size: 13.5px; letter-spacing: -.02em; line-height: 1.2; } .xm-h small { display: block; font-size: 11.5px; color: var(--muted-2); line-height: 1.2; }
.xm-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: #e9f9ef; color: #15803d; font-size: 11px; font-weight: 650; white-space: nowrap; }
.xm-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: xBlink 1.4s infinite; }
.xm-b { position: relative; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.xm-b > * { animation: xIn .45s var(--ease) both; }
.xm-b > :nth-child(2) { animation-delay: .1s; } .xm-b > :nth-child(3) { animation-delay: .2s; } .xm-b > :nth-child(4) { animation-delay: .3s; } .xm-b > :nth-child(5) { animation-delay: .4s; } .xm-b > :nth-child(6) { animation-delay: .5s; } .xm-b > :nth-child(7) { animation-delay: .6s; } .xm-b > :nth-child(8) { animation-delay: .7s; }
.xm-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--soft); }
.xm-r > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--c, var(--svc)) 14%, #fff); color: var(--c, var(--svc)); font-style: normal; font-size: 12px; font-weight: 700; }
.xm-r > span { min-width: 0; } .xm-r > span b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .xm-r > span small { display: block; font-size: 11px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xm-r.hl { background: color-mix(in srgb, var(--svc) 9%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--svc) 35%, transparent); }
.xm-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 650; white-space: nowrap; background: var(--svc-soft); color: var(--svc-ink); }
.xm-pill.ok { background: #e9f9ef; color: #15803d; } .xm-pill.warn { background: #fff4e0; color: #b45309; } .xm-pill.bad { background: #fde8e8; color: #b91c1c; } .xm-pill.info { background: #e6f1ff; color: #1d4ed8; } .xm-pill.mute { background: var(--soft-2); color: var(--muted-2); }
.xm-pill.pop { animation: xPop .45s var(--ease) both; animation-delay: var(--pd, 1s); }
.xm-bar { display: block; height: 7px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.xm-bar > u { display: block; height: 100%; width: var(--w, 60%); border-radius: inherit; background: linear-gradient(90deg, var(--c, var(--svc)), color-mix(in srgb, var(--c, var(--svc)) 50%, var(--svc-2))); animation: xGrow 1.2s var(--ease) .3s both; }
.xm-toast { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--dark); color: #fff; font-size: 12px; box-shadow: 0 16px 30px -16px rgba(15,17,21,.7); animation: xToast 5s var(--ease) both; animation-delay: var(--td, 1.2s); }
.xm-toast > i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--c, #22c55e) 25%, transparent); color: var(--c, #4ade80); font-style: normal; }
.xm-toast b { display: block; font-size: 12.5px; } .xm-toast small { color: rgba(255,255,255,.65); font-size: 11px; }
@keyframes xToast { 0% { opacity: 0; transform: translateY(20px) scale(.95); } 10%, 100% { opacity: 1; transform: none; } }
.xm-toast.top { top: 12px; bottom: auto; }
.xm-kpis { display: grid; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); gap: 8px; }
.xm-kpis > span { padding: 10px; border-radius: 12px; background: var(--soft); }
.xm-kpis b { display: block; font-family: var(--font-head); font-size: 20px; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.xm-kpis small { font-size: 11px; color: var(--muted-2); }
.xm-msg { max-width: 86%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 2px rgba(15,17,21,.08); font-size: 12px; line-height: 1.45; animation: xIn .4s var(--ease) both; }
.xm-msg.out { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #d9fdd3; }
.xm-msg small { display: block; margin-top: 2px; font-size: 10px; color: var(--muted-3); text-align: right; }
.xm-chat { display: flex; flex-direction: column; gap: 7px; padding: 12px; background: #efeae2; min-height: 100%; }
.xm-chat > :nth-child(1) { animation-delay: .2s; } .xm-chat > :nth-child(2) { animation-delay: .9s; } .xm-chat > :nth-child(3) { animation-delay: 1.6s; } .xm-chat > :nth-child(4) { animation-delay: 2.3s; } .xm-chat > :nth-child(5) { animation-delay: 3s; }
.xm-btn { display: block; padding: 10px; border-radius: 12px; background: var(--svc); color: #fff; text-align: center; font-weight: 700; font-size: 12.5px; box-shadow: 0 10px 18px -12px var(--svc); }
.xm-btn.ghost { background: #fff; color: var(--svc-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--svc) 40%, transparent); }
.xm-btn.press { animation: xPress 3s ease-in-out infinite; animation-delay: var(--bd, 1.4s); }
@keyframes xPress { 0%, 30%, 100% { transform: none; } 35% { transform: scale(.94); filter: brightness(1.15); } 42% { transform: none; } }
.xm-stamp { position: absolute; z-index: 6; right: 16px; top: 46%; padding: 6px 14px; border: 3px solid currentColor; border-radius: 10px; color: #16a34a; font-family: var(--font-head); font-size: 20px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; transform: rotate(-12deg); background: rgba(255,255,255,.85); animation: xStamp .5s cubic-bezier(.2,1.6,.4,1) both; animation-delay: var(--sd, 1.4s); }
@keyframes xStamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } }
.xm-scan { position: relative; overflow: hidden; }
.xm-scan::after { content: ""; position: absolute; left: 6%; right: 6%; top: 10%; height: 2px; background: #ef4444; box-shadow: 0 0 12px 3px rgba(239,68,68,.6); animation: xScan 1.6s ease-in-out infinite alternate; }
@keyframes xScan { to { top: 88%; } }
.xm-spark { display: block; width: 100%; height: 60px; overflow: visible; }
.xm-spark path { fill: none; stroke: var(--c, var(--svc)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: xDraw 1.8s var(--ease) .3s forwards; vector-effect: non-scaling-stroke; }
.xm-spark path.a { stroke: none; fill: color-mix(in srgb, var(--c, var(--svc)) 14%, transparent); stroke-dasharray: none; animation: xFade 1s ease 1.2s both; }
@keyframes xDraw { to { stroke-dashoffset: 0; } }
.xm-cols { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.xm-cols > i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--c, var(--svc)) 30%, #fff); transform-origin: bottom; animation: xGrowY .8s var(--ease) both; }
.xm-cols > i:nth-child(2) { animation-delay: .06s; } .xm-cols > i:nth-child(3) { animation-delay: .12s; } .xm-cols > i:nth-child(4) { animation-delay: .18s; } .xm-cols > i:nth-child(5) { animation-delay: .24s; } .xm-cols > i:nth-child(6) { animation-delay: .3s; } .xm-cols > i:nth-child(7) { animation-delay: .36s; } .xm-cols > i:nth-child(8) { animation-delay: .42s; }
.xm-cols > i.hl { background: linear-gradient(180deg, var(--svc-2), var(--svc)); }
.xm-chk { display: grid; gap: 6px; }
.xm-chk > span { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: 12.5px; }
.xm-chk > span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #cfd6e0; background: #fff center / 12px no-repeat; animation: xTick .35s var(--ease) both; }
.xm-chk > span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.xm-chk > span:nth-child(1)::before { animation-delay: .5s; } .xm-chk > span:nth-child(2)::before { animation-delay: .9s; } .xm-chk > span:nth-child(3)::before { animation-delay: 1.3s; } .xm-chk > span:nth-child(4)::before { animation-delay: 1.7s; } .xm-chk > span:nth-child(5)::before { animation-delay: 2.1s; }
.xm-chk > span.no::before { animation: none; background-image: none; }
@keyframes xTick { from { background-color: #fff; border-color: #cfd6e0; } to { background-color: var(--svc); border-color: var(--svc); } }
.xm-chk > span::before { animation-fill-mode: both; }
.xm-chk > span > em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted-3); }
.xm-type { font-family: var(--font-mono); letter-spacing: 0; font-size: .95em; display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; vertical-align: bottom; border-right: 2px solid var(--svc); width: 0; animation: xType 1.4s steps(var(--ch, 24)) var(--ty, .4s) forwards, xCaret .7s step-end infinite; }
@keyframes xType { to { width: calc(var(--ch, 24) * 1ch); } }
@keyframes xCaret { 50% { border-color: transparent; } }
.xm-dots { display: inline-flex; gap: 3px; } .xm-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: xBlink 1s infinite; } .xm-dots i:nth-child(2) { animation-delay: .2s; } .xm-dots i:nth-child(3) { animation-delay: .4s; }
.xm-av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c, var(--svc)); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; }
.xm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xm-field { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.xm-field small { font-size: 10.5px; color: var(--muted-3); } .xm-field b { font-size: 12.5px; }
.xm-float { position: absolute; z-index: 6; animation: xPop .5s var(--ease) both, xBob 5s ease-in-out infinite; animation-delay: var(--fd, 1s), var(--fd, 1s); }
.xm-flow { display: flex; align-items: center; gap: 0; }
.xm-flow > span { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--soft); color: var(--muted-2); animation: xFlowOn .4s var(--ease) both; }
.xm-flow > u { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--svc) 50%, transparent) 0 5px, transparent 5px 10px); background-size: 20px 2px; animation: xDash 1s linear infinite; }
@keyframes xFlowOn { to { background: var(--svc); color: #fff; } }
.xm-flow > span:nth-of-type(1) { animation-delay: .3s; } .xm-flow > span:nth-of-type(2) { animation-delay: .9s; } .xm-flow > span:nth-of-type(3) { animation-delay: 1.5s; } .xm-flow > span:nth-of-type(4) { animation-delay: 2.1s; } .xm-flow > span:nth-of-type(5) { animation-delay: 2.7s; }
.xm-flow > span { animation-fill-mode: both; }

/* =====================================================================
   RESPONSIVE + MOTION
   ===================================================================== */
@media (max-width: 1000px) {
  .xj-p, .xh, .xr-p { grid-template-columns: 1fr; }
  .xr { grid-template-columns: 1fr; }
  .xr-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .xr-tabs::-webkit-scrollbar { display: none; }
  .xr-t { flex: none; min-width: 210px; }
  .xr-t:hover, .xr-t.on { transform: none; }
  .xr-dev { min-height: 0; padding: 10px 0; }
  .xh-orb { --o: min(440px, 88cqw); margin: 40px auto 24px; }
}
@media (max-width: 760px) {
  .xj-rw { overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px; scrollbar-width: none; }
  .xj-rw::-webkit-scrollbar { display: none; }
  .xj-rail { min-width: calc(var(--n) * 96px); }
  .xj-n > i { width: 52px; height: 52px; border-radius: 17px; }
  .xj-line { top: 28px; } .xj-puck { top: 20px; }
  .xj-n b { font-size: 12.5px; }
  .xj-p, .xr-p { padding: 18px; border-radius: 22px; gap: 20px; }
  .xh-s { min-width: 0; padding: 7px 8px; border-radius: 14px; }
  .xh-s > i { width: 28px; height: 28px; border-radius: 9px; } .xh-s > i svg { width: 15px; height: 15px; }
  .xh-s b { font-size: 11.5px; } .xh-s small { display: none; }
  .xh-core small { display: none; } .xh-core svg { width: 22px; height: 22px; }
  .xr-chip { display: none; }
  .xr-stats { grid-template-columns: 1fr 1fr; }
  .xv-ring > em { font-size: 10px; padding: 3px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .xj *, .xh *, .xr *, .xv *, .xm, .xm * { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .xm-type { width: auto; border: 0; }
}

/* cards with a toast keep room so the toast never hides the last row */
.xm:has(> .xm-toast:not(.top)) > .xm-b { padding-bottom: 68px; }
.xm:has(> .xm-toast.top) > .xm-b { padding-top: 66px; }

/* device screens and chips keep dark text, even inside dark bands */
.xd-scr, .xr-chip, .xh-p .xm { color: var(--ink); text-align: left; }
.xd-top { color: #fff; }

/* readability: chips sit in the margin above/below the device, never on its header */
.xr-dev { padding: 46px 0; }
.xr-dev > .xr-chip:nth-child(2) { top: 0 !important; bottom: auto !important; }
.xr-dev > .xr-chip:nth-child(3) { bottom: 0 !important; top: auto !important; }
/* text inside device screens wraps to two lines instead of being cut off */
.xd-scr .xm-r > span b, .xd-scr .xm-r > span small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.xd-scr .xm-r { padding: 8px; gap: 8px; }
.xd-scr .xm-pill { font-size: 10px; padding: 2px 7px; }
.xd-phone .xm-r > i { width: 26px; height: 26px; border-radius: 8px; }
@media (max-width: 760px) { .xr-dev { padding: 10px 0; } }
/* tablets size to their content so nothing is cut off */
.xd-tab { aspect-ratio: auto; }
.xd-tab > .xd-scr { height: auto; min-height: 240px; }
.xd-lap > .xd-scr { aspect-ratio: auto; min-height: 250px; }

/* hero floating badges sit fully below the frame so they never cover its last row */
.in-hv { padding-bottom: 70px; }
/* live lists in hero frames fade out at the bottom instead of cutting a row in half */
.fn-tx-l, .rt-feed-l { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
