/*
 * Mirialabs website v3 figures: indoor map (.ix), readers (.rdx), multi-site
 * (.ms), zone anti-passback (.za), plug and play (.pp), dashboards (.db),
 * feature tour (.tour), badge designer (.bd), alerts (.al), hero toasts (.ht),
 * Local Gateway (.lg). Same rules as website-mocks.css: states come from
 * website.js, nothing is hidden when JS is off.
 */

/* ---------- people portraits ---------- */
.ws-face { display: block; border-radius: 50%; overflow: hidden; flex: none; background: var(--soft-2); }
.ws-face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* =========================================================
   Indoor map (.ix)
   ========================================================= */
.ix { margin: 0; display: grid; gap: 16px; }
@media (min-width: 1000px) { .ix { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.ix-map { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ix-box { position: relative; aspect-ratio: 1000 / 620; container-type: inline-size; border-radius: 14px; overflow: hidden; }
.ix-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ix-site { fill: #f3f5f9; }
.ix-garden { fill: #e7f3ea; }
.ix-tree { fill: #cfe6d5; }
.ix-tree-in { fill: #b9dcc2; }
.ix-path { fill: none; stroke: #d6e8da; stroke-width: 14; stroke-linecap: round; }
.ix-pad { fill: #f4faf5; stroke: #cfe3d4; stroke-width: 1.5; }
.ix-pad.is-assembly { fill: #eaf6ee; stroke: #9fd1af; stroke-dasharray: 6 5; }
.ix-floor { fill: #fff; }
.ix-corridor { fill: #f7f8fb; }
.ix-walls { fill: none; stroke: #263552; stroke-width: 5; stroke-linejoin: round; }
.ix-gap { fill: #fff; }
.ix-desk { fill: #eef1f6; stroke: #d5dbe5; stroke-width: 1.2; }
.ix-desk.is-12 { fill: #fff2e1; stroke: #f7b35f; }
.ix-table { fill: #eef1f6; stroke: #d5dbe5; stroke-width: 1.2; }
.ix-chair { fill: #dfe4ec; }
.ix-rack { fill: #dde3ec; stroke: #c3cbd8; }
.ix-plant { fill: #d7ecdc; }
.ix-pz { fill: rgba(21, 84, 181, .07); stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity .5s; }
.ix-pz.is-on { opacity: 1; }
.ix-cz { fill: rgba(247, 148, 29, .08); stroke: var(--orange); stroke-width: 2; stroke-dasharray: 7 6; }
.ix-cz-g { transition: opacity .5s; }
.ix.is-run .ix-cz-g[data-on]:not(.is-on) { opacity: 0; }
.ix-wires path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 5; opacity: .55; }
.ix-wires { transition: opacity .4s; }
.ix-links path { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 3 7; animation: ix-dash 1.2s linear infinite; }
.ix-links { opacity: 0; transition: opacity .5s; }
.ix-links.is-on, .ix:not(.is-run) .ix-links { opacity: 1; }
@keyframes ix-dash { to { stroke-dashoffset: -20; } }

.ix-room { position: absolute; font-size: clamp(7px, 1.3cqw, 11.5px); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #7a8497; white-space: nowrap; pointer-events: none; }
.ix-room.is-out { color: #4e8a5f; }
.ix-room.is-corr { transform: translateX(-50%); }

.ix-rd, .ix-ap { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: grid; place-items: center; }
.ix-rd { width: clamp(14px, 2.5cqw, 24px); height: clamp(14px, 2.5cqw, 24px); border-radius: 30%; background: var(--accent); color: #fff; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(21,84,181,.6); transition: background .3s, box-shadow .3s; }
.ix-rd svg { width: 62%; height: 62%; stroke-width: 2.2; }
.ix-rd.is-on { background: var(--green); box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(23,160,93,.25); }
.ix.is-arch .ix-rd.is-on { background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(21,84,181,.2); }
.ix-ap i { width: clamp(16px, 2.9cqw, 28px); height: clamp(16px, 2.9cqw, 28px); border-radius: 50%; background: #fff; color: var(--orange-600); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--orange), 0 4px 12px -4px rgba(224,127,11,.6); }
.ix-ap i svg { width: 64%; height: 64%; stroke-width: 2.1; }
.ix-ap::before { content: ""; position: absolute; width: 260%; height: 260%; border-radius: 50%; border: 2px solid rgba(247,148,29,.45); opacity: 0; }
.ix.is-run .ix-ap::before { animation: ix-wave 2.6s ease-out infinite; }
@keyframes ix-wave { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.4); } }
.ix-ap { transition: opacity .45s; }
.ix.is-run .ix-ap[data-on]:not(.is-on) { opacity: 0; }
.ix-ap.is-gw i { background: var(--orange); color: #fff; }
.ix-role { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: clamp(7px, 1.25cqw, 11px); font-weight: 700; padding: .2em .6em; border-radius: 999px; background: #fff; color: var(--orange-600); border: 1px solid #fcd9ab; white-space: nowrap; }
.ix-ap.is-gw .ix-role { background: var(--orange); color: #fff; border-color: var(--orange); }

.ix-ztag { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: .35em; font-size: clamp(7px, 1.3cqw, 11.5px); font-weight: 650; padding: .3em .7em; border-radius: 999px; white-space: nowrap; transform: translateY(-50%); opacity: 0; transition: opacity .4s; }
.ix-ztag svg { width: 1.2em; height: 1.2em; }
.ix-ztag.is-parent, .ix-ztag.is-bldg { background: var(--accent); color: #fff; }
.ix-ztag.is-child { background: #fff; color: var(--orange-600); border: 1.5px dashed var(--orange); }
.ix-ztag.is-on, .ix:not(.is-run) .ix-ztag { opacity: 1; }
.ix:not(.is-run) .ix-ztag.is-bldg { opacity: 0; }

.ix-p { position: absolute; z-index: 5; width: clamp(16px, 3.3cqw, 34px); height: clamp(16px, 3.3cqw, 34px); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 4px 10px -3px rgba(11,13,18,.45); transition: left 1.5s cubic-bezier(.45, .05, .3, 1), top 1.5s cubic-bezier(.45, .05, .3, 1), opacity .45s, box-shadow .3s; }
.ix-p .ws-face { width: 100%; height: 100%; }
.ix-p.is-me { width: clamp(20px, 4cqw, 40px); height: clamp(20px, 4cqw, 40px); z-index: 6; box-shadow: 0 0 0 2.5px var(--accent), 0 0 0 6px rgba(21,84,181,.18), 0 6px 14px -4px rgba(11,13,18,.5); }
.ix.is-arch .ix-p.is-me { box-shadow: 0 0 0 2.5px var(--orange), 0 0 0 6px rgba(247,148,29,.2); opacity: 0; }
.ix.is-arch .ix-p.is-me.is-on, .ix.is-arch:not(.is-run) .ix-p.is-me { opacity: 1; }
.ix-p.is-idle { animation: ix-idle 7s ease-in-out infinite; }
.ix-p.is-idle:nth-of-type(2n) { animation-duration: 9s; animation-delay: -3s; }
.ix-p.is-idle:nth-of-type(3n) { animation-duration: 8s; animation-delay: -5s; }
@keyframes ix-idle { 0%, 100% { margin: 0; } 30% { margin: -.4% 0 0 .6%; } 65% { margin: .3% 0 0 -.5%; } }
.ix-safe { position: absolute; right: -18%; bottom: -18%; width: 52%; height: 52%; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #fff; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .35s var(--ease); }
.ix-safe svg { width: 70%; height: 70%; stroke-width: 3.2; }
.ix-safe.is-on { opacity: 1; transform: none; }
.ix.is-evac[data-step="7"] .ix-p:not(.is-still) { opacity: 0; }
.ix-ring { position: absolute; inset: -40%; border-radius: 50%; border: 2.5px solid var(--red); opacity: 0; }
.ix-ring.is-on { animation: ix-alarm 1.2s ease-out infinite; }
@keyframes ix-alarm { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
.ix-p.is-still { box-shadow: 0 0 0 2px #fff, 0 4px 10px -3px rgba(11,13,18,.45); }
.ix.is-evac:not(.is-std)[data-step="5"] .ix-p.is-still, .ix.is-evac:not(.is-std)[data-step="6"] .ix-p.is-still { box-shadow: 0 0 0 2.5px var(--red), 0 4px 10px -3px rgba(229,72,77,.6); }

.ix-tablet { position: absolute; z-index: 4; transform: translate(-50%, -50%); width: clamp(16px, 3cqw, 30px); height: clamp(16px, 3cqw, 30px); border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px -3px rgba(0,0,0,.4); }
.ix-tablet svg { width: 62%; height: 62%; }

.ix-toast { position: absolute; z-index: 7; display: flex; align-items: center; gap: .6em; padding: .55em .9em .55em .55em; border-radius: .9em; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -14px rgba(11,13,18,.45); font-size: clamp(8px, 1.45cqw, 12.5px); line-height: 1.25; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.ix-toast.is-on { opacity: 1; transform: none; }
.ix-toast > svg { width: 2.2em; height: 2.2em; padding: .45em; border-radius: .6em; flex: none; }
.ix-toast b { display: block; color: var(--ink); font-weight: 650; }
.ix-toast small { display: block; color: var(--muted); font-size: .9em; }
.ix-toast.is-green > svg { background: #e5f6ec; color: var(--green); }
.ix-toast.is-red > svg { background: #fdeced; color: var(--red); }
.ix-toast.is-orange > svg { background: var(--orange-50); color: var(--orange-600); }
.ix-toast.is-blue > svg { background: var(--accent-50); color: var(--accent); }
.ix-toast.is-red { border-color: #f6c4c6; }

.ix-banner { position: absolute; left: 50%; top: 3.5%; transform: translate(-50%, -8px); z-index: 8; opacity: 0; transition: opacity .35s, transform .35s var(--ease); }
.ix-banner.is-on { opacity: 1; transform: translate(-50%, 0); }
.ix-banner > span { display: none; align-items: center; gap: .5em; padding: .55em 1.1em; border-radius: 999px; font-size: clamp(8px, 1.5cqw, 13px); font-weight: 650; color: #fff; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.ix-banner > span.is-on { display: inline-flex; }
.ix-banner svg { width: 1.3em; height: 1.3em; }
.ix-banner-run { background: var(--red); }
.ix-banner-ok { background: var(--ink); }

.ix-uac { position: absolute; z-index: 4; transform: translate(-50%, -100%); width: 11%; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; transition: opacity .4s; }
.ix-uac.is-on, .ix:not(.is-run) .ix-uac { opacity: 1; }
.ix-uac .ws-shot { width: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.ix-uac b { font-size: clamp(7px, 1.2cqw, 11px); color: var(--accent); background: #fff; padding: .15em .55em; border-radius: 999px; border: 1px solid #cfe0f8; }

.ix-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.ix-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ix-legend i { flex: none; }
.ix-k-pz { width: 16px; height: 12px; border: 2px solid var(--accent); background: rgba(21,84,181,.08); border-radius: 3px; }
.ix-k-cz { width: 16px; height: 12px; border: 2px dashed var(--orange); background: rgba(247,148,29,.08); border-radius: 3px; }
.ix-k-rd, .ix-k-ap { width: 18px; height: 18px; display: grid; place-items: center; }
.ix-k-rd { border-radius: 5px; background: var(--accent); color: #fff; }
.ix-k-ap { border-radius: 50%; border: 2px solid var(--orange); color: var(--orange-600); }
.ix-k-rd svg, .ix-k-ap svg { width: 11px; height: 11px; stroke-width: 2.4; }

/* side panel */
.ix-panel { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 640px) and (max-width: 999.98px) { .ix.is-zones .ix-panel { grid-template-columns: 1fr 1fr; } }
.ix-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; color: var(--ink); }
.ix-cap { display: block; font-size: 12px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--faint); margin: 14px 0 8px; }
.ix-who { display: flex; align-items: center; gap: 12px; }
.ix-who .ws-face { width: 44px; height: 44px; box-shadow: 0 0 0 2.5px var(--accent); }
.ix-who b { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.ix-who small { color: var(--muted); font-size: 13px; }
.ix-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--green); }
.ix-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ws-ping-dot 1.6s infinite; }
@keyframes ws-ping-dot { 50% { opacity: .35; } }
.ix-crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ix-crumbs li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--accent-50); color: var(--accent); }
.ix-crumbs li + li::before { content: "›"; color: var(--faint); margin-right: 2px; font-weight: 500; }
.ix-crumbs li { position: relative; }
.ix-crumbs li + li { margin-left: 14px; }
.ix-crumbs li + li::before { position: absolute; left: -13px; }
.ix-crumbs li.is-child { background: var(--orange-50); color: var(--orange-600); }
.ix.is-run .ix-crumbs li[data-on]:not(.is-on) { display: none; }
.ix-how { margin: 12px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; min-height: 3em; }
.ix-tree { display: grid; }
.ix-tree li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ix-tree li:last-child { border-bottom: 0; }
.ix-tree li span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ix-tree li span svg { width: 15px; height: 15px; color: var(--accent); }
.ix-tree li.l1 { padding-left: 22px; }
.ix-tree li.l2 { padding-left: 42px; }
.ix-tree li.l1 span, .ix-tree li.l2 span { font-weight: 500; color: var(--text); }
.ix-tree li.l1 span::before, .ix-tree li.l2 span::before { content: ""; width: 9px; height: 9px; border-left: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); margin-top: -6px; }
.ix-tree li.l2 span { color: var(--orange-600); }
.ix-tree b { font-variant-numeric: tabular-nums; font-size: 14px; }

/* evacuation panel */
.ix-evac-h { display: flex; align-items: center; gap: 12px; }
.ix-evac-ico { width: 40px; height: 40px; border-radius: 12px; background: #fdeced; color: var(--red); display: grid; place-items: center; flex: none; }
.ix-evac-ico svg { width: 20px; height: 20px; }
.ix-evac-h b { display: block; font-size: 16px; }
.ix-evac-h small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ix-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--soft); margin: 16px 0 14px; }
.ix-seg button { border: 0; background: none; border-radius: 9px; padding: 7px 6px; font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; line-height: 1.2; }
.ix-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,13,18,.14); }
.ix-count { display: flex; align-items: baseline; gap: 8px; }
.ix-count strong { font-size: 44px; line-height: 1; letter-spacing: -.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.ix-count span { color: var(--muted); font-size: 15px; font-weight: 600; }
.ix-bar { position: relative; display: block; height: 8px; border-radius: 8px; background: var(--soft-2); margin: 12px 0 14px; overflow: hidden; }
.ix-bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: var(--green); transition: width .9s var(--ease); }
.ix-bar b.is-on { width: var(--w); }
.ix:not(.is-run) .ix-bar b:last-child { width: var(--w); }
.ix-method { font-size: 13.5px; color: var(--text); margin: 0; line-height: 1.45; }
.ix-method svg { width: 15px; height: 15px; vertical-align: -3px; color: var(--accent); }
.ix-missing { display: grid; gap: 8px; }
.ix-missing li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ix-missing li .ws-face { width: 28px; height: 28px; }
.ix-missing li b { display: block; font-weight: 650; }
.ix-missing li small { display: block; color: var(--muted); font-size: 12.5px; }
.ix-missing li.is-none { color: var(--muted); font-size: 13.5px; }
.ix.is-run .ix-missing li[data-on]:not(.is-on) { display: none; }
.ix:not(.is-run) .ix-missing li.is-none, .ix:not(.is-run) .ix-missing li:not(.is-alert) { display: none; }
.ix.is-evac:not(.is-std) .ix-missing li.is-alert small { color: var(--red); font-weight: 600; }
.ix-alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 14px; background: #fdeced; color: #9d1c21; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease); }
.ix-alert.is-on, .ix:not(.is-run) .ix-alert { opacity: 1; transform: none; }
.ix-alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ix-alert b { display: block; font-size: 13.5px; }
.ix-alert small { font-size: 12.5px; color: #b4383d; }
.m-std, .ix.is-std .m-smart { display: none; }
.ix.is-std .m-std { display: inline; }
b.m-std, b.m-smart { display: block; }
.ix.is-std b.m-smart { display: none; }
.ix.is-std b.m-std { display: block; }
.ix.is-std [data-smart] { display: none !important; }
.ix:not(.is-std) [data-std] { display: none; }
.ix.is-evac.is-std .ix-ap, .ix.is-evac.is-std .ix-cz-g { display: none; }

/* architecture steps */
.ix-steps { display: grid; gap: 10px; }
.ix-steps li { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.ix-steps li.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,84,181,.1); }
.ix-steps b { display: block; color: var(--ink); font-size: 15.5px; letter-spacing: -.01em; margin-bottom: 2px; }
.ix-steps small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.ix-step-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.ix-step-ico svg { width: 19px; height: 19px; }
.ix-step-ico.is-blue { background: var(--accent-50); color: var(--accent); }
.ix-step-ico.is-orange { background: var(--orange-50); color: var(--orange-600); }
.ix-step-ico.is-green { background: #e5f6ec; color: var(--green); }

/* dark sections */
.ix.is-dark .ix-map, .ix.is-dark .ix-card, .ix.is-dark .ix-steps li { background: var(--dark-2); border-color: var(--dark-line); }
.ix.is-dark .ix-legend { color: var(--dark-text); }
.ix.is-dark .ix-card { color: #fff; }
.ix.is-dark .ix-who small, .ix.is-dark .ix-how, .ix.is-dark .ix-missing li small, .ix.is-dark .ix-count span, .ix.is-dark .ix-evac-h small, .ix.is-dark .ix-steps small { color: var(--dark-text); }
.ix.is-dark .ix-tree li { border-color: var(--dark-line); }
.ix.is-dark .ix-tree li.l1 span { color: #d5def0; }
.ix.is-dark .ix-tree li.l2 span { color: #ffb661; }
.ix.is-dark .ix-crumbs li { background: rgba(106,166,255,.14); color: #a9c8ff; }
.ix.is-dark .ix-crumbs li.is-child { background: rgba(247,148,29,.16); color: #ffb661; }
.ix.is-dark .ix-seg { background: rgba(255,255,255,.06); }
.ix.is-dark .ix-seg button { color: var(--dark-text); }
.ix.is-dark .ix-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.ix.is-dark .ix-bar { background: rgba(255,255,255,.1); }
.ix.is-dark .ix-method { color: #d5def0; }
.ix.is-dark .ix-method svg { color: var(--accent-dark); }
.ix.is-dark .ix-steps b, .ix.is-dark .ix-missing li b { color: #fff; }
.ix.is-dark .ix-steps li.is-on { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(106,166,255,.15); }
.ix.is-dark .ix-cap { color: #7f93b8; }
.ix.is-dark .ix-alert { background: rgba(229,72,77,.16); color: #ffb3b6; }
.ix.is-dark .ix-alert small { color: #ff9a9e; }

@media (max-width: 639.98px) {
    .ix-map { padding: 8px; border-radius: 18px; }
    .ix-box { border-radius: 10px; }
    .ix-legend { font-size: 11.5px; gap: 6px 12px; }
    .ix-toast { padding: .45em .7em .45em .45em; }
    .ix-toast small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ix-p, .ix-toast, .ix-ap, .ix-pz { transition: none; }
    .ix-p.is-idle, .ix-links path, .ix.is-run .ix-ap::before { animation: none; }
}

/* =========================================================
   Zone anti-passback (.za)
   ========================================================= */
.za { margin: 0; }
.za-box { position: relative; aspect-ratio: 720 / 440; container-type: inline-size; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.za-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.za-out { fill: #f6f7fa; }
.za-zone { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.za-lane { fill: none; stroke: #e3e7ee; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.za-title, .za-count { position: absolute; transform: translateY(-50%); display: inline-flex; align-items: center; gap: .4em; font-size: clamp(9px, 1.8cqw, 13.5px); font-weight: 650; white-space: nowrap; }
.za-title { color: var(--accent); }
.za-title svg { width: 1.3em; height: 1.3em; }
.za-count { transform: translate(-100%, -50%); color: var(--muted); background: var(--soft); padding: .3em .75em; border-radius: 999px; }
.za-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.za-door { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .35em; }
.za-door b { font-size: clamp(8px, 1.55cqw, 12px); font-weight: 700; color: var(--ink); background: #fff; padding: .15em .55em; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.za-door.is-out b { color: var(--muted); }
.za-lock { width: clamp(22px, 5cqw, 38px); height: clamp(22px, 5cqw, 38px); border-radius: 30%; background: var(--ink); color: #fff; display: grid; box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(0,0,0,.5); }
.za-door.is-out .za-lock { background: #5b6476; }
.za-lock i { grid-area: 1 / 1; display: grid; place-items: center; border-radius: inherit; transition: opacity .25s, transform .3s var(--ease); }
.za-lock svg { width: 52%; height: 52%; }
.za-lock .is-g, .za-lock .is-r { opacity: 0; transform: scale(.6); }
.za-lock .is-g { background: var(--green); }
.za-lock .is-r { background: var(--red); }
.za-lock .is-r svg { stroke-width: 2.8; }
.za-lock i.is-on { opacity: 1; transform: none; }
.za-lock .is-r.is-on { animation: za-shake .45s ease 1; }
@keyframes za-shake { 20%, 60% { translate: -3px 0; } 40%, 80% { translate: 3px 0; } }
.za-ghost { position: absolute; transform: translate(-50%, -50%); width: clamp(16px, 4cqw, 30px); height: clamp(16px, 4cqw, 30px); border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0,0,0,.2); opacity: .85; animation: ix-idle 8s ease-in-out infinite; }
.za-ghost .ws-face { width: 100%; height: 100%; }
.za-p { position: absolute; z-index: 4; transform: translate(-50%, -50%); width: clamp(26px, 6.2cqw, 44px); height: clamp(26px, 6.2cqw, 44px); transition: left 1.3s cubic-bezier(.45,.05,.3,1), top 1.3s cubic-bezier(.45,.05,.3,1), opacity .4s; }
.za-p .ws-face { width: 100%; height: 100%; box-shadow: 0 0 0 2.5px #fff, 0 6px 14px -4px rgba(0,0,0,.45); }
.za-p.is-awa .ws-face { box-shadow: 0 0 0 2.5px var(--accent), 0 0 0 6px rgba(21,84,181,.16); }
.za-p em { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); font-style: normal; font-size: clamp(8px, 1.5cqw, 11.5px); font-weight: 650; color: var(--ink); background: #fff; padding: .05em .5em; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.12); white-space: nowrap; }
.za[data-step="10"] .za-p.is-awa { opacity: 0; }
.za:not(.is-run) .za-p.is-awa { left: 52.78%; top: 65.91%; }
.za:not(.is-run) .za-p.is-lucas { left: 36.39%; top: 70.45%; }
.za-badge { position: absolute; z-index: 5; left: 55.5%; top: 45%; width: clamp(18px, 4cqw, 30px); height: clamp(14px, 3cqw, 22px); transform: translate(-50%, -50%); border-radius: 4px; background: var(--orange); color: #fff; display: grid; place-items: center; opacity: 0; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.za-badge svg { width: 70%; height: 70%; }
.za-badge.is-on { animation: za-pass 1.5s cubic-bezier(.45,.05,.3,1) 1 forwards; }
@keyframes za-pass { 0% { opacity: 0; left: 55.5%; top: 45%; } 15% { opacity: 1; } 100% { opacity: 1; left: 36%; top: 64%; } }
.za-flag { position: absolute; transform: translate(-50%, -50%); font-size: clamp(8px, 1.6cqw, 12px); font-weight: 650; color: var(--orange-600); background: var(--orange-50); padding: .35em .8em; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.za-flag.is-on { opacity: 1; }
.za-toast { position: absolute; z-index: 6; display: flex; align-items: center; gap: .6em; padding: .55em 1em .55em .55em; border-radius: .9em; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 34px -14px rgba(11,13,18,.45); font-size: clamp(8.5px, 1.75cqw, 13.5px); line-height: 1.25; white-space: nowrap; opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .3s, transform .35s var(--ease); }
.za-toast.is-on { opacity: 1; transform: none; }
.za-toast > svg { width: 2.3em; height: 2.3em; padding: .5em; border-radius: .65em; flex: none; stroke-width: 2.4; }
.za-toast b { display: block; color: var(--ink); }
.za-toast small { display: block; color: var(--muted); font-size: .88em; }
.za-toast.is-red { border-color: #f6c4c6; }
.za-toast.is-red > svg { background: var(--red); color: #fff; }
.za-toast.is-green > svg { background: #e5f6ec; color: var(--green); }
.za-toast.is-blue > svg { background: var(--accent-50); color: var(--accent); }
.za:not(.is-run) .za-toast.is-red { opacity: 1; transform: none; }
.za-steps { margin-top: 14px; }

/* =========================================================
   Multi-site (.ms)
   ========================================================= */
.ms { margin: 0; display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 18px; }
@media (min-width: 860px) { .ms { grid-template-columns: minmax(260px, 38%) 1fr; padding: 22px; gap: 28px; align-items: center; } }
.ms-map { position: relative; aspect-ratio: 500 / 825; max-width: 340px; margin: 0 auto; width: 100%; border-radius: 20px; background: #f3f6fb; overflow: hidden; }
.ms-map img { width: 100%; height: auto; display: block; }
.ms-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.ms-arcs path { fill: none; stroke: var(--accent); stroke-width: .35; stroke-dasharray: 1 1.4; opacity: .45; animation: ix-dash 1.6s linear infinite; vector-effect: none; }
.ms-pin { position: absolute; z-index: 2; transform: translate(-50%, -50%); }
.ms-pin i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(0,0,0,.25); }
.ms-pin i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
.ms-pin.is-on i::after { animation: ix-wave 1.6s ease-out infinite; }
.ms-pin b { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); font-size: 12px; font-weight: 650; color: var(--ink); background: #fff; padding: 2px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.12); white-space: nowrap; transition: background .3s, color .3s; }
.ms-pin.is-on b { background: var(--c); color: #fff; }
.ms-region { position: absolute; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9aa7bd; }
.ms-region.is-eu { left: 6%; top: 3%; }
.ms-region.is-af { left: 8%; top: 60%; }
.ms-side { min-width: 0; }
.ms-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.ms-totals > div { background: #fff; padding: 14px 16px; }
.ms-totals small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ms-totals b { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ms-totals em { font-style: normal; font-size: .5em; color: var(--muted); letter-spacing: 0; }
.ms-switch { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 14px; margin-bottom: 10px; box-shadow: 0 6px 16px -12px rgba(11,13,18,.4); }
.ms-switch-k { position: absolute; top: -9px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fff; padding: 0 5px; }
.ms-cur { display: none; align-items: center; gap: 10px; min-width: 0; }
.ms-cur.is-on, .ms:not(.is-run) .ms-cur:first-of-type { display: flex; animation: ms-in .35s var(--ease); }
@keyframes ms-in { from { opacity: 0; transform: translateY(4px); } }
.ms-cur b { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-cur i, .ms-list li > i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.ms-chev { margin-left: auto; color: var(--muted); transform: rotate(90deg); display: grid; }
.ms-chev svg { width: 16px; height: 16px; }
.ms-list { display: grid; gap: 4px; }
.ms-list li { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; transition: background .3s; }
.ms-list li.is-on { background: var(--accent-50); }
.ms-list li b { display: block; font-size: 14.5px; color: var(--ink); }
.ms-list li small { display: block; font-size: 12.5px; color: var(--muted); }
.ms-num { text-align: right; }
.ms-num b { font-variant-numeric: tabular-nums; }
.ms-doors { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--green); background: #e5f6ec; padding: 4px 9px; border-radius: 999px; }
.ms-doors svg { width: 13px; height: 13px; }
.ms-doors.is-warn { color: #b7770a; background: #fdf3df; }
.ms-foot { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.ms-foot svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 479.98px) { .ms-list li { grid-template-columns: 30px 1fr auto; } .ms-doors { display: none; } .ms-totals > div { padding: 10px 12px; } }

/* =========================================================
   All readers (.rdx)
   ========================================================= */
.rdx { margin: 0; display: grid; gap: 18px; align-items: center; }
@media (min-width: 960px) { .rdx { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0; } }
.rdx-grid { display: grid; gap: 10px; position: relative; }
@media (min-width: 640px) and (max-width: 959.98px) { .rdx-grid { grid-template-columns: 1fr 1fr; } }
.rdx-r { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.rdx-r.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,84,181,.1), 0 14px 30px -18px rgba(21,84,181,.5); transform: translateX(4px); }
.rdx-r.is-ml.is-on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,160,93,.12), 0 14px 30px -18px rgba(23,160,93,.5); }
.rdx-txt b { display: block; color: var(--ink); font-size: 15px; letter-spacing: -.01em; }
.rdx-txt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.rdx-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.rdx-link.is-eth { background: #e5f6ec; color: var(--green); }
.rdx-link svg { width: 12px; height: 12px; stroke-width: 2.4; }
@media (min-width: 960px) {
    .rdx-r::after { content: ""; position: absolute; left: 100%; top: 50%; width: 56px; border-top: 2px solid var(--line-2); }
    .rdx-r.is-ml::after { border-top-color: rgba(23,160,93,.45); border-top-style: dashed; }
    .rdx-pulse { position: absolute; top: 50%; left: 100%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); opacity: 0; }
    .rdx-r.is-ml .rdx-pulse { background: var(--green); }
    .rdx-r.is-on .rdx-pulse { animation: rdx-go .9s ease-in 2; }
    .rdx-grid { margin-right: 56px; }
    .rdx-grid::after { content: ""; position: absolute; right: -58px; top: 36px; bottom: 36px; border-right: 2px solid var(--line-2); }
}
@keyframes rdx-go { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(56px); } }
.rdx-glyph { width: 52px; height: 52px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; position: relative; overflow: hidden; }
.rdx-glyph > i { font-style: normal; }
.rdx-glyph.is-ml { background: #f2f5fa; }
.rdx-glyph.is-ml .ws-shot { width: 20px; }
.rdx-glyph.is-slim::before { content: ""; position: absolute; width: 20px; height: 40px; border-radius: 6px; background: #2b2f36; }
.rdx-glyph.is-square::before { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 7px; background: #fff; border: 1.5px solid #c9ced8; }
.rdx-wave { position: relative; z-index: 1; color: #fff; display: grid; }
.rdx-glyph.is-square .rdx-wave { color: var(--ink); }
.rdx-wave svg { width: 14px; height: 14px; }
.rdx-led { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: var(--green); bottom: 11px; }
.rdx-glyph.is-bio::before { content: ""; position: absolute; width: 30px; height: 42px; border-radius: 6px; background: #20242b; }
.rdx-screen { position: absolute; top: 9px; width: 20px; height: 12px; border-radius: 2px; background: #4c7bd0; }
.rdx-fp { position: absolute; bottom: 6px; color: #9fb4d8; display: grid; }
.rdx-fp svg { width: 14px; height: 14px; }
.rdx-glyph.is-keypad::before { content: ""; position: absolute; width: 30px; height: 42px; border-radius: 6px; background: #fff; border: 1.5px solid #c9ced8; }
.rdx-keys { position: relative; display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; }
.rdx-keys em { width: 5px; height: 5px; border-radius: 1.5px; background: #6b7280; }
.rdx-glyph.is-qr::before { content: ""; position: absolute; width: 38px; height: 30px; border-radius: 6px; background: #2b2f36; }
.rdx-qr { position: relative; color: #fff; display: grid; }
.rdx-qr svg { width: 16px; height: 16px; }
.rdx-hub { position: relative; background: var(--dark); border-radius: 26px; padding: 26px; color: var(--dark-text); text-align: center; overflow: hidden; }
.rdx-hub::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 35%, rgba(106,166,255,.22), transparent 70%); }
.rdx-uac { position: relative; width: min(78%, 340px); margin: 6px auto 18px; }
.rdx-hub-txt { position: relative; }
.rdx-hub-txt > b { display: block; color: #fff; font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }
.rdx-ports { display: grid; gap: 6px; justify-items: center; font-size: 13.5px; }
.rdx-ports span { display: inline-flex; align-items: center; gap: 8px; }
.rdx-ports i { width: 9px; height: 9px; border-radius: 50%; background: #93a6c6; }
.rdx-ports i.is-eth { background: #3ccf86; }
.rdx-event { position: relative; height: 34px; margin-top: 16px; display: grid; }
.rdx-event span { grid-area: 1 / 1; justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; background: rgba(23,160,93,.16); color: #b7f0cf; font-size: 13.5px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .35s var(--ease); white-space: nowrap; }
.rdx-event span b { color: #fff; }
.rdx-event span svg { width: 15px; height: 15px; stroke-width: 2.6; color: #3ccf86; }
.rdx-event span.is-on, .rdx:not(.is-run) .rdx-event span:first-child { opacity: 1; transform: none; }
.is-soft .rdx-r, .is-soft .rdx-glyph.is-ml { background: #fff; }
.rdx.is-dark .rdx-r { background: var(--dark-2); border-color: var(--dark-line); }
.rdx.is-dark .rdx-txt b { color: #fff; }
.rdx.is-dark .rdx-txt small { color: var(--dark-text); }
.rdx.is-dark .rdx-glyph { background: rgba(255,255,255,.08); }
.rdx.is-dark .rdx-hub { background: var(--dark-2); border: 1px solid var(--dark-line); }

/* =========================================================
   Dashboards (.db), in the app's own look
   ========================================================= */
.db { --db-side: #0f1a3a; }
.db-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 18px; padding: 4px; border-radius: 999px; background: var(--soft); width: max-content; max-width: 100%; }
.is-soft .db-tabs { background: #fff; border: 1px solid var(--line); }
.db-tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.db-tabs button svg { width: 17px; height: 17px; }
.db-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,13,18,.14); }
.is-soft .db-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.db-prog { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px; background: transparent; }
.db-tabs button.is-timed .db-prog::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 2px; background: var(--accent); transform-origin: left; animation: db-prog var(--t) linear 1; }
.is-soft .db-tabs button.is-timed .db-prog::after { background: var(--orange); }
@keyframes db-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.db-win { display: flex; background: #f4f6fa; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(8,24,58,.35); text-align: left; color: var(--ink); font-size: 13px; line-height: 1.35; }
.db-win[hidden] { display: none; }
.db-win.is-enter { animation: db-enter .5s var(--ease); }
@keyframes db-enter { from { opacity: 0; transform: translateY(8px); } }
.db-side { width: 196px; flex: none; background: var(--db-side); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; color: #c7d0e4; }
.db-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; color: #fff; font-weight: 700; font-size: 14px; }
.db-brand img { height: 26px; width: 26px; object-fit: contain; background: #fff; border-radius: 7px; padding: 3px; }
.db-side small { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7f8db0; padding: 10px 10px 4px; }
.db-side > span:not(.db-brand) { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 9px; font-size: 12.5px; white-space: nowrap; }
.db-side > span svg { width: 15px; height: 15px; flex: none; }
.db-side > span.is-on { background: linear-gradient(180deg, #1d63d0, #1554b5); color: #fff; }
.db-side .db-evac { margin-top: auto; border: 1px solid rgba(229,72,77,.5); background: rgba(229,72,77,.12); color: #ffc4c6; }
.db-main { flex: 1; min-width: 0; }
.db-top { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.db-tb { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.db-tb svg { width: 14px; height: 14px; }
.db-site { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 10px; }
.db-site > i { font-style: normal; width: 28px; height: 28px; border-radius: 7px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.db-site small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.db-site b { font-size: 12.5px; white-space: nowrap; }
.db-me { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; font-size: 12.5px; white-space: nowrap; }
.db-me .ws-face { width: 30px; height: 30px; }
.db-me em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--orange-600); background: var(--orange-50); padding: 2px 8px; border-radius: 999px; }
.db-body { padding: 16px; }
.db-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.db-h b { font-size: 19px; letter-spacing: -.02em; }
.db-h small { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.db-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.db-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 10px; }
.db-kpis.is-6 { grid-template-columns: repeat(6, 1fr); }
.db-kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.db-kpi small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--text); }
.db-kpi small svg { width: 13px; height: 13px; }
.db-kpi > b { display: block; font-size: 24px; letter-spacing: -.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.db-kpi > b span { font-size: 14px; color: var(--muted); font-weight: 600; }
.db-kpi em { display: block; font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kbar { display: block; height: 4px; border-radius: 4px; background: var(--soft-2); margin-top: 10px; overflow: hidden; }
.db-kbar b { display: block; height: 100%; width: 0; background: var(--green); border-radius: 4px; transition: width 1.2s var(--ease) .2s; }
.db-kbar.is-orange b { background: var(--orange); }
.db-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.db-span2 { grid-column: span 2; }
.db-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.db-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.db-ph b { display: block; font-size: 13.5px; }
.db-ph small { display: block; color: var(--muted); font-size: 11.5px; }
.db-pi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.db-pi svg { width: 15px; height: 15px; }
.db-pi.is-blue { background: var(--accent-50); color: var(--accent); }
.db-pi.is-orange { background: var(--orange-50); color: var(--orange-600); }
.db-pi.is-green { background: #e5f6ec; color: var(--green); }
.db-legend { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 11px; font-weight: 600; color: var(--text); }
.db-legend i { width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; }
.db-legend b { display: inline; font-size: 11px; }
.is-g { --c: #1554b5; } .is-d { --c: #e5484d; } .is-r { --c: #f7941d; } .is-p { --c: #94a0b4; } .is-l { --c: #8b5cf6; }
.db-legend i, .db-bars i { background: var(--c); }
.db-bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; padding-top: 6px; }
.db-bars span { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 1px; }
.db-bars i { display: block; height: 0; border-radius: 3px 3px 1px 1px; transition: height .9s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.db-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 10.5px; margin-top: 6px; }
.db-rank { display: grid; gap: 9px; }
.db-rank li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12.5px; }
.db-rank li span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-rank li > i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--soft-2); overflow: hidden; }
.db-rank li > i b { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width 1.1s var(--ease) .15s; }
.db-rank.is-green li > i b { background: var(--green); }
.db-rank.is-orange li > i b { background: var(--orange); }
.db-big { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.db-big b { font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.db-big small { font-size: 12px; font-weight: 600; color: var(--muted); }
.db-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--green); }
.db-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: ws-ping-dot 1.6s infinite; }
.db-feed { display: grid; gap: 2px; }
.db-feed li { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.db-feed li:last-child { border-bottom: 0; }
.db-feed li .ws-face { width: 28px; height: 28px; }
.db-feed li b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-feed li small { display: block; color: var(--muted); font-size: 11px; }
.db-feed li em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e5f6ec; color: var(--green); white-space: nowrap; }
.db-feed li.is-no em { background: #fdeced; color: var(--red); }
.db-feed li.is-remote em { background: var(--orange-50); color: var(--orange-600); }
.db-feed li[hidden] { display: none; }
.db-feed li.is-new { animation: db-row .5s var(--ease); }
@keyframes db-row { from { opacity: 0; transform: translateY(-6px); background: var(--accent-50); } }
.db-mini-map { height: 180px; border-radius: 10px; background: #eef2f8; overflow: hidden; display: grid; place-items: center; }
.db-mm { display: block; position: relative; height: 172px; aspect-ratio: 500 / 825; }
.db-mm img { width: 100%; height: 100%; }
.db-mini-map i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #fff; }
.db-mini-map i.is-off { background: var(--red); }
.db-plan { position: relative; height: 230px; border-radius: 10px; background: #f1f4f9; overflow: hidden; }
.db-zone { position: absolute; border: 1.5px solid #c7d0de; background: #fff; border-radius: 6px; }
.db-zone em { position: absolute; left: 6px; top: 4px; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8590a3; }
.db-zone.is-out { background: #e7f3ea; border-color: #bcdcc5; }
.db-zone.is-out em { color: #4e8a5f; }
.db-dot2 { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff; animation: db-drift 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.db-dot2.is-still { background: var(--red); animation: none; box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(229,72,77,.25); }
@keyframes db-drift { 0%, 100% { translate: 0 0; } 33% { translate: 6px -4px; } 66% { translate: -5px 3px; } }
.db-ap { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--orange); background: #fff; }
.db-alert { display: flex; gap: 9px; align-items: center; padding: 9px 10px; border-radius: 10px; background: var(--orange-50); color: var(--orange-600); margin-bottom: 8px; }
.db-alert.is-red { background: #fdeced; color: var(--red); }
.db-alert svg { width: 16px; height: 16px; flex: none; }
.db-alert b { display: block; font-size: 12.5px; }
.db-alert small { display: block; font-size: 11px; opacity: .85; }
.db-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 11.5px; font-weight: 600; }
.db-btn svg { width: 13px; height: 13px; }
.db-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.db-table th { text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 6px 6px; border-bottom: 1px solid var(--line); }
.db-table td { padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.db-table tr:last-child td { border-bottom: 0; }
.db-table td:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.db-table td .ws-face { width: 24px; height: 24px; }
.db-st { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e5f6ec; color: var(--green); }
.db-st.is-still { background: #fdeced; color: var(--red); }
/* grow when visible */
.db-kbar b, .db-rank li > i b { width: var(--w); }
.db-bars i { height: var(--h); }
.db-win.is-enter .db-bars i, .db-win.is-enter .db-rank li > i b, .db-win.is-enter .db-kbar b { animation: db-grow 1s var(--ease) both; }
@keyframes db-grow { from { height: 0; width: 0; } }
.db-win.is-enter .db-kbar b, .db-win.is-enter .db-rank li > i b { animation-name: db-grow-w; }
@keyframes db-grow-w { from { width: 0; } }
.db-win.is-enter .db-bars i { animation-name: db-grow-h; animation-delay: calc(var(--i) * 30ms); }
.db-bars span { --i: 0; }
@keyframes db-grow-h { from { height: 0; } }

@media (max-width: 1100px) { .db-side { display: none; } .db-kpis { grid-template-columns: repeat(3, 1fr); } .db-kpis.is-6 { grid-template-columns: repeat(3, 1fr); } .db-kpis > :nth-child(n+4) { display: none; } }
@media (max-width: 760px) {
    .db-tb, .db-me b, .db-me em { display: none; }
    .db-grid, .db-grid.is-geo { grid-template-columns: 1fr; }
    .db-span2 { grid-column: auto; }
    .db-legend { margin-left: 0; }
    .db-legend i.is-p, .db-legend i.is-l { display: none; }
    .db-grid > .db-panel:nth-child(n+4) { display: none; }
    .db-kpis, .db-kpis.is-6 { grid-template-columns: 1fr 1fr; }
    .db-kpis > :nth-child(n+3) { display: none; }
    .db-bars { height: 96px; gap: 2px; }
    .db-hide { display: none; }
    .db-body { padding: 12px; }
    .db-tabs button { padding: 0 14px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .db-dot2, .db-win.is-enter, .db-win.is-enter * { animation: none !important; } .db-bars i { transition: none; } }

/* =========================================================
   Home hero: rotating headline + live events (.hr, .ht)
   ========================================================= */
.hr-h1 { display: flex; flex-direction: column; align-items: center; }
.hr-rot { display: inline-grid; color: var(--accent); }
.hr-rot .is-word { grid-area: 1 / 1; opacity: 0; transform: translateY(.35em); transition: opacity .5s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.hr-rot .is-word.is-on { opacity: 1; transform: none; }
.hr-rot .is-word.is-out { opacity: 0; transform: translateY(-.35em); }
.no-js .hr-rot .is-word:first-child { opacity: 1; transform: none; }
.ws-hero.is-home { padding-top: clamp(28px, 4.5vw, 56px); }
.ws-hero.is-home .ws-tag { margin-bottom: 16px !important; }
.ws-hero.is-home .ws-h1 { font-size: clamp(40px, 5.6vw, 78px); margin-bottom: 18px; }
.ws-hero.is-home .ws-lead { margin-bottom: 24px; font-size: clamp(17px, 1.5vw, 20px); }
.ws-hero.is-home .ws-hero-note { margin-top: 12px; }
.hr-stage { height: clamp(420px, 40vw, 540px); margin-top: clamp(28px, 4vw, 44px); }
.hr-stage .ws-hero-prod.is-uac { width: min(32%, 420px); bottom: 19%; }
.hr-stage .ws-hero-prod.is-reader { left: 25.5%; width: min(7%, 92px); bottom: 19%; }
.hr-stage .ws-hero-prod.is-card { width: min(14%, 180px); right: 25%; bottom: 12%; z-index: 2; }
.hr-stage .ws-hero-prod.is-card img { transform: rotate(-7deg); }
.hr-stage .ws-hero-prod.is-card .ws-shot::after { display: none; }
.hr-col { position: absolute; top: 6%; width: min(22.5%, 290px); display: flex; flex-direction: column; gap: 10px; z-index: 4; }
.hr-col.is-l { left: 2.2%; }
.hr-col.is-r { right: 2.2%; }
.ht { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 16px; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(11,13,18,.06); box-shadow: 0 14px 30px -16px rgba(11,13,18,.35); text-align: left; font-size: 13px; line-height: 1.3; color: var(--ink); opacity: 0; transform: translateY(-12px) scale(.96); transition: opacity .45s var(--ease), transform .5s var(--ease), max-height .45s var(--ease), margin .45s, padding .45s; max-height: 80px; }
.ht.is-in { opacity: 1; transform: none; }
.ht.is-gone { opacity: 0; transform: translateY(10px) scale(.96); max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -10px; }
.ht-av { position: relative; width: 38px; height: 38px; flex: none; }
.ht-av .ws-face { width: 38px; height: 38px; }
.ht-av i { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 2px #fff; }
.ht-av i svg { width: 10px; height: 10px; stroke-width: 3; }
.ht.is-green .ht-av i { background: var(--green); }
.ht.is-red .ht-av i { background: var(--red); }
.ht.is-blue .ht-av i { background: var(--accent); }
.ht.is-amber .ht-av i { background: var(--amber); }
.ht-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ht-ico svg { width: 19px; height: 19px; }
.ht.is-green .ht-ico { background: #e5f6ec; color: var(--green); }
.ht.is-red .ht-ico { background: #fdeced; color: var(--red); }
.ht.is-blue .ht-ico { background: var(--accent-50); color: var(--accent); }
.ht.is-amber .ht-ico { background: #fdf3df; color: #b7770a; }
.ht-t { min-width: 0; flex: 1; }
.ht-t b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-t small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht.is-red .ht-t small { color: #c4262b; }
.ht em { font-style: normal; font-size: 11px; color: var(--faint); align-self: flex-start; }
.hr-live { position: absolute; left: 50%; top: 5%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fff; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); z-index: 3; white-space: nowrap; }
.hr-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ws-ping-dot 1.6s infinite; }
@media (min-width: 720px) and (max-width: 1023.98px) { .hr-col { width: 31%; } .hr-stage .ws-hero-prod.is-uac { width: 34%; } .hr-stage .ws-hero-prod.is-reader { left: 34.5%; width: 6%; bottom: 40%; } .hr-stage .ws-hero-prod.is-card { right: 33%; width: 13%; } .hr-live { display: none; } }
@media (max-width: 719.98px) {
    .hr-stage { height: 470px; }
    .hr-col.is-l { left: 12px; right: 12px; width: auto; top: 14px; gap: 8px; }
    .hr-col.is-l .ht:nth-child(n+3) { display: none; }
    .hr-col.is-r { display: none; }
    .hr-stage .ws-hero-prod.is-uac { width: 72%; bottom: 18%; }
    .hr-stage .ws-hero-prod.is-reader { left: 4%; width: 15%; bottom: 13%; }
    .hr-stage .ws-hero-prod.is-card { width: 32%; right: 4%; bottom: 9%; }
    .hr-live { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ht { opacity: 1; transform: none; transition: none; } .hr-rot .is-word { transition: none; } }

/* =========================================================
   Feature tour (.tour)
   ========================================================= */
.tour-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; margin-bottom: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); padding-left: 20px; padding-right: 20px; }
.tour-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .tour-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 0 0 6px; } }
.tour-tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tour-tabs button svg { width: 16px; height: 16px; color: var(--muted); }
.tour-tabs button:hover { border-color: var(--line-2); }
.tour-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tour-tabs button[aria-selected="true"] svg { color: var(--orange); }
.tour-prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; }
.tour-tabs button.is-timed .tour-prog { background: var(--orange); transform-origin: left; animation: db-prog var(--t) linear 1; }
.tour-stage { background: var(--soft); border-radius: 28px; padding: clamp(20px, 4vw, 48px); min-height: 360px; }
.tour-panel { display: grid; gap: 28px; align-items: center; }
.tour-panel[hidden] { display: none; }
@media (min-width: 900px) { .tour-panel { grid-template-columns: 5fr 6fr; gap: 56px; } }
.tour-panel.is-enter .tour-text { animation: tour-in .5s var(--ease); }
.tour-panel.is-enter .tour-ui li { animation: tour-row .5s var(--ease) both; animation-delay: calc(120ms + var(--k) * 110ms); }
@keyframes tour-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes tour-row { from { opacity: 0; transform: translateX(14px); } }
.tour-n { display: block; font-size: 13px; font-weight: 650; color: var(--orange-600); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.tour-text h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 14px; }
.tour-text h3 .ws-tag { vertical-align: 6px; }
.tour-text p { font-size: 17px; color: var(--muted); max-width: 460px; }
.tour-ui { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(8,24,58,.35); overflow: hidden; }
.tour-ui-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tour-ui-h b { font-size: 14px; color: var(--ink); margin-right: auto; }
.tour-ui-h i { width: 8px; height: 8px; border-radius: 50%; background: var(--soft-2); }
.tour-ui-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; }
.tour-ui-ico svg { width: 15px; height: 15px; }
.tour-ui ul { padding: 6px 8px; }
.tour-ui li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.tour-ui li:last-child { border-bottom: 0; }
.tour-ui li .ws-face { width: 34px; height: 34px; }
.tour-ri { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--ink); display: grid; place-items: center; }
.tour-ri svg { width: 17px; height: 17px; }
.tour-ri.is-logo { background: #fff; border: 1px solid var(--line); }
.tour-ui li b { display: block; color: var(--ink); font-size: 14.5px; letter-spacing: -.01em; }
.tour-ui li small { display: block; color: var(--muted); font-size: 13px; }
.tour-ui li em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tour-ui li em.is-green { background: #e5f6ec; color: var(--green); }
.tour-ui li em.is-red { background: #fdeced; color: var(--red); }
.tour-ui li em.is-amber { background: #fdf3df; color: #b7770a; }
.tour-ui li em.is-blue { background: var(--accent-50); color: var(--accent); }
.tour-ui li em.is-grey { background: var(--soft); color: var(--muted); }
@media (max-width: 479.98px) { .tour-ui li { grid-template-columns: 30px 1fr; } .tour-ui li em { grid-column: 2; justify-self: start; } .tour-text p { font-size: 16px; } }

/* =========================================================
   Badge designer (.bd)
   ========================================================= */
.bd { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(8,24,58,.35); color: var(--ink); }
.bd-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bd-title { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; margin-right: auto; }
.bd-title svg { width: 16px; height: 16px; color: var(--accent); }
.bd-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--soft); font-size: 12px; }
.bd-seg b { padding: 4px 10px; border-radius: 7px; color: var(--muted); font-weight: 600; }
.bd-seg b.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.bd-print { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 12.5px; font-weight: 650; transition: background .3s, color .3s; }
.bd-print svg { width: 14px; height: 14px; }
.bd-print.is-on, .bd:not(.is-run) .bd-print { background: var(--accent); color: #fff; }
.bd-body { display: grid; grid-template-columns: 58px 1fr 150px; min-height: 300px; }
.bd-tools { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; padding: 10px 6px; }
.bd-tools span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; border-radius: 10px; color: var(--muted); transition: background .25s, color .25s; }
.bd-tools span svg { width: 17px; height: 17px; }
.bd-tools small { font-size: 10px; font-weight: 600; }
.bd-tools span.is-on { background: var(--accent-50); color: var(--accent); }
.bd-canvas { position: relative; display: grid; place-items: center; padding: 28px 18px 34px; background: radial-gradient(circle, #dfe4ec 1px, transparent 1.2px) 0 0 / 14px 14px, #f6f7fa; }
.bd-dim { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--faint); font-weight: 600; white-space: nowrap; }
.bd-card { position: relative; width: 100%; max-width: 380px; aspect-ratio: 85.6 / 54; border-radius: 4.5% / 7.1%; background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.03), 0 24px 44px -22px rgba(8,24,58,.55); overflow: hidden; container-type: inline-size; }
.bd-band { position: absolute; left: 0; top: 0; bottom: 0; width: 36%; background: linear-gradient(160deg, #0c1f4d, #13306f); }
.bd-band::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2.2cqw; background: var(--orange); }
.bd-card > span:not(.bd-band):not(.bd-guide):not(.bd-sel) { position: absolute; opacity: 0; transform: scale(.92); transition: opacity .4s var(--ease), transform .45s var(--ease); }
.bd-card > span.is-on, .bd:not(.is-run) .bd-card > span { opacity: 1 !important; transform: none !important; }
.bd-card > .bd-nfc { opacity: 1 !important; transform: none !important; }
.bd-logo { left: 5.5cqw; top: 6cqw; display: flex; align-items: center; gap: 2cqw; color: #fff; }
.bd-logo svg { width: 7cqw; height: 7cqw; color: var(--orange); }
.bd-logo b { font-size: 4.2cqw; letter-spacing: .14em; line-height: 1; }
.bd-logo small { display: block; font-size: 2.3cqw; letter-spacing: .08em; font-weight: 600; color: #b3c3de; margin-top: .6cqw; }
.bd-photo { left: 6.5cqw; top: 22cqw; width: 23cqw; height: 27cqw; border-radius: 3cqw; overflow: hidden; box-shadow: 0 0 0 1cqw rgba(255,255,255,.95); }
.bd-photo .ws-face, .bd-photo img { width: 100%; height: 100%; border-radius: 0; }
.bd-name { left: 41cqw; top: 9cqw; right: 4cqw; }
.bd-name b { display: block; font-size: 7cqw; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.bd-name small { display: block; font-size: 3.6cqw; color: var(--accent); font-weight: 650; margin-top: 1.2cqw; }
.bd-name em { display: inline-block; font-style: normal; margin-top: 2cqw; font-size: 2.6cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600); background: var(--orange-50); padding: .6cqw 2cqw; border-radius: 99px; }
.bd-qr { right: 5cqw; bottom: 6cqw; width: 18cqw; height: 18cqw; padding: 1cqw; background: #fff; border: .4cqw solid var(--line); border-radius: 1.5cqw; }
.bd-qr svg { width: 100%; height: 100%; display: block; }
.bd-meta { left: 41cqw; bottom: 7cqw; }
.bd-meta b { display: block; font-size: 3cqw; color: var(--ink); letter-spacing: .04em; }
.bd-meta small { display: block; font-size: 2.6cqw; color: var(--muted); }
.bd-nfc { left: 41cqw; top: 41cqw; color: #c4cbd6; }
.bd-nfc svg { width: 5cqw; height: 5cqw; }
.bd-guide { position: absolute; background: #e5484d; opacity: 0; transition: opacity .2s; }
.bd-guide.is-v { left: 41cqw; top: 0; bottom: 0; width: 1px; }
.bd-guide.is-h { left: 0; right: 0; top: 9cqw; height: 1px; }
.bd-guide.is-on { opacity: .7; }
.bd-sel { position: absolute; right: 4cqw; bottom: 5cqw; width: 20cqw; height: 20cqw; border: 1.5px dashed var(--accent); border-radius: 2cqw; opacity: 0; transition: opacity .2s; }
.bd-sel.is-on { opacity: 1; }
.bd-props { border-left: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bd-props small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.bd-sw { display: flex; gap: 6px; }
.bd-sw i { width: 20px; height: 20px; border-radius: 6px; }
.bd-sw i:first-child { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.bd-field { font-size: 12px; padding: 6px 8px; border-radius: 8px; background: var(--soft); color: var(--text); }
@media (max-width: 1180px) { .bd-props { display: none; } .bd-body { grid-template-columns: 58px 1fr; } }
@media (max-width: 479.98px) { .bd-tools { display: none; } .bd-body { grid-template-columns: 1fr; min-height: 0; } .bd-seg { display: none; } .bd-canvas { padding: 22px 14px 32px; } }

/* =========================================================
   Plug and play (.pp)
   ========================================================= */
.pp { margin: 0; display: grid; gap: 22px; }
@media (min-width: 1000px) { .pp { grid-template-columns: 320px 1fr; align-items: center; gap: 36px; } }
.pp-steps { display: grid; gap: 8px; }
.pp-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 18px; border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.pp-steps li.is-on { background: #fff; border-color: var(--line); box-shadow: 0 14px 30px -20px rgba(8,24,58,.35); }
.pp-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #fff; border: 1px solid var(--line); color: var(--muted); transition: background .3s, color .3s; }
.pp-steps li.is-on .pp-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.pp-n svg { width: 18px; height: 18px; }
.pp-steps b { display: block; color: var(--ink); font-size: 16px; letter-spacing: -.01em; }
.pp-steps small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.pp-win { background: #f4f6fa; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(8,24,58,.35); color: var(--ink); font-size: 13px; min-width: 0; }
.pp-hero { position: relative; margin: 12px 12px 0; border-radius: 14px; padding: 16px 20px 0; background: linear-gradient(120deg, #0d2a63, #1554b5); color: #cfe0ff; overflow: hidden; }
.pp-back { font-size: 12px; font-weight: 600; }
.pp-hero-t { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; }
.pp-plus { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: #fff; flex: none; }
.pp-plus svg { width: 20px; height: 20px; }
.pp-hero-t b { display: block; color: #fff; font-size: 20px; letter-spacing: -.02em; }
.pp-hero-t small { font-size: 13px; }
.pp-hero-s { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid rgba(255,255,255,.18); padding: 12px 0 14px; }
.pp-hero-s > span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: #fff; }
.pp-hero-s i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 11px; flex: none; }
.pp-hero-s .fg-swap > i { display: none; }
.pp-hero-s .fg-swap > i.is-on { display: grid; }
.pp:not(.is-run) .pp-hero-s .fg-swap > i:last-of-type { display: grid; }
.pp:not(.is-run) .pp-hero-s .fg-swap > i:first-child { display: none; }
.pp-hero-s .is-done i, .pp-hero-s i.is-ok { border-color: #3ccf86; color: #3ccf86; }
.pp-hero-s i svg { width: 12px; height: 12px; stroke-width: 3; }
.pp-body { display: grid; grid-template-columns: 1fr 240px; gap: 12px; padding: 12px; }
.pp-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.pp-form label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 6px; }
.pp-form label i { color: var(--red); font-style: normal; }
.pp-input { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; color: var(--muted); transition: border-color .3s, box-shadow .3s; min-width: 0; }
.pp-input > span { color: var(--faint); }
.pp-input > b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; flex: 1; min-width: 0; letter-spacing: .02em; }
.pp-input.is-on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(21,84,181,.12); }
.pp-ph { font-style: normal; color: var(--faint); display: none; white-space: nowrap; flex: 1; }
.pp.is-run .pp-input:not(.is-on) .pp-ph { display: block; }
.pp.is-run .pp-input:not(.is-on) > b { display: none; }
.pp-paste { margin-left: auto; font-family: var(--font); font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-50); padding: 6px 10px; border-radius: 8px; }
.pp-input.is-sm { height: 38px; font-family: var(--font); font-size: 13px; color: var(--ink); gap: 8px; }
.pp-input.is-sm svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.pp-help { display: flex; justify-content: space-between; margin: 6px 0 14px; font-size: 11.5px; color: var(--muted); }
.pp-help .fg-swap { font-weight: 700; }
.pp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pp-cancel, .pp-add { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; font-size: 12.5px; font-weight: 650; }
.pp-cancel { border: 1px solid var(--line-2); }
.pp-add { background: var(--accent); color: #fff; transition: transform .2s, box-shadow .2s; }
.pp-add svg { width: 14px; height: 14px; }
.pp-add.is-on { transform: scale(.95); box-shadow: 0 0 0 5px rgba(21,84,181,.2); }
.pp-side { min-width: 0; }
.pp-k { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.pp-dev { display: grid; grid-template-columns: 56px 1fr; gap: 4px 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.pp-dev-img { grid-row: span 2; }
.pp-dev-img .ws-shot { width: 56px; }
.pp-dev b { display: block; font-size: 14px; }
.pp-dev small { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pp-st { grid-column: 2; justify-self: start; font-style: normal; }
.pp-st i { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.pp-st i.is-online { background: #e5f6ec; color: var(--green); }
.pp-st i.is-sync { background: var(--accent-50); color: var(--accent); }
.pp-st i.is-ready { background: var(--green); color: #fff; }
ul.pp-sync { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; }
.pp-sync li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pp-sync li:last-child { border-bottom: 0; }
.pp-sync li span { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.pp-sync li span svg { width: 14px; height: 14px; color: var(--muted); }
.pp-sync li > i { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: var(--soft-2); overflow: hidden; }
.pp-sync li > i b { display: block; height: 100%; width: 0; background: var(--green); border-radius: 5px; transition: width 1.3s var(--ease); }
.pp-sync li:nth-child(2) > i b { transition-delay: .2s; }
.pp-sync li:nth-child(3) > i b { transition-delay: .4s; }
.pp-sync li > i b.is-on, .pp:not(.is-run) .pp-sync li > i b { width: 100%; }
@media (max-width: 759.98px) {
    .pp-body { grid-template-columns: 1fr; }
    .pp-hero-s { grid-template-columns: 1fr; gap: 6px; }
    .pp-row { grid-template-columns: 1fr; }
    .pp-steps { grid-template-columns: 1fr 1fr; }
    .pp-steps small { display: none; }
    .pp-steps li { padding: 10px; }
    .pp-input { font-size: 13px; }
}

/* =========================================================
   Alerts phone (.al)
   ========================================================= */
.al { display: flex; justify-content: center; }
.al-phone { width: min(100%, 320px); aspect-ratio: 340 / 560; border-radius: 48px; padding: 12px; background: #10131a; box-shadow: 0 50px 80px -40px rgba(8,24,58,.6), inset 0 0 0 2px #2a2f3a; }
.al-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: linear-gradient(170deg, #1c3f86 0%, #0d2352 45%, #08183a 100%); padding: 54px 12px 12px; display: flex; flex-direction: column; align-items: center; }
.al-screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 96px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.al-time { font-size: 58px; font-weight: 600; color: #fff; letter-spacing: -.03em; line-height: 1; }
.al-date { font-size: 14px; color: #cfdaf0; margin: 6px 0 22px; font-weight: 500; }
.al-list { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.al-n { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .45s var(--ease), transform .5s var(--ease), max-height .45s, padding .45s, margin .45s; max-height: 90px; }
.al-n.is-in { opacity: 1; transform: none; }
.al-n.is-gone { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -8px; }
.al-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.al-ico svg { width: 17px; height: 17px; stroke-width: 2.2; }
.al-n.is-red .al-ico { background: var(--red); }
.al-n.is-amber .al-ico { background: var(--amber); }
.al-n.is-blue .al-ico { background: var(--accent); }
.al-n.is-green .al-ico { background: var(--green); }
.al-t { min-width: 0; }
.al-t b { display: block; font-size: 13.5px; }
.al-t small { display: block; font-size: 12px; color: #4a5160; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-n em { font-style: normal; font-size: 11px; color: #6b7280; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .al-n { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Local Gateway, coming soon, CTA, lineup additions
   ========================================================= */
.lg-stage { aspect-ratio: 4 / 3; }
.lg-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid var(--dark-line); color: #fff; font-size: 13.5px; font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; animation: lg-float 6s ease-in-out infinite; }
.lg-chip svg { width: 17px; height: 17px; color: var(--orange); }
.lg-chip.is-a { left: 6%; top: 10%; }
.lg-chip.is-b { right: 6%; top: 22%; animation-delay: -2s; }
.lg-chip.is-c { left: 12%; bottom: 10%; animation-delay: -4s; }
@keyframes lg-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lg-chip { animation: none; } }
@media (max-width: 479.98px) { .lg-chip { font-size: 12px; padding: 7px 10px; } }

.ws-soon-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .ws-soon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ws-soon-grid { grid-template-columns: repeat(6, 1fr); } .ws-soon-grid > * { grid-column: span 2; } .ws-soon-grid > .is-ai { grid-column: span 4; grid-row: span 1; } }
.ws-soon-grid .ws-soon { flex-wrap: wrap; }
.ws-soon-grid .ws-soon > div:not(.ai-chat) { flex: 1; min-width: 200px; }
.ws-soon.is-ai { background: var(--dark); border: 0; }
.ws-soon.is-ai h3 { color: #fff; }
.ws-soon.is-ai p { color: var(--dark-text); }
.ws-soon.is-ai .ws-ico { background: rgba(247,148,29,.16); border: 0; color: var(--orange); }
.ai-chat { flex-basis: 100%; display: grid; gap: 8px; margin-top: 6px; }
.ai-q { justify-self: end; max-width: 85%; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: var(--accent); color: #fff; font-size: 14px; }
.ai-a { justify-self: start; max-width: 92%; display: flex; gap: 8px; padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.08); color: #dfe7f6; font-size: 14px; }
.ai-a svg { width: 16px; height: 16px; flex: none; color: var(--orange); margin-top: 2px; }
.ws-sec .ws-soon-grid .ws-card:not(.is-ai) { background: var(--soft); }
.is-soft .ws-soon-grid .ws-card:not(.is-ai) { background: #fff; }

.ws-cta { padding-bottom: clamp(88px, 11vw, 140px); }
.ws-cta-promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; font-size: 14.5px; color: var(--dark-text); }
.ws-cta-promises li { display: inline-flex; align-items: center; gap: 8px; }
.ws-cta-promises svg { width: 17px; height: 17px; color: var(--orange); stroke-width: 2.4; }

.ws-prod-img .ws-shot.is-wide { width: 78%; max-width: 300px; }
.ws-prod-img .ws-shot.is-card { width: 52%; max-width: 280px; }
.ws-prod-img .ws-shot.is-card img { transform: rotate(-4deg); }
.ws-prod-img .ws-shot.is-card::after { display: none; }
.ws-prod.is-wide { min-height: 0; padding-bottom: 28px; }
@media (min-width: 720px) { .ws-lineup .is-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 32px; } }
.ws-prod-brands { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.ws-prod-brands span { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; letter-spacing: .02em; color: var(--ink); }
.ws-prod-brands svg { width: 17px; height: 17px; }
@media (min-width: 1024px) { .ws-panel-grid { grid-template-columns: repeat(5, 1fr); } }

/* Sovereignty diagram (Local Gateway page) */
.sov { margin: 0; position: relative; display: grid; gap: 0; }
.sov-site { position: relative; border: 2px dashed rgba(106,166,255,.5); border-radius: 28px; padding: 46px 22px 22px; background: rgba(255,255,255,.03); }
.sov-k { position: absolute; top: -14px; left: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--dark); color: #a9c8ff; font-size: 13px; font-weight: 650; border: 1px solid rgba(106,166,255,.4); }
.sov-k svg { width: 15px; height: 15px; }
.sov-gw { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
.sov-gw .ws-shot { width: min(60%, 280px); margin-bottom: 8px; }
.sov-gw b { color: #fff; font-size: 17px; }
.sov-gw small { color: var(--dark-text); font-size: 13px; }
.sov-devs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sov-devs span { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 14px; background: var(--dark-2); border: 1px solid var(--dark-line); color: #e3e9f5; font-size: 14px; font-weight: 600; transition: border-color .3s, box-shadow .3s; }
.sov-devs span svg { width: 17px; height: 17px; color: var(--accent-dark); }
.sov-devs i { font-style: normal; color: var(--dark-text); font-weight: 500; margin-left: auto; }
.sov-devs span.is-on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,148,29,.15); }
.sov-lock { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 650; color: #3ccf86; }
.sov-lock svg { width: 15px; height: 15px; }
.sov-out { display: flex; flex-direction: column; align-items: center; order: -1; margin-bottom: 0; }
.sov-dl { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); color: #fff; }
.sov-dl > svg { width: 18px; height: 18px; color: var(--orange); }
.sov-dl b { display: block; font-size: 14px; }
.sov-dl small { display: block; font-size: 12.5px; color: var(--dark-text); }
.sov-arrow { position: relative; width: 2px; height: 44px; background: repeating-linear-gradient(to bottom, var(--orange) 0 5px, transparent 5px 10px); background-size: 2px 10px; animation: sov-flow 1s linear infinite; }
.sov-arrow::after { content: ""; position: absolute; left: -5px; bottom: -2px; border: 6px solid transparent; border-top-color: var(--orange); }
@keyframes sov-flow { to { background-position: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .sov-arrow { animation: none; } }
.lg-soft { display: flex; gap: 18px; align-items: flex-start; }
.lg-soft .ws-ico { margin: 0; }
.lg-soft h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-soft p { margin: 0; }
.rd-hl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: 18px; overflow: hidden; margin-top: 26px; }
.rd-hl > div { background: var(--dark); padding: 16px; }
.rd-hl strong { display: block; color: #fff; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; line-height: 1.1; }
.rd-hl span { display: block; font-size: 13px; color: var(--dark-text); margin-top: 4px; line-height: 1.35; }
.is-dark .ws-spec-row { border-color: var(--dark-line); }
.is-dark .ws-spec-row dt { color: var(--dark-text); }
.is-dark .ws-spec-row dd { color: #fff; }

/* GEO-AP page: same unit, two roles */
.geo-duo { max-width: 1000px; gap: clamp(16px, 4vw, 48px); align-items: center; }
.geo-duo figure { margin: 0; flex: 1; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.geo-duo .ws-shot { width: 100%; }
.geo-role { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--orange-600); font-size: 14px; font-weight: 700; border: 1.5px solid var(--orange); }
.geo-role svg { width: 16px; height: 16px; }
.geo-role.is-gw { background: var(--orange); color: #fff; }
.geo-same { text-align: center; color: var(--dark-text); font-size: 15px; margin: 0; padding-bottom: clamp(56px, 7vw, 96px); margin-top: -40px; }
.geo-card-img { position: relative; background: var(--soft); border-radius: 18px; padding: 28px 12% 40px; margin-bottom: 22px; display: grid; justify-items: center; }
.is-soft .geo-card-img { background: var(--soft); }
.geo-card-img .ws-shot { width: 100%; max-width: 360px; }
.geo-card-img .geo-role { position: absolute; bottom: 14px; margin: 0; }
.mlc-solo { width: 78%; }
.mlc-solo img { transform: rotate(-5deg); }
.mlc-solo .ws-shot::after { display: none; }
@media (max-width: 599.98px) { .geo-duo { flex-direction: row; } .geo-role { font-size: 12.5px; padding: 5px 10px; } .geo-same { margin-top: -30px; } }
@media (min-width: 900px) { .bd-wide { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center; } .bd-wide .ws-card-fig { margin-top: 0; } }

/* =========================================================
   Pricing: plan picker, limits, fit highlight
   ========================================================= */
.pk { display: grid; gap: 16px 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px; margin-bottom: 20px; }
@media (min-width: 900px) { .pk { grid-template-columns: auto 1fr 1fr auto; } }
.pk-q b { display: block; color: var(--ink); font-size: 17px; letter-spacing: -.01em; }
.pk-q small { color: var(--muted); font-size: 13.5px; }
.pk-range { display: grid; gap: 8px; }
.pk-range span { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--text); }
.pk-range b { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }
.pk-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--soft-2) var(--p, 0%)); outline: none; }
.pk-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(21,84,181,.35); cursor: pointer; }
.pk-range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.pk-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(21,84,181,.25); }
.pk-out span { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--accent-50); color: var(--accent); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.pk-out span[hidden] { display: none; }
.pk-out svg { width: 17px; height: 17px; }
.ws-plan { transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.ws-plan.is-fit { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 24px 50px -28px rgba(23,160,93,.45); }
.ws-plan.is-featured.is-fit { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 24px 50px -28px rgba(21,84,181,.5); }
.ws-tag.is-fit { display: none; background: #e5f6ec; color: var(--green); border-color: transparent; }
.ws-tag.is-fit svg { width: 12px; height: 12px; stroke-width: 3; }
.ws-plan.is-fit .ws-tag.is-fit { display: inline-flex; }
.ws-plan.is-fit .ws-tag.is-pop { display: none; }
.ws-plan-name { justify-content: flex-start; }
.ws-plan-name h3 { margin-right: auto !important; }
.ws-plan-for { min-height: 44px; margin-bottom: 14px; }
.ws-price strong:not(.is-text) { white-space: nowrap; font-size: clamp(32px, 2.9vw, 40px); }
.ws-price { min-height: 52px; }
.ws-price { min-height: 0; margin-bottom: 16px; }
.ws-price strong.is-text { padding-top: 6px; }
ul.ws-plan-lim { display: grid; gap: 6px; margin: 0 0 20px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.ws-plan-lim li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 650; color: var(--ink); }
.ws-plan-lim svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.ws-plan.is-featured .ws-plan-lim { background: var(--accent-50); }
@media (max-width: 479.98px) { .rdx-r { grid-template-columns: 46px 1fr; gap: 6px 12px; } .rdx-glyph { width: 46px; height: 46px; grid-row: span 2; } .rdx-link { justify-self: start; grid-column: 2; } }

/* ===== Installation guide (UAC page): lock cards, switches, door scene, wiring ===== */
[data-switch] .is-off { display: none !important; }
.in-locks { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .in-locks { grid-template-columns: 1fr 1fr; } }
.in-lock { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.in-lock-art { display: grid; place-items: center; height: 260px; padding: 22px; background: radial-gradient(70% 80% at 50% 40%, #fff 0%, var(--soft) 72%); border-bottom: 1px solid var(--line); }
.in-lock-art .art { width: auto; height: 100%; max-width: 100%; }
.in-lock-art.is-maglock .art { width: 100%; height: auto; max-height: 100%; }
.in-lock-body { padding: 24px 24px 26px; }
.in-lock-body h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; color: var(--ink); }
.in-lock-lead { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }
.in-facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.in-facts > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.in-facts dt { color: var(--muted); font-weight: 500; }
.in-facts dd { margin: 0; color: var(--ink); font-weight: 550; }
@media (max-width: 479.98px) { .in-facts > div { grid-template-columns: 1fr; gap: 2px; } .in-lock-art { height: 210px; } }

.in-guide { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--soft); padding: clamp(14px, 2.4vw, 28px); }
.in-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 16px; }
.in-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); max-width: 100%; }
.in-seg button { appearance: none; border: 0; background: transparent; font: 600 14px/1 var(--font); color: var(--muted); padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.in-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 4px 12px -6px rgba(21, 84, 181, .6); }
.in-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 559.98px) { .in-seg { width: 100%; } .in-seg button { flex: 1; padding: 10px 8px; font-size: 13px; } }
.in-panes { display: grid; gap: 16px; }
.in-pane { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 980px) { .in-pane { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 28px; padding: 22px 26px; } }
.in-fig svg { display: block; width: 100%; height: auto; }
.in-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.in-legend li { display: flex; gap: 10px; align-items: flex-start; }
.in-legend b { color: var(--ink); }
.in-legend .n, .in-step-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font); background: var(--accent); color: #fff; margin-top: 1px; }
.in-wires { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--text); }
.in-legend-key { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.in-legend-key span { display: inline-block; width: 22px; height: 4px; border-radius: 2px; margin-right: -8px; vertical-align: middle; }
.in-legend-key .is-pos { background: #e5484d; } .in-legend-key .is-neg { background: #1d2230; } .in-legend-key .is-sig { background: #8a909c; }

.in-steps-head { margin: clamp(48px, 6vw, 80px) 0 20px; }
.in-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 680px) { .in-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .in-steps { grid-template-columns: repeat(3, 1fr); } }
.in-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 20px; }
.in-steps .in-step-n { position: absolute; top: 18px; right: 18px; background: var(--accent-50); color: var(--accent); }
.in-steps b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.in-steps p { margin: 0; color: var(--muted); font-size: 14.5px; }
.in-notes { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 900px) { .in-notes { grid-template-columns: repeat(2, 1fr); } }
.in-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); border: 1px solid; }
.in-note b { display: block; color: var(--ink); margin-bottom: 2px; }
.in-note p { margin: 0; font-size: 14.5px; color: var(--text); }
.in-note-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.in-note-ico svg { width: 18px; height: 18px; }
.in-note.is-warn { background: var(--orange-50); border-color: #fbd8ab; }
.in-note.is-warn .in-note-ico { background: #fde3bf; color: #b45f06; }
.in-note.is-info { background: var(--accent-50); border-color: #cfdcf3; }
.in-note.is-info .in-note-ico { background: #d8e4f8; color: var(--accent); }

/* door scene */
.dr .dr-wall { fill: #f4f6f9; } .dr .dr-floor { fill: #e4e8ee; } .dr .dr-ceiling { fill: #d6dbe3; }
.dr .dr-tray { fill: #dde2e9; stroke: #c6ccd5; }
.dr .dr-frame { fill: #cfd5de; stroke: #b9c0ca; }
.dr .dr-leaf { stroke: #c4cad4; }
.dr .dr-panel { fill: none; stroke: #d2d7df; stroke-width: 1.5; }
.dr .dr-glass { stroke: #b9cbe2; } .dr .dr-glare { stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: .8; }
.dr .dr-hinge { fill: #aab1bb; }
.dr .dr-handle { fill: #8f97a2; } .dr .dr-handle-rose { fill: #a5acb6; }
.dr .dr-cable { fill: none; stroke: #8a909c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dr .dr-cable.is-dashed { stroke-dasharray: 6 6; }
.dr .dr-cable.is-trunk { stroke: #6b7280; stroke-width: 5; }
.dr .dr-cable.is-net { stroke: #1554b5; stroke-width: 4; }
.dr .dr-hot .dr-cable { stroke: #e5484d; }
.dr .dr-box { fill: #fff; stroke: #c6ccd5; }
.dr .dr-exit { fill: #17a05d; } .dr .dr-exit-t { font: 700 7px/1 var(--font); fill: #fff; letter-spacing: .04em; }
.dr .dr-reader { fill: #fff; stroke: #8a909c; stroke-width: 1.5; stroke-dasharray: 4 3; }
.dr .dr-reader-ring { fill: none; stroke: #1554b5; stroke-width: 2.4; }
.dr .dr-tag { font: 600 12px/1 var(--font); fill: var(--muted); }
.dr .dr-cabinet { fill: #fff; stroke: #c6ccd5; }
.dr .dr-uac { fill: #fbfbfc; stroke: #cfd4dc; }
.dr .dr-lcd { fill: #1d2a44; }
.dr .dr-led { fill: #c6ccd5; } .dr .dr-led.is-on { fill: #17a05d; }
.dr .dr-uac-t { font: 700 12px/1 var(--font); fill: var(--ink); letter-spacing: .02em; }
.dr .dr-psu { fill: #eef1f5; stroke: #c6ccd5; } .dr .dr-psu-t { font: 600 11px/1 var(--font); fill: var(--text); }
.dr .dr-pin circle { fill: var(--accent); stroke: #fff; stroke-width: 3; } .dr .dr-pin text { font: 700 12px/1 var(--font); fill: #fff; }

/* wiring diagram */
.wr .wr-block { fill: #fbfbfc; stroke: #cfd4dc; }
.wr .wr-dev, .wr .wr-psu { fill: #fff; stroke: #cfd4dc; }
.wr .wr-psu { fill: #f4f6f9; }
.wr .wr-bg { fill: #fff; stroke: #e5a0a2; }
.wr .wr-h { font: 700 14px/1 var(--font); fill: var(--ink); } .wr .wr-h.is-sm { font-size: 13px; }
.wr .wr-sub { font: 600 12.5px/1 var(--font); fill: var(--text); }
.wr .wr-mini { font: 500 11px/1 var(--font); fill: var(--muted); }
.wr .wr-term-t { font: 650 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; fill: var(--ink); } .wr .wr-term-t.is-pos { fill: #c9363b; }
.wr .wr-term { fill: #fff; stroke: #8a909c; stroke-width: 1.6; }
.wr .wr-dot { fill: #1d2230; } .wr .wr-node { fill: #1d2230; }
.wr .wr-sep { stroke: #e3e6eb; stroke-width: 1.2; }
.wr .wr-w { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.wr .wr-w.is-pos { stroke: #e5484d; } .wr .wr-w.is-neg { stroke: #1d2230; } .wr .wr-w.is-sig { stroke: #8a909c; } .wr .wr-w.is-thin { stroke-width: 2.4; stroke: #1d2230; }
.wr .wr-w.is-pos.is-thin { stroke: #e5484d; }
.wr .wr-diode-body { fill: #1d2230; } .wr .wr-diode-bar { stroke: #1d2230; stroke-width: 3; }
.wr .wr-exit { fill: #17a05d; }

/* ===== Edge platform figure (home + software): event -> UAC WB44 -> Home Assistant ===== */
.eg { margin: 0; display: grid; gap: 18px; align-items: center; padding: clamp(16px, 2.6vw, 30px); border-radius: var(--r-xl); background: var(--soft); border: 1px solid var(--line); }
@media (min-width: 980px) { .eg { grid-template-columns: minmax(0, 1fr) 330px minmax(0, 1fr); gap: 0; } }
.eg-col { display: grid; gap: 8px; }
.eg-col-h { display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px 4px; }
.eg-ha { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fff; border: 1px solid var(--line); }
.eg-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); opacity: .5; transform: scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; }
.eg-card.is-on { opacity: 1; transform: none; border-color: #bcd0ef; box-shadow: 0 10px 26px -16px rgba(21, 84, 181, .55); }
.eg-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--ink); transition: background .45s, color .45s; }
.eg-ico svg { width: 18px; height: 18px; }
.eg-card.is-on .eg-ico { background: var(--accent); color: #fff; }
.eg-col.is-out .eg-card.is-on .eg-ico { background: var(--orange); }
.eg-t { display: flex; flex-direction: column; min-width: 0; }
.eg-t b { color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.eg-t small { color: var(--muted); font-size: 12.5px; }
.eg-mid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
@media (min-width: 980px) { .eg-mid { padding: 0 4px; } }
.eg-hub { position: relative; z-index: 1; width: 100%; max-width: 230px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 14px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(8, 24, 58, .45); }
.eg-uac { width: 128px; }
.eg-uac .ws-shot::after { display: none; }
.eg-hub b { color: var(--ink); font-size: 15px; }
.eg-hub-sub { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.eg-links { position: relative; height: 26px; width: 100%; display: flex; justify-content: center; }
.eg-link { position: absolute; top: 0; padding: 5px 11px; border-radius: 999px; font: 650 12px/16px var(--font); white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.eg-link.is-on { opacity: 1; transform: none; }
.eg-link.is-live { background: #e5f6ed; color: #0f7a45; }
.eg-link.is-soon { background: var(--orange-50); color: #b45f06; }
.eg-link.is-next { background: var(--accent-50); color: var(--accent); }
.eg-rev-flag { display: none !important; }
/* flows: a line with dots moving towards the action (backwards when Home Assistant acts) */
.eg-flow { position: relative; display: block; width: 2px; height: 26px; background: linear-gradient(var(--line-2), var(--line-2)); overflow: hidden; border-radius: 2px; }
.eg-flow i { position: absolute; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); top: -6px; }
.eg.is-run .eg-flow i { animation: eg-down 1.1s linear infinite; }
.eg:has(.eg-rev-flag.is-on) .eg-flow i { animation-direction: reverse; background: var(--orange); }
@keyframes eg-down { to { top: 100%; } }
@keyframes eg-right { to { left: 100%; } }
@media (min-width: 980px) {
    .eg-mid { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .eg-flow { width: 34px; height: 2px; }
    .eg-flow i { top: -2px; left: -6px; }
    .eg.is-run .eg-flow i { animation-name: eg-right; }
    .eg-hub { flex: 1 1 0; }
    .eg-links { flex: 0 0 100%; }
}
/* phones: only the scenario playing */
@media (max-width: 979.98px) {
    .eg-card:not(.is-on) { display: none; }
    .eg-col-h { justify-content: center; margin-left: 0; }
}
.is-dark .eg { background: var(--dark-2); border-color: var(--dark-line); }
@media (prefers-reduced-motion: reduce) { .eg-card, .eg-link { transition: none; } .eg.is-run .eg-flow i { animation: none; } }

/* Smart building (software page): how it connects + roadmap */
.sb-how { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 900px) { .sb-how { grid-template-columns: repeat(3, 1fr); } }
.sb-step { position: relative; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.sb-step .in-step-n { margin-bottom: 12px; }
.sb-step b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 4px; }
.sb-step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sb-road { display: grid; gap: 0; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
@media (min-width: 900px) { .sb-road { grid-template-columns: repeat(3, 1fr); gap: 1px; } }
@media (max-width: 899.98px) { .sb-road { gap: 1px; } }
.sb-road-i { background: #fff; padding: 20px 22px; }
.sb-road-i b { display: block; color: var(--ink); font-size: 16.5px; margin: 8px 0 4px; }
.sb-road-i p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sb-road-k { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 11.5px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; }
.sb-road-i.is-live .sb-road-k { background: #e5f6ed; color: #0f7a45; }
.sb-road-i.is-soon .sb-road-k { background: var(--orange-50); color: #b45f06; }
.sb-road-i.is-next .sb-road-k { background: var(--accent-50); color: var(--accent); }
@media (max-width: 639.98px) { .in-fig.is-wiring { overflow-x: auto; margin: 0 -4px; padding-bottom: 6px; } .in-fig.is-wiring svg { min-width: 580px; } }
/* grid items may shrink below their content (long French words, wide diagrams) */
.pp { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .pp { grid-template-columns: 320px minmax(0, 1fr); } }
.in-panes { grid-template-columns: minmax(0, 1fr); }
.in-pane, .in-fig { min-width: 0; }
.pp-steps li > * { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Organisation figure (fig/organisation) ---------- */

/* ---------- Video and alarms figure (fig/video) ---------- */
.vd2 { margin: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.vd2-scene { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #e2e8f2; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(8, 24, 58, .45); aspect-ratio: 720 / 368; container-type: inline-size; align-self: start; }
.vd2-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vd2-zone { animation: vd2-zone 1.6s ease-in-out infinite; }
@keyframes vd2-zone { 0%, 100% { fill-opacity: .04; stroke-opacity: .55; } 50% { fill-opacity: .16; stroke-opacity: 1; } }
.vd2-reader { position: absolute; left: 33.1%; top: 30.2%; width: 4.2%; height: auto; filter: drop-shadow(0 6px 10px rgba(8, 24, 58, .28)); }
.vd2-chip { position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: 0 8px 18px -12px rgba(8, 24, 58, .5);
  font-size: clamp(9px, 1.65cqi, 12.5px); font-weight: 650; color: var(--ink); }
.vd2-chip svg { width: 1.15em; height: 1.15em; flex: none; }
.vd2-chip b { font-weight: 800; }
.vd2-chip-rec { left: 3%; top: 4.5%; background: rgba(8, 24, 58, .86); color: #fff; border-color: transparent; }
@keyframes og-blink { 50% { opacity: .3; } }
.vd2-chip-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: og-blink 1.2s ease-in-out infinite; }
.vd2-chip-motion { left: 3%; top: 70%; color: var(--orange-600); }
.vd2-chip-count { right: 3%; top: 4.5%; color: var(--accent); }
.vd2-chip-door { left: 3%; top: calc(4.5% + 2.7em); color: var(--red); }
.vd2-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vd2-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 7px; }
.vd2-head { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.vd2-head > div { min-width: 0; flex: 1; }
.vd2-head b { display: block; color: var(--ink); font-size: 15px; }
.vd2-head small { display: block; color: var(--muted); font-size: 12.5px; }
.vd2-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-50); color: var(--accent); flex: none; }
.vd2-ico.is-alarm { background: #fdecec; color: var(--red); }
.vd2-ico svg { width: 19px; height: 19px; }
.vd2-state { padding: 3px 9px; border-radius: 999px; background: #e7f6ee; color: var(--green); font-size: 11.5px; font-weight: 700; }
.vd2-k { margin-top: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.vd2-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--ink); }
.vd2-row svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.vd2-row.is-act { background: var(--orange-50); }
.vd2-row.is-act svg { color: var(--orange-600); }
.vd2-and { align-self: center; padding: 1px 9px; border-radius: 999px; border: 1px dashed var(--line-2); font-size: 11px; font-weight: 700; color: var(--muted); }
.vd2-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.vd2-opt { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.vd2-opt svg { width: 12px; height: 12px; }
.vd2-opt.is-on { border-color: var(--accent); background: var(--accent-50); color: var(--accent); }
@media (max-width: 960px) { .vd2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Full-stack figure (fig/stack) ---------- */
.st { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.st-layer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  margin-left: calc(var(--i) * 10px); margin-right: calc(var(--i) * 10px); box-shadow: 0 10px 24px -20px rgba(8, 24, 58, .45); }
.st-layer > div { min-width: 0; }
.st-layer b { display: block; color: var(--ink); font-size: 14px; }
.st-layer small { display: block; color: var(--muted); font-size: 12.5px; }
.st-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; }
.st-ico svg { width: 19px; height: 19px; }
.st-layer.is-cloud .st-ico { background: var(--accent-50); color: var(--accent); }
.st-layer.is-ha .st-ico { background: #e6f6fd; color: #18bcf2; }
.st-layer.is-other .st-ico { background: var(--soft); color: var(--ink); }
.st-layer.is-edge .st-ico { background: var(--dark); color: #fff; }
.st-layer.is-field .st-ico { background: var(--orange-50); color: var(--orange-600); }
.st-managed { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.st-managed svg { width: 16px; height: 16px; color: var(--green); }
@media (max-width: 600px) { .st-layer { margin-left: 0; margin-right: 0; } }

/* ---------- Built for (segments) ---------- */
.seg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.seg-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.seg-card .seg-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-50); color: var(--accent); }
.seg-card .seg-ico svg { width: 22px; height: 22px; }
.seg-card b { color: var(--ink); font-size: 15.5px; letter-spacing: -.01em; }
.seg-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 1100px) { .seg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .seg-grid { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Services page (.sv): real photos (WebsiteHelper::photo)
   ========================================================= */
@media (prefers-reduced-motion: reduce) { .vd2-zone { animation: none !important; } }
.ws-photo { display: block; overflow: hidden; background: var(--soft); }
.ws-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.sv-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.sv-hero-in > div:first-child { text-align: left; }
.sv-hero .ws-h1 { font-size: clamp(36px, 4.8vw, 60px); }
.sv-hero .ws-lead { max-width: 540px; margin-left: 0; }
.sv-hero .ws-btns { justify-content: flex-start; }
.sv-hero-photo .ws-photo { aspect-ratio: 4 / 3; border-radius: var(--r-xl); box-shadow: 0 40px 80px -50px rgba(8, 24, 58, .55); }

.sv-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sv-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.sv-card .ws-photo { aspect-ratio: 3 / 2; }
.sv-card-body { padding: 18px 20px 22px; }
.sv-card h3, .sv-ind-text h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.sv-card p, .sv-ind-text p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.sv-ind { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sv-ind-card { display: flex; flex-direction: column; }
.sv-ind-card .ws-photo { aspect-ratio: 4 / 3; border-radius: var(--r); }
.sv-ind-text { padding: 12px 2px 0; }
.sv-ind-text h3 { font-size: 16px; }
.sv-ind-text p { font-size: 14px; }

.sv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sv-steps li { padding-top: 16px; border-top: 2px solid var(--line); }
.sv-steps span { display: block; font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.sv-steps h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.sv-steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.sv-smart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.sv-smart-photo .ws-photo { aspect-ratio: 4 / 3; border-radius: var(--r-xl); }
.sv-smart .ws-lead { margin-left: 0; }
.sv-smart .sv-checks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sv-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; line-height: 1.5; }
.sv-checks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green); }
.sv-smart .sv-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 1000px) { .sv-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .sv-hero-in, .sv-smart { grid-template-columns: minmax(0, 1fr); }
  .sv-hero-in > div:first-child { text-align: center; } .sv-hero .ws-lead { margin-left: auto; } .sv-hero .ws-btns { justify-content: center; }
  .sv-who { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .sv-ind { gap: 14px; } .sv-ind-text p { font-size: 13.5px; } .sv-steps { grid-template-columns: minmax(0, 1fr); } }

.sv-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sv-mini-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.sv-mini-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(8, 24, 58, .5); }
.sv-mini-card .ws-photo { aspect-ratio: 3 / 2; }
.sv-mini-card b { padding: 14px 18px; color: var(--ink); font-size: 15.5px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .sv-mini { grid-template-columns: minmax(0, 1fr); } }

/* ---------- One organisation, every site (home: fig/orgsync) ---------- */
.osx { margin: 0; display: grid; gap: 0; justify-items: center; }
.osx-org { position: relative; z-index: 1; width: min(100%, 400px); padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 26px 60px -34px rgba(8, 24, 58, .45); }
.osx-org-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.osx-org-head > div { flex: 1; min-width: 0; }
.osx-org-head b { display: block; color: var(--ink); font-size: 16px; }
.osx-org-head small, .osx-item small, .osx-site-head small { display: block; color: var(--muted); font-size: 12.5px; }
.osx-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--dark); color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.osx-once { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-50); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.osx-item { display: flex; align-items: center; gap: 11px; padding: 9px 6px; margin: 0 -6px; border-radius: 12px; }
.osx-item > div { flex: 1; min-width: 0; }
.osx-item b { display: block; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osx-item .ws-face { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.osx-item.is-person { background: var(--accent-50); }
.osx-ic { color: var(--accent); display: grid; }
.osx-ic svg { width: 18px; height: 18px; }
.osx-tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.osx-tile svg { width: 17px; height: 17px; }
.osx-tile.is-group { background: #f0ebfd; color: #6d4ed8; }
.osx-tile.is-policy { background: #e5f6ec; color: var(--green); }
.osx-publish { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); min-height: 52px; }
.osx-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 650; flex: none; transition: transform .2s var(--ease), box-shadow .3s; box-shadow: 0 8px 18px -10px rgba(21, 84, 181, .8); }
.osx-btn svg { width: 15px; height: 15px; }
.osx-btn.is-on { transform: scale(.94); box-shadow: 0 0 0 6px rgba(21, 84, 181, .16); }
.osx-say { display: none; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.osx-say.is-on { display: inline-flex; animation: ms-in .35s var(--ease); }
.osx-say svg { width: 16px; height: 16px; flex: none; }
.osx-say.is-ok { color: var(--green); }
.osx-say.is-new { color: #b7770a; }
.osx:not(.is-run) .osx-say:last-child { display: inline-flex; }
.osx-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; flex: none; animation: osx-spin .8s linear infinite; }
@keyframes osx-spin { to { transform: rotate(360deg); } }

/* the wires: hidden on phones (cards stack under the organisation) */
.osx-flow { display: none; }
.osx-line { fill: none; stroke: #c9d6ee; stroke-width: 1.6px; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; transition: opacity .4s; }
.osx-line[data-on] { opacity: 0; }
.osx-line.is-on { opacity: 1; }
.osx-comet { fill: none; stroke: var(--accent); stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 22 3000; stroke-dashoffset: 22; opacity: 0; }
.osx-comet.is-on { opacity: 1; animation: osx-comet 1.25s ease-in-out forwards; }
@keyframes osx-comet { from { stroke-dashoffset: 22; } to { stroke-dashoffset: -420; } }

.osx-sites { position: relative; display: grid; gap: 12px; width: min(100%, 420px); margin-top: 26px; }
.osx-sites::before { content: ""; position: absolute; left: 50%; top: -26px; height: 26px; border-left: 2px dashed #c9d6ee; }
.osx-slot { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .4s; }
.osx-slot > * { min-height: 0; overflow: hidden; }
.osx-slot.is-on, .osx:not(.is-run) .osx-slot { grid-template-rows: 1fr; opacity: 1; }
.osx-sites:has(.osx-slot:not(.is-on)) { margin-bottom: -12px; }
.osx-site { --c: var(--accent); display: grid; gap: 9px; padding: 13px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s; }
.osx-site.is-on, .osx:not(.is-run) .osx-site { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: 0 16px 34px -26px color-mix(in srgb, var(--c) 70%, transparent); }
.osx-site-head { display: flex; align-items: center; gap: 10px; }
.osx-site-head > i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; flex: none; }
.osx-site-head > span:first-of-type { flex: 1; min-width: 0; }
.osx-site-head b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--ink); font-size: 14px; }
.osx-site-head .ws-tag { height: 20px; font-size: 11px; padding: 0 8px; }
.osx-site.is-on .osx-site-head .ws-tag { display: none; }
.osx-st { display: none; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; white-space: nowrap; padding: 4px 9px; border-radius: 999px; }
.osx-st svg { width: 13px; height: 13px; }
.osx-st.is-wait { color: var(--accent); background: var(--accent-50); }
.osx-st.is-wait.is-on { display: inline-flex; }
.osx-st.is-ok { color: var(--green); background: #e5f6ec; }
.osx-site.is-on .osx-st.is-ok, .osx:not(.is-run) .osx-st.is-ok { display: inline-flex; animation: ms-in .35s var(--ease); }
.osx-site.is-on .osx-st.is-wait { display: none; }
.osx-got { display: flex; flex-wrap: wrap; gap: 6px; }
.osx-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 5px; border-radius: 999px; background: var(--soft); font-size: 12.5px; font-weight: 600; color: var(--ink); opacity: .35; filter: grayscale(1); transform: translateX(-6px); transition: opacity .4s, transform .45s var(--ease), filter .4s; }
.osx-chip .ws-face { width: 18px; height: 18px; border-radius: 50%; }
.osx-chip svg { width: 14px; height: 14px; color: var(--green); margin-left: 3px; }
.osx-chip + .osx-chip { transition-delay: .12s; }
.osx-site.is-on .osx-chip, .osx:not(.is-run) .osx-chip { opacity: 1; filter: none; transform: none; }
.osx-managed { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 12px; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity .4s .25s; }
.osx-managed svg { width: 13px; height: 13px; }
.osx-site.is-on .osx-managed, .osx:not(.is-run) .osx-managed { opacity: 1; }

@media (min-width: 900px) {
    .osx { grid-template-columns: minmax(0, 400px) minmax(90px, 1fr) minmax(0, 420px); align-items: center; justify-items: stretch; }
    .osx-flow { display: block; width: 100%; height: 100%; overflow: visible; }
    .osx-sites { margin-top: 0; width: 100%; grid-template-rows: repeat(4, 1fr); }
    .osx-sites::before { display: none; }
    .osx-sites:has(.osx-slot:not(.is-on)) { margin-bottom: 0; }
    /* keep the fourth row's room on desktop so the wires stay aligned */
    .osx-slot { grid-template-rows: 1fr; transform: translateY(10px) scale(.97); transition: opacity .45s, transform .5s var(--ease); }
    .osx-slot.is-on, .osx:not(.is-run) .osx-slot { transform: none; }
}
@media (max-width: 479.98px) {
    .osx-org { padding: 14px; }
    .osx-once { display: none; }
    .osx-site-head small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .osx-spin, .osx-comet.is-on { animation: none; } .osx-chip, .osx-slot, .osx-managed { transition: none; } }
