body.scm-materials-center { background: var(--scm-bg) !important; }
body.scm-materials-center .materials-center-nav { background: var(--scm-primary); border-bottom: 1px solid rgba(255,255,255,.15); }
body.scm-materials-center .materials-center-nav-inner { width: min(100% - 40px,1100px); min-height:64px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:24px; }
body.scm-materials-center .materials-center-brand { color:#fff; font-size:.9rem; font-weight:700; text-decoration:none; }
body.scm-materials-center .materials-center-nav-links { display:flex; gap:6px; }
body.scm-materials-center .materials-center-nav-links a { border-radius:8px; color:rgba(255,255,255,.85); font-size:.82rem; font-weight:600; padding:8px 10px; text-decoration:none; }
body.scm-materials-center .materials-center-nav-links a[aria-current="page"],body.scm-materials-center .materials-center-nav-links a:hover { background:rgba(255,255,255,.14); color:#fff; }
body.scm-materials-center .materials-center-shell { width:min(100% - 40px,1100px); margin:auto; padding:50px 0 64px; }
body.scm-materials-center .materials-center-header { max-width:650px; margin-bottom:30px; }
body.scm-materials-center .materials-center-header h1 { color:var(--scm-text); font-size:clamp(2rem,4vw,2.7rem); font-weight:700; letter-spacing:-.035em; line-height:1.1; margin:0; }
body.scm-materials-center .materials-center-header p { color:var(--scm-muted); font-size:1rem; line-height:1.55; margin:11px 0 0; }
body.scm-materials-center .materials-center-panel { background:var(--scm-surface); border:1px solid var(--scm-border); border-radius:14px; padding:27px 30px 25px; }
body.scm-materials-center :where(.materials-center-panel h2,.materials-results h2) { color:var(--scm-text); font-size:1.12rem; font-weight:700; letter-spacing:-.015em; line-height:1.3; margin:0; }
body.scm-materials-center .materials-center-fields { display:grid; grid-template-columns:1fr 1.25fr 1fr; gap:18px; margin-top:20px; }
body.scm-materials-center .materials-center-fields label { color:var(--scm-text); display:grid; font-size:.82rem; font-weight:650; gap:7px; min-width:0; }
body.scm-materials-center .materials-center-fields select { appearance:auto; background-color:#fff; border-color:#c4cdc8; min-height:46px; }
body.scm-materials-center .materials-center-help { color:var(--scm-muted); font-size:.82rem; line-height:1.45; margin:15px 0 0; }
body.scm-materials-center .materials-results { margin-top:35px; }
body.scm-materials-center .materials-results-heading { display:flex; justify-content:space-between; gap:18px; margin-bottom:14px; }
body.scm-materials-center .materials-results-heading p { color:var(--scm-muted); font-size:.86rem; line-height:1.45; margin:5px 0 0; }
body.scm-materials-center .materials-list { display:grid; gap:10px; }
body.scm-materials-center .materials-item { align-items:center; background:var(--scm-surface); border:1px solid var(--scm-border); border-radius:12px; display:flex; gap:24px; justify-content:space-between; min-width:0; padding:21px 22px; transition:border-color .18s ease,box-shadow .18s ease; }
body.scm-materials-center .materials-item:hover { border-color:#bcc9c3; box-shadow:0 8px 22px rgba(36,43,41,.045); }
body.scm-materials-center .materials-item-copy { min-width:0; }
body.scm-materials-center .materials-item-category { color:var(--scm-primary); font-size:.72rem; font-weight:700; letter-spacing:.035em; line-height:1.3; margin:0 0 5px; text-transform:uppercase; }
body.scm-materials-center .materials-item h3 { color:var(--scm-text); font-size:1.03rem; font-weight:700; line-height:1.35; margin:0; overflow-wrap:anywhere; }
body.scm-materials-center .materials-item-description { color:var(--scm-muted); font-size:.88rem; line-height:1.55; margin:7px 0 0; overflow-wrap:anywhere; white-space:pre-wrap; }
body.scm-materials-center .materials-item-meta { display:flex; flex-wrap:wrap; gap:7px 20px; margin:13px 0 0; }
body.scm-materials-center .materials-item-meta div { min-width:0; }
body.scm-materials-center .materials-item-meta dt { color:var(--scm-muted); font-size:.72rem; font-weight:600; line-height:1.25; }
body.scm-materials-center .materials-item-meta dd { color:var(--scm-text); font-size:.78rem; line-height:1.35; margin:2px 0 0; overflow-wrap:anywhere; }
body.scm-materials-center .materials-item-actions { display:grid; flex:none; gap:8px; grid-template-columns:repeat(2,auto); }
body.scm-materials-center .materials-item-actions :where(a,button) { align-items:center; border:1px solid var(--scm-primary); border-radius:9px; cursor:pointer; display:inline-flex; font:inherit; font-size:.82rem; font-weight:700; justify-content:center; min-height:42px; padding:9px 13px; text-decoration:none; transition:background .18s ease,color .18s ease; }
body.scm-materials-center .materials-open { background:#fff; color:var(--scm-primary); }
body.scm-materials-center .materials-open:hover { background:var(--scm-soft); }
body.scm-materials-center .materials-download { background:var(--scm-primary); color:#fff; }
body.scm-materials-center .materials-download:hover,body.scm-materials-center .materials-retry:hover { background:var(--scm-primary-hover); }
body.scm-materials-center .materials-download:disabled { cursor:wait; opacity:.72; }
body.scm-materials-center .materials-state { align-items:flex-start; background:var(--scm-surface); border:1px solid var(--scm-border); border-radius:12px; color:var(--scm-muted); display:flex; gap:12px; min-height:94px; padding:21px 22px; }
body.scm-materials-center .materials-state-icon { align-items:center; border:1px solid var(--scm-border); border-radius:50%; color:var(--scm-primary); display:inline-flex; flex:none; font-size:.9rem; font-weight:700; height:28px; justify-content:center; width:28px; }
body.scm-materials-center .materials-state h3 { color:var(--scm-text); font-size:.95rem; line-height:1.35; margin:0; }
body.scm-materials-center .materials-state p { font-size:.84rem; line-height:1.5; margin:4px 0 0; }
body.scm-materials-center .materials-repertoire-my-song { align-items:center; background:var(--scm-soft); border:1px solid #ccdbd3; border-radius:12px; display:flex; gap:20px; justify-content:space-between; margin-bottom:14px; padding:18px 20px; }
body.scm-materials-center .materials-repertoire-my-song .materials-item-category { text-transform:none; letter-spacing:0; }
body.scm-materials-center .materials-repertoire-my-song h3 { color:var(--scm-text); font-size:1rem; line-height:1.35; margin:0; overflow-wrap:anywhere; }
body.scm-materials-center .materials-repertoire-my-song small { color:var(--scm-muted); display:block; margin-top:6px; overflow-wrap:anywhere; }
body.scm-materials-center .materials-repertoire-note { color:var(--scm-muted); font-size:.84rem; line-height:1.45; margin:0 0 14px; }
body.scm-materials-center .materials-repertoire-search { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; margin-bottom:14px; max-width:360px; }
body.scm-materials-center .materials-repertoire-search label { color:var(--scm-text); font-size:.82rem; font-weight:650; line-height:1.4; margin:0; }
body.scm-materials-center .materials-repertoire-search input { background:var(--scm-surface); border:1px solid #c4cdc8; border-radius:9px; font-size:1rem; font-weight:400; min-height:46px; padding:9px 12px; }
body.scm-materials-center .materials-repertoire-level { color:var(--scm-muted); font-size:.8rem; margin:8px 0 0; }
body.scm-materials-center .materials-retry { background:var(--scm-primary); border:1px solid var(--scm-primary); border-radius:8px; color:#fff; cursor:pointer; font:inherit; font-size:.82rem; font-weight:700; margin-top:13px; min-height:40px; padding:8px 13px; }
body.scm-materials-center .materials-center-footer { border-top:1px solid var(--scm-border); color:var(--scm-muted); font-size:.75rem; margin-top:auto; padding:17px 20px; }
body.scm-materials-center .materials-center-footer p { margin:0 auto; width:min(100%,1100px); }
body.scm-materials-center .mho-sidebar { background:var(--scm-primary)!important; border-right:1px solid rgba(255,255,255,.15)!important; box-shadow:none!important; backdrop-filter:none!important; }
body.scm-materials-center .mho-sidebar :where(.mho-sidebar-link,.mho-sidebar-mark,.mho-sidebar-auth,.mho-sidebar-logout,.mho-sidebar-lang button) { border-radius:10px!important; box-shadow:none!important; }
body.scm-materials-center .mho-sidebar-link.active { background:rgba(255,255,255,.16)!important; }
body.scm-materials-center .mho-sidebar-avatar { background:#3b6b5f!important; }
@media (min-width: 1024px) {
  body.scm-materials-center.mho-sidebar-enabled > .materials-center-top { display: none; }
}

@media (max-width: 1023px) {
  body.scm-materials-center {
    --materials-gutter-start: max(16px, env(safe-area-inset-left));
    --materials-gutter-end: max(16px, env(safe-area-inset-right));
    margin: 0;
  }

  body.scm-materials-center .materials-center-top {
    position: sticky;
    top: 0;
    z-index: 80;
  }

  body.scm-materials-center .materials-center-nav { padding-top: env(safe-area-inset-top); }

  body.scm-materials-center .materials-center-nav-inner {
    width: auto;
    min-height: 56px;
    padding-inline: var(--materials-gutter-start) var(--materials-gutter-end);
    gap: 12px;
  }

  body.scm-materials-center .materials-center-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  body.scm-materials-center :where(.materials-center-brand, .materials-center-nav-inner .mho-mobile-toggle):focus-visible {
    outline-color: #fff;
  }

  body.scm-materials-center .materials-center-nav-links { display: none; }

  body.scm-materials-center .materials-center-nav-inner .mho-mobile-toggle {
    position: static !important;
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    border-color: rgba(255, 255, 255, .32) !important;
    border-radius: 9px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.scm-materials-center .materials-center-nav-inner .mho-mobile-toggle .line {
    width: 20px !important;
    background: #fff !important;
  }

  body.scm-materials-center .materials-center-shell :where(a, button, input, select) {
    scroll-margin-top: calc(68px + env(safe-area-inset-top));
  }
}

@media (max-width: 768px) {
  body.scm-materials-center {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }

  body.scm-materials-center .materials-center-shell {
    flex: 1 0 auto;
    width: auto;
    margin: 0;
    padding: 20px var(--materials-gutter-end) 28px var(--materials-gutter-start);
  }

  body.scm-materials-center .materials-center-header { margin-bottom: 16px; }

  body.scm-materials-center .materials-center-header h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.15;
  }

  body.scm-materials-center :where(.materials-center-header p, .materials-center-help, .materials-results:not([data-selection-ready])) {
    display: none;
  }

  body.scm-materials-center .materials-center-panel {
    border-color: #d7dfda;
    border-radius: 14px;
    padding: 14px;
  }

  body.scm-materials-center .materials-center-panel h2 {
    color: var(--scm-primary);
    font-size: .98rem;
  }

  body.scm-materials-center .materials-center-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin-top: 13px;
  }

  body.scm-materials-center .materials-center-fields label {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 5px;
  }

  body.scm-materials-center :is(.materials-center-fields, .materials-repertoire-search) label {
    color: var(--scm-text) !important;
    font-size: .82rem !important;
    font-weight: 650 !important;
    line-height: 1.35;
    margin: 0 !important;
  }

  body.scm-materials-center :is(.materials-center-fields select, .materials-repertoire-search input) {
    min-height: 48px;
    padding: 9px 12px !important;
    border: 1px solid #c4cdc8 !important;
    border-radius: 9px !important;
    font-size: 1rem !important;
    line-height: 1.4;
  }

  body.scm-materials-center .materials-center-fields select {
    padding-inline-end: 34px !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    font-weight: 550;
  }

  body.scm-materials-center .materials-center-fields select:disabled {
    background-color: #f1f2ef !important;
    color: var(--scm-muted);
  }

  body.scm-materials-center .materials-results { margin-top: 21px; }
  body.scm-materials-center .materials-results-heading { margin-bottom: 12px; }
  body.scm-materials-center .materials-results-heading h2 { font-size: 1.12rem; }
  body.scm-materials-center .materials-results-heading p { font-size: .81rem; overflow-wrap: anywhere; }
  body.scm-materials-center .materials-repertoire-search { max-width: none; }

  body.scm-materials-center :is(.materials-item, .materials-repertoire-my-song) {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    padding: 14px;
  }

  body.scm-materials-center .materials-item-category { letter-spacing: 0; text-transform: none; }
  body.scm-materials-center .materials-item-meta { margin-top: 10px; gap: 7px 14px; }

  body.scm-materials-center .materials-item-actions {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  body.scm-materials-center .materials-item-actions :where(a, button) {
    min-width: 0;
    min-height: 48px;
    padding: 8px !important;
    font-size: .82rem !important;
    text-align: center;
    overflow-wrap: anywhere;
  }

  body.scm-materials-center .materials-state { min-height: 0; padding: 14px; }
  body.scm-materials-center .materials-state-empty .materials-state-icon { display: none; }
  body.scm-materials-center .materials-retry { min-height: 48px; }

  body.scm-materials-center .materials-center-footer {
    font-size: .75rem;
    padding: 13px var(--materials-gutter-end) max(13px, env(safe-area-inset-bottom)) var(--materials-gutter-start);
  }
}

@media (min-width: 640px) and (max-width: 768px) {
  body.scm-materials-center .materials-center-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, .8fr);
  }
}
@media (prefers-reduced-motion:reduce) { body.scm-materials-center .materials-item,body.scm-materials-center .materials-item-actions :where(a,button) { transition-duration:.01ms; } }
