/* 🏢 Офис v6 (#1118): офис во весь экран (шапка поверх), панорама 3 экрана; лента, доска и чат — ниже при прокрутке. Добавки к office5/6/7. */
.o8 { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.o8 .o8-wrap { position: relative; height: 100vh; height: 100dvh; height: var(--o8-h, 100dvh); overflow: hidden; flex: none; display: flex; flex-direction: column; }
.o8 .o8-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #1b0c10; }
.o8 .o8-head { position: relative; flex: none; z-index: 5; background: #1b0c10; border-bottom: 1.5px solid rgba(242,196,109,.26); }
.o8 .o8-whole { position: absolute; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; font-size: 22px; display: grid; place-items: center; background: rgba(27,12,16,.82); }
.o8 .o8-down { border: 0; background: transparent; min-width: 48px; min-height: 36px; cursor: pointer; pointer-events: auto; position: absolute; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); z-index: 4; transform: translateX(-50%); color: #f2c46d; font-size: 28px; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.8); animation: o8-bob 1.8s ease-in-out infinite; }
@keyframes o8-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@media (prefers-reduced-motion: reduce) { .o8 .o8-down { animation: none; } }
.o8 .o8-sub { position: sticky; top: 0; z-index: 6; background: #1b0c10; border-bottom: 1.5px solid rgba(242,196,109,.26); overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-top: 6px; padding-bottom: 6px; }
.o8 .o8-sub > * { flex: none; }
.o8 .o8-sub .o5-boardline { min-height: 44px; white-space: nowrap; }
.o8 .o5-scene { position: absolute; left: 0; top: 0; }

/* #1122: золотая плашка с именем (≥14px), облачко рядом; доска задач — живые цифры под доской на картинке */
.o8 .o5-name b { background: linear-gradient(#f6d58b, #e0a43a); color: #2a1a12; border: 1px solid #fbe3a8; font-size: 14px; font-weight: 800; }
.o8 .o5-name i { font-size: 14px; }
.o8 .o8-boardtag { display: flex; flex-direction: column; gap: 1px; min-height: 44px; padding: 4px 10px; align-items: flex-start; line-height: 1.25; border-radius: 12px; background: rgba(27,12,16,.88); border: 1.5px solid rgba(242,196,109,.7); color: #fbf1de; font-size: 14px; font-family: inherit; white-space: nowrap; }
.o8 .o8-boardtag b { font-weight: 800; }
.o8 .o8-boardtag b:nth-child(1) { color: #f2c46d; } .o8 .o8-boardtag b:nth-child(2) { color: #7fc0ff; } .o8 .o8-boardtag b:nth-child(3) { color: #6fd79b; }
.o8 .o5-canvas { image-rendering: pixelated; }

/* подсказка — на картинке внизу, не в ленте под строкой статуса (#1123): при прокрутке уезжает вместе с картинкой и не налезает на липкую строку */
.o8 .o8-hint { position: absolute; left: 10px; right: 72px; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 4; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(27,12,16,.82); border: 1px solid rgba(242,196,109,.4); color: #fbf1de; font-size: 14px; line-height: 1.35; pointer-events: none; transition: opacity .6s; }
.o8 .o8-hint.is-off { opacity: 0; }

/* #1124: счётчик доски стоит НА доске (по её центру), а не над ней — наверху экрана его закрывала шапка с кнопкой «Пауза всем» */

/* #1126: окно сцены — от строки «Офис / Пауза всем» до низа экрана; картинка по высоте без пустых полос; ↔ — весь офис целиком */
.o8 .o8-whole { font-size: 24px; font-weight: 800; }
.o8 .o8-whole.is-on { background: #e0a43a; color: #2a1a12; }

/* ───── #1130 ПРАВКА МАСШТАБА (✏️ Армана #1128): основной вид как на его скрине — оба этажа целиком посередине, сверху приборы, снизу лента ───── */
.o8 .o8-hint, .o8 .o8-sub { display: none; }
.o8 .o8-gauges { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px 6px; flex: none; background: #1b0c10; border-bottom: 1.5px solid rgba(242,196,109,.26); }
.o8 .o8-g { min-height: 44px; padding: 0 7px; border-radius: 12px; border: 1.5px solid rgba(242,196,109,.4); background: #241114; color: #cbb89c; font: 14px/1.2 inherit; font-family: inherit; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.o8 .o8-g b { color: #fbf1de; font-weight: 800; font-size: 15px; }
.o8 .o8-g b.c-wait { color: #f2c46d; } .o8 .o8-g b.c-work { color: #7fc0ff; } .o8 .o8-g b.c-done { color: #6fd79b; }
.o8 .o8-g:active { background: #3a1a20; }
.o8 .o8-stage { background: radial-gradient(90% 60% at 50% 40%, #2a1218, #1b0c10 80%); }
.o8 .o8-strip { padding: 6px 8px; gap: 6px; flex: none; border-top: 1.5px solid rgba(242,196,109,.2); background: #1b0c10; }
.o8 .o8-strip .o5-card { width: 80px; padding: 5px 3px 10px; border-radius: 12px; }
.o8 .o8-strip .o5-card b { font-size: 14px; }
.o8 .o8-strip .o5-card small { min-height: 0; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o8 .o8-strip .o5-ava { width: 40px; height: 50px; margin-bottom: 2px; }
.o8 .o8-strip .o5-ava canvas { width: 40px; height: 50px; image-rendering: pixelated; }
.o8 .o8-strip .o5-card.st-soon { opacity: .55; filter: grayscale(1); }
.o8 .o8-strip .o5-card.st-soon .o5-bar { background: #5a524c; }
.o8 .o8-down { position: relative; left: auto; bottom: auto; transform: none; flex: none; align-self: center; min-height: 32px; width: 100%; animation: o8-bob2 1.8s ease-in-out infinite; }
@keyframes o8-bob2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .o8 .o8-down { animation: none; } }
.o8 .o8-whole { right: 8px; bottom: 8px; width: 48px; height: 48px; font-size: 22px; }
.o8 .o8-person .o8-lbl { color: #cbb89c; }
.o8 .o8-wbox { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.o8 .o8-wbox textarea { min-height: 80px; }

/* #1134: карточка — модель и индикатор вместо слова «Работает»: 🟢 мигает — работает, 🟡 ждёт, ⚪ не работает */
.o8 .o8-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: 0; flex: none; }
.o8 .o8-dot.is-on { background: #4cc08a; box-shadow: 0 0 6px rgba(76,192,138,.9); }
.o8 .o8-dot.is-wait { background: #f2c46d; box-shadow: 0 0 5px rgba(242,196,109,.7); }
.o8 .o8-dot.is-off { background: #8a8179; }
@media (prefers-reduced-motion: no-preference) { .o8 .o8-dot.is-on { animation: o8-blink 1.1s ease-in-out infinite; } }
@keyframes o8-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.o8 .o8-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o8 .o8-strip .o5-card small { display: flex; align-items: center; justify-content: center; }

/* ───── #1139: две строки задач Армана сверху вместо плашек приборов ───── */
.o8 .o8-gauges { display: none; }
.o8 .o8-tasks { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; flex: none; background: #1b0c10; border-bottom: 1.5px solid rgba(242,196,109,.26); }
.o8 .o8-tl { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid rgba(242,196,109,.3); background: #241114; color: #fbf1de; font: 16px/1.2 inherit; font-family: inherit; text-align: left; overflow: hidden; width: 100%; }
.o8 .o8-tt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.o8 .o8-tt.is-swap { animation: o8-swap .38s ease-out; }
@keyframes o8-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .o8 .o8-tt.is-swap { animation: none; } }
.o8 .o8-tl em { font-style: normal; font-size: 14px; color: #8a8179; flex: none; }
.o8 .o8-ti { flex: none; font-size: 18px; }
.o8 .o8-tl .o8-dot { flex: none; margin: 0; width: 12px; height: 12px; }
.o8 .o8-dot.is-done { background: #4cc08a; }
.o8 .o8-tl.is-gold { border-color: rgba(242,196,109,.85); background: #3a2410; } .o8 .o8-tl.is-gold .o8-tt { color: #f6d58b; }
.o8 .o8-tl.is-red { border-color: #e24a3b; background: #3a1210; } .o8 .o8-tl.is-red .o8-tt { color: #ff9a8a; }
.o8 .o8-tl.is-queue .o8-tt { color: #cbb89c; font-weight: 600; }
.o8 .o8-tl.is-idle .o8-tt { color: #8a8179; font-weight: 600; }
.o8 .o8-my h4 { margin: 12px 0 6px; font-size: 15px; color: #f2c46d; }
.o8 .o8-mrow.is-done p { color: #8fdcae; }
.o8 .o8-mrow.is-alarm p { color: #ff9a8a; }
.o8 .o8-mn.is-err { color: #ff9a8a; }
.o8 .o8-conf { margin-top: 8px; padding: 8px; border-radius: 10px; background: rgba(226,74,59,.12); border: 1px solid rgba(226,74,59,.5); }
.o8 .o8-tl[hidden] { display: none; }

/* ───── #1158: кнопки над головой Директора и «Банк идей» ───── */
.o8 .o8-dirbtns { pointer-events: auto; position: absolute; left: 0; top: 0; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px; width: 164px; will-change: transform; }
.o8 .o8-dirbtns[hidden] { display: none; }
.o8 .o8-db { flex: 1; min-height: 44px; border-radius: 22px; border: 1.5px solid #fbe3a8; background: linear-gradient(#f6d58b, #e0a43a); color: #2a1a12; font: 800 15px/1 inherit; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 3px 10px rgba(0,0,0,.5); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.o8 .o8-db.o8-chatb { background: linear-gradient(#3a1a20, #241114); color: #f2c46d; border-color: rgba(242,196,109,.7); }
.o8 .o8-db.is-rec { background: linear-gradient(#e46a5a, #b8342a); color: #fff; border-color: #ffb3a8; transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) { .o8 .o8-db.is-rec { animation: o8-recp 1s ease-in-out infinite; } }
@keyframes o8-recp { 0%, 100% { box-shadow: 0 0 0 0 rgba(228,106,90,.7); } 50% { box-shadow: 0 0 0 12px rgba(228,106,90,0); } }
.o8 .o8-plate { pointer-events: none; position: absolute; left: 10px; right: 72px; bottom: 10px; z-index: 6; padding: 10px 14px; border-radius: 14px; background: rgba(27,12,16,.92); border: 1.5px solid rgba(242,196,109,.6); color: #fbf1de; font-size: 15px; line-height: 1.35; text-align: center; }
.o8 .o8-plate[hidden] { display: none; }
.o8 .o8-plate.is-ok { border-color: #4cc08a; } .o8 .o8-plate.is-err { border-color: #e24a3b; color: #ffb3a8; } .o8 .o8-plate.is-warn { border-color: #f2c46d; color: #f6d58b; } .o8 .o8-plate.is-rec { border-color: #e24a3b; }
.o8 .o8-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.o8 .o8-tab { flex: 1; min-height: 44px; border-radius: 12px; border: 1.5px solid rgba(242,196,109,.35); background: transparent; color: #cbb89c; font: 700 15px/1.2 inherit; font-family: inherit; }
.o8 .o8-tab.is-on { background: linear-gradient(#f6d58b, #e0a43a); color: #2a1a12; border-color: #fbe3a8; }
.o8 .o8-irow small { color: #cbb89c; }
.o8 .o8-pane-tasks[hidden], .o8 .o8-pane-ideas[hidden] { display: none; }
.o8 .o8-irow .of-btns { display: flex; flex-wrap: nowrap; gap: 6px; }
.o8 .o8-irow .of-btn { flex: 1 1 0; min-width: 0; padding-left: 6px; padding-right: 6px; }
.o8 .o8-irow .of-btn.is-hot { flex: 2 1 0; }

/* #1189/#1191 «🧪 Тестер»: маленький пузырь 44×44 слева от «Идея / Чат»; точка: зелёная — вкл, серая — выкл; подпись — по долгому нажатию */
.o8 .o8-dirbtns { width: 216px; flex-wrap: nowrap; }
.o8 .o8-db.o8-tester { flex: 0 0 44px; width: 44px; min-width: 44px; padding: 0; border-radius: 50%; font-size: 20px; position: relative; touch-action: manipulation; }
.o8 .o8-tester .o8-tdot { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #1b0c10; background: #8a8179; }
.o8 .o8-tester.is-on { background: linear-gradient(#3a1a20, #241114); border-color: #b7f0cf; color: #fbf1de; }
.o8 .o8-tester.is-on .o8-tdot { background: #4cc08a; }
.o8 .o8-tester.is-off { background: linear-gradient(#3a1a20, #241114); border-color: rgba(242,196,109,.5); color: #fbf1de; }
.o8 .o8-tester:disabled { opacity: .7; }

/* #1193 «выкатить пачку»: тап раскрывает список */
.o8 .o8-deploy .o8-dp { width: 100%; min-height: 44px; justify-content: space-between; text-align: left; }
.o8 .o8-packs { margin: 8px 0 0; padding: 0 0 0 20px; font-size: 15px; line-height: 1.4; color: #fbf1de; }
.o8 .o8-packs[hidden] { display: none; }
.o8 .o8-packs li { margin: 4px 0; }

/* #1195: высота сцены и чата не зависит от клавиатуры (--o8-h запоминается, пока поле ввода не в фокусе) */
.o8 .o5-chat { height: calc(var(--o8-h, 100vh) * .72); }

/* #1202 окно «Идея»: текст + 🎤 «держать и говорить» (ТАП на 💡 всегда открывает окно) */
.o8 .o8-idea-dlg h3 { margin: 0 0 8px; }
.o8 .o8-itext { width: 100%; box-sizing: border-box; min-height: 96px; margin-bottom: 8px; }
.o8 .o8-idea-dlg .of-btns { display: flex; gap: 8px; }
.o8 .o8-idea-dlg .of-btn { flex: 1 1 0; min-height: 48px; }
.o8 .o8-hold { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.o8 .o8-hold.is-rec { background: linear-gradient(#e46a5a, #b8342a); color: #fff; border-color: #ffb3a8; }
.o8 .o8-inote { margin: 10px 0 0; font-size: 15px; line-height: 1.35; color: #cbb89c; }
.o8 .o8-inote.is-ok { color: #8fdcae; } .o8 .o8-inote.is-err { color: #ffb3a8; } .o8 .o8-inote.is-rec { color: #ff9a8a; font-weight: 700; }
.o8 .o8-tester.is-err { border-color: #e24a3b; box-shadow: 0 0 0 3px rgba(226,74,59,.5); }

/* #1215: цвет кнопки «Тестер» меняется целиком (раньше менялись только точка и рамка — на телефоне не видно) */
.o8 .o8-tester.is-on { background: linear-gradient(#5fd08f, #2f9d62); border-color: #b7f0cf; color: #08230f; }
.o8 .o8-tester.is-off { background: linear-gradient(#6b6561, #4a4542); border-color: #9d948c; color: #efe6da; }
.o8 .o8-tester.is-on .o8-tdot { background: #fff; border-color: #2f9d62; }
.o8 .o8-tester.is-off .o8-tdot { background: #8a8179; border-color: #4a4542; }

/* #1222 «🚀 Выкатить» */
.o8 .o8-deploy .o8-dgo { width: 100%; min-height: 48px; margin-top: 10px; }
.o8 .o8-deploy-dlg h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.o8 .o8-deploy-dlg .of-btns { display: flex; gap: 8px; }
.o8 .o8-deploy-dlg .of-btn { flex: 1 1 0; min-height: 48px; }

/* #1224 «🎛 Пульт»: кнопка вверху Офиса (мигает золотым, когда что-то ждёт) и шторка с крупными кнопками */
.o8 .o8-pultbtn { font-weight: 800; }
.o8 .o8-pultbtn.is-attn { border-color: #f6d58b; color: #2a1a12; background: linear-gradient(#f6d58b, #e0a43a); }
@media (prefers-reduced-motion: no-preference) { .o8 .o8-pultbtn.is-attn { animation: o8-pultglow 1.6s ease-in-out infinite; } }
@keyframes o8-pultglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,196,109,.75); } 50% { box-shadow: 0 0 0 9px rgba(242,196,109,0); } }
.o8 .o8-pult h3 { margin: 0 0 12px; font-size: 20px; }
.o8 .o8-pult-list { display: flex; flex-direction: column; gap: 10px; }
.o8 .o8-pb { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; min-height: 56px; padding: 8px 16px; border-radius: 16px; border: 1.5px solid rgba(242,196,109,.5); background: #241114; color: #fbf1de; font: 800 18px/1.2 inherit; font-family: inherit; text-align: left; touch-action: manipulation; }
.o8 .o8-pb small { font-size: 14px; font-weight: 600; opacity: .85; }
.o8 .o8-pb.is-gold { background: linear-gradient(#f6d58b, #e0a43a); color: #2a1a12; border-color: #fbe3a8; }
.o8 .o8-pb.is-gray { background: #2b2326; color: #8a8179; border-color: rgba(138,129,121,.4); }
.o8 .o8-pb.o8-pt-tester.is-on { background: linear-gradient(#5fd08f, #2f9d62); border-color: #b7f0cf; color: #08230f; }
.o8 .o8-pb.o8-pt-tester.is-off { background: linear-gradient(#6b6561, #4a4542); border-color: #9d948c; color: #efe6da; }
.o8 .o8-pb:disabled { opacity: .7; }
.o8 .o8-ptback { margin: 0 0 10px; min-height: 44px; }
.o8 button.o8-pb > small { font-size: 14px; line-height: 1.25; }
.o8 .o8-post .o8-pl { display: block; margin: 10px 0 4px; font-size: 14px; color: #cbb89c; }
.o8 .o8-post textarea { width: 100%; box-sizing: border-box; min-height: 72px; font-size: 16px; }

/* #2014 «📲 Соцсети» в Пульте: строка на соцсеть — имя аккаунта / статус + одна кнопка */
.o8 .o8-sn h3 { margin: 0 0 12px; font-size: 20px; }
.o8 .o8-sn-list { display: flex; flex-direction: column; gap: 10px; }
.o8 .o8-sn-row { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid rgba(242,196,109,.35); background: #241114; }
.o8 .o8-sn-row.is-on { border-color: rgba(95,208,143,.7); }
.o8 .o8-sn-hd { display: flex; align-items: center; gap: 12px; }
.o8 .o8-sn-hd p { margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.o8 .o8-sn-hd b { font-size: 18px; color: #fbf1de; }
.o8 .o8-sn-hd small { font-size: 15px; color: #8fe0b0; overflow-wrap: anywhere; }
.o8 .o8-sn-hd small.is-muted { color: #cbb89c; }
.o8 .o8-sn-hd small.is-err { color: #ff8a80; font-weight: 700; }
.o8 .o8-sn-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #1b0c10; font-size: 22px; }
.o8 .o8-sn-go { width: 100%; min-height: 48px; font-size: 16px; }
.o8 .o8-sn-ask { flex-wrap: wrap; align-items: center; }
.o8 .o8-sn-ask span { flex: 1 0 100%; font-size: 15px; color: #fbf1de; }
.o8 .o8-sn-ask .of-btn { flex: 1; min-height: 48px; }
