/* MultiBar 1.9.4 */

/* ---------- блокировка прокрутки страницы под шторкой, окнами и вкладкой страницы 2 ---------- */
html.mb-locked, html.mb-locked body, html.mb-p2-lock, html.mb-p2-lock body { overflow: hidden !important; overscroll-behavior: none; }

/* ---------- Склад: строка поиска над панелью вкладок, не уходит под неё ---------- */
.inv-search-bar { z-index: 8100; bottom: calc(var(--kb, 0px) + 12px + env(safe-area-inset-bottom, 0px)); }
body.inv-search-open .tabs { visibility: hidden; }

/* ---------- Страница 2 (Накладные, Графики, Табель, Меню): карточка как у обычных вкладок, без шапки-«брови» ---------- */
body.mb-p2-open #app-root .header { position: relative; z-index: 7600; }
/* без видимой карточки #app-root низкий и обрезал выпадающие результаты поиска (overflow-x:hidden → y тоже обрезается) */
body.mb-p2-open #app-root { overflow: visible !important; }
.p2-ico { display: none; }
.nkl-overlay.mb-as-tab { background: transparent !important; padding: 0 15px; box-sizing: border-box; }
.nkl-overlay.mb-as-tab::after { display: none !important; }
body .nkl-overlay.mb-as-tab .nkl-screen {
    position: relative; inset: auto; height: 100%; max-width: var(--mb-col, 1000px) !important; margin: 0 auto;
    background: var(--card) !important; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    transform: none !important; transition: none !important; overflow: hidden;
}
.nkl-overlay.mb-as-tab .nkl-header, html[data-wallpaper] .nkl-overlay.mb-as-tab .nkl-screen > .nkl-header {
    background: transparent !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important;
    padding: 14px 16px 4px !important; min-height: 0;
}
.nkl-overlay.mb-as-tab .nkl-header > .chat-head-btn:first-child { display: none; }
.nkl-overlay.mb-as-tab .chat-title { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.nkl-overlay.mb-as-tab .chat-title .p2-ico { display: inline-flex; color: var(--primary); }
.nkl-overlay.mb-as-tab .chat-subtitle { font-size: 12px; opacity: .6; }

/* ---------- Компактные окна «Изменить списание» и «Новая ТТК» — в духе основного интерфейса ---------- */
#wo-edit-overlay .overlay-box, #ttk-overlay .overlay-box { max-width: 380px !important; border-radius: 16px; }
#wo-edit-overlay .overlay-header, #ttk-overlay .overlay-header { padding: 11px 44px !important; min-height: 0 !important; }
#wo-edit-overlay .overlay-header h3, #ttk-overlay .overlay-header h3 { font-size: 16px; font-weight: 800; }
#wo-edit-overlay .overlay-header .overlay-x, #ttk-overlay .overlay-header .overlay-x { width: 32px; height: 32px; right: 8px !important; }
#wo-edit-overlay .overlay-body, #ttk-overlay .overlay-body { padding: 10px 12px 8px; }
#wo-edit-overlay .task-form-grid, #ttk-overlay .task-form-grid { gap: 8px; grid-template-columns: minmax(0, 1fr); }
#ttk-overlay .task-form-grid > * { min-width: 0; }
#wo-edit-overlay .task-form-grid label, #ttk-overlay .task-form-grid label { display: block; font-size: 11px; font-weight: 700; opacity: .65; margin: 0 0 3px 2px; }
#wo-edit-overlay .task-form-grid input, #wo-edit-overlay .task-form-grid .custom-select-trigger,
#ttk-overlay .task-form-grid input, #ttk-overlay .task-form-grid textarea {
    border-radius: 10px; padding: 0 11px; height: 40px; min-height: 40px; box-sizing: border-box; font-size: 16px; font-weight: 600;
}
#ttk-overlay .task-form-grid textarea { height: auto; padding: 8px 11px; font-size: 14px; font-weight: 500; }
#wo-edit-overlay .custom-select-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.wo-ef-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.wo-ef-row > div { min-width: 0; }
#wo-edit-overlay .overlay-actions, #ttk-overlay .ttk-modal-footer { padding: 4px 12px 12px; gap: 8px; border-top: 0; }
#wo-edit-overlay .overlay-actions .btn-main, #ttk-overlay .ttk-modal-footer .ttk-btn-cancel, #ttk-overlay .ttk-modal-footer .ttk-btn-save { height: 42px; min-height: 0; padding: 0 12px; font-size: 14px; border-radius: 12px; }
/* ТТК: подкатегории — одной прокручиваемой строкой, строки ингредиентов плотнее */
#ttk-overlay .ttk-cat-picker { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 4px; gap: 6px; }
#ttk-overlay .ttk-cat-picker::-webkit-scrollbar { display: none; }
#ttk-overlay .ttk-cat-picker > * { flex: 0 0 auto; white-space: nowrap; }
#ttk-overlay .ttk-cat-chip { padding: 6px 11px; font-size: 13px; }
#ttk-overlay .ttk-yield-row input { height: 40px; }
#ttk-overlay .ttk-ings { gap: 6px; }
#ttk-overlay .ttk-ing-row { padding: 6px !important; gap: 5px !important; border-radius: 12px; }
#ttk-overlay .ttk-ing-row input, #ttk-overlay .ttk-ing-row select { height: 36px; font-size: 15px; padding: 0 9px; border-radius: 9px; }
#ttk-overlay .ttk-ing-del { width: 36px; height: 36px; }
#ttk-overlay .ttk-ings-head { margin-bottom: 4px; }

