/* Brandlit /account#circuit — Expand + Film tap targets (phone).
   Owner: mobile grok bot. Scope: body:has(#workspace-main) only.
   Load last on /account after filming-strip-phone.css.
   Desktop ≥821px unchanged. Hands first-screen preserved. */

@media (max-width: 820px) {
  body:has(#workspace-main) #panel-circuit .toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 8px !important; /* ≥8px between Expand and Film */
    margin-bottom: 10px !important;
  }

  body:has(#workspace-main) #panel-circuit .toolbar button {
    flex: 1 1 auto !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
  }

  /* Compact heading already hidden on circuit phones; keep frame under fold budget.
     Prior polish used calc(100dvh - 228px). Toolbar grew ~4px → reclaim 8px total. */
  body:has(#workspace-main) #panel-circuit .product-frame {
    height: calc(100dvh - 236px) !important;
    min-height: 280px !important;
  }
}

@media (max-width: 400px) {
  body:has(#workspace-main) #panel-circuit .toolbar button {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
  }
}
