/* Дизайн-система OkLand (класи .ok-*) для диспетчерської: змінні, шрифт значків і компоненти.
   Компоненти перенесено з design/okland-bundle.css без змін; змінні — з design/ok-vars.css.
   Шрифт Inter не підвантажується: стек --font бере системний шрифт. */

/* ── Шрифт значків Material Symbols Outlined (шлях відносно цього файлу, тож працює під /dispatch/static/) ── */
@font-face{font-family:"Material Symbols Outlined";src:url("fonts/MaterialSymbolsOutlined.70b385175d52.woff2") format("woff2");font-weight:300;font-style:normal;font-display:block}

/* ── Змінні OkLand Portal ─────────────────────────────────────────── */
:root{
  --bg:#f2f2f4;--surface:#ffffff;--surface-2:#fafafb;--surface-3:#eeeef1;--hair:#ececef;--hair-strong:#d8d8dd;
  --fg:#1c1c1e;--fg-2:#48484a;--muted:#76767b;--blue:#0071e3;--blue-hover:#0064c8;--blue-text:#0062c4;--blue-soft:#eaf3fd;
  --green:#1d7a4d;--amber:#8a5a00;--red:#c0342b;--gray:#8a8a8e;--red-soft:#fbeae9;--err-bg:#fbe4e1;
  --space-4:16px;--row-py:15px;--cell-px:18px;--pad:32px;
  --r-sm:8px;--r-md:10px;--r-lg:12px;--radius:16px;--r-xl:18px;--r-pill:999px;
  --card:0 1px 2px rgba(0,0,0,.05);--pop:0 10px 28px rgba(20,22,26,.14);
}


/* ── Токени ─────────────────────────────────────────────────────── */
:root{
  /* Кольори, радіуси, тіні, --row-py, --pad — у tokens.json (tokens.css). Тут лише те, чого токени не оголошують. */
  --base:16px; --small:14px;
  --font:"SF Pro Text","SF Pro Display","SF Pro",-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0}
body{background:var(--bg);color:var(--fg);font-family:var(--font);font-size:var(--base);line-height:1.45;letter-spacing:-.01em;-webkit-font-smoothing:antialiased}
input,button,select,textarea{font:inherit;color:inherit;letter-spacing:inherit;line-height:1.45}
a{color:var(--blue-text);text-decoration:none} a:hover{color:var(--blue-hover)}
:focus-visible{outline:3px solid rgba(0,113,227,.55);outline-offset:2px;border-radius:6px}
::placeholder{color:var(--muted);opacity:1}
.ok-ico{font-family:'Material Symbols Outlined';font-weight:300;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;direction:ltr;font-feature-settings:'liga';font-size:20px;display:inline-block;flex:0 0 auto}
.ok-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.ok-muted{color:var(--muted)}

/* ── Сторінка ──────────────────────────────────────────────────── */
.ok-page{display:flex;flex-direction:column;gap:22px;padding:28px var(--pad) 48px}   /* без max-width! */
.ok-h1{margin:0;font-size:34px;font-weight:600;letter-spacing:-.03em;line-height:1.1}
.ok-sub{margin:6px 0 0;font-size:15px;color:var(--muted)}
.ok-section{display:flex;flex-direction:column;gap:11px}
.ok-section__head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.ok-section__title{margin:0;font-size:16px;font-weight:500;letter-spacing:-.02em}
.ok-section__note{font-size:12.5px;font-weight:500;color:var(--fg-2)}
.ok-card{background:var(--surface);border:1px solid var(--hair);border-radius:var(--radius);box-shadow:var(--card)}

