/* The hero demo: a pretend Mac running AirPane. Sizes are the app's own points (CardView.swift,
   AirPodsPanel.swift, MenuBarViews.swift); the Mac is drawn at 1280×780 pt and scaled to fit. */

/* The pretend Mac is always in dark appearance, whatever the site's theme: the app's card and panel as they draw
   there. Colours are macOS's dark semantic colours (label white .85, secondary .55, tertiary .25), measured on
   the real panel's pixels; SwiftUI's `primary.opacity(x)` is white at .85 × x. */
.md {
  --md-fg: rgba(255, 255, 255, .85);
  --md-fg2: rgba(255, 255, 255, .55);
  --md-fg3: rgba(255, 255, 255, .25);
  --md-fill: rgba(255, 255, 255, .085);
  --md-card: rgba(255, 255, 255, .047);
  --md-track: rgba(255, 255, 255, .1);
  --md-hair: rgba(255, 255, 255, .1);
  --md-seg: rgba(255, 255, 255, .075);
  --md-seg-on: rgba(255, 255, 255, .19);
  --md-blue: rgb(10, 123, 255);
  --md-blue-press: #3393ff;
  --md-green: #30d158;
  --md-orange: #ff9230;
  --md-red: #ff4245;
  --md-glass: rgba(30, 30, 33, .64);
  --md-rim: rgba(255, 255, 255, .13);
  --md-rim-top: rgba(255, 255, 255, .28);
  --md-hole: #1d1d1f;
  /* The card's glass at Clear (the Glass setting's default); liquid-glass.css still reads it. */
  --frost: 0;
  --md-window-rgb: 30 30 30;
  --md-frost-layer: rgb(var(--md-window-rgb) / calc(var(--frost) * .7));
  --md-wall:
    radial-gradient(760px 520px at 14% 10%, #1f3f86 0%, transparent 62%),
    radial-gradient(700px 540px at 88% 22%, #6b2c4f 0%, transparent 60%),
    radial-gradient(940px 640px at 46% 104%, #0f5a59 0%, transparent 62%),
    radial-gradient(600px 420px at 72% 70%, #4b2a7a 0%, transparent 60%),
    linear-gradient(180deg, #0e1222, #141625);
  --md-mb-fg: #f5f5f7;
  --md-mb-bg: rgba(0, 0, 0, .2);
  --md-hover: rgba(255, 255, 255, .16);
  --md-hover-soft: rgba(255, 255, 255, .068);
  --md-press: rgba(255, 255, 255, .1);
  --md-win: #232326;
  --md-win-bar: #2c2c30;
  --md-win-line: rgba(255, 255, 255, .07);
  --md-win-text: rgba(255, 255, 255, .12);
  --md-dock: rgba(40, 40, 44, .42);
  --md-dock-rim: rgba(255, 255, 255, .14);
  --md-hint: rgba(36, 36, 40, .55);
  --md-hint-hover: rgba(52, 52, 58, .75);
  --md-coach-bg: #f5f5f7;
  --md-coach-fg: #1d1d1f;
  --md-x: rgba(120, 120, 128, .32);
  --md-sheen: rgba(255, 255, 255, .1);
  --md-mark: rgba(255, 255, 255, .33);
  --md-switch-off: rgba(255, 255, 255, .102);
  --md-switch-rim: rgba(255, 255, 255, .085);
  --md-knob: rgb(223, 223, 223);
  --md-spin-track: rgba(255, 255, 255, .2);
  --md-outer: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .7);
  /* liquid-glass.css's dark values, for the card's glass */
  --lg-veil: rgba(255, 255, 255, .075);
  --lg-spec: rgba(255, 255, 255, .28);
  --lg-edge: rgba(255, 255, 255, .1);
  color-scheme: dark;
  position: relative;
  width: 100%;
  height: 709px;
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  background: #0e1222;
  box-shadow: var(--md-outer);
  text-align: left;
  user-select: none; -webkit-user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  color: var(--md-fg);
  isolation: isolate;
}
:where(.md) button { font: inherit; color: inherit; }
.md :focus-visible { outline: 2px solid var(--md-blue); outline-offset: 2px; box-shadow: none; }

.md-mac {
  position: absolute; left: 0; top: 0;
  width: 1280px; height: 780px;
  transform-origin: 0 0;
  overflow: hidden;
  font-size: 13px; line-height: 1.25;
}
.md-mac.is-panning { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }

.md-wall {
  position: absolute; inset: 0;
  background: var(--md-wall);
}

/* Menu bar */
.md-menubar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6;
  height: 32px; padding: 0 14px 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--md-mb-fg);
  background: var(--md-mb-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
}
.md-menus { display: flex; gap: 20px; align-items: center; }
.md-menus b { font-weight: 700; }
.md-extras { display: flex; gap: 14px; align-items: center; }
.md-extras > svg { width: 18px; height: 18px; display: block; }
.md-clock { font-variant-numeric: tabular-nums; }
.md-ours {
  position: relative;
  display: grid; place-items: center;
  width: 32px; height: 24px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; cursor: pointer;
}
.md-ours:hover, .md-ours[aria-expanded="true"] { background: var(--md-hover); }
.md-ours svg { width: 18px; height: 18px; }
.md-ours.is-pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 9px;
  border: 2px solid var(--md-blue);
  animation: md-pulse 1.6s ease-out infinite;
}
@keyframes md-pulse { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.45); } }

