.member-modules-page{max-width:1180px;margin:0 auto;padding:clamp(24px,4vw,58px) 20px 90px;color:var(--ui-color-text)}.member-modules-head h1{margin:8px 0 10px;font-size:clamp(2rem,4vw,3.2rem)}.member-modules-head>p:last-child{max-width:700px;color:var(--ui-color-muted);font-size:1rem}.member-modules-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0 0;padding-bottom:14px;border-bottom:1px solid var(--ui-color-border)}.member-modules-tabs a{padding:12px 17px;border-radius:12px;color:var(--ui-color-text);text-decoration:none;font-weight:750}.member-modules-tabs a[aria-current=page]{background:var(--ui-color-primary);color:var(--ui-color-on-primary)}.member-modules-workspace{padding:24px;border:1px solid var(--ui-color-border);border-radius:18px;background:var(--ui-color-surface)}.member-modules-workspace>p{margin:0 0 20px;color:var(--ui-color-muted)}.member-modules-workspace form{display:grid;grid-template-columns:minmax(170px,2fr) minmax(170px,1.5fr) repeat(2,minmax(95px,.7fr)) auto;gap:12px;align-items:end}.member-modules-workspace label{display:grid;gap:7px;font-size:.9rem;font-weight:700}.member-modules-workspace input,.member-modules-workspace select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--ui-color-border);border-radius:10px;background:var(--ui-color-surface);color:var(--ui-color-text);font:inherit}.member-modules-workspace button{min-height:44px;padding:10px 14px;border:1px solid var(--ui-color-border);border-radius:10px;background:var(--ui-color-surface-subtle);color:var(--ui-color-text);font:inherit;cursor:pointer}.member-modules-result-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:28px 0 14px}.member-modules-result-head h2,.member-modules-result-head p{margin:0}.member-modules-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.member-module-card{overflow:hidden;border:1px solid var(--ui-color-border);border-radius:16px;background:var(--ui-color-surface-subtle)}.member-module-card>img{display:block;width:100%;height:220px;object-fit:cover}.member-module-card>div{display:grid;align-content:start;gap:12px;padding:18px}.member-module-card h3,.member-module-card p{margin:0}.member-module-card p{color:var(--ui-color-muted);line-height:1.5}.member-module-card .member-module-meta{font-size:.9rem}.member-module-card a{justify-self:start}.member-modules-results>p{padding:24px;border:1px dashed var(--ui-color-border);border-radius:14px;color:var(--ui-color-muted)}@media(max-width:900px){.member-modules-workspace form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.member-modules-workspace{padding:16px}.member-modules-workspace form{grid-template-columns:1fr}.member-modules-result-head{align-items:flex-start;flex-direction:column}}
/* Module discovery uses the same compact surfaces, frames and restrained glow as the homepage. */
html[data-design]:not([data-design="legacy"]) .member-modules-page {max-width:1320px;padding:24px 20px 48px;}
html[data-design]:not([data-design="legacy"]) :is(.member-modules-head,.member-modules-workspace) {border:1px solid var(--design-accent,#e30613);background:color-mix(in srgb,var(--design-surface,#17171b) 86%,transparent);box-shadow:inset 0 1px 0 #ff526126,0 12px 28px #0002;border-radius:14px;backdrop-filter:blur(12px);}
html[data-design]:not([data-design="legacy"]) .member-modules-head {padding:18px 22px;position:relative;overflow:hidden;}
html[data-design]:not([data-design="legacy"]) .member-modules-head::after {content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 90% 0%,color-mix(in srgb,var(--design-accent,#e30613) 18%,transparent),transparent 60%);pointer-events:none;}
html[data-design]:not([data-design="legacy"]) .member-modules-head h1 {font-size:clamp(26px,3vw,36px);line-height:1.15;}
html[data-design]:not([data-design="legacy"]) .member-modules-tabs {margin:14px 0 10px;padding:0;border:0;gap:6px;}
html[data-design]:not([data-design="legacy"]) .member-modules-tabs a {min-height:40px;padding:10px 14px;border:1px solid var(--design-border,#7c2634);border-radius:8px;background:color-mix(in srgb,var(--design-surface,#17171b) 86%,transparent);}
html[data-design]:not([data-design="legacy"]) .member-modules-tabs a[aria-current] {background:var(--design-accent,#e30613);color:#fff;}
html[data-design]:not([data-design="legacy"]) .member-modules-workspace {padding:18px;}
html[data-design]:not([data-design="legacy"]) .member-modules-workspace form {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
html[data-design]:not([data-design="legacy"]) .member-modules-results {grid-template-columns:repeat(auto-fill,minmax(210px,260px));gap:12px;}
html[data-design]:not([data-design="legacy"]) .member-module-card {border-color:var(--design-accent,#e30613);border-radius:12px;transition:box-shadow .2s,transform .2s;}
html[data-design]:not([data-design="legacy"]) .member-module-card:hover {box-shadow:0 8px 24px #e3061326;transform:translateY(-2px);}
html[data-design]:not([data-design="legacy"]) .member-module-card>img {height:auto;aspect-ratio:4/3;}
html[data-design]:not([data-design="legacy"]) .member-module-card>div {padding:12px;gap:8px;}
html[data-design]:not([data-design="legacy"]) .member-modules-result-head {margin-top:18px;}
@media(max-width:700px){html[data-design]:not([data-design="legacy"]) .member-modules-workspace form {grid-template-columns:repeat(2,minmax(0,1fr));}html[data-design]:not([data-design="legacy"]) .member-modules-page {padding:18px 12px 36px;}}
@media(max-width:450px){html[data-design]:not([data-design="legacy"]) .member-modules-workspace form {grid-template-columns:1fr;}html[data-design]:not([data-design="legacy"]) .member-modules-results {grid-template-columns:1fr;}}
@media(prefers-reduced-motion:reduce){html[data-design]:not([data-design="legacy"]) .member-module-card {transition:none;transform:none!important;}}

.member-modules-tabs a[hidden]{display:none!important;}
/* Muted surfaces and action red; highlight pink is reserved for fine borders. */
html[data-design]:not([data-design="legacy"]) .member-modules-tabs a[aria-current="page"] {background:var(--design-action,#e30613);border-color:var(--design-action,#e30613);color:#fff;}
html[data-design]:not([data-design="legacy"]) :is(.member-modules-head,.member-modules-workspace) {background:color-mix(in srgb,var(--design-bg,#151515) 90%,transparent);}
html[data-design]:not([data-design="legacy"]) .member-modules-tabs a:not([aria-current="page"]) {background:color-mix(in srgb,var(--design-bg,#151515) 92%,transparent);}
html[data-design]:not([data-design="legacy"]) .member-modules-head::after {background:radial-gradient(ellipse at 90% 0%,color-mix(in srgb,var(--design-action,#c91329) 10%,transparent),transparent 60%);}

.member-modules-workspace [data-module-filters][hidden],.member-modules-result-head[hidden]{display:none!important}
.member-modules-results.member-model-detail{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.member-model-detail>a{justify-self:start}
.member-model-sheet{min-width:0;padding:clamp(18px,3vw,30px);border:1px solid var(--ui-color-border);border-top:3px solid var(--ui-color-primary);border-radius:16px;background:var(--ui-color-surface);overflow-wrap:anywhere}
.member-model-sheet>h2{margin:0 0 20px;font-size:clamp(22px,3vw,30px)}
.member-model-sheet .profile-section-sedcard{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:10px 20px;margin:20px 0}
.member-model-sheet dt{color:var(--ui-color-muted)}.member-model-sheet dd{margin:0;white-space:pre-wrap}
.member-model-sheet .profile-section-preview-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;margin:18px 0}
.member-model-sheet :is(img,video){display:block;max-width:100%;max-height:650px;object-fit:contain;border-radius:12px}
.member-model-sheet .profile-section-sedcard-copy{white-space:pre-wrap;line-height:1.65}
@media(max-width:560px){.member-model-sheet .profile-section-sedcard{grid-template-columns:minmax(0,1fr);gap:5px}.member-model-sheet dd{margin-bottom:12px}}
