/* Shared MusicMate UI. Font is served locally so every tool uses the same face. */
@font-face{font-family:'Pretendard';font-style:normal;font-weight:45 920;font-display:optional;src:url('/mm-pretendard.woff2') format('woff2')}
html{scrollbar-gutter:stable;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
:root{
  --mm-bg:#f6f8fc;--mm-surface:#fff;--mm-text:#191f28;--mm-muted:#6b7684;
  --mm-primary:#5e6ad2;--mm-primary-hover:#4b56b8;--mm-primary-soft:#eef0fb;
  --mm-line:#e6eaf1;--mm-radius:18px;--mm-control-radius:10px;
  --mm-font:'Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  --mm-shadow:0 4px 20px #23315406;--mm-width:1120px;--mm-gutter:24px;
  --mm-header-height:93px;
}
body[data-mm-ui=home],body[data-mm-section=home]{--mm-header-height:57px}
body[data-mm-page=score],body[data-mm-page=dataset]{--mm-header-height:138px}
body[data-mm-ui]{margin:0;background:var(--mm-bg);color:var(--mm-text);font-family:var(--mm-font);font-size:15px;line-height:1.6;letter-spacing:-.02em;-webkit-font-smoothing:antialiased}
body[data-mm-ui=home]{background:#fff}
:where(body[data-mm-ui]) *,:where(body[data-mm-ui]) *::before,:where(body[data-mm-ui]) *::after{box-sizing:border-box}
body[data-mm-ui] :where(button,input,select,textarea){font-family:inherit}
body[data-mm-ui] :where(button,[role=button],input,select,textarea,a){-webkit-tap-highlight-color:transparent}
body[data-mm-ui] :where(button,input,select,textarea,a):focus-visible{outline:3px solid var(--mm-primary);outline-offset:3px}
body[data-mm-ui] :where(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--mm-primary)}
body[data-mm-ui] :where(button:disabled,input:disabled,select:disabled,textarea:disabled){cursor:not-allowed}
/* Feedback uses color; clicking must not shrink the controls or their content. */
body[data-mm-ui] :is(.btn,.song-card,.float-btn,.zoom-fab button):active{transform:none}
.mm-page{width:100%;max-width:var(--mm-width);margin:0 auto;padding:36px var(--mm-gutter) 64px;min-width:0}
.mm-page-hero{margin-bottom:28px}
.mm-page-hero h1{margin:0;font-size:32px;line-height:1.3;font-weight:750;letter-spacing:-.04em;color:var(--mm-text)}
.mm-page-hero p{margin:8px 0 0;font-size:15px;color:var(--mm-muted)}
.mm-page-footer{max-width:calc(var(--mm-width) - 48px);margin:0 auto;padding:24px 0;border-top:1px solid var(--mm-line);display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12px;color:var(--mm-muted)}
.mm-page-footer nav{display:flex;gap:20px}
.mm-page-footer a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.mm-page-footer a:hover{color:var(--mm-primary)}
/* The hub and home launcher share one card anatomy. Tool color only identifies a destination. */
body[data-mm-ui] .mm-tool-link{border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:var(--mm-surface);box-shadow:var(--mm-shadow);color:var(--mm-text)}
.mm-tool-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:14px;background:var(--mm-primary-soft);color:var(--mm-primary)}
.mm-tool-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mm-tool-copy{min-width:0}
.mm-tool-copy strong{display:block;font-weight:700}
.mm-tool-copy p{margin:6px 0 0}
.mm-tool-action{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;margin-top:auto;padding:8px 12px;border-radius:10px;background:var(--mm-primary-soft);color:var(--mm-primary);font-size:12px;line-height:1.4;font-weight:650;white-space:nowrap}
.mm-tool-action>span{font-size:17px;line-height:1}
.mm-hub .mm-tools-grid{gap:16px;margin:0}
.mm-hub .mm-tool-link{min-height:218px;padding:22px;gap:16px;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.mm-hub .mm-tool-link strong{font-size:18px;line-height:1.45}
.mm-hub .mm-tool-link p{font-size:13px;line-height:1.5;color:var(--mm-muted)}
.mm-hub .mm-tool-link:hover{border-color:#bcc3ee;box-shadow:0 8px 24px #2331540c}
.mm-hub .mm-tool-link:hover .mm-tool-action{background:var(--mm-primary);color:#fff}
@media(max-width:760px){:root{--mm-gutter:20px}.mm-page{padding-top:28px;padding-bottom:48px}.mm-page-hero h1{font-size:26px}.mm-page-hero{margin-bottom:24px}.mm-page-footer{margin:0 20px}.mm-hub .mm-tools-grid{grid-template-columns:1fr}.mm-hub .mm-tool-link{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;min-height:112px;padding:20px;gap:14px}.mm-hub .mm-tool-action{margin:0;gap:12px}}
@media(max-width:480px){.mm-page-footer{align-items:flex-start;flex-direction:column;gap:8px}.mm-hub .mm-tool-link{grid-template-columns:40px minmax(0,1fr) auto;padding:18px 16px;gap:12px}.mm-hub .mm-tool-icon{width:40px;height:40px;border-radius:12px}.mm-hub .mm-tool-copy strong{font-size:16px}.mm-hub .mm-tool-copy p{font-size:12px}.mm-hub .mm-tool-action{gap:8px;padding:8px 10px;font-size:11px}}
@media(max-width:359px){.mm-hub .mm-tool-link{grid-template-columns:34px minmax(0,1fr);gap:10px}.mm-hub .mm-tool-icon{width:34px;height:34px}.mm-hub .mm-tool-action{grid-column:2;justify-self:start}}
@media(prefers-reduced-motion:reduce){body[data-mm-ui] .mm-tool-link{transition:none}}
@media(max-width:760px){
  :root{--mm-header-height:137px}
  body[data-mm-ui=home],body[data-mm-section=home]{--mm-header-height:101px}
  body[data-mm-page=score],body[data-mm-page=dataset]{--mm-header-height:182px}
  body[data-mm-ui] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px}
}