/* ---------- История заказов: отправка — одна карточка, позиции раскрываются ---------- */
.oh-day { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 2px 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.oh-day small { font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none; opacity: .65; color: var(--text); }
.oh-card { margin-bottom: 6px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); overflow: hidden; }
.oh-card-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px 9px 12px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.oh-card-main, .oh-card-side { display: flex; flex-direction: column; min-width: 0; }
.oh-card-main { flex: 1 1 auto; }
.oh-card-side { flex: 0 0 auto; align-items: flex-end; }
.oh-card-head b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-card-head small { font-size: 11.5px; font-weight: 700; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oh-chev { flex: 0 0 auto; display: inline-flex; opacity: .55; transition: transform .2s ease; }
.oh-card.open .oh-chev { transform: rotate(180deg); }
.oh-items { padding: 2px 12px 8px; border-top: 1px dashed var(--border); }
.oh-it { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; }
.oh-it + .oh-it { border-top: 1px solid rgba(127, 127, 127, .12); }
.oh-it span { min-width: 0; overflow-wrap: anywhere; }
.oh-it b { flex: 0 0 auto; font-weight: 800; white-space: nowrap; }
.oh-items[hidden] { display: none; }

/* ---------- Журнал изменений: строки с фильтрами и кнопками меньше ---------- */
#activity-log-overlay .overlay-header { min-height: 46px !important; padding-top: calc(7px + env(safe-area-inset-top)) !important; padding-bottom: 7px !important; }
#activity-log-overlay .activity-log-filter-wrap { padding: 6px 10px 6px !important; }
#activity-log-overlay .activity-log-filter-grid { gap: 3px 6px !important; }
#activity-log-overlay .activity-log-filter-field { gap: 2px; }
#activity-log-overlay .activity-log-filter-label { min-height: 0 !important; font-size: 10px; line-height: 1.2; padding-left: 3px; }
#activity-log-overlay .activity-log-filter, #activity-log-overlay .activity-log-filter-field .mb-dt-trigger { min-height: 34px !important; height: 34px; padding: 3px 8px !important; font-size: 13px !important; border-radius: 10px !important; }
#activity-log-overlay .activity-log-filter-bottom { margin-top: 5px !important; }
#activity-log-overlay .alf-actions .btn-main { min-height: 34px !important; height: 34px; padding: 4px 10px !important; font-size: 12px !important; border-radius: 10px; }

.lbe-hint { font-size: 11.5px; opacity: .6; margin: 4px 2px 6px; line-height: 1.35; }

/* ======================= 1.9.4: «Зал» — брони и схема ======================= */
.hall-screen { display: flex; flex-direction: column; min-height: 0; }
.hall-seg { display: flex; gap: 4px; margin: 2px 12px 6px; padding: 3px; border-radius: 13px; background: rgba(127, 127, 127, .14); flex: 0 0 auto; }
.hall-seg button { flex: 1 1 0; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 6px; opacity: .72; transition: background .15s ease, opacity .15s ease; }
.hall-seg button.on { background: var(--card); color: var(--primary); opacity: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.hall-bar { display: flex; align-items: center; gap: 8px; padding: 2px 12px 8px; position: relative; flex: 0 0 auto; }
.hall-day { flex: 1 1 auto; min-width: 0; height: 38px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; overflow: hidden; }
.hall-day span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-day i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--primary); background: rgba(var(--primary-rgb), .12); border-radius: 8px; padding: 2px 6px; }
.hall-day-in, #hall-day-in-trigger { position: absolute !important; left: 50%; top: 0; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; }
.hall-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 0 12px 14px; overscroll-behavior: contain; }
.hall-foot { flex: 0 0 auto; padding: 8px 12px 10px; }
.hall-add { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.hall-find { position: relative; margin: 0 0 8px; }
.hall-find > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .55; display: inline-flex; pointer-events: none; }
.hall-q { width: 100%; box-sizing: border-box; height: 40px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 16px; padding: 0 12px 0 36px; -webkit-appearance: none; }
.hall-list { display: flex; flex-direction: column; gap: 7px; }
.hall-sep { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .55; margin: 10px 2px 0; }
.hall-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 38px 20px; opacity: .8; }
.hall-empty.small { padding: 22px 16px; font-size: 13.5px; }
.hall-empty b { font-size: 15.5px; }
.hall-empty span { font-size: 13px; opacity: .8; }

