.tt-progress { --tt-ink: #212121; color: var(--tt-ink); background: #fffcf0; text-align: left; min-width: 0; }
.tt-progress *, .tt-detail * { box-sizing: border-box; }
.tt-progress h2, .tt-detail h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.2; }
.tt-progress p, .tt-detail p { line-height: 1.55; }
.tt-heading, .tt-toolbar, .tt-detail-heading { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.tt-heading { border-bottom: 3px solid #212121; padding: 18px; background: #d1e8ca; }
.tt-heading p { margin: 8px 0 0; }
.tt-eyebrow { font-size: .75rem; font-weight: bold; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px !important; }
.tt-progress .tt-progress-button, .tt-detail .tt-progress-button, .tt-progress-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border: 2px solid #212121; border-radius: 0; color: #212121; background: #fffcf0; font: inherit; font-weight: bold; text-decoration: none; cursor: pointer; box-shadow: none; }
.tt-progress button:hover, .tt-progress-button:hover { text-decoration: underline; }
.tt-progress button:focus-visible, .tt-progress a:focus-visible, .tt-progress summary:focus-visible, .tt-matrix-scroll:focus-visible { outline: 3px solid #212121; outline-offset: 3px; }
.tt-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.tt-summary-strip > div { padding: 14px; border: 2px solid #212121; background: #fff2df; }
.tt-summary-strip strong, .tt-summary-strip span { display: block; overflow-wrap: anywhere; }
.tt-summary-strip strong { font-size: 1.4rem; margin-bottom: 7px; }
.tt-summary-strip span { font-size: .8rem; line-height: 1.4; }
.tt-toolbar { margin: 18px 0 12px; font-size: .85rem; }
.tt-toolbar p { margin: 0; }
.tt-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-progress .tt-filter button { border: 2px solid #212121; background: #fffcf0; border-radius: 0; padding: 10px 14px; min-height: 44px; font: inherit; color: #212121; cursor: pointer; box-shadow: none; }
.tt-progress .tt-filter button[aria-pressed="true"] { background: #d1e8ca; font-weight: bold; text-decoration: underline; text-underline-offset: 3px; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; list-style: none; margin: 14px 0; font-size: .78rem; }
.tt-legend li { display: flex; align-items: center; gap: 7px; }
.tt-swatch { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid #212121; }
.tt-progress .tt-state--support, .tt-state--support { background: #f7a4a6; }
.tt-progress .tt-state--developing, .tt-state--developing { background: #ffe298; }
.tt-progress .tt-state--consistent, .tt-state--consistent { background: #d1e8ca; }
.tt-progress .tt-state--building, .tt-state--building { background: #bde7fb; }
.tt-progress .tt-state--none, .tt-state--none { background: #fff2df; }
.tt-matrix-scroll { overflow: auto; max-height: 70vh; max-width: 100%; border: 2px solid #212121; overscroll-behavior-x: contain; }
.tt-matrix { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1480px; table-layout: fixed; font-size: .8rem; }
.tt-matrix th, .tt-matrix td { padding: 0; text-align: center; border: 0; border-right: 1px solid #212121; border-bottom: 1px solid #212121; color: #212121; vertical-align: middle; }
.tt-matrix thead th { position: sticky; top: 0; z-index: 2; background: #fff2df; padding: 14px 8px; font-size: 1rem; }
.tt-matrix th.tt-student-name { position: sticky; left: 0; width: 180px; padding: 14px 12px; text-align: left; background: #fffcf0; z-index: 1; border-right: 2px solid #212121; overflow-wrap: anywhere; }
.tt-matrix thead th.tt-student-name { background: #fff2df; z-index: 3; }
.tt-student-name span { display: block; font-size: .7rem; font-weight: normal; margin-top: 6px; }
.tt-progress .tt-matrix button { width: 100%; min-height: 86px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 0; background: transparent; color: #212121; padding: 12px 5px; cursor: pointer; font: inherit; box-shadow: none; }
.tt-matrix button strong { font-size: 1rem; }
.tt-matrix button span { font-size: .71rem; line-height: 1.3; }
.tt-progress .tt-matrix button:focus-visible { outline: 3px solid #212121; outline-offset: -5px; }
/* The legacy shell gives every button a blue fill and five-pixel border.
   Matrix cells carry the evidence colour, so their controls must stay clear. */
body.has-dmr-shell .tt-progress .tt-matrix button,
body.has-dmr-shell .tt-progress .tt-matrix button:hover,
body.has-dmr-shell .tt-progress .tt-matrix button:focus-visible { background: transparent !important; border: 0 !important; text-transform: none; }
body.has-dmr-shell .tt-progress .tt-filter button { background: #fffcf0 !important; border: 2px solid #212121 !important; text-transform: none; }
body.has-dmr-shell .tt-progress .tt-filter button[aria-pressed="true"] { background: #d1e8ca !important; }
body.has-dmr-shell .tt-progress .tt-progress-button { background: #fffcf0 !important; border: 2px solid #212121 !important; text-transform: none; }
#tt-progress-title { scroll-margin-top: 120px; }
.tt-note { font-size: .8rem; margin: 16px 0; }
.tt-other-practice { margin-top: 20px; border-top: 2px solid #212121; padding: 16px 0; }
.tt-other-practice > summary { cursor: pointer; font-weight: bold; min-height: 44px; }
.tt-method { border: 2px solid #212121; padding: 12px; font-size: .85rem; background: #fff2df; }
.tt-method summary { font-weight: bold; cursor: pointer; min-height: 28px; }
.tt-empty { padding: 18px; border: 2px solid #212121; background: #fff2df; }
.tt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
dialog.tt-detail { width: min(620px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); margin: auto; border: 3px solid #212121; padding: 0; border-radius: 0; background: #fffcf0; color: #212121; font: inherit; text-align: left; overflow: auto; }
.tt-detail::backdrop { background: rgb(33 33 33 / .4); }
.tt-detail-heading { padding: 18px; background: #ffe298; border-bottom: 3px solid #212121; }
.tt-detail-heading > div { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.tt-detail-body { padding: 18px; }
.tt-detail h3 { font-size: 1rem; margin: 18px 0 10px; }
.tt-status-hero { padding: 16px; border: 2px solid #212121; }
.tt-status-hero strong, .tt-status-hero span { display: block; }
.tt-status-hero strong { font-size: 1.35rem; margin-bottom: 8px; }
.tt-detail-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.tt-detail-metrics > div { padding: 12px; background: #fff2df; border: 2px solid #212121; }
.tt-detail-metrics strong, .tt-detail-metrics span { display: block; }
.tt-detail-metrics strong { font-size: 1.3rem; margin-bottom: 6px; }
.tt-detail-metrics span { font-size: .8rem; }
.tt-explanation { padding: 1px 14px; border: 2px solid #212121; }
.tt-breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tt-breakdown li { display: flex; gap: 16px; justify-content: space-between; padding: 8px 10px; border: 1px solid #212121; background: #fff2df; font-size: .85rem; }
.tt-detail .teaching-actions { margin: 12px 0; }
@media (max-width: 700px) {
  .tt-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-summary-strip > div { padding: 10px; }
  .tt-summary-strip strong { font-size: 1.15rem; }
  .tt-heading { padding: 14px; }
  .tt-matrix th.tt-student-name { width: 125px; padding: 10px 8px; }
  .tt-matrix { min-width: 1360px; }
  .tt-detail-body { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tt-progress * { scroll-behavior: auto; } }
