/* STI Student Management Suite v2.4.237 – responsive layout layer.
   Presentation only: no attendance, auth, payments, or course state changes.
   Scoped to plugin component roots to avoid affecting the WordPress theme. */

/* Safe intrinsic sizing across portal sections, including flex and grid children. */
:where(.mye-sd-shell,.mye-att-page,.mye-learning-workspace,.mye-courses-shell,
       .mye-auth-shell,.mye-student-portal,.myspa-wrap,.mye-material-shell,
       .mye-tutor-journal,.mye-tutor-workspace,.mye-thanks-card,
       .myspa-admin-wrap,.mypm-wrap,.sti-att-admin,.mye-holiday-wrap,.myesp-wrap) {
  box-sizing:border-box;
  max-width:100%;
}
:where(.mye-sd-shell,.mye-att-page,.mye-learning-workspace,.mye-courses-shell,
       .mye-auth-shell,.mye-student-portal,.myspa-wrap,.mye-material-shell,
       .mye-tutor-journal,.mye-thanks-card,.myspa-admin-wrap,.mypm-wrap,
       .sti-att-admin,.mye-holiday-wrap,.myesp-wrap) *,
:where(.mye-sd-shell,.mye-att-page,.mye-learning-workspace,.mye-courses-shell,
       .mye-auth-shell,.mye-student-portal,.myspa-wrap,.mye-material-shell,
       .mye-tutor-journal,.mye-thanks-card,.myspa-admin-wrap,.mypm-wrap,
       .sti-att-admin,.mye-holiday-wrap,.myesp-wrap) *::before,
:where(.mye-sd-shell,.mye-att-page,.mye-learning-workspace,.mye-courses-shell,
       .mye-auth-shell,.mye-student-portal,.myspa-wrap,.mye-material-shell,
       .mye-tutor-journal,.mye-thanks-card,.myspa-admin-wrap,.mypm-wrap,
       .sti-att-admin,.mye-holiday-wrap,.myesp-wrap) *::after {box-sizing:border-box}
:where(.mye-sd-shell,.mye-att-page,.mye-learning-workspace,.mye-courses-shell,
       .mye-auth-shell,.mye-student-portal,.myspa-wrap,.mye-material-shell,
       .mye-tutor-journal,.mye-thanks-card,.myspa-admin-wrap,.mypm-wrap,
       .sti-att-admin,.mye-holiday-wrap,.myesp-wrap) :is(img,svg,video,canvas) {max-width:100%;height:auto}
:where(.mye-sd-shell,.mye-att-page,.mye-learning-workspace,.mye-courses-shell,
       .mye-auth-shell,.mye-student-portal,.myspa-wrap,.mye-material-shell,
       .mye-tutor-journal,.mye-thanks-card,.myspa-admin-wrap,.mypm-wrap,
       .sti-att-admin,.mye-holiday-wrap,.myesp-wrap) :is(input,select,textarea,button) {max-width:100%}

/* Table-heavy views: keep native tables usable without cutting their last columns. */
.sti-att-admin .sti-att-table-wrap,
.mye-att-page .mye-att-history-wrap,
.mye-tutor-journal .mye-ta-mark-scroll,
.mye-tutor-journal .mye-ta-table-wrap,
.myspa-admin-wrap .myspa-progress-list,
.mypm-wrap .mypm-table-card,
.myesp-wrap .myesp-table-scroll,
.mye-student-portal .mye-payment-table-wrap,
.mye-attop-table-wrap {max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}

