/* Sonement for Mac replica — the main window, laid out in real macOS points
 * (1181 × 746, the owner's window) and scaled as one unit.
 * Source of truth: spec/mac-app-spec-2026-09-23.md + reference/…/mac/*.png.
 * Scoped under .ma; shares nothing with the iPhone or legacy demo kits. */

.ma{
  --ma-scale:1;
  --canvas:#000; --side:rgba(31,29,28,.94); --side-sel:#393837; --side-head:#6a6968; --rail:#1E1E1E; --seam:#191919;
  --ink:#fff; --ink-85:rgba(255,255,255,.85); --ink-2:#8C8C8C; --ink-2r:#A5A5A5; --ink-3:#5E5E5E;
  --tint:#fff; --on-tint:#000;
  --fill-05:rgba(255,255,255,.11); --fill-06:rgba(255,255,255,.132); --fill-07:rgba(255,255,255,.154); --fill-08:rgba(255,255,255,.176); --fill-12:rgba(255,255,255,.12);
  --glass:rgba(34,34,34,.78); --glass-rim-t:rgba(255,255,255,.3); --glass-rim-b:rgba(255,255,255,.16);
  --card:#373737; --audio-card:#474747; --div:#4B4B4B; --div-page:#252525;
  --accent:#397BF7;
  --font:-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Inter", "Helvetica Neue", sans-serif;
  --font-d:-apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", system-ui, "Inter", "Helvetica Neue", sans-serif;
  position:relative;
  width:calc(1181px * var(--ma-scale)); height:calc(746px * var(--ma-scale));
  font-family:var(--font); color:var(--ink);
  -webkit-font-smoothing:antialiased; user-select:none; -webkit-user-select:none;
}

/* Isolation from host pages (the homepage sets *{margin:0;padding:0;box-sizing:border-box},
   section{padding-block:…}, p{max-width}, body line-height): the component must lay
   out identically on the bench, the homepage and every demo page. */
.ma{ line-height:1.2; letter-spacing:normal; text-align:left; }
.ma, .ma *, .ma *::before, .ma *::after{ box-sizing:border-box; }
.ma section{ padding:0; margin:0; }
.ma p{ max-width:none; }
.ma button{ font-family:inherit; }
:root[data-theme="light"] .ma{
  --canvas:#F5F5F5; --side:rgba(232,230,228,.94); --side-sel:#D9D7D5; --side-head:#9A9896; --rail:#ECECEC; --seam:#D4D4D4;
  --ink:#000; --ink-85:rgba(0,0,0,.85); --ink-2:#7A7A7A; --ink-2r:#6E6E6E; --ink-3:#A8A8A8;
  --tint:#000; --on-tint:#fff;
  --fill-05:rgba(0,0,0,.05); --fill-06:rgba(0,0,0,.06); --fill-07:rgba(0,0,0,.07); --fill-08:rgba(0,0,0,.08); --fill-12:rgba(0,0,0,.12);
  --glass:rgba(255,255,255,.72); --glass-rim-t:rgba(0,0,0,.12); --glass-rim-b:rgba(0,0,0,.08);
  --card:#DCDCDC; --audio-card:#D2D2D2; --div:#D0D0D0; --div-page:#E4E4E4;
}

.ma-win{
  position:absolute; left:0; top:0; width:1181px; height:746px; transform:scale(var(--ma-scale)); transform-origin:0 0;
  border-radius:16px; overflow:hidden; background:var(--canvas);
  box-shadow:0 0 0 .5px rgba(0,0,0,.6), inset 0 0 0 .5px rgba(255,255,255,.14), 0 30px 70px -18px rgba(0,0,0,.55), 0 10px 26px -10px rgba(0,0,0,.35);
  display:flex; contain:layout paint;
}
:root[data-theme="light"] .ma-win{ box-shadow:0 0 0 .5px rgba(0,0,0,.22), 0 30px 70px -18px rgba(0,0,0,.28), 0 10px 26px -10px rgba(0,0,0,.18); }

/* ---------- glass controls ---------- */
.ma-glass{ background:var(--glass); -webkit-backdrop-filter:blur(20px) saturate(1.8); backdrop-filter:blur(20px) saturate(1.8);
  box-shadow:inset 0 1px 0 var(--glass-rim-t), inset 0 0 0 1px var(--glass-rim-b); }
.ma-ctl{ height:32px; min-width:32px; border:0; border-radius:16px; padding:0; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  color:var(--ink); font:400 13px/1 var(--font); cursor:pointer; transition:transform .25s cubic-bezier(.3,1.4,.5,1), background-color .15s; }
.ma-ctl:hover{ filter:brightness(1.18); }
.ma-ctl:active{ transform:scale(1.06); }
.ma-ctl svg{ width:17px; height:17px; flex:none; stroke-width:2; }
.ma-ctl.txt{ padding:0 10px; }

/* ---------- sidebar ---------- */
.ma-side{ position:relative; flex:none; width:272px; overflow:hidden; background:var(--side);
  -webkit-backdrop-filter:blur(40px) saturate(1.5); backdrop-filter:blur(40px) saturate(1.5);
  transition:width .32s cubic-bezier(.4,0,.2,1); }
.ma.side-hidden .ma-side{ width:0; }
.ma-side-in{ position:absolute; left:0; top:0; bottom:0; width:272px; }
.ma-side-scroll{ position:absolute; left:0; right:0; top:52px; bottom:64.5px; overflow-y:auto; scrollbar-width:none; }
.ma-side-scroll::-webkit-scrollbar{ display:none; }
.ma-sh{ box-sizing:border-box; padding:4px 14.5px 0; height:18px; font:700 11px/1.193 var(--font); color:var(--side-head); }
.ma-sr{ position:relative; display:flex; align-items:center; margin:0 10px; border-radius:10px; cursor:default; }
.ma-sr.sel{ background:var(--side-sel); }
.ma-sr.svc{ height:52px; gap:7.5px; padding:0 0 0 9px; }
.ma-sr .tile20{ width:20px; height:20px; border-radius:5px; display:grid; place-items:center; flex:none; font:700 11px/1 ui-rounded, var(--font); box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); }
.ma-sr .tile20.radio{ background:rgba(255,255,255,.16); color:var(--ink-2); box-shadow:none; }
.ma-sr .tile20 svg{ width:12px; height:12px; }
.ma-sr .nm{ flex:1; min-width:0; font:400 13px/1.193 var(--font); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-sr .grip{ width:32px; height:44px; display:grid; place-items:center; color:var(--ink-85); opacity:0; cursor:grab; }
.ma-sr:hover .grip{ opacity:1; }
.ma-sr .grip svg, .ma-sr .more svg{ width:14px; height:14px; }
.ma-sr .more{ width:28px; height:28px; display:grid; place-items:center; color:var(--ink-85); margin-right:4px; }
.ma-sr.add{ height:30px; padding-left:10px; gap:9px; color:var(--ink-3); margin-top:4px; font:400 13px/1.2 var(--font); }
.ma-sr.add svg{ width:15px; height:15px; }
.ma-sr.add .av{ margin-left:auto; margin-right:7px; font:600 10px/1 var(--font); color:var(--tint); }
.ma-sr.nav{ height:32px; gap:8px; padding-left:7.5px; }
.ma-sr.nav .ic{ width:14px; display:grid; place-items:center; color:var(--ink); } .ma-sr.nav .ic svg{ width:14px; height:14px; }
.ma-nav-gap{ height:14px; }
.ma-sr.room{ height:60px; margin-bottom:8px; gap:8px; padding-left:6px; }
.ma-sr.room .prod{ position:relative; width:48px; height:48px; border-radius:12px; background:var(--fill-05) center/82% no-repeat; flex:none; }
.ma-badge{ position:absolute; right:-6px; top:-6px; min-width:16px; height:16px; padding:0 5px; box-sizing:border-box; border-radius:8px; background:#000; color:#fff;
  font:700 11px/16px var(--font); text-align:center; box-shadow:0 0 0 2px var(--canvas); }
.ma-sr.room .tx{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; padding-left:1px; }
.ma-sr.room .nm{ font-weight:700; }
.ma-sr.room .sub{ display:flex; align-items:center; gap:5px; font:400 10px/1.193 var(--font); color:var(--ink-2); white-space:nowrap; overflow:hidden; }
.ma-sr.room .sub span{ overflow:hidden; text-overflow:ellipsis; }
.ma-sr.room .sub svg{ width:8px; height:8px; flex:none; }
.ma-sr.room .grp{ width:28px; height:28px; display:grid; place-items:center; color:var(--ink-85); margin-right:6px; transform:translateX(3px); cursor:pointer; }
.ma-sr.room .grp svg{ width:17px; height:17px; }
.ma-side-bot{ position:absolute; left:0; right:0; bottom:0; height:64.5px; display:flex; align-items:center; padding:0 20px 0 20px; box-sizing:border-box;
  border-top:.5px solid rgba(255,255,255,.14); background:color-mix(in srgb, var(--canvas) 45%, transparent);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); }
