/* ARS-X 3.6 — быстрое создание «+», плашка «нет связи», блокировка приложения, крупные кнопки звонка. */
#arsx36-fab { display: none; }
@media (max-width: 760px) {
  #arsx36-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 70;
    width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; font-size: 30px; line-height: 1;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .28); cursor: pointer; }
  #arsx36-fab span { transform: translateY(-1px); }
  #arsx36-fab:active { transform: scale(.94); }
  /* звонок клиенту одним нажатием: ссылки tel: — крупная зона нажатия */
  a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .contact-line { min-height: 44px; }
}

#arsx36-offline { position: fixed; left: 50%; transform: translateX(-50%); top: calc(8px + env(safe-area-inset-top)); z-index: 200; max-width: calc(100vw - 24px);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; box-shadow: 0 4px 14px rgba(16, 24, 40, .25); }
#arsx36-offline.is-offline { background: #b45309; }
#arsx36-offline.is-sync { background: var(--brand); }

.arsx36-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(15, 23, 42, .5); display: flex; align-items: flex-end; justify-content: center; }
.arsx36-sheet { width: min(520px, 100%); max-height: 88vh; overflow-y: auto; background: var(--surface); color: var(--text);
  border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); }
@media (min-width: 761px) { .arsx36-backdrop { align-items: center; } .arsx36-sheet { border-radius: 18px; } }
.arsx36-sheet h3 { margin: 0 0 12px; font-size: 18px; }
.arsx36-menu { display: grid; gap: 8px; }
.arsx36-menu button, .arsx36-list button { display: grid; gap: 2px; text-align: left; width: 100%; padding: 12px 14px; min-height: 52px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface-2, var(--bg)); color: var(--text); font: inherit; cursor: pointer; }
.arsx36-menu button small, .arsx36-list button small { color: var(--muted); font-size: 12px; }
.arsx36-menu button:active, .arsx36-list button:active { background: var(--nav-hover, var(--line)); }
.arsx36-list { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; margin-bottom: 12px; }
.arsx36-list button.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.arsx36-cancel { width: 100%; margin-top: 12px; }
.arsx36-form .field { margin-bottom: 12px; }
.arsx36-form .field input, .arsx36-form .field select { width: 100%; }
.arsx36-form .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.arsx36-shoot { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.arsx36-shoot .btn { flex: 1; text-align: center; min-height: 48px; display: grid; place-items: center; cursor: pointer; }

#arsx36-lock { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.arsx36-lock-card { width: min(360px, 100%); text-align: center; display: grid; gap: 12px; }
.arsx36-lock-icon { font-size: 44px; }
.arsx36-lock-card h2 { margin: 0; }
.arsx36-lock-card p { margin: 0; color: var(--muted); }
.arsx36-lock-card .btn { min-height: 48px; }
