/* T6 functional fixes: long real file lists and accessible reader controls. */
body.met-v3.woocommerce-account .met-mm{max-width:1366px!important;width:calc(100% - 32px)!important;margin:24px auto!important}
.met-mm .pg-hero{padding:20px 28px;grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr)}
.met-mm .pg-hero .lead{margin-bottom:0}.met-mm .mosaic{grid-auto-rows:60px}
.met-mm [hidden]{display:none!important}.met-mm .mm-tabs{flex-wrap:wrap}.met-mm .mm-grid{grid-template-columns:1fr}
.met-mm .mm-item{grid-template-columns:120px minmax(0,1fr);align-items:start}.met-mm .mm-files{table-layout:fixed;margin:0}.met-mm .mm-files td{padding:3px 6px;font-size:14px;line-height:1.35}.met-mm .mm-files td:first-child{width:40%;overflow-wrap:anywhere}.met-mm .mm-files td:nth-child(2){width:20%}.met-mm .mm-files .pill{min-height:44px;padding:6px 12px;font:inherit;white-space:nowrap}.met-mm .mm-files .small{font-size:12px;font-variant-numeric:tabular-nums}.met-mm .mm-item img{outline:1px solid rgb(0 0 0 / .1)}.met-mm .mm-classics{columns:2;column-gap:28px}.met-mm .mm-classics li{break-inside:avoid}.met-mm #classics>.panel{margin-bottom:16px}.met-mm .mm-continue{display:flex}
.met-google-first{margin:0 0 20px}.met-google-first p{margin:12px 0 0}.met-google-first .nsl-container{display:block!important}.met-reader-open{overflow:hidden}.met-reader{width:min(1100px,calc(100vw - 24px));max-width:none;height:calc(100dvh - 24px);max-height:none;margin:auto;padding:0;border:1px solid #c9d1d9;border-radius:12px;background:#f5f7f9;color:#17364d;box-shadow:0 16px 70px #0005}.met-reader[open]{display:flex;flex-direction:column}.met-reader::backdrop{background:#0d2b46b3}.met-reader-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#fff;border-bottom:1px solid #d8e0e6}.met-reader-head strong{font-size:17px;overflow-wrap:anywhere}.met-reader-tools{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px;padding:8px;background:#fff}.met-reader button{min-height:44px;min-width:44px;padding:6px 12px;border:1px solid #acbac6;border-radius:8px;background:#fff;color:#17364d;font:inherit;cursor:pointer}.met-reader button:disabled{opacity:.45;cursor:default}.met-reader button:focus-visible,.met-mm a:focus-visible,.met-mm button:focus-visible{outline:3px solid #c81062;outline-offset:3px}.met-reader input{width:64px;min-height:44px;padding:4px;color:#17364d;background:#fff;border:1px solid #acbac6;font-size:16px}.met-reader output,.met-reader [data-pages]{font-variant-numeric:tabular-nums}.met-reader-status{font-size:13px;text-align:center;margin:4px 12px 8px}.met-reader-paper{flex:1;min-height:0;overflow:auto;padding:12px;text-align:center}.met-reader canvas{display:block;margin:auto;background:#fff;max-width:none;box-shadow:0 2px 8px #0002}.met-reader.is-full,.met-reader:fullscreen{width:100vw;height:100dvh;border-radius:0}.met-reader-print{display:none}
@media(max-width:600px){.met-mm .pg-hero{padding:18px;grid-template-columns:1fr}.met-mm .mm-item{grid-template-columns:80px minmax(0,1fr)}.met-mm .mm-body{display:contents}.met-mm .mm-body>.tags,.met-mm .mm-body>h3{grid-column:2}.met-mm .mm-item img{grid-row:1 / span 2}.met-mm .mm-files{grid-column:1 / -1}.met-mm .mm-files td:first-child{width:34%}.met-mm .mm-files td:nth-child(2){width:28%}.met-mm .mm-files .small{display:block;margin-top:4px}.met-mm .mm-classics{columns:1}.met-reader-head strong{font-size:14px}.met-reader-tools{gap:5px}.met-reader{width:100vw;height:100dvh;border:0;border-radius:0}.met-reader-head{padding:6px 10px}}
#met-reader-print{display:none}@media print{body:has(#met-reader-print)>*:not(#met-reader-print){display:none!important}#met-reader-print{display:block!important}#met-reader-print img{display:block;width:100%;height:auto;break-after:page;page-break-after:always}#met-reader-print img:last-child{break-after:auto;page-break-after:auto}}

.met-mm .mm-files td{padding-block:2px}.met-mm .mm-files button.pill{border-radius:999px}.met-mm .pg-hero .lead a{white-space:nowrap}

@media(min-width:521px){.met-mm .mm-continue{flex-direction:row;align-items:center;justify-content:space-between}}
@media(min-width:521px){.met-page.met-mm .mm-continue{flex-direction:row;align-items:center;justify-content:space-between}}
.met-google-first .nsl-container-buttons>a{padding:0!important;border:0!important;box-shadow:none!important}
/* Controls supplied in replacement T6, scoped to My Materials. */
.met-mm .mm-search{display:flex;align-items:center;gap:12px;margin:0 0 14px}.met-mm .mm-search input{flex:1;min-width:0;min-height:48px;padding:0 16px;border:2px solid var(--card-line);border-radius:999px;font-size:16px}.met-mm .mm-count{white-space:nowrap;font-variant-numeric:tabular-nums}.met-mm .mm-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}.met-mm .mm-tools .chips{display:flex;gap:8px;flex-wrap:wrap}.met-mm .mm-tools button{min-height:44px;cursor:pointer}.met-mm .mm-tools button.is-on{background:var(--ink);color:white}.met-mm .mm-tools select{min-height:44px;max-width:100%;font-size:16px}.met-mm [data-mm-course-list]{list-style:none;padding:0;margin:0}.met-mm .mm-course-group{margin:0 0 16px}.met-mm .mm-course-group .mm-classics{columns:auto;display:grid;grid-template-columns:1fr 1fr;gap:12px 28px;list-style:none;padding:0}.met-mm .mm-classics>li[data-mm-title]{min-width:0;overflow-wrap:anywhere}.met-mm .mm-classics a{display:inline-flex;align-items:center;min-height:44px}.met-mm .mm-tools label{display:flex;align-items:center;gap:8px}.met-mm .mm-tabs[hidden]{display:none!important}
@media(max-width:600px){.met-mm .mm-search{flex-wrap:wrap}.met-mm .mm-search input{flex-basis:100%}.met-mm .mm-search input::placeholder{font-size:13px}.met-mm .mm-course-group .mm-classics{grid-template-columns:1fr}.met-mm .mm-tools{align-items:flex-start}.met-mm .mm-tools .chip{font-size:14px;padding-inline:10px}}
/* Keep category controls legible over theme button defaults. */
.met-mm .mm-tools button:not(.is-on){color:#10324c;background:#f4f6f9;border:1px solid #dce2e8}.met-mm .mm-tools button:not(.is-on):hover{background:#e7edf3}.met-mm .mm-tools button:focus-visible{outline:3px solid #c80965;outline-offset:3px}
@media(min-width:601px) and (max-width:900px){.met-mm [data-mm-course-list]{columns:1}.met-mm .pg-hero{grid-template-columns:1fr}}

/* Compact purchaser library; hidden must beat legacy story-card display rules. */
html body .met-mm [hidden],html body .met-mm .mm-item[hidden],html body .met-mm .mm-item.mm-f12[hidden],html body .met-mm .mm-book[hidden]{display:none!important}
html body .met-mm{padding-top:12px!important}html body .met-mm .crumb{margin-bottom:10px!important}
html body .met-mm .mm-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0;background:none}
html body .met-mm .mm-heading h1{font-family:inherit;font-size:26px;line-height:1.25;margin:0}html body .met-mm .mm-heading h1 span{font-size:18px;font-weight:500}
html body .met-mm .mm-heading p{font-size:14px;margin:0}html body .met-mm .mm-tabs{margin:0 0 10px;gap:8px}html body .met-mm .mm-search{margin-bottom:10px}html body .met-mm .mm-tools{margin:0 0 12px;gap:8px;flex-wrap:wrap}html body .met-mm .mm-grid{margin-top:0;gap:12px}html body .met-mm .mm-continue{padding:10px;margin:0 0 10px}html body .met-mm .mm-continue h2{font-size:17px;margin:0}
@media(max-width:600px){html body .met-mm .mm-heading{display:block}html body .met-mm .mm-heading h1{font-size:23px}html body .met-mm .mm-heading p{margin-top:6px}html body .met-mm .mm-count{font-size:12px}html body .met-mm .mm-tools .chips{gap:6px}}