:root[data-theme="light"] .ma-side-bot{ border-top-color:rgba(0,0,0,.12); }
.ma-pauseall{ flex:1; display:flex; align-items:center; gap:7px; border:0; background:none; padding:0; color:var(--tint); font:400 13px/1 var(--font); cursor:pointer; }
.ma-pauseall:disabled{ opacity:.4; cursor:default; }
.ma-pauseall svg{ width:12px; height:12px; }
.ma-announce{ width:44px; height:44px; border:0; background:none; color:var(--ink-85); display:grid; place-items:center; cursor:pointer; margin-right:-8px; }
.ma-announce svg{ width:17px; height:17px; }

/* traffic lights + sidebar toggle (fixed to the window) */
.ma-lights{ position:absolute; left:12px; top:19px; display:flex; gap:9px; z-index:30; }
.ma-lights i{ width:14px; height:14px; border-radius:50%; box-shadow:inset 0 0 0 .5px rgba(0,0,0,.18); }
.ma-lights i:nth-child(1){ background:#FF5F57; } .ma-lights i:nth-child(2){ background:#FEBC2E; } .ma-lights i:nth-child(3){ background:#28C840; }
.ma-sidetoggle{ position:absolute; left:88px; top:10px; z-index:30; }

/* ---------- content column ---------- */
.ma-main{ position:relative; flex:1; min-width:0; background:var(--canvas); }
.ma-title{ position:absolute; left:20px; top:16.5px; z-index:20; font:700 15px/1.2 var(--font-d); color:#D8D8D8; transition:left .32s cubic-bezier(.4,0,.2,1); white-space:nowrap; }
:root[data-theme="light"] .ma-title{ color:#262626; }
.ma.side-hidden .ma-title{ left:149px; }
.ma-tools{ position:absolute; right:9px; top:10px; z-index:20; display:flex; gap:10px; transition:right .32s cubic-bezier(.45,0,.55,1); }
/* Lane trailing edge = min(seam − 10, segment x − 12) (CMP:1953-1970): with the
   rail closed the tools stop 12pt short of the tab switcher. */
.ma.rail-hidden .ma-tools{ right:139.5px; }
.ma-picker{ padding:0 10px; gap:6px; width:164px; box-sizing:border-box; justify-content:flex-start; }
.ma-picker svg:first-child{ width:15px; height:15px; }
.ma-picker .nm{ max-width:118px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ma-picker .chev{ margin-left:-3px; display:grid; } .ma-picker .chev svg{ width:10px; height:10px; stroke-width:3.2; }
.ma-search{ width:32px; overflow:hidden; justify-content:flex-start; padding:0 0 0 8px; box-sizing:border-box; flex:none; }
.ma-search.open{ width:280px; padding:0 10px; gap:7px; }
.ma-search input{ flex:1; min-width:0; border:0; outline:0; background:none; color:var(--ink); font:400 13px/1 var(--font); display:none; }
.ma-search.open input{ display:block; }
.ma-headback{ position:absolute; left:0; right:0; top:0; height:52px; z-index:15; pointer-events:none; opacity:var(--hb,0);
  background:color-mix(in srgb, var(--canvas) 98%, transparent); box-shadow:0 .5px 0 rgba(255,255,255,.18); }
.ma-pages{ position:absolute; inset:0; }
.ma-page{ position:absolute; inset:0; overflow-y:auto; overflow-x:hidden; scrollbar-width:none; padding:52px 0 90px; box-sizing:border-box; visibility:hidden; }
.ma-page::-webkit-scrollbar{ display:none; }
.ma-page.on{ visibility:visible; }
.ma.bar-hidden .ma-page{ padding-bottom:60px; }

/* ---------- pages: shared ---------- */
.ma-sec-h{ position:relative; display:flex; align-items:center; gap:12px; margin:0 20px; min-height:24px; font:700 15px/1.2 var(--font-d); }
.ma-sec-h .sub{ display:block; font:400 10px/1.2 var(--font); color:var(--ink-2); margin-top:2px; }
.ma-cap{ display:inline-flex; align-items:center; gap:5px; height:24px; padding:0 10px; border-radius:12px; background:var(--fill-07); font:500 11px/1 var(--font); color:var(--ink); border:0; cursor:pointer; }
.ma-cap svg{ width:10px; height:10px; }
.ma-grip{ position:absolute; right:-6px; top:-8px; width:32px; height:32px; border-radius:50%; background:var(--fill-08); display:grid; place-items:center; color:var(--ink-2); cursor:grab; }
.ma-grip svg{ width:12px; height:12px; }
.ma-rail-x{ display:flex; gap:14px; padding:0 20px; overflow:hidden; }
.ma-tile64{ width:64px; flex:none; display:flex; flex-direction:column; gap:4px; font:400 10px/1.2 var(--font); cursor:pointer; }
.ma-tile64 .t{ width:64px; height:64px; border-radius:12px; display:grid; place-items:center; font:700 35px/1 ui-rounded, var(--font); box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); }
.ma-tile64 .t.reorder{ box-sizing:border-box; border:1.5px dashed rgba(255,255,255,.24); box-shadow:none; color:var(--ink-2); }
:root[data-theme="light"] .ma-tile64 .t.reorder{ border-color:rgba(0,0,0,.24); }
.ma-tile64 .t.reorder svg{ width:18px; height:18px; }
.ma-tile64 span:last-child{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-tile64.dim{ color:var(--ink-2); }
.ma-chip{ display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border-radius:22px; background:var(--fill-07); border:0; color:var(--ink); cursor:pointer;
  transition:transform .15s cubic-bezier(.4,0,.2,1), opacity .15s; text-align:left; }
.ma-chip:active{ transform:scale(.96); opacity:.75; }
.ma-chip .ic{ color:var(--tint); } .ma-chip .ic svg{ width:11px; height:11px; }
.ma-chip .t{ display:block; font:500 11px/1.2 var(--font); }
.ma-chip .s{ display:block; font:400 10px/1.2 var(--font); color:var(--ink-2); }
.ma-card140{ width:140px; flex:none; display:flex; flex-direction:column; gap:6px; cursor:pointer; }
.ma-card140 .a{ width:140px; height:140px; border-radius:8px; background:#333 center/cover; }
.ma-card140 .t{ font:400 11px/1.25 var(--font); min-height:27.5px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ma-card140 .s{ font:400 10px/1.2 var(--font); color:var(--ink-2); margin-top:-6px; }
.ma-card120{ width:120px; flex:none; display:flex; flex-direction:column; gap:6px; cursor:pointer; }
.ma-card120 .a{ width:120px; height:120px; border-radius:8px; background:#333 center/cover; }
.ma-card120 .t{ font:400 11px/1.2 var(--font); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-card120 .s{ font:400 10px/1.2 var(--font); color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-lt{ display:grid; place-items:center; color:rgba(255,255,255,.55); font-weight:600; font-family:ui-rounded, var(--font); }
.ma-art{ flex:none; background:#333 center/cover no-repeat; }

/* Music home */
.ma-p-music{ display:flex; flex-direction:column; gap:32px; padding-top:16px; }
.ma-p-music .ma-sec-h + *{ margin-top:12px; }
.ma-p-music section{ display:flex; flex-direction:column; }

/* Favourites */
.ma-p-fav{ display:flex; flex-direction:column; gap:28px; padding-top:16px; }
.ma-p-fav section > .body{ margin-top:12px; }
.ma-group{ margin:0 20px; border-radius:14px; background:#2A2A2A; box-shadow:inset 0 0 0 .5px rgba(255,255,255,.06); overflow:hidden; }
:root[data-theme="light"] .ma-group{ background:#E6E6E6; }
.ma-grow{ position:relative; display:flex; align-items:center; gap:12px; height:66px; padding:0 24px; cursor:pointer; }
.ma-grow + .ma-grow::before{ content:""; position:absolute; left:58px; right:0; top:0; height:1px; background:#353535; }
:root[data-theme="light"] .ma-grow + .ma-grow::before{ background:#D6D6D6; }
.ma-grow .ti{ width:38px; height:38px; border-radius:9px; display:grid; place-items:center; font:700 21px/1 ui-rounded, var(--font); flex:none; }
.ma-grow .tx{ flex:1; display:flex; flex-direction:column; gap:2px; }
.ma-grow .t{ font:500 13px/1.2 var(--font); } .ma-grow .s{ font:400 10px/1.2 var(--font); color:var(--ink-2); }
.ma-grow .ch{ color:var(--ink-3); } .ma-grow .ch svg{ width:9px; height:9px; }

/* Room page */
.ma-p-room{ max-width:640px; margin:0 auto; padding:8px 20px 12px; box-sizing:border-box; display:flex; flex-direction:column; gap:28px; }
.ma-rp-top{ display:flex; gap:20px; align-items:center; }
.ma-rp-art{ width:180px; height:180px; border-radius:14px; flex:none; background:#333 center/cover; box-shadow:0 8px 28px rgba(0,0,0,.35); transition:opacity .15s; }
.ma-rp-tx{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.ma-rp-tl{ display:flex; align-items:center; gap:8px; }
.ma-rp-title{ font:700 17px/1.25 var(--font-d); }
.ma-rp-artist{ font:400 13px/1.2 var(--font); color:var(--ink-2); margin-top:6px; }
.ma-rp-album{ font:400 11px/1.2 var(--font); color:var(--ink-2); }
.ma-rp-tr{ display:flex; align-items:center; justify-content:center; gap:36px; height:64px; margin-top:-2px; }
.ma-rp-tr button{ border:0; background:none; padding:0; color:var(--ink); cursor:pointer; display:grid; place-items:center; transition:transform .15s cubic-bezier(.4,0,.2,1), opacity .15s; }
.ma-rp-tr button:active{ transform:scale(.96); opacity:.75; }
.ma-rp-tr .md{ width:28px; height:28px; border-radius:50%; color:var(--ink-2); } .ma-rp-tr .md svg{ width:16px; height:16px; }
.ma-rp-tr .md.on{ background:var(--tint); color:var(--on-tint); }
.ma-rp-tr .sk svg{ width:30px; height:18px; }
.ma-rp-tr .pp{ width:64px; height:64px; color:var(--tint); } .ma-rp-tr .pp svg{ width:64px; height:64px; }
.ma-gs-h{ display:flex; align-items:center; gap:7px; font:700 13px/1.2 var(--font); cursor:pointer; }
.ma-gs-h .cv{ transition:transform .16s ease-in-out; display:grid; } .ma-gs-h .cv svg{ width:9px; height:9px; }
.ma-gs-h.open .cv{ transform:rotate(90deg); }
.ma-gs-acts{ margin-left:auto; display:flex; gap:18px; }
.ma-gs-acts button{ display:flex; align-items:center; gap:6px; border:0; background:none; padding:0; color:var(--tint); font:400 11px/1 var(--font); cursor:pointer; transition:transform .15s, opacity .15s; }
.ma-gs-acts button:active{ transform:scale(.96); opacity:.75; }
.ma-gs-acts svg{ width:14px; height:14px; }
.ma-gs{ display:flex; flex-direction:column; gap:10px; }
.ma-spk{ display:none; flex-direction:column; gap:6px; padding:4px 0; }
.ma-gs.open .ma-spk{ display:flex; }
.ma-vl{ font:500 11px/1.2 var(--font); }
.ma-vrow{ display:flex; align-items:center; gap:10px; }
.ma-vn{ min-width:14px; text-align:right; font:400 10px/1 var(--font); color:var(--ink-2); font-variant-numeric:tabular-nums; }
.ma-step{ display:flex; align-items:center; height:28px; border-radius:14px; background:var(--fill-07); }
.ma-step button{ width:28px; height:28px; border:0; background:none; color:var(--ink-2); display:grid; place-items:center; cursor:pointer; padding:0; }
.ma-step button:active{ opacity:.4; }
.ma-step svg{ width:10px; height:10px; }
.ma-step i{ width:1px; height:14px; background:var(--fill-12); }
.ma-step.dense{ height:22px; } .ma-step.dense button{ width:22px; height:22px; } .ma-step.dense i{ height:10px; }
.ma-qh{ display:flex; align-items:center; gap:6px; font:400 15px/1.2 var(--font); padding:8px 0; cursor:pointer; margin-bottom:-20px; }
.ma-qh svg{ width:9px; height:9px; transition:transform .2s ease-out; }
.ma-qh.collapsed svg{ transform:rotate(-90deg); }
.ma-q.collapsed{ display:none; }

/* native-ish slider (macOS 26 glass knob) */
.ma-sl{ position:relative; flex:1; height:22px; cursor:pointer; touch-action:none; --v:.5; }
.ma-sl .tr{ position:absolute; left:0; right:0; top:50%; height:6px; margin-top:-3px; border-radius:3px; background:#191919; overflow:hidden; }
:root[data-theme="light"] .ma-sl .tr{ background:#D9D9D9; }
.ma-sl .fi{ position:absolute; left:0; top:0; bottom:0; width:calc(var(--v) * 100%); background:var(--tint); }
.ma-sl .kn{ position:absolute; top:50%; left:calc(var(--v) * (100% - 35px)); width:35px; height:16px; margin-top:-8px; border-radius:8px; background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.2); transition:transform .2s cubic-bezier(.3,1.5,.5,1); }
.ma-sl.drag .kn{ transform:scale(1.12); }
.ma-sl.small{ height:14px; } .ma-sl.small .tr{ height:4px; margin-top:-2px; background:#343434; } .ma-sl.small .kn{ width:25px; height:14px; margin-top:-7px; left:calc(var(--v) * (100% - 25px)); }
:root[data-theme="light"] .ma-sl.small .tr{ background:#CFCFCF; }
.ma-sl.tick .kn{ width:20px; height:14px; margin-top:-7px; left:calc(var(--v) * (100% - 20px)); }
.ma-sl.tick .tr{ height:4px; margin-top:-2px; background:rgba(255,255,255,.18); }
.ma-sl.tick::after{ content:""; position:absolute; left:3px; right:3px; bottom:-2px; height:3px;
  background:radial-gradient(circle, rgba(255,255,255,.35) .8px, transparent 1.2px) 0 0/ calc(100% / 20) 3px repeat-x; }

/* track rows (TrackAccessoryRow) */
.ma-trk{ position:relative; display:flex; align-items:center; gap:8px; height:63px; padding:0 8px; border-radius:15px; box-sizing:border-box; cursor:default; }
.ma-trk + .ma-trk::before{ content:""; position:absolute; left:8px; right:8px; top:0; height:1px; background:var(--div); opacity:.5; }
.ma-p-room .ma-trk + .ma-trk::before{ left:0; right:0; background:var(--div-page); opacity:1; }
.ma-trk.now{ background:var(--fill-08); }
.ma-trk.now::before, .ma-trk.now + .ma-trk::before{ display:none; }
.ma-trk .tx{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; padding-left:1px; }
.ma-trk .t{ font:400 13px/1.2 var(--font); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-trk.now .t{ font-weight:600; }
.ma-trk .s{ font:400 10px/1.2 var(--font); color:var(--ink-2r); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-trk .gr{ width:32px; height:44px; display:grid; place-items:center; color:var(--ink-85); opacity:0; }
.ma-trk:hover .gr{ opacity:1; }
.ma-trk .gr svg{ width:14px; height:14px; }
.ma-trk .st{ width:32px; flex:none; text-align:right; font:400 10px/1 var(--font); color:var(--ink-2r); font-variant-numeric:tabular-nums; }
.ma-trk .st svg{ width:14px; height:14px; color:var(--ink); }

/* Apple Music page */
.ma-p-am{ display:flex; flex-direction:column; gap:24px; padding-top:18px; }
.ma-am-head{ display:flex; align-items:center; gap:16px; margin:0 20px; }
.ma-am-head .ti{ width:58px; height:58px; border-radius:14px; display:grid; place-items:center; font:700 32px/1 ui-rounded, var(--font); color:#fff; flex:none; box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); }
.ma-am-head .tx{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.ma-am-head .t{ font:700 17px/1.2 var(--font-d); } .ma-am-head .d{ font:400 12px/1.2 var(--font); color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-am-head .rt{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.ma-badge2{ display:inline-flex; align-items:center; gap:5px; padding:6px 10px; border-radius:13px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); font:600 10px/1 var(--font); color:var(--ink-2); }
:root[data-theme="light"] .ma-badge2{ box-shadow:inset 0 0 0 1px rgba(0,0,0,.18); }
.ma-badge2 svg{ width:10px; height:10px; }
.ma-focus{ display:inline-flex; align-items:center; gap:5px; padding:7px 11px; border-radius:14px; background:var(--fill-06); font:600 10px/1 var(--font); border:0; color:var(--ink); cursor:pointer; }
.ma-focus svg{ width:10px; height:10px; }
.ma-lib{ display:flex; gap:14px; margin:10px 20px 0; }
.ma-lib button{ width:64px; display:flex; flex-direction:column; align-items:flex-start; gap:5px; border:0; background:none; padding:0; color:var(--ink); font:400 10px/1.2 var(--font); cursor:pointer; }
.ma-lib .b{ width:64px; height:64px; border-radius:12px; background:var(--fill-06); display:grid; place-items:center; color:var(--tint); }
.ma-lib .b svg{ width:22px; height:22px; }
.ma-p-am section > .ma-rail-x{ margin-top:12px; padding-bottom:4px; overflow:visible; }

/* generic list pages (Queue / History / Playlists) */
.ma-p-list{ padding:16px 20px; } .ma-p-list .ma-sec-h{ margin:0 0 12px; }
.ma-grid-pl{ display:flex; flex-wrap:wrap; gap:18px 14px; }

/* ---------- floating now-playing bar (MiniPlayerBar, 600–719 layout) ---------- */
.ma-dock{ position:absolute; right:8px; bottom:8px; left:8px; height:70px; z-index:25; pointer-events:none; }
.ma-scrim{ display:none; position:absolute; left:-8px; right:-8px; bottom:-8px; height:78px; pointer-events:none; z-index:24;
  background:linear-gradient(to bottom, transparent 0, color-mix(in srgb, var(--canvas) 16%, transparent) 25%, color-mix(in srgb, var(--canvas) 50%, transparent) 50%, color-mix(in srgb, var(--canvas) 84%, transparent) 75%, var(--canvas) 90%);
  transition:opacity .18s ease-out; }
.ma.bar-hidden .ma-scrim{ opacity:0; }
.ma-bar{ position:absolute; inset:0; pointer-events:auto; border-radius:16px; display:flex; align-items:center; gap:8px; padding:0 16px 0 16px; box-sizing:border-box;
  /* Liquid Glass (.glassEffect(.regular), no tint, no shadow): content reads
     through, lightly blurred and brightened, with a bright specular rim. */
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 45%, rgba(255,255,255,.07)), rgba(58,58,58,.26);
  -webkit-backdrop-filter:blur(9px) saturate(1.7) brightness(1.08); backdrop-filter:blur(9px) saturate(1.7) brightness(1.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.14), inset 1px 0 0 rgba(255,255,255,.16), inset -1px 0 0 rgba(255,255,255,.16), inset 0 0 12px rgba(255,255,255,.05);
  transform-origin:100% 100%; }
:root[data-theme="light"] .ma-bar{ background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.35)), rgba(255,255,255,.2);
  -webkit-backdrop-filter:blur(9px) saturate(1.8) brightness(1.04); backdrop-filter:blur(9px) saturate(1.8) brightness(1.04);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 .5px rgba(0,0,0,.12), 0 6px 20px rgba(0,0,0,.08); }
.ma-bar .ma-stepper{ background:rgba(255,255,255,.1); }
:root[data-theme="light"] .ma-bar .ma-stepper{ background:rgba(0,0,0,.06); }
.ma-bar .ma-step.dense{ background:rgba(255,255,255,.12); }
:root[data-theme="light"] .ma-bar .ma-step.dense{ background:rgba(0,0,0,.06); }
.ma-bar .ma-sl.small .tr{ background:rgba(255,255,255,.2); }
:root[data-theme="light"] .ma-bar .ma-sl.small .tr{ background:rgba(0,0,0,.14); }
.ma-bar .ma-id .rm{ color:rgba(255,255,255,.5); }
:root[data-theme="light"] .ma-bar .ma-id .rm{ color:rgba(0,0,0,.45); }
.ma-bar .ma-tp .pp{ color:#fff; }
:root[data-theme="light"] .ma-bar .ma-tp .pp{ color:#000; }
.ma-recall{ position:absolute; right:0; bottom:0; width:40px; height:40px; border-radius:50%; pointer-events:auto; display:grid; place-items:center; opacity:0; transform:scale(.6); visibility:hidden; color:var(--ink); border:0; cursor:pointer; }
.ma-recall svg{ width:13px; height:13px; }
.ma-stepper{ width:20px; height:20px; border-radius:5px; background:#313131; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; flex:none; }
:root[data-theme="light"] .ma-stepper{ background:#E2E2E2; }
.ma-stepper button{ width:20px; height:10px; border:0; background:none; padding:0; color:var(--ink-85); display:grid; place-items:center; cursor:pointer; }
.ma-stepper svg{ width:8px; height:6px; }
.ma-id{ display:flex; align-items:center; gap:8px; min-width:0; flex:1; border:0; background:none; padding:0; color:var(--ink); cursor:pointer; text-align:left; }
.ma-id .ma-art{ width:32px; height:32px; border-radius:8px; }
.ma-id .tx{ min-width:0; display:flex; flex-direction:column; gap:1px; }
.ma-id .rm{ font:600 10px/1.2 var(--font); color:#6D6D6D; }
.ma-id .t{ font:600 11px/1.2 var(--font); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-id .a{ font:400 10px/1.2 var(--font); color:var(--ink-85); white-space:pre; overflow:hidden; text-overflow:ellipsis; }
.ma-tp{ flex:none; width:156px; display:flex; flex-direction:column; align-items:center; gap:13px; margin-top:10px; }
.ma-tp .row{ display:flex; align-items:center; gap:4px; height:28px; }
.ma-tp button{ width:28px; height:28px; border:0; background:none; padding:0; color:var(--ink-85); display:grid; place-items:center; cursor:pointer; }
.ma-tp .md{ color:var(--ink-3); } .ma-tp .md svg{ width:13px; height:13px; }
.ma-tp .md.on span{ background:var(--tint); color:var(--on-tint); }
.ma-tp .md span{ width:22px; height:22px; border-radius:50%; display:grid; place-items:center; }
.ma-tp .sk svg{ width:17px; height:12px; }
.ma-tp .pp svg{ width:32px; height:32px; }
.ma-prog{ position:relative; width:156px; height:3px; border-radius:2px; background:rgba(255,255,255,.12); }
:root[data-theme="light"] .ma-prog{ background:rgba(0,0,0,.12); }
.ma-prog i{ position:absolute; left:0; top:0; bottom:0; min-width:6px; border-radius:2px; background:var(--ink-85); transition:width 1s linear; }
.ma-vol{ flex:none; display:flex; align-items:center; gap:4px; }
.ma-vol .mute{ width:28px; height:28px; border:0; background:none; padding:0; color:var(--ink-85); display:grid; place-items:center; cursor:pointer; }
.ma-vol .mute svg{ width:12px; height:12px; }
.ma-vol .ma-sl{ width:80px; flex:none; }
.ma-vol .ma-vn{ margin:0 4px 0 4px; color:var(--ink-3); }
.ma-hide{ width:28px; height:28px; border:0; background:none; padding:0; color:var(--ink-85); display:grid; place-items:center; cursor:pointer; margin-left:4px; }
.ma-hide svg{ width:12px; height:12px; }

/* ---------- right rail ---------- */
.ma-railwrap{ position:relative; flex:none; width:281px; overflow:hidden; background:var(--rail); transition:width .32s cubic-bezier(.45,0,.55,1); }
.ma.rail-hidden .ma-railwrap{ width:0; }
.ma-railwrap::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:.5px; background:var(--seam); z-index:2; }
.ma-rail{ position:absolute; right:0; top:0; bottom:0; width:281px; }
.ma-seg{ position:absolute; right:16.5px; top:14px; width:111px; height:24px; border-radius:12px; display:flex; z-index:31; padding:0; overflow:hidden;
  background:#2F2F2F; box-shadow:inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 .5px rgba(255,255,255,.1); }
:root[data-theme="light"] .ma-seg{ background:#fff; box-shadow:0 0 0 .5px rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.08); }
.ma-seg button{ position:relative; flex:1; border:0; background:none; padding:0; color:#DFDFDF; display:grid; place-items:center; cursor:pointer; }
:root[data-theme="light"] .ma-seg button{ color:#333; }
.ma-seg button + button::before{ content:""; position:absolute; left:0; top:6px; bottom:6px; width:1px; background:#636363; }
:root[data-theme="light"] .ma-seg button + button::before{ background:#D6D6D6; }
.ma-seg button.on{ background:var(--accent); color:#fff; border-radius:12px; }
.ma-seg button.on::before, .ma-seg button.on + button::before{ display:none; }
.ma-seg svg{ width:17px; height:17px; stroke-width:2; }
.ma-rail-in{ position:absolute; left:11px; right:10px; top:64px; bottom:15px; display:flex; flex-direction:column; gap:12px; }
.ma-rhead{ display:flex; align-items:center; gap:7px; flex:none; }
.ma-rcard{ position:relative; flex:1; min-width:0; height:47px; border-radius:14px; background:var(--card); display:flex; align-items:center; gap:8px; padding:0 8px; box-sizing:border-box; border:0; color:var(--ink); cursor:pointer; text-align:left; }
.ma-rcard .pr{ position:relative; width:28px; height:28px; border-radius:11px; background:var(--fill-05) center/86% no-repeat; flex:none; }
.ma-rcard .pr .ma-badge{ right:-8px; top:-12px; }
.ma-rcard .tx{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ma-rcard .t{ font:700 13px/1.2 var(--font); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-rcard .s{ display:flex; align-items:center; gap:4px; font:400 10px/1.2 var(--font); color:var(--ink-2r); white-space:nowrap; overflow:hidden; }
.ma-rcard .s span{ overflow:hidden; text-overflow:ellipsis; } .ma-rcard .s svg{ width:7px; height:7px; flex:none; }
.ma-rcard .ud svg{ width:8px; height:11px; color:var(--ink-2r); }
.ma-module{ position:relative; flex:1; min-height:0; border-radius:18px; overflow:hidden; background:#373737;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.36), inset 0 -1px 0 rgba(255,255,255,.12), inset 0 0 0 .5px rgba(255,255,255,.12); display:flex; flex-direction:column; }
:root[data-theme="light"] .ma-module{ background:#fff; box-shadow:0 0 0 .5px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.05); }
.ma-mctl{ flex:none; display:flex; align-items:center; gap:8px; padding:10px; border-bottom:1px solid #505050; }
:root[data-theme="light"] .ma-mctl{ border-bottom-color:#E0E0E0; }
.ma-count{ padding:4px 9px; border-radius:12px; background:rgba(255,255,255,.08); font:600 12px/1.2 var(--font); font-variant-numeric:tabular-nums; }
:root[data-theme="light"] .ma-count{ background:rgba(0,0,0,.06); }
.ma-mctl .sp{ flex:1; }
.ma-mlist{ flex:1; overflow-y:auto; scrollbar-width:none; padding:6px 10px; }
.ma-mlist::-webkit-scrollbar{ display:none; }
.ma-rtab{ display:none; flex:1; min-height:0; flex-direction:column; }
.ma-rtab.on{ display:flex; }
.ma-plsel{ padding:0 12px; font:400 13px/1 var(--font); }
.ma-audio{ flex:1; overflow-y:auto; scrollbar-width:none; padding:12px 8px; display:flex; flex-direction:column; gap:20px; }
.ma-audio::-webkit-scrollbar{ display:none; }
.ma-ah{ padding:0 10px 8px; font:700 13px/1.2 var(--font); }
.ma-acard{ border-radius:12px; background:var(--audio-card); padding:10px 10px; display:flex; flex-direction:column; gap:8px; }
:root[data-theme="light"] .ma-acard{ background:#F0F0F0; }
.ma-ar{ display:flex; align-items:center; gap:8px; min-height:22px; font:400 13px/1.2 var(--font); }
.ma-ar .l{ flex:1; }
.ma-ar .ma-sl{ flex:none; width:140px; }
.ma-ar.link{ gap:8px; cursor:pointer; } .ma-ar.link svg{ width:14px; height:14px; } .ma-ar.link .cv{ color:var(--ink-3); margin-left:auto; } .ma-ar.link .cv svg{ width:9px; height:9px; }
.ma-sw{ width:38px; height:22px; border-radius:11px; border:0; padding:0; background:#5A5A5A; position:relative; cursor:pointer; transition:background-color .2s; flex:none; }
:root[data-theme="light"] .ma-sw{ background:#D8D8D8; }
.ma-sw i{ position:absolute; left:2px; top:2px; width:24px; height:18px; border-radius:9px; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.3); transition:transform .3s cubic-bezier(.3,1.4,.5,1); }
.ma-sw.on{ background:#8E8E93; } .ma-sw.on i{ transform:translateX(10px); }
:root[data-theme="light"] .ma-sw.on{ background:#000; }

/* menus / toast */
.ma-menu{ position:absolute; z-index:60; min-width:190px; padding:5px; border-radius:12px; background:rgba(40,40,40,.86); -webkit-backdrop-filter:blur(30px) saturate(1.8); backdrop-filter:blur(30px) saturate(1.8);
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.18), 0 12px 32px rgba(0,0,0,.4); font:400 13px/1.2 var(--font); animation:ma-in .16s ease-out; }
:root[data-theme="light"] .ma-menu{ background:rgba(246,246,246,.9); box-shadow:0 0 0 .5px rgba(0,0,0,.18), 0 12px 32px rgba(0,0,0,.18); }
@keyframes ma-in{ from{ opacity:0; transform:scale(.97); } }
.ma-menu .h{ padding:5px 9px 3px; font:600 11px/1.2 var(--font); color:var(--ink-2); }
.ma-menu button{ display:flex; align-items:center; gap:8px; width:100%; padding:4px 9px; border:0; border-radius:6px; background:none; color:var(--ink); font:inherit; text-align:left; cursor:default; }
.ma-menu button:hover{ background:var(--accent); color:#fff; }
.ma-menu button .ck{ width:12px; display:grid; } .ma-menu button svg{ width:12px; height:12px; }
.ma-menu i{ display:block; height:1px; margin:5px 9px; background:rgba(255,255,255,.14); }
:root[data-theme="light"] .ma-menu i{ background:rgba(0,0,0,.1); }
.ma-catch{ position:absolute; inset:0; z-index:59; }
.ma-toast{ position:absolute; left:50%; bottom:96px; z-index:40; display:flex; align-items:center; gap:8px; padding:10px 16px; border-radius:20px; white-space:nowrap;
  font:500 12px/1 var(--font); pointer-events:none; opacity:0; transform:translate(-50%, 16px); transition:opacity .25s, transform .35s cubic-bezier(.3,1.25,.5,1);
  background:rgba(48,48,48,.8); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); box-shadow:inset 0 0 0 .5px rgba(255,255,255,.14), 0 4px 10px rgba(0,0,0,.15); }
:root[data-theme="light"] .ma-toast{ background:rgba(255,255,255,.85); box-shadow:0 0 0 .5px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.1); }
.ma-toast.on{ opacity:1; transform:translate(-50%, 0); }
.ma-toast svg{ width:14px; height:14px; }

.ma-wave rect{ transition:opacity .12s linear; }
.ma-wave.live rect{ opacity:.3; } .ma-wave.live rect.lit{ opacity:1; }
.ma.reduced *{ transition:none !important; }

.ma-mlist .ma-trk .st:empty{ width:0; }
.ma-mlist .ma-trk .gr{ width:0; overflow:hidden; } .ma-mlist .ma-trk:hover .gr{ width:32px; }

/* toolbar glyphs: SF 14pt medium read heavier than 1.6 strokes */
.ma-tools .ma-ctl svg, .ma-sidetoggle svg, [data-sleep] svg{ stroke-width:2; }
.ma-tools [data-settings] svg{ width:18px; height:18px; }
.ma-tools .ma-search svg{ width:17px; height:17px; }
[data-sleep] svg{ width:19px; height:19px; }
.ma-seg button:first-child.on{ border-radius:12px; }

/* =====================================================================
   iPad (landscape iPad Pro 13", 1376 × 1032 pt) — spec/ipad-app-spec-2026-09-23.md.
   The same component in .ipad mode: iPadOS status bar, sidebar-first nav,
   toolbar pills, floating player card + Search, grouped-form rail.
   ===================================================================== */
.ma.ipad{ width:calc(1412px * var(--ma-scale)); height:calc(1068px * var(--ma-scale));
  --canvas:#F5F5F5; --side:#F5F5F5; --side-sel:rgba(0,0,0,.10); --side-head:rgba(60,60,67,.6); --rail:#F5F5F5;
  --ink:#000; --ink-85:rgba(0,0,0,.85); --ink-2:rgba(60,60,67,.6); --ink-2r:rgba(60,60,67,.6); --ink-3:rgba(60,60,67,.3); --tint:#000; --on-tint:#fff;
  --fill-05:rgba(0,0,0,.05); --fill-07:rgba(0,0,0,.07); --fill-08:rgba(0,0,0,.08); --fill-12:rgba(0,0,0,.12);
  --glass:rgba(255,255,255,.62); --glass-rim-t:rgba(255,255,255,.9); --glass-rim-b:rgba(0,0,0,.08);
  --cell:#fff; --sw-on:#000; --track:rgba(120,120,128,.2); }
:root[data-theme="dark"] .ma.ipad{ --canvas:#000; --side:#000; --side-sel:rgba(255,255,255,.18); --side-head:rgba(235,235,245,.6); --rail:#000;
  --ink:#fff; --ink-85:rgba(255,255,255,.85); --ink-2:rgba(235,235,245,.6); --ink-2r:rgba(235,235,245,.6); --ink-3:rgba(235,235,245,.3); --tint:#fff; --on-tint:#000;
  --fill-05:rgba(255,255,255,.11); --fill-07:rgba(255,255,255,.154); --fill-08:rgba(255,255,255,.176); --fill-12:rgba(255,255,255,.12);
  --glass:rgba(40,40,40,.62); --glass-rim-t:rgba(255,255,255,.22); --glass-rim-b:rgba(255,255,255,.1);
  --cell:#1C1C1E; --sw-on:#959595; --track:rgba(120,120,128,.36); }
/* device body */
.ma.ipad::before{ content:""; position:absolute; inset:0; border-radius:calc(40px * var(--ma-scale));
  background:linear-gradient(145deg,#cfd0d4,#9ea0a5 40%,#c8c9cd 60%,#85878c); box-shadow:0 40px 90px -30px rgba(0,0,0,.4); }
:root[data-theme="dark"] .ma.ipad::before{ background:linear-gradient(145deg,#56575b,#2a2b2e 40%,#46474b 60%,#212225); }
.ma.ipad .ma-win{ left:0; top:0; transform:translate(calc(18px * var(--ma-scale)), calc(18px * var(--ma-scale))) scale(var(--ma-scale));
  width:1376px; height:1032px; border-radius:22px; box-shadow:0 0 0 1.5px #0b0b0c; }
.ma.ipad .ma-win::after{ display:none; content:""; position:absolute; left:50%; bottom:8px; width:138px; height:5px; margin-left:-69px; border-radius:3px; background:var(--ink); opacity:.85; z-index:70; }
.ip-sb{ position:absolute; left:0; right:0; top:0; height:24px; z-index:65; display:flex; justify-content:space-between; align-items:center; padding:0 26px;
  font:600 15px/24px var(--font); color:var(--ink); pointer-events:none; }
.ip-sb .r{ display:flex; align-items:center; gap:6px; } .ip-sb svg{ width:17px; height:12px; } .ip-sb svg:last-child{ width:27px; height:13px; }

/* sidebar */
.ma.ipad .ma-side{ width:280px; background:var(--side); -webkit-backdrop-filter:none; backdrop-filter:none; }
.ma.ipad.side-hidden .ma-side{ width:0; }
.ma.ipad .ma-side-in{ width:280px; }
.ma.ipad .ma-sidetoggle{ left:10px; top:32px; width:44px; height:44px; border-radius:22px; color:var(--tint); }
.ma.ipad .ma-sidetoggle svg{ width:25px; height:21px; }
.ip-sidebar-bar{ position:absolute; left:0; top:32px; width:280px; height:44px; z-index:29; display:flex; align-items:center; padding-left:67px; box-sizing:border-box; transition:opacity .2s; }
.ma.ipad.side-hidden .ip-sidebar-bar{ opacity:0; pointer-events:none; }
.ip-sidebar-bar .sys{ font:600 17px/1 var(--font); color:var(--ink); }
.ip-cap{ margin-left:auto; margin-right:9.5px; height:44px; padding:0 18px; border:0; border-radius:22px; color:var(--tint); font:400 17px/1 var(--font); cursor:pointer; transition:transform .25s cubic-bezier(.3,1.4,.5,1); }
.ip-cap:active{ transform:scale(1.06); }
.ma.ipad .ma-side-scroll{ top:86px; bottom:84.5px; padding-top:2px; }
.ma.ipad .ma-sh{ height:auto; padding:18px 33px 12px; font:600 17px/1.2 var(--font); color:var(--side-head); }
.ma.ipad .ma-sr{ margin:2px 24px; border-radius:8px; }
.ma.ipad .ma-sr.sel{ background:var(--side-sel); }
.ma.ipad .ma-sr .nm{ font-size:17px; }
.ma.ipad .ma-sr.nav{ height:47px; padding-left:10px; gap:11.5px; }
.ma.ipad .ma-sr.nav[data-nav="music"]{ height:54.5px; }
.ma.ipad .ma-sr.nav .ic{ width:16px; } .ma.ipad .ma-sr.nav .ic svg{ width:17px; height:17px; }
.ma.ipad .ma-sr.svc{ height:62px; padding-left:9.5px; gap:12.5px; }
.ma.ipad .ma-sr .more{ width:44px; height:44px; margin-right:0; }
.ma.ipad .ma-sr .grip{ display:none; }
.ma.ipad.reordering .ma-sr .grip{ display:grid; opacity:1; }
.ma.ipad .ma-sr.add{ height:55px; padding-left:9.5px; gap:12px; font-size:17px; color:var(--ink-2); }
.ma.ipad .ma-sr.add svg{ width:20px; height:20px; }
.ma.ipad .ma-sr.add .av{ font:600 12px/1 var(--font); margin-right:10px; }
.ma.ipad .ma-sr.room{ height:74px; margin-bottom:4px; padding-left:8px; gap:9px; }
.ma.ipad .ma-sr.room .nm{ font:600 17px/1.2 var(--font); }
.ma.ipad .ma-sr.room .sub{ font-size:12px; }
.ma.ipad .ma-sr.room .sub svg{ width:9px; height:9px; }
.ma.ipad .ma-sr.room .grp{ width:44px; height:44px; transform:none; margin-right:0; }
.ma.ipad .ma-sr.room .grp svg{ width:20px; height:19px; }
.ma.ipad .ma-side-bot{ height:84.5px; padding:0 20px 20px; background:var(--canvas); -webkit-backdrop-filter:none; backdrop-filter:none; border-top:.5px solid rgba(60,60,67,.29); }
:root[data-theme="dark"] .ma.ipad .ma-side-bot{ border-top-color:rgba(84,84,88,.65); }
.ma.ipad .ma-pauseall{ color:var(--ink-2); font-size:17px; gap:10px; } .ma.ipad .ma-pauseall svg{ width:12px; height:14px; }
.ma.ipad .ma-announce{ color:var(--ink-2); } .ma.ipad .ma-announce svg{ width:19px; height:18px; }

/* detail chrome */
.ma.ipad .ma-main{ z-index:3; }
.ma.ipad .ma-headback{ display:none; }
.ma.ipad .ma-title{ left:0; right:0; top:44px; text-align:center; font:600 17px/1.2 var(--font); color:var(--ink); display:none; transition:transform .32s cubic-bezier(.4,0,.2,1); }
.ma.ipad[data-page="room"] .ma-title{ display:block; }
.ma.ipad:not(.rail-hidden) .ma-title{ transform:translateX(140px); }
.ma.ipad .ma-tools{ right:9.5px; top:32px; z-index:45; transition:right .32s cubic-bezier(.4,0,.2,1); }
.ma.ipad:not(.rail-hidden) .ma-tools{ right:-270.5px; }
.ip-pill{ display:flex; align-items:center; height:44px; border-radius:22px; padding:0 3px; border:0; }
.ip-pill > button{ width:57px; height:44px; border:0; background:none; padding:0; color:var(--tint); display:grid; place-items:center; cursor:pointer; transition:transform .25s cubic-bezier(.3,1.4,.5,1); }
.ip-pill > button:active{ transform:scale(1.08); }
.ip-pill > button svg{ width:21px; height:21px; }
.ip-playto{ gap:6px; padding:0 12px; color:var(--ink); cursor:pointer; font:600 15px/1 var(--font); }
.ip-playto .pn{ width:16px; color:var(--ink-2); } .ip-playto .pn svg{ width:14px; height:17px; }
.ip-playto .cv{ width:16px; color:var(--ink-2); display:grid; place-items:end; } .ip-playto .cv svg{ width:11px; height:7px; }
.ma.ipad .ma-page{ padding:86px 0 150px; }
.ma.ipad[data-page="room"] .ma-page{ padding-bottom:24px; }

/* pages at iPadOS type sizes */
.ma.ipad .ma-sec-h{ font:700 20px/1.2 var(--font-d); }
.ma.ipad .ma-sec-h .sub{ font-size:12px; }
.ma.ipad .ma-cap{ height:27px; font:500 15px/1 var(--font); border-radius:14px; }
.ma.ipad .ma-cap svg{ width:13px; height:13px; }
.ma.ipad .ma-tile64{ font-size:12px; }
.ma.ipad .ma-tile64 .t.reorder{ border-color:rgba(60,60,67,.24); }
.ma.ipad .ma-card140 .t{ font-size:15px; line-height:1.2; min-height:36px; }
.ma.ipad .ma-card140 .s{ font-size:12px; margin-top:-2px; }
.ma.ipad .ma-card120 .t{ font-size:15px; } .ma.ipad .ma-card120 .s{ font-size:12px; }
.ma.ipad .ma-p-music section:nth-child(2){ display:none; }  /* Pinned: hidden without pins */
.ma.ipad .ma-p-fav section:first-child{ display:none; }
.ma.ipad .ma-group{ background:rgba(0,0,0,.055); box-shadow:none; }
:root[data-theme="dark"] .ma.ipad .ma-group{ background:rgba(255,255,255,.121); }
.ma.ipad .ma-grow{ height:58px; padding:0 12px; }
.ma.ipad .ma-grow + .ma-grow::before{ background:rgba(60,60,67,.29); }
.ma.ipad .ma-grow .t{ font:500 17px/1.2 var(--font); color:var(--tint); }
.ma.ipad .ma-grow .s{ font-size:12px; color:var(--ink-2); }
.ma.ipad .ma-trk .t{ font-size:17px; } .ma.ipad .ma-trk .s{ font-size:12px; }
.ma.ipad .ma-trk .st{ font-size:12px; width:36px; }
.ma.ipad .ma-trk .gr{ opacity:1; width:32px; }
.ma.ipad .ma-trk{ height:62.5px; gap:12px; }
.ma.ipad .ma-p-room .ma-trk + .ma-trk::before{ background:rgba(60,60,67,.15); }

/* room page (iPad) */
.ma.ipad .ma-p-room{ padding-top:8px; gap:28px; }
.ma.ipad .ma-rp-title{ font:700 22px/1.25 var(--font-d); }
.ma.ipad .ma-rp-artist{ font-size:17px; margin-top:4px; } .ma.ipad .ma-rp-album{ font-size:15px; }
.ip-next{ font:400 16px/1.2 var(--font); color:var(--ink-2); margin-top:-14px; }
.ip-scrub{ display:flex; align-items:center; gap:10px; width:358px; margin:-8px auto 0; font:400 11px/1 var(--font); color:var(--ink-2); font-variant-numeric:tabular-nums; }
.ip-scrub .ma-sl{ flex:1; }
.ma.ipad .ma-sl .tr{ background:var(--track); }
.ma.ipad .ma-sl .kn{ width:38px; height:24px; margin-top:-12px; border-radius:12px; left:calc(var(--v) * (100% - 38px)); box-shadow:0 .5px 4px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.ma.ipad .ma-sl{ height:28px; }
.ma.ipad .ma-rp-tr{ gap:36px; margin-top:-6px; }
.ma.ipad .ma-rp-tr .sk svg{ width:36px; height:22px; }
.ma.ipad .ma-rp-tr .md svg{ width:19px; height:17px; }
.ma.ipad .ma-gs-h{ font:600 17px/1.2 var(--font); }
.ma.ipad .ma-gs-acts button{ font-size:15px; gap:6px; } .ma.ipad .ma-gs-acts svg{ width:16px; height:16px; }
.ma.ipad .ma-vl{ font:500 15px/1.2 var(--font); }
.ma.ipad .ma-vn{ font-size:12px; min-width:18px; }
.ma.ipad .ma-step{ height:44px; border-radius:22px; } .ma.ipad .ma-step button{ width:44px; height:44px; } .ma.ipad .ma-step svg{ width:12px; height:12px; }
.ma.ipad .ma-qh{ font-size:17px; margin-bottom:-22px; }

/* dock: Search capsule + player card (music surfaces only) */
.ma.ipad .ip-dock{ left:14px; right:14px; bottom:27px; height:87.5px; }
.ma.ipad[data-page="room"] .ip-dock{ display:none; }
.ip-search{ position:absolute; left:50%; bottom:95.5px; transform:translateX(-50%); height:44px; padding:0 18px; border:0; border-radius:22px; display:flex; align-items:center; gap:7px;
  color:var(--ink-85); font:400 15px/1 var(--font); cursor:pointer; pointer-events:auto; }
.ip-search:active{ transform:translateX(-50%) scale(1.06); }
.ip-search svg{ width:17px; height:17px; stroke-width:2; }
.ma.ipad .ip-dock .ma-bar{ border-radius:24px; padding:12px 16px 14px 16px; gap:0;
  background:rgba(255,255,255,.55); -webkit-backdrop-filter:blur(24px) saturate(1.8); backdrop-filter:blur(24px) saturate(1.8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 .5px rgba(255,255,255,.7), inset 0 -.5px 0 rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08); }
:root[data-theme="dark"] .ma.ipad .ip-dock .ma-bar{ background:rgba(40,40,40,.62); box-shadow:inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 .5px rgba(255,255,255,.18); }
.ip-rsw{ display:flex; flex-direction:column; gap:2px; margin-left:12px; flex:none; }
.ip-rsw button{ width:28px; height:20px; border:0; background:none; padding:0; color:var(--ink-85); display:grid; place-items:center; cursor:pointer; }
.ip-rsw svg{ width:11px; height:7px; }
.ma.ipad .ma-id{ flex:none; width:330px; gap:12px; margin-left:8px; }
.ma.ipad .ma-id .ma-art{ width:48px; height:48px; border-radius:8px; }
.ma.ipad .ma-id .tx{ gap:2px; } .ma.ipad .ma-id .t{ font:400 15px/1.2 var(--font); } .ma.ipad .ma-id .a{ font:400 12px/1.2 var(--font); color:var(--ink-85); }
.ma.ipad .ma-tp{ position:absolute; left:50%; top:12px; transform:translateX(-50%); width:auto; margin:0; gap:13px; }
.ma.ipad .ma-tp .row{ gap:12px; height:44px; }
.ma.ipad .ma-tp button{ width:44px; height:44px; color:var(--ink); }
.ma.ipad .ma-tp .md{ color:var(--ink-2); } .ma.ipad .ma-tp .md svg{ width:14px; height:12px; }
.ma.ipad .ma-tp .sk svg{ width:21px; height:12px; }
.ma.ipad .ma-tp .pp svg{ width:32px; height:32px; }
.ma.ipad .ma-prog{ width:190px; background:rgba(0,0,0,.12); }
:root[data-theme="dark"] .ma.ipad .ma-prog{ background:rgba(255,255,255,.12); }
.ma.ipad .ma-vol{ margin-left:auto; gap:12px; }
.ma.ipad .ma-vol .mute{ width:32px; height:44px; color:var(--ink); } .ma.ipad .ma-vol .mute svg{ width:16px; height:12px; }
.ma.ipad .ma-vol .ma-sl{ width:110px; }
.ma.ipad .ma-vol .ma-sl .tr{ height:6px; margin-top:-3px; }
.ma.ipad .ma-vol .ma-vn{ margin:0; color:var(--ink-2); }
.ma.ipad .ma-vol .ma-step{ background:var(--fill-07); }

/* rail: flat, segmented control inside, grouped-form Audio */
.ma.ipad .ma-railwrap{ width:280px; background:var(--rail); transition:width .32s cubic-bezier(.4,0,.2,1); }
.ma.ipad.rail-hidden .ma-railwrap{ width:0; }
.ma.ipad .ma-railwrap::before{ display:none; }
.ma.ipad .ma-rail{ width:280px; }
.ma.ipad .ma-rail-in{ left:0; right:0; top:86px; bottom:0; gap:0; }
.ma.ipad .ma-rhead{ display:none; }
.ip-rseg{ flex:none; margin:10px 20px 9.5px; height:32px; border-radius:16px; background:rgba(118,118,128,.12); display:flex; padding:0; position:relative; }
:root[data-theme="dark"] .ip-rseg{ background:rgba(118,118,128,.24); }
.ip-rseg button{ flex:1; border:0; background:none; padding:0; color:var(--ink); display:grid; place-items:center; cursor:pointer; border-radius:14px; margin:3px; transition:background-color .25s, box-shadow .25s; }
.ip-rseg button.on{ background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
:root[data-theme="dark"] .ip-rseg button.on{ background:#636366; box-shadow:none; }
.ip-rseg svg{ width:18px; height:18px; stroke-width:1.9; }
.ma.ipad .ma-module{ background:none; box-shadow:none; border-radius:0; border-top:.5px solid rgba(60,60,67,.29); }
:root[data-theme="dark"] .ma.ipad .ma-module{ border-top-color:rgba(84,84,88,.65); }
.ma.ipad .ma-mctl{ border-bottom:0; padding:10px 20px; }
.ma.ipad .ma-count{ font:600 16px/1.2 var(--font); }
.ma.ipad .ma-mlist{ padding:6px 20px; }
.ma.ipad .ma-audio{ padding:0 16px 20px; gap:0; }
.ip-ah{ padding:22px 17px 10px; font:600 17px/1.2 var(--font); color:var(--ink-2); }
.ip-acard{ border-radius:26px; background:var(--cell); overflow:hidden; }
.ip-ar{ position:relative; display:flex; align-items:center; gap:9px; min-height:61px; padding:0 16px; font:400 17px/1.2 var(--font); }
.ip-ar + .ip-ar::before{ content:""; position:absolute; left:16px; right:16px; top:0; height:.5px; background:rgba(60,60,67,.29); }
:root[data-theme="dark"] .ip-ar + .ip-ar::before{ background:rgba(84,84,88,.65); }
.ip-ar .l{ flex:none; }
.ip-ar .ma-sl{ flex:1; max-width:220px; margin-left:auto; }
.ip-ar:has(.ip-sw){ min-height:51px; } .ip-ar .ip-sw{ margin-left:auto; }
.ip-sw{ position:relative; width:63px; height:28px; border:0; border-radius:14px; padding:0; cursor:pointer; background:rgba(120,120,128,.16); transition:background-color .25s; flex:none; }
.ip-sw i{ position:absolute; left:2px; top:2px; width:37px; height:24px; border-radius:12px; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.15); transition:transform .35s cubic-bezier(.3,1.35,.5,1); }
.ip-sw.on{ background:var(--sw-on); } .ip-sw.on i{ transform:translateX(22px); }
.ip-ar.link{ color:var(--tint); gap:12px; cursor:pointer; } .ip-ar.link svg{ width:21px; height:21px; } .ip-ar.link .cv{ margin-left:auto; color:var(--ink-3); } .ip-ar.link .cv svg{ width:8px; height:13px; }

.ma.ipad .ma-sr.add span:nth-of-type(1){ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:1; }
.ma.ipad .ma-sr.add .av{ flex:none; white-space:nowrap; }
.ma.ipad .ma-sr .tile20.radio{ background:#1c1c1e; color:#8a8a8e; }
.ma.ipad .ma-p-music .ma-rail-x{ overflow:visible; }
/* margins between rows collapse: set pitch by height (nav 51, Music 58.5, services 66) */
.ma.ipad .ma-sr.nav{ height:49px; }
.ma.ipad .ma-sr.nav[data-nav="music"]{ height:56.5px; }
.ma.ipad .ma-sr.svc{ height:64px; }
.ma.ipad .ma-sr.add{ height:57px; }
.ip-pill > button svg{ stroke-width:2; width:22px; height:22px; }
.ma.ipad .ma-tp .sk svg{ width:24px; height:14px; }

.ma.ipad .ma-trk .st{ order:2; } .ma.ipad .ma-trk .gr{ order:3; }
.ma.ipad .ma-trk .st svg{ width:18px; height:18px; }
.ip-scrub{ margin-top:2px; }
.ma.ipad .ma-rp-tr{ margin-top:4px; }
.ma.ipad .ma-rp-tr .sk svg{ width:38px; height:24px; }
.ma.ipad .ma-rp-tr .md svg{ width:21px; height:18px; }
/* iPad sidebar geometry from the measured selection pills (spec §2.1-2.2):
   nav pill 47 (Music 62) on a 51 pitch, services 62 on 66, rooms 74 on 78. */
.ma.ipad .ma-side-scroll{ top:84px; padding-top:0; }
.ma.ipad .ma-sr{ margin:4px 24px; }
.ma.ipad .ma-sr.nav{ height:47px; }
.ma.ipad .ma-sr.nav[data-nav="music"]{ height:62px; }
.ma.ipad .ma-sr.svc{ height:62px; }
.ma.ipad .ma-sr.add{ height:48px; }
.ma.ipad .ma-sr.room{ height:74px; margin-bottom:4px; }
.ma.ipad .ma-sh{ padding:17px 33px 9px; }
.ma.ipad .ma-sh[style]{ margin-top:0 !important; padding-top:14px; }
.ma.ipad .ma-tile64{ line-height:1; }
.ma.ipad .ma-sh{ padding:19.5px 33px 10px; }
.ma.ipad .ma-sh[style]{ padding-top:19px; }

/* shelves scroll sideways and run past the column edge, as in the app */
.ma-rail-x{ overflow-x:auto !important; overflow-y:hidden; scrollbar-width:none; scroll-snap-type:x proximity; overscroll-behavior-x:contain; padding-bottom:4px; }
.ma-rail-x::-webkit-scrollbar{ display:none; }
.ma-rail-x > *{ scroll-snap-align:start; scroll-margin-left:20px; }
.ma-rail-x::after{ content:""; flex:0 0 6px; }
/* iPad room page vertical rhythm (spec §5.3) */
.ip-next{ margin-top:-18px; }
.ip-scrub{ margin-top:4.5px; }
.ma.ipad .ma-rp-tr{ margin-top:1.5px; }
.ma.ipad .ma-qh{ margin-bottom:-17px; }
.ma.ipad .ma-p-room > div:last-child{ margin-top:-23px !important; }
.ip-next{ margin-top:-14px; }
.ma.ipad .ma-rp-tx{ gap:2px; margin-top:6px; }
.ma.ipad .ma-rp-artist{ margin-top:2px; }