/* карточка брони */
.hb { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--card); cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.hb:active { background: rgba(var(--primary-rgb), .08); }
.hb.st-cancel, .hb.st-noshow { opacity: .62; }
.hb.st-cancel .hb-n b { text-decoration: line-through; }
.hb.st-seat { border-color: rgba(239, 68, 68, .55); }
.hb.st-conf { border-color: rgba(34, 197, 94, .5); }
.hb-t { flex: 0 0 auto; min-width: 50px; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.05; text-align: center; }
.hb-t small { display: block; font-size: 11px; font-weight: 700; opacity: .6; margin-top: 2px; }
.hb-m { flex: 1 1 auto; min-width: 0; }
.hb-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-n b { font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hb-g { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 800; color: var(--primary); }
.hb-s, .hb-c { font-size: 12.5px; opacity: .7; overflow-wrap: anywhere; }
.hb-c { font-style: italic; }
.hb-pill { flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 9px; border: 1px solid rgba(234, 179, 8, .55); background: rgba(234, 179, 8, .18); white-space: nowrap; }
.hb-pill.st-conf { border-color: rgba(34, 197, 94, .55); background: rgba(34, 197, 94, .17); }
.hb-pill.st-seat { border-color: rgba(239, 68, 68, .55); background: rgba(239, 68, 68, .16); }
.hb-pill.st-noshow, .hb-pill.st-cancel { border-color: rgba(127, 127, 127, .45); background: rgba(127, 127, 127, .15); }
.hall-tp .hb-pill { display: none; }

/* чипы и поля форм зала */
.hall-chip { height: 36px; padding: 0 12px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; flex: 0 0 auto; }
.hall-chip.on { background: rgba(var(--primary-rgb), .14); border-color: var(--primary); }
.hall-chip small { font-size: 10.5px; opacity: .65; font-weight: 700; }
.hall-chip.tb { min-width: 46px; }
.hall-chip.tb.busy { border-style: dashed; border-color: rgba(239, 68, 68, .75); }
.hall-chip.tb.busy.on { color: #ef4444; background: rgba(239, 68, 68, .12); }
.hall-chip.st-wait.on { border-color: #ca8a04; color: inherit; background: rgba(234, 179, 8, .2); }
.hall-chip.st-conf.on { border-color: #16a34a; color: inherit; background: rgba(34, 197, 94, .2); }
.hall-chip.st-seat.on { border-color: #dc2626; color: inherit; background: rgba(239, 68, 68, .2); }
.hall-chip.st-noshow.on, .hall-chip.st-cancel.on { border-color: #6b7280; color: inherit; background: rgba(127, 127, 127, .22); }
.hall-sheet-bg { z-index: 10080; }
.hall-sheet { max-height: 88%; max-height: min(88vh, 100%); max-height: min(88dvh, 100%); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.hf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px 10px; margin-top: 8px; }
.hf-f { min-width: 0; }
.hf-f.full { grid-column: 1 / -1; }
.hf-f > span { display: block; font-size: 12px; font-weight: 700; opacity: .7; margin: 0 0 4px 2px; }
.hf-f .mb-dt-trigger, .hf-f .custom-select-trigger { width: 100%; height: 46px; box-sizing: border-box; }
.hf-quick { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; margin-top: -4px; }
.hf-quick.wrap { flex-wrap: wrap; overflow: visible; margin-top: 10px; }
.hf-step { display: flex; align-items: center; gap: 8px; }
.hf-step button { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 22px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.hf-step input, .hf-step b { flex: 1 1 auto; min-width: 0; width: 100%; box-sizing: border-box; text-align: center; height: 44px; line-height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 18px; font-weight: 800; padding: 0; -webkit-appearance: none; }
.hf-step b { border-color: transparent; background: transparent; }
.hf-tbls, .hf-sts { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-none { font-size: 12.5px; opacity: .6; }
.hf-warn { display: block; font-size: 12px; font-weight: 700; color: #dc2626; margin-top: 4px; min-height: 0; }
.hf-warn:empty { display: none; }

/* схема */
.hall-time { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }
.hall-tstep { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 11px; background: var(--card); overflow: hidden; }
.hall-tstep.on { border-color: var(--primary); }
.hall-tstep button { height: 33px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 800; font-size: 13px; padding: 0 9px; display: inline-flex; align-items: center; }
.hall-tstep.on .hall-tval { color: var(--primary); }
.hall-cvwrap { --u: 20px; --ux: var(--u); --uy: var(--u); overflow-x: auto; overflow-y: hidden; border-radius: 14px; border: 1.5px solid var(--border); background: var(--card); -webkit-overflow-scrolling: touch; }
.hall-cv { position: relative; max-width: none; background: var(--bg); }
.hall-cv.edit { background-image: radial-gradient(circle, rgba(127, 127, 127, .42) 1px, transparent 1.6px); background-size: var(--u) var(--u); background-position: calc(var(--u) / 2) calc(var(--u) / 2); }
.hl-e { position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: calc(var(--u) * .62); transform-origin: 50% 50%; border: 2px solid rgba(127, 127, 127, .55); background: var(--card); color: var(--text); -webkit-user-select: none; -webkit-touch-callout: none; }
.hl-in { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; pointer-events: none; max-width: 100%; overflow: hidden; }
.hl-in b { font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-in i { font-style: normal; font-size: .62em; opacity: .65; font-weight: 700; }
.hl-in em { font-style: normal; font-size: .55em; font-weight: 800; }
.hl-round { border-radius: 50%; }
.hl-square { border-radius: 18%; }
.hl-rect { border-radius: 14%; }
.hl-round, .hl-square, .hl-rect { box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.hl-e.st-book { background: rgba(234, 179, 8, .38); border-color: #ca8a04; }
.hl-e.st-conf { background: rgba(34, 197, 94, .34); border-color: #16a34a; }
.hl-e.st-seat { background: rgba(239, 68, 68, .36); border-color: #dc2626; }
.hl-e.picked { outline: 2.5px solid var(--primary); outline-offset: 2px; z-index: 3; }
.hl-bar { background: rgba(146, 108, 72, .38); border-color: rgba(146, 108, 72, .85); border-radius: 8px; }
.hl-sofa { background: rgba(var(--primary-rgb), .2); border-color: rgba(var(--primary-rgb), .6); border-radius: 12px; }
.hl-wall { background: rgba(127, 127, 127, .85); border: 0; border-radius: 2px; }
.hl-door { background: rgba(34, 197, 94, .4); border-color: #16a34a; border-radius: 4px; font-size: calc(var(--u) * .45); }
.hl-stage { background: rgba(168, 85, 247, .22); border-color: rgba(168, 85, 247, .65); border-radius: 10px; }
.hl-plant { background: rgba(34, 197, 94, .32); border-color: rgba(22, 163, 74, .7); border-radius: 50%; }
.hl-text { background: transparent; border: 0; font-size: calc(var(--u) * .7); }
.hl-text .hl-in b { overflow: visible; }
.hall-cv.edit .hl-e { touch-action: none; cursor: grab; }
.hall-cv.edit .hl-text { border: 1px dashed rgba(127, 127, 127, .5); }
.hl-e.sel { outline: 2.5px solid var(--primary); outline-offset: 2px; z-index: 5; }
.hl-h { position: absolute; right: -9px; bottom: -9px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 3px solid var(--card); box-sizing: border-box; touch-action: none; cursor: nwse-resize; z-index: 6; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.hl-h::after { content: ""; position: absolute; inset: -12px; }
.hall-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 700; opacity: .85; margin: 8px 2px 4px; }
.hall-leg span { display: inline-flex; align-items: center; gap: 6px; }
.hall-leg i { width: 14px; height: 14px; border-radius: 5px; border: 2px solid rgba(127, 127, 127, .55); background: var(--card); box-sizing: border-box; }
.hall-leg i.lg-book { background: rgba(234, 179, 8, .38); border-color: #ca8a04; }
.hall-leg i.lg-conf { background: rgba(34, 197, 94, .34); border-color: #16a34a; }
.hall-leg i.lg-seat { background: rgba(239, 68, 68, .36); border-color: #dc2626; }
.hall-tp { margin-top: 8px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--card); display: flex; flex-direction: column; gap: 7px; }
.hall-tp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hall-tp-h b { font-size: 15.5px; }
.hall-tp-h span, .hall-tp-e { font-size: 12.5px; opacity: .65; }
.hall-tp-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.hall-hint { font-size: 11.5px; opacity: .6; margin: 8px 2px 0; }

/* редактор схемы */
.hall-tools { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 0 8px; }
.hall-tool { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 76px; height: 58px; padding: 4px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; }
.hall-tool:active { background: rgba(var(--primary-rgb), .12); border-color: var(--primary); }
.hall-tool span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk { display: inline-block; width: 22px; height: 16px; border: 2px solid currentColor; box-sizing: border-box; opacity: .85; }
.tk-round { width: 18px; height: 18px; border-radius: 50%; }
.tk-square { width: 17px; height: 17px; border-radius: 4px; }
.tk-rect { width: 24px; height: 15px; border-radius: 4px; }
.tk-bar { width: 26px; height: 11px; border-radius: 3px; background: rgba(146, 108, 72, .5); }
.tk-sofa { width: 24px; height: 11px; border-radius: 6px; }
.tk-wall { width: 26px; height: 5px; background: currentColor; border-radius: 1px; }
.tk-door { width: 20px; height: 7px; border-color: #16a34a; background: rgba(34, 197, 94, .4); }
.tk-stage { width: 24px; height: 15px; border-radius: 4px; border-color: rgba(168, 85, 247, .8); background: rgba(168, 85, 247, .22); }
.tk-plant { width: 15px; height: 15px; border-radius: 50%; border-color: #16a34a; background: rgba(34, 197, 94, .35); }
.tk-text { width: 22px; height: 16px; border-style: dashed; border-width: 1.5px; }
.hall-props { margin-top: 10px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--card); display: flex; flex-direction: column; gap: 9px; }
.hall-props.hint { font-size: 12.5px; opacity: .75; line-height: 1.4; }
.hp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hp-h b { font-size: 15px; }
.hp-x { width: 32px; height: 32px; border-radius: 10px; border: 0; background: rgba(127, 127, 127, .14); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.hp-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.hp-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hp-f > span { font-size: 11.5px; font-weight: 700; opacity: .65; margin-left: 2px; }
.hp-f .sch-in { height: 42px; width: 120px; }
.hp-f .hf-step button { width: 40px; height: 40px; }
.hp-f .hf-step b { width: 34px; flex: 0 0 auto; height: 40px; line-height: 40px; }
.hp-btns { display: flex; gap: 6px; }
.hp-btns button { min-width: 44px; height: 40px; padding: 0 8px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.hp-btns button:active { background: rgba(var(--primary-rgb), .14); border-color: var(--primary); }
.hp-acts { gap: 8px; flex-wrap: nowrap; }
.hp-acts .btn-main { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 8px; font-size: 13.5px; }
/* при правке схемы вкладки и выбор дня убираются — больше места под схему */
.hall-overlay.is-edit .hall-bar, .hall-overlay.is-edit .hall-seg { display: none; }

/* ======================= 1.9.4: iPhone / Safari ======================= */
/* Текст не раздувается при повороте экрана */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Приложение на экране «Домой» (полноэкранный режим, прозрачная строка состояния): шапка и поиск ниже «чёлки»/часов, по бокам — вырезы */
body { padding-top: 15px; padding-top: max(15px, env(safe-area-inset-top, 0px)); padding-left: 15px; padding-left: max(15px, env(safe-area-inset-left, 0px)); padding-right: 15px; padding-right: max(15px, env(safe-area-inset-right, 0px)); }
/* iOS: свои стили полей и кнопок вместо системных (внутренняя тень, скругление, градиент) */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), textarea { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-results-button { -webkit-appearance: none; display: none; }
button, [role="button"], .tab-btn, .tabs-drawer-btn { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
