/* Keep wide records inside their scroll region, including at browser zoom. */
.workspace-main>*,.hero>*,.auth-layout>*,.form-row>*,.editor-layout>*,.instruction-library-layout>* { min-width: 0; }
.table-wrap { overscroll-behavior-inline: contain; }
.theme-toggle { flex-shrink: 0; }
@media (max-width: 700px) {
  .site-header { height: auto; min-height: 80px; padding-block: 16px; flex-wrap: wrap; gap: 12px; }
  .header-actions { flex-wrap: wrap; gap: 10px; }
  .site-header .theme-toggle,.workspace-actions .theme-toggle { font-size: 12px; padding: 10px 12px; }
  .sidebar { padding: 14px 18px; }
  .sidebar>.brand { margin-bottom: 10px; }
  .mobile-nav>summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-weight: 600; }
  .mobile-nav>summary::after { content: '+'; font-size: 20px; }
  .mobile-nav[open]>summary::after { content: '−'; }
  .mobile-nav nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding-top: 10px; overflow: visible; }
  .nav-link { white-space: normal; min-height: 44px; font-size: 12px; }
  .workspace-top { padding: 12px 18px; }
  .workspace-actions { flex-wrap: wrap; gap: 8px; max-width: 100%; }
  .workspace-main { padding: 22px 14px; }
  .workspace-footer { flex-wrap: wrap; gap: 6px; font-size: 11px; }
  input:not([type=checkbox]):not([type=hidden]):not(.visually-hidden),textarea,select { font-size: 16px; min-height: 44px; }
  .button,.button.small,.icon-button,.sms-value-row .button,.step-password .button,.sms-footer .button,.pagination .button { min-height: 44px; }
  .icon-button { min-width: 44px; }
  .form-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .search-form { flex-wrap: wrap; }
  .search-form input { flex: 1 1 180px; }
  .sms-history-filter { align-items: stretch; }
  .sms-history-filter label { min-width: 0; flex: 1 1 100%; }
  .sms-history-filter .button { flex: 1; }
  .sms-progress li { flex-direction: column; white-space: normal; text-align: center; font-size: 11px; }
  .sms-progress li:not(:last-child)::after { display: none; }
  .sms-heading>div { flex: 1; min-width: 0; }
  .sms-value-row code { font-size: clamp(18px,5.8vw,25px); }
  .sms-code-card code { font-size: 27px; }
  .sms-value-row .button { font-size: 12px; }
  .sms-help,.sms-skip>small { font-size: 12px; }
  .instruction-footer>form,.sms-skip { width: 100%; }
  .pagination { flex-wrap: wrap; font-size: 12px; }
  .step-editor-heading { flex-wrap: wrap; gap: 8px; }
  .application-row .actions { margin-left: 0; }
  .assignment-dialog { max-height: 92dvh; }
}
@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .site-header .header-actions { width: 100%; justify-content: space-between; }
  .hero h1 { font-size: clamp(36px,11vw,46px); }
  .hero-visual { padding-inline: 0; }
  .hero-visual .orbit { max-width: 100%; left: 0; }
  .hero-visual::before { inset-inline: 0; }
  .example-content { padding: 18px 12px; }
  .example-top { gap: 8px; padding-inline: 12px; }
  .example-steps>div { gap: 8px; }
  .benefit-grid,.proof-grid,.upload-previews { grid-template-columns: minmax(0,1fr); }
  .panel,.instruction { padding: 20px 14px; }
  .smsbower-step { padding: 16px 10px; }
  .stat-card>strong { font-size: 22px; overflow-wrap: anywhere; }
  .password-box { flex-wrap: wrap; }
  .page-heading h1 { overflow-wrap: anywhere; }
}
