/* macOS mock chrome shared by the Mac product pages: panel surface tokens, a desktop corner with
   a menu bar, and the panel under the active status item. Mocks use the system font only.
   A product page sets --wall (the wallpaper) and --panel-pad, and draws the panel's contents itself. */

/* Neutral panel surface tokens; each product page overrides them with its app's own palette. */
.mock {
  --m-bg: rgba(255, 251, 246, 0.80);
  --m-fg: #1D1B1A;
  --m-muted: #6B645E;
  --m-fill: rgba(70, 40, 25, 0.06);
  --m-strong: rgba(70, 40, 25, 0.12);
  --m-line: rgba(70, 40, 25, 0.12);
  --m-seg: #FFFFFF;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--m-fg);
  font: 400 13px/1.25 var(--sys);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
@media (prefers-color-scheme: dark) {
  .mock {
    --m-bg: rgba(38, 33, 32, 0.78);
    --m-fg: #F5F2F0;
    --m-muted: #B6AEA9;
    --m-fill: rgba(255, 255, 255, 0.07);
    --m-strong: rgba(255, 255, 255, 0.13);
    --m-line: rgba(255, 255, 255, 0.12);
    --m-seg: rgba(255, 255, 255, 0.17);
  }
}
.gl { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* ---------- Desktop corner: wallpaper, menu bar, the panel under the active item ---------- */
.screen {
  --mb-fg: #111111;
  --mb-bg: rgba(255, 255, 255, 0.42);
  --mb-active: rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--wall, var(--surface-2));
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  .screen {
    --mb-fg: #FFFFFF;
    --mb-bg: rgba(0, 0, 0, 0.30);
    --mb-active: rgba(255, 255, 255, 0.22);
  }
}
.menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 24px;
  padding: 0 12px 0 14px;
  border-radius: calc(var(--r-l) - 1px) calc(var(--r-l) - 1px) 0 0;
  background: var(--mb-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--mb-fg);
  font: 400 12px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  white-space: nowrap;
}
/* The app menus wrap inside a one-line box: a menu that does not fit drops out whole, never cut mid-word. */
.mb-left { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; column-gap: 12px; height: 24px; overflow: hidden; }
.mb-left > * { flex: none; display: inline-flex; align-items: center; height: 24px; }
.mb-left b { font-weight: 700; }
.mb-apple { width: 13px; fill: currentColor; }
.mb-right { flex: none; display: flex; align-items: center; gap: 10px; }
/* The status item whose panel is open carries the system highlight. */
.mb-item { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; margin: 0 -3px; border-radius: 5px; background: var(--mb-active); font-variant-numeric: tabular-nums; }
.mb-wifi { width: 16px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
.mb-wifi .dot { fill: currentColor; stroke: none; }
.mb-cc { width: 14px; height: 12px; flex: none; fill: currentColor; }
.mb-cc rect { fill: none; stroke: currentColor; stroke-width: 1.2; }
.mb-clock { font-variant-numeric: tabular-nums; }
.batt { position: relative; flex: none; width: 23px; height: 11px; margin-right: 3px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 3.5px; }
.batt::before { content: ""; position: absolute; inset: 1px; border-radius: 2px; background: currentColor; }
.batt::after { content: ""; position: absolute; left: calc(100% + 2px); top: 50%; width: 1.5px; height: 4px; margin-top: -2px; border-radius: 0 1px 1px 0; background: color-mix(in srgb, currentColor 45%, transparent); }
@media (max-width: 480px) {
  .mb-date { display: none; }
}

/* ---------- Panel: no arrow; a page sets --panel-w and --panel-r to its app's panel ---------- */
.panel {
  width: var(--panel-w, 320px);
  max-width: 100%;
  flex: none;
  padding: var(--panel-pad, 18px 20px);
  border-radius: var(--panel-r, 16px);
  background: var(--m-bg);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 12px 40px rgba(0, 0, 0, 0.30), inset 0 0 0 0.5px rgba(255, 255, 255, 0.25);
}
/* The right margin puts the panel's middle under its status item. */
.screen .panel { align-self: flex-end; margin: 6px clamp(12px, 12%, 72px) 28px 12px; }
@media (max-width: 480px) { .screen .panel { align-self: center; margin: 6px auto 28px; } }
.panel.frag { width: min(var(--panel-w, 320px), 100%); }