/* A window and the Dock, for the desktop around the card */
.md-win {
  position: absolute; left: 110px; top: 84px; z-index: 1;
  width: 640px; height: 440px; border-radius: 16px; overflow: hidden;
  background: var(--md-win);
  box-shadow: 0 0 0 .5px var(--md-hair), 0 30px 70px -20px rgba(0, 0, 0, .3);
}
.md-win-bar {
  height: 52px; padding: 0 18px;
  display: flex; align-items: center; gap: 8px;
  background: var(--md-win-bar); border-bottom: 1px solid var(--md-win-line);
  color: var(--md-fg2); font-size: 13px; font-weight: 600;
}
.md-win-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.md-win-bar span { margin-left: 14px; }
.md-win-body { padding: 30px 40px; display: flex; flex-direction: column; gap: 14px; }
.md-win-body div { height: 11px; border-radius: 6px; background: var(--md-win-text); }

.md-dock {
  position: absolute; left: 50%; bottom: 6px; z-index: 5;
  height: 70px; padding: 8px 10px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  border-radius: 24px;
  background: var(--md-dock);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--md-dock-rim), 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.md-dock i { width: 54px; height: 54px; border-radius: 13px; display: block; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3); }
.md-dock hr { width: 1px; height: 46px; margin: 0 3px; border: 0; background: var(--md-hair); }

/* Site-only prompts (not part of the app) */
.md-hint {
  position: absolute; left: 50%; bottom: 118px; z-index: 2;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--md-hint); color: var(--md-fg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--md-rim), 0 10px 30px -10px rgba(30, 40, 90, .3);
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: opacity .25s, transform .25s;
}
.md-hint:hover { background: var(--md-hint-hover); }
.md-hint svg { width: 22px; height: 22px; color: var(--md-blue); }
.md-hint[hidden] { display: none; }
.md-coach {
  position: absolute; top: 44px; z-index: 7;
  padding: 8px 12px; border-radius: 10px; margin: 0;
  background: var(--md-coach-bg); color: var(--md-coach-fg); font-size: 14px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transform: translateX(-50%);
  animation: md-coach .35s ease-out both;
}
.md-coach::before {
  content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px;
  width: 12px; height: 12px; border-radius: 2px; background: var(--md-coach-bg); transform: rotate(45deg);
}
.md-coach[hidden] { display: none; }
@keyframes md-coach { from { opacity: 0; margin-top: 6px; } }

/* ---------- The case card (CardView) ---------- */

