/* 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. */

.md {
  --md-fg: #1d1d1f;
  --md-fg2: rgba(60, 60, 67, .62);
  --md-fg3: rgba(60, 60, 67, .32);
  --md-fill: rgba(0, 0, 0, .1);
  --md-track: rgba(0, 0, 0, .11);
  --md-hair: rgba(0, 0, 0, .1);
  --md-blue: #0088ff;
  --md-blue-press: #0074e0;
  --md-green: #34c759;
  --md-orange: #ff8d28;
  --md-red: #ff383c;
  --md-glass: rgba(255, 255, 255, .58);
  --md-rim: rgba(255, 255, 255, .55);
  --md-rim-top: rgba(255, 255, 255, .95);
  --md-hole: #fff;
  /* The Glass slider (0 clear … 1 solid) thickens the glass, like the app: more blur, less saturation and a tint
     of the window colour up to 70%. The rim and the sheen stay, so it still reads as glass at Solid. */
  --frost: 0;
  --md-window-rgb: 236 236 236;
  --md-frost-layer: rgb(var(--md-window-rgb) / calc(var(--frost) * .7));
  --md-wall:
    radial-gradient(760px 520px at 14% 10%, #a9cdff 0%, transparent 62%),
    radial-gradient(700px 540px at 88% 22%, #ffc9ae 0%, transparent 60%),
    radial-gradient(940px 640px at 46% 104%, #84d8c4 0%, transparent 62%),
    radial-gradient(600px 420px at 72% 70%, #f6b7d8 0%, transparent 60%),
    linear-gradient(180deg, #dfe7f7, #eef0f6);
  --md-mb-fg: #1d1d1f;
  --md-mb-bg: rgba(255, 255, 255, .24);
  --md-hover: rgba(0, 0, 0, .1);
  --md-hover-soft: rgba(0, 0, 0, .06);
  --md-press: rgba(0, 0, 0, .12);
  --md-win: #fbfbfd;
  --md-win-bar: #f1f1f4;
  --md-win-line: rgba(0, 0, 0, .08);
  --md-win-text: rgba(0, 0, 0, .12);
  --md-dock: rgba(255, 255, 255, .34);
  --md-dock-rim: rgba(255, 255, 255, .5);
  --md-hint: rgba(255, 255, 255, .55);
  --md-hint-hover: rgba(255, 255, 255, .75);
  --md-coach-bg: #1d1d1f;
  --md-coach-fg: #fff;
  --md-x: rgba(120, 120, 128, .16);
  --md-sheen: rgba(255, 255, 255, .55);
  --md-panel: rgba(248, 248, 250, .74);
  --md-panel-rim: rgba(255, 255, 255, .8);
  --md-mark: rgba(60, 60, 67, .38);
  --md-switch-off: rgba(0, 0, 0, .1);
  --md-knob: #fff;
  --md-spin-track: rgba(0, 0, 0, .15);
  --md-outer: 0 0 0 1px rgba(17, 17, 20, .08), 0 30px 60px -30px rgba(20, 30, 70, .35);
  position: relative;
  width: 100%;
  height: 709px;
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  background: #dfe7f7;
  box-shadow: var(--md-outer);
  text-align: left;
  user-select: none; -webkit-user-select: none;
  font-family: system-ui, -apple-system, 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; }

/* Dark: the Mac in dark appearance, as the app draws its card and panel there. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .md {
    --md-fg: #f5f5f7;
    --md-fg2: rgba(235, 235, 245, .62);
    --md-fg3: rgba(235, 235, 245, .3);
    --md-fill: rgba(255, 255, 255, .13);
    --md-track: rgba(255, 255, 255, .17);
    --md-hair: rgba(255, 255, 255, .1);
    --md-blue: #0091ff;
    --md-blue-press: #33a3ff;
    --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;
  --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, .08);
    --md-press: rgba(255, 255, 255, .16);
    --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-panel: rgba(32, 32, 35, .74);
    --md-panel-rim: rgba(255, 255, 255, .1);
    --md-mark: rgba(235, 235, 245, .4);
    --md-switch-off: rgba(255, 255, 255, .16);
    --md-knob: #e8e8ea;
    --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);
  }
}
:root[data-theme="dark"] .md {
  --md-fg: #f5f5f7;
  --md-fg2: rgba(235, 235, 245, .62);
  --md-fg3: rgba(235, 235, 245, .3);
  --md-fill: rgba(255, 255, 255, .13);
  --md-track: rgba(255, 255, 255, .17);
  --md-hair: rgba(255, 255, 255, .1);
  --md-blue: #0091ff;
  --md-blue-press: #33a3ff;
  --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;
  --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, .08);
  --md-press: rgba(255, 255, 255, .16);
  --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-panel: rgba(32, 32, 35, .74);
  --md-panel-rim: rgba(255, 255, 255, .1);
  --md-mark: rgba(235, 235, 245, .4);
  --md-switch-off: rgba(255, 255, 255, .16);
  --md-knob: #e8e8ea;
  --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);
}

.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: 58px; height: 58px; 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) ---------- */

.md-panel {
  position: absolute; top: 38px; z-index: 8;
  width: 320px;
  border-radius: 18px;
  color: var(--md-fg);
}
.md-panel[hidden] { display: none; }
/* The glass (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: var(--md-panel);
  background-image: linear-gradient(var(--md-frost-layer), var(--md-frost-layer));
  box-shadow: inset 0 0 0 .5px var(--md-hair), inset 0 1px 0 var(--md-panel-rim), 0 24px 54px -18px rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(calc(40px + var(--frost) * 20px)) saturate(calc(1.8 - var(--frost) * .5));
  backdrop-filter: blur(calc(40px + var(--frost) * 20px)) saturate(calc(1.8 - var(--frost) * .5));
}
.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; }

.mp-body { padding: 0 16px; }
/* AirPodsPanel: the buds beside the name and batteries, Refresh at the top right (10 pt down). */
.mp-top { display: flex; align-items: flex-start; gap: 10px; padding-top: 8px; }
.mp-stage { position: relative; flex: none; width: 96px; height: 86px; }
.mp-stage canvas, .mp-stage .md-still { position: absolute; inset: 0; width: 96px; height: 86px; display: block; }
.mp-floor {
  position: absolute; left: 50%; top: 50%;
  width: 80px; height: 12px; margin: 30px 0 0 -40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .14), transparent); filter: blur(2px);
  transition: transform .75s cubic-bezier(.2, .9, .3, 1), opacity .75s;
}
.mp-stage.is-buds .mp-floor { transform: scaleX(.7); opacity: .45; }
.mp-title { flex: 1; height: 86px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.mp-title strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-status { display: block; margin-top: 1px; font-size: 11.5px; color: var(--md-fg2); }
.mp-status.is-on { color: var(--md-green); }

.mp-chips { display: flex; gap: 10px; }
.mp-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; 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: 7px; height: 10px; color: var(--md-green); }

.mp-div { height: 1px; background: var(--md-hair); }
/* No titles or lines between noise control, Conversation/Spatial, volume and connection: spacing groups them. */
.mp-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.mp-noise { padding-top: 10px; }
.mp-group { padding-top: 14px; }
.mp-sec[hidden], .mp-pills[hidden], .mp-settings[hidden], .mp-places[hidden], .mp-away[hidden], .mp-mode[hidden], .mp-round[hidden], .md-iphone[hidden], .md-toast[hidden], .mp-menu[hidden] { display: none; }
.mp-head { display: flex; align-items: center; }
.mp-head > span { flex: 1; padding-left: 2px; font-size: 11px; font-weight: 600; color: var(--md-fg2); }
.mp-refresh { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 10px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--md-fg2); cursor: pointer; }
.mp-refresh[hidden] { display: none; }
.mp-refresh svg { width: 11px; height: 11px; }
.mp-refresh.is-busy svg { animation: md-spin .8s linear infinite; }

.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;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 10px; line-height: 1.2; text-align: center;
}
.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, color .18s;
}
.mp-mode i svg { width: 15px; height: 15px; }
.mp-mode[aria-checked="true"] i { background: var(--md-blue); color: #fff; }

.mp-pills { display: flex; gap: 8px; padding-top: 10px; }
.mp-pill {
  flex: 1; min-width: 0; height: 26px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 8px; border: 0; border-radius: 13px;
  background: var(--md-fill); cursor: pointer;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.mp-pill svg { width: 12px; height: 12px; flex: none; }
.mp-pill .chev { width: 8px; height: 8px; opacity: .7; }
.mp-pill[aria-pressed="true"] { background: var(--md-blue); color: #fff; }
.mp-pill.is-dim { opacity: .5; cursor: default; }

.mp-vol { display: flex; align-items: center; gap: 8px; }
.mp-vol > svg { width: 12px; height: 12px; flex: none; color: var(--md-fg2); }
.mp-slider { position: relative; flex: 1; min-width: 0; height: 20px; display: flex; align-items: center; }
.mp-slider input {
  --fill: 60%;
  --tint: var(--md-blue);
  width: 100%; height: 20px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.mp-slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--tint) var(--fill), var(--md-track) var(--fill)); }
.mp-slider input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--tint) var(--fill), var(--md-track) var(--fill)); }
.mp-slider input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 15px; margin-top: -5.5px; border-radius: 8px;
  background: var(--md-knob); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .18);
}
.mp-slider input::-moz-range-thumb { width: 22px; height: 15px; border: 0; border-radius: 8px; background: var(--md-knob); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .18); }
.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-slider.is-boost input { --tint: var(--md-orange); }
.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-mark[hidden] { display: none; }
.mp-pct { width: 34px; text-align: right; font-size: 10.5px; font-weight: 500; color: var(--md-fg2); font-variant-numeric: tabular-nums; }
.mp-pct.is-boost { color: var(--md-orange); }
.mp-round {
  flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--md-fill); color: var(--md-fg2); cursor: pointer;
  transition: background-color .18s, color .18s;
}
.mp-round svg { width: 11px; height: 11px; }
.mp-round.is-on { color: #fff; }
.mp-round.is-on.boost { background: var(--md-orange); }
.mp-round.is-on.lock { background: 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[hidden] { display: none; }
.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); } }