/* Tablet widths: avoid compressed two-column forms before phones. */
@media (max-width:1100px) {
  .mye-att-page .mye-att-topic-split {grid-template-columns:minmax(0,1fr)!important}
  .mye-att-page .mye-att-topic-today,
  .mye-att-page .mye-att-topic-pending {min-width:0!important;width:100%}
  .mye-att-page .mye-att-content {grid-template-columns:minmax(0,1fr)!important}
  .mye-tutor-journal .mye-ta-workspace {grid-template-columns:minmax(0,1fr)!important}
  .myspa-admin-wrap .myspa-admin-layout {grid-template-columns:minmax(0,1fr)!important}
  .mye-student-portal .mye-portal-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:701px) and (max-width:1100px) {
  .mye-sd-shell .mye-sd-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mye-att-page .mye-att-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .sti-att-admin .sti-att-stats {grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .mye-tutor-journal .mye-ta-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width:782px) {
  /* WordPress admin mobile menu and compact admin sections. */
  body.wp-admin .sti-att-admin {width:100%!important;max-width:100%!important;margin:0!important;padding:10px 12px 32px!important}
  body.wp-admin .sti-att-admin .sti-att-hero {padding:18px!important;gap:12px!important;flex-wrap:wrap!important}
  body.wp-admin .sti-att-admin .sti-att-hero h1 {font-size:22px!important}
  body.wp-admin .sti-att-admin .sti-att-panel {padding:14px!important}
  body.wp-admin .sti-att-admin .sti-att-tools {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;align-items:stretch!important}
  body.wp-admin .sti-att-admin .sti-att-search {width:100%!important;grid-column:1/-1}
  body.wp-admin .sti-att-admin .sti-att-filter {min-width:0;width:100%;height:42px!important}
  body.wp-admin .sti-att-admin .sti-att-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.wp-admin .sti-att-admin .sti-att-stat {min-width:0;padding:13px!important}
  body.wp-admin .sti-att-admin .sti-att-stat strong {font-size:24px!important}
  body.wp-admin .sti-att-admin .sti-att-table-wrap {display:block!important;width:100%!important;overflow-x:auto!important}
  body.wp-admin .sti-att-admin .sti-att-table {min-width:1050px!important}
  body.wp-admin .sti-att-admin .sti-att-actions {flex-direction:column!important;align-items:stretch!important;gap:9px!important;bottom:0!important}
  body.wp-admin .sti-att-admin .sti-att-save {width:100%!important;min-height:44px!important}
  body.wp-admin :is(.myspa-admin-wrap,.mypm-wrap,.myesp-wrap,.mye-holiday-wrap) {width:100%!important;max-width:100%!important;margin:12px 0 28px!important;padding:0 10px!important}
  body.wp-admin .myspa-admin-wrap .myspa-admin-layout,
  body.wp-admin .mypm-wrap .mypm-grid {grid-template-columns:minmax(0,1fr)!important}
  body.wp-admin .mypm-wrap .mypm-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.wp-admin .mypm-wrap .mypm-table-card {overflow-x:auto!important}
  body.wp-admin .mypm-wrap .mypm-table {min-width:780px!important}
  body.wp-admin .mye-holiday-wrap .mye-holiday-grid {grid-template-columns:minmax(0,1fr)!important}
}

@media (max-width:700px) {
  /* Student dashboard: sidebar becomes swipeable navigation, not a tiny grid. */
  .mye-sd-shell {max-width:100%!important;width:100%!important;min-width:0!important;padding:0 12px 25px!important}
  .mye-sd-shell .mye-sd-layout {display:block!important;min-width:0!important}
  .mye-sd-shell .mye-sd-sidebar {position:static!important;width:100%!important;min-height:0!important;margin:0 0 12px!important}
  .mye-sd-shell .mye-sd-nav {display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;gap:5px!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .mye-sd-shell .mye-sd-nav a {flex:0 0 auto!important;white-space:nowrap!important;min-height:42px!important;font-size:12px!important;padding:8px 10px!important}
  .mye-sd-shell .mye-sd-content {width:100%!important;max-width:100%!important;margin-left:0!important;min-width:0!important;padding:14px 0 30px!important}
  .mye-sd-shell .mye-sd-hero {flex-wrap:wrap!important;gap:12px!important}
  .mye-sd-shell .mye-sd-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .mye-sd-shell .mye-sd-card {min-width:0!important;padding:14px!important}
  .mye-sd-shell .mye-sd-actions {flex-wrap:wrap!important;gap:8px!important}
  .mye-sd-shell :is(.mye-sd-segment-card,.mye-sd-stat) {min-width:0!important}
  .mye-thanks-card {width:100%!important;margin-inline:0!important}
  .mye-thanks-card .mye-thanks-main {padding-inline:14px!important}
  .mye-tutor-journal {max-width:100%!important;min-width:0!important}
  .mye-tutor-journal .mye-ta-workspace {grid-template-columns:1fr!important}
  .mye-tutor-journal .mye-ta-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mye-tutor-journal .mye-ta-mark-scroll {overflow-x:auto!important}
  .mye-tutor-journal .mye-ta-mark-table {min-width:735px!important}
  .mye-att-page {box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:12px auto 28px!important;padding:0 12px 20px!important}
  .mye-att-page .mye-att-hero {padding:18px!important;gap:10px!important}
  .mye-att-page .mye-att-workflow-tabs {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .mye-att-page .mye-att-workflow-tab {min-width:0!important;width:100%!important;justify-content:center!important}
  .mye-att-page .mye-att-panel {min-width:0!important;padding:13px!important}
  .mye-att-page .mye-att-combined {min-width:0!important;padding:14px!important}
  .mye-att-page .mye-att-self-header,
  .mye-att-page .mye-att-topic-head {flex-wrap:wrap!important;gap:9px!important}
  .mye-att-page .mye-att-topic-split {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .mye-att-page .mye-att-topic-today,
  .mye-att-page .mye-att-topic-pending {min-width:0!important;width:100%!important}
  .mye-att-page .mye-att-topic-searchbar {flex-wrap:wrap!important}
  .mye-att-page .mye-att-course-picker {min-width:0!important;width:100%!important}
  .mye-att-page .mye-att-history-wrap {max-width:100%!important;overflow-x:auto!important}
  .mye-att-page table.mye-att-history {min-width:650px!important;table-layout:auto!important}
  .mye-att-page .mye-att-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .mye-att-page .mye-att-extra-form {grid-template-columns:minmax(0,1fr)!important}
  .mye-att-page .mye-att-extra-form .mye-att-extra-wide {grid-column:auto!important}
  .mye-att-page :is(.mye-att-self-submit,.mye-att-topic-undo-btn) {min-height:40px!important}
  .mye-learning-workspace {width:100%!important;max-width:100%!important;padding:0 12px!important;margin:14px auto 28px!important}
  .mye-learning-workspace .mye-lw-chapters-heading {flex-wrap:wrap!important;gap:9px!important}
  .mye-learning-workspace .mye-lw-search {width:100%!important;min-width:0!important}
  .mye-courses-shell {width:100%!important;padding:12px!important}
  .mye-courses-shell .mye-courses-summary {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mye-courses-shell .mye-courses-grid {grid-template-columns:minmax(0,1fr)!important}
  .mye-student-portal {width:100%!important;max-width:100%!important;padding-inline:12px!important}
  .mye-student-portal .mye-portal-hero {flex-wrap:wrap!important;gap:12px!important}
  .mye-student-portal .mye-portal-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mye-student-portal .mye-course-item {min-width:0!important;flex-wrap:wrap!important}
  .mye-auth-shell {max-width:100%!important;width:100%!important;padding-inline:14px!important}
  .mye-auth-shell .mye-auth-layout {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:15px!important}
  .mye-auth-shell .mye-auth-card {width:100%!important;min-width:0!important;padding:22px 18px!important}
  .mye-auth-shell .mye-auth-top {flex-wrap:wrap!important;gap:8px!important}
  .mye-auth-shell :is(input:not([type=checkbox]),select,textarea) {width:100%!important;min-width:0!important}
  .mye-material-shell {max-width:100%!important;padding-inline:12px!important}
  .mye-material-shell .mye-material-head {flex-wrap:wrap!important;gap:10px!important}
}

@media (max-width:440px) {
  .mye-sd-shell {padding-inline:8px!important}
  .mye-sd-shell .mye-sd-nav a {font-size:12px!important;padding-inline:10px!important}
  .mye-sd-shell .mye-sd-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .mye-sd-shell .mye-sd-stat {padding:11px!important}
  .mye-att-page {padding-inline:8px!important}
  .mye-att-page .mye-att-combined {padding:11px!important}
  .mye-att-page .mye-att-workflow-tab {padding:10px 6px!important;gap:6px!important}
  .mye-att-page .mye-att-workflow-tab-copy small {display:none!important}
  .mye-att-page .mye-att-workflow-tab-copy strong {font-size:12px!important;line-height:1.25!important}
  .mye-att-page .mye-att-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mye-att-page .mye-att-self-bottom,
  .mye-att-page .mye-att-topic-foot {flex-direction:column!important;align-items:stretch!important;gap:9px!important}
  .mye-att-page .mye-att-self-submit {width:100%!important;white-space:normal!important}
  .mye-att-page .mye-att-completed-row {flex-wrap:wrap!important}
  .mye-att-page .mye-att-completed-row .mye-att-topic-compact {min-width:0!important;flex:1 1 auto!important}
  .mye-att-page .mye-att-topic-undo-action {flex:0 0 auto!important}
  .mye-att-page .mye-att-topic-compact-summary {gap:8px!important}
  .mye-att-page .mye-att-topic-compact-info {min-width:0!important;overflow-wrap:anywhere}
  .mye-learning-workspace .mye-lw-chapter-action {max-width:110px!important;width:110px!important;right:6px!important}
  .mye-learning-workspace .mye-lw-chapter-details>summary {padding-right:115px!important}
  .mye-learning-workspace .mye-lw-mark {font-size:11px!important;line-height:1.2!important}
  .mye-courses-shell .mye-courses-summary {grid-template-columns:minmax(0,1fr)!important}
  body.wp-admin .sti-att-admin .sti-att-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.wp-admin .mypm-wrap .mypm-stats {grid-template-columns:minmax(0,1fr)!important}
}

@media (hover:none) and (pointer:coarse) {
  .mye-att-page :is(button,select,summary),
  .mye-sd-shell .mye-sd-nav a,
  .mye-learning-workspace :is(button,summary),
  .mye-courses-shell :is(button,a.mye-courses-btn),
  .mye-auth-shell button,
  body.wp-admin .sti-att-admin :is(button,select),
  body.wp-admin .myspa-admin-wrap button {touch-action:manipulation}
  .mye-att-page :is(input,select,textarea),
  .mye-auth-shell :is(input,select,textarea),
  .mye-learning-workspace :is(input,select,textarea) {font-size:max(16px,1rem)!important}
}

@media (prefers-reduced-motion:reduce) {
  .mye-sd-shell *, .mye-att-page *, .mye-learning-workspace * {scroll-behavior:auto!important}
}


/* v2.4.238 — mobile usability corrections for actual STI front-end components.
   Narrow-screen values are scoped to the module, not the WordPress theme. */

/* Responsive content should be measured against its parent, not an intrinsic child width. */
.mye-sd-shell :is(.mye-sd-content,.mye-sd-main,.mye-sd-side,.mye-sd-grid,.mye-sd-card),
.mye-att-page :is(.mye-att-workflow-panel,.mye-att-content,.mye-att-panel,.mye-att-combined,.mye-att-topic-split,.mye-att-topic-today,.mye-att-topic-pending),
.mye-learning-workspace :is(.mye-lw-chapter-details,.mye-lw-chapter-list) {
  min-width:0;
  max-width:100%;
}

@media (max-width:960px) {
  /* Tablets need full-width dashboard content, not a desktop fixed 190px side rail. */
  body .mye-sd-shell .mye-sd-sidebar {
    position:relative!important;inset:auto!important;
    width:100%!important;min-width:0!important;
    min-height:0!important;height:auto!important;
    margin:0 0 12px!important;padding:12px!important;
    border-radius:15px!important;box-shadow:none!important;
    overflow:visible!important;z-index:2!important;
  }
  body .mye-sd-shell .mye-sd-layout {display:block!important}
  body .mye-sd-shell .mye-sd-content {
    width:100%!important;max-width:100%!important;
    margin:0!important;padding:12px 0 28px!important;
  }
  body .mye-sd-shell .mye-sd-nav {
    display:flex!important;gap:7px!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    padding:9px 2px 3px!important;max-width:100%!important;
    flex-wrap:nowrap!important;
    scrollbar-width:thin;-webkit-overflow-scrolling:touch;
  }
  body .mye-sd-shell .mye-sd-nav a {
    flex:0 0 auto!important;white-space:nowrap!important;
    font-size:13px!important;line-height:1.35!important;
    padding:10px 12px!important;min-height:44px!important;
    width:auto!important;max-width:none!important;
  }
  body .mye-sd-shell .mye-sd-nav a b {font-size:inherit!important}
  body .mye-sd-shell .mye-sd-nav a span {
    width:23px!important;height:23px!important;flex:0 0 23px!important;
    font-size:16px!important;
  }
  body .mye-sd-shell .mye-sd-side-bottom {display:none!important}
  body .mye-sd-shell .mye-sd-grid {grid-template-columns:minmax(0,1fr)!important}
  .mye-att-page .mye-att-content {grid-template-columns:minmax(0,1fr)!important}
}

@media (max-width:700px) {
  body .mye-sd-shell {
    width:100%!important;max-width:100%!important;
    margin:0 auto!important;padding:0 10px 24px!important;
  }
  body .mye-sd-shell .mye-sd-hero,
  body .mye-sd-shell .mye-sd-user {min-width:0!important;max-width:100%!important}
  body .mye-sd-shell .mye-sd-hero {padding:16px!important}
  body .mye-sd-shell .mye-sd-user {gap:10px!important}
  body .mye-sd-shell .mye-sd-avatar {flex:0 0 44px!important;width:44px!important;height:44px!important}
  body .mye-sd-shell .mye-sd-hero h1 {font-size:21px!important;overflow-wrap:anywhere}
  body .mye-sd-shell .mye-sd-stats {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  body .mye-sd-shell .mye-sd-stat {
    display:flex!important;align-items:center!important;
    gap:9px!important;min-height:86px!important;
    min-width:0!important;padding:12px!important;
  }
  body .mye-sd-shell .mye-sd-stat small,
  body .mye-sd-shell .mye-sd-stat span {font-size:11px!important;line-height:1.35!important;letter-spacing:normal!important}
  body .mye-sd-shell .mye-sd-stat strong {font-size:21px!important;line-height:1.15!important}
  body .mye-sd-shell .mye-sd-grid,
  body .mye-sd-shell .mye-sd-side {display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body .mye-sd-shell .mye-sd-card {padding:15px!important}
  body .mye-sd-shell .mye-sd-card-head {flex-wrap:wrap!important;align-items:center!important}
  body .mye-sd-shell .mye-sd-card-head>span {font-size:13px!important;padding:7px 10px!important}
  body .mye-sd-shell .mye-sd-card h2 {font-size:16px!important}
  body .mye-sd-shell .mye-sd-card p,
  body .mye-sd-shell .mye-sd-help p {font-size:12px!important;line-height:1.55!important}
  body .mye-sd-shell .mye-sd-course-copy strong {font-size:12px!important;overflow-wrap:anywhere}
  body .mye-sd-shell .mye-sd-course-copy small {font-size:11px!important}
  body .mye-sd-shell .mye-sd-profile-row span,
  body .mye-sd-shell .mye-sd-profile-row strong {font-size:12px!important}
  body .mye-sd-shell .mye-sd-table-wrap {overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  body .mye-sd-shell .mye-sd-table {min-width:450px!important}
  body .mye-sd-shell .mye-sd-table :is(td,th) {font-size:12px!important}
  body .mye-sd-shell :is(.mye-sd-primary,.mye-sd-btn,.mye-sd-link) {font-size:12px!important;min-height:40px!important}

  /* Mark / View panels and learning activities should not force page-wide scrolling. */
  body .mye-att-page {width:100%!important;max-width:100%!important;padding:0 10px 25px!important}
  body .mye-att-page .mye-att-hero {display:flex!important;flex-wrap:wrap!important;padding:17px!important;gap:12px!important}
  body .mye-att-page .mye-att-hero h2 {font-size:21px!important;overflow-wrap:anywhere}
  body .mye-att-page .mye-att-panel,
  body .mye-att-page .mye-att-combined {min-width:0!important;padding:13px!important}
  body .mye-att-page .mye-att-workflow-tabs {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body .mye-att-page .mye-att-workflow-tab {min-width:0!important;min-height:50px!important;gap:7px!important;padding:9px!important}
  body .mye-att-page .mye-att-workflow-tab-copy strong {font-size:13px!important;line-height:1.35!important}
  body .mye-att-page :is(.mye-att-topic-split,.mye-att-extra-form) {grid-template-columns:minmax(0,1fr)!important}
  body .mye-att-page :is(.mye-att-topic-head,.mye-att-self-header,.mye-att-topic-searchbar,.mye-att-extra-saved) {flex-wrap:wrap!important;max-width:100%!important}
  body .mye-att-page :is(.mye-att-course-picker,.mye-att-topic-searchbar input,.mye-att-extra-form input,.mye-att-extra-form select,.mye-att-extra-form textarea) {max-width:100%!important;min-width:0!important}
  body .mye-att-page .mye-att-extra-saved>div {flex:1 1 180px!important;min-width:0!important}
  body .mye-att-page .mye-att-topic-compact-info {min-width:0!important;overflow-wrap:anywhere!important}
  body .mye-att-page .mye-att-completed-row {display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  body .mye-att-page .mye-att-toolbar {min-height:0!important;padding:13px!important}
  body .mye-att-page .mye-att-month-trigger {width:100%!important;min-width:0!important;max-width:100%!important}
  body .mye-att-page .mye-att-month-popover {width:min(306px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;right:auto!important;left:0!important}
  body .mye-att-page .mye-att-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body .mye-att-page .mye-att-stat {min-width:0!important;min-height:112px!important;padding:12px!important}
  body .mye-att-page .mye-att-stat strong {font-size:24px!important}
  body .mye-att-page .mye-att-calendar {gap:4px!important}
  body .mye-att-page .mye-att-day {min-height:39px!important;gap:3px!important;font-size:11px!important;border-radius:8px!important}
  body .mye-att-page .mye-att-day.is-today:after {font-size:6px!important;right:2px!important}
  body .mye-att-page .mye-att-history-wrap {display:block!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  body .mye-att-page table.mye-att-history {min-width:620px!important;table-layout:auto!important}
  body .mye-att-page :is(input,select,textarea) {font-size:16px!important}

  /* Keep Tutor and Course screens from becoming wider than the phone. */
  body .mye-tutor-journal .mye-ta-filter {grid-template-columns:minmax(0,1fr)!important}
  body .mye-tutor-journal .mye-ta-list-toolbar,
  body .mye-tutor-journal .mye-ta-inline-filter {flex-wrap:wrap!important;gap:9px!important}
  body .mye-tutor-journal .mye-ta-inline-filter input[type=search],
  body .mye-tutor-journal .mye-ta-inline-filter input[type=month] {width:100%!important;min-width:0!important;max-width:100%!important}
  body .mye-tutor-journal :is(.mye-ta-mark-scroll,.mye-ta-table-wrap) {display:block!important;overflow-x:auto!important;max-width:100%!important}
  body .mye-courses-shell .mye-courses-head {flex-wrap:wrap!important;gap:12px!important}
  body .mye-courses-shell .mye-courses-head-actions {flex-wrap:wrap!important;width:100%!important}
  body .mye-learning-workspace .mye-lw-chapter-details>summary {min-width:0!important}
  body .mye-learning-workspace .mye-lw-chapter-action {max-width:106px!important}
}

@media (max-width:370px) {
  /* Extremely narrow phones: two stats still fit; text and cards remain legible. */
  body .mye-sd-shell .mye-sd-stats,
  body .mye-att-page .mye-att-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  body .mye-sd-shell .mye-sd-stat {gap:5px!important;padding:9px!important}
  body .mye-sd-shell .mye-sd-icon {width:30px!important;height:30px!important;flex-basis:30px!important}
  body .mye-sd-shell .mye-sd-stat strong {font-size:18px!important}
  body .mye-sd-shell .mye-sd-stat small,
  body .mye-sd-shell .mye-sd-stat span {font-size:10px!important}
  body .mye-att-page .mye-att-workflow-tab-icon {display:none!important}
  body .mye-att-page .mye-att-workflow-tab-copy strong {font-size:12px!important}
  body .mye-att-page .mye-att-day {min-height:35px!important;font-size:10px!important}
}
