/* «Демо»: a full-screen animated tour, always on a dark stage (a presentation, not a work page). */
.demo { --st: #151517; --st2: #232327; --tx: #f2f2f3; --mut: #a2a2aa; --or: #ff6f00; --or-hi: #ff8a2e; --ok: #3fae5a; --red: #ff5a52;
  position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; color: var(--tx); overflow: hidden; overflow: clip;
  background: radial-gradient(1200px 700px at 75% 20%, #2b2016 0%, transparent 60%), radial-gradient(900px 600px at 10% 90%, #1f1f2a 0%, transparent 60%), var(--st); }
.demo a { color: var(--or-hi); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; flex-wrap: wrap; }
html:has(.demo), body:has(.demo) { overflow: hidden; }
.demo-brand { display: block; background: #fff; border-radius: 999px; padding: 4px 12px; line-height: 0; }
.demo-brand img { height: 30px; width: auto; display: block; }
.demo-tools .theme-cycle { display: none; }  /* the stage is always dark */
.demo-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-tools .icon-btn { color: var(--tx); }
.demo-chip { display: inline-block; border: 1px solid #45454c; background: #26262a; color: var(--tx); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 14px; cursor: pointer; } .demo-chip:hover { background: #303036; text-decoration: none; }
.demo-chip.accent, .demo a.demo-chip.accent { background: var(--or); border-color: var(--or); color: #fff; }
.demo .btn.big { font-size: 17px; padding: 12px 26px; }
/* the brochure download: the one thing a visitor can take away, so it glows */
.dl-ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.demo a.demo-chip.dl { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; border-color: var(--or-hi);
  background: linear-gradient(120deg, #ff6f00, #ff9a3c); animation: dl-ping 2.6s ease-out 2s infinite; }
.demo-chip.dl .short { display: none; }
.demo .btn.dl-btn:not(.accent) { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--or); color: var(--or-hi); background: transparent; }
.demo .btn.dl-btn:not(.accent):hover { background: rgba(255,111,0,.12); text-decoration: none; }
.demo a.dl-card { display: flex; align-items: center; gap: 16px; margin: 6px 0 16px; padding: 16px 20px; border-radius: 18px; color: #fff; text-align: left;
  background: linear-gradient(120deg, #ff6f00, #ff9a3c); box-shadow: 0 10px 30px rgba(255,111,0,.35); animation: dl-ping 2.6s ease-out 1s infinite; }
.demo a.dl-card:hover { text-decoration: none; transform: translateY(-2px); }
.dl-card .dl-ic { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(0,0,0,.18); box-sizing: content-box; }
.dl-card b { display: block; font-size: 19px; } .dl-card small { display: block; font-size: 14px; color: #fff3e8; margin-top: 2px; }
@keyframes dl-ping { 0% { box-shadow: 0 0 0 0 rgba(255,138,46,.65); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255,138,46,0); } }
.demo .btn:not(.accent) { background: #2a2a2f; border-color: #45454c; color: var(--tx); }
.demo .muted { color: var(--mut); }

.demo-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; overflow: clip; }  /* clip: an address like #live must not scroll the stage sideways */
.scene { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 28px;
  padding: 8px clamp(16px, 5vw, 64px); opacity: 0; visibility: hidden; transform: translateX(40px);
  transition: opacity .55s ease, transform .55s ease, visibility 0s .55s; overflow-x: hidden; overflow-y: auto; }
.scene.on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .55s ease; }
.scene.back:not(.on) { transform: translateX(-40px); }  /* going back: the scene comes in from the left */
.art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.say { max-width: 520px; }
.say h2 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.15; margin: 4px 0 14px; color: #fff; font-weight: 700; }
.say p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; margin: 0 0 12px; }
.say p.small { font-size: 14px; }
.kicker { color: var(--or-hi); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px !important; margin: 0 !important; }
.scene.on .say > * { animation: dm-rise .6s ease-out both; }
.scene.on .say > *:nth-child(2) { animation-delay: .12s; } .scene.on .say > *:nth-child(3) { animation-delay: .24s; }
.scene.on .say > *:nth-child(4) { animation-delay: .36s; } .scene.on .say > *:nth-child(5) { animation-delay: .48s; }
@keyframes dm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hint { color: var(--mut); font-size: 14px; margin: 10px 0 0; text-align: center; }
.demo-mark { position: absolute; right: 10px; bottom: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* intro / end */
.scene.intro { grid-template-columns: 1fr; text-align: center; justify-items: center; align-content: center; gap: 10px; }
.scene.intro .say { margin: 0 auto; }
.intro .logo-anim { width: min(520px, 80vw); max-width: none; background: #fff; border-radius: 28px; padding: 18px 26px 6px; }
.intro .la-tag { display: none; }
.slogan { font-size: clamp(22px, 3.4vw, 38px); font-weight: 800; margin: 18px 0 0; color: #fff; letter-spacing: -.01em; }
.slogan.big { font-size: clamp(30px, 5.4vw, 64px); }
.scene.on .slogan { animation: dm-rise .8s ease-out 1.6s both; }
#end.on .slogan { animation-delay: 0s; }
.recap { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 760px; }
.recap li { background: #2a2a2f; border: 1px solid #3c3c42; border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.scene.on .recap li { animation: dm-pop .5s cubic-bezier(.3,1.6,.6,1) both; }
.recap li:nth-child(n) { animation-delay: calc(.3s + var(--n, 0) * .08s); }
.center-row { justify-content: center; }

/* shared SVG paint */
.pic { width: 100%; max-width: 640px; height: auto; overflow: visible; }
.pic text { fill: var(--tx); font: 600 16px system-ui, sans-serif; }
.pic .cap { font-size: 20px; } .pic .cap-s { font-size: 14px; fill: var(--mut); } .pic .red { fill: var(--red); }
.ln { stroke: #8a8a92; fill: none; stroke-linecap: round; } .ln-or { stroke: var(--or); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ln-mut { stroke: #55555c; fill: none; } .ln-w { stroke: #fff; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.w3 { stroke-width: 3; } .w4 { stroke-width: 4; } .w5 { stroke-width: 5; } .w6 { stroke-width: 6; } .w8 { stroke-width: 8; }
.fill-ink { fill: #3a3a40; } .fill-or { fill: var(--or); } .fill-or-soft { fill: #5a3214; } .fill-card { fill: #26262b; } .fill-mut { fill: #5d5d64; }
.fill-ok { fill: var(--ok); } .stroke-ink { stroke: #6a6a72; stroke-width: 3; } .stroke-or { stroke: var(--or); stroke-width: 2; }
.halo { fill: rgba(255,111,0,.08); stroke: rgba(255,111,0,.35); stroke-width: 2; }
.beam { fill: rgba(255, 220, 160, .14); }
.dev { fill: #3a3a40; } .card-s { fill: #26262b; stroke: #45454c; stroke-width: 2; }
.pill { fill: #2a2a2f; stroke: var(--or); stroke-width: 2; } .pic .pill-t { font-size: 16px; }
.wire { fill: none; stroke: var(--or); stroke-width: 4; stroke-dasharray: 10 12; stroke-linecap: round; opacity: .9; }
.scene.on .wire { animation: dm-flow 1s linear infinite; }
@keyframes dm-flow { to { stroke-dashoffset: -22; } }
.scene.on .pop { animation: dm-pop .6s cubic-bezier(.3,1.6,.6,1) both; animation-delay: calc(.2s + var(--d) * .25s); transform-box: fill-box; transform-origin: center; }
@keyframes dm-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* device */
.screen { fill: #f4f4f5; }
.dm-tile rect { fill: #fff; stroke: #e1e1e4; stroke-width: 2; } .dm-tile text { fill: #414143; font-size: 15px; }
.scene.on .dm-tile { animation: dm-pop .5s cubic-bezier(.3,1.6,.6,1) both; animation-delay: calc(.2s + var(--d) * .12s); transform-box: fill-box; transform-origin: center; }
.dot-live { fill: #e53935; } .ring { fill: none; stroke: var(--or); stroke-width: 3; } .sun { fill: #ffc24a; } .dot-ok { fill: var(--ok); }
.scene.on .dot-live { animation: dm-blink 1.2s ease-in-out 2s infinite; }
@keyframes dm-blink { 50% { opacity: .35; } }
.tap { fill: rgba(255,111,0,.45); stroke: var(--or); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scene.on .tap { animation: dm-tap 2.4s ease-out 1.6s infinite; }
@keyframes dm-tap { 0% { opacity: 0; transform: scale(.4); } 15% { opacity: 1; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(2.6); } }

/* broadcast */
.dm-player { position: relative; width: 100%; max-width: 640px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #000; }
.video { display: block; width: 100%; }
.scene.on .blob1 { animation: dm-drift 6s ease-in-out infinite alternate; } .scene.on .blob2 { animation: dm-drift 7s ease-in-out infinite alternate-reverse; }
@keyframes dm-drift { to { transform: translate(18px, -10px) scale(1.06); } }
.tool1, .tool2 { stroke: #d9dde2; stroke-width: 12; stroke-linecap: round; }
.scene.on .tool1 { animation: dm-tool 3s ease-in-out infinite alternate; } .scene.on .tool2 { animation: dm-tool 3.6s ease-in-out infinite alternate-reverse; }
@keyframes dm-tool { to { transform: translate(14px, -8px); } }
.live-badge { position: absolute; left: 12px; top: 12px; background: #e53935; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 6px; opacity: 0; }
.live-badge b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; }
.scene.on .live-badge { animation: dm-pop .4s ease-out .5s both; } .scene.on .live-badge b { animation: dm-blink 1s infinite; }
.viewers { position: absolute; right: 12px; top: 12px; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 14px; }
.dm-chat { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; max-width: 70%; }
/* two-way voice: a viewer speaks to the operating room straight from the browser */
.talk { position: absolute; right: 12px; top: 46px; display: flex; align-items: center; gap: 3px; background: rgba(46,158,62,.9); color: #fff;
  border-radius: 999px; padding: 4px 12px 4px 10px; font-size: 13px; font-weight: 600; opacity: 0; }
.talk i { width: 3px; height: 12px; background: #fff; border-radius: 2px; transform-origin: center; }
.talk i:last-of-type { margin-right: 6px; }
.scene.on .talk { animation: dm-rise .4s ease-out 6.6s both; }
.scene.on .talk i { animation: dm-wave .7s ease-in-out infinite; } .talk i:nth-child(2) { animation-delay: .15s !important; }
.talk i:nth-child(3) { animation-delay: .3s !important; } .talk i:nth-child(4) { animation-delay: .45s !important; }
@keyframes dm-wave { 50% { transform: scaleY(.3); } }
.dm-chat li { background: rgba(20,20,22,.78); color: #fff; padding: 6px 12px; border-radius: 12px; font-size: 14px; opacity: 0; backdrop-filter: blur(4px); }
.dm-chat b { color: var(--or-hi); font-weight: 600; margin-right: 4px; }
.scene.on .dm-chat li { animation: dm-rise .5s ease-out both; animation-delay: calc(2s + var(--d) * 1.6s); }

/* co-op rooms */
.grid4 { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 620px; aspect-ratio: 16 / 10; }
.cam { position: relative; border-radius: 12px; overflow: hidden; border: 3px solid transparent; background-size: 200% 200%; }
.cam span { position: absolute; left: 8px; bottom: 6px; font-size: 13px; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 6px; }
.c1 { background-image: radial-gradient(circle at 40% 50%, #f19c84, #8e2e22 60%, #1a0606); }
.c2 { background-image: radial-gradient(circle at 60% 40%, #f5c6a8, #b3523a 55%, #200a06); }
.c3 { background-image: linear-gradient(160deg, #3c4a5e, #1b2230); }
.c3::after { content: ""; position: absolute; left: 38%; top: 22%; width: 24%; height: 60%; border-radius: 50% 50% 10px 10px; background: #8d9bb0; }
.c4 { background-image: radial-gradient(circle at 50% 60%, #e7a07c, #7a2c1c 60%, #160604); }
.scene.on .cam { animation: dm-pop .5s ease-out both, dm-pan 8s ease-in-out infinite alternate; }
.scene.on .c2 { animation-delay: .15s, 0s; } .scene.on .c3 { animation-delay: .3s, 0s; } .scene.on .c4 { animation-delay: .45s, 0s; }
@keyframes dm-pan { to { background-position: 100% 100%; } }
.scene.on .c1 { animation-name: dm-pop, dm-pan, dm-spot; animation-duration: .5s, 8s, 8s; animation-iteration-count: 1, infinite, infinite; animation-delay: 0s, 0s, 1s; }
.scene.on .c3 { animation-name: dm-pop, dm-pan, dm-spot; animation-duration: .5s, 8s, 8s; animation-iteration-count: 1, infinite, infinite; animation-delay: .3s, 0s, 5s; }
@keyframes dm-spot { 0%, 45% { border-color: var(--or); box-shadow: 0 0 0 4px rgba(255,111,0,.3); } 50%, 100% { border-color: transparent; box-shadow: none; } }
.dm-director { position: absolute; left: 0; right: 0; top: calc(50% - 18px); width: max-content; max-width: 90%; margin: 0 auto; text-align: center; background: var(--or); color: #fff; font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.4); opacity: 0; }
.scene.on .dm-director { animation: dm-rise .5s ease-out 1.2s both; }

/* telegram */
.phone { width: 280px; max-width: 80vw; min-height: 380px; border-radius: 36px; border: 10px solid #3a3a40; background: #0e1621; padding: 0 12px 16px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.phone-top { margin: 0 -12px 6px; padding: 14px; background: #17212b; text-align: center; font-weight: 600; border-radius: 26px 26px 0 0; }
.bubble { background: #182533; color: #fff; padding: 10px 12px; border-radius: 14px 14px 14px 4px; font-size: 14px; max-width: 88%; opacity: 0; }
.bubble.me { background: #2b5278; align-self: flex-end; border-radius: 14px 14px 4px 14px; }
.bbtn { display: block; margin-top: 8px; text-align: center; background: #2f6ea5; border-radius: 8px; padding: 6px; font-weight: 600; }
.scene.on .bubble { animation: dm-rise .5s ease-out both; animation-delay: calc(.6s + var(--d) * 1.4s); }

/* vitals */
.monitor { position: relative; width: 100%; max-width: 600px; background: #050607; border: 10px solid #3a3a40; border-radius: 18px; padding: 10px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ecg { width: 100%; height: auto; }
.ecg-line { fill: none; stroke: #33e07a; stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 3px #33e07a); }
.vals { display: flex; flex-direction: column; gap: 6px; }
.v { position: relative; padding: 4px 8px; border-left: 3px solid; }
.v small { display: block; font-size: 12px; opacity: .8; } .v b { font: 700 clamp(26px, 3.4vw, 40px)/1 system-ui, sans-serif; } .v em { font-style: normal; margin-left: 2px; }
.v.hr { color: #33e07a; } .v.sp { color: #36c5f0; } .v.bp { color: #ffd34a; } .v.bp b { font-size: clamp(20px, 2.4vw, 28px); }
.v i { position: absolute; right: 8px; top: 6px; font-style: normal; }
.scene.on .v.hr i { animation: dm-beat .83s ease-in-out infinite; }
@keyframes dm-beat { 15% { transform: scale(1.35); } 30% { transform: none; } }
.cable { width: 100%; max-width: 600px; height: 40px; }
.cap-row { display: flex; gap: 10px; justify-content: center; color: var(--mut); font-size: 14px; margin: 0; flex-wrap: wrap; text-align: center; }

/* archive */
.arch { width: 100%; max-width: 600px; }
.arch-video { position: relative; aspect-ratio: 16 / 8; border-radius: 12px 12px 0 0; overflow: hidden;
  background: radial-gradient(circle at var(--x, 40%) 50%, #f3a891, #a33c2c 55%, #1a0505); transition: background .3s; }
.arch-video .t { position: absolute; left: 10px; top: 8px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; font: 600 14px ui-monospace, monospace; }
.arch-chart { position: relative; height: 130px; background: #1c1c20; border: 1px solid #3a3a40; border-top: 0; border-radius: 0 0 12px 12px; cursor: ew-resize; touch-action: none; outline: none; }
.arch-chart:focus-visible { box-shadow: 0 0 0 3px var(--or); }
.arch-chart svg { position: absolute; inset: 6px 0; width: 100%; height: calc(100% - 12px); }
.band { fill: rgba(255, 211, 74, .18); stroke: #ffd34a; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hrl { fill: none; stroke: #33e07a; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.playhead { position: absolute; top: -100%; bottom: 0; left: 0; width: 2px; background: var(--or); box-shadow: 0 0 8px var(--or); pointer-events: none; }
.readout { position: absolute; right: 8px; top: 6px; font-size: 13px; display: flex; gap: 10px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; }
.readout i { font-style: normal; }
.readout b:first-child { color: #33e07a; } .readout b:last-child { color: #ffd34a; }

/* light & table */
.lamp-beam { transition: opacity .25s; }
.lamp-glow { fill: #fff6d6; filter: drop-shadow(0 0 18px #ffd77a); transition: opacity .25s; }
.table { transform-box: view-box; transform-origin: 320px 260px; transition: transform .8s cubic-bezier(.4,1.4,.6,1); }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.ctl label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ctl input[type=range] { width: min(260px, 60vw); accent-color: var(--or); background: none; border: 0; }
.ctl .row { justify-content: center; }

/* routing */
.router { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(28px, .6fr) minmax(0, 1fr); align-items: center; width: 100%; max-width: 620px; }
.router .col.src { grid-column: 1; } .router .col.dst { grid-column: 3; }
.router .col { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.router button { font: inherit; font-size: 15px; text-align: left; background: #26262b; color: var(--tx); border: 2px solid #45454c; border-radius: 12px;
  padding: 12px 12px; cursor: pointer; overflow-wrap: anywhere; transition: border-color .2s, background .2s, transform .2s; }
.router button:hover { border-color: #6a6a72; } .router button.sel { border-color: var(--or); background: #3a2414; transform: scale(1.03); }
.router button small { display: block; color: var(--or-hi); font-size: 12px; min-height: 1em; }
.router .dst button.flash { animation: dm-flash .6s ease-out; }
@keyframes dm-flash { 30% { background: var(--or); } }
.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.links path { fill: none; stroke: var(--or); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 6 6; animation: dm-flow .8s linear infinite; }

/* web access */
.browser { width: 100%; max-width: 600px; border-radius: 12px; overflow: hidden; background: #f4f4f5; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.b-bar { display: flex; align-items: center; gap: 6px; background: #dedee2; padding: 10px 12px; }
.b-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c4c4ca; } .b-bar i:first-child { background: #ff5f57; }
.addr { flex: 1; margin-left: 8px; background: #fff; color: #414143; border-radius: 999px; padding: 6px 14px; font: 14px ui-monospace, monospace; white-space: nowrap; overflow: hidden; }
.addr b { font-weight: 600; color: #e25f00; }
.b-body { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px; border-top: 3px solid var(--or); }
.mini { aspect-ratio: 1; background: #fff; border: 1px solid #e1e1e4; border-radius: 12px; color: #414143; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px; font-size: 13px; font-weight: 600; text-align: center; position: relative; }
.mini::before { content: ""; position: absolute; top: 24%; left: 50%; width: 30%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 3px solid var(--or); }
.mini.t1::before { background: #e53935; border-color: #e53935; }
.scene.on .mini { animation: dm-pop .5s cubic-bezier(.3,1.6,.6,1) both; } .scene.on .t1 { animation-delay: 1.6s; } .scene.on .t2 { animation-delay: 1.75s; }
.scene.on .t3 { animation-delay: 1.9s; } .scene.on .t4 { animation-delay: 2.05s; }

/* privacy */
.cloud { fill: #2a2a30; stroke: #6a6a72; stroke-width: 3; } .pic .cloud-t { fill: var(--or-hi); font-size: 18px; }
.lock { transform-box: fill-box; transform-origin: center; } .scene.on #privacy .lock, #privacy.on .lock { animation: dm-pop .5s cubic-bezier(.3,1.6,.6,1) 2.2s both; }
.bounce-path { stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 6; fill: none; opacity: .6; }
#privacy.on .card-up { animation: dm-bounce 2.6s ease-in-out .8s infinite; }
@keyframes dm-bounce { 0% { transform: none; } 40% { transform: translateY(-130px); } 50% { transform: translateY(-120px) rotate(-4deg); } 60% { transform: translateY(-130px) rotate(4deg); } 100% { transform: none; } }
#privacy.on .ok-up { animation: dm-up 2.6s ease-in-out .8s infinite; }
@keyframes dm-up { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 60% { transform: translate(110px, -80px); opacity: 1; } 80%, 100% { transform: translate(120px, -86px); opacity: 0; } }

/* coming soon */
.soon-badge { position: absolute; top: -6px; right: 4%; background: var(--or); color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  font-size: 13px; padding: 6px 12px; border-radius: 999px; transform: rotate(6deg); box-shadow: 0 6px 18px rgba(255,111,0,.35); }
.wards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 600px; padding-top: 22px; }
.bed { background: #0a0c0e; border: 2px solid #3a3a40; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.bed span { font-size: 12px; color: var(--mut); } .bed b { color: #33e07a; font-size: 26px; line-height: 1; }
.bed svg { width: 100%; height: 16px; } .bed path { fill: none; stroke: #33e07a; stroke-width: 1.5; }
.scene.on .bed { animation: dm-pop .5s cubic-bezier(.3,1.6,.6,1) both; animation-delay: calc(.2s + var(--d) * .1s); }
.scene.on .bed:nth-child(4) { animation-name: dm-pop, dm-alarm; animation-duration: .5s, 1.2s; animation-iteration-count: 1, infinite; animation-delay: .5s, 2s; }
.scene.on .bed:nth-child(4) b { color: #ffd34a; }
@keyframes dm-alarm { 50% { border-color: #ffd34a; box-shadow: 0 0 16px rgba(255,211,74,.4); } }
.assist { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 22px; }
.puck { width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #4a4a52, #26262b 70%); position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.assist-3d { width: min(440px, 80vw); height: min(300px, 34vh); display: none; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.assist-3d canvas { display: block; width: 100%; height: 100%; }
.has3d .assist-3d { display: block; } .has3d .puck { display: none; }
.leds { position: absolute; inset: 0; }
.leds i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #3a2414;
  transform: rotate(calc(var(--i) * 30deg)) translateY(-66px); }
.scene.on .leds i { animation: dm-led 1.2s linear infinite; animation-delay: calc(var(--i) * .1s); }
@keyframes dm-led { 0%, 30% { background: var(--or); box-shadow: 0 0 14px var(--or); } 60%, 100% { background: #3a2414; box-shadow: none; } }
.say-b { margin: 0; padding: 10px 16px; border-radius: 16px; font-size: 16px; opacity: 0; max-width: 92%; }
.say-b.you { background: #2a2a2f; } .say-b.bot { background: #3a2414; color: #ffd2b0; }
.scene.on .say-b { animation: dm-rise .5s ease-out both; animation-delay: calc(.8s + var(--d) * 1.8s); }

/* navigation */
.demo-nav { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px 6px; }
.nav-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #45454c; background: #26262a; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; } .nav-btn:hover { background: #33333a; }
.nav-btn.play { font-size: 15px; background: var(--or); border-color: var(--or); } .nav-btn:disabled { opacity: .35; cursor: default; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 60vw; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #4a4a52; cursor: pointer; transition: all .3s; }
.dots button.on { background: var(--or); width: 26px; border-radius: 6px; }
.bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #2a2a2f; } .bar i { display: block; height: 100%; width: 0; background: var(--or); }
.demo-note { margin: 0; padding: 0 16px 10px; text-align: center; font-size: 12px; color: var(--mut); }
.toast { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); background: #fff; color: #222; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.4); z-index: 2; }

/* phone and tablet portrait: picture on top, words below */
@media (max-width: 820px) {
  .scene { grid-template-columns: 1fr; align-content: start; gap: 14px; padding-top: 4px; }
  .scene .art { max-height: none; }
  .say { max-width: none; } .say h2 { margin-bottom: 8px; }
  .pic { max-height: 40vh; }
  .router button { font-size: 13px; padding: 9px 8px; }
  .wards { grid-template-columns: repeat(4, 1fr); gap: 6px; } .bed b { font-size: 20px; }
  .puck { width: 130px; height: 130px; } .leds i { transform: rotate(calc(var(--i) * 30deg)) translateY(-50px); width: 11px; height: 11px; margin: -5.5px; }
  .phone { min-height: 0; }
  .demo-bar { padding: 8px 12px; } .demo-chip { padding: 6px 11px; font-size: 13px; }
  .demo-tools .flags img { width: 22px; }
  .dots { max-width: none; flex-wrap: nowrap; gap: 4px; } .dots button { width: 7px; height: 7px; } .dots button.on { width: 16px; }
  .nav-btn { width: 42px; height: 42px; flex: 0 0 auto; } .demo-nav { gap: 8px; }
  .dots { min-width: 0; flex: 1 1 auto; overflow: hidden; }   /* 28 dots never push «‹» «›» off a phone */
  .dm-chat li { font-size: 12px; padding: 4px 9px; } .dm-director { font-size: 12px; padding: 6px 10px; }
}
@media (max-width: 420px) { .demo-bar [data-share] { display: none; } .demo-chip.dl .long { display: none; } .demo-chip.dl .short { display: inline; } .b-body { gap: 6px; padding: 12px; } .mini { font-size: 11px; } }

@media (prefers-reduced-motion: reduce) {
  .demo a.demo-chip.dl, .demo a.dl-card { animation: none; }
  .scene, .scene.on { transition: opacity .2s; transform: none; }
  .demo *, .demo *::before, .demo *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}

/* AI endoscopy: a finding is outlined on the live picture, as a hint */
.ai-box { fill: none; stroke: #ffd34a; stroke-width: 4; opacity: 0; }
.scene.on .ai-box { animation: dm-ai 2.4s ease-out 1.2s infinite; }
@keyframes dm-ai { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 30% { stroke-width: 7; } 100% { opacity: 0; } }
.ai-tag { position: absolute; left: 58.5%; top: 42%; background: #ffd34a; color: #222; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 6px; opacity: 0; }
.scene.on .ai-tag { animation: dm-rise .4s ease-out 1.5s both; }
.ai-count { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.6); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 14px; }
.ai-note { position: absolute; left: 12px; bottom: 10px; background: rgba(0,0,0,.6); color: #ffd34a; border-radius: 6px; padding: 3px 10px; font-size: 12px; }

/* AI endoscopy is live: green like polyps on the device */
.ai-box { stroke: #3ddc84; }
.ai-tag { background: #3ddc84; }

/* AI training on the platform */
.browser.train { max-width: 620px; }
.browser.emu { max-width: 640px; } .browser.emu img { display: block; width: 100%; height: auto; }
.t-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: center; padding: 18px; border-top: 3px solid var(--or); }
.t-frame { width: 100%; height: auto; border-radius: 8px; display: block; }
.t-draw { fill: none; stroke: #3ddc84; stroke-width: 3; stroke-dasharray: 176; stroke-dashoffset: 176; }
.scene.on .t-draw { animation: dm-draw 1.4s ease-out 1s forwards; }
@keyframes dm-draw { to { stroke-dashoffset: 0; } }
.t-cursor { fill: #fff; stroke: #222; stroke-width: 1.5; }
.scene.on .t-cursor { animation: dm-trace 1.4s ease-out 1s both; }
@keyframes dm-trace { 0% { transform: translate(-48px, -40px); } 50% { transform: translate(0, -40px); } 100% { transform: none; } }
.t-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.t-steps li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e1e1e4; border-radius: 10px; padding: 10px 12px; color: #414143; font-size: 14px; font-weight: 600; }
.t-steps b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--or); color: #fff; display: grid; place-items: center; font-size: 13px; }
.scene.on .t-steps li { animation: dm-rise .5s ease-out both; animation-delay: calc(2.4s + var(--d) * .6s); }
@media (max-width: 820px) {
  .t-body { grid-template-columns: 1fr; padding: 10px; gap: 8px; }
  .t-frame { width: auto; height: 120px; margin: 0 auto; }
  .t-steps { gap: 6px; }
  .t-steps li { padding: 5px 10px; font-size: 13px; }
}

/* DICOM viewer: linked crosshair and a turning volume */
.dm-xh { stroke: var(--or); stroke-width: 2; stroke-dasharray: 6 4; }
.scene.on .dm-xh-v { animation: dm-xh 4s ease-in-out .6s infinite alternate; }
@keyframes dm-xh { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
.dm-vol { transform-box: fill-box; transform-origin: center; }
.scene.on .dm-vol { animation: dm-turn 5s linear infinite; }
@keyframes dm-turn { 0%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.35); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(-.35); } }
.dm-3d { position: absolute; right: 12px; bottom: 10px; background: var(--or); color: #fff; font-weight: 700; font-size: 13px; padding: 2px 9px; border-radius: 6px; }

/* operation timer in the device's top bar */
.dm-optimer rect { fill: #fff; stroke: var(--or); stroke-width: 2; }
.dm-optimer text { fill: var(--or); font: 700 11px ui-monospace, monospace; }

/* second monitor (add-on «Вывод видео») */
.dm-out { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(220px, 2fr); align-items: center; gap: 10px; width: 100%; max-width: 640px; }
.dm-out-touch { background: #f4f4f5; border: 10px solid #2a2a30; border-radius: 16px; padding: 10px; display: grid; gap: 6px; }
.dm-out-h { margin: 0 0 2px; color: #414143; font-weight: 700; font-size: 13px; }
.dm-out-touch button { font: inherit; font-size: 12px; font-weight: 600; text-align: left; color: #414143; background: #fff; border: 1px solid #e1e1e4; border-radius: 8px; padding: 7px 8px; cursor: pointer; transition: background .25s, color .25s; }
.dm-out-touch button.on { background: var(--or); border-color: var(--or); color: #fff; }
.dm-out-cable { font: 700 11px ui-monospace, monospace; color: var(--or-hi); padding: 4px 6px; border-top: 3px dashed var(--or); }
.dm-out-mon { position: relative; background: #2a2a30; border-radius: 12px; padding: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dm-out-mon::after { content: ""; position: absolute; left: 40%; right: 40%; bottom: -16px; height: 16px; background: #2a2a30; border-radius: 0 0 6px 6px; }
.dm-out-scr { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; display: flex; gap: 4px; }
.dm-out-scr .pane { flex: 1; background: radial-gradient(circle at 50% 45%, #f0a48c 0, #b8503c 40%, #3a0d0a 75%); transition: flex .4s; }
.dm-out-scr .p2 { background: radial-gradient(circle at 50% 50%, #9fb7c9 0, #4a6478 45%, #0f1a22 80%); flex: 0; }
.dm-out-scr .vit { display: none; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; font-size: 13px; }
.dm-out-scr .vit b { color: #3ddc84; font-family: ui-monospace, monospace; } .dm-out-scr .vit b:nth-child(2) { color: #5cc8ff; } .dm-out-scr .vit b:nth-child(3) { color: #ffd34a; }
.dm-out-scr .box { display: none; position: absolute; left: 52%; top: 40%; width: 18%; height: 26%; border: 3px solid #3ddc84; border-radius: 4px; }
.dm-out-scr[data-mode="both"] .p2 { flex: 1; }
.dm-out-scr[data-mode="vitals"] .vit { display: flex; }
.dm-out-scr[data-mode="ai"] .box { display: block; }
.dm-out-mon .marks { position: absolute; right: 16px; top: 16px; display: flex; gap: 6px; }
.dm-out-mon .marks em { font-style: normal; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.6); color: #fff; padding: 2px 6px; border-radius: 4px; }
.dm-out-mon .rec { color: #ff6b6b !important; }
@media (max-width: 820px) {
  .dm-out { grid-template-columns: 1fr; gap: 6px; }
  .dm-out-touch { grid-template-columns: 1fr 1fr; border-width: 6px; padding: 6px; order: 2; }
  .dm-out-h { grid-column: 1 / -1; display: none; }
  .dm-out-touch button { padding: 5px 6px; font-size: 11px; }
  .dm-out-cable { display: none; }
  .dm-out-mon { padding: 6px; } .dm-out-mon::after { display: none; }
}

/* music add-on: phone → speaker, music ducks while someone speaks (6 s loop) */
.dm-music { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; max-width: 600px; }
.dm-phone { width: 170px; flex: none; background: #f4f4f5; border: 8px solid #2a2a30; border-radius: 26px; padding: 14px 12px; display: grid; gap: 10px; justify-items: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dm-phone .src { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.dm-phone .src b { font-size: 10px; color: #414143; background: #fff; border: 1px solid #e1e1e4; border-radius: 999px; padding: 2px 7px; }
.dm-phone .src b:first-child { background: var(--or); border-color: var(--or); color: #fff; }
.dm-phone .cover { width: 110px; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: 44px; color: #fff; background: linear-gradient(135deg, #ff8a2e, #9b51e0); }
.dm-phone .song { color: #414143; font-size: 13px; font-weight: 700; text-align: center; }
.dm-phone .prog { width: 100%; height: 4px; border-radius: 2px; background: #e1e1e4; overflow: hidden; } .dm-phone .prog i { display: block; height: 100%; width: 0; background: var(--or); }
.scene.on .dm-phone .prog i { animation: dm-prog 10s linear both; }
@keyframes dm-prog { to { width: 100%; } }
.dm-notes { position: relative; width: 70px; height: 120px; }
.dm-notes i { position: absolute; left: 0; top: 50%; font-style: normal; font-size: 26px; color: var(--or-hi); opacity: 0; }
.scene.on .dm-notes i { animation: dm-note 2.4s ease-in-out infinite; } .scene.on .dm-notes i:nth-child(2) { animation-delay: .8s; } .scene.on .dm-notes i:nth-child(3) { animation-delay: 1.6s; }
@keyframes dm-note { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(60px, -30px); opacity: 0; } }
.dm-spk { position: relative; width: 130px; flex: none; display: grid; justify-items: center; gap: 10px; }
.dm-spk svg { width: 110px; } .spk-cone { fill: #3a3a42; stroke: #55555e; stroke-width: 3; } .spk-dot { fill: #6a6a72; }
.dm-spk .eq { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.dm-spk .eq i { width: 8px; height: 100%; border-radius: 2px; background: var(--ok); transform-origin: bottom; }
.scene.on .dm-spk .eq { animation: dm-duck 6s ease-in-out infinite; }
.scene.on .dm-spk .eq i { animation: dm-eq .5s ease-in-out infinite alternate; } .scene.on .dm-spk .eq i:nth-child(2n) { animation-duration: .7s; } .scene.on .dm-spk .eq i:nth-child(3n) { animation-duration: .4s; }
@keyframes dm-eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes dm-duck { 0%, 45%, 95%, 100% { transform: scaleY(1); } 55%, 85% { transform: scaleY(.3); } }
.dm-spk .duck { position: absolute; bottom: -34px; white-space: nowrap; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.65); border: 1px solid var(--or); border-radius: 999px; padding: 3px 10px; opacity: 0; }
.scene.on .dm-spk .duck { animation: dm-duckpill 6s ease-in-out infinite; }
@keyframes dm-duckpill { 0%, 45%, 95%, 100% { opacity: 0; } 52%, 88% { opacity: 1; } }
@media (max-width: 820px) {
  .dm-music { gap: 8px; }
  .dm-phone { width: 130px; padding: 10px 8px; gap: 6px; border-width: 6px; } .dm-phone .cover { width: 70px; font-size: 30px; }
  .dm-notes { width: 40px; height: 80px; } .dm-spk { width: 100px; } .dm-spk svg { width: 80px; }
}

/* room engineering add-on: a scene changes the whole room */
.dm-room { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: linear-gradient(#2c3036, #1d2024 70%, #15171a); box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: background .6s; }
.dm-room .lamp { position: absolute; top: 6%; width: 18%; height: 5%; border-radius: 4px; background: #555; transition: background .6s, box-shadow .6s; }
.dm-room .l1 { left: 12%; } .dm-room .l2 { left: 41%; } .dm-room .l3 { left: 70%; }
.dm-room .glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0, rgba(255,250,235,.55), transparent 70%); opacity: 0; transition: opacity .6s; }
.dm-room .greenlight { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 15%, rgba(61,220,132,.35), transparent 65%); opacity: 0; transition: opacity .6s; }
.dm-room .win { position: absolute; left: 8%; top: 28%; width: 26%; height: 40%; border: 3px solid #555; border-radius: 4px; background: linear-gradient(#7fb6e0, #c8e2f2); overflow: hidden; }
.dm-room .blind { position: absolute; left: 0; right: 0; top: 0; height: 0; background: repeating-linear-gradient(#d9d4c7 0 6px, #bdb7a8 6px 8px); transition: height .7s; }
.dm-room .door { position: absolute; right: 10%; bottom: 0; width: 22%; height: 62%; background: #3a3f46; border: 3px solid #555; border-bottom: 0; border-radius: 4px 4px 0 0; }
.dm-room .sign { position: absolute; left: -45%; right: -45%; bottom: 104%; text-align: center; font-size: 11px; color: #555; background: #222; border-radius: 4px; padding: 3px 2px; transition: color .4s, background .4s, box-shadow .4s; line-height: 1.2; }
.dm-room .clima { position: absolute; left: 8%; bottom: 8%; font: 700 12px ui-monospace, monospace; color: #fff; background: rgba(0,0,0,.5); border-radius: 4px; padding: 3px 7px; }
.dm-room[data-scene="prep"] .lamp, .dm-room[data-scene="clean"] .lamp, .dm-room[data-scene="op"] .lamp { background: #fff8e6; box-shadow: 0 0 18px #fff3c8; }
.dm-room[data-scene="prep"] .glow, .dm-room[data-scene="clean"] .glow { opacity: 1; } .dm-room[data-scene="op"] .glow { opacity: .75; }
.dm-room[data-scene="endo"] { background: linear-gradient(#15181b, #0f1113 70%, #0b0c0e); }
.dm-room[data-scene="endo"] .greenlight { opacity: 1; } .dm-room[data-scene="endo"] .lamp { background: #6a5f45; }
.dm-room[data-scene="op"] .blind, .dm-room[data-scene="endo"] .blind { height: 100%; }
.dm-room[data-scene="op"] .sign, .dm-room[data-scene="endo"] .sign { color: #fff; background: #d33; box-shadow: 0 0 14px rgba(255,80,80,.6); }
@media (max-width: 820px) { .dm-bld .dm-out-touch { order: 2; } .dm-room .sign { font-size: 9px; } }

/* endoscopy camera + insufflator */
.dm-ecam .lvl { display: inline-block; vertical-align: middle; width: 40px; height: 6px; margin-left: 4px; background: #e1e1e4; border-radius: 3px; overflow: hidden; }
.dm-ecam .lvl i { display: block; height: 100%; width: 70%; background: currentColor; transition: width .4s; }
.dm-ecam .insuf { margin-top: 4px; padding: 6px 8px; background: #fff; border: 1px solid #e1e1e4; border-radius: 8px; display: grid; gap: 2px; font-size: 11px; color: #414143; }
.dm-ecam .insuf b { font: 700 13px ui-monospace, monospace; color: #1a8a4a; }
.dm-ecam-scr .p1 { filter: brightness(var(--lt, .84)); transition: filter .5s; }
.dm-ecam-scr[data-ec="wb"] .p1 { animation: dm-wb 1.2s; }
@keyframes dm-wb { 0% { filter: brightness(var(--lt, .84)) sepia(.6) hue-rotate(160deg); } 100% { filter: brightness(var(--lt, .84)); } }
.dm-ecam-scr .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.dm-ecam-scr[data-ec="snap"] .flash { animation: dm-flash .6s; }
@keyframes dm-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.dm-ecam-scr .tag { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.65); padding: 3px 8px; border-radius: 4px; opacity: 0; transition: opacity .3s; }
.dm-ecam-scr[data-ec="snap"] .saved, .dm-ecam-scr.frozen .frz { opacity: 1; }
.dm-ecam-scr.frozen .p1 { outline: 3px solid #5cc8ff; outline-offset: -3px; }
@media (max-width: 820px) { .dm-ecam .dm-out-mon { width: 52%; justify-self: center; } .dm-ecam .dm-out-touch { order: 2; grid-template-columns: 1fr 1fr; } .dm-ecam .dm-out-h, .dm-ecam .insuf { grid-column: 1 / -1; } .dm-ecam .insuf { grid-template-columns: 1fr 1fr; } .dm-ecam .insuf .dm-out-h { margin: 0; } }

/* RFID badge login */
.dm-rfid { display: grid; grid-template-columns: minmax(200px, 1.4fr) 1fr; grid-template-rows: auto auto; gap: 14px 20px; align-items: center; width: 100%; max-width: 560px; }
.dm-rfid-scr { grid-row: span 2; background: #f4f4f5; border: 10px solid #2a2a30; border-radius: 16px; padding: 12px; display: grid; gap: 8px; }
.dm-rfid .fld { position: relative; background: #fff; border: 1px solid #e1e1e4; border-radius: 8px; padding: 6px 10px; color: #414143; transition: border-color .3s, background .3s; }
.dm-rfid .fld small { display: block; font-size: 11px; color: #8a8a90; }
.dm-rfid .fld b, .dm-rfid .fld em { font-size: 14px; font-weight: 700; font-style: normal; }
.dm-rfid .fld em { display: none; } .dm-rfid .fld.ok b { display: none; } .dm-rfid .fld.ok em { display: inline; }
.dm-rfid .fld.ok { border-color: var(--ok); background: #eefaf2; }
.dm-rfid-reader { position: relative; justify-self: center; width: 110px; height: 70px; border-radius: 12px; background: #2a2a30; color: var(--or-hi); font: 700 13px ui-monospace, monospace; display: grid; place-items: end center; padding-bottom: 8px; }
.dm-rfid-reader .waves { position: absolute; top: 10px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border: 3px solid var(--or); border-radius: 50%; opacity: .5; }
.dm-rfid-tag { justify-self: center; width: 96px; height: 60px; border-radius: 10px; background: #fff; color: #414143; box-shadow: 0 10px 30px rgba(0,0,0,.4); display: grid; place-items: center; font-size: 12px; font-weight: 700; transition: transform .5s ease; transform: translateY(30px); }
.dm-rfid-tag i { width: 26px; height: 6px; border-radius: 3px; background: var(--or); }
.dm-rfid-tag .t-as, .dm-rfid-tag.as .t-doc { display: none; } .dm-rfid-tag.as .t-as { display: block; }
.dm-rfid-tag.as i { background: #5cc8ff; }
.dm-rfid-tag.near { transform: translateY(-62px); }
.scene.on .dm-rfid-reader .waves { animation: dm-wave 1.2s ease-out infinite; }
@keyframes dm-wave { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2); opacity: 0; } }
@media (max-width: 820px) { .dm-rfid { grid-template-columns: 1fr 1fr; } .dm-rfid-scr { grid-row: auto; grid-column: 1 / -1; } .dm-rfid-tag.near { transform: translateX(-60px); } .dm-rfid-tag { transform: none; } }

/* Vidicap self-check */
.dm-check { width: 100%; max-width: 480px; background: #f4f4f5; border: 10px solid #2a2a30; border-radius: 16px; padding: 12px 14px; color: #414143; }
.dm-check-h { margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dm-check-h b { font-size: 15px; } .dm-check-h span { font-size: 12px; color: #8a8a90; }
.dm-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-check li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid #e1e1e4; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 600; }
.dm-check em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.dm-check .ok em { background: #e3f7ea; color: #1a8a4a; }
.dm-check .lim em { background: #fff3d6; color: #a86b00; }
.dm-check .buy em { background: #ffe6d5; color: #c24e00; }
.dm-check .fc { border-style: dashed; } .dm-check .fc em { background: #e6f2fb; color: #1f6fa8; }

/* Connect «Палаты»: NEWS2 on bed tiles */
.bed .news { font-style: normal; font-size: 10px; font-weight: 700; color: #9a9aa2; }
.bed:nth-child(4) .news { color: #fff; background: #d33; border-radius: 4px; padding: 0 4px; align-self: flex-start; }

/* Connect: live waveforms on the bed tiles */
.bed svg { overflow: hidden; height: 22px; }
.bed .wave { animation: dm-scroll 1.6s linear infinite; }
.bed .pleth { stroke: #5cc8ff; animation: dm-scroll2 2.2s linear infinite; }
.bed:nth-child(4) .wave { stroke: #ffd34a; animation-duration: 1s; }
.bed:nth-child(odd) .wave { animation-delay: -.7s; } .bed:nth-child(3n) .wave { animation-delay: -1.1s; }
@keyframes dm-scroll { from { transform: translateX(0); } to { transform: translateX(-60px); } }
@keyframes dm-scroll2 { from { transform: translateX(0); } to { transform: translateX(-30px); } }

/* AI ultrasound */
.us-view .ai-box { stroke: #ffd34a; }
.us-view .us-tag { left: 46%; top: 39%; background: #ffd34a; }
@media (max-width: 820px) { .us-view .us-tag { font-size: 10px; left: 40%; top: 36%; } .us-view .ai-note { font-size: 10px; } }
/* server tree: ward from a lower server */
.up-link { fill: none; stroke: #4fd18b; stroke-width: 3; stroke-dasharray: 6 6; }
.scene.on .up-link { animation: dm-flow 1s linear infinite; }
.pic .tw-h { font-size: 14px; font-weight: 700; fill: #fff; }
.pic .tw-s { font-size: 11px; fill: var(--mut); }
.tw-bed rect { fill: #1d2a22; stroke: #4fd18b; stroke-width: 1.5; }
.tw-bed path { fill: none; stroke: #4fd18b; stroke-width: 1.8; stroke-linejoin: round; }
/* server tree: broadcast from a lower server */
.tw-frame { fill: #111; stroke: #45454c; stroke-width: 1.5; }
.tw-spin { fill: none; stroke: var(--or); stroke-width: 3; stroke-dasharray: 36 20; transform-box: fill-box; transform-origin: center; }
.tw-vid { opacity: 0; }
.pic .tw-live { font-size: 10px; font-weight: 700; fill: #fff; }
.scene.on .tw-spin { animation: tw-spin 1s linear infinite, tw-out .3s 3.4s forwards; }
.scene.on .tw-vid { animation: tw-in .5s 3.6s forwards; }
@keyframes tw-spin { to { transform: rotate(360deg); } }
@keyframes tw-out { to { opacity: 0; } }
@keyframes tw-in { to { opacity: 1; } }
/* server tree: updates flow down, outdated server */
.pic .tw-old { font-size: 11px; font-weight: 700; fill: #ff6b6b; }
.tw-pkg { fill: var(--or); opacity: 0; }
.scene.on .tw-pkg { animation: tw-down 2.4s ease-in 1s infinite; }
@keyframes tw-down { 0% { opacity: 0; transform: translateY(-6px); } 15% { opacity: 1; } 75% { opacity: 1; transform: translateY(26px); } 100% { opacity: 0; transform: translateY(30px); } }
/* web access: study archive strip */
.b-arch { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--or); border-radius: 12px; padding: 10px 12px; color: #414143; font-size: 14px; }
.b-arch b { margin-right: auto; }
.b-arch span { background: #f1f1f3; border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.scene.on .b-arch { animation: dm-pop .5s cubic-bezier(.3,1.6,.6,1) 2.3s both; }
@media (max-width: 420px) { .b-arch { font-size: 12px; padding: 8px; gap: 5px; } .b-arch span { font-size: 11px; padding: 3px 6px; } }
/* fleet check: «Проверить сейчас» */
.dm-check-now { margin: 12px 0 0; text-align: right; }
.dm-check-now span { display: inline-block; background: var(--or); color: #fff; font-weight: 700; border-radius: 10px; padding: 8px 14px; font-size: 14px; }
.scene.on .dm-check-now span { animation: dm-chk-pulse 1.2s 3.2s 2; }
@keyframes dm-chk-pulse { 50% { box-shadow: 0 0 0 6px rgba(255,111,0,.35); } }
/* vitals: trend scales and platform page */
.dm-trend { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 10px 0 0; color: var(--mut); font-size: 13px; }
.dm-trend b { border: 1px solid #45454c; border-radius: 8px; padding: 3px 9px; color: #ddd; font-weight: 600; }
.scene.on .dm-trend b.a { animation: dm-trend-a 4s 1s infinite; }
.scene.on .dm-trend b.b { animation: dm-trend-b 4s 1s infinite; }
@keyframes dm-trend-a { 0%, 45% { background: var(--or); border-color: var(--or); color: #fff; } 50%, 100% { background: none; } }
@keyframes dm-trend-b { 0%, 45% { background: none; } 50%, 95% { background: var(--or); border-color: var(--or); color: #fff; } }
.dm-alarm { position: absolute; left: 34%; top: 72%; transform: translate(-50%, -50%); margin: 0; opacity: 0; z-index: 3; white-space: nowrap;
  background: #f2c200; color: #111; border-radius: 10px; padding: 8px 14px; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.dm-alarm b { margin-right: 6px; }
.scene.on .dm-alarm { animation: dm-alarm-pop 11s 0s forwards; }
@keyframes dm-alarm-pop { 0%, 45% { opacity: 0; transform: translate(-50%, -40%); } 50%, 85% { opacity: 1; transform: translate(-50%, -50%); }
  60%, 70% { box-shadow: 0 0 0 6px rgba(242,194,0,.35), 0 8px 30px rgba(0,0,0,.6); } 95%, 100% { opacity: 0; } }
@media (max-width: 520px) { .dm-alarm { font-size: 12px; padding: 6px 10px; } }
@media (prefers-reduced-motion: reduce) { .scene.on .dm-alarm { animation: none; opacity: 1; } }
.monitor .v.hr.alarm b, .monitor .v.hr.alarm i { color: #ff5a4f; }
.dm-pv { width: 100%; max-width: 640px; margin-top: 10px; background: #111216; border: 1px solid #2c2d33; border-radius: 12px; padding: 8px 12px; color: #ddd; font-size: 12px; }
.dm-pv p { margin: 0; }
.dm-pv-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.dm-pv-b { display: flex; gap: 4px; } .dm-pv-b i { font-style: normal; border: 1px solid #3a3b42; border-radius: 6px; padding: 1px 6px; color: var(--mut); }
.dm-pv-b i.on { background: var(--or); border-color: var(--or); color: #fff; }
.dm-pv-row { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; }
.dm-pv-row span { font: 700 20px/1 system-ui, sans-serif; white-space: nowrap; } .dm-pv-row small { display: block; font: 500 10px/1.4 system-ui, sans-serif; opacity: .8; }
.dm-pv-row .hr { color: #33e07a; } .dm-pv-row .sp { color: #36c5f0; } .dm-pv-row .bp { color: #ffd34a; font-size: 16px; }
.dm-pv-row svg { flex: 1; min-width: 60px; height: 36px; }
.dm-pv-l1 { fill: none; stroke: #33e07a; stroke-width: 2; } .dm-pv-l2 { fill: none; stroke: #36c5f0; stroke-width: 2; }
.scene.on .dm-pv-row svg path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: dm-pv-draw 2.5s 2.2s forwards; }
@keyframes dm-pv-draw { to { stroke-dashoffset: 0; } }
.dm-pv-f { color: var(--mut); font-size: 11px; }
@media (max-width: 520px) { .dm-pv { padding: 6px 8px; margin-top: 6px; } .dm-pv-row { gap: 10px; } .dm-pv-row span { font-size: 16px; } .dm-pv-row .bp { font-size: 13px; } .dm-pv-b i { padding: 0 4px; } }
@media (prefers-reduced-motion: reduce) { .scene.on .dm-pv-row svg path { animation: none; stroke-dashoffset: 0; } }

/* a phone held sideways (about 844×390): a thin header and navigation, the picture beside the words */
@media (max-height: 500px) and (orientation: landscape) {
  .demo-bar { padding: 4px 12px; flex-wrap: nowrap; } .demo-brand img { height: 22px; }
  .demo-chip { padding: 4px 10px; font-size: 12px; } .demo-bar [data-share] { display: none; }
  .demo-chip.dl .long { display: none; } .demo-chip.dl .short { display: inline; }
  .demo-tools .flags img { width: 20px; }
  .demo-nav { padding: 4px 12px 2px; gap: 6px; } .nav-btn { width: 34px; height: 34px; font-size: 20px; flex: 0 0 auto; }
  .nav-btn.play { font-size: 12px; } .dots { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .demo-note { display: none; }
  .scene { grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; padding-top: 0; }
  .pic { max-height: 64vh; } .scene .art { max-height: 70vh; }
  .say h2 { font-size: 19px; margin-bottom: 4px; } .say p { font-size: 13px; margin: 4px 0; }
  .demo .btn.big { font-size: 14px; padding: 8px 16px; }
}
