/* Shared shell adaptation. Desktop musical component sizes remain unchanged. */
@media(max-width:749px){.mvp-zero-chooser-card .mvp-zero-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}.mvp-zero-chooser-card .mvp-zero-actions button{width:100%;min-width:0;white-space:normal;box-sizing:border-box}}body.play12-three-zones .training-three-zones.is-three-narrow{--training-content-width:100%}body.play12-three-zones .training-three-zones.is-three-narrow>.training-zone{gap:8px}body.play12-three-zones .is-three-narrow .main-profile,body.play12-three-zones .is-three-narrow .main-library-card,body.play12-three-zones .is-three-narrow .training-skill-card{width:100%;box-sizing:border-box;flex-shrink:0}body.play12-three-zones .is-three-narrow .main-library-card{flex:1 0 auto;min-height:190px}body.play12-three-zones .is-three-narrow .main-melodies{flex:1 0 auto;min-height:65px;max-height:none;overflow:visible}body.play12-three-zones .is-three-narrow .main-library-heading{display:flex;align-items:baseline;gap:8px;flex-wrap:nowrap}body.play12-three-zones .is-three-narrow .main-library-heading h2{font-size:20px;flex:1;min-width:0}body.play12-three-zones .is-three-narrow .main-library-heading a{font-size:11px;white-space:nowrap;padding:6px}body.play12-three-zones .training-zone-navigation{align-items:center;margin-bottom:8px;gap:4px;font-family:Inter,Arial,sans-serif}body.play12-three-zones .training-zone-navigation button{color:#111;background:transparent;border:0;border-radius:0;position:relative;white-space:nowrap}body.play12-three-zones .training-zone-navigation button[aria-current="true"]{background:transparent;font-weight:700}body.play12-three-zones .training-zone-navigation button[aria-current="true"]:after{content:"";position:absolute;bottom:0;left:10px;right:10px;height:3px;background:#E96E40}body.play12-three-zones .training-zone-navigation .training-nav-arrow{border:1px solid #d1d3ce;border-radius:6px;min-width:28px;padding:6px;font-size:18px}.training-nav-arrow:disabled{visibility:hidden}body.play12-three-zones .is-three-narrow .main-tools .main-title-board{height:30px;min-height:30px;max-height:30px;font-size:14px;line-height:20px;padding:4px 10px}body.play12-three-zones .main-layout.training-three-zones.is-three-narrow{padding-top:4px;padding-bottom:6px}body.play12-three-zones .is-three-narrow .training-zone-right{padding-top:0}body.play12-three-zones .is-three-narrow .training-skill-card{flex:none;min-height:100px;max-height:160px;margin-bottom:12px}body.play12-three-zones .is-three-narrow .training-panel-slot{overflow:visible;max-width:100%;margin-top:0}body.play12-three-zones .is-three-narrow .training-right-controls{flex-wrap:wrap;justify-content:center;width:100%;height:auto;gap:8px}body.play12-three-zones .is-three-narrow .training-right-controls>.mvp-round-loop-board{width:100%;height:auto;min-height:100px}body.play12-three-zones .is-three-narrow .training-right-controls .round-controls{flex-wrap:wrap;justify-content:center;gap:6px}body.play12-three-zones .is-three-narrow .training-right-controls{--mvp-control-font-size:12px}body.play12-three-zones .is-three-narrow .training-right-controls .round-stepper button,body.play12-three-zones .is-three-narrow .training-right-controls .round-navigation button{width:22px}body.play12-three-zones .is-three-narrow .training-right-controls .round-range-controls{gap:8px}
@media(max-width:749px){.mvp-site-header,body>header{padding-top:8px!important;padding-bottom:6px!important;min-height:0!important}.mvp-site-logo,.logo-img{width:110px!important;height:110px!important;max-height:none!important;object-fit:contain}.mvp-logo-link,.logo-link{height:56px;overflow:hidden;display:flex;align-items:center}.mvp-site-nav,body>header>nav{row-gap:12px!important}.mvp-language-switch{align-self:end}.mvp-zero-chooser-card{max-width:calc(100vw - 28px);box-sizing:border-box}}
@media(min-width:750px) and (max-width:1279px){.mvp-site-header,body>header{display:flex!important;align-items:center!important;padding:12px 20px!important}.mvp-site-nav,body>header>nav{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:14px!important}.mvp-site-nav a,.mvp-language-switch{font-size:12px!important}.mvp-logo-link,.logo-link{align-self:center!important}.hero-buttons,.hero-actions{display:flex;flex-direction:column;align-items:center}.hero-buttons>a,.hero-buttons>button,.hero-actions>a,.hero-actions>button{width:260px;max-width:100%}}

@media(min-width:750px) and (max-width:1279px){.buttons{display:grid;grid-template-columns:max-content;justify-content:center}.buttons>.button{width:100%;box-sizing:border-box}.import-card>.import-button{width:max-content;max-width:100%;margin-inline:auto}}

.clipboard-import{margin:18px 0;text-align:left}.clipboard-import>label{display:block;margin-top:12px}.clipboard-import textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;font:14px/1.4 monospace;margin:8px 0}.clipboard-actions{display:flex;gap:8px;flex-wrap:wrap}.clipboard-actions button{flex:1;padding:10px;font:600 14px Inter,Arial,sans-serif;color:#111}.clipboard-import small{display:block;margin-top:10px}body.play12-three-zones .is-three-narrow .training-zone-right>.training-panel-slot{width:100%!important;height:auto!important}body.play12-three-zones .is-three-narrow .training-right-controls{transform:none!important}
.tutorial-progress-card ol{overflow-y:auto;max-height:240px;scroll-padding:12px}.tutorial-progress-card li{flex-shrink:0}
.training-swipe-hint{margin:0 8px 8px;text-align:center;font:12px/1.3 Inter,Arial,sans-serif;color:#111}

@media(min-width:750px) and (max-width:1279px){.mvp-site-logo,.logo-img{width:110px!important;height:110px!important;max-height:none!important;object-fit:contain}.mvp-logo-link,.logo-link{height:56px;overflow:hidden;display:flex;align-items:center}.hero .buttons{display:grid;grid-template-columns:max-content;justify-content:center}}

/* Reserve room for two readable rounds before reducing the score itself. */
@media(max-width:749px){.mvp-site-header,body>header{height:64px!important}.mvp-site-logo,.logo-img{width:100px!important;height:100px!important}.mvp-logo-link,.logo-link{height:50px}body.play12-three-zones .is-three-narrow .main-tools{margin-bottom:0}body.play12-three-zones .training-persistent-footer{padding-top:4px;padding-bottom:max(4px,env(safe-area-inset-bottom))}body.play12-three-zones .training-zone-navigation{margin-bottom:6px}}
body.play12-three-zones .is-three-narrow .playback-stage{touch-action:pan-x}
/* Portrait panels share the actual, unmodified score frame's external grid. */
body.play12-three-zones .is-three-narrow .main-profile,
body.play12-three-zones .is-three-narrow .main-library-card,
body.play12-three-zones .is-three-narrow .training-skill-card,
body.play12-three-zones .is-three-narrow .training-panel-slot{width:min(100%,var(--training-music-width));align-self:center}
body.play12-three-zones .is-three-narrow .main-library-heading h2{font-size:18px}
body.play12-three-zones .is-three-narrow .training-left-controls{width:min(100%,var(--training-music-width));height:auto;flex-wrap:wrap;justify-content:center;gap:8px}
body.play12-three-zones .is-three-narrow .training-right-controls{width:min(100%,var(--training-music-width));display:grid;grid-template-columns:minmax(0,1fr);align-items:end}
body.play12-three-zones .is-three-narrow .training-right-controls>.mvp-round-loop-board{width:100%;min-width:0}
body.play12-three-zones .training-zone-navigation{display:grid;grid-template-columns:28px repeat(3,minmax(0,1fr)) 28px;width:100%;box-sizing:border-box}
body.play12-three-zones .training-zone-navigation button{min-width:0;padding-inline:2px}
body.play12-three-zones .training-zone-navigation[hidden]{display:none!important}
/* Override the old full-slot rule as well as inline measurements. */
body.play12-three-zones .is-three-narrow .training-zone-right>.training-panel-slot{width:min(100%,var(--training-music-width))!important}

/* Keep shared tablet headers aligned even when the page has a vertical scrollbar. */
@media (min-width:750px) and (max-width:1279px) {
  body > header, .mvp-site-header {height:auto!important;min-height:0!important}
  body > header .logo-link, .mvp-site-header .mvp-logo-link {flex-shrink:0}
  body > header > nav a, body > header .language-switch {font-size:12px}
  .hero .buttons {grid-template-columns:minmax(0,max-content)}
  .hero .buttons > .button, .import-card > .import-button {
    padding-inline:24px;
    min-width:0;
  }
}
