/* Phone corrections from the 2026-10-27 device pass (iPhone 13 / Pixel 5, ar + en, guest / student /
   instructor). Linked by Master2026 and Workspace2026 before the page sheets, so it sits in a later
   cascade layer than the design's `legacy` sheets and wins at equal specificity. */
@layer ut-components {

/* ---- public ---- */
@media (max-width: 760px) {
  /* teacher profile opening: the single track was minmax(auto,1fr) and took the signature's
     min-content, so the copy ran 530px wide under .tp{overflow:hidden} and was cut off */
  .tp-wrap { grid-template-columns: minmax(0, 1fr); }
  .tp-copy { min-width: 0; }
  .tp-title, .tp-text, .tp-sig, .tp-name { overflow-wrap: anywhere; }
  .tp-actions { flex-wrap: wrap; }
  .tp-photo { max-width: 100%; }
  /* teacher cards: an unbroken bio word widened the card past the viewport */
  .tc-line { overflow-wrap: anywhere; }
}
@media (max-width: 720px) {
  /* catalogue quick filters: the closed popovers (visibility:hidden) still took 230px beyond the
     viewport and widened the page; open ones now span the bar instead of the button */
  .cf-dd:not(.is-open) .cf-pop { display: none; }
  .cf-quick { position: relative; }
  .cf-dd { position: static; }
  .cf-pop { inset-inline: 0; min-width: 0; max-width: 100%; }
}

/* ---- workspace ---- */
@media (max-width: 1100px) {
  /* the dashboard's .db-stats{grid-column:span 8} inside the one-column account page created
     eight phantom tracks: the summary card shrank to 38px and the forms sat side by side */
  main.db-page > .db-stats { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  /* the tab bar wrapper is a flex item with min-width:auto, so .db-seg{max-width:100%} never bit */
  .db-toolbar > * { min-width: 0; max-width: 100%; }
  .db-seg { display: flex; }
  /* account summary actions: a column-flow grid cannot wrap */
  .ac-sum-acts { display: flex; flex-wrap: wrap; }
}

/* ---- touch targets and iOS focus zoom ---- */
@media (pointer: coarse), (max-width: 760px) {
  .cc-acts button, .cc-acts a, .t-circle, .t-lecture, .hw-role-flip, .tb-more, .db-btn--sm,
  .tp-actions button, .tp-actions a, .th-scroll { min-height: 44px; }
  .ac-eye, .fld-eye { min-width: 44px; min-height: 44px; }
  .cc-more, .db-link, .db-crumb, .nb-more, .cg-empty-btn, .dt-share {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .dt-share { padding: 8px 12px; }
  .ct-mail { padding-block: 9px; }
  /* iOS zooms into a focused control whose text is under 16px */
  .theme-2026 :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"], [type="file"]) {
    font-size: 16px;
  }
}

}