.md-card {
  position: absolute; left: 50%; bottom: 90px; z-index: 3;
  width: 360px; margin-left: -180px;
  padding: 14px 18px 20px;
  border-radius: 32px;
  will-change: transform;
  touch-action: none;
  cursor: default;
}
.md-card[hidden] { display: none; }
.md-glass {
  background-color: var(--md-glass);
  background-image: linear-gradient(var(--md-frost-layer), var(--md-frost-layer));
  -webkit-backdrop-filter: blur(calc(18px + var(--frost) * 22px)) saturate(calc(1.9 - var(--frost) * .5));
  backdrop-filter: blur(calc(18px + var(--frost) * 22px)) saturate(calc(1.9 - var(--frost) * .5));
  box-shadow: inset 0 1px 0 var(--md-rim-top), inset 0 0 0 1px var(--md-rim), 0 14px 44px rgba(0, 0, 0, .22);
}
.md-card.md-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(158deg, var(--md-sheen) 0%, transparent 34%, transparent 72%, var(--md-sheen) 130%);
  opacity: .7;
}
.md-card-head { position: relative; min-height: 30px; padding: 0 34px; display: flex; align-items: center; justify-content: center; }
.md-card-head h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-align: center; }
.md-x {
  position: absolute; right: -4px; top: 0;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--md-x); color: var(--md-fg2); cursor: pointer;
}
.md-x:hover { color: var(--md-fg); }
.md-x svg { width: 11px; height: 11px; }

.md-stage { position: relative; width: 320px; height: 236px; margin: 2px auto 0; }
.md-stage canvas, .md-stage .md-still { position: absolute; inset: 0; width: 320px; height: 236px; display: block; }
.md-floor {
  position: absolute; left: 50%; top: 50%;
  width: 230px; height: 34px; margin: 75px 0 0 -115px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, .06) 60%, transparent);
  filter: blur(3px);
  transition: transform .75s cubic-bezier(.2, .9, .3, 1), opacity .75s;
}
.md-card.is-buds .md-floor { transform: scaleX(.7); opacity: .45; }

.md-batts { display: flex; justify-content: center; gap: 30px; padding-top: 4px; }
.md-batt { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 64px; }
.md-ring { position: relative; width: 58px; height: 58px; }
.md-ring > svg { width: 63px; height: 63px; margin: -2.5px; display: block; transform: rotate(-90deg); }
.md-ring circle { fill: none; stroke-width: 5; }
.md-ring .track { stroke: var(--md-track); }
.md-ring .fill { stroke: var(--md-green); stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1) .23s; }
.md-ring .glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.md-ring .glyph svg { width: 26px; height: 26px; }
.md-pct { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; min-height: 16px; }
.md-pct svg { width: 9px; height: 13px; color: var(--md-green); }
.md-cap { font-size: 11px; color: var(--md-fg2); line-height: 1; }

.md-cta-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .42s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.md-cta-wrap.is-collapsed { grid-template-rows: 0fr; opacity: 0; }
.md-cta-inner { min-height: 0; overflow: hidden; }
.md-cta {
  width: 100%; height: 44px; margin-top: 18px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 22px;
  background: var(--md-blue); color: #fff;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background-color .25s, transform .12s, filter .12s;
}
.md-cta:hover { background: var(--md-blue-press); }
.md-cta:active { transform: scale(.98); filter: brightness(.94); }
.md-cta.is-ok { background: var(--md-green); cursor: default; }
.md-cta svg { width: 15px; height: 15px; }
.md-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: md-spin .8s linear infinite; }
.md-spin.is-mini { width: 11px; height: 11px; border-width: 1.6px; border-color: var(--md-spin-track); border-top-color: currentColor; }
@keyframes md-spin { to { transform: rotate(360deg); } }

/* ---------- The menu bar panel (MenuContent + AirPodsPanel, rebuilt in the app on 2026-10-25) ---------- */
/* Sizes are the app's points. The surface is macOS's menu material (NSVisualEffectView .menu, as Control Center):
   the desktop behind blurred and darkened, with a faint light edge. Tuned to the owner's live panel (41, 41, 42 over a
   dark window): neutral grey, the wallpaper only a hint through it. Each group sits on a 12 pt card one step lighter. */

.md-panel {
  position: absolute; top: 38px; z-index: 8;
  width: 320px;
  border-radius: 18px;
  color: var(--md-fg);
}
.md-panel[hidden] { display: none; }
/* The surface (and its shadow) and the content are separate layers, so they can fade on their own. */
.mp-glass {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-color: rgba(43, 43, 45, .88);
  -webkit-backdrop-filter: blur(30px) saturate(1.6) brightness(.5);
  backdrop-filter: blur(30px) saturate(1.6) brightness(.5);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12), 0 0 0 .5px rgba(0, 0, 0, .5), 0 16px 44px -10px rgba(0, 0, 0, .6);
}
.mp-content {
  position: relative;
  max-height: 734px;          /* the Mac's height less the menu bar and a margin */
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
  border-radius: inherit;
}
.mp-content::-webkit-scrollbar { display: none; }
.md-panel button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.md-panel .grow { flex: 1; }
.md-panel [hidden] { display: none !important; }