.mp-places { display: flex; gap: 8px; }
.mp-place {
  flex: 1; height: 24px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0; border: 0; border-radius: 12px;
  background: var(--md-fill); cursor: pointer;
  font-size: 12px; font-weight: 500;
}
.mp-place svg { width: 13px; height: 13px; }
.mp-place[aria-pressed="true"] { background: var(--md-blue); color: #fff; cursor: default; }
.mp-keep { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
/* "AirPods Settings…" under the outputs, where macOS's Sound menu has it. */
.mp-settings { display: block; width: 100%; margin-top: 4px; padding: 0 4px; border: 0; background: none; text-align: left; font-size: 12px; color: var(--md-fg2); cursor: pointer; }
.mp-settings:hover { color: var(--md-fg); }

.md-switch {
  position: relative; flex: none;
  width: 34px; height: 16px; padding: 0; border: 0; border-radius: 8px;
  background: var(--md-switch-off); cursor: pointer;
  box-shadow: inset 0 0 0 .5px var(--md-hair);
  transition: background-color .2s;
}
.md-switch::after {
  content: ""; position: absolute; top: 1.5px; left: 1.5px;
  width: 20px; height: 13px; border-radius: 7px;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.md-switch[aria-checked="true"] { background: var(--md-blue); }
.md-switch[aria-checked="true"]::after { transform: translateX(11px); }

.mp-fold { padding-top: 6px; }
.mp-fold + .mp-fold { padding-top: 2px; }
.mp-fold-h {
  display: flex; align-items: center; gap: 6px;
  width: calc(100% + 16px); margin: 0 -8px; padding: 6px 10px;
  border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  font-size: 11.5px; font-weight: 600; color: var(--md-fg2); text-align: left;
  transition: background-color .12s;
}
.mp-fold-h:hover { background: var(--md-hover-soft); }
.mp-fold-h:active { background: var(--md-press); }
.mp-fold-h span { flex: 1; }
.mp-fold-h svg { width: 9px; height: 9px; color: var(--md-fg3); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.mp-fold-h[aria-expanded="true"] svg { transform: rotate(90deg); }
.mp-fold-b { padding-top: 4px; animation: md-drop .28s ease-out both; }
.mp-fold-b[hidden] { display: none; }

.mp-outs { display: flex; flex-direction: column; gap: 2px; }
.mp-out {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 1px 4px; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 12.5px;
}
.mp-out i { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--md-fill); }
.mp-out i svg { width: 12px; height: 12px; }
.mp-out[aria-checked="true"] i { background: var(--md-blue); color: #fff; }
.mp-out.is-connect { padding: 3px 6px; color: var(--md-blue); font-size: 13px; }
.mp-out.is-connect i { width: 26px; height: 26px; background: none; box-shadow: inset 0 0 0 1px var(--md-blue); }
.mp-mics { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.mp-mic { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: 12px; }
.mp-mic svg { width: 14px; height: 14px; flex: none; }
.mp-mic[aria-checked="true"] svg { color: var(--md-blue); }
.mp-keepmic { display: flex; align-items: center; gap: 8px; }

.mp-others { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.mp-group-t { font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--md-fg2); margin-bottom: 6px; }
.mp-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.mp-row > svg { width: 20px; height: 20px; flex: none; margin: 0 6px; }
.mp-row .nm { flex: 1; min-width: 0; font-size: 13px; }
.mp-row .nm small { display: block; font-size: 11px; color: var(--md-fg2); }
.mp-row .mp-chip > svg { width: 18px; height: 12px; }

.mp-foot { display: flex; align-items: center; gap: 6px; padding: 9px 18px 12px; }
.mp-foot .grow { flex: 1; }
.mp-foot-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 4px; border: 0; border-radius: 5px; background: none; cursor: pointer;
  font-size: 13px; color: var(--md-fg2);
}
.mp-foot-btn:hover { color: var(--md-fg); }
.mp-foot-btn svg { width: 15px; height: 15px; }

/* "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);
}

/* PairSwitcher: one chip per pair (24 pt capsules, 11.5 pt medium), scrolling sideways. */
.mp-pairs-t { padding: 8px 2px 6px; font-size: 11px; font-weight: 600; color: var(--md-fg2); }
.mp-pairs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-mask: linear-gradient(to right, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
  mask: linear-gradient(to right, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
}
.mp-pairs::-webkit-scrollbar { display: none; }
/* The slider under the chips: its thumb shows which part of the row is in view; drag it, or click the track. */
.mp-track { position: relative; height: 14px; margin-top: 4px; cursor: pointer; touch-action: none; }
.mp-track[hidden] { display: none; }
.mp-track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 2px; background: var(--md-fill); }
.mp-thumb {
  position: absolute; top: 4px; left: 0; height: 6px; min-width: 24px; border-radius: 3px;
  background: var(--md-fg3); cursor: grab;
  transition: background-color .15s, height .15s, top .15s;
}
.mp-track:hover .mp-thumb, .mp-thumb.is-dragging { top: 3px; height: 8px; border-radius: 4px; background: var(--md-fg2); }
.mp-thumb.is-dragging { cursor: grabbing; }
.mp-pair {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border: 0; border-radius: 12px;
  background: var(--md-fill); cursor: pointer;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.mp-pair svg { width: 12px; height: 12px; }
.mp-pair .lvl { opacity: .75; font-variant-numeric: tabular-nums; }
.mp-pair[aria-checked="true"] { background: var(--md-blue); color: #fff; --md-hole: var(--md-blue); }

/* AwayActions: "Connect to this Mac" while they're on the iPhone or out of reach. */
.mp-away { padding-top: 6px; }
.mp-away-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 30px; padding: 0; border: 0; border-radius: 15px;
  background: var(--md-blue); color: #fff; cursor: pointer;
  font-size: 12.5px; font-weight: 600;
}
.mp-away-btn:hover { background: var(--md-blue-press); }
.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; }

/* Sleep timer: a round button beside boost and lock; a blue pill with the minutes left while it runs. */
.mp-moon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 22px; height: 22px; padding: 0; border: 0; border-radius: 11px;
  background: var(--md-fill); color: var(--md-fg2); cursor: pointer;
  font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.mp-moon svg { width: 11px; height: 11px; }
.mp-moon.is-on { padding: 0 7px; background: var(--md-blue); color: #fff; }
.mp-menu {
  position: absolute; z-index: 10; min-width: 236px; padding: 5px;
  border-radius: 10px;
  background: var(--md-panel);
  -webkit-backdrop-filter: blur(40px) saturate(1.8); backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px var(--md-hair), 0 14px 40px -10px rgba(0, 0, 0, .4);
  color: var(--md-fg);
}
.mp-menu button {
  display: flex; align-items: center; width: 100%; height: 24px; padding: 0 12px 0 24px;
  border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left;
  font-size: 13px; position: relative;
}
.mp-menu button:hover, .mp-menu button:focus-visible { background: var(--md-blue); color: #fff; outline: none; }
.mp-menu .tick { position: absolute; left: 8px; visibility: hidden; font-size: 11px; }
.mp-menu [aria-checked="true"] .tick { visibility: visible; }
.mp-menu hr { height: 1px; margin: 5px 10px; border: 0; background: var(--md-hair); }

/* 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; } }

/* The Glass slider under the demo (site): Clear … Solid, a thin frosted track and a glassy round thumb. */
/* The Glass slider and Show the case share a row under the demo; on phones the checkbox wraps below. */
.md-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; margin-top: 16px; }
.md-frost { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--muted, #6b6e76); }
.md-frost-t { font-weight: 600; color: var(--ink-2, #3a3b40); margin-right: 2px; }
.md-frost-range {
  --pos: 0%;
  width: min(220px, 46vw); height: 24px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.md-frost-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, rgba(24, 115, 253, .55) var(--pos), rgba(120, 120, 128, .18) var(--pos));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 1px 2px rgba(0, 0, 0, .12);
}
.md-frost-range::-moz-range-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, rgba(24, 115, 253, .55) var(--pos), rgba(120, 120, 128, .18) var(--pos));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 1px 2px rgba(0, 0, 0, .12);
}
.md-frost-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .62) 60%, rgba(235, 238, 245, .55));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 3px 10px rgba(20, 30, 60, .2), 0 0 0 .5px rgba(0, 0, 0, .12), inset 0 1px 1px #fff, inset 0 -2px 4px rgba(120, 130, 160, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.md-frost-range::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .62) 60%, rgba(235, 238, 245, .55));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 3px 10px rgba(20, 30, 60, .2), 0 0 0 .5px rgba(0, 0, 0, .12), inset 0 1px 1px #fff, inset 0 -2px 4px rgba(120, 130, 160, .18);
}
.md-frost-range:focus-visible { outline: none; }
/* 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-frost-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg, #fff), 0 0 0 5px var(--accent, #1873fd); }
.md-frost-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg, #fff), 0 0 0 5px var(--accent, #1873fd); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .md-frost-range::-webkit-slider-thumb { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .2) 60%, rgba(255, 255, 255, .14)); border-color: rgba(255, 255, 255, .4); box-shadow: 0 3px 10px rgba(0, 0, 0, .5), inset 0 1px 1px rgba(255, 255, 255, .5); }
  :root:not([data-theme="light"]) .md-frost-range::-webkit-slider-runnable-track { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
}
:root[data-theme="dark"] .md-frost-range::-webkit-slider-thumb { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .2) 60%, rgba(255, 255, 255, .14)); border-color: rgba(255, 255, 255, .4); box-shadow: 0 3px 10px rgba(0, 0, 0, .5), inset 0 1px 1px rgba(255, 255, 255, .5); }
:root[data-theme="dark"] .md-frost-range::-webkit-slider-runnable-track { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

.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; }
}
