/* ZEAM DEV UI CLEANUP V70
   Scope: visual/layout only. No backend, webhook, telegram, signal logic changes.
*/

html,
body {
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

/* prevent hidden/offcanvas leftovers from blocking clicks */
[data-zeam-v70-hidden="1"],
.zeam-v70-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* development badge */
.zeam-v70-dev-mode::after {
  content: "DEV UI CLEAN V70";
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 12, 24, .78);
  border: 1px solid rgba(49, 223, 255, .28);
  color: rgba(210, 245, 255, .82);
  font: 800 11px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .04em;
  box-shadow: 0 14px 40px rgba(0,0,0,.38);
  backdrop-filter: blur(16px);
}

/* keep operational pages readable */
#zs68-root,
.zi68,
.zs31-main,
.zs-shell-main,
main {
  position: relative;
  z-index: 1;
}

/* signal integrity layout polish */
.zi68 {
  max-width: 1920px;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;
}

.zi68 .zi68-hero,
.zi68 .zi68-panel {
  box-sizing: border-box;
}

.zi68 pre {
  max-height: 520px;
  overflow: auto;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Raw JSON compact box injected by JS */
.zeam-v70-raw-details {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(49, 223, 255, .18);
  background: rgba(0, 8, 18, .38);
  overflow: hidden;
}

.zeam-v70-raw-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zeam-v70-raw-details > summary::after {
  content: "Open";
  color: #33e3ff;
  font-size: 12px;
  border: 1px solid rgba(51,227,255,.3);
  border-radius: 999px;
  padding: 6px 10px;
}

.zeam-v70-raw-details[open] > summary::after {
  content: "Close";
}

.zeam-v70-raw-details pre {
  margin: 0;
  border-top: 1px solid rgba(49, 223, 255, .13);
}

/* floating elements safety */
body:not(.zeam-setup-page) [data-zeam-setup-wizard],
body:not(.zeam-setup-page) .setup-wizard,
body:not(.zeam-setup-page) .zeam-setup-wizard,
body:not(.zeam-setup-page) .zs-setup-wizard {
  display: none !important;
  pointer-events: none !important;
}

/* table usability */
.zi68-table-wrap,
.zs-table-wrap,
.table-responsive {
  overflow: auto !important;
  max-width: 100% !important;
}

.zi68-table {
  min-width: 1100px;
}

/* mobile */
@media (max-width: 900px) {
  .zi68 {
    padding: 16px;
  }

  .zi68 .zi68-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .zeam-v70-dev-mode::after {
    display: none;
  }
}