.mp-body { padding: 0 12px; }

/* Header: the 3D beside the name (a menu with two or more pairs) and ⓘ, the status, the battery line. */
.mp-top { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
.mp-stage { position: relative; flex: none; width: 112px; height: 100px; }
.mp-stage canvas, .mp-stage .md-still { position: absolute; inset: 0; width: 112px; height: 100px; display: block; }
.mp-floor {
  position: absolute; left: 10px; top: 86.5px;
  width: 92px; height: 13px; border-radius: 50%;
  background: radial-gradient(80px 80px at 50% 50%, rgba(0, 0, 0, .14), transparent); filter: blur(2px);
}
.mp-title { flex: 1; min-width: 0; padding-right: 12px; display: flex; flex-direction: column; align-items: flex-start; }
.mp-namerow { display: flex; align-items: baseline; gap: 6px; max-width: 100%; min-width: 0; }
.mp-name { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; color: inherit; }
.mp-name strong { font-size: 14px; line-height: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-name .chev { flex: none; width: 11px; height: 11px; margin-bottom: -1px; color: var(--md-fg2); }
.mp-name.is-single { cursor: default; }
.mp-name.is-single .chev { display: none; }
.mp-info { flex: none; display: grid; place-items: center; width: 14px; height: 14px; align-self: center; color: var(--md-fg2); }
.mp-info svg { width: 14px; height: 14px; }
.mp-info:hover { color: var(--md-fg); }
.mp-status { display: block; max-width: 100%; margin-top: 2px; font-size: 11.5px; line-height: 14px; color: var(--md-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .18s ease-out; }
.mp-chips { display: flex; gap: 12px; margin-top: 8px; }
.mp-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; line-height: 13px; font-weight: 500; color: var(--md-fg2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-chip > svg { width: 13px; height: 13px; color: var(--md-fg); }
.mp-chip .bolt { width: 6px; height: 9px; color: var(--md-green); }
.mp-chip.is-low { color: var(--md-red); }
.mp-chips.is-stale { opacity: .6; }

/* Every group on its own card: one radius, one padding, so their content shares one inset. */
.mp-card {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 8px; padding: 12px;
  border-radius: 12px;
  background: var(--md-card);
}
.mp-card-h { display: flex; align-items: center; justify-content: space-between; height: 18px; font-size: 11px; font-weight: 600; color: var(--md-fg2); }
.mp-hr { flex: none; height: 1px; margin: 0; border: 0; background: var(--md-hair); }
.mp-row { display: flex; align-items: center; gap: 8px; height: 22px; font-size: 12.5px; white-space: nowrap; }
.mp-row > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.mp-row > .md-switch, .mp-row > .mp-pop { margin-left: auto; }

/* The now-playing card: the artwork fills it, blurred to colour fields under a black overlay, like the iOS lock
   screen (ArtworkBackdrop picks the overlay that keeps the text at 4.5:1). Neutral when nothing is playing here. */
.mp-volcard.has-art { background: #000; box-shadow: inset 0 0 0 .5px rgb(82, 82, 82); }
.mp-art-bg { position: absolute; inset: .5px; border-radius: 11.5px; overflow: hidden; display: none; }
.mp-volcard.has-art .mp-art-bg { display: block; }
/* The backdrop is the app's own: the cover at 160 px, blurred σ 20 with clamped edges (NowPlayingSource.backdrop),
   filling the card, under ArtworkBackdrop's dark overlay for this cover (0.77). */
.mp-art-bg img { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1; transform: translateY(-50%); }
.mp-art-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .77); }
.mp-volcard > :not(.mp-art-bg) { position: relative; }
.mp-volcard.has-art .mp-hr { background: rgba(255, 255, 255, .1); }
.mp-np { display: flex; align-items: center; gap: 10px; height: 44px; }
.mp-np-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; }
.mp-art { flex: none; width: 44px; height: 44px; border-radius: 7px; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .1); display: block; }
.mp-np-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-np-text b { font-size: 12.5px; line-height: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-np-text > span:not(.mp-prog) { font-size: 11px; line-height: 13px; color: var(--md-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-prog { display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: rgba(255, 255, 255, .17); overflow: hidden; }
.mp-prog i { display: block; height: 100%; width: 38.8%; border-radius: 2px; background: var(--md-fg); }
.mp-np-ctl { flex: none; display: flex; gap: 2px; margin-right: -5px; }
.mp-glyph { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--md-fg); transition: background-color .12s ease-out; }
.mp-glyph:hover { background: var(--md-hover-soft); }
.mp-glyph:active svg { opacity: .5; }
.mp-glyph .sm { width: 18px; height: 10px; }
.mp-glyph .pp { width: 12px; height: 14px; }

.mp-vol { display: flex; align-items: center; gap: 8px; height: 22px; }
.mp-vol > svg { width: 11px; height: 11px; flex: none; color: var(--md-fg2); }
.mp-slider { position: relative; flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; }
.mp-slider input {
  --fill: 60%;
  --tint: var(--md-blue);
  width: 100%; height: 22px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
/* The track runs knob edge to knob edge, like AppKit's, so the fill meets the knob's centre. */
.mp-slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--tint) calc(9px + (100% - 18px) * var(--f, .6)), var(--md-track) 0); }
.mp-slider input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--tint) calc(9px + (100% - 18px) * var(--f, .6)), var(--md-track) 0); }
.mp-slider input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 14px; margin-top: -5px; border-radius: 7px;
  background: var(--md-knob); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 1px 2.5px rgba(0, 0, 0, .3);
}
.mp-slider input::-moz-range-thumb { width: 18px; height: 14px; border: 0; border-radius: 7px; background: var(--md-knob); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 1px 2.5px rgba(0, 0, 0, .3); }
.mp-slider input:focus-visible { outline: none; }
.mp-slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--md-blue); }
.mp-volcard.has-art .mp-slider input { --tint: var(--md-fg); }
.mp-slider.is-boost input { --tint: var(--md-orange) !important; }
.mp-mark { position: absolute; left: 50%; top: 50%; width: 1.5px; height: 9px; margin: -4.5px 0 0 -.75px; border-radius: 1px; background: var(--md-mark); pointer-events: none; }
.mp-pct { flex: none; width: 32px; text-align: right; font-size: 11px; font-weight: 500; color: var(--md-fg2); font-variant-numeric: tabular-nums; }
.mp-pct.is-boost { color: var(--md-orange); }
.mp-more { flex: none; display: grid; place-items: center; width: 24px; height: 20px; margin-right: -6px; border-radius: 5px; color: var(--md-fg2); transition: background-color .12s ease-out; }
.mp-more:hover, .mp-more[aria-expanded="true"] { background: var(--md-hover-soft); }
.mp-more svg { width: 13px; height: 13px; }
.mp-badges { display: flex; gap: 12px; }
.mp-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--md-fg2); }
.mp-badge svg { width: 11px; height: 11px; }
.mp-badge.is-accent { color: var(--md-blue); }
.mp-boost { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; line-height: 1.3; animation: md-drop .25s ease-out both; }
.mp-boost .warn { display: flex; gap: 4px; color: var(--md-orange); }
.mp-boost .warn svg { flex: none; width: 11px; height: 11px; margin-top: 1px; }
.mp-boost .risk { color: var(--md-fg2); }
@keyframes md-drop { from { opacity: 0; transform: translateY(-6px); } }

