/* Фронтир Access — поверх style.css Фронтира */
.ashell { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.atop { display: flex; align-items: center; gap: 10px; padding: 14px 0; position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 5; }
.atop .grow { flex: 1; } .ame { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.ax { color: var(--on-accent); font-weight: 800; font-size: 16px; }
.atabs { margin: 4px 0 16px; flex-wrap: wrap; max-width: 100%; }
.amain { display: flex; flex-direction: column; gap: 16px; }
.ah { margin: 6px 0 0; font-size: 20px; letter-spacing: -.3px; }
.abook .h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .abook .grow { flex: 1; }
.abook.active { border-color: var(--accent); }
.gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.gate { display: flex; flex-direction: column; gap: 6px; }
.gbtn { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line3, #2c3a33); background: var(--panel2); color: inherit; font: inherit; font-size: 17px; cursor: pointer; }
.gbtn:hover:not(:disabled) { border-color: var(--accent); }
.gbtn.armed { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.gbtn:disabled { opacity: .5; cursor: default; }
.gbtn.test:not(.armed) { border-style: dashed; }
.gst { font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gdot { width: 8px; height: 8px; border-radius: 999px; background: var(--muted); flex: none; }
.gdot.on { background: var(--ok); } .gdot.bad { background: var(--danger); }
.dot.test { background: var(--muted); }
@media (max-width: 600px) {
  .atabs { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .atabs::-webkit-scrollbar { display: none; }
  .atabs button { flex: 1 0 auto; padding: 0 12px; }
  .atop b { font-size: 15px; }
}
