/* Модуль «Онлайн-администратор»: тёмный пульт сети (плитки клубов с камерами, звонок, карточка, перевод, эфир, журнал)
   и мини-виджеты. Разметка — resources/views/site/modules/remote.blade.php, сценарий — remote.js */
.ro, .rof {
    --ro-ease: cubic-bezier(.2, .7, .2, 1);
    --ro-spring: cubic-bezier(.3, 1.5, .5, 1);
    --ro-bg: #0f1115; --ro-p: #171a21; --ro-p2: #1d212a; --ro-line: #272b35; --ro-line2: #323744;
    --ro-tx: #eceef3; --ro-mu: #8d93a3; --ro-fa: #636a7b;
    --ro-ring: #f3a73a; --ro-ok: #2fbf6c; --ro-bad: #f05d5d; --ro-acc: #6d8ff2;
    --ro-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ro-head { max-width: 820px; }
.ro-head .lead { margin-top: 18px; }

/* ── Окно пульта ── */
.ro-app {
    position: relative; margin-top: 44px; border-radius: 18px; overflow: hidden; user-select: none; font-size: 13px; color: var(--ro-tx);
    background: radial-gradient(120% 80% at 70% 0%, #1b2030 0%, var(--ro-bg) 60%);
    box-shadow: 0 0 0 1px #000, 0 40px 90px rgba(20, 20, 19, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ro-bar { height: 52px; display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--ro-line); }
.ro-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.ro-logo .i { color: var(--ro-acc); }
.ro-me { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; padding-left: 18px; border-left: 1px solid var(--ro-line); }
.ro-me i, .ro-pip i, .rof-q-ag i, .rof-tab .k2 i, .ro-lrows li > i, .rof-arows i {
    font-style: normal; width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700;
    background: linear-gradient(135deg, #f2b8a0, #d77a5c); color: #3a1608;
}
.ro-me b { font-weight: 600; }
.ro-me small { color: var(--ro-mu); font-size: 12px; }
.ro-kpis { display: flex; gap: 6px; margin-left: auto; }
.ro-kpis > span { display: inline-flex; align-items: baseline; gap: 5px; height: 26px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--ro-p2); color: var(--ro-mu); font-size: 12px; white-space: nowrap; }
.ro-kpis b { color: var(--ro-tx); font-variant-numeric: tabular-nums; }
.ro-kq.is-on { background: rgba(243, 167, 58, .14); color: #f6c27a; }
.ro-kq.is-on b { color: var(--ro-ring); }
.ro-k0 b { color: var(--ro-ok); }
.ro-clock { font: 600 13px/1 var(--ro-mono); color: var(--ro-mu); font-variant-numeric: tabular-nums; }

.ro-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 14px; padding: 14px; height: 560px; }

/* ── Плитки клубов ── */
.ro-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.ro-tile {
    position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: 12px; overflow: hidden; background: var(--ro-p);
    box-shadow: 0 0 0 1px var(--ro-line); transition: box-shadow .3s, transform .4s var(--ro-ease), opacity .3s;
}
.ro-cam { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ro-cam > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ro-cam::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px), radial-gradient(90% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55)); }
.ro-ts { position: absolute; right: 7px; bottom: 5px; font: 500 9px/1 var(--ro-mono); color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.ro-cam-bg { fill: hsl(var(--h) 14% 17%); }
.ro-cam-floor { fill: hsl(var(--h) 10% 24%); }
.ro-cam-edge { stroke: hsl(var(--h) 20% 34%); stroke-width: .6; }
.ro-cam-win { fill: hsl(var(--h) 30% 40%); opacity: .55; }
.ro-cam-lamp { fill: #fff6d8; opacity: .55; filter: blur(.6px); }
.ro-cam-post { fill: #9aa1ae; }
.ro-cam-flap { fill: #bcd0ff; opacity: .4; }
.ro-walker { fill: hsl(var(--h) 25% 62%); animation: ro-walk var(--du) linear infinite; animation-delay: var(--dl); }
.ro-walker:nth-of-type(2n) { fill: hsl(calc(var(--h) + 90) 22% 58%); }
@keyframes ro-walk { 0% { transform: translateX(-14px); } 100% { transform: translateX(176px); } }
.ro-rec { position: absolute; left: 7px; top: 6px; display: inline-flex; align-items: center; gap: 5px; font: 600 9.5px/1 var(--ro-mono); color: rgba(255, 255, 255, .82); letter-spacing: .02em; }
.ro-rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--ro-bad); animation: ro-blink 1.4s steps(2) infinite; }
@keyframes ro-blink { 50% { opacity: .2; } }
.ro-badge { position: absolute; right: 7px; top: 6px; }
.ro-badge > span { display: none; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.b-ring { background: var(--ro-ring); color: #2a1700; }
.b-ring .i { animation: ro-shake .5s ease-in-out infinite; }
.b-talk { background: var(--ro-ok); color: #04210f; }
.b-voice { background: var(--ro-acc); color: #fff; }
.ro-tile[data-st='ring'] .b-ring, .ro-tile[data-st='talk'] .b-talk, .ro-tile[data-st='voice'] .b-voice { display: inline-flex; }
@keyframes ro-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.ro-tile-f { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 7px 10px 8px; border-top: 1px solid var(--ro-line); }
.ro-tile-f b { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-tile-f span { color: var(--ro-mu); font-size: 11px; white-space: nowrap; }
.ro-tile-f i { font-style: normal; color: var(--ro-tx); font-variant-numeric: tabular-nums; display: inline-block; }
.ro-tile-f i.is-bump { animation: ro-bump .5s var(--ro-ease); color: var(--ro-ok); }
@keyframes ro-bump { 40% { transform: translateY(-3px) scale(1.2); } }
.ro-tile[data-st='ring'] { box-shadow: 0 0 0 2px var(--ro-ring), 0 0 30px rgba(243, 167, 58, .35); animation: ro-glow 1s ease-in-out infinite; }
@keyframes ro-glow { 50% { box-shadow: 0 0 0 2px var(--ro-ring), 0 0 0 7px rgba(243, 167, 58, .12), 0 0 34px rgba(243, 167, 58, .4); } }
.ro-tile[data-st='talk'] { box-shadow: 0 0 0 2px var(--ro-ok); }
.ro-tile[data-st='voice'] { box-shadow: 0 0 0 2px var(--ro-acc); }
.ro-tile[data-st='voice'] .ro-cam::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 60% at 50% 40%, rgba(109, 143, 242, .35), transparent 70%); animation: ro-pulse-bg 1.2s ease-in-out infinite; }
@keyframes ro-pulse-bg { 50% { opacity: .35; } }

/* ── Рабочая зона ── */
.ro-work { position: relative; min-width: 0; min-height: 0; border-radius: 14px; background: var(--ro-p); box-shadow: 0 0 0 1px var(--ro-line); overflow: hidden; }
.ro-pane { position: absolute; inset: 0; padding: 16px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s, transform .5s var(--ro-ease), visibility 0s .35s; }
.ro-app[data-mode='ring'] [data-pane='ring'], .ro-app[data-mode='talk'] [data-pane='talk'], .ro-app[data-mode='tr'] [data-pane='tr'],
.ro-app[data-mode='voice'] [data-pane='voice'], .ro-app[data-mode='log'] [data-pane='log'] { opacity: 1; visibility: visible; transform: none; transition: opacity .35s .1s, transform .5s .1s var(--ro-ease); }
.ro-tr-h { display: flex; align-items: center; gap: 7px; color: var(--ro-mu); margin-bottom: 12px; }
.ro-tr-h b { color: var(--ro-tx); font-weight: 600; }

/* Входящий */
.ro-ring { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: center; }
.ro-ring-main { text-align: center; display: grid; justify-items: center; gap: 8px; }
.ro-ring-ico { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--ro-ring); color: #2a1700; margin-bottom: 10px; }
.ro-ring-ico .i { animation: ro-shake .5s ease-in-out infinite; }
.ro-ring-ico i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ro-ring); animation: ro-ripple 1.8s ease-out infinite; }
.ro-ring-ico i:nth-child(2) { animation-delay: .6s; } .ro-ring-ico i:nth-child(3) { animation-delay: 1.2s; }
@keyframes ro-ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(2.1); opacity: 0; } }
.ro-ring-t { color: var(--ro-mu); font-size: 13px; }
.ro-ring-t time { font: 600 13px var(--ro-mono); color: var(--ro-ring); margin-left: 6px; }
.ro-ring-club { font-size: 19px; font-weight: 600; letter-spacing: -.01em; max-width: 300px; line-height: 1.25; }
.ro-ring-auto { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 11px; border-radius: 9px; background: var(--ro-p2); color: var(--ro-mu); font-size: 12px; }
.ro-ring-auto .i { color: var(--ro-ring); }

/* Планшет у трубки */
.ro-kio-cap { display: flex; align-items: center; gap: 6px; color: var(--ro-mu); font-size: 11.5px; margin-bottom: 8px; }
.ro-tab { padding: 9px; border-radius: 16px; background: #050608; box-shadow: 0 0 0 1px #2c303a, 0 18px 40px rgba(0, 0, 0, .45); }
.ro-tab-scr { position: relative; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 12px; background: linear-gradient(160deg, #f6f6f4, #e9ebf1); color: var(--ink); }
.ro-tab-scr b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.ro-tab-scr small { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); }
.ro-dots { display: inline-flex; gap: 5px; }
.ro-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ro-dot 1.1s ease-in-out infinite; }
.ro-dots i:nth-child(2) { animation-delay: .15s; } .ro-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ro-dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Разговор */
.ro-talk { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; }
.ro-vid { min-height: 0; }
.ro-vid-scr { position: relative; height: 100%; border-radius: 12px; overflow: hidden; background: #151925; }
.ro-vid-scr > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ro-vperson { transform-origin: 120px 170px; animation: ro-breath 4s ease-in-out infinite; }
@keyframes ro-breath { 50% { transform: translateY(1.5px) rotate(-.6deg); } }
.ro-talk.is-speak .ro-mouth { animation: ro-mouth .32s ease-in-out infinite alternate; transform-origin: 120px 98px; }
@keyframes ro-mouth { to { transform: scaleY(2.2); } }
.ro-rec-lg { left: 12px; top: 11px; font-size: 10.5px; }
.ro-pip { position: absolute; right: 10px; top: 10px; width: 78px; padding: 8px 6px 7px; border-radius: 10px; background: rgba(10, 12, 18, .72); backdrop-filter: blur(6px); display: grid; justify-items: center; gap: 5px; text-align: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.ro-pip i { width: 34px; height: 34px; font-size: 14px; }
.ro-pip small { font-size: 9.5px; color: #cfd3dc; line-height: 1.2; }
.ro-wave { position: absolute; left: 12px; bottom: 12px; height: 22px; display: flex; align-items: center; gap: 2px; padding: 0 8px; border-radius: 999px; background: rgba(10, 12, 18, .6); }
.ro-wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--ro-ok); }
.ro-talk.is-speak .ro-wave i { animation: ro-eq .5s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.07s); }
@keyframes ro-eq { from { height: 20%; } to { height: 85%; } }

.ro-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ro-cl { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ro-line); }
.ro-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, #8fb0ff, #4f73d9); color: #fff; flex: none; }
.ro-cl b { display: block; font-size: 15px; font-weight: 600; }
.ro-cl small { color: var(--ro-mu); font-size: 11.5px; }
.ro-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--ro-p2); font-size: 12.5px; min-width: 0; }
.ro-row .i { color: var(--ro-mu); }
.ro-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-debt { background: rgba(240, 93, 93, .12); color: #ffb3b3; transition: background .4s, color .4s; }
.ro-debt .i { color: var(--ro-bad); }
.ro-debt b { font-variant-numeric: tabular-nums; }
.ro-debt em { display: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ro-ok); color: #04210f; place-items: center; }
.ro-talk.is-paid .ro-debt { background: rgba(47, 191, 108, .12); color: #9fe6bd; }
.ro-talk.is-paid .ro-debt .i { color: var(--ro-ok); }
.ro-talk.is-paid .ro-debt b { text-decoration: line-through; opacity: .6; }
.ro-talk.is-paid .ro-debt em { display: grid; animation: ro-pop .45s var(--ro-spring); }
@keyframes ro-pop { from { transform: scale(0); } }
.ro-feed { position: relative; height: 52px; }
.ro-fd { position: absolute; inset: 0; display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 12px; transition: opacity .35s, transform .45s var(--ro-ease); }
.ro-fd span { display: grid; min-width: 0; }
.ro-fd small { color: var(--ro-mu); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-fd b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-fd .i { margin-top: 2px; }
.ro-fd-deny { box-shadow: inset 3px 0 0 var(--ro-bad); background: rgba(240, 93, 93, .07); }
.ro-fd-deny .i { color: var(--ro-bad); }
.ro-fd-pass { box-shadow: inset 3px 0 0 var(--ro-ok); background: rgba(47, 191, 108, .08); align-items: center; }
.ro-fd-pass .i { color: var(--ro-ok); margin-top: 0; }
.ro-talk:not(.is-paid) .ro-fd-pass, .ro-talk.is-paid .ro-fd-deny { opacity: 0; transform: translateY(8px); }
.ro-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ro-act { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--ro-p2); box-shadow: inset 0 0 0 1px var(--ro-line2); font-size: 12px; white-space: nowrap; transition: transform .15s, background .2s; }
.ro-act-main { background: #fff; color: var(--ink); box-shadow: none; font-weight: 600; }
.ro-act.is-press { transform: scale(.93); background: #dfe7ff; }
.ro-toasts { position: relative; display: grid; gap: 6px; margin-top: auto; }
.ro-toast { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; font-size: 12px; background: var(--ro-p2); transition: opacity .35s, transform .45s var(--ro-spring); }
.ro-t-sent .i { color: var(--ro-acc); } .ro-t-paid .i, .ro-t-done .i { color: var(--ro-ok); }
.ro-t-done { color: var(--ro-mu); }
.ro-talk:not(.is-sent) .ro-t-sent, .ro-talk:not(.is-paid) .ro-t-paid, .ro-talk:not(.is-done) .ro-t-done { opacity: 0; transform: translateY(10px) scale(.96); }

/* Перевод */
.ro-tr { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; }
.ro-tr-con { min-width: 0; display: flex; flex-direction: column; }
.ro-langs, .ro-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 12px; }
.ro-langs small, .ro-chips small { color: var(--ro-fa); font-size: 11px; margin-right: 4px; }
.ro-langs span, .ro-chips span { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ro-p2); box-shadow: inset 0 0 0 1px var(--ro-line2); color: var(--ro-mu); font-size: 12px; transition: background .25s, color .25s, box-shadow .25s; }
.ro-langs span.is-on, .ro-chips span.is-on { background: var(--ro-acc); color: #fff; box-shadow: none; }
.ro-chips span .i { display: none; }
.ro-chips span.is-on .i { display: block; }
.ro-lines { display: flex; flex-direction: column; gap: 9px; }
.ro-ln { max-width: 88%; padding: 9px 12px; border-radius: 12px; background: var(--ro-p2); transition: opacity .3s, transform .45s var(--ro-ease); }
.ro-ln[data-who='a'] { align-self: flex-end; background: #2a3a6a; }
.ro-ln small { display: block; font-size: 10.5px; color: var(--ro-mu); margin-bottom: 2px; }
.ro-ln .o { font-size: 13px; line-height: 1.4; }
.ro-ln .t { margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--ro-line2); color: #9fe6bd; font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; }
.ro-ln .t .i { margin-top: 3px; flex: none; }
.ro-ln.is-hide { opacity: 0; transform: translateY(10px); }
.ro-ln .t.is-hide { visibility: hidden; }
.ro-tab-tr { place-content: end center; padding-bottom: 14px; background: linear-gradient(180deg, #2b3245 0%, #151925 100%); color: #fff; }
.ro-tab-tr b { font-size: 15px; font-weight: 600; line-height: 1.35; transition: opacity .3s; }
.ro-tab-tr small { color: #aeb4c2; font-size: 10px; transition: opacity .3s; }
.ro-tab-hint { position: absolute; left: 8px; right: 8px; top: 8px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 10px; color: #dfe3ea; }

/* Эфир */
.ro-voice { display: flex; flex-direction: column; }
.ro-chips span { cursor: default; }
.ro-mic { display: flex; align-items: center; gap: 22px; padding: 24px 20px; border-radius: 14px; background: var(--ro-p2); }
.ro-mic-btn { position: relative; width: 74px; height: 74px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ro-acc); color: #fff; }
.ro-mic-btn i { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ro-acc); opacity: 0; }
.ro-app[data-mode='voice'] .ro-voice.is-live .ro-mic-btn i { animation: ro-ripple 1.6s ease-out infinite; }
.ro-mic-r { flex: 1; min-width: 0; }
.ro-mic-on { color: var(--ro-mu); font-size: 12px; }
.ro-mic-on b { color: var(--ro-tx); }
.ro-bars { display: flex; align-items: center; gap: 3px; height: 74px; margin: 10px 0; }
.ro-bars i { flex: 1; height: calc(var(--a) * 100%); min-width: 2px; border-radius: 2px; background: linear-gradient(180deg, #a9bdff, var(--ro-acc)); transform-origin: 50% 50%; transform: scaleY(.15); transition: transform .3s; }
.ro-voice.is-live .ro-bars i { animation: ro-vbar .7s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.045s); transform: none; }
@keyframes ro-vbar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.ro-quote { font-size: 13px; color: #d4d8e2; font-style: italic; }
.ro-mix { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; color: var(--ro-mu); font-size: 12px; }
.ro-gong { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(243, 167, 58, .14); color: #f6c27a; }
.ro-voice.is-gong .ro-gong .i { animation: ro-shake .4s 2; }
.ro-duck { flex: 1; height: 6px; border-radius: 3px; background: var(--ro-line2); overflow: hidden; }
.ro-duck i { display: block; height: 100%; width: 80%; background: var(--ro-mu); transition: width .8s var(--ro-ease); }
.ro-voice.is-live .ro-duck i { width: 22%; }
.ro-duck-t { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.ro-spk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ro-spk-c { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 12px; background: var(--ro-p2); min-width: 0; transition: box-shadow .3s; }
.ro-spk-c > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.ro-spk-c b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-spk-c small { font-size: 10.5px; color: var(--ro-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-spk-i { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: #252b39; color: var(--ro-mu); }
.ro-eq { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.ro-eq i { width: 3px; height: 25%; border-radius: 1px; background: var(--ro-line2); }
.ro-voice.is-live .ro-spk-c { box-shadow: inset 0 0 0 1px var(--ro-acc); }
.ro-voice.is-live .ro-spk-i { color: var(--ro-acc); }
.ro-voice.is-live .ro-eq i { background: var(--ro-acc); animation: ro-eq .45s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.11s); }

/* Журнал */
.ro-lrows { display: grid; gap: 6px; }
.ro-lrows li { display: grid; grid-template-columns: 44px 28px minmax(0, 1fr) auto 26px; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--ro-p2); transition: opacity .3s, transform .45s var(--ro-ease); }
.ro-lrows li.is-hide { opacity: 0; transform: translateX(16px); }
.ro-lrows time { font: 500 12px var(--ro-mono); color: var(--ro-mu); }
.ro-li { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #252b39; color: var(--ro-acc); }
.ro-lrows b { font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-lrows small { color: var(--ro-mu); font-size: 11.5px; white-space: nowrap; }
.ro-lrows li > i { width: 24px; height: 24px; font-size: 10px; }
.ro-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.ro-sum div { padding: 12px; border-radius: 12px; background: var(--ro-p2); }
.ro-sum dd { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ro-sum div:last-child dd { color: var(--ro-ok); }
.ro-sum dt { color: var(--ro-mu); font-size: 11.5px; }

/* ── Шаги ── */
.ro-ctl { display: flex; align-items: flex-start; gap: 16px; margin-top: 18px; }
.ro-steps { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ro-steps button { position: relative; width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 10px 12px 12px; border-radius: 12px; border: 1px solid var(--line-card); background: #fff; transition: border-color .2s, background .2s; overflow: hidden; }
.ro-steps button:hover { border-color: var(--line-strong); background: var(--hover-soft); }
.ro-st-n { grid-row: span 2; font: 600 11px/1.6 var(--ro-mono); color: var(--faint); }
.ro-steps b { font-size: 14px; font-weight: 600; }
.ro-steps small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ro-st-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.ro-st-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.ro-steps li.is-done .ro-st-bar i { transform: scaleX(1); background: var(--line-strong); }
.ro-steps li.is-on button { border-color: var(--ink); }
.ro-steps li.is-on .ro-st-n { color: var(--accent); }
.ro-ctl-btns { display: flex; gap: 8px; }

/* ── Мини-виджеты ── */
.rof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.rof-w2 { grid-column: span 2; }
.rof-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-card); background: #fff; }
.rof-card h3 { display: flex; align-items: center; gap: 8px; margin: 20px 22px 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.rof-card h3 .i { color: var(--accent); }
.rof-card > p { margin: 0 22px 22px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rof-vis {
    position: relative; height: 200px; overflow: hidden; display: grid; place-items: center; padding: 18px; color: var(--ro-tx);
    background: radial-gradient(100% 120% at 80% 0%, #1d2333, var(--ro-bg) 70%);
}
.rof-vis::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 22px 22px; mask: radial-gradient(80% 90% at 50% 50%, #000, transparent); }
.rof-vis > * { position: relative; }

/* Очередь */
.rof-q { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.rof-q-src, .rof-q-ag { display: grid; gap: 6px; }
.rof-q-src span, .rof-q-ag span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--ro-p2); box-shadow: inset 0 0 0 1px var(--ro-line2); font-size: 12px; white-space: nowrap; }
.rof-q-src .i { color: var(--ro-ring); }
.rof-q-ag span { height: 34px; padding-left: 4px; }
.rof-q-ag i { width: 26px; height: 26px; }
.rof-q-lane { position: relative; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--ro-line2); overflow: hidden; }
.rof-q-lane small { position: absolute; left: 50%; top: -1px; transform: translate(-50%, -100%); font-size: 10.5px; color: var(--ro-mu); }
.rof-q-lane i { position: absolute; top: 8px; left: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ro-ring); color: #2a1700; animation: rof-flow 5s linear infinite; animation-delay: calc(var(--k) * -1s); }
.rof-q { position: relative; } .rof-q-lane { overflow: visible; } .rof-q-lane small { top: -6px; }
@keyframes rof-flow { 0% { left: 0; transform: scale(.5); opacity: 0; } 12% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 100% { left: calc(100% - 28px); transform: scale(.7); opacity: 0; } }

/* Экран у трубки */
.rof-kiosk .rof-vis { gap: 0; }
.rof-tab { position: relative; width: 168px; aspect-ratio: 4 / 3; border-radius: 12px; padding: 6px; background: #050608; box-shadow: 0 0 0 1px #2c303a, 0 18px 36px rgba(0, 0, 0, .5); }
.rof-tab > div { position: absolute; inset: 6px; border-radius: 7px; overflow: hidden; display: grid; place-items: center; opacity: 0; transition: opacity .45s; }
.rof-tab[data-k='0'] .k0, .rof-tab[data-k='1'] .k1, .rof-tab[data-k='2'] .k2 { opacity: 1; }
.rof-tab .k0 { background: linear-gradient(135deg, #2f5bd8, #7b4fd6); }
.rof-tab .k0 b { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.k0-a, .k0-b { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .18); animation: rof-float 6s ease-in-out infinite alternate; }
.k0-a { width: 70px; height: 70px; left: -16px; top: -20px; } .k0-b { width: 50px; height: 50px; right: -10px; bottom: -14px; animation-delay: -3s; }
@keyframes rof-float { to { transform: translate(14px, 10px); } }
.rof-tab .k1 { background: #f6f6f4; }
.rof-tab .k2 { background: radial-gradient(circle at 50% 40%, #3a4258, #151925); }
.rof-tab .k2 i { width: 48px; height: 48px; font-size: 18px; box-shadow: 0 0 0 4px rgba(47, 191, 108, .5); }
.rof-tab-l { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--ro-mu); }
.rof-hs { position: absolute !important; right: 18%; top: 30%; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ro-p2); color: var(--ro-mu); box-shadow: inset 0 0 0 1px var(--ro-line2); transition: transform .4s var(--ro-spring), color .3s; }
.rof-tab[data-k='1'] ~ .rof-hs, .rof-tab[data-k='2'] ~ .rof-hs { transform: translateY(-8px) rotate(-18deg); color: var(--ro-ring); }

/* Створка с причиной */
.rof-dlg { width: 100%; max-width: 270px; padding: 12px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); display: grid; gap: 10px; font-size: 12px; }
.rof-dlg > b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.rof-rs { display: flex; flex-wrap: wrap; gap: 5px; }
.rof-rs span { padding: 4px 8px; border-radius: 7px; background: var(--chip); color: var(--ink-2); font-size: 11px; }
.rof-rs span.is-on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rof-dlg-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rof-frame { display: inline-flex; align-items: center; gap: 4px; font: 500 10.5px var(--ro-mono); color: var(--muted); }
.rof-ok { padding: 6px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; }
.rof-gate.in .rof-rs span.is-on { animation: rof-pick 3.2s ease-in-out infinite; }
@keyframes rof-pick { 0%, 20% { background: var(--chip); color: var(--ink-2); box-shadow: none; } 30%, 100% { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } }
.rof-gate.in .rof-ok { animation: rof-okb 3.2s ease-in-out infinite; }
@keyframes rof-okb { 0%, 25% { opacity: .35; } 35%, 100% { opacity: 1; } }

/* Перевод */
.rof-pair { width: 100%; display: grid; justify-items: center; gap: 6px; text-align: center; transition: opacity .3s; }
.rof-pair.is-out { opacity: 0; }
.rof-pl { padding: 3px 10px; border-radius: 999px; background: var(--ro-acc); color: #fff; font-size: 11px; font-weight: 600; }
.rof-po { font-size: 17px; font-weight: 600; line-height: 1.3; }
.rof-arrow { color: var(--ro-mu); }
.rof-pt { font-size: 14px; color: #9fe6bd; }

/* Голос в зале */
.rof-mix { position: relative; width: 100%; display: grid; gap: 10px; }
.rof-trk { position: relative; height: 54px; border-radius: 10px; background: var(--ro-p2); box-shadow: inset 0 0 0 1px var(--ro-line2); overflow: hidden; }
.rof-trk small { position: absolute; left: 10px; top: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ro-mu); }
.rof-env { position: absolute; inset: 20px 0 6px; background: repeating-linear-gradient(90deg, rgba(141, 147, 163, .55) 0 2px, transparent 2px 5px);
    clip-path: polygon(0 10%, 30% 10%, 36% 75%, 80% 75%, 86% 10%, 100% 10%, 100% 100%, 0 100%); }
.rof-trk-v .rof-vw { position: absolute; left: 36%; right: 20%; top: 20px; bottom: 6px; display: flex; align-items: center; gap: 2px; }
.rof-vw i { flex: 1; height: calc(var(--a) * 100%); border-radius: 2px; background: var(--ro-acc); }
.rof-gong { position: absolute !important; left: calc(36% - 26px); top: 22px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ro-ring); color: #2a1700; }
.rof-head { position: absolute !important; top: -6px; bottom: -6px; left: 0; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; animation: rof-head 6s linear infinite; }
@keyframes rof-head { from { left: 0; } to { left: 100%; } }

/* Гостевой код */
.rof-code { display: grid; justify-items: center; gap: 10px; }
.rof-code small { color: var(--ro-mu); font-size: 12px; }
.rof-digits { display: flex; gap: 6px; }
.rof-digits b { width: 38px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 24px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.rof-guest.in .rof-digits b { animation: rof-digit .5s var(--ro-spring) both; animation-delay: calc(var(--k) * .12s + .2s); }
@keyframes rof-digit { from { transform: translateY(-14px) rotateX(80deg); opacity: 0; } }
.rof-until { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #9fe6bd; }

/* Касса */
.rof-rcpt { width: 260px; padding: 14px 16px 18px; background: #fff; color: var(--ink); font: 500 12px var(--ro-mono); box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    -webkit-mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 50% / 14px 100%; mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 50% / 14px 100%; }
.rof-rh { display: flex; align-items: center; gap: 6px; font: 600 12px var(--font); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-strong); }
.rof-rcpt p { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; }
.rof-rcpt p i { flex: 1; border-bottom: 1px dotted var(--ph); }
.rof-tot { margin-top: 6px; padding-top: 7px !important; border-top: 1px dashed var(--line-strong); font-weight: 700; }
.rof-cash.in .rof-rcpt { animation: rof-print 1.2s var(--ro-ease) both .2s; }
@keyframes rof-print { from { clip-path: inset(0 0 100% 0); transform: translateY(-20px); } to { clip-path: inset(0 0 -10px 0); transform: none; } }

/* Журнал просмотров */
.rof-arows { width: 100%; display: grid; gap: 7px; }
.rof-arows p { display: grid; grid-template-columns: 44px 26px auto minmax(0, 1fr) 14px; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; background: var(--ro-p2); box-shadow: inset 0 0 0 1px var(--ro-line2); font-size: 12.5px; }
.rof-arows time { font: 500 11.5px var(--ro-mono); color: var(--ro-mu); }
.rof-arows i { width: 24px; height: 24px; font-size: 10px; }
.rof-arows b { font-weight: 600; white-space: nowrap; }
.rof-arows span { color: var(--ro-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rof-arows .i { color: var(--ro-acc); }
.rof-audit.in .rof-arows p { animation: rof-row .5s var(--ro-ease) both; animation-delay: calc(var(--k) * .15s + .2s); }
@keyframes rof-row { from { opacity: 0; transform: translateY(-10px); } }

/* ── Адаптив ── */
@media (max-width: 1200px) {
    .ro-body { grid-template-columns: 1fr; height: auto; }
    .ro-tiles { height: 330px; }
    .ro-work { display: grid; }
    .ro-pane { position: relative; inset: auto; grid-area: 1 / 1; }
    .ro-talk { grid-template-rows: 300px; }
    .ro-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rof-w2 { grid-column: span 2; }
}
@media (max-width: 760px) {
    .ro-spk-c { padding: 8px; gap: 6px; }
    .ro-spk-c small, .ro-eq { display: none; }
    .ro-spk-i { width: 26px; height: 26px; }
    .ro-app { margin-top: 28px; border-radius: 14px; }
    .ro-bar { gap: 10px; padding: 0 12px; }
    .ro-me { padding-left: 10px; }
    .ro-me small, .ro-me b, .ro-kpis > span:first-child, .ro-kpis > .ro-kq, .ro-clock { display: none; }
    .ro-vid .ro-rec-lg { font-size: 10px; }
    .ro-body { padding: 10px; gap: 10px; }
    .ro-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 230px; gap: 6px; }
    .ro-tile-f { padding: 5px 7px; }
    .ro-tile-f span { display: none; }
    .ro-tile-f b { font-size: 11px; }
    .ro-badge > span { height: 17px; padding: 0 6px; font-size: 9.5px; }
    .ro-badge > span > span, .b-talk, .b-voice { font-size: 0 !important; gap: 0 !important; }
    .ro-rec { font-size: 0; }
    .ro-pane { padding: 12px; }
    .ro-ring, .ro-tr { grid-template-columns: 1fr; align-content: start; gap: 14px; }
    .ro-ring .ro-kio, .ro-tr .ro-kio { max-width: 210px; justify-self: center; width: 100%; }
    .ro-ring-ico { width: 72px; height: 72px; }
    .ro-talk { grid-template-columns: 1fr; grid-template-rows: 220px auto; }
    .ro-mic { flex-direction: column; text-align: center; }
    .ro-sum dd { font-size: 22px; }
    .ro-lrows li { grid-template-columns: 40px 28px minmax(0, 1fr) 24px; }
    .ro-lrows small { display: none; }
    .ro-ctl { flex-direction: column; align-items: stretch; }
    .ro-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .ro-steps button { padding: 8px 9px 10px; }
    .ro-steps small { display: none; }
    .ro-steps b { font-size: 12.5px; }
    .ro-ctl-btns .btn { flex: 1; }
    .rof-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
    .rof-w2 { grid-column: auto; }
    .rof-q { grid-template-columns: auto minmax(0, 1fr); }
    .rof-q-ag { grid-column: 1 / -1; grid-auto-flow: column; justify-content: center; }
    .rof-vis { height: auto; min-height: 200px; }
    .rof-arows p { grid-template-columns: 40px 24px minmax(0, 1fr) 14px; }
    .rof-arows b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ro *, .rof * { animation: none !important; transition: none !important; }
}
