/* Shared phone layout for studio tools, vault, hangar, docs */
@media (max-width: 760px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  img, video, canvas, svg, iframe {
    max-width: 100% !important;
  }
  .container,
  .wrap,
  .main-wrapper,
  .docs-layout {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .header,
  .site-header .nav,
  .topbar,
  .reg-bar {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .nav-links,
  .view-toolbar,
  .view-modes-group,
  .brand-group {
    width: 100%;
    flex-wrap: wrap !important;
  }

  .layout-grid,
  .arena-grid,
  .composer-grid,
  .arena-layout,
  .sanctuary-layout,
  .docs-layout,
  .hero-banner,
  .math-grid,
  .pillar-grid,
  .ticker-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #arena-canvas,
  .sanctuary-stage,
  .c-panel,
  .arena-box,
  .hero-banner,
  .docs-header-banner {
    min-height: 240px;
    width: 100% !important;
  }

  .input-msg,
  .chat-input,
  input[type="text"],
  textarea {
    min-width: 0 !important;
    width: 100% !important;
  }

  .panel,
  .c-panel,
  .arena-box {
    min-width: 0 !important;
  }

  table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  .nav-desktop { display: none !important; }

  h1, h2, .hero-title, .brand-title, .docs-header-banner h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(1.45rem, 7.2vw, 2.1rem) !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 760px) {
  .zoth-tool-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0 12px;
  }
  .zoth-tool-bar a {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #c8c4d6;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 6px 10px;
  }
}