/* ── Кнопки (ховер НІКОЛИ не змінює радіус/форму) ──────────────── */
.ok-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 14px;border:1px solid var(--hair-strong);border-radius:var(--r-md);background:var(--surface);color:var(--fg);font-size:13.5px;font-weight:500;white-space:nowrap;cursor:pointer;text-decoration:none}
.ok-btn:hover{background:var(--surface-3);color:var(--fg)}
.ok-btn .ok-ico{font-size:18px}
.ok-btn--primary{background:var(--blue);border-color:var(--blue);color:#fff;padding:0 16px}
.ok-btn--primary:hover{background:var(--blue-hover);border-color:var(--blue-hover);color:#fff}
.ok-btn--gray{background:var(--surface-3);border-color:transparent}
.ok-btn--gray:hover{background:var(--hair-strong)}
.ok-btn--danger{color:var(--red)} .ok-btn--danger:hover{background:var(--red-soft);color:var(--red)}
.ok-btn--danger-solid{background:var(--red);border-color:var(--red);color:#fff} .ok-btn--danger-solid:hover{filter:brightness(.93);background:var(--red);color:#fff}
.ok-btn--sm{height:36px;border-radius:9px;padding:0 14px} .ok-btn--sm .ok-ico{font-size:17px}
.ok-btn--lg{height:40px;padding:0 20px;font-size:var(--small)}
.ok-btn[disabled],.ok-btn[aria-disabled="true"]{background:var(--surface-3);border-color:transparent;color:var(--muted);cursor:not-allowed}
.ok-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:var(--r-sm);background:var(--surface-3);color:var(--fg);font-size:13.5px;font-weight:500;white-space:nowrap;cursor:pointer}
.ok-chip:hover{background:var(--hair-strong)}
.ok-more{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:var(--r-sm);background:var(--surface-3);cursor:pointer}
.ok-more:hover,.ok-more[aria-expanded="true"]{background:var(--hair-strong)}
.ok-back{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 8px;border:1px solid var(--hair);border-radius:10px;background:var(--surface);color:var(--fg);font-size:13.5px;font-weight:500;cursor:pointer;text-decoration:none}
.ok-back:hover{background:var(--surface-3);color:var(--fg)}
.ok-back .ok-ico{font-size:20px}
.ok-link-row{border:0;background:none;padding:0;color:var(--fg);font:inherit;text-align:left;cursor:pointer}   /* назва запису: темна, синіє на ховері */
.ok-link-row:hover{color:var(--blue-text)}

/* ── Статус: крапка 12×12, ЗАВЖДИ кругла ──────────────────────── */
.ok-status{display:inline-flex;align-items:center;gap:8px;font-size:15px;color:var(--fg);line-height:1.4}
.ok-dot{width:12px;height:12px;min-width:12px;flex:0 0 12px;border-radius:50%;background:var(--gray);display:inline-block}
.ok-dot--green{background:var(--green)} .ok-dot--amber{background:var(--amber)} .ok-dot--red{background:var(--red)}
.ok-dot--blue{background:var(--blue)} .ok-dot--gray{background:var(--gray)} .ok-dot--off{background:var(--hair-strong)}
.ok-plate{display:inline-block;font-size:14px;font-weight:600;letter-spacing:.04em;font-variant-numeric:tabular-nums;padding:3px 9px;border:1px solid var(--hair-strong);border-radius:7px;white-space:nowrap}

/* ── Таблиця: CSS-сітка, ОДИН grid-template на шапку й рядки ──────
   Ширини колонок задаються ЛИШЕ через --cols на .ok-grid (значення з макета).
   Жодних <table> з auto layout — через це й «гуляють» колонки. */
.ok-grid{display:grid;grid-template-columns:var(--cols);align-items:stretch;font-size:15px;min-width:0}
.ok-grid__scroll{overflow-x:auto}
.ok-th{padding:12px 26px 12px 0;font-size:12.5px;font-weight:500;color:var(--fg-2);background:var(--surface-2);text-align:left;white-space:nowrap}
.ok-td{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;min-width:0;padding:calc(var(--row-py) + 3px) 26px calc(var(--row-py) + 3px) 0;border-top:1px solid var(--hair)}
.ok-th:first-child,.ok-row>.ok-td:first-child,.ok-td--first{padding-left:18px}
.ok-th--last,.ok-td--last{padding-right:18px}
.ok-td--actions{flex-direction:row;align-items:center;justify-content:flex-end;gap:6px}   /* підпис «Дії» — ліворуч, вміст — праворуч */
.ok-td__main{font-size:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.ok-td__main--strong{font-weight:500}
.ok-td__sub{font-size:12.5px;color:var(--muted);max-width:100%}
.ok-row{display:contents}
.ok-row--group>.ok-td{grid-column:1/-1;padding:12px 18px;font-size:12.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;background:var(--surface-2)}
.ok-table-foot{display:flex;align-items:center;gap:12px;padding:13px 18px;border-top:1px solid var(--hair);font-size:13px;color:var(--muted)}
.ok-empty{padding:40px 24px;text-align:center;font-size:var(--small);color:var(--muted);border-top:1px solid var(--hair)}

/* ── Тулбар, пошук, сегмент, вкладки ───────────────────────────── */
.ok-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ok-toolbar__right{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.ok-search{display:flex;align-items:center;gap:9px;height:38px;padding:0 13px;border:1px solid var(--hair);border-radius:var(--r-md);background:var(--surface);flex:1;min-width:240px;max-width:360px}
.ok-search input{border:0;outline:0;background:none;width:100%;font-size:var(--small)}
.ok-search .ok-ico{font-size:19px;color:var(--muted)}
.ok-seg{display:inline-flex;flex-wrap:wrap;gap:2px;padding:3px;background:var(--surface-3);border-radius:var(--r-md);align-self:flex-start}
.ok-seg>button,.ok-seg>a{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 13px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--fg);font-size:13.5px;font-weight:400;cursor:pointer;text-decoration:none}
.ok-seg>[aria-selected="true"],.ok-seg>.is-active{background:var(--surface);font-weight:500;box-shadow:0 1px 3px rgba(20,22,26,.16),0 0 0 1px var(--hair)}
.ok-seg>[aria-selected="true"]::before,.ok-seg>.is-active::before{content:"check";font-family:'Material Symbols Outlined';font-size:16px;line-height:1;color:var(--blue);margin-left:-2px}
.ok-seg .ok-count{opacity:.6;font-variant-numeric:tabular-nums}
.ok-tabs{display:flex;gap:26px;flex-wrap:wrap;border-bottom:1px solid var(--hair)}
.ok-tabs>a,.ok-tabs>button{height:40px;padding:0 0 2px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;display:inline-flex;align-items:center;gap:7px;font-size:15px;color:var(--fg);cursor:pointer;text-decoration:none}
.ok-tabs>.is-active,.ok-tabs>[aria-selected="true"]{border-bottom-color:var(--blue);font-weight:500}

/* ── Поля форм ─────────────────────────────────────────────────── */
.ok-field{display:flex;flex-direction:column;gap:6px}
.ok-label{font-size:13px;font-weight:500;color:var(--fg-2)}
.ok-label small{font-size:inherit;font-weight:400;color:var(--muted)}
.ok-hint{font-size:12.5px;color:var(--muted)}
.ok-input,.ok-textarea{width:100%;height:40px;padding:0 12px;border:1px solid var(--hair-strong);border-radius:var(--r-md);background:var(--surface);font-size:15px;outline:0}
.ok-textarea{height:auto;min-height:64px;padding:10px 12px;resize:vertical}
.ok-input:focus,.ok-textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}
.ok-input[type="tel"]{font-variant-numeric:tabular-nums}
.ok-form{display:flex;flex-direction:column;gap:14px}
.ok-row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.ok-error{padding:11px 13px;border-radius:var(--r-md);background:var(--err-bg);color:var(--red);font-size:13px;line-height:1.5}
.ok-radio-group{display:flex;gap:22px;flex-wrap:wrap}
.ok-radio{display:inline-flex;align-items:center;gap:9px;font-size:15px;cursor:pointer}
.ok-radio input{appearance:none;-webkit-appearance:none;margin:0;width:20px;height:20px;flex:0 0 20px;border:2px solid var(--hair-strong);border-radius:50%;background:var(--surface);display:inline-grid;place-content:center;cursor:pointer}
.ok-radio input:checked{border-color:var(--blue)}
.ok-radio input:checked::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--blue)}
.ok-check{appearance:none;-webkit-appearance:none;margin:0;width:18px;height:18px;flex:0 0 18px;border:1.5px solid var(--hair-strong);border-radius:5px;background:var(--surface);display:inline-grid;place-content:center;cursor:pointer}
.ok-check:checked{background:var(--blue);border-color:var(--blue)}
.ok-check:checked::after{content:"check";font-family:'Material Symbols Outlined';font-size:15px;color:#fff;line-height:1}

/* ── Дропдаун (JS автоматично замінює КОЖЕН <select>) ──────────── */
.ok-dd{position:relative;display:block;width:100%}
.ok-dd>select{position:absolute!important;inset:0;opacity:0;pointer-events:none;width:100%;height:100%}
.ok-dd__btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:40px;padding:0 10px 0 12px;border:1px solid var(--hair-strong);border-radius:var(--r-md);background:var(--surface);font-size:15px;color:var(--fg);text-align:left;cursor:pointer}
.ok-dd__btn:hover{background:var(--surface-2)}
.ok-dd__btn:focus-visible,.ok-dd.is-open .ok-dd__btn{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft);outline:0}
.ok-dd__btn::after{content:"expand_more";font-family:'Material Symbols Outlined';font-size:20px;line-height:1;color:var(--muted)}
.ok-dd__val{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ok-dd.is-placeholder .ok-dd__val{color:var(--muted)}
.ok-dd.is-disabled .ok-dd__btn{background:var(--surface-2);color:var(--muted);cursor:not-allowed}
.ok-dd__panel{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:90;max-height:320px;overflow:auto;padding:4px;background:var(--surface);border:1px solid var(--hair-strong);border-radius:10px;box-shadow:var(--pop);display:none}
.ok-dd.is-open .ok-dd__panel{display:block}
.ok-dd.is-up .ok-dd__panel{top:auto;bottom:calc(100% + 6px)}
.ok-dd__opt{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:var(--r-sm);background:none;font-size:15px;color:var(--fg);text-align:left;cursor:pointer}
.ok-dd__opt:hover,.ok-dd__opt.is-hover{background:var(--surface-3)}
.ok-dd__opt[aria-selected="true"]::after{content:"check";font-family:'Material Symbols Outlined';font-size:18px;line-height:1;color:var(--blue)}
.ok-dd__opt[disabled]{color:var(--muted);cursor:not-allowed}
.ok-dd--inline{display:inline-block;width:auto} .ok-dd--inline .ok-dd__btn{height:34px;font-size:13.5px;font-weight:500;border-radius:9px} .ok-dd--inline .ok-dd__panel{right:auto;min-width:220px}

/* ── Модалка ───────────────────────────────────────────────────── */
.ok-scrim{position:fixed;inset:0;z-index:60;display:none;align-items:flex-start;justify-content:center;padding:24px;overflow-y:auto;overscroll-behavior:contain;background:rgba(0,0,0,.3);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.ok-scrim.is-open{display:flex;animation:okFade .12s ease-out}
.ok-modal{width:100%;max-width:520px;margin:max(24px,8vh) 0 24px;background:var(--surface);border-radius:18px;display:flex;flex-direction:column;animation:okSheet .18s ease-out}
.ok-modal--sm{max-width:480px} .ok-modal--lg{max-width:720px}
.ok-modal__head{display:flex;align-items:flex-start;gap:12px;padding:22px 24px 6px}
.ok-modal__title{flex:1;margin:0;font-size:19px;font-weight:600;letter-spacing:-.02em;min-width:0}
.ok-modal__subtitle{display:block;margin-top:3px;font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0}
.ok-modal__x{width:32px;height:32px;flex:0 0 32px;border:0;background:none;border-radius:var(--r-sm);display:inline-flex;align-items:center;justify-content:center;color:var(--fg-2);cursor:pointer}
.ok-modal__x:hover{background:var(--surface-3)} .ok-modal__x::before{content:"close";font-family:'Material Symbols Outlined';font-size:20px}
.ok-modal__body{padding:12px 24px 4px;display:flex;flex-direction:column;gap:16px;font-size:14.5px;line-height:1.55;color:var(--fg-2)}
.ok-modal__foot{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:18px 24px 22px}
.ok-modal__foot--split{padding:0;gap:0;border-top:1px solid var(--hair);margin-top:16px}   /* варіант «на всю ширину» */
.ok-modal__foot--split>button{flex:1;height:52px;border:0;background:none;font-size:17px;color:var(--blue-text);cursor:pointer}
.ok-modal__foot--split>button+button{border-left:1px solid var(--hair);font-weight:500}
.ok-modal__foot--split>button:hover{background:var(--surface-2)}
.ok-modal__foot--split>.is-danger{color:var(--red)} .ok-modal__foot--split>.is-danger:hover{background:var(--red-soft)}
.ok-box{border:1px solid var(--hair);border-radius:12px;padding:0 16px}
.ok-box--state{display:flex;align-items:center;gap:14px;padding:14px 16px}
.ok-facts>div{display:flex;align-items:baseline;gap:12px;padding:12px 0;color:var(--fg);font-size:15px}
.ok-facts>div+div{border-top:1px solid var(--hair)}
.ok-facts dt,.ok-facts>div>span:first-child{flex:0 0 120px;font-size:13.5px;font-weight:500;color:var(--fg-2)}
.ok-facts dd{margin:0;flex:1;min-width:0}
.ok-code{margin:0;padding:14px 16px;background:var(--surface-2);border:1px solid var(--hair);border-radius:10px;font-family:var(--mono);font-size:14px;line-height:1.7;color:var(--fg);white-space:pre-wrap;word-break:break-word}
body.ok-lock{overflow:hidden}

/* ── Тости ─────────────────────────────────────────────────────── */
.ok-toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:100;display:flex;flex-direction:column;gap:10px;align-items:center;pointer-events:none}
.ok-toast{pointer-events:auto;display:flex;align-items:center;gap:10px;max-width:460px;padding:12px 16px;border-radius:14px;background:rgba(28,28,30,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#fff;font-size:14px;box-shadow:0 10px 34px rgba(0,0,0,.28);animation:okToast .2s ease-out}
.ok-toast .ok-ico{font-size:20px;color:#5ee08a}
.ok-toast--info .ok-ico{color:#7ec8ff} .ok-toast--warn .ok-ico{color:#ffcf70} .ok-toast--err .ok-ico{color:#ff8a80}
.ok-toast__x{margin-left:4px;border:0;background:none;color:rgba(255,255,255,.7);cursor:pointer;font-family:'Material Symbols Outlined';font-size:18px}
.ok-toast.is-out{opacity:0;transform:translateY(8px);transition:.2s}

/* ── Дзвіночок ─────────────────────────────────────────────────── */
.ok-bell{position:relative;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--hair-strong);border-radius:50%;background:var(--surface);color:var(--fg);cursor:pointer}
.ok-bell:hover,.ok-bell[aria-expanded="true"]{background:var(--surface-3)}
.ok-bell>.ok-ico{font-size:21px;transform-origin:50% 12%}
.ok-bell__count{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #fff}
.ok-bell__count:empty{display:none}
.ok-bell.is-ringing>.ok-ico{animation:okRing .82s ease-in-out}
.ok-bell.is-ringing .ok-bell__count{animation:okPop .52s cubic-bezier(.2,.8,.2,1)}
.ok-bell.is-ringing{animation:okHalo .9s ease-out 2}

/* ── Плашка повітряної тривоги (Пост) ──────────────────────────── */
.ok-alarm{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:15px 18px;background:var(--surface);border:1px solid var(--hair);border-radius:var(--radius);box-shadow:var(--card)}
.ok-alarm__state{display:inline-flex;align-items:center;gap:9px;min-width:0;flex:1 1 260px;flex-wrap:nowrap;font-size:16px;font-weight:500;letter-spacing:-.015em}
.ok-alarm__time{font-size:13px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums;letter-spacing:0}
.ok-alarm__pill{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:4px 12px 4px 10px;border-radius:999px;background:var(--red);color:#fff;font-size:12.5px;font-weight:500;letter-spacing:.01em}
.ok-alarm__pill::before{content:"";width:6px;height:6px;border-radius:50%;background:#fff;animation:okPulse 1.4s ease-in-out infinite}
.ok-alarm__side{margin-left:auto;display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--fg-2)}
.ok-alarm__side .ok-ico{font-size:18px;color:var(--green)}
.ok-emerg{margin-left:auto;display:inline-flex;align-items:center;gap:11px;min-height:48px;padding:7px 18px 7px 14px;border:1.5px solid var(--red);border-radius:11px;background:var(--surface);color:var(--fg);text-align:left;cursor:pointer;transition:background .15s,box-shadow .15s,transform .15s}
.ok-emerg:hover{background:var(--red-soft);box-shadow:0 4px 14px rgba(200,40,30,.18),0 0 0 3px rgba(200,40,30,.10);transform:translateY(-1px)}
.ok-emerg:active{transform:none;box-shadow:0 1px 4px rgba(200,40,30,.2)}
.ok-emerg>.ok-ico{font-size:24px;color:var(--red)}
.ok-emerg b{display:block;font-size:15px;font-weight:600;letter-spacing:-.01em}
.ok-emerg small{display:block;font-size:12.5px;opacity:.9}

/* ── Пост: показники, плитки шлагбаумів/дверей ─────────────────── */
.ok-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1px;background:var(--hair);border:1px solid var(--hair);border-radius:var(--radius);overflow:hidden}
.ok-tile{display:flex;flex-direction:column;gap:6px;padding:18px;background:var(--surface)}
.ok-tile__title{font-size:13.5px;color:var(--muted)}
.ok-tile__num{font-size:30px;font-weight:400;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1.1}
.ok-tile__note{font-size:13px;color:var(--muted)}
.ok-gates{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.ok-gate{display:flex;flex-direction:column;align-items:center;gap:9px;padding:20px 14px 17px;border:1px solid var(--hair-strong);border-radius:12px;background:var(--surface);color:var(--fg);cursor:pointer;font:inherit;text-align:center}
.ok-gate:hover{border-color:var(--blue);background:var(--blue-soft)}
.ok-gate__ico{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;background:var(--surface-3)}
.ok-gate__ico .ok-ico{font-size:22px;color:var(--fg-2)}
.ok-gate__name{font-size:var(--small);font-weight:500;line-height:1.3;overflow-wrap:anywhere}
.ok-gate__sub{font-size:12.5px;color:var(--muted)}

@keyframes okFade{from{opacity:0}to{opacity:1}}
@keyframes okSheet{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes okToast{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes okPulse{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes okRing{0%{transform:rotate(0)}15%{transform:rotate(-18deg)}30%{transform:rotate(15deg)}45%{transform:rotate(-11deg)}60%{transform:rotate(7deg)}80%{transform:rotate(-3deg)}100%{transform:rotate(0)}}
@keyframes okPop{0%{transform:scale(.4)}45%{transform:scale(1.35)}75%{transform:scale(.92)}100%{transform:scale(1)}}
@keyframes okHalo{from{box-shadow:0 0 0 0 rgba(0,113,227,.45)}to{box-shadow:0 0 0 12px rgba(0,113,227,0)}}
@media (prefers-reduced-motion:reduce){.ok-bell.is-ringing,.ok-bell.is-ringing>.ok-ico,.ok-bell.is-ringing .ok-bell__count,.ok-alarm__pill::before{animation:none}}

@media (max-width:700px){
  :root{--pad:16px}
  .ok-toasts{left:0;right:0;transform:none;bottom:calc(74px + env(safe-area-inset-bottom));padding:0 14px;align-items:stretch}
  .ok-toast{max-width:none;border-radius:16px;align-items:flex-start;padding:13px 14px}
  .ok-scrim{align-items:flex-end;padding:0}
  .ok-modal{margin:0;border-radius:20px 20px 0 0;max-height:88vh;overflow:auto;padding-bottom:env(safe-area-inset-bottom)}
  .ok-gates{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ok-emerg,.ok-alarm__side{margin-left:0;width:100%}
  .ok-row2{grid-template-columns:1fr}
}

/* ── Заглушки «скоро» (з patterns/Заглушки Скоро.dc.html) ─────── */
.ok-soon{font-size:12px;color:var(--muted)}
.ok-soon-pill{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px;border-radius:999px;background:var(--surface-3);color:var(--fg-2);font-size:12.5px;font-weight:500}
.ok-soon-pill::before{content:"";width:7px;height:7px;border-radius:999px;background:var(--hair-strong)}
.ok-soon-block{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px;border:1px dashed var(--hair-strong);border-radius:12px;background:var(--surface-2)}
.ok-btn--soon{background:var(--surface);border-color:var(--hair-strong);color:var(--muted);cursor:not-allowed}
.ok-btn--soon:hover{background:var(--surface);color:var(--muted)}