/* Noise Control: round buttons in the macOS Sound menu's order; every label keeps room for two lines. */
.mp-modes { display: flex; align-items: flex-start; gap: 2px; }
.mp-mode {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; line-height: 13px; text-align: center !important; color: inherit;
}
.mp-mode span { display: block; min-height: 26px; }
.mp-mode i {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--md-fill); color: var(--md-fg);
  transition: background-color .18s ease-out, color .18s ease-out;
}
.mp-mode i svg { width: 32px; height: 32px; }   /* the glyphs are drawn on the 32 pt circle */
.mp-mode[aria-checked="true"] i { background: var(--md-blue); color: #fff; }
.mp-modes.is-busy, .mp-modes.is-busy + .mp-hr + .mp-row { opacity: .45; pointer-events: none; }
.mp-pop { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--md-fg2) !important; }
.mp-pop svg { width: 6px; height: 10px; }
/* Spatial Audio greys out (no menu) while nothing that supports it is playing. */
.mp-pop.is-na { color: var(--md-fg3) !important; cursor: default; }
.mp-pop.is-na svg { display: none; }
.mp-row.is-na > span:first-child { color: var(--md-fg2); }

/* Playing on: a small segmented control; Keep on names the side it shows. */
.mp-seg { flex: none; display: flex; height: 20px; padding: 0; border-radius: 6px; background: var(--md-seg); }
.mp-seg button { width: 67.3px; height: 20px; border-radius: 6px; font-size: 11px; color: var(--md-fg); text-align: center !important; transition: background-color .15s ease-out; }
.mp-seg button[aria-checked="true"] { background: var(--md-blue); color: #fff; }
.mp-seg.is-busy { opacity: .45; pointer-events: none; }

.md-switch {
  position: relative; flex: none;
  width: 28px; height: 16px; border-radius: 8px !important;
  background: var(--md-switch-off) !important;
  box-shadow: inset 0 0 0 .5px var(--md-switch-rim);
  transition: background-color .18s;
}
.md-switch::after {
  content: ""; position: absolute; top: 1.5px; left: 1.5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 .5px 1.6px rgba(0, 0, 0, .28);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}
.md-switch[aria-checked="true"] { background: var(--md-blue) !important; box-shadow: none; }
.md-switch[aria-checked="true"]::after { transform: translateX(12px); }

/* Sound Output and Microphone: rows that fold open, the current choice in grey before the chevron. */
.mp-io { gap: 8px; }
.mp-fold-h {
  display: flex; align-items: center; gap: 6px;
  width: calc(100% + 16px); min-height: 22px; margin: 0 -8px; padding: 0 8px !important;
  border-radius: 7px; color: inherit;
  transition: background-color .12s ease-out;
}
.mp-fold-h:hover { background: var(--md-hover-soft) !important; }
.mp-fold-h:active { background: var(--md-press) !important; }
.mp-fold-h .t { flex: none; font-size: 12.5px; }
.mp-fold-h .d { flex: 1; min-width: 0; text-align: right; font-size: 11.5px; color: var(--md-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-fold-h svg { flex: none; width: 9px; height: 9px; color: var(--md-fg3); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.mp-fold-h[aria-expanded="true"] svg { transform: rotate(90deg); }
.mp-fold-h[aria-expanded="true"] .d { visibility: hidden; }
.mp-fold-b { padding: 4px 0; animation: md-drop .28s ease-out both; }
.mp-checks { display: flex; flex-direction: column; }
.mp-check {
  display: flex; align-items: center; gap: 8px;
  width: calc(100% + 8px); height: 24px; margin: 0 -4px; padding: 0 4px !important;
  border-radius: 6px; font-size: 12.5px; color: inherit;
}
.mp-check:hover { background: var(--md-hover-soft) !important; }
.mp-check > svg:first-child { flex: none; width: 16px; height: 12px; color: var(--md-fg2); }
.mp-check span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-check .ok { flex: none; width: 10px; height: 10px; color: var(--md-blue); opacity: 0; transition: opacity .18s ease-out; }
.mp-check[aria-checked="true"] .ok { opacity: 1; }
.mp-keepmic { margin-top: 4px; }

/* AwayActions: "Connect to this Mac" while they're in the case, on another device or out of reach. */
.mp-away { padding-top: 8px; }
.mp-away-btn {
  display: flex !important; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 30px; border-radius: 15px;
  background: var(--md-blue) !important; color: #fff;
  font-size: 12.5px; font-weight: 600;
}
.mp-away-btn svg { width: 13px; height: 13px; }
.md-spin.is-mini.is-light { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }

/* Footer: words, not glyphs. Borderless buttons in the secondary colour. */
.mp-foot { display: flex; align-items: center; gap: 14px; padding: 10px 24px 12px; }
.mp-foot-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 15px; color: var(--md-fg2) !important; }
.mp-foot-btn:hover { color: var(--md-fg) !important; }
.mp-foot-btn svg { width: 13px; height: 13px; }

/* A macOS menu (the pairs, ⋯, Spatial Audio): the same material, 13 pt items, blue highlight. */
.mp-menu {
  position: absolute; z-index: 10; min-width: 180px; padding: 5px;
  border-radius: 10px;
  background: rgba(43, 43, 45, .88);
  -webkit-backdrop-filter: blur(30px) saturate(1.6) brightness(.5); backdrop-filter: blur(30px) saturate(1.6) brightness(.5);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12), 0 0 0 .5px rgba(0, 0, 0, .5), 0 14px 40px -10px rgba(0, 0, 0, .6);
  color: var(--md-fg); font-size: 13px;
}
.mp-menu[hidden] { display: none; }
.mp-menu button {
  position: relative; display: flex; align-items: center; width: 100%; height: 24px; padding: 0 24px 0 24px;
  border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left; white-space: nowrap;
  font: inherit; color: inherit;
}
.mp-menu button:hover, .mp-menu button:focus-visible, .mp-menu button.is-open { background: var(--md-blue); color: #fff; outline: none; }
.mp-menu button:disabled { opacity: .35; cursor: default; background: none; color: inherit; }
.mp-menu .tick { position: absolute; left: 8px; visibility: hidden; font-size: 11px; }
.mp-menu [aria-checked="true"] .tick { visibility: visible; }
.mp-menu .sub { position: absolute; right: 8px; width: 7px; height: 9px; }
.mp-menu hr { height: 1px; margin: 5px 10px; border: 0; background: var(--md-hair); }

/* "Use with iPhone" under Connect (13 pt medium, secondary, 26 pt tall). */
.md-iphone {
  display: block; height: 26px; margin: 14px auto 0; padding: 0 12px;
  border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--md-fg2);
}
.md-iphone.is-tight { margin-top: 6px; }
.md-iphone:hover { color: var(--md-fg); }

/* A note on the pretend desktop (site only). */
.md-toast {
  position: absolute; left: 50%; bottom: 172px; z-index: 9; margin: 0;
  transform: translateX(-50%);
  padding: 9px 16px; border-radius: 999px;
  background: rgba(28, 28, 30, .86); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* Which AirPods the demo shows (site only). */
.md-models { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; }
.md-models-t { margin-right: 4px; font-size: 14px; color: var(--muted, #6b6e76); }
.md-models button {
  height: 34px; padding: 0 14px; border: 1px solid var(--line, #ececef); border-radius: 17px;
  background: var(--surface, #fff); color: var(--ink-2, #3a3b40); cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500;
  transition: background-color .15s, color .15s, border-color .15s;
}
.md-models button:hover { border-color: var(--accent, #1873fd); }
.md-models button[aria-checked="true"] { background: var(--accent, #1873fd); border-color: var(--accent, #1873fd); color: #fff; }
.md-models button:focus-visible { outline: 2px solid var(--accent, #1873fd); outline-offset: 2px; }
@media (max-width: 767px) { .md-models button { height: 32px; padding: 0 12px; font-size: 13px; } .md-models-t { width: 100%; text-align: center; margin: 0 0 2px; } }

/* Show the case sits alone under the demo. */
.md-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; margin-top: 16px; }
/* Show the case (Settings › Menu bar › Show the case in the panel). */
.md-case { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; font-size: 13px; font-weight: 600; color: var(--ink-2, #3a3b40); cursor: pointer; }
.md-case[hidden] { display: none; }
.md-case input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent, #1873fd); cursor: pointer; }
.md-case input:focus-visible { outline: 2px solid var(--accent, #1873fd); outline-offset: 2px; }

.md-credit { margin-top: 10px; font-size: 12px; color: var(--faint, #9a9da4); text-align: center; }
.md-credit a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .md-mac.is-panning, .md-ring .fill, .md-cta-wrap, .md-floor, .mp-floor { transition: none; }
  .mp-boost, .mp-fold-b, .md-coach { animation: none; }
  .md-ours.is-pulse::after { animation: none; opacity: .8; }
}
