/* MTing Studio — 100% System-Native Multi-OS Engine (macOS Sequoia · Windows 11 · iOS 18 · Android 15) */
:root {
  --ink: #1D1D1F;
  --ink-soft: #3C3C43;
  --muted: #76767B;
  --mac-blue: #0063E1;
  --win-blue: #0067C0;
  --ios-blue: #007AFF;
  --pod-purple: #8E2DE2;
  --pod-purple-soft: rgba(142, 45, 226, 0.12);
  --win-coral: #E04318;
  --notes-gold: #D99B00;
  --notes-sel: #FFE390;
  --wechat: #07C160;
  --m3-primary: #6750A4;
  --m3-surface: #FEF7FF;
  --m3-tonal: #F3EDF7;
  --m3-pill: #E8DEF8;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);
  --lg-alpha: 0.24;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #1C2833;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
html[data-os="windows"] body {
  font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}
html[data-os="android"] body {
  font-family: Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
}
.mono {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

#os-root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#os-wallpaper-bg {
  position: absolute;
  inset: 0;
  background-image: url("./assets/wallpapers/scene-01-lake.webp");
  background-size: cover;
  background-position: center center;
  transition: background-image 0.55s ease, filter 0.35s ease;
  z-index: 0;
  pointer-events: none;
}
#os-solar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  image-rendering: pixelated;
}

/* ============================================================================
   1. MACOS 26 TAHOE / 27 TRANSPARENT MENUBAR & LIQUID GLASS CONTROL CENTER
   ============================================================================ */
#os-menubar {
  height: 30px;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.26) 0%, rgba(10, 14, 22, 0.0) 100%);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 9000;
  flex-shrink: 0;
  font-size: 13px;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.58);
}
html[data-os="windows"] #os-menubar { display: none !important; }

.menubar-left, .menubar-right {
  display: flex;
  align-items: center;
  gap: 3px;
}
.mac-apple-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.mac-active-app {
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  cursor: default;
}
.menu-trigger {
  position: relative;
  padding: 2px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}
.menu-trigger:hover, .menu-trigger.open, .mac-apple-btn:hover, .mac-apple-btn.open {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}
.menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 218px;
  background: rgba(246, 248, 252, 0.76);
  backdrop-filter: url(#liquid-glass-bar) blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border: 0.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), inset 0 1.5px 1px rgba(255, 255, 255, 0.92), inset 0 -1px 1px rgba(255, 255, 255, 0.45);
  padding: 6px;
  z-index: 9500;
  color: var(--ink);
  text-shadow: none;
  font-weight: 400;
}
.menu-trigger.open .menu-dropdown, .mac-apple-btn.open .menu-dropdown { display: block; }
.menu-item {
  padding: 6px 11px;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.menu-item:hover { background: var(--mac-blue); color: #FFFFFF; }
.menu-sep { height: 1px; background: rgba(0, 0, 0, 0.08); margin: 4px 8px; }
.menubar-icon-btn {
  border: none;
  background: transparent;
  color: inherit;
  text-shadow: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.menubar-icon-btn:hover { background: rgba(255, 255, 255, 0.22); }
html[data-os="windows"] .menubar-icon-btn { color: #1B1B1B; text-shadow: none; border-radius: 4px; }
html[data-os="windows"] .menubar-icon-btn:hover { background: rgba(255, 255, 255, 0.60); }

/* Native Control Center (macOS Liquid Glass top-right) & Quick Settings (Win11 bottom-right) */
.os-control-center {
  display: none;
  position: fixed;
  z-index: 9450;
  width: 312px;
  background: rgba(242, 245, 252, 0.62);
  backdrop-filter: url(#liquid-glass-lens) blur(28px) saturate(205%);
  -webkit-backdrop-filter: blur(28px) saturate(205%);
  border: 0.5px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26), inset 0 1.8px 1px rgba(255, 255, 255, 0.92), inset 0 -1.2px 1.5px rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  padding: 13px;
}
.os-control-center.open { display: block; }
html[data-os="macos"] .os-control-center { top: 36px; right: 10px; }
html[data-os="windows"] .os-control-center {
  bottom: 58px;
  right: 12px;
  border-radius: 10px;
  background: rgba(243, 245, 250, 0.95);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}
.cc-card {
  background: rgba(255, 255, 255, 0.66);
  border: 0.5px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), inset 0 1px 0.5px rgba(255, 255, 255, 0.90);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.cc-card:last-child { margin-bottom: 0; }
html[data-os="windows"] .cc-card { border-radius: 7px; }

/* ============================================================================
   2. DESKTOP CANVAS, ICONS & MARQUEE (macOS Right-Aligned · Win11 Left-Aligned)
   ============================================================================ */
#os-desktop {
  position: relative;
  z-index: 5;
  flex: 1;
  width: 100%;
  overflow: hidden;
}
html[data-os="windows"] #os-desktop { margin-bottom: 48px; }

#desktop-icons { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
#desktop-icons.dragging-active { z-index: 8800; }

.desktop-icon {
  position: absolute;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: default;
  pointer-events: auto;
  padding: 5px 4px;
  border-radius: 5px;
  border: 1px solid transparent;
  user-select: none;
  touch-action: none;
}
.desktop-icon img { width: 54px; height: 54px; object-fit: contain; pointer-events: none; }
.desktop-icon span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.82), 0 0 2px rgba(0, 0, 0, 0.65);
  padding: 1px 6px;
  border-radius: 4px;
  text-align: center;
  max-width: 82px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
html[data-os="macos"] .desktop-icon.selected img {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 7px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.34);
}
html[data-os="macos"] .desktop-icon.selected span {
  background: var(--mac-blue);
  color: #FFFFFF;
  text-shadow: none;
}
html[data-os="windows"] .desktop-icon:hover:not(.selected) {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
html[data-os="windows"] .desktop-icon.selected {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.48);
  border-radius: 4px;
}
.desktop-icon.dragging { opacity: 0.86; }

.os-marquee {
  display: none;
  position: absolute;
  z-index: 18;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.18);
}
html[data-os="windows"] .os-marquee {
  border: 1px solid #0078D4;
  background: rgba(0, 120, 212, 0.26);
}
.os-marquee.active { display: block; }

.os-ctx-menu {
  display: none;
  position: fixed;
  z-index: 9950;
  min-width: 208px;
  background: rgba(246, 246, 249, 0.94);
  backdrop-filter: blur(26px);
  border: 0.5px solid rgba(0, 0, 0, 0.20);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  padding: 5px;
}
.os-ctx-menu.open { display: block; }
html[data-os="windows"] .os-ctx-menu .menu-item:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }

/* ============================================================================
   3. MACOS FLOATING DOCK vs WINDOWS 11 TASKBAR & START MENU
   ============================================================================ */
#os-dock { z-index: 8900; }

html[data-os="macos"] #os-dock {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  height: 64px;
  padding: 6px 12px 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.16) 55%, rgba(255, 255, 255, 0.26) 100%);
  backdrop-filter: url(#liquid-glass-lens) blur(20px) saturate(205%) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(205%) brightness(1.06);
  border: 0.5px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.28),
    inset 0 1.8px 1.2px rgba(255, 255, 255, 0.92),
    inset 1px 0 1px rgba(255, 255, 255, 0.45),
    inset 0 -1.2px 1.5px rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mac-dock-item {
  position: relative;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), margin 0.16s ease;
}
.mac-dock-item img { width: 44px; height: 44px; object-fit: contain; pointer-events: none; }
.mac-dock-item:hover { transform: translateY(-9px) scale(1.22); margin: 0 4px; }
.mac-dock-tip {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(246, 246, 249, 0.94);
  backdrop-filter: blur(14px);
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  color: #111;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.mac-dock-item:hover .mac-dock-tip { opacity: 1; }
.mac-dock-dot {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.80);
}
.mac-dock-sep { width: 1px; height: 36px; background: rgba(0, 0, 0, 0.18); margin: 0 3px; }

/* Windows 11 Full-Width Centered Taskbar */
html[data-os="windows"] #os-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: rgba(242, 244, 249, 0.86);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
}
.win-task-center { grid-column: 2; display: flex; align-items: center; gap: 4px; }
.win-task-search {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  margin-right: 4px;
}
.win-task-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.win-task-btn:hover, .win-task-btn.focused { background: rgba(255, 255, 255, 0.68); }
.win-task-btn img { width: 26px; height: 26px; object-fit: contain; }
.win-task-pill {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 3px;
  border-radius: 2px;
  background: #777;
}
.win-task-btn.focused .win-task-pill { width: 16px; background: var(--win-blue); }
.win-task-tray {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #1B1B1B;
}
.win-tray-pill {
  border: none;
  background: transparent;
  padding: 5px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: #1B1B1B;
}
.win-tray-pill:hover, .win-tray-clock:hover { background: rgba(255, 255, 255, 0.60); }
.win-tray-clock { text-align: right; line-height: 1.25; cursor: pointer; padding: 3px 6px; border-radius: 4px; }

/* Windows 11 Start Menu */
.win11-start-menu {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: 560px;
  background: rgba(244, 246, 252, 0.95);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 10px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  padding: 22px 28px 16px;
  z-index: 9400;
}
.win11-start-menu.open { display: block; }
.win-start-search {
  height: 36px;
  background: #FFFFFF;
  border: 1px solid #D6D9E2;
  border-bottom: 2px solid var(--win-blue);
  border-radius: 18px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #666;
  margin-bottom: 18px;
}
.win-start-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 6px;
  margin: 10px 0 16px;
}
.win-start-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11.5px;
  text-align: center;
}
.win-start-item:hover { background: rgba(255, 255, 255, 0.76); }
.win-start-item img { width: 32px; height: 32px; object-fit: contain; }

/* ============================================================================
   4. WINDOW SHELLS, TRAFFIC LIGHTS & WIN11 CAPTIONS
   ============================================================================ */
.os-window {
  position: absolute;
  background: rgba(250, 251, 254, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 0.5px rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 220px;
  overflow: hidden;
  background-clip: padding-box;
  transition: box-shadow 0.15s ease, opacity 0.16s ease, transform 0.16s ease;
}
html { color-scheme: light; }
html[data-appearance="dark"] { color-scheme: dark; }
html[data-appearance="dark"] .os-window {
  background: #141416;
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.58), 0 4px 12px rgba(0, 0, 0, 0.30), inset 0 0.5px 0 rgba(255, 255, 255, 0.10);
}
html[data-os="windows"] .os-window {
  background: #FFFFFF;
  backdrop-filter: none;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
}
html[data-appearance="dark"][data-os="windows"] .os-window {
  background: #1A1A1E;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56), 0 3px 10px rgba(0, 0, 0, 0.28);
}
.os-window.focused { box-shadow: 0 24px 56px rgba(0, 0, 0, 0.30), 0 4px 14px rgba(0, 0, 0, 0.12); }
html[data-appearance="dark"] .os-window.focused {
  box-shadow: 0 28px 66px rgba(0, 0, 0, 0.68), 0 6px 18px rgba(0, 0, 0, 0.38), inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
}
.os-window.minimized { opacity: 0; transform: scale(0.75) translateY(120px); pointer-events: none; }
.os-window.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: calc(100% - 72px) !important;
  border-radius: 8px !important;
}
html[data-os="windows"] .os-window.maximized { height: 100% !important; border-radius: 0 !important; }

.mac-traffic { display: inline-flex; align-items: center; gap: 8px; z-index: 5; flex-shrink: 0; }
.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.14);
  background: #D4D4D8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: transparent;
  line-height: 1;
  padding: 0;
}
.os-window.focused .mac-dot.close { background: #FF5F57; border-color: #E0443E; }
.os-window.focused .mac-dot.min   { background: #FEBC2E; border-color: #D89E24; }
.os-window.focused .mac-dot.max   { background: #28C840; border-color: #1AAB29; }
.mac-traffic:hover .mac-dot { color: rgba(0, 0, 0, 0.65); }

.win-captions { display: inline-flex; align-items: stretch; height: 34px; margin-left: auto; flex-shrink: 0; }
.win-cap-btn {
  width: 44px;
  border: none;
  background: transparent;
  color: #1F1F1F;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.win-cap-btn:hover { background: rgba(0, 0, 0, 0.06); }
html[data-appearance="dark"] .win-cap-btn { color: rgba(255, 255, 255, 0.86); }
html[data-appearance="dark"] .win-cap-btn:hover { background: rgba(255, 255, 255, 0.10); }
.win-cap-btn.dark-theme { color: #E5E7EB; }
.win-cap-btn.dark-theme:hover { background: rgba(255, 255, 255, 0.10); }
.win-cap-btn.close:hover { background: #C42B1C !important; color: #FFFFFF !important; }

.win-body { flex: 1; min-height: 0; border-radius: inherit; overflow: hidden; display: flex; flex-direction: column; user-select: text; }
.win-resize-grip { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; z-index: 40; }

.deck-btn {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.deck-btn:hover { background: #F2F2F5; }
.deck-btn.primary { background: var(--mac-blue); color: #FFFFFF; border-color: var(--mac-blue); }
html[data-os="windows"] .deck-btn.primary { background: var(--win-blue); border-color: var(--win-blue); }
html[data-os="android"] .deck-btn.primary { background: var(--m3-primary); border-color: var(--m3-primary); border-radius: 999px; }

/* ============================================================================
   5. APP 1: PURE FINDER (macOS) · FILE EXPLORER (Win11) · FILES (iOS/Android)
   ============================================================================ */
.mac-finder { display: grid; grid-template-columns: 168px 1fr; height: 100%; min-height: 0; overflow: hidden; background: rgba(252, 252, 254, 0.94); }
.mac-finder-sidebar {
  margin: 7px 0 7px 7px;
  border-radius: 12px;
  background: rgba(238, 241, 248, 0.72);
  backdrop-filter: url(#liquid-glass-bar) blur(24px) saturate(195%);
  -webkit-backdrop-filter: blur(24px) saturate(195%);
  border: 0.5px solid rgba(255, 255, 255, 0.80);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1.2px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(255, 255, 255, 0.48);
  display: flex;
  flex-direction: column;
  padding: 0 8px 10px;
  user-select: none;
}
.mac-sidebar-top { height: 42px; display: flex; align-items: center; padding: 0 6px; flex-shrink: 0; cursor: grab; }
.mac-sidebar-sec { font-size: 11px; font-weight: 600; color: #86868B; padding: 8px 8px 4px; }
.mac-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 13px;
  color: #2C2C2E;
  cursor: pointer;
}
.mac-side-item:hover:not(.active) { background: rgba(0, 0, 0, 0.05); }
.mac-side-item.active {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0.5px #FFFFFF;
  font-weight: 600;
  color: #111;
}
.mac-side-item img { width: 17px; height: 17px; object-fit: contain; }

.mac-finder-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: transparent; }
.mac-finder-toolbar {
  height: 48px;
  background: transparent;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 8px;
  flex-shrink: 0;
  cursor: grab;
}
.mac-nav-btn { width: 28px; height: 26px; border: none; background: rgba(0, 0, 0, 0.04); border-radius: 999px; color: #3C3C43; font-size: 15px; cursor: pointer; }
.mac-nav-btn:disabled { opacity: 0.30; cursor: default; background: transparent; }
.mac-nav-btn:not(:disabled):hover { background: rgba(0, 0, 0, 0.09); }

.finder-view-seg { display: inline-flex; background: rgba(0, 0, 0, 0.055); padding: 2.5px; border-radius: 999px; gap: 1px; flex-shrink: 0; }
.finder-view-seg button {
  border: none;
  background: transparent;
  color: #55555A;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.finder-view-seg button.active { background: #FFFFFF; color: #111; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), inset 0 1px 0.5px #FFF; }
.finder-search { width: 112px; border: 0.5px solid rgba(0, 0, 0, 0.12); background: rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 4px 10px; font-size: 12px; outline: none; flex-shrink: 1; min-width: 76px; }
.finder-search:focus { border-color: var(--mac-blue); }

.mac-pathbar {
  height: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #FAFAFC;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #6E6E73;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
}
.mac-statusbar {
  height: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #F6F6F8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #6E6E73;
  flex-shrink: 0;
}

/* Windows 11 File Explorer */
.win-explorer { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #FFFFFF; }
.win-exp-tabbar { height: 36px; background: #DFE5EE; display: flex; align-items: flex-end; padding-left: 10px; flex-shrink: 0; cursor: grab; }
.win-exp-tab {
  height: 30px;
  background: #F4F6FA;
  border-radius: 7px 7px 0 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #1B1B1B;
}
.win-exp-addrbar { height: 40px; background: #F4F6FA; border-bottom: 1px solid #E3E6EC; display: flex; align-items: center; gap: 8px; padding: 0 10px; flex-shrink: 0; }
.win-addr-box {
  flex: 1;
  height: 28px;
  background: #FFFFFF;
  border: 1px solid #D6D9E0;
  border-radius: 4px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.win-exp-cmdbar { height: 36px; background: #F9FAFC; border-bottom: 1px solid #E5E7EB; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.win-exp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 158px 1fr; overflow: hidden; }
.win-exp-nav { background: #F9FAFC; border-right: 1px solid #E5E7EB; padding: 8px 6px; overflow-y: auto; }
.win-nav-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; font-size: 12.5px; cursor: pointer; color: #222; border-left: 3px solid transparent; }
.win-nav-item:hover { background: rgba(0, 0, 0, 0.04); }
.win-nav-item.active { background: #E5EEF9; font-weight: 600; border-left-color: var(--win-blue); }
.win-nav-item img { width: 17px; height: 17px; }
.win-exp-statusbar { height: 24px; background: #F4F6FA; border-top: 1px solid #E5E7EB; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #555; flex-shrink: 0; }

/* Shared Pure File Views */
.f-content-area { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #FFFFFF; }
.finder-icons {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 14px 10px;
  align-content: start;
}
.ficon-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 4px; border-radius: 6px; cursor: pointer; }
.ficon-well { width: 68px; height: 68px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 4px; }
.ficon-well img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 5px; }
.ficon-card.active .ficon-well { background: #E3E4E8; }
html[data-os="windows"] .ficon-card.active { background: #E5F3FF; outline: 1px solid #99D1FF; }
html[data-os="windows"] .ficon-card.active .ficon-well { background: transparent; }
.ficon-name { font-size: 12px; line-height: 1.3; padding: 1px 6px; border-radius: 4px; max-width: 104px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-os="macos"] .ficon-card.active .ficon-name { background: var(--mac-blue); color: #FFFFFF; }
.ficon-sub { font-size: 10px; color: var(--muted); }

.finder-list-wrap { flex: 1; min-height: 0; overflow-y: auto; }
.finder-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.finder-table th { position: sticky; top: 0; z-index: 2; background: #FFFFFF; border-bottom: 1px solid rgba(0, 0, 0, 0.10); padding: 5px 12px; text-align: left; font-size: 11px; font-weight: 600; color: #6E6E73; }
.finder-table td { padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.finder-table tbody tr { cursor: pointer; }
.finder-table tbody tr:nth-child(even) { background: #F5F6F8; }
html[data-os="macos"] .finder-table tbody tr.active { background: var(--mac-blue); color: #FFFFFF; }
html[data-os="windows"] .finder-table tbody tr.active { background: #CCE8FF; color: #111; }

.finder-columns { flex: 1; min-height: 0; display: grid; grid-template-columns: 204px 1fr; overflow: hidden; }
.fcol-list { border-right: 1px solid rgba(0, 0, 0, 0.10); overflow-y: auto; padding: 4px; }
.fcol-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-radius: 5px; font-size: 12.5px; cursor: pointer; gap: 6px; }
.fcol-row.active { background: var(--mac-blue); color: #FFFFFF; }
html[data-os="windows"] .fcol-row.active { background: #CCE8FF; color: #111; }
.fcol-inspector { overflow-y: auto; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }

/* Authentic Finder Gallery View (Left Preview + Bottom Filmstrip + Right Info Pane!) */
.finder-gallery-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 206px; overflow: hidden; }
.finder-gallery-left { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: #FAFAFC; }
.finder-gallery-preview { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; }
.finder-gallery-inspector {
  border-left: 1px solid rgba(0, 0, 0, 0.09);
  background: #FFFFFF;
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
}
.gallery-strip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  overflow-x: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #F4F4F7;
}
.gstrip-item {
  flex-shrink: 0;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
}
.gstrip-item.active { border: 2px solid var(--mac-blue); background: #F0F6FF; }
html[data-os="windows"] .gstrip-item.active { border-color: var(--win-blue); }
.gstrip-thumb { width: 34px; height: 26px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }

/* Yumi Native Encryption Dialog */
.yumi-lock-wrap { height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; background: #FAFAFC; }
.yumi-auth-sheet {
  width: 100%;
  max-width: 310px;
  background: #FFFFFF;
  border: 0.5px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
html[data-os="windows"] .yumi-auth-sheet { border-radius: 7px; text-align: left; align-items: stretch; }
.yumi-pwd-box { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 6px; }
.yumi-pwd-input {
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 6px;
  outline: none;
}
.yumi-pwd-input:focus { border-color: var(--mac-blue); box-shadow: 0 0 0 3px rgba(0, 99, 225, 0.22); }
html[data-os="windows"] .yumi-pwd-input { border-radius: 4px; border-bottom: 2px solid var(--win-blue); box-shadow: none; }
@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.yumi-pwd-box.shake { animation: lockShake 0.34s ease; }

/* ============================================================================
   6. APP 2: NATIVE GAMES / ARCADE / XBOX GAMING / PLAY GAMES
   ============================================================================ */
.arcade-iframe-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141518;
  padding: 6px;
}
.arcade-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  max-width: 376px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #FAF9F6;
}

/* ============================================================================
   7. APP 3: NATIVE PODCASTS / MEDIA PLAYER (4 OSES)
   ============================================================================ */
.fm-progress-wrap { height: 4px; background: rgba(0, 0, 0, 0.10); border-radius: 999px; cursor: pointer; overflow: hidden; position: relative; }
.fm-progress-fill { height: 100%; background: var(--pod-purple); width: 0%; border-radius: 999px; transition: width 0.1s linear; }
html[data-os="windows"] .fm-progress-fill { background: var(--win-coral); }
html[data-os="android"] .fm-progress-fill { background: var(--m3-primary); }

.pod-ctrl-btn {
  border: none;
  background: transparent;
  color: #3A3A3C;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.pod-ctrl-btn:hover { background: rgba(0, 0, 0, 0.06); }
.pod-chapter-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pod-chapter-chip {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #F6F6F9;
  color: #3C3C43;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}
.pod-chapter-chip b { color: var(--pod-purple); font-weight: 600; }
html[data-os="windows"] .pod-chapter-chip b { color: var(--win-coral); }
html[data-os="android"] .pod-chapter-chip b { color: var(--m3-primary); }
.pod-chapter-chip:hover { background: #ECEAF4; }

.mac-podcasts { display: grid; grid-template-columns: 156px 1fr; height: 100%; min-height: 0; background: rgba(252, 252, 254, 0.94); overflow: hidden; }
.mac-pod-sidebar {
  margin: 7px 0 7px 7px;
  border-radius: 12px;
  background: rgba(242, 240, 249, 0.72);
  backdrop-filter: url(#liquid-glass-bar) blur(24px) saturate(195%);
  -webkit-backdrop-filter: blur(24px) saturate(195%);
  border: 0.5px solid rgba(255, 255, 255, 0.80);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1.2px 1px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  padding: 0 8px 12px;
  user-select: none;
}
.mac-pod-nav { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 8px; font-size: 12.5px; color: #2C2C2E; cursor: pointer; }
.mac-pod-nav svg { color: var(--pod-purple); flex-shrink: 0; }
.mac-pod-nav:hover:not(.active) { background: rgba(0, 0, 0, 0.05); }
.mac-pod-nav.active { background: rgba(255, 255, 255, 0.85); box-shadow: 0 2px 8px rgba(142, 45, 226, 0.10), inset 0 1px 0.5px #FFF; color: #6B1BB8; font-weight: 600; }
.mac-pod-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: transparent; }
.mac-pod-toolbar { height: 52px; background: transparent; border-bottom: 0.5px solid rgba(0, 0, 0, 0.07); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 14px; flex-shrink: 0; cursor: grab; }
.mac-pod-transport { display: inline-flex; align-items: center; gap: 2px; }
.mac-pod-lcd { height: 38px; background: rgba(255, 255, 255, 0.78); border: 0.5px solid rgba(0, 0, 0, 0.09); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0.5px #FFF; border-radius: 999px; display: flex; align-items: center; gap: 8px; padding: 0 10px 3px 6px; min-width: 0; position: relative; overflow: hidden; }
.mac-pod-lcd img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mac-pod-lcd-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, 0.08); cursor: pointer; }
.mac-pod-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 24px; }
.mac-pod-hero { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); margin-bottom: 14px; }
.mac-pod-cover { width: 104px; height: 104px; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 26px rgba(121, 26, 229, 0.22), 0 3px 8px rgba(0, 0, 0, 0.12); }
.mac-pod-pill { border: none; background: var(--pod-purple); color: #FFFFFF; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.mac-pod-pill.secondary { background: #F2F2F7; color: var(--pod-purple); }
.mac-ep-card { padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.mac-ep-card:last-of-type { border-bottom: none; }
.mac-ep-play-pill { border: none; background: var(--pod-purple-soft); color: var(--pod-purple); font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.mac-ep-play-pill.playing { background: var(--pod-purple); color: #FFFFFF; }

.win-mediaplayer { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #F9FAFC; overflow: hidden; }
.win-mp-titlebar { height: 34px; background: #EBEEF5; display: flex; align-items: center; padding-left: 12px; flex-shrink: 0; cursor: grab; }
.win-mp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 136px 1fr; overflow: hidden; }
.win-mp-rail { background: #F0F3F8; border-right: 1px solid #E2E6EE; padding: 10px 6px; display: flex; flex-direction: column; gap: 3px; }
.win-mp-nav { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 5px; font-size: 12.5px; color: #222; cursor: pointer; border-left: 3px solid transparent; }
.win-mp-nav:hover { background: rgba(0, 0, 0, 0.04); }
.win-mp-nav.active { background: #E4E9F2; font-weight: 600; border-left-color: var(--win-coral); }
.win-mp-scroll { overflow-y: auto; padding: 16px 18px 20px; background: #FFFFFF; }
.win-mp-hero { background: linear-gradient(135deg, #FFF3EE 0%, #F4F6FB 100%); border: 1px solid #ECEEF4; border-radius: 8px; padding: 14px 16px; display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.win-mp-btn { border: 1px solid #D4D8E1; background: #FFFFFF; color: #1F1F1F; font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 5px; cursor: pointer; }
.win-mp-btn.accent { background: var(--win-coral); border-color: var(--win-coral); color: #FFFFFF; }
.win-ep-row { border: 1px solid #ECEEF2; border-radius: 6px; padding: 12px 14px; margin-bottom: 8px; background: #FAFBFD; }
.win-ep-row.active { background: #FFF7F4; border-color: rgba(224, 67, 24, 0.35); }
.win-mp-transport { height: 72px; background: #EEF1F7; border-top: 1px solid #DCE0EA; padding: 6px 16px 8px; display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; }
.win-mp-play-fab { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--win-coral); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 10px rgba(224, 67, 24, 0.28); }

.ios-podcasts { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #FFFFFF; position: relative; overflow: hidden; }
.ios-pod-topbar { height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px); border-bottom: 0.5px solid rgba(0, 0, 0, 0.08); flex-shrink: 0; }
.ios-pod-back { border: none; background: transparent; color: var(--pod-purple); font-size: 15px; font-weight: 500; cursor: pointer; }
.ios-pod-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px 88px; }
.ios-mini-player { position: absolute; left: 10px; right: 10px; bottom: 56px; height: 54px; background: rgba(246, 245, 250, 0.94); backdrop-filter: blur(26px); border: 0.5px solid rgba(0, 0, 0, 0.10); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); display: flex; align-items: center; gap: 10px; padding: 0 12px 3px 8px; cursor: pointer; overflow: hidden; z-index: 15; }
.ios-pod-tabbar { height: 50px; background: rgba(249, 249, 251, 0.95); border-top: 0.5px solid rgba(0, 0, 0, 0.12); display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; flex-shrink: 0; z-index: 20; }
.ios-pod-tab { border: none; background: transparent; color: #8E8E93; font-size: 10.5px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.ios-pod-tab.active { color: var(--pod-purple); font-weight: 600; }
.ios-np-full { flex: 1; min-height: 0; overflow-y: auto; background: linear-gradient(180deg, #F4EFFA 0%, #FFFFFF 65%); padding: 14px 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ios-np-art { width: 206px; height: 206px; border-radius: 18px; object-fit: cover; transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s ease; transform: scale(0.88); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16); }
.ios-np-art.playing { transform: scale(1); box-shadow: 0 22px 46px rgba(121, 26, 229, 0.28); }

.and-podcasts { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--m3-surface); overflow: hidden; }
.and-pod-topbar { height: 52px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; background: var(--m3-surface); flex-shrink: 0; }
.and-pod-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.and-pod-hero { background: var(--m3-tonal); border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.and-m3-fab { border: none; background: var(--m3-primary); color: #FFFFFF; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.and-m3-tonal-btn { border: none; background: var(--m3-pill); color: #1D192B; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.and-ep-card { background: #FFFFFF; border: 1px solid #ECE6F0; border-radius: 22px; padding: 14px 16px; }
.and-ep-card.active { border-color: var(--m3-primary); background: #F9F5FF; }
.and-pod-navbar { height: 64px; background: var(--m3-tonal); display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; flex-shrink: 0; }
.and-nav-btn { border: none; background: transparent; color: #49454F; font-size: 11px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.and-nav-pill { width: 52px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.and-nav-btn.active { color: #1D192B; font-weight: 600; }
.and-nav-btn.active .and-nav-pill { background: var(--m3-pill); }

/* ============================================================================
   8. APP 4: NATIVE NOTES (macOS Apple Notes · Win11 Notepad · iOS Notes · Keep)
   ============================================================================ */
.mac-notes-app { display: grid; grid-template-columns: 142px 210px 1fr; height: 100%; min-height: 0; background: #FFFFFF; overflow: hidden; }
.mac-notes-listcol { background: #FBFBFD; border-right: 1px solid rgba(0, 0, 0, 0.09); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mac-note-row { padding: 10px 12px; margin: 3px 6px; border-radius: 7px; cursor: pointer; border-bottom: 0.5px solid rgba(0, 0, 0, 0.06); }
.mac-note-row.active { background: var(--notes-sel); border-bottom-color: transparent; }
.mac-notes-paper { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #FFFFFF; }
.mac-notes-scroll { flex: 1; overflow-y: auto; padding: 16px 26px 28px; line-height: 1.68; }

.win-notepad-app { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #FFFFFF; }
.win-np-tabstrip { height: 36px; background: #DCE3EE; display: flex; align-items: flex-end; padding-left: 10px; gap: 4px; flex-shrink: 0; cursor: grab; overflow-x: auto; }
.win-np-tab { height: 29px; padding: 0 12px; border-radius: 6px 6px 0 0; font-size: 11.5px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #444; background: rgba(255, 255, 255, 0.45); flex-shrink: 0; }
.win-np-tab.active { background: #F8FAFC; color: #111; font-weight: 600; }
.win-np-menubar { height: 28px; background: #F8FAFC; border-bottom: 1px solid #E5E7EB; display: flex; align-items: center; gap: 16px; padding: 0 14px; font-size: 12px; color: #333; flex-shrink: 0; }
.win-np-editor { flex: 1; overflow-y: auto; padding: 20px 26px; font-size: 13.5px; line-height: 1.75; color: #1E1E1E; background: #FFFFFF; }
.win-np-status { height: 24px; background: #F3F5F9; border-top: 1px solid #E5E7EB; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #555; flex-shrink: 0; }

/* ============================================================================
   9. APP 5: NATIVE PHOTOS (Apple Photos · Microsoft Photos · Google Photos)
   ============================================================================ */
.mac-photos-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
  align-content: start;
}
.photo-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
  border: 1px solid rgba(128, 128, 128, 0.14);
}
.photo-tile img { width: 78px; height: 78px; object-fit: contain; }
.photo-tile.active { outline: 2.5px solid var(--mac-blue); }

/* ============================================================================
   10. APP 6: NATIVE VIDEO PLAYER (QuickTime Player · Win11 Films & TV · TV)
   ============================================================================ */
.qt-window { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #101114; color: #F5F5F7; position: relative; overflow: hidden; }
.qt-topbar {
  height: 38px;
  background: rgba(24, 25, 30, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
  cursor: grab;
}
.qt-stage-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 250px; overflow: hidden; }
.qt-inspector {
  background: #18191E;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  padding: 14px 16px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.6;
  color: #D1D5DB;
}
.qt-hud-bar {
  height: 46px;
  background: rgba(30, 32, 38, 0.92);
  border-top: 0.5px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================================
   11. APP 7: FRAMELESS NATIVE WECHAT (Mac · Windows · iOS · Android)
   ============================================================================ */
.wechat-app { display: grid; grid-template-columns: 56px 200px 1fr; height: 100%; min-height: 0; background: #F5F5F5; overflow: hidden; }
.wc-rail { background: #2E2E2E; display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 16px; user-select: none; }
.wc-rail-avatar { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; cursor: pointer; }
.wc-rail-btn { width: 36px; height: 36px; border: none; background: transparent; color: #9A9A9A; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wc-rail-btn.active { color: var(--wechat); }
.wc-list-col { background: #EAE8E7; border-right: 1px solid #D6D6D6; display: flex; flex-direction: column; min-width: 0; }
.wc-search-bar { padding: 12px 10px 10px; border-bottom: 1px solid #DFDDDC; cursor: grab; }
.wc-search-fake { background: #DBD9D8; color: #7F7F7F; font-size: 11.5px; padding: 5px 8px; border-radius: 4px; }
.wc-contact-row { display: flex; align-items: center; gap: 9px; padding: 10px; cursor: pointer; }
.wc-contact-row:hover { background: #DFDDDC; }
.wc-contact-row.active { background: #C9C7C6; }
.wc-contact-row img { width: 38px; height: 38px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.wc-main-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #F5F5F5; }
.wc-head { height: 46px; padding: 0 0 0 16px; border-bottom: 1px solid #E4E4E4; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; cursor: grab; }
.wc-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.wc-msg { display: flex; align-items: flex-start; gap: 9px; max-width: 82%; }
.wc-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.wc-msg-avatar { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; flex-shrink: 0; cursor: pointer; }
.wc-msg-me-avatar { width: 34px; height: 34px; border-radius: 4px; background: #D9D9D9; color: #555; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wc-bubble { background: #FFFFFF; color: #191919; padding: 8px 12px; border-radius: 6px; font-size: 13px; line-height: 1.52; white-space: pre-line; word-break: break-word; }
.wc-msg.me .wc-bubble { background: #95EC69; }
.wc-quick-chips { padding: 6px 12px; border-top: 1px solid #E9E9E9; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.wc-quick-chips::-webkit-scrollbar { display: none; }
.wc-chip { flex-shrink: 0; border: 1px solid #DCDCDC; background: #FFFFFF; color: #444; font-size: 11px; padding: 3px 9px; border-radius: 12px; cursor: pointer; }
.wc-composer { background: #F7F7F7; border-top: 1px solid #E2E2E2; padding: 8px 12px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wc-input { flex: 1; min-width: 0; border: 1px solid #DEDEDE; background: #FFFFFF; border-radius: 5px; padding: 7px 10px; font-size: 13px; outline: none; }
.wc-send-btn { border: none; background: var(--wechat); color: #FFFFFF; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 5px; cursor: pointer; }
.wc-profile-wrap { flex: 1; overflow-y: auto; background: #F5F5F5; padding: 20px; }
.wc-profile-card { max-width: 440px; margin: 0 auto; background: #FFFFFF; border-radius: 10px; padding: 22px; }
.wc-kv-row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F0F0F0; font-size: 12.5px; line-height: 1.5; }
.wc-kv-row:last-of-type { border-bottom: none; }
.wc-kv-label { color: #888; }

/* ============================================================================
   12. APP 8: ABOUT THIS MAC · WIN11 SETTINGS · IOS/ANDROID SETTINGS
   ============================================================================ */
.ios-grouped-page { flex: 1; overflow-y: auto; background: #F2F2F7; padding: 16px; }
.ios-grouped-card { background: #FFFFFF; border-radius: 11px; overflow: hidden; margin-bottom: 16px; }
.ios-grouped-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-bottom: 0.5px solid #E5E5EA; font-size: 14px; }
.ios-grouped-row:last-child { border-bottom: none; }

/* ============================================================================
   13. HIDDEN CREATOR CONSOLE & MOBILE NATIVE LAUNCHERS (IOS 18 · ANDROID 15)
   ============================================================================ */
.sky-popover {
  display: none;
  position: fixed;
  top: 36px;
  right: 12px;
  width: 292px;
  background: rgba(248, 248, 250, 0.96);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  padding: 12px 14px;
  z-index: 9980;
}
.sky-popover.open { display: block; }
.sky-scene-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 5px; }
.sky-chip { border: 1px solid var(--line-strong); border-radius: 5px; background: #FFFFFF; color: var(--ink); font-size: 11px; padding: 4px 7px; cursor: pointer; }
.sky-chip.active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.solar-slider { width: 100%; accent-color: var(--mac-blue); margin: 6px 0 4px; }

#pocket-os, #pocket-sheet { display: none; }

html[data-os="ios"] #os-menubar, html[data-os="ios"] #os-desktop, html[data-os="ios"] #os-dock,
html[data-os="android"] #os-menubar, html[data-os="android"] #os-desktop, html[data-os="android"] #os-dock {
  display: none !important;
}

html[data-os="ios"] #pocket-os,
html[data-os="android"] #pocket-os {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  z-index: 20;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.mob-statusbar {
  height: 44px;
  padding: 8px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.ios-island {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 112px;
  height: 28px;
  border-radius: 16px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #34C759;
  font-size: 10px;
}
.android-punchhole { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: #08080A; }

.ios-widget {
  margin: 12px 18px 0;
  padding: 13px 15px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, calc(var(--lg-alpha) + 0.18)) 0%,
    rgba(255, 255, 255, var(--lg-alpha)) 55%,
    rgba(255, 255, 255, calc(var(--lg-alpha) + 0.10)) 100%
  );
  backdrop-filter: url(#liquid-glass-lens) blur(18px) saturate(210%) brightness(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(210%) brightness(1.06);
  border: 0.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.18),
    inset 0 1.8px 1px rgba(255, 255, 255, 0.92),
    inset 1px 0 1px rgba(255, 255, 255, 0.48),
    inset 0 -1.2px 1.5px rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.36);
}
.ios-widget-orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.90), 0 4px 12px rgba(0, 0, 0, 0.14);
  color: #FFFFFF;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.android-glance { padding: 18px 22px 6px; color: #FFFFFF; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55); }

.mob-grid {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 12px;
  margin: auto 0;
}
.mob-app-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; min-width: 0; transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mob-app-icon:active { transform: scale(0.90); }

/* --- iOS 26 / iOS 27 Refractive Multi-Layer Liquid Glass Squircle Icons --- */
.lg-app-squircle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 15.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--lg-hi, rgba(255,255,255,0.38)) 0%, var(--lg-lo, rgba(255,255,255,0.18)) 100%);
  backdrop-filter: url(#liquid-glass-lens) blur(14px) saturate(215%) brightness(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(215%) brightness(1.08);
  border: 0.5px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1.8px 1px rgba(255, 255, 255, 0.95),
    inset 1.2px 0 1px rgba(255, 255, 255, 0.52),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.16),
    inset 0 -0.6px 1px rgba(255, 255, 255, 0.45);
  overflow: hidden;
}
/* Curved overhead specular glass reflection arc */
.lg-app-squircle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.06) 44%, rgba(255, 255, 255, 0.0) 60%, rgba(255, 255, 255, 0.18) 100%);
  pointer-events: none;
}
/* iOS 26/27 "Clear" Crystal Glass Icon Mode */
html[data-lg-icons="clear"] .lg-app-squircle {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, calc(var(--lg-alpha) + 0.12)) 0%,
    rgba(255, 255, 255, calc(var(--lg-alpha) * 0.48)) 58%,
    rgba(255, 255, 255, calc(var(--lg-alpha) + 0.06)) 100%
  ) !important;
}
.lg-app-squircle img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
html[data-lg-icons="clear"] .lg-app-squircle img {
  filter: saturate(0) brightness(1.35) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.mob-icon-frame { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
html[data-os="android"] .mob-icon-frame { width: 58px; height: 58px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22); }
html[data-os="android"] .mob-icon-frame img { width: 58px; height: 58px; object-fit: cover; }
html[data-os="android"] .mob-icon-frame.scale-bleed img { transform: scale(1.36); }

.mob-app-icon span {
  font-size: 11.5px;
  font-weight: 500;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ios-dock {
  margin: 0 14px 6px;
  padding: 12px 16px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, calc(var(--lg-alpha) + 0.18)) 0%,
    rgba(255, 255, 255, var(--lg-alpha)) 58%,
    rgba(255, 255, 255, calc(var(--lg-alpha) + 0.10)) 100%
  );
  backdrop-filter: blur(28px) saturate(195%) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(195%) brightness(1.05);
  border: 0.5px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.22),
    inset 0 1.8px 1px rgba(255, 255, 255, 0.92),
    inset 0 -1.2px 1.5px rgba(255, 255, 255, 0.42);
  border-radius: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}

/* --- iOS 26 / iOS 27 In-App Floating Liquid Glass Capsules & Split Tab Bar --- */
.ios-lg-page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #F6F7FB;
}
.ios-lg-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 64px 16px 96px;
}
.ios-lg-float-top {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.ios-lg-pill, .ios-lg-orb {
  pointer-events: auto;
  height: 40px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, calc(0.38 + var(--lg-alpha) * 0.85));
  backdrop-filter: url(#liquid-glass-bar) blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.11),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.96),
    inset 0 -1px 1px rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #1D1D1F;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ios-lg-orb { width: 40px; padding: 0; }
.ios-lg-pill { padding: 0 14px; }
.ios-lg-pill.dark, .ios-lg-orb.dark {
  background: rgba(34, 38, 48, calc(0.42 + var(--lg-alpha) * 0.70));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1.2px 1px rgba(255, 255, 255, 0.38);
  color: #FFFFFF;
}
.ios-lg-page .f-content-area { background: transparent; }
.ios-lg-page .finder-icons,
.ios-lg-page .finder-list-wrap,
.ios-lg-page .yumi-lock-wrap,
.ios-lg-page .mac-photos-grid {
  padding-top: 62px !important;
  padding-bottom: 88px !important;
}
.ios-lg-page .finder-gallery-split {
  padding-top: 56px;
  padding-bottom: 78px;
}

.ios-lg-bottom-dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.ios-lg-tabcapsule {
  pointer-events: auto;
  flex: 1;
  height: 56px;
  padding: 4px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.86);
  background: rgba(250, 250, 254, calc(0.38 + var(--lg-alpha) * 0.88));
  backdrop-filter: url(#liquid-glass-bar) blur(24px) saturate(205%);
  -webkit-backdrop-filter: blur(24px) saturate(205%);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.14),
    inset 0 1.8px 1px rgba(255, 255, 255, 0.96),
    inset 0 -1px 1.5px rgba(255, 255, 255, 0.55);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  gap: 3px;
}
.ios-lg-tabcapsule.dark {
  background: rgba(32, 36, 46, calc(0.46 + var(--lg-alpha) * 0.70));
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), inset 0 1.4px 1px rgba(255, 255, 255, 0.32);
}
.ios-lg-tabcapsule.dark .ios-lg-tabbtn { color: rgba(255, 255, 255, 0.72); }
.ios-lg-tabcapsule.dark .ios-lg-tabbtn.active {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}
.ios-lg-tabbtn {
  border: none;
  background: transparent;
  border-radius: 999px;
  color: #55555C;
  font-size: 10.5px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}
.ios-lg-tabbtn.active {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0.5px #FFFFFF;
  color: var(--lg-accent, #007AFF);
  font-weight: 700;
}
.ios-lg-sideorb {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.86);
  background: rgba(250, 250, 254, 0.62);
  backdrop-filter: url(#liquid-glass-bar) blur(24px) saturate(205%);
  -webkit-backdrop-filter: blur(24px) saturate(205%);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.14),
    inset 0 1.8px 1px rgba(255, 255, 255, 0.96),
    inset 0 -1px 1.5px rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lg-accent, #007AFF);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
/* Floating Liquid Glass Mini-Player stacked cleanly above the Floating Capsule Tab Bar */
.ios-lg-miniplayer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 76px;
  height: 52px;
  z-index: 34;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.88);
  background: rgba(250, 248, 255, 0.66);
  backdrop-filter: url(#liquid-glass-bar) blur(24px) saturate(205%);
  -webkit-backdrop-filter: blur(24px) saturate(205%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.13),
    inset 0 1.6px 1px rgba(255, 255, 255, 0.96),
    inset 0 -1px 1px rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 7px;
  cursor: pointer;
  overflow: hidden;
}
.android-search-pill {
  margin: 0 18px 10px;
  height: 46px;
  border-radius: 23px;
  background: rgba(245, 240, 250, 0.94);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #3C3846;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.mob-home-bar { width: 132px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.88); margin: 4px auto 0; }
html[data-os="android"] .mob-home-bar { width: 104px; height: 4px; }

#pocket-sheet {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: #FFFFFF;
  z-index: 9800;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
#pocket-sheet.open { display: flex; }
.mob-sheet-head {
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
  background: #F8F8FA;
  flex-shrink: 0;
}
html[data-os="android"] .mob-sheet-head { background: #FEF7FF; border-bottom: 1px solid #ECE6F0; }
.ios-back-btn { border: none; background: transparent; color: var(--ios-blue); font-size: 15px; font-weight: 500; cursor: pointer; }
.android-back-btn { border: none; background: transparent; color: #1D1B20; font-size: 15.5px; font-weight: 500; cursor: pointer; }
.pocket-sheet-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

html[data-os="ios"] .wechat-app, html[data-os="android"] .wechat-app { grid-template-columns: 1fr; }
html[data-os="ios"] .wc-rail, html[data-os="ios"] .wc-list-col, html[data-os="android"] .wc-rail, html[data-os="android"] .wc-list-col { display: none; }

@media (min-width: 560px) {
  html[data-os="ios"] #pocket-os,
  html[data-os="android"] #pocket-os {
    width: 392px;
    max-width: 392px;
    height: min(844px, calc(100dvh - 36px));
    margin: auto;
    border-radius: 42px;
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.46), 0 0 0 8px #1B1C20, 0 0 0 9.5px rgba(255, 255, 255, 0.24);
    background: rgba(16, 22, 30, 0.26);
    backdrop-filter: blur(8px);
  }
  html[data-os="ios"] #pocket-sheet,
  html[data-os="android"] #pocket-sheet {
    inset: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 392px;
    height: min(844px, calc(100dvh - 36px));
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.46), 0 0 0 8px #1B1C20;
  }
}

/* ============================================================================
   NATIVE FIDELITY LAYER (P0 + P1) — overrides everything above
   ============================================================================ */

/* ---------- P0: system typography & icon baseline ---------- */
.mono { font-family: inherit !important; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.os-ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }
html[data-os="ios"] body, html[data-os="macos"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif; }
html[data-os="windows"] body { font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif; }
html[data-os="android"] body { font-family: "Google Sans Text", "Google Sans", Roboto, "Noto Sans SC", "PingFang SC", sans-serif; }

/* Native push buttons per OS (replaces the generic web "deck-btn") */
html[data-os="macos"] .deck-btn { background: #FFFFFF; border: 0.5px solid rgba(0,0,0,.16); box-shadow: 0 .5px 1.5px rgba(0,0,0,.12); border-radius: 6px; padding: 3px 12px; font-size: 13px; font-weight: 400; color: #1D1D1F; }
html[data-os="macos"] .deck-btn.primary { background: linear-gradient(#3B8DFF, #0A6CFF); border-color: #0A62E6; color: #FFF; box-shadow: 0 .5px 1.5px rgba(0,0,0,.18); }
html[data-os="windows"] .deck-btn { background: #FBFBFB; border: 1px solid rgba(0,0,0,.0578); border-bottom-color: rgba(0,0,0,.1622); border-radius: 4px; padding: 5px 12px; font-size: 13px; font-weight: 400; color: #1B1B1B; }
html[data-os="windows"] .deck-btn:hover { background: #F6F6F6; }
html[data-os="windows"] .deck-btn.primary { background: #005FB8; border-color: #0A5FB3; border-bottom-color: #003E92; color: #FFF; }
html[data-os="ios"] .deck-btn { background: rgba(120,120,128,.12); border: none; border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; color: #007AFF; }
html[data-os="ios"] .deck-btn.primary { background: #007AFF; color: #FFF; }
html[data-os="android"] .deck-btn { background: #E8DEF8; border: none; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 500; color: #1D192B; }
html[data-os="android"] .deck-btn.primary { background: #6750A4; color: #FFF; }

/* macOS traffic lights with real hover glyphs */
.mac-dot { color: transparent !important; }
.mac-dot svg { width: 8px; height: 8px; stroke: rgba(0,0,0,.55); stroke-width: 1.3; stroke-linecap: round; fill: none; opacity: 0; }
.mac-dot svg .fill { fill: rgba(0,0,0,.55); stroke: none; }
.mac-traffic:hover .mac-dot svg { opacity: 1; }
.os-window:not(.focused) .mac-traffic:hover .mac-dot.close { background: #FF5F57; }
.os-window:not(.focused) .mac-traffic:hover .mac-dot.min { background: #FEBC2E; }
.os-window:not(.focused) .mac-traffic:hover .mac-dot.max { background: #28C840; }

/* Windows caption buttons */
.win-cap-btn { width: 46px; color: #1B1B1B; }
.win-cap-btn .os-ic { opacity: .9; }
.win-captions { height: 32px; }

/* ---------- macOS Tahoe toolbar primitives ---------- */
.mac-tb-group { display: inline-flex; align-items: center; height: 30px; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.72); border: 0.5px solid rgba(0,0,0,.08); box-shadow: 0 1px 4px rgba(0,0,0,.06), inset 0 1px .5px #FFF; }
.mac-tb-btn { width: 30px; height: 26px; border: none; background: transparent; border-radius: 999px; color: #3C3C43; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mac-tb-btn:hover:not(:disabled) { background: rgba(0,0,0,.06); }
.mac-tb-btn.active { background: rgba(0,0,0,.09); color: #111; }
.mac-tb-btn:disabled { opacity: .3; cursor: default; }
.mac-tb-title { font-size: 14px; font-weight: 700; color: #1D1D1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-tb-sub { font-size: 11px; color: #86868B; }
.mac-tb-search { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.72); border: 0.5px solid rgba(0,0,0,.08); color: #86868B; box-shadow: inset 0 1px .5px #FFF; }
.mac-tb-search input { border: none; outline: none; background: transparent; font: inherit; font-size: 12.5px; width: 92px; color: #1D1D1F; }
.mac-finder-toolbar { height: 52px; border-bottom: none; }
.mac-side-ic { color: #007AFF; }
.mac-side-ic.pod { color: #A13CF2; }
.mac-side-ic.notes { color: #E5A400; }
.mac-side-item img { display: none; }
.mac-side-item { font-size: 13px; padding: 5px 9px; }
.mac-side-item.active { background: rgba(0,0,0,.075); box-shadow: none; font-weight: 500; }
.mac-side-eject { margin-left: auto; color: #8E8E93; display: inline-flex; }
.mac-side-count { margin-left: auto; font-size: 12px; color: #86868B; font-variant-numeric: tabular-nums; }
.mac-side-search { margin: 0 2px 8px; display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 7px; background: rgba(0,0,0,.05); color: #86868B; }
.mac-side-search input { border: none; outline: none; background: transparent; font: inherit; font-size: 12.5px; width: 100%; }
.mac-pathbar { background: transparent; color: #6E6E73; gap: 4px; }
.mac-pathbar .os-ic { opacity: .5; }
.mac-pathbar b { color: #1D1D1F; font-weight: 500; }
.mac-statusbar { background: transparent; }
.mac-large-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #1D1D1F; margin: 2px 0 14px; }
.mac-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 0; color: #8E8E93; font-size: 14px; }
.mac-empty small { font-size: 12px; }
.mac-seg { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(0,0,0,.06); font-size: 12px; }
.mac-seg span { padding: 3px 12px; border-radius: 999px; color: #3C3C43; }
.mac-seg span.active { background: #FFF; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 500; }
.mac-push-btn { background: #FFF; border: 0.5px solid rgba(0,0,0,.16); box-shadow: 0 .5px 1.5px rgba(0,0,0,.12); border-radius: 6px; padding: 3px 14px; font-size: 13px; cursor: pointer; color: #1D1D1F; }
.menu-key { color: #86868B; font-size: 12px; margin-left: 20px; }
.menu-item:hover .menu-key { color: rgba(255,255,255,.8); }
.menubar-icon-btn svg { display: block; }

/* macOS Notes */
.mac-notes-app { grid-template-columns: 158px 236px 1fr; }
.mac-notes-listhead { height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 10px; flex-shrink: 0; cursor: grab; }
.mac-note-row { margin: 0; padding: 9px 10px; border-radius: 8px; border-bottom: none; }
.mac-note-row + .mac-note-row { margin-top: 1px; }
.mac-note-row.active { background: #FFE58A; }
.mac-note-title { font-size: 13px; font-weight: 600; color: #1D1D1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-note-sub { font-size: 12px; color: #6E6E73; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-note-sub span { color: #1D1D1F; margin-right: 6px; }
.mac-notes-toolbar { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; flex-shrink: 0; cursor: grab; }
.mac-notes-scroll { flex: 1; overflow-y: auto; padding: 4px 34px 30px; }

/* Shared note document (Notes / Notepad / Keep) */
.note-doc-date { text-align: center; font-size: 12px; color: #8E8E93; margin-bottom: 12px; }
.note-doc-title { font-size: 24px; font-weight: 700; line-height: 1.3; color: #1D1D1F; margin-bottom: 10px; letter-spacing: -0.01em; }
.note-doc-p { font-size: 14.5px; line-height: 1.65; color: #1D1D1F; margin-bottom: 10px; }
.note-doc-item { padding: 10px 0 4px; }
.note-doc-kicker { font-size: 12.5px; color: #8E8E93; margin-bottom: 3px; }
.note-doc-h3 { font-size: 17px; font-weight: 600; line-height: 1.4; color: #1D1D1F; margin-bottom: 6px; }
.note-doc-quote { margin: 4px 0 8px; padding: 2px 0 2px 12px; border-left: 3px solid #D9D9DE; color: #48484A; font-size: 14px; line-height: 1.6; }
html[data-os="windows"] .note-doc-date, html[data-os="windows"] .note-doc-title, html[data-os="windows"] .note-doc-p, html[data-os="windows"] .note-doc-h3 { color: #1B1B1B; }
html[data-os="windows"] .note-doc-title { font-size: 22px; font-weight: 600; }
html[data-os="android"] .note-doc-title { font-size: 22px; font-weight: 500; }

/* macOS Photos & seamless photo grids (all OS) */
.ph-grid { display: grid; gap: 2px; grid-template-columns: repeat(5, 1fr); }
.ph-grid.ios { grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 -16px; }
.ph-grid.gp { grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ph-grid.win { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 3px; }
.ph-cell { aspect-ratio: 1; background: #F2F2F4; overflow: hidden; cursor: pointer; position: relative; }
.ph-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cell:hover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.06); }
.mac-photos-scroll { flex: 1; overflow-y: auto; padding: 0 2px 2px; }
.mac-photo-stage, .win-pv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mac-photo-stage img, .win-pv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ph-strip { display: flex; gap: 2px; padding: 6px 10px; overflow-x: auto; justify-content: center; flex-shrink: 0; scrollbar-width: none; }
.ph-strip button { width: 30px; height: 40px; border: none; padding: 0; background: #EEE; cursor: pointer; flex-shrink: 0; border-radius: 2px; overflow: hidden; opacity: .75; }
.ph-strip button.active { width: 44px; opacity: 1; outline: 2px solid #FFF; }
.ph-strip img { width: 100%; height: 100%; object-fit: cover; }

/* macOS QuickTime Player (borderless) */
.qt2 { position: relative; height: 100%; background: #000; color: #FFF; display: flex; flex-direction: column; overflow: hidden; }
.qt2-titlebar { position: absolute; top: 0; left: 0; right: 0; height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: linear-gradient(rgba(0,0,0,.55), transparent); z-index: 4; cursor: grab; }
.qt2-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.88); }
.qt2-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 34px 0 90px; min-height: 0; }
.vid-media { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.qt2-hud { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(440px, calc(100% - 40px)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 14px 30px; border-radius: 14px; background: rgba(40,40,44,.62); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border: 0.5px solid rgba(255,255,255,.14); z-index: 5; }
.qt2-hud button { border: none; background: transparent; color: #FFF; cursor: pointer; display: inline-flex; padding: 4px; border-radius: 6px; opacity: .92; }
.qt2-hud button.on { background: rgba(255,255,255,.16); }
.qt2-hud-mid { display: flex; justify-content: center; align-items: center; gap: 18px; }
.qt2-hud-right { display: flex; gap: 2px; }
.qt2-scrub { position: absolute; left: 14px; right: 14px; bottom: 9px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.qt2-scrub div { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); }
.qt2-inspector { position: absolute; top: 44px; right: 12px; width: 248px; max-height: calc(100% - 150px); overflow-y: auto; padding: 12px 14px; border-radius: 12px; background: rgba(30,30,32,.78); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 0.5px solid rgba(255,255,255,.14); font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.86); z-index: 6; }
.qt2-insp-head { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.vid-info-title { font-size: 15px; font-weight: 600; color: inherit; }
.vid-info-sub { font-size: 12px; opacity: .6; margin: 2px 0 8px; }
.vid-info-focus { opacity: .9; }
.vid-info-toggle { border: none; background: transparent; color: #0A84FF; font: inherit; font-size: 13px; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.vid-info-spoiler { padding: 4px 0 6px; }
.vid-info-spoiler ul { padding-left: 16px; margin: 4px 0; }
.vid-info-link { display: inline-block; margin-top: 6px; color: #0A84FF; text-decoration: none; font-size: 13px; }
.qt2-inspector p, .win-films-info p, .ios-player-sheet p, .and-player-sheet p { margin-bottom: 8px; }

/* macOS About This Mac */
.mac-about { height: 100%; display: flex; flex-direction: column; background: rgba(246,246,248,.9); }
.mac-about-bar { height: 34px; display: flex; align-items: center; padding: 0 12px; cursor: grab; }
.mac-about-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 24px 18px; text-align: center; }
.mac-about-device { margin-bottom: 8px; }
.mac-about-name { font-size: 22px; font-weight: 700; color: #1D1D1F; }
.mac-about-year { font-size: 12px; color: #86868B; margin-bottom: 14px; }
.mac-about-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; font-size: 12px; margin-bottom: 16px; width: 100%; }
.mac-about-specs span:nth-child(odd) { text-align: right; color: #1D1D1F; font-weight: 600; }
.mac-about-specs span:nth-child(even) { text-align: left; color: #6E6E73; }
.mac-about-legal { margin-top: 16px; font-size: 10px; line-height: 1.5; color: #AEAEB2; }

/* macOS Control Center (Tahoe Smoked Liquid Glass — Independent Floating Capsules) */
.menubar-icon-btn.cc-open {
  background: rgba(10, 132, 255, 0.72) !important;
  color: #FFFFFF !important;
}
html[data-os="macos"] .os-control-center {
  width: 326px;
  padding: 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-os="macos"] .os-control-center.open {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mcc-t-pill,
.mcc-t-np,
.mcc-t-orb,
.mcc-t-slider {
  background: rgba(34, 36, 44, 0.74);
  backdrop-filter: blur(34px) saturate(195%);
  -webkit-backdrop-filter: blur(34px) saturate(195%);
  border: 0.5px solid rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 0.6px rgba(255, 255, 255, 0.42), inset 0 -1px 1px rgba(255, 255, 255, 0.10), 0 12px 28px rgba(0, 0, 0, 0.28);
  color: #FFFFFF;
}
.mcc-t-pill.active {
  background: rgba(118, 114, 126, 0.68);
  border-color: rgba(255, 255, 255, 0.48);
}
.mcc-t-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mcc-t-left-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mcc-t-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mcc-t-pill {
  height: 58px;
  border-radius: 999px;
  padding: 0 13px 0 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}
.mcc-t-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mcc-t-ic.white-blue {
  background: #FFFFFF;
  color: #007AFF;
}
.mcc-t-ic.teal {
  background: #FFFFFF;
  color: #1DA1B8;
}
.mcc-t-txt {
  min-width: 0;
  line-height: 1.22;
}
.mcc-t-txt b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcc-t-txt small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcc-t-np {
  height: 126px;
  border-radius: 26px;
  padding: 11px 13px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mcc-t-np-art {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}
.mcc-t-np-meta {
  min-width: 0;
  cursor: pointer;
}
.mcc-t-np-title {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcc-t-np-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcc-t-np-ctrls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 2px;
}
.mcc-t-np-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  padding: 2px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, color 0.15s ease;
}
.mcc-t-np-btn:hover { color: #FFFFFF; }
.mcc-t-np-btn:active { transform: scale(0.88); }
.mcc-t-orbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mcc-t-orb {
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, background 0.16s ease;
}
.mcc-t-orb:hover { background: rgba(64, 66, 78, 0.78); }
.mcc-t-orb:active { transform: scale(0.93); }
.mcc-t-slider {
  border-radius: 22px;
  padding: 10px 15px 12px;
}
.mcc-t-slider b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.mcc-t-slider-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.82);
}
.mcc-t-slider-row input[type="range"] {
  flex: 1;
  accent-color: #FFFFFF;
  cursor: pointer;
}

/* ---------- Windows 11 primitives ---------- */
.win-icon-btn { width: 32px; height: 32px; border: none; background: transparent; border-radius: 4px; color: #1B1B1B; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.win-icon-btn:hover:not(:disabled) { background: rgba(0,0,0,.0373); }
.win-icon-btn:disabled { opacity: .36; cursor: default; }
.win-icon-btn.dark { color: #FFF; }
.win-icon-btn.dark:hover { background: rgba(255,255,255,.08); }
.win-icon-btn.dark.big { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); }
.win-icon-btn.on { background: rgba(255,255,255,.14); }
.win-std-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 4px; background: #FBFBFB; border: 1px solid rgba(0,0,0,.0578); border-bottom-color: rgba(0,0,0,.1622); font: inherit; font-size: 13px; color: #1B1B1B; cursor: pointer; white-space: nowrap; }
.win-std-btn:hover { background: #F6F6F6; }
.win-accent-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 4px; background: #005FB8; border: 1px solid #0A5FB3; color: #FFF; font: inherit; font-size: 13px; cursor: pointer; }
.win-title-text { font-size: 12px; color: #1B1B1B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.win-search-box { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 4px; background: #FFFFFF; border: 1px solid rgba(0,0,0,.06); border-bottom-color: rgba(0,0,0,.45); color: #5D5D5D; min-width: 160px; }
.win-search-box input { flex: 1; border: none; outline: none; background: transparent; font: inherit; font-size: 13px; min-width: 0; }
.win-search-box.small { min-width: 0; margin: 2px 4px 10px; height: 30px; }
.win-search-box.title { margin: 0 auto; width: 300px; height: 30px; background: rgba(255,255,255,.7); }
.win-slider { accent-color: #005FB8; width: 84px; }

/* Explorer */
.win-explorer { background: #FFFFFF; }
.win-exp-tabbar { background: #EEF2F8; height: 40px; align-items: flex-end; gap: 4px; padding-left: 8px; }
.win-exp-tab { height: 34px; background: #F9FAFD; border-radius: 8px 8px 0 0; gap: 8px; padding: 0 10px 0 12px; min-width: 200px; font-weight: 400; }
.win-tab-x { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 4px; color: #5D5D5D; }
.win-tab-x:hover { background: rgba(0,0,0,.06); }
.win-tab-add { align-self: center; width: 30px; height: 30px; border: none; background: transparent; border-radius: 4px; color: #1B1B1B; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.win-tab-add:hover { background: rgba(0,0,0,.05); }
.win-exp-tabbar .win-captions { align-self: flex-start; height: 32px; }
.win-exp-addrbar { height: 46px; background: #F9FAFD; border-bottom: 1px solid #E5E5E5; gap: 4px; padding: 0 8px; }
.win-addr-box { height: 32px; gap: 2px; border-radius: 4px; border-color: rgba(0,0,0,.08); font-size: 13px; padding: 0 8px; }
.win-crumb-sep { display: inline-flex; color: #5D5D5D; margin: 0 2px; }
.win-exp-addrbar .win-search-box { width: 220px; min-width: 150px; }
.win-exp-cmdbar { height: 44px; background: #F9FAFD; border-bottom: 1px solid #E5E5E5; justify-content: flex-start; gap: 2px; padding: 0 8px; }
.win-cmd-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border: none; border-radius: 4px; background: transparent; font: inherit; font-size: 13px; color: #1B1B1B; cursor: pointer; white-space: nowrap; }
.win-cmd-btn.icon { width: 34px; padding: 0; justify-content: center; }
.win-cmd-btn:hover:not(:disabled) { background: rgba(0,0,0,.0373); }
.win-cmd-btn:disabled { opacity: .38; cursor: default; }
.win-cmd-sep { width: 1px; height: 22px; background: #E0E0E0; margin: 0 4px; }
.win-exp-body { grid-template-columns: 188px 1fr; }
.win-exp-nav { background: #FFFFFF; border-right: none; padding: 6px 4px; }
.win-nav-item { border-left: none; border-radius: 4px; padding: 6px 10px; font-size: 13px; gap: 10px; position: relative; color: #1B1B1B; }
.win-nav-item.active { background: rgba(0,0,0,.055); font-weight: 400; }
.win-nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: #005FB8; }
.win-nav-item img { width: 16px; height: 16px; }
.win-nav-pin { margin-left: auto; color: #8A8A8A; opacity: 0; }
.win-nav-item:hover .win-nav-pin { opacity: 1; }
.win-nav-sep { height: 1px; background: #E5E5E5; margin: 6px 8px; }
.win-nav-group { font-size: 12px; color: #5D5D5D; padding: 6px 10px 4px; }
.win-exp-statusbar { height: 28px; background: #FFFFFF; border-top: none; font-size: 12px; color: #1B1B1B; }
.win-status-views { display: inline-flex; gap: 2px; }
.win-status-views button { width: 24px; height: 22px; border: none; border-radius: 3px; background: transparent; color: #1B1B1B; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.win-status-views button.active { background: rgba(0,0,0,.07); }
html[data-os="windows"] .finder-table tbody tr:nth-child(even) { background: transparent; }
html[data-os="windows"] .finder-table th { font-weight: 400; color: #5D5D5D; border-bottom-color: #E5E5E5; font-size: 12px; }
html[data-os="windows"] .finder-table tr.active td { background: #CCE8FF; }
html[data-os="windows"] .ficon-card.active .ficon-well { background: #CCE8FF; }
html[data-os="windows"] .ficon-card.active { background: #CCE8FF; border-radius: 4px; }

/* Windows Media Player */
.win-mediaplayer { background: #F3F3F3; }
.win-mp-titlebar { height: 40px; background: transparent; padding-left: 14px; }
.win-mp-titlebar.dark { background: #1F1F1F; }
.win-mp-titlebar.dark .win-title-text { color: #FFF; }
.win-mp-body { grid-template-columns: 210px 1fr; }
.win-mp-rail { background: transparent; border-right: none; padding: 4px 6px 10px; }
.win-mp-nav { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 4px; font-size: 13px; color: #1B1B1B; cursor: pointer; position: relative; }
.win-mp-nav:hover { background: rgba(0,0,0,.04); }
.win-mp-nav.active { background: rgba(0,0,0,.055); }
.win-mp-nav.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #005FB8; }
.win-mp-scroll { background: #F9F9F9; border-top-left-radius: 8px; border: 1px solid #E5E5E5; border-right: none; border-bottom: none; padding: 20px 26px; overflow-y: auto; }
.wmp-h1 { font-size: 28px; font-weight: 600; color: #1B1B1B; margin-bottom: 16px; }
.wmp-h2 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.wmp-tiles { display: flex; gap: 14px; flex-wrap: wrap; }
.wmp-tile { width: 150px; cursor: pointer; }
.wmp-tile-art { position: relative; width: 150px; height: 150px; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.wmp-tile-art img { width: 100%; height: 100%; object-fit: cover; }
.wmp-tile-play { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: #005FB8; color: #FFF; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.wmp-tile:hover .wmp-tile-play, .wmp-tile.current .wmp-tile-play { opacity: 1; }
.wmp-tile-title { font-size: 13px; margin-top: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wmp-tile-sub { font-size: 12px; color: #5D5D5D; margin-top: 2px; }
.wmp-pivot { display: flex; gap: 22px; font-size: 14px; color: #5D5D5D; margin-bottom: 14px; }
.wmp-pivot span.active { color: #1B1B1B; font-weight: 600; position: relative; }
.wmp-pivot span.active::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -6px; height: 3px; border-radius: 2px; background: #005FB8; }
.wmp-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wmp-tool-dim { font-size: 12px; color: #5D5D5D; }
.wmp-table { font-size: 13px; }
.wmp-tr { display: grid; grid-template-columns: 3fr 1.2fr 1.6fr .6fr .6fr .6fr; gap: 10px; padding: 9px 12px; border-radius: 4px; cursor: pointer; align-items: center; }
.wmp-tr:nth-child(even):not(.head) { background: rgba(0,0,0,.024); }
.wmp-tr:hover:not(.head) { background: rgba(0,0,0,.04); }
.wmp-tr.head { color: #5D5D5D; font-size: 12px; cursor: default; }
.wmp-tr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmp-tr.current { color: #005FB8; }
.wmp-td-title { display: inline-flex; align-items: center; gap: 6px; }
.wmp-queue { display: flex; flex-direction: column; gap: 2px; }
.wmp-q { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 4px; cursor: pointer; }
.wmp-q:hover { background: rgba(0,0,0,.04); }
.wmp-q.current { background: rgba(0,95,184,.08); }
.wmp-q img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.wmp-q-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmp-q.current .wmp-q-title { color: #005FB8; }
.wmp-q-sub, .wmp-q-dur { font-size: 12px; color: #5D5D5D; font-variant-numeric: tabular-nums; }
.wmp-disc { font-size: 12px; color: #5D5D5D; margin-top: 18px; }
.win-mp-transport { height: 92px; background: #F3F3F3; border-top: none; display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: center; gap: 12px; padding: 0 16px; flex-direction: row; }
.wmp-now { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wmp-now img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.wmp-now-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmp-now-sub { font-size: 12px; color: #5D5D5D; }
.wmp-center { display: flex; flex-direction: column; gap: 6px; }
.wmp-btns { display: flex; justify-content: center; align-items: center; gap: 6px; }
.wmp-play { width: 40px; height: 40px; border-radius: 50%; border: none; background: #005FB8; color: #FFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wmp-progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #5D5D5D; font-variant-numeric: tabular-nums; }
.wmp-progress .fm-progress-wrap { flex: 1; height: 4px; background: rgba(0,0,0,.14); }
.wmp-progress .fm-progress-fill, html[data-os="windows"] .fm-progress-fill { background: #005FB8; }
.wmp-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: #1B1B1B; }

/* Windows Films & TV */
.win-films { height: 100%; display: flex; flex-direction: column; background: #000; color: #FFF; }
.win-films-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
.win-films-body.with-info { grid-template-columns: 1fr 280px; }
.win-films-stage { display: flex; align-items: center; justify-content: center; padding: 16px; min-height: 0; }
.win-films-info { background: #202020; padding: 16px 18px; overflow-y: auto; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.86); }
.win-films-info .vid-info-toggle, .win-films-info .vid-info-link { color: #60CDFF; }
.win-films-bar { background: #202020; padding: 8px 14px 10px; }
.win-films-progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.win-films-progress div { flex: 1; height: 4px; background: rgba(255,255,255,.22); border-radius: 2px; }
.win-films-btns { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 6px; }
.win-films-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Windows Photos */
.win-photos .win-exp-nav { background: #F3F3F3; }
.win-photos-main { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 16px 20px; background: #F9F9F9; }
.win-photos-head { display: flex; align-items: center; justify-content: space-between; font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.win-photos-date { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.win-photo-viewer { display: flex; flex-direction: column; min-height: 0; background: #202020; color: #FFF; }
.win-pv-bar { display: flex; align-items: center; gap: 4px; padding: 6px 10px; }
.win-pv-bar .win-icon-btn { color: #FFF; }
.win-pv-name { font-size: 13px; margin-left: 6px; }
.win-photo-viewer .ph-strip button.active { outline-color: #60CDFF; }

/* Windows Settings */
.win-settings { height: 100%; display: flex; flex-direction: column; background: #F3F3F3; }
.win-settings .win-mp-titlebar { padding-left: 6px; }
.ws-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px 1fr; }
.ws-nav { padding: 6px 10px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ws-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px 12px; }
.ws-user img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ws-user b { display: block; font-size: 14px; font-weight: 600; }
.ws-user small { font-size: 12px; color: #5D5D5D; }
.ws-nav .win-search-box { margin-bottom: 8px; }
.ws-nav-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 4px; font-size: 13px; color: #1B1B1B; position: relative; cursor: default; }
.ws-nav-item:hover { background: rgba(0,0,0,.04); }
.ws-nav-item.active { background: rgba(0,0,0,.055); }
.ws-nav-item.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #005FB8; }
.ws-main { overflow-y: auto; padding: 8px 28px 24px 12px; }
.ws-crumb { font-size: 28px; font-weight: 600; margin: 4px 0 18px; display: flex; align-items: center; gap: 6px; }
.ws-crumb span { display: inline-flex; color: #5D5D5D; }
.ws-card { background: #FBFBFB; border: 1px solid #E5E5E5; border-radius: 6px; padding: 12px 16px; margin-bottom: 4px; font-size: 13px; }
.ws-device { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 16px; }
.ws-device img { width: 64px; height: 64px; }
.ws-device b { display: block; font-size: 16px; font-weight: 600; }
.ws-device small { font-size: 12px; color: #5D5D5D; }
.ws-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.ws-card-head b { font-weight: 600; }
.ws-kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 4px 0 4px 26px; }
.ws-kv span:first-child { color: #1B1B1B; }
.ws-kv span:last-child { color: #1B1B1B; }

/* Windows Quick Settings */
html[data-os="windows"] .os-control-center { width: 360px; padding: 16px; background: rgba(243,243,243,.92); border-radius: 8px; }
.wqs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; margin-bottom: 18px; }
.wqs-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #1B1B1B; text-align: center; }
.wqs-toggle { width: 100%; height: 48px; border-radius: 6px; border: 1px solid rgba(0,0,0,.06); background: #FBFBFB; color: #1B1B1B; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wqs-toggle.on { background: #005FB8; border-color: #005FB8; color: #FFF; }
.wqs-slider { display: flex; align-items: center; gap: 12px; margin: 0 2px 14px; color: #1B1B1B; }
.wqs-slider input { flex: 1; width: auto; }
.wqs-media { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.05); margin-bottom: 10px; }
.wqs-media img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.wqs-media-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wqs-media-sub { font-size: 12px; color: #5D5D5D; }
.wqs-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #1B1B1B; border-top: 1px solid rgba(0,0,0,.08); padding-top: 8px; margin: 0 -16px -16px; padding: 8px 16px; background: rgba(0,0,0,.03); border-radius: 0 0 8px 8px; }
.wqs-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* Windows Notepad */
.win-np-tabstrip { background: #EEF2F8; height: 40px; padding-left: 6px; }
.win-np-tab { height: 34px; border-radius: 8px 8px 0 0; padding: 0 8px 0 12px; font-size: 12px; background: transparent; min-width: 150px; gap: 8px; }
.win-np-tab.active { background: #FBFBFB; font-weight: 400; }
.win-np-tabstrip .win-captions { align-self: flex-start; }
.win-np-menubar { height: 36px; background: #FBFBFB; border-bottom: 1px solid #E5E5E5; gap: 4px; padding: 0 6px; font-size: 13px; }
.win-np-menubar > span:not(.win-np-sep):not(.win-np-fmt) { padding: 5px 10px; border-radius: 4px; }
.win-np-menubar > span:hover { background: rgba(0,0,0,.04); }
.win-np-sep { width: 1px; height: 18px; background: #E0E0E0; margin: 0 4px; }
.win-np-fmt { display: inline-flex; padding: 6px; border-radius: 4px; }
.win-np-editor { padding: 20px 28px; }
.win-np-status { height: 26px; background: #FBFBFB; justify-content: flex-start; gap: 0; font-size: 12px; color: #1B1B1B; }
.win-np-status span { padding: 0 12px; border-right: 1px solid #E5E5E5; }
.win-np-status span:last-child { border-right: none; }

/* ---------- Mobile system chrome (status bar / island / home indicator) ---------- */
html[data-os="ios"] { --sys-top: 54px; --sys-bottom: 30px; }
html[data-os="android"] { --sys-top: 40px; --sys-bottom: 22px; }
#pocket-sheet { background: #FFFFFF; }
#pocket-sheet .pocket-sheet-body { position: relative; height: 100%; }
#pocket-sheet .pocket-sheet-body > :not(.ios-lg-page) { padding-top: var(--sys-top); padding-bottom: var(--sys-bottom); box-sizing: border-box; height: 100%; }
.mob-sys-holder { position: absolute; left: 0; right: 0; top: 0; z-index: 70; pointer-events: none; }
.mob-home-top { position: relative; height: var(--sys-top); flex-shrink: 0; }
.mob-sys-bar { position: absolute; left: 0; right: 0; top: 0; height: var(--sys-top); display: flex; align-items: center; justify-content: space-between; z-index: 70; pointer-events: none; }
.mob-sys-bar.dark { color: #000; }
.mob-sys-bar.light { color: #FFF; }
.mob-sys-bar.ios { padding: 4px 26px 0 38px; font-size: 16px; font-weight: 600; }
.mob-sys-bar.android { padding: 0 20px 0 22px; font-size: 14px; font-weight: 500; }
.mob-sys-time { pointer-events: auto; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mob-sys-icons { display: inline-flex; align-items: center; gap: 6px; }
.mob-sys-bar .android-punchhole { top: 13px; }
.ios-island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; pointer-events: auto; transition: width .4s cubic-bezier(.3,1.4,.5,1); display: block; padding: 0; }
.ios-island.live { width: 186px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; cursor: pointer; }
.ios-island img { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; }
.ios-island-wave { display: inline-flex; align-items: center; gap: 2.5px; height: 16px; }
.ios-island-wave i { width: 3px; height: 6px; border-radius: 2px; background: #C77DFF; animation: islandWave 1s ease-in-out infinite; }
.ios-island-wave i:nth-child(2) { animation-delay: .15s; }
.ios-island-wave i:nth-child(3) { animation-delay: .3s; }
.ios-island-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes islandWave { 0%, 100% { height: 5px; } 50% { height: 15px; } }
.mob-home-ind { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 136px; height: 5px; border-radius: 3px; background: #000; z-index: 70; pointer-events: none; }
.mob-home-ind.light { background: #FFF; }
html[data-os="android"] .mob-home-ind { width: 108px; height: 4px; bottom: 9px; opacity: .8; }

/* ---------- iOS 26 Liquid Glass chrome: Clear vs Tinted (Settings › Display & Brightness) ---------- */
html { --lg-chrome-a: .42; --lg-chrome-dark-a: .34; }
html[data-lg-chrome="tinted"] { --lg-chrome-a: .88; --lg-chrome-dark-a: .78; }
.ios-lg-pill, .ios-lg-orb { background: rgba(255,255,255,var(--lg-chrome-a)); color: #1D1D1F; height: 44px; font-size: 15px; font-weight: 500; }
.ios-lg-orb { width: 44px; }
.ios-lg-pill.dark, .ios-lg-orb.dark { background: rgba(40,40,46,var(--lg-chrome-dark-a)); color: #FFF; border-color: rgba(255,255,255,.22); }
.ios-lg-orb.on { background: rgba(255,255,255,.9); color: #000; }
.ios-lg-tabcapsule, .ios-lg-sideorb, .ios-lg-miniplayer, .ios-lg-searchcapsule { background: rgba(250,250,252,var(--lg-chrome-a)); }
.ios-lg-tabcapsule.dark { background: rgba(32,32,38,var(--lg-chrome-dark-a)); }
.ios-lg-float-top { top: calc(var(--sys-top) + 2px); left: 16px; right: 16px; }
.ios-lg-scroll { padding: calc(var(--sys-top) + 54px) 16px calc(var(--sys-bottom) + 92px); }
.ios-lg-scroll.has-mini { padding-bottom: calc(var(--sys-bottom) + 150px); }
.ios-lg-scroll.no-dock { padding-bottom: calc(var(--sys-bottom) + 24px); }
.ios-lg-scroll.edge { padding-left: 16px; padding-right: 16px; }
.ios-lg-bottom-dock { bottom: calc(var(--sys-bottom) - 6px); left: 16px; right: 16px; }
.ios-lg-tabcapsule { height: 62px; padding: 4px; }
.ios-lg-tabbtn { font-size: 10px; font-weight: 600; color: #1D1D1F; gap: 1px; }
.ios-lg-tabbtn.active { background: rgba(0,0,0,.08); box-shadow: none; color: var(--lg-accent, #007AFF); }
.ios-lg-tabbtn > span { white-space: nowrap; }
.ios-lg-tabcapsule.tools { flex: 0 0 auto; grid-auto-columns: 54px; }
.ios-lg-tabcapsule.tools .ios-lg-tabbtn { color: var(--lg-accent, #007AFF); }
.ios-lg-sideorb { width: 62px; height: 62px; color: #1D1D1F; }
.ios-lg-sideorb.active { color: var(--lg-accent, #007AFF); }
.ios-lg-searchcapsule { pointer-events: auto; flex: 1; height: 50px; border-radius: 999px; display: flex; align-items: center; gap: 8px; padding: 0 16px; color: #6E6E73; font-size: 16px; border: 0.5px solid rgba(255,255,255,.86); backdrop-filter: url(#liquid-glass-bar) blur(24px) saturate(205%); -webkit-backdrop-filter: blur(24px) saturate(205%); box-shadow: 0 12px 30px rgba(0,0,0,.12), inset 0 1.8px 1px rgba(255,255,255,.96); }
.ios-lg-searchcapsule span { flex: 1; }
.ios-lg-searchcapsule ~ .ios-lg-sideorb { width: 50px; height: 50px; }
.ios-lg-miniplayer { bottom: calc(var(--sys-bottom) + 64px); height: 56px; left: 16px; right: 16px; padding: 0 8px 0 8px; gap: 10px; }
.ios-lg-miniplayer img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ios-mini-text { flex: 1; min-width: 0; }
.ios-mini-text .fm-ep-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-mini-text .fm-time-readout { font-size: 12px; color: #6E6E73; font-variant-numeric: tabular-nums; }
.ios-mini-btn { border: none; background: transparent; color: #1D1D1F; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* iOS typography & grouped lists */
.ios-lg-page { background: #F2F2F7; color: #000; }
.ios-large-title { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 4px 4px 8px; color: inherit; }
.ios-subtitle { font-size: 15px; color: #8E8E93; margin: -4px 4px 14px; }
.ios-section-head { font-size: 13px; color: #6E6E73; margin: 20px 18px 7px; }
.ios-section-head.big { font-size: 20px; font-weight: 700; color: #000; margin: 22px 4px 8px; }
.ios-section-foot { font-size: 13px; color: #6E6E73; margin: 7px 18px 0; line-height: 1.4; }
.ios-search-field { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 12px; background: rgba(118,118,128,.12); color: #8E8E93; font-size: 17px; margin: 4px 0 14px; }
.ios-search-field input { flex: 1; border: none; outline: none; background: transparent; font: inherit; font-size: 17px; color: #000; min-width: 0; }
.ios-grouped-card { background: #FFFFFF; border-radius: 26px; overflow: hidden; margin-bottom: 18px; padding: 0; }
.ios-grouped-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; font-size: 17px; border-bottom: none; position: relative; color: #000; }
.ios-grouped-row + .ios-grouped-row::before, .ios-note-row + .ios-note-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: .5px; background: rgba(60,60,67,.18); }
.ios-grouped-row.nav { cursor: pointer; }
.ios-grouped-row.nav:active { background: #E5E5EA; }
.ios-row-ic { width: 30px; display: inline-flex; justify-content: center; flex-shrink: 0; }
.ios-row-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-row-value { color: #8E8E93; display: inline-flex; align-items: center; white-space: nowrap; }
.ios-row-chev { color: #C4C4C7; }
.ios-tag-dot { width: 12px; height: 12px; border-radius: 50%; margin: 0 9px; flex-shrink: 0; }
.ios-set-ic { width: 30px; height: 30px; border-radius: 8px; color: #FFF; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ios-settings .ios-grouped-row + .ios-grouped-row::before { left: 58px; }
.ios-account { min-height: 76px; }
.ios-account img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ios-account-name { font-size: 20px; font-weight: 500; }
.ios-account-sub { font-size: 13px; color: #6E6E73; }
.ios-switch { width: 51px; height: 31px; border-radius: 999px; background: #E9E9EA; position: relative; flex-shrink: 0; margin-left: auto; }
.ios-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #FFF; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.ios-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #C7C7CC; display: inline-flex; align-items: center; justify-content: center; color: #FFF; }
.ios-radio.on { background: #007AFF; border-color: #007AFF; }
.ios-appearance { display: flex; justify-content: space-around; padding: 18px 0 14px; }
.ios-appearance-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; }
.ios-phone { width: 72px; height: 148px; border-radius: 14px; border: 3px solid #1C1C1E; background: linear-gradient(160deg, #A8C8FF, #F2C6E8); position: relative; overflow: hidden; }
.ios-phone.dark { background: linear-gradient(160deg, #1D2A4A, #3A1F48); }
.ios-phone::after { content: ""; position: absolute; left: 8px; right: 8px; top: 40px; height: 56px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 14px, transparent 14px 18px); opacity: .7; }
.ios-appearance-opt.on .ios-phone { border-color: #007AFF; }
.ios-lg-opts { display: flex; gap: 12px; padding: 16px; }
.ios-lg-opt { flex: 1; border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; font-size: 15px; cursor: pointer; color: #000; }
.ios-lg-opt-preview { width: 100%; height: 108px; border-radius: 16px; background: url("./assets/wallpapers/scene-01-lake.webp") center/cover; position: relative; overflow: hidden; }
.ios-lg-opt-preview i { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 34px; border-radius: 999px; border: .5px solid rgba(255,255,255,.8); box-shadow: inset 0 1.5px 1px rgba(255,255,255,.9), 0 4px 10px rgba(0,0,0,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ios-lg-opt-preview.clear i { background: rgba(255,255,255,.28); }
.ios-lg-opt-preview.tinted i { background: rgba(250,250,252,.88); }
.ios-lg-opt-preview b { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; border: .5px solid rgba(255,255,255,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ios-lg-opt-preview.clear b { background: rgba(255,255,255,.28); }
.ios-lg-opt-preview.tinted b { background: rgba(250,250,252,.88); }
.ios-lg-opt.on .ios-lg-opt-preview { outline: 2.5px solid #007AFF; outline-offset: 2px; }
.ios-slider { flex: 1; accent-color: #007AFF; }
.mob-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 80px 24px; color: #8E8E93; text-align: center; }
.mob-empty-title { font-size: 20px; font-weight: 600; color: #000; }
.mob-empty-sub { font-size: 15px; }
.ios-sheet-grabber { width: 36px; height: 5px; border-radius: 3px; background: rgba(60,60,67,.3); margin: 0 auto 12px; }

/* Mobile file grid / list */
.mob-file-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; padding: 4px 0; }
.mob-file-cell { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; min-width: 0; }
.mob-file-thumb { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.mob-file-thumb img { max-width: 72px; max-height: 80px; object-fit: contain; }
.mob-file-thumb.cover img { width: 84px; height: 84px; max-width: none; max-height: none; object-fit: cover; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.mob-file-name { font-size: 13px; line-height: 1.25; color: inherit; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.mob-file-sub { font-size: 12px; color: #8E8E93; margin-top: 1px; }
.mob-file-list { background: #FFF; border-radius: 26px; overflow: hidden; }
.mob-file-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; position: relative; }
.mob-file-row + .mob-file-row::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: .5px; background: rgba(60,60,67,.18); }
.mob-file-row img { width: 40px; height: 44px; object-fit: contain; flex-shrink: 0; }
.mob-file-row img.cover { object-fit: cover; border-radius: 6px; height: 40px; }
.mob-file-meta { min-width: 0; flex: 1; }
.mob-file-meta .mob-file-name { -webkit-line-clamp: 1; font-size: 16px; }
.ios-files .ios-lg-scroll .yumi-lock-wrap { background: transparent; padding: 20px 0; height: auto; }

/* iOS Notes */
.ios-note-row { padding: 11px 16px; cursor: pointer; position: relative; }
.ios-note-row + .ios-note-row::before { left: 16px; }
.ios-note-title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-note-sub { font-size: 15px; color: #8E8E93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ios-note-sub span { color: #3C3C43; margin-right: 8px; }
.ios-notes .ios-lg-scroll .note-doc { padding: 0 4px; }

/* Apple Podcasts (iOS + macOS) */
.ap-sec-head { display: flex; align-items: center; gap: 4px; font-size: 22px; font-weight: 700; margin: 22px 4px 10px; letter-spacing: -0.01em; }
html[data-os="macos"] .ap-sec-head { font-size: 17px; margin: 18px 0 10px; }
.ap-hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
html[data-os="macos"] .ap-hscroll { margin: 0; padding: 0 0 4px; }
.ap-upnext { flex: 0 0 280px; height: 196px; border-radius: 16px; padding: 14px; color: #FFF; position: relative; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; background: linear-gradient(160deg, #6A3AA0, #2C1450); }
.ap-upnext.small { flex-basis: 236px; height: 168px; }
.ap-upnext img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.ap-upnext-kicker { font-size: 12px; font-weight: 600; opacity: .7; margin-top: 12px; }
.ap-upnext-title { font-size: 16px; font-weight: 700; line-height: 1.3; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-upnext-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.ap-upnext-play { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 13px; font-weight: 600; }
.ap-show-tile { flex: 0 0 140px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.ap-show-tile img { width: 140px; height: 140px; border-radius: 12px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.ap-show-tile span { font-size: 14px; font-weight: 500; line-height: 1.25; }
.ap-show-tile small { font-size: 13px; color: #8E8E93; }
.ap-show-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ap-show-grid .ap-show-tile img { width: 100%; height: auto; aspect-ratio: 1; }
.ap-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-cat { height: 96px; border-radius: 14px; background: var(--c); color: #FFF; font-size: 17px; font-weight: 700; padding: 12px; }
.ap-ep { padding: 14px 4px 12px; border-top: .5px solid rgba(60,60,67,.18); }
.ap-ep-date { font-size: 12px; font-weight: 600; color: #8E8E93; display: flex; align-items: center; gap: 2px; }
.ap-ep-title { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 3px 0 4px; cursor: pointer; color: #000; }
html[data-os="macos"] .ap-ep-title { font-size: 15px; }
.ap-ep-desc { font-size: 15px; line-height: 1.4; color: #6E6E73; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html[data-os="macos"] .ap-ep-desc { font-size: 13px; }
.ap-ep-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.ap-ep-play { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; border: none; background: rgba(142,45,226,.12); color: #8E2DE2; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ap-ep-play.current { background: #8E2DE2; color: #FFF; }
.ap-ep-bar { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; display: inline-block; }
.ap-ep-bar i { display: block; height: 100%; background: #FFF; border-radius: 2px; }
.ap-ep-more { border: none; background: transparent; color: #8E2DE2; display: inline-flex; padding: 4px; cursor: pointer; }
.ap-show-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 4px; }
.ap-show-hero.compact { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; }
.ap-show-cover { width: 230px; height: 230px; border-radius: 16px; object-fit: cover; box-shadow: 0 16px 34px rgba(80,20,140,.28); }
.ap-show-hero.compact .ap-show-cover { width: 168px; height: 168px; border-radius: 12px; }
.ap-show-info { min-width: 0; }
.ap-show-title { font-size: 24px; font-weight: 700; margin-top: 14px; letter-spacing: -0.01em; }
.ap-show-hero.compact .ap-show-title { margin-top: 0; font-size: 22px; }
.ap-show-host { font-size: 16px; color: #8E2DE2; margin-top: 2px; }
.ap-show-meta { font-size: 13px; color: #8E8E93; margin-top: 4px; }
.ap-show-btns { display: flex; gap: 10px; justify-content: center; margin: 14px 0 8px; }
.ap-show-hero.compact .ap-show-btns { justify-content: flex-start; }
.ap-btn-primary { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 22px; border: none; border-radius: 999px; background: #8E2DE2; color: #FFF; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.ap-btn-glass { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 999px; border: .5px solid rgba(0,0,0,.06); background: rgba(120,120,128,.12); color: #8E2DE2; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
html[data-os="macos"] .ap-btn-primary, html[data-os="macos"] .ap-btn-glass { height: 32px; font-size: 13px; padding: 0 14px; }
.ap-show-desc { font-size: 15px; line-height: 1.45; color: #3C3C43; margin-top: 6px; }
html[data-os="macos"] .ap-show-desc { font-size: 13px; }
.ap-disc { font-size: 12px; color: #8E8E93; margin: 14px 4px 0; }
.ios-podcasts2 { background: #FFFFFF; }

/* Podcast chapters (plain list, no chips) */
.pod-chapters { display: flex; flex-direction: column; margin: 8px 0 2px; }
.pod-chapter { display: flex; align-items: baseline; gap: 10px; text-align: left; border: none; background: transparent; padding: 7px 0; font: inherit; font-size: 14px; color: inherit; cursor: pointer; border-top: .5px solid rgba(60,60,67,.14); }
.pod-chapter:first-child { border-top: none; }
.pod-chapter-time { color: #8E2DE2; font-variant-numeric: tabular-nums; min-width: 38px; font-size: 13px; }
.pod-chapter-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-chapters.np .pod-chapter { color: rgba(255,255,255,.88); border-top-color: rgba(255,255,255,.14); font-size: 15px; }
.pod-chapters.np .pod-chapter-time { color: rgba(255,255,255,.6); }
.pod-chapters.win .pod-chapter-time { color: #005FB8; }
.pod-chapters.win { padding: 0 10px 8px 62px; }
.pod-chapters.m3 .pod-chapter-time { color: #6750A4; }

/* iOS Now Playing (full-screen card) */
.ios-np2 { position: relative; height: 100%; overflow: hidden; color: #FFF; background: #2B1640; }
.ios-np2-bg { position: absolute; inset: -40px; background: var(--np-art) center/cover; filter: blur(60px) saturate(1.6) brightness(.55); transform: scale(1.2); }
.ios-np2-scroll { position: relative; height: 100%; overflow-y: auto; padding: calc(var(--sys-top) + 8px) 28px calc(var(--sys-bottom) + 24px); display: flex; flex-direction: column; }
.ios-np2-grabber { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.5); border: none; margin-bottom: 22px; cursor: pointer; padding: 0; box-shadow: 0 0 0 14px transparent; }
.ios-np2-art { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; box-shadow: 0 22px 50px rgba(0,0,0,.45); transform: scale(.86); transition: transform .45s cubic-bezier(.3,1.3,.5,1); }
.ios-np2-art.playing { transform: scale(1); }
.ios-np2-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.ios-np2-date { font-size: 13px; color: rgba(255,255,255,.6); }
.ios-np2-title { font-size: 20px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ios-np2-show { font-size: 17px; color: rgba(255,255,255,.65); margin-top: 2px; }
.ios-np2-scrub { height: 7px !important; background: rgba(255,255,255,.25) !important; margin-top: 22px; }
.ios-np2-scrub .fm-progress-fill { background: rgba(255,255,255,.85); }
.ios-np2-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 6px; font-variant-numeric: tabular-nums; }
.ios-np2-ctrls { display: flex; align-items: center; justify-content: space-around; margin: 22px 0 18px; }
.ios-np2-ctrls button { border: none; background: transparent; color: #FFF; cursor: pointer; display: inline-flex; padding: 6px; }
.ios-np2-vol { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.6); }
.ios-np2-vol input { flex: 1; accent-color: #FFF; }
.ios-np2-bottom { display: flex; justify-content: space-around; align-items: center; margin-top: 24px; }
.ios-np2-bottom button { border: none; background: transparent; color: rgba(255,255,255,.75); cursor: pointer; display: inline-flex; padding: 6px; font: inherit; }
.ios-np2-rate { font-size: 16px !important; font-weight: 700; border: 1.5px solid rgba(255,255,255,.6) !important; border-radius: 7px !important; padding: 1px 6px !important; }
.ios-np2-sec { font-size: 15px; font-weight: 700; margin: 28px 0 6px; }
.ios-np2-disc { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 18px; }

/* iOS Photos */
.ios-photos2 .ios-lg-float-top { justify-content: space-between; }
.ios-photo-head { padding-top: 6px; }
.ph-albums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ph-album { cursor: pointer; }
.ph-album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #F2F2F7; }
.ph-album b { display: block; font-size: 15px; font-weight: 500; margin-top: 6px; }
.ph-album small { font-size: 14px; color: #8E8E93; }
.ios-photo-viewer { display: flex; flex-direction: column; }
.ios-photo-title { flex-direction: column; gap: 0; line-height: 1.2; height: 44px; padding: 0 18px; }
.ios-photo-title b { font-size: 15px; font-weight: 600; }
.ios-photo-title small { font-size: 12px; color: #6E6E73; }
.ios-photo-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: calc(var(--sys-top) + 56px) 0 0; }
.ios-photo-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ios-photo-viewer .ph-strip { margin-bottom: calc(var(--sys-bottom) + 70px); }

/* iOS system video player */
.ios-player { display: flex; flex-direction: column; color: #FFF; }
.ios-player-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding-top: var(--sys-top); }
.ios-player-ctrl { position: absolute; left: 16px; right: 16px; bottom: calc(var(--sys-bottom) + 6px); padding: 12px 16px 14px; border-radius: 26px; background: rgba(40,40,46,.5); backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%); border: .5px solid rgba(255,255,255,.16); }
.ios-player-scrub { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.ios-player-scrub div { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.ios-player-scrub i { display: block; height: 100%; background: #FFF; }
.ios-player-btns { display: flex; justify-content: center; align-items: center; gap: 44px; margin-top: 8px; }
.ios-player-btns button { border: none; background: transparent; color: #FFF; cursor: pointer; display: inline-flex; }
.ios-player-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: 58%; overflow-y: auto; padding: 10px 20px 28px; border-radius: 34px; background: rgba(28,28,30,.86); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); font-size: 15px; line-height: 1.5; z-index: 40; color: rgba(255,255,255,.88); }
.ios-player-sheet .ios-sheet-grabber { background: rgba(255,255,255,.3); }

/* Game chips (segmented list above the playable iframe) */
.game-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 10px; flex-shrink: 0; scrollbar-width: none; }
.game-chips.ios { padding-top: calc(var(--sys-top) + 54px); }
.game-chip { flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: 999px; border: none; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.game-chip.active { background: #FFF; color: #000; }
.game-chips.and .game-chip { border-radius: 8px; border: 1px solid #49454F; background: transparent; color: #E6E0E9; height: 32px; }
.game-chips.and .game-chip.active { background: #4A4458; border-color: #4A4458; color: #E8DEF8; }
.ios-games .arcade-iframe-wrap, .and-games .arcade-iframe-wrap { margin-bottom: var(--sys-bottom); }

/* iOS Home Screen */
.mob-home-top .mob-sys-bar { position: absolute; }
.ios-home { flex: 1; display: flex; flex-direction: column; padding: 14px 24px 0; min-height: 0; }
.ios-widget2 { height: 158px; border-radius: 24px; padding: 14px; display: flex; gap: 14px; cursor: pointer; color: #FFF; background: linear-gradient(150deg, rgba(110,52,170,.92), rgba(48,18,86,.94)); box-shadow: 0 10px 30px rgba(0,0,0,.22), inset 0 1px .5px rgba(255,255,255,.35); position: relative; overflow: hidden; }
.ios-widget2.dark { background: linear-gradient(150deg, #2A2A2E, #121214); }
.ios-widget2.clear, .ios-widget2.tinted { background: rgba(255,255,255,.18); backdrop-filter: url(#liquid-glass-lens) blur(18px) saturate(200%); -webkit-backdrop-filter: blur(18px) saturate(200%); border: .5px solid rgba(255,255,255,.6); box-shadow: inset 0 1.6px 1px rgba(255,255,255,.85), inset 0 -1px 1px rgba(255,255,255,.35), 0 10px 26px rgba(0,0,0,.18); }
.ios-widget2.tinted { background: hsla(var(--icon-tint-h), 55%, 22%, .45); }
.ios-widget2-art { width: 108px; height: 108px; border-radius: 14px; object-fit: cover; align-self: center; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.ios-widget2-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ios-widget2-kicker { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; opacity: .75; text-transform: uppercase; }
.ios-widget2-title { font-size: 16px; font-weight: 700; line-height: 1.25; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ios-widget2-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; opacity: .9; }
.ios-widget2-play { width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,.25); color: #FFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ios-widget-label { text-align: center; color: #FFF; font-size: 12px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.5); margin: 6px 0 14px; }
.mob-grid.ios { margin: 0; padding: 0; gap: 22px 0; grid-template-columns: repeat(4, 1fr); justify-items: center; }
.mob-app-icon span { font-size: 12px; font-weight: 500; }
.ios-icon { width: 62px; height: 62px; border-radius: 14.8px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.16); transform: translateZ(0); }
.ios-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px .5px rgba(255,255,255,.48), inset 0 -0.8px .5px rgba(0,0,0,.08); }
.ios-icon.default img { width: 100%; height: 100%; flex-shrink: 0; object-fit: cover; display: block; }
.as-ios .as-label img { border-radius: 7px; object-fit: cover; }
.ios-icon.dark { background: linear-gradient(160deg, #2E2E32, #0E0E10); }
.ios-icon.dark img, .ios-icon.clear img, .ios-icon.tinted img { width: 46px; height: 46px; object-fit: contain; position: relative; z-index: 1; }
.ios-icon.clear { background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.1) 60%, rgba(255,255,255,.22)); backdrop-filter: url(#liquid-glass-lens) blur(14px) saturate(200%) brightness(1.08); -webkit-backdrop-filter: blur(14px) saturate(200%) brightness(1.08); border: .5px solid rgba(255,255,255,.7); }
.ios-icon.clear::after { box-shadow: inset 0 1.8px 1px rgba(255,255,255,.95), inset 1.2px 0 1px rgba(255,255,255,.5), inset 0 -1.5px 2px rgba(0,0,0,.14); background: linear-gradient(135deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 45%); }
.ios-icon.clear img { filter: grayscale(1) brightness(1.6) drop-shadow(0 1px 3px rgba(0,0,0,.25)); }
.ios-icon.tinted { background: linear-gradient(160deg, hsla(var(--icon-tint-h), 50%, 26%, .62), hsla(var(--icon-tint-h), 60%, 12%, .72)); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border: .5px solid hsla(var(--icon-tint-h), 70%, 80%, .4); }
.ios-icon.tinted img { filter: grayscale(1) brightness(1.5) sepia(1) hue-rotate(calc((var(--icon-tint-h) - 40) * 1deg)) saturate(3.2) brightness(1.05); }
.ios-home.editing .mob-app-icon, .ios-dock.editing .mob-app-icon, .ios-home.editing .ios-widget2 { animation: iosJiggle .26s ease-in-out infinite alternate; }
.ios-home.editing .mob-app-icon:nth-child(even) { animation-delay: .12s; }
@keyframes iosJiggle { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.ios-edit-bar { position: absolute; top: calc(var(--sys-top) + 4px); left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 30; }
.ios-edit-pill { height: 34px; padding: 0 16px; border-radius: 999px; border: .5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.28); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #FFF; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: inset 0 1px .5px rgba(255,255,255,.7); }
.ios-edit-menu { position: absolute; top: calc(var(--sys-top) + 44px); left: 20px; width: 220px; border-radius: 22px; padding: 6px; background: rgba(248,248,250,.86); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 18px 40px rgba(0,0,0,.25); z-index: 31; }
.ios-edit-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-size: 17px; color: #000; border-radius: 14px; cursor: pointer; }
.ios-edit-item:hover { background: rgba(0,0,0,.05); }
.ios-home-bottom { padding: 0 14px 8px; }
.ios-search-pill { width: 84px; height: 30px; margin: 0 auto 12px; border-radius: 999px; background: rgba(255,255,255,.24); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #FFF; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: inset 0 1px .5px rgba(255,255,255,.5); }
.ios-dock { margin: 0 0 8px; padding: 14px 16px; border-radius: 36px; }
.ios-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.18); z-index: 40; }
.ios-custom-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 10px 16px 26px; border-radius: 36px; background: rgba(250,250,252,.82); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); box-shadow: 0 -8px 40px rgba(0,0,0,.2); z-index: 41; }
.ios-custom-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.ios-custom-opt { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; border-radius: 18px; font: inherit; font-size: 13px; color: #000; cursor: pointer; }
.ios-custom-opt .ios-icon { background-color: #6E7C92; }
.ios-custom-opt .ios-icon.clear, .ios-custom-opt .ios-icon.tinted { background-image: url("./assets/wallpapers/scene-01-lake.webp"); background-size: 300%; background-position: 40% 60%; }
.ios-custom-opt.on { background: rgba(0,0,0,.06); }
.ios-custom-opt.on span { color: #007AFF; font-weight: 600; }
.ios-hue-row { padding: 14px 6px 0; }
.ios-hue-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 28px; border-radius: 999px; background: linear-gradient(90deg, hsl(0,70%,55%), hsl(60,70%,55%), hsl(120,70%,45%), hsl(180,70%,45%), hsl(240,70%,60%), hsl(300,70%,55%), hsl(360,70%,55%)); }
.ios-hue-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #FFF; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* ---------- Android 16 · Material 3 Expressive ---------- */
.m3-app { position: relative; height: 100%; display: flex; flex-direction: column; background: #FEF7FF; color: #1D1B20; overflow: hidden; }
.m3-topbar { height: 64px; display: flex; align-items: center; gap: 4px; padding: 0 4px 0 4px; flex-shrink: 0; }
.m3-topbar.large { height: 56px; }
.m3-topbar.transparent { background: transparent; }
.m3-topbar.dark { color: #E6E0E9; }
.m3-topbar-title { flex: 1; font-size: 22px; font-weight: 400; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.m3-topbar-title.center { text-align: center; font-size: 16px; font-weight: 500; }
.m3-large-title { font-size: 34px; font-weight: 400; padding: 8px 20px 18px; }
.m3-icon-btn { width: 48px; height: 48px; border: none; border-radius: 50%; background: transparent; color: inherit; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; gap: 2px; text-decoration: none; }
.m3-icon-btn span { font-size: 11px; }
.m3-icon-btn:hover { background: rgba(29,27,32,.08); }
.m3-icon-btn.tonal { width: 40px; height: 40px; background: #E8DEF8; color: #1D192B; }
.m3-icon-btn.big { width: 56px; height: 56px; }
.m3-icon-btn.on { background: rgba(255,255,255,.16); }
.m3-avatar { width: 32px; height: 32px; border-radius: 50%; background: #6750A4; color: #FFF; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; margin: 0 10px 0 6px; flex-shrink: 0; }
.m3-searchbar-wrap { padding: 8px 16px; flex-shrink: 0; }
.m3-searchbar { height: 56px; border-radius: 28px; background: #ECE6F0; display: flex; align-items: center; gap: 4px; padding: 0 4px; color: #49454F; }
.m3-searchbar.settings { margin: 0 16px 16px; padding-left: 16px; gap: 12px; }
.m3-searchbar-ph { flex: 1; font-size: 16px; color: #49454F; }
.m3-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 16px; }
.m3-scroll.has-mini { padding-bottom: 84px; }
.m3-section-head { font-size: 14px; font-weight: 500; color: #49454F; margin: 18px 4px 10px; }
.m3-navbar { height: 80px; flex-shrink: 0; background: #F3EDF7; display: flex; align-items: flex-start; justify-content: space-around; padding-top: 12px; }
.m3-nav-item { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: 12px; font-weight: 500; color: #49454F; cursor: pointer; min-width: 64px; }
.m3-nav-pill { width: 64px; height: 32px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.m3-nav-item.active { color: #1D1B20; font-weight: 700; }
.m3-nav-item.active .m3-nav-pill { background: #E8DEF8; color: #1D192B; }
.m3-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m3-cat { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 14px; border-radius: 16px; border: none; background: #F7F2FA; font: inherit; font-size: 15px; font-weight: 500; color: #1D1B20; cursor: pointer; text-align: left; }
.m3-cat-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.m3-list { display: flex; flex-direction: column; gap: 2px; }
.m3-list.grouped { background: #FFFFFF; border-radius: 24px; overflow: hidden; margin-bottom: 14px; gap: 0; }
.m3-list-item { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 10px 16px; cursor: pointer; }
.m3-list-item:hover { background: rgba(29,27,32,.04); }
.m3-list-ic { width: 40px; height: 40px; border-radius: 50%; background: #E8DEF8; display: inline-flex; align-items: center; justify-content: center; color: #4A4458; flex-shrink: 0; }
.m3-list-text { min-width: 0; flex: 1; }
.m3-list-title { font-size: 16px; color: #1D1B20; }
.m3-list-sub { font-size: 14px; color: #49454F; margin-top: 2px; }
.and-set-ic { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #1D1B20; flex-shrink: 0; }
.and-settings .m3-app, .and-settings { background: #F3EDF7; }
.and-about-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 18px; }
.and-about-phone { width: 96px; height: 96px; border-radius: 32px; background: #E8DEF8; display: inline-flex; align-items: center; justify-content: center; color: #4A4458; }
.and-about-name { font-size: 22px; }
.m3-card { background: #FFFFFF; border-radius: 24px; padding: 16px 18px; margin-bottom: 12px; border: 1px solid #E7E0EC; }
.m3-card.tonal { background: #ECE6F0; border: none; }
.m3-card.filled { background: #ECE6F0; border: none; }
.m3-card-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.m3-card-sub { font-size: 14px; color: #49454F; margin-top: 6px; }
.m3-meter { height: 8px; border-radius: 4px; background: #D9D3E0; margin-top: 14px; overflow: hidden; }
.m3-meter div { height: 100%; background: #6750A4; border-radius: 4px; }
.m3-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 22px; border-radius: 20px; border: none; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.m3-btn.filled { background: #6750A4; color: #FFF; }
.m3-btn.tonal { background: #E8DEF8; color: #1D192B; }
.m3-sort-row { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #49454F; margin: 4px 4px 10px; }
.m3-chip-row { display: flex; gap: 8px; overflow-x: auto; margin: 6px 0 12px; scrollbar-width: none; }
.m3-chip-row.center { justify-content: center; }
.m3-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid #79747E; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: #49454F; cursor: pointer; flex-shrink: 0; }
.m3-chip.selected { background: #E8DEF8; border-color: #E8DEF8; color: #1D192B; }
.m3-ep { display: flex; align-items: center; gap: 14px; padding: 10px 4px; }
.m3-ep img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; cursor: pointer; flex-shrink: 0; }
.m3-ep-text { flex: 1; min-width: 0; cursor: pointer; }
.m3-ep-title { font-size: 16px; line-height: 1.3; color: #1D1B20; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m3-ep-title.current { color: #6750A4; font-weight: 500; }
.m3-ep-sub { font-size: 13px; color: #49454F; margin-top: 3px; }
.m3-resume { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.m3-resume img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.m3-linear { height: 4px; border-radius: 2px; background: #D9D3E0; margin-top: 10px; overflow: hidden; }
.m3-linear .fm-progress-fill, .m3-mini-bar .fm-progress-fill { background: #6750A4; }
.m3-fab { width: 56px; height: 56px; border-radius: 16px; border: none; background: #EADDFF; color: #21005D; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.15); flex-shrink: 0; }
.m3-fab.small { width: 48px; height: 48px; border-radius: 14px; box-shadow: none; background: #6750A4; color: #FFF; }
.m3-hscroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.m3-sub-tile { width: 120px; flex-shrink: 0; cursor: pointer; }
.m3-sub-tile img { width: 120px; height: 120px; border-radius: 20px; object-fit: cover; }
.m3-sub-tile span { display: block; font-size: 14px; margin-top: 6px; line-height: 1.3; }
.m3-show { text-align: center; padding: 8px 0 6px; }
.m3-show img { width: 200px; height: 200px; border-radius: 28px; object-fit: cover; }
.m3-show-title { font-size: 24px; margin-top: 14px; }
.m3-show-host { font-size: 14px; color: #6750A4; margin-top: 2px; }
.m3-show-desc { font-size: 14px; color: #49454F; line-height: 1.5; padding: 0 8px; }
.m3-disc { font-size: 12px; color: #79747E; margin-top: 12px; }
.m3-miniplayer { position: absolute; left: 8px; right: 8px; bottom: calc(80px + var(--sys-bottom) + 8px); height: 64px; border-radius: 16px; background: #E6E0E9; display: flex; align-items: center; gap: 12px; padding: 0 6px 0 8px; cursor: pointer; overflow: hidden; }
.m3-miniplayer img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.m3-mini-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m3-mini-sub { font-size: 12px; color: #49454F; }
.m3-mini-bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(103,80,164,.2); overflow: hidden; }
.m3-np { position: relative; height: 100%; display: flex; flex-direction: column; background: linear-gradient(180deg, #E9DDFF, #FEF7FF 60%); color: #1D1B20; }
.m3-np-art { width: 100%; aspect-ratio: 1; border-radius: 32px; object-fit: cover; margin-top: 8px; }
.m3-np-title { font-size: 22px; line-height: 1.3; margin-top: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m3-np-show { font-size: 15px; color: #6750A4; margin-top: 4px; }
.m3-slider { height: 16px !important; border-radius: 8px !important; background: #E8DEF8 !important; margin-top: 20px; overflow: hidden; cursor: pointer; }
.m3-slider .fm-progress-fill { background: #6750A4; border-radius: 8px; }
.m3-slider.dark { background: rgba(255,255,255,.22) !important; height: 6px !important; margin-top: 0; }
.m3-slider.dark .fm-progress-fill { background: #D0BCFF; }
.m3-np-times { display: flex; justify-content: space-between; font-size: 12px; color: #49454F; margin-top: 6px; font-variant-numeric: tabular-nums; }
.m3-np-ctrls { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 18px 0 14px; }
.m3-np-play { width: 96px; height: 80px; border-radius: 28px; border: none; background: #6750A4; color: #FFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.m3-np-play.dark { width: 72px; height: 72px; border-radius: 24px; background: #D0BCFF; color: #381E72; }
.keep { background: #FFFFFF; }
.keep .m3-searchbar { background: #F1F3F4; }
.keep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.keep-col { display: flex; flex-direction: column; gap: 10px; }
.keep-card { border: 1px solid #E0E0E0; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #FFF; }
.keep-card-title { font-size: 15px; font-weight: 500; line-height: 1.35; margin-bottom: 6px; }
.keep-card-body { font-size: 13.5px; line-height: 1.45; color: #3C4043; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.keep-bottombar { height: 72px; flex-shrink: 0; background: #F1F3F4; display: flex; align-items: center; padding: 0 8px; gap: 2px; position: relative; }
.keep-fab { position: absolute; right: 16px; top: -28px; background: #FFFFFF; color: #1A73E8; box-shadow: 0 2px 6px rgba(0,0,0,.25); border-radius: 16px; }
.keep-detail { padding: 8px 20px 20px; }
.keep-editbar { height: 52px; flex-shrink: 0; display: flex; align-items: center; padding: 0 4px; border-top: 1px solid #F1F3F4; }
.keep-edited { flex: 1; text-align: center; font-size: 12px; color: #5F6368; }
.gphotos { background: #FFFFFF; }
.gp-logo { flex: 1; font-size: 21px; padding-left: 6px; letter-spacing: -0.01em; }
.gp-logo b { font-weight: 500; }
.gp-logo span { color: #5F6368; font-weight: 400; }
.gp-date { font-size: 15px; font-weight: 500; margin: 6px 4px 10px; }
.gphotos .m3-scroll { padding-left: 0; padding-right: 0; }
.gphotos .gp-date, .gphotos .m3-section-head { padding: 0 16px; }
.gp-albums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.gp-album { cursor: pointer; }
.gp-album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #F1F3F4; }
.gp-album b { display: block; font-size: 15px; font-weight: 500; margin-top: 6px; }
.gp-album small { font-size: 13px; color: #5F6368; }
.gp-album-head { display: flex; align-items: center; gap: 4px; font-size: 18px; padding: 0 8px; }
.gp-viewer { background: #000; color: #FFF; }
.gp-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.gp-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gp-viewer-bar { display: flex; justify-content: space-around; padding: 6px 0 4px; }
.gp-viewer-bar .m3-icon-btn { width: 72px; height: 60px; border-radius: 16px; color: #E8EAED; }
.and-player { background: #000; color: #FFF; }
.and-player-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.and-player-ctrl { padding: 0 20px 14px; }
.and-player-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.7); margin-top: 6px; font-variant-numeric: tabular-nums; }
.and-player-btns { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 8px; color: #FFF; }
.and-player-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 56%; overflow-y: auto; padding: 18px 22px calc(var(--sys-bottom) + 16px); border-radius: 28px 28px 0 0; background: #2B2930; color: #E6E0E9; font-size: 14px; line-height: 1.55; z-index: 20; }
.and-player-sheet .vid-info-toggle, .and-player-sheet .vid-info-link { color: #D0BCFF; }
.and-games { background: #141218; color: #E6E0E9; }

/* Android Home (Pixel Launcher) */
.android-glance { padding: 26px 26px 0; color: #FFF; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.android-glance-date { font-size: 22px; font-weight: 400; }
.android-glance-wx { display: flex; align-items: center; gap: 6px; font-size: 16px; margin-top: 4px; }
.mob-grid.android { margin: auto 0 0; padding: 0 18px 14px; gap: 20px 0; justify-items: center; }
.android-home-bottom { padding: 0 16px 6px; }
.android-dock { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; margin-bottom: 14px; }
.android-gsearch { height: 56px; border-radius: 28px; background: rgba(255,255,255,.92); display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; box-shadow: 0 2px 10px rgba(0,0,0,.18); margin-bottom: 12px; }
.g-logo { font-size: 22px; font-weight: 700; background: conic-gradient(from -45deg, #EA4335 0 25%, #4285F4 0 50%, #34A853 0 75%, #FBBC04 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.android-gsearch-ph { flex: 1; font-size: 16px; color: #5F6368; }
.android-gsearch-ic { color: #4285F4; display: inline-flex; }
.android-gsearch-ic.lens i { width: 20px; height: 20px; border-radius: 6px; border: 2.5px solid #EA4335; border-right-color: #FBBC04; border-bottom-color: #34A853; position: relative; display: block; }
.android-gsearch-ic.lens i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #4285F4; }

/* ---------- WeChat (mobile & desktop 4.x) ---------- */
.wcm { height: 100%; display: flex; flex-direction: column; background: #EDEDED; color: #191919; }
.wcm.gray { background: #EDEDED; }
.wcm-nav { height: 44px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; flex-shrink: 0; background: #EDEDED; }
.wcm-nav-btn { border: none; background: transparent; color: #191919; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wcm-nav-title { text-align: center; font-size: 17px; font-weight: 500; display: flex; flex-direction: column; line-height: 1.15; }
.wcm-nav-title small { font-size: 11px; color: #7F7F7F; font-weight: 400; }
.wcm-scroll { flex: 1; overflow-y: auto; }
.wcm-search { margin: 6px 10px 8px; height: 36px; border-radius: 6px; background: #FFF; display: flex; align-items: center; justify-content: center; gap: 6px; color: #B2B2B2; font-size: 15px; }
.wcm-chatrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #FFF; cursor: pointer; position: relative; }
.wcm-chatrow + .wcm-chatrow::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; height: .5px; background: #E5E5E5; }
.wcm-chatrow img, .wcm-sysavatar { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.wcm-sysavatar { display: inline-flex; align-items: center; justify-content: center; color: #FFF; }
.wcm-sysavatar.small { width: 38px; height: 38px; border-radius: 5px; }
.wcm-chatrow-main { flex: 1; min-width: 0; }
.wcm-chatrow-top { display: flex; justify-content: space-between; align-items: baseline; }
.wcm-chatrow-top b { font-size: 17px; font-weight: 400; color: #191919; }
.wcm-chatrow-top span { font-size: 12px; color: #B2B2B2; }
.wcm-chatrow-msg { font-size: 14px; color: #B2B2B2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.wcm-tabbar { height: 56px; flex-shrink: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #F7F7F7; border-top: .5px solid #E0E0E0; }
.wcm-tabbar button { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 10px; color: #191919; cursor: pointer; }
.wcm-tabbar button.active { color: #07C160; }
.wcm-composer { display: flex; align-items: center; gap: 8px; padding: 8px 8px; background: #F7F7F7; border-top: .5px solid #E0E0E0; flex-shrink: 0; }
.wcm-ic { border: none; background: transparent; color: #191919; display: inline-flex; padding: 2px; cursor: pointer; flex-shrink: 0; }
.wcm-composer .wc-input { flex: 1; height: 40px; border: none; outline: none; border-radius: 6px; background: #FFF; padding: 0 10px; font: inherit; font-size: 16px; min-width: 0; }
.wcm-send { display: none; height: 34px; padding: 0 14px; border: none; border-radius: 5px; background: #07C160; color: #FFF; font: inherit; font-size: 15px; cursor: pointer; flex-shrink: 0; }
.wcm-composer.has-text .wcm-send { display: inline-flex; align-items: center; }
.wcm-composer.has-text .wcm-plus { display: none; }
.wcm .wc-messages { background: #EDEDED; padding: 12px; }
.wc-time-chip { align-self: center; font-size: 12px; color: #B2B2B2; margin: 2px 0 4px; }
.wc-typing { font-size: 12px; color: #B2B2B2; padding-left: 52px; }
.wc-msg { max-width: 86%; }
.wc-msg.me { flex-direction: row; align-self: flex-end; }
.wc-msg-avatar, .wc-msg-me-avatar { width: 40px; height: 40px; border-radius: 5px; }
.wc-bubble { font-size: 15px; line-height: 1.5; padding: 9px 12px; border-radius: 5px; position: relative; }
html[data-os="macos"] .wc-bubble, html[data-os="windows"] .wc-bubble { font-size: 13.5px; }
.wc-msg:not(.me) .wc-bubble::before { content: ""; position: absolute; left: -5px; top: 13px; border: 5px solid transparent; border-left: none; border-right-color: #FFF; }
.wc-msg.me .wc-bubble::after { content: ""; position: absolute; right: -5px; top: 13px; border: 5px solid transparent; border-right: none; border-left-color: #95EC69; }
.wc-profile { padding-bottom: 20px; }
.wc-profile-top { display: flex; align-items: center; gap: 16px; padding: 24px 20px; background: #FFF; margin-bottom: 8px; }
.wc-profile-top img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.wc-profile-name { font-size: 20px; font-weight: 600; }
.wc-profile-line { font-size: 14px; color: #7F7F7F; margin-top: 4px; }
.wc-cell-group { background: #FFF; margin-bottom: 8px; }
.wc-cell { display: flex; gap: 16px; padding: 14px 20px; font-size: 15px; line-height: 1.45; position: relative; }
.wc-cell + .wc-cell::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: .5px; background: #E5E5E5; }
.wc-cell-k { color: #191919; width: 72px; flex-shrink: 0; }
.wc-cell > span:last-child:not(.wc-cell-k) { color: #7F7F7F; }
.wc-cell.action { justify-content: center; align-items: center; gap: 6px; color: #576B95; cursor: pointer; font-weight: 500; }
.wc-cell.action span { color: #576B95 !important; }
.wc-cell.danger { justify-content: center; color: #FA5151; cursor: pointer; }
/* Desktop WeChat 4.x */
.wc4 { grid-template-columns: 60px 240px 1fr; background: #F5F5F5; }
.wc4 .wc-rail { background: #EDEDED; border-right: 1px solid #E2E2E2; gap: 10px; padding-top: 14px; }
.wc-rail-traffic { margin-bottom: 8px; }
.wc-rail-traffic .mac-traffic { gap: 6px; flex-direction: row; transform: scale(.92); }
.wc4 .wc-rail-btn { width: 40px; height: 40px; color: #6B6B6B; border-radius: 8px; }
.wc4 .wc-rail-btn:hover { background: rgba(0,0,0,.05); }
.wc4 .wc-rail-btn.active { color: #07C160; }
.wc4 .wc-list-col { background: #F7F7F7; border-right: 1px solid #E5E5E5; }
.wc4 .wc-search-bar { display: flex; gap: 8px; align-items: center; padding: 14px 12px 12px; border-bottom: none; }
.wc4 .wc-search-fake { flex: 1; display: flex; align-items: center; gap: 5px; height: 28px; background: #EAEAEA; border-radius: 6px; font-size: 12.5px; color: #8C8C8C; padding: 0 8px; }
.wc-add-btn { width: 28px; height: 28px; border: none; border-radius: 6px; background: #EAEAEA; color: #555; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wc4 .wc-contact-row { padding: 12px; gap: 10px; }
.wc4 .wc-contact-row:hover { background: #EDEDED; }
.wc4 .wc-contact-row.active { background: #DEDEDE; }
.wc4 .wc-contact-row img { width: 40px; height: 40px; border-radius: 5px; }
.wc-row-top { display: flex; justify-content: space-between; align-items: baseline; }
.wc-row-top b { font-size: 13.5px; font-weight: 400; color: #191919; }
.wc-row-top span { font-size: 11px; color: #A3A3A3; }
.wc-row-msg { font-size: 12px; color: #A3A3A3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.wc4 .wc-head { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 20px; border-bottom: 1px solid #E5E5E5; flex-shrink: 0; cursor: grab; }
.wc-head-name { font-size: 15px; font-weight: 500; color: #191919; }
.wc-head-right { display: flex; align-items: center; align-self: stretch; }
.wc-head-btn { width: 36px; height: 36px; border: none; background: transparent; color: #555; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0 12px; }
.wc-head-btn:hover { background: rgba(0,0,0,.05); }
.wc-head-right .win-captions { align-self: flex-start; }
.wc-composer2 { height: 150px; flex-shrink: 0; border-top: 1px solid #E5E5E5; display: flex; flex-direction: column; padding: 6px 16px 10px; background: #F5F5F5; }
.wc-tools { display: flex; align-items: center; gap: 4px; }
.wc-tools button { width: 32px; height: 30px; border: none; background: transparent; color: #4C4C4C; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wc-tools button:hover { background: rgba(0,0,0,.05); }
.wc-composer2 .wc-input { flex: 1; border: none; outline: none; resize: none; background: transparent; font: inherit; font-size: 14px; margin-top: 4px; }
.wc-send-row { display: flex; justify-content: flex-end; }
.wc-send2 { height: 30px; padding: 0 22px; border: none; border-radius: 4px; background: #E9E9E9; color: #07C160; font: inherit; font-size: 13px; cursor: pointer; }
.wc-send2:hover { background: #D2D2D2; }
.wc-profile-wrap2 { flex: 1; overflow-y: auto; background: #F5F5F5; }
.wc-profile-wrap2 .wc-profile { max-width: 440px; margin: 20px auto; }

/* Misc shared */
.cc-play { border: none; background: transparent; cursor: pointer; display: inline-flex; color: inherit; }
.fm-progress-wrap { background: rgba(0,0,0,.1); }
.mac-pod-toolbar { grid-template-columns: auto minmax(0, 1fr) auto; }
.mac-pod-lcd { min-width: 0; }
.mac-lcd-title { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-lcd-sub { font-size: 11px; color: #6E6E73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.mac-lcd-rate { border: none; background: transparent; color: #8E2DE2; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.mac-pod-vol { display: flex; align-items: center; gap: 6px; color: #6E6E73; }
.mac-pod-vol input { width: 70px; accent-color: #8E2DE2; }
.ios-home.editing { padding-top: 52px; }
.wmp-now > div { min-width: 0; }
.ap-upnext.small { height: 188px; }
.ios-lg-tabbtn > span:only-child { font-size: 14px; font-weight: 600; }

/* ---- Blind-audit fix pass ---- */
/* Real blur on all Liquid Glass chrome (Chromium ignores url() inside backdrop-filter) */
.ios-lg-pill, .ios-lg-orb, .ios-lg-tabcapsule, .ios-lg-sideorb, .ios-lg-miniplayer, .ios-lg-searchcapsule {
  backdrop-filter: blur(22px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(190%) !important;
}
.ios-icon.clear, .ios-widget2.clear, .ios-widget2.tinted, .ios-dock { backdrop-filter: blur(16px) saturate(200%); -webkit-backdrop-filter: blur(16px) saturate(200%); }
/* iOS 26 scroll-edge effect: content softly blurs/fades under floating bars */
.ios-lg-page:not(.ios-player):not(.ios-games)::before,
.ios-lg-page:not(.ios-player):not(.ios-games)::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 30; pointer-events: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ios-lg-page:not(.ios-player):not(.ios-games)::before {
  top: 0; height: calc(var(--sys-top) + 52px);
  background: linear-gradient(to bottom, rgba(255,255,255,.88), rgba(255,255,255,0));
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.ios-lg-page:not(.ios-player):not(.ios-games)::after {
  bottom: 0; height: calc(var(--sys-bottom) + 96px);
  background: linear-gradient(to top, rgba(255,255,255,.9), rgba(255,255,255,0));
  -webkit-mask-image: linear-gradient(to top, #000 50%, transparent); mask-image: linear-gradient(to top, #000 50%, transparent);
}
.ios-podcasts2::after { height: calc(var(--sys-bottom) + 160px) !important; }
.ios-lg-page.ios-settings::after { height: calc(var(--sys-bottom) + 20px); }
.ios-lg-float-top, .ios-lg-bottom-dock, .ios-lg-miniplayer { z-index: 36; }
/* Now Playing: stop flex children from collapsing */
.ios-np2-scroll > * { flex-shrink: 0; }
.ios-np2-scrub { background: rgba(255,255,255,.32) !important; border-radius: 4px; }
.ios-np2-grabber { min-height: 5px; }
/* Single video frame from the 3-frame contact sheet */
.vid-frame { width: 100%; overflow: hidden; border-radius: 4px; background: #000; }
.vid-frame img { width: 300%; display: block; max-width: none; }
.qt2-stage .vid-frame, .win-films-stage .vid-frame { width: min(100%, 560px); }
/* Finder/Explorer filenames wrap to two lines like the real thing */
.ficon-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; max-width: 112px; }
/* Notepad tabs shrink instead of overflowing into caption buttons */
.win-np-tab { min-width: 0; flex: 0 1 160px; overflow: hidden; }
.win-np-tab > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Windows Start: recommended list */
.win-start-rec { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.win-start-rec > div { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; }
.win-start-rec > div:hover { background: rgba(255,255,255,.7); }
.win-start-rec b { display: block; font-size: 12px; font-weight: 400; color: #1B1B1B; }
.win-start-rec small { font-size: 11px; color: #5D5D5D; }
/* Home indicator is the home gesture */
button.mob-home-ind { border: none; padding: 0; cursor: pointer; pointer-events: auto; }
button.mob-home-ind::before { content: ""; position: absolute; left: -40px; right: -40px; top: -14px; bottom: -8px; }
/* Customize sheet: size + appearance row, saturation slider */
.ios-custom-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 6px; }
.ios-custom-seg { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(118,118,128,.14); font-size: 14px; }
.ios-custom-seg span { padding: 5px 18px; border-radius: 999px; color: #3C3C43; }
.ios-custom-seg span.on { background: #FFF; color: #000; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.ios-custom-mode { width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(118,118,128,.14); color: #000; display: inline-flex; align-items: center; justify-content: center; }
.ios-sat-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 28px; border-radius: 999px; background: linear-gradient(90deg, hsl(var(--icon-tint-h), 0%, 55%), hsl(var(--icon-tint-h), 85%, 55%)); }
.ios-sat-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #FFF; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ios-icon.tinted img { filter: grayscale(1) brightness(1.5) sepia(1) hue-rotate(calc((var(--icon-tint-h) - 40) * 1deg)) saturate(calc(3.2 * var(--icon-tint-s, 1))) brightness(1.05); }
.ios-icon.tinted { background: linear-gradient(160deg, hsla(var(--icon-tint-h), calc(50% * var(--icon-tint-s, 1)), 26%, .62), hsla(var(--icon-tint-h), calc(60% * var(--icon-tint-s, 1)), 12%, .72)); }
/* Windows WeChat header spacing */
html[data-os="windows"] .wc-head-btn { margin: 0 6px 0 0; }
.ios-lg-orb { flex-shrink: 0; }
.ios-np2-meta .ios-lg-orb { width: 36px; height: 36px; }

/* ============================================================================
   WECHAT — faithful rebuild
   ============================================================================ */
.wx { position: relative; height: 100%; display: flex; flex-direction: column; background: #EDEDED; color: #191919; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
html[data-os="android"] .wx { font-family: "PingFang SC", "Noto Sans SC", Roboto, sans-serif; }
.wx.wx-white { background: #FFFFFF; }
.wx-scroll { flex: 1; min-height: 0; overflow-y: auto; position: relative; }
.wx-nav { height: 44px; flex-shrink: 0; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: #EDEDED; }
.wx-nav.white { background: #FFFFFF; }
.wx-nav.left { grid-template-columns: 16px 1fr auto; }
.wx-nav.left .wx-nav-title { text-align: left; font-size: 20px; font-weight: 500; }
.wx-nav.and { height: 52px; }
.wx-nav.and:not(.left) { grid-template-columns: 52px 1fr 52px; }
.wx-nav.and:not(.left) .wx-nav-title { text-align: left; }
.wx-nav.overlay { position: absolute; left: 0; right: 0; top: var(--sys-top); z-index: 5; background: transparent; }
.wx-nav-title { text-align: center; font-size: 17px; font-weight: 500; color: #191919; display: flex; flex-direction: column; align-items: inherit; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-nav:not(.left):not(.and) .wx-nav-title { align-items: center; }
.wx-nav-title small { font-size: 11px; color: #7F7F7F; font-weight: 400; }
.wx-nav-right { display: flex; justify-content: flex-end; align-items: center; padding-right: 6px; }
.wx-nav-btn { width: 40px; height: 40px; border: none; background: transparent; color: #191919; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.wx-nav-btn.light { color: #FFF; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.wx-nav > .wx-nav-btn:first-child { margin-left: 4px; }
.wx-searchbar { padding: 6px 8px 8px; background: #EDEDED; }
.wx-searchbar span { height: 36px; border-radius: 6px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; gap: 4px; color: #B2B2B2; font-size: 16px; }
.wx-list { background: #FFFFFF; margin-bottom: 8px; }
.wx-list.conv { margin-bottom: 0; }
.wx-conv { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 72px; position: relative; cursor: pointer; background: #FFFFFF; }
.wx-conv.pinned { background: #F7F7F7; }
.wx-conv:active { background: #ECECEC; }
.wx-conv + .wx-conv::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; height: .5px; background: #E5E5E5; }
.wx-conv-av { position: relative; flex-shrink: 0; width: 48px; height: 48px; }
.wx-rowav, .wx-conv-av > img { width: 48px; height: 48px; border-radius: 5px; object-fit: cover; display: block; }
.wx-sysav { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; flex-shrink: 0; }
.wx-groupav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; padding: 2px; border-radius: 5px; background: #DDDEE0; overflow: hidden; flex-shrink: 0; }
.wx-groupav img, .wx-groupav span { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; display: flex; align-items: center; justify-content: center; color: #FFF; font-size: 10px; font-weight: 600; }
.wx-badge { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #FA5151; color: #FFF; font-size: 12px; line-height: 18px; text-align: center; font-weight: 500; }
.wx-badge.small { min-width: 16px; height: 16px; line-height: 16px; font-size: 11px; top: -4px; right: -10px; }
.wx-dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #FA5151; }
.wx-dot.inline { position: static; display: inline-block; }
.wx-conv-main { flex: 1; min-width: 0; }
.wx-conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wx-conv-name { font-size: 17px; color: #191919; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-conv-time { font-size: 12px; color: #B2B2B2; flex-shrink: 0; }
.wx-conv-bottom { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.wx-conv-msg { flex: 1; min-width: 0; font-size: 14px; color: #B2B2B2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-mute { color: #C8C8C8; display: inline-flex; flex-shrink: 0; }
.wx-tabbar { height: 56px; flex-shrink: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #F7F7F7; border-top: .5px solid #DCDCDC; }
.wx-tabbar button { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font: inherit; font-size: 10.5px; color: #191919; cursor: pointer; padding-top: 2px; }
.wx-tabbar button.on { color: #07C160; }
.wx-tab-ic { position: relative; display: inline-flex; }
/* chat */
.wx-messages { flex: 1; min-height: 0; overflow-y: auto; background: #EDEDED; padding: 6px 12px 16px; display: flex; flex-direction: column; gap: 14px; }
.wx-time { align-self: center; font-size: 13px; color: #B2B2B2; margin: 6px 0 -2px; }
.wx-msg { display: flex; align-items: flex-start; gap: 10px; max-width: 100%; }
.wx-msg.me { flex-direction: row-reverse; }
.wx-av { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; cursor: pointer; }
.wx-av.me { background: #C9D3E0; color: #FFF; display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.wx-bubble { position: relative; max-width: calc(100% - 110px); background: #FFFFFF; color: #191919; font-size: 17px; line-height: 1.45; padding: 9px 12px; border-radius: 4px; white-space: pre-line; word-break: break-word; }
.wx-msg.me .wx-bubble { background: #95EC69; }
.wx-bubble::before { content: ""; position: absolute; top: 14px; left: -5px; border: 5px solid transparent; border-left: none; border-right-color: #FFFFFF; }
.wx-msg.me .wx-bubble::before { left: auto; right: -5px; border: 5px solid transparent; border-right: none; border-left-color: #95EC69; }
.wx-voice { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 16px; }
.wx-msg.me .wx-voice { justify-content: flex-end; }
.wx-msg.me .wx-voice svg { transform: scaleX(-1); }
.wx-sticker { width: 120px; height: 120px; object-fit: contain; }
.wx-card { width: 236px; background: #FFFFFF; border-radius: 4px; padding: 11px 12px 0; cursor: pointer; display: flex; flex-direction: column; }
.wx-card-title { font-size: 15.5px; line-height: 1.38; color: #191919; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wx-card-row { display: flex; gap: 10px; margin-top: 6px; }
.wx-card-desc { flex: 1; font-size: 13px; line-height: 1.4; color: #8C8C8C; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wx-card-row img { width: 46px; height: 46px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.wx-card-src { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 7px 0 8px; border-top: .5px solid #EDEDED; font-size: 12px; color: #B2B2B2; }
.wx-file { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; }
.wx-file-main { min-width: 0; }
.wx-file-size { font-size: 12.5px; color: #B2B2B2; margin-top: 4px; }
.wx-file-ic { width: 40px; height: 48px; border-radius: 3px; background: #F6A54A; color: #FFF; font-size: 10px; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%); }
.wx-file .wx-card-src { grid-column: 1 / -1; }
.wx-typing { font-size: 12px; color: #B2B2B2; padding-left: 50px; }
.wx-composer { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px; background: #F7F7F7; border-top: .5px solid #DCDCDC; flex-shrink: 0; }
.wx-cbtn { border: none; background: transparent; color: #191919; padding: 0; display: inline-flex; cursor: pointer; flex-shrink: 0; }
.wx-input { flex: 1; min-width: 0; height: 40px; border: none; outline: none; border-radius: 4px; background: #FFFFFF; padding: 0 10px; font: inherit; font-size: 17px; caret-color: #07C160; }
.wx-send { display: none; height: 34px; padding: 0 14px; border: none; border-radius: 4px; background: #07C160; color: #FFF; font: inherit; font-size: 15px; cursor: pointer; flex-shrink: 0; }
.wx-composer.and.has-text .wx-send { display: inline-flex; align-items: center; }
.wx-composer.and.has-text .wx-plus { display: none; }
/* profile, info, cells */
.wx-card-head { display: flex; gap: 18px; align-items: flex-start; padding: 18px 24px 26px; background: #FFFFFF; }
.wx-card-av { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.wx-card-name { font-size: 21px; font-weight: 600; color: #191919; margin: 2px 0 6px; }
.wx-card-line { font-size: 14px; color: #7F7F7F; line-height: 1.6; }
.wx-cells { background: #FFFFFF; margin-bottom: 8px; }
.wx-white .wx-cells { border-top: 8px solid #EDEDED; margin-bottom: 0; }
.wx-white .wx-card-head + .wx-cells { border-top-width: 1px; border-top-color: #F2F2F2; }
.wx-cell { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px 0 24px; font-size: 17px; position: relative; cursor: pointer; }
.wx-cell + .wx-cell::before { content: ""; position: absolute; top: 0; left: 24px; right: 0; height: .5px; background: #E5E5E5; }
.wx-cell > span:first-child { flex-shrink: 0; }
.wx-cell-sub { flex: 1; min-width: 0; text-align: left; font-size: 15px; color: #7F7F7F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; }
.wx-cell-thumbs { flex: 1; display: flex; gap: 6px; padding-left: 26px; }
.wx-cell-thumbs img { width: 52px; height: 52px; object-fit: cover; background: #F2F2F2; }
.wx-chev { color: #B2B2B2; margin-left: auto; flex-shrink: 0; }
.wx-cell.action { justify-content: center; color: #576B95; font-weight: 500; gap: 8px; padding: 0; }
.wx-cell.action::before { left: 0 !important; }
.wx-switch { margin-left: auto; width: 51px; height: 31px; border-radius: 999px; background: #E9E9EA; position: relative; flex-shrink: 0; }
.wx-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #FFF; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: left .2s; }
.wx-switch.on { background: #07C160; }
.wx-switch.on::after { left: 22px; }
.wx-members { display: flex; gap: 22px; padding: 16px 20px 14px; }
.wx-members > div { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 56px; font-size: 12px; color: #7F7F7F; cursor: pointer; }
.wx-members img, .wx-add-tile { width: 56px; height: 56px; border-radius: 5px; object-fit: cover; }
.wx-add-tile { border: 1px dashed #C8C8C8; display: inline-flex; align-items: center; justify-content: center; color: #B2B2B2; }
.wx-add-tile svg circle { display: none; }
/* contacts / discover / me */
.wx-crow { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; font-size: 17px; position: relative; cursor: pointer; }
.wx-crow + .wx-crow::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: .5px; background: #E5E5E5; }
.wx-crow img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.wx-letter { padding: 6px 16px; font-size: 14px; color: #7F7F7F; background: #EDEDED; }
.wx-count { text-align: center; color: #B2B2B2; font-size: 15px; padding: 18px 0 24px; }
.wx-index { position: absolute; right: 2px; top: 120px; display: flex; flex-direction: column; font-size: 10px; color: #555; line-height: 1.55; text-align: center; }
.wx-drow { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 16px; font-size: 17px; position: relative; cursor: pointer; }
.wx-drow + .wx-drow::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: .5px; background: #E5E5E5; }
.wx-di { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wx-di.moments { border-radius: 50%; background: conic-gradient(#FA5151 0 16.6%, #FFC300 0 33.3%, #07C160 0 50%, #10AEFF 0 66.6%, #6467F0 0 83.3%, #FA9D3B 0); -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.5px); mask: radial-gradient(circle, transparent 4px, #000 4.5px); }
.wx-drow-extra { margin-left: auto; display: inline-flex; align-items: center; gap: 0; position: relative; }
.wx-drow-extra img { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; }
.wx-drow-extra .wx-dot { position: absolute; top: -4px; right: -4px; }
.wx-drow-extra + .wx-chev { margin-left: 8px; }
.wx-me-head { display: flex; gap: 18px; align-items: center; padding: 40px 16px 34px 26px; background: #FFFFFF; margin-bottom: 8px; }
.wx-me-av { width: 64px; height: 64px; border-radius: 6px; background: #C9D3E0; color: #FFF; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wx-me-info { flex: 1; min-width: 0; }
.wx-me-name { font-size: 22px; font-weight: 600; }
.wx-me-id { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: #7F7F7F; margin-top: 6px; }
.wx-me-qr { display: inline-flex; align-items: center; gap: 6px; color: #7F7F7F; }
.wx-me-qr .wx-chev { margin-left: 0; }
.wx-me-status { display: inline-block; margin-top: 10px; padding: 2px 10px; border: .5px solid #D6D6D6; border-radius: 999px; font-size: 13px; color: #7F7F7F; }
/* moments */
.wx-moments { padding-top: 0 !important; }
.wx-mo-cover { height: 300px; background-size: cover; background-position: center 60%; position: relative; margin-bottom: 46px; }
.wx-mo-me { position: absolute; right: 16px; bottom: -26px; display: flex; align-items: center; gap: 14px; }
.wx-mo-me span { color: #FFF; font-size: 19px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.5); margin-bottom: 26px; }
.wx-mo-me img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; border: 2px solid #FFF; }
.wx-mo-feed { background: #FFF; }
.wx-post { display: flex; gap: 10px; padding: 14px 16px; border-bottom: .5px solid #EDEDED; }
.wx-post-av { width: 42px; height: 42px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.wx-post-main { flex: 1; min-width: 0; }
.wx-post-name { font-size: 15.5px; font-weight: 600; color: #576B95; }
.wx-post-text { font-size: 15.5px; line-height: 1.5; margin: 3px 0 8px; }
.wx-post-grid { display: grid; grid-template-columns: repeat(3, 78px); gap: 4px; }
.wx-post-grid img { width: 78px; height: 78px; object-fit: cover; background: #F2F2F2; cursor: pointer; }
.wx-post-single { max-width: 180px; max-height: 220px; object-fit: cover; cursor: pointer; }
.wx-post-video { position: relative; width: 210px; cursor: pointer; }
.wx-post-play { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid #FFF; background: rgba(0,0,0,.25); }
.wx-post-play::after { content: ""; position: absolute; left: 15px; top: 11px; border: 7px solid transparent; border-left: 11px solid #FFF; border-right: none; }
.wx-post-link { display: flex; align-items: center; gap: 8px; background: #F7F7F7; padding: 6px; cursor: pointer; }
.wx-post-link img { width: 44px; height: 44px; object-fit: cover; }
.wx-post-link span { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wx-post-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: #B2B2B2; }
.wx-post-op { width: 32px; height: 20px; border-radius: 3px; background: #F7F7F7; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.wx-post-op i { width: 4px; height: 4px; border-radius: 50%; background: #576B95; }
.wx-post-likes { margin-top: 8px; background: #F7F7F7; padding: 6px 10px; font-size: 14px; color: #576B95; }
.wx-heart { color: #576B95; }

/* ---------- WeChat 4.x desktop ---------- */
.wx-desktop { height: 100%; display: grid; grid-template-columns: 56px 252px 1fr; background: #F5F5F5; color: #191919; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", sans-serif; overflow: hidden; }
.wx-d-rail { background: #EBEBEB; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 12px; cursor: grab; }
.wx-d-traffic { margin: 0 0 10px; transform: scale(.88); }
.wx-d-traffic .mac-traffic { gap: 6px; }
.wx-d-me { width: 36px; height: 36px; border-radius: 5px; background: #C9D3E0; color: #FFF; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.wx-d-rail > button { position: relative; width: 40px; height: 40px; border: none; border-radius: 6px; background: transparent; color: #5C5C5C; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wx-d-rail > button:hover { background: rgba(0,0,0,.05); }
.wx-d-rail > button.on { color: #07C160; }
.wx-d-rail > button .wx-badge.small { top: 2px; right: 0; }
.wx-d-col { background: #F7F7F7; border-right: 1px solid #E6E6E6; display: flex; flex-direction: column; min-width: 0; }
.wx-d-search { display: flex; gap: 8px; align-items: center; padding: 18px 12px 12px; cursor: grab; }
.wx-d-searchbox { flex: 1; height: 26px; border-radius: 4px; background: #E2E2E2; display: flex; align-items: center; gap: 5px; padding: 0 8px; color: #8C8C8C; font-size: 12px; }
.wx-d-add { width: 26px; height: 26px; border: none; border-radius: 4px; background: #E2E2E2; color: #555; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wx-d-list { flex: 1; overflow-y: auto; }
.wx-d-col .wx-conv { height: 66px; padding: 0 12px; gap: 10px; background: transparent; }
.wx-d-col .wx-conv::before { display: none; }
.wx-d-col .wx-conv.pinned { background: #EFEFEF; }
.wx-d-col .wx-conv:hover { background: #EBEBEB; }
.wx-d-col .wx-conv.active { background: #DEDEDE; }
.wx-d-col .wx-conv-av, .wx-d-col .wx-rowav, .wx-d-col .wx-conv-av > img { width: 40px; height: 40px; }
.wx-d-col .wx-sysav, .wx-d-col .wx-groupav { width: 40px !important; height: 40px !important; }
.wx-d-col .wx-conv-name { font-size: 14px; }
.wx-d-col .wx-conv-msg { font-size: 12px; color: #9E9E9E; }
.wx-d-col .wx-conv-time { font-size: 11px; color: #A9A9A9; }
.wx-d-col .wx-badge { top: -5px; right: -6px; min-width: 16px; height: 16px; line-height: 16px; font-size: 11px; }
.wx-d-manage { margin: 18px 12px 8px; width: calc(100% - 24px); height: 30px; border: none; border-radius: 4px; background: #E2E2E2; display: flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 13px; color: #191919; cursor: pointer; }
.wx-d-sec { font-size: 12px; color: #8C8C8C; padding: 10px 14px 4px; }
.wx-d-crow { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 14px; cursor: pointer; }
.wx-d-crow:hover { background: #EBEBEB; }
.wx-d-crow.active { background: #DEDEDE; }
.wx-d-crow img { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; }
.wx-d-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #F5F5F5; }
.wx-d-head { height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding-left: 20px; border-bottom: 1px solid #E6E6E6; cursor: grab; }
.wx-d-title { font-size: 16px; font-weight: 500; display: flex; flex-direction: column; line-height: 1.2; }
.wx-d-title small { font-size: 11px; color: #9E9E9E; font-weight: 400; }
.wx-d-head-r { display: flex; align-items: center; align-self: stretch; }
.wx-d-head-r .win-captions { align-self: flex-start; }
.wx-d-hbtn { width: 34px; height: 34px; border: none; border-radius: 5px; background: transparent; color: #555; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0 12px; align-self: center; }
.wx-d-hbtn:hover { background: rgba(0,0,0,.05); }
html[data-os="windows"] .wx-d-hbtn { margin-right: 4px; }
.wx-d-chat { flex: 1; min-height: 0; display: flex; position: relative; }
.wx-d-chat .wx-messages { background: #F5F5F5; padding: 12px 22px 16px; gap: 16px; }
.wx-desktop .wx-bubble { font-size: 14px; padding: 9px 12px; max-width: 360px; }
.wx-desktop .wx-av { width: 36px; height: 36px; }
.wx-desktop .wx-card { width: 260px; }
.wx-desktop .wx-sticker { width: 110px; height: 110px; }
.wx-desktop .wx-time { font-size: 12px; }
.wx-d-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 260px; background: #F7F7F7; border-left: 1px solid #E6E6E6; overflow-y: auto; box-shadow: -8px 0 24px rgba(0,0,0,.06); }
.wx-d-drawer .wx-cell { min-height: 46px; font-size: 14px; padding: 0 14px; }
.wx-d-drawer .wx-cell + .wx-cell::before { left: 14px; }
.wx-d-drawer .wx-switch { transform: scale(.78); transform-origin: right center; }
.wx-d-drawer .wx-members { padding: 14px; }
.wx-d-composer { height: 168px; flex-shrink: 0; border-top: 1px solid #E6E6E6; display: flex; flex-direction: column; padding: 8px 18px 12px; background: #F5F5F5; }
.wx-d-tools { display: flex; align-items: center; gap: 6px; color: #4C4C4C; }
.wx-d-tools button { width: 32px; height: 30px; border: none; background: transparent; color: #4C4C4C; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wx-d-tools button:hover { background: rgba(0,0,0,.05); }
.wx-d-input { flex: 1; border: none; outline: none; resize: none; background: transparent; font: inherit; font-size: 14px; margin-top: 6px; }
.wx-d-sendrow { display: flex; justify-content: flex-end; }
.wx-d-send { height: 30px; padding: 0 22px; border: none; border-radius: 4px; background: #E9E9E9; color: #07C160; font: inherit; font-size: 13px; cursor: pointer; }
.wx-d-send:hover { background: #D2D2D2; }
.wx-d-contact { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: 70px; overflow-y: auto; }
.wx-d-contact-card { width: 380px; }
.wx-d-contact-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid #E6E6E6; margin-bottom: 14px; }
.wx-d-contact-top img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.wx-d-kv { display: flex; gap: 22px; padding: 8px 0; font-size: 14px; }
.wx-d-kv span:first-child { width: 64px; color: #8C8C8C; flex-shrink: 0; }
.wx-d-kv .wx-cell-thumbs { padding-left: 0; cursor: pointer; }
.wx-d-kv .wx-cell-thumbs img { width: 40px; height: 40px; }
.wx-d-actions { display: flex; justify-content: center; gap: 46px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #E6E6E6; }
.wx-d-actions button { border: none; background: transparent; color: #576B95; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.wx-d-moments { flex: 1; overflow-y: auto; background: #FFF; }
.wx-d-moments .wx-mo-cover { height: 240px; }

.wx-nav.left .wx-nav-title, .wx-nav.and .wx-nav-title { align-items: flex-start; }
.wx-d-traffic { transform: none; margin: 0 0 12px; }

/* ---------- Games apps (Apple Games · Play Games · Xbox) ---------- */
.gm-art { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #222; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.gm-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-art.gen { background: linear-gradient(150deg, hsl(var(--gh), 70%, 58%), hsl(calc(var(--gh) + 40), 70%, 34%)); color: #FFF; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; }
.gm-art.gen b { font-size: 34px; font-weight: 800; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.gm-art.gen small { font-size: 10px; font-weight: 600; opacity: .85; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-art.sm { width: 56px; height: 56px; border-radius: 13px; flex-shrink: 0; box-shadow: none; }
.gm-art.sm.gen { padding: 6px; } .gm-art.sm.gen b { font-size: 22px; } .gm-art.sm.gen small { display: none; }
.gm-art.xs { width: 34px; height: 34px; border-radius: 6px; flex-shrink: 0; box-shadow: none; }
.gm-art.xs.gen { padding: 4px; } .gm-art.xs.gen b { font-size: 15px; } .gm-art.xs.gen small { display: none; }
.gm-art.hero { aspect-ratio: 16 / 9; border-radius: 22px; }
.gm-tile { cursor: pointer; min-width: 0; }
.gm-tile-title { font-size: 14px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-tile-sub { font-size: 12px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-hscroll { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.gm-hscroll .gm-tile { flex: 0 0 148px; }
.gm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
.gm-list { display: flex; flex-direction: column; }
.gm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: .5px solid rgba(255,255,255,.12); }
.gm-row-main { flex: 1; min-width: 0; }
.gm-row-title { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-row-sub { font-size: 13px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-play-btn { height: 30px; min-width: 64px; padding: 0 14px; border: none; border-radius: 999px; background: rgba(255,255,255,.14); color: #0A84FF; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.gm-sub { font-size: 15px; opacity: .6; margin: -4px 4px 14px; }
.gm-hero { position: relative; cursor: pointer; border-radius: 22px; overflow: hidden; margin-bottom: 6px; }
.gm-hero .gm-art.hero { box-shadow: none; }
.gm-hero-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #FFF; display: flex; flex-direction: column; }
.gm-hero-info small { font-size: 12px; font-weight: 700; opacity: .75; text-transform: uppercase; }
.gm-hero-info b { font-size: 22px; font-weight: 700; }
.gm-hero-info span { font-size: 13px; opacity: .8; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; padding-right: 70px; }
.gm-hero-btn { position: absolute; right: 16px; bottom: 16px; height: 32px; padding: 0 20px; border: none; border-radius: 999px; background: rgba(255,255,255,.92); color: #000; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.gm-frame { flex: 1; min-height: 0; }
.gm-run.ios-games .gm-frame { margin: calc(var(--sys-top) + 52px) 0 var(--sys-bottom); }
/* iOS Games app (dark) */
.ios-gamesapp { background: #000; color: #FFF; }
.ios-gamesapp::before { background: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0)) !important; }
.ios-gamesapp::after { background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,0)) !important; }
.ios-gamesapp .ap-sec-head { color: #FFF; }
.ios-lg-sideorb.dark-orb { background: rgba(40,40,46,var(--lg-chrome-dark-a)); color: #FFF; border-color: rgba(255,255,255,.22); }
/* macOS Games (dark) */
.mac-games { height: 100%; display: grid; grid-template-columns: 176px 1fr; background: #141416; color: #FFF; }
.mac-games.gm-run { display: flex; flex-direction: column; background: #000; }
.mg-side { background: rgba(44,44,48,.72) !important; border-color: rgba(255,255,255,.08) !important; box-shadow: none !important; }
.mg-side .mac-side-item { color: #E5E5EA; }
.mg-side .mac-side-item.active { background: rgba(255,255,255,.12); color: #FFF; }
.mac-side-ic.mg { color: #FF375F; }
.mg-main { overflow-y: auto; padding: 24px 26px 26px; cursor: default; }
.mac-large-title.dark, .ap-sec-head.dark { color: #FFF; }
.gm-grid.mac { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.gm-hscroll.mac { margin: 0; padding: 0 0 6px; }
.gm-hero.mac { max-width: 760px; }
.mg-runbar { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #1C1C1E; flex-shrink: 0; cursor: grab; }
.mac-tb-btn.dark { color: #E5E5EA; }
.mac-tb-btn.dark:hover { background: rgba(255,255,255,.1); }
.mg-runtitle { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: #E5E5EA; }
/* Xbox (Windows) */
.xbox { height: 100%; display: flex; flex-direction: column; background: #1A1A1A; color: #FFF; }
.xbox .win-mp-titlebar.dark { background: #1A1A1A; gap: 8px; }
.xb-logo { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #9BF00B, #107C10 70%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); flex-shrink: 0; }
.xb-search { margin: 0 auto; width: 360px; height: 30px; border-radius: 4px; background: #2B2B2B; border-bottom: 1px solid #8A8A8A; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12.5px; color: #A0A0A0; }
.xb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; }
.xb-rail { padding: 6px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.xb-rail-item, .xb-rail-game { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 4px; font-size: 13px; color: #E5E5E5; cursor: pointer; position: relative; }
.xb-rail-item:hover, .xb-rail-game:hover { background: rgba(255,255,255,.06); }
.xb-rail-item.on { background: rgba(255,255,255,.08); }
.xb-rail-item.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #9BF00B; }
.xb-rail-game span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xb-rail-sep { height: 1px; background: rgba(255,255,255,.1); margin: 8px 6px; }
.xb-main { overflow-y: auto; padding: 18px 26px 26px; background: #202020; border-top-left-radius: 8px; }
.xb-hero { position: relative; max-width: 860px; border-radius: 10px; overflow: hidden; cursor: pointer; }
.xb-hero .gm-art.hero { border-radius: 10px; aspect-ratio: 21 / 9; box-shadow: none; }
.xb-hero-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 18px; background: linear-gradient(transparent, rgba(0,0,0,.8)); display: flex; flex-direction: column; gap: 4px; }
.xb-hero-info small { font-size: 12px; color: #9BF00B; font-weight: 600; }
.xb-hero-info b { font-size: 24px; font-weight: 600; }
.xb-play { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 22px; border: none; border-radius: 4px; background: #107C10; color: #FFF; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.xb-h1 { font-size: 28px; font-weight: 600; margin-bottom: 16px; }
.xb-h2 { font-size: 18px; font-weight: 600; margin: 22px 0 12px; }
.xb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.gm-tile.xb .gm-art { border-radius: 6px; box-shadow: none; }
.gm-tile.xb .gm-tile-title { font-size: 13px; font-weight: 400; }
.xbox.gm-run .gm-frame { background: #000; }
/* Google Play Games (Android) */
.pgames { background: #FFFFFF; }
.pg-logo { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 20px; padding-left: 14px; color: #1F1F1F; }
.pg-mark { width: 24px; height: 24px; border-radius: 6px; background: conic-gradient(from 200deg, #00D7FE, #2B7BFF, #FF3A44, #FFBC00, #00F076, #00D7FE); -webkit-mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 4.5px); mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 4.5px); }
.gm-hscroll.and { margin: 0 -16px; }
.gm-hscroll.and .gm-tile { flex-basis: 136px; color: #1F1F1F; }
.gm-hscroll.and .gm-art, .gm-list.and .gm-art { border-radius: 20px; box-shadow: none; }
.gm-list.and .gm-row { border-bottom: none; color: #1F1F1F; }
.gm-list.and .gm-play-btn { background: #E8DEF8; color: #1D192B; font-weight: 500; font-size: 14px; }
.gm-run.and { background: #000; }
.gm-run.and .gm-frame { margin-bottom: var(--sys-bottom); }
.ficon-sub.info { color: #0A64D8; font-size: 11px; }

/* ---------- Windows 11 25H2 Start menu ---------- */
.win11-start-menu { width: 680px; padding: 0; border-radius: 8px; background: rgba(238,241,247,.86); backdrop-filter: blur(60px) saturate(1.5); -webkit-backdrop-filter: blur(60px) saturate(1.5); border: 1px solid rgba(255,255,255,.55); box-shadow: 0 32px 64px rgba(0,0,0,.28), 0 2px 21px rgba(0,0,0,.18); overflow: hidden; }
.win-start-scroll { max-height: min(640px, calc(100dvh - 160px)); overflow-y: auto; padding: 24px 40px 16px; scrollbar-width: thin; }
.win-start-search { border-radius: 999px; border: 1px solid rgba(0,0,0,.06); border-bottom: 2px solid #005FB8; height: 36px; font-size: 13px; color: #5D5D5D; margin-bottom: 22px; }
.win-start-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: #1B1B1B; margin: 4px 0 8px; }
.win-std-btn.small { height: 26px; padding: 0 10px; font-size: 12px; gap: 4px; }
.win-start-grid { grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0 0 18px; }
.win-start-item { padding: 12px 4px 10px; gap: 8px; border-radius: 4px; font-size: 12px; color: #1B1B1B; }
.win-start-item img { width: 32px !important; height: 32px !important; }
.win-start-rec { margin-bottom: 18px; gap: 4px; }
.win-start-rec > div { padding: 10px; gap: 14px; cursor: pointer; }
.win-start-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 6px; }
.win-start-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: #1B1B1B; }
.win-start-cat-box { width: 100%; aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.05); display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 14px; gap: 6px; }
.win-start-cat-box img { width: 32px; height: 32px; cursor: pointer; }
.win-start-foot { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: rgba(0,0,0,.035); border-top: 1px solid rgba(0,0,0,.07); }

/* ---------- Windows 11 Mica material ---------- */
html[data-os="windows"] .os-window { background: rgba(232,236,243,.80); backdrop-filter: blur(70px) saturate(1.8); -webkit-backdrop-filter: blur(70px) saturate(1.8); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 32px 64px rgba(0,0,0,.22), 0 2px 21px rgba(0,0,0,.14); }
html[data-os="windows"] .win-explorer, html[data-os="windows"] .win-mediaplayer, html[data-os="windows"] .win-settings, html[data-os="windows"] .win-notepad-app { background: transparent; }
html[data-os="windows"] .win-exp-tabbar, html[data-os="windows"] .win-np-tabstrip, html[data-os="windows"] .win-mp-titlebar:not(.dark) { background: transparent; }
html[data-os="windows"] .win-exp-addrbar, html[data-os="windows"] .win-exp-cmdbar { background: rgba(249,249,249,.72); }
html[data-os="windows"] .win-exp-nav, html[data-os="windows"] .win-mp-rail, html[data-os="windows"] .ws-nav { background: transparent; }
html[data-os="windows"] .win-exp-body { background: rgba(255,255,255,.62); }
html[data-os="windows"] .win-exp-body .f-content-area { background: rgba(255,255,255,.75); }
html[data-os="windows"] .win-exp-statusbar { background: rgba(255,255,255,.75); }
html[data-os="windows"] .win-mp-scroll, html[data-os="windows"] .win-photos-main { background: rgba(249,249,249,.78); }
html[data-os="windows"] .win-mp-transport { background: transparent; }
html[data-os="windows"] .ws-card { background: rgba(251,251,251,.82); }
html[data-os="windows"] .win-np-editor, html[data-os="windows"] .win-np-menubar, html[data-os="windows"] .win-np-status { background: rgba(251,251,251,.9); }
html[data-os="windows"] .win-np-tab.active { background: rgba(251,251,251,.9); }
html[data-os="windows"] .win-exp-tab { background: rgba(249,249,249,.72); }
html[data-os="windows"] .win-photos .win-exp-nav { background: transparent; }
html[data-os="windows"] .wx-desktop, html[data-os="windows"] .xbox, html[data-os="windows"] .win-films { background-clip: padding-box; }
/* QuickTime: window fits the movie; chrome fades in on hover */
.qt2-stage { padding: 0; }
.qt2-stage .vid-frame { width: 100%; border-radius: 0; }
.qt2-titlebar, .qt2-hud { opacity: 0; transition: opacity .25s ease; }
.qt2:hover .qt2-titlebar, .qt2:hover .qt2-hud, .os-window.focused .qt2 .qt2-titlebar { opacity: 1; }
.qt2-hud { bottom: 14px; width: min(400px, calc(100% - 40px)); }
/* Keep plain-text note */
.keep-doc-title { font-size: 22px; line-height: 1.35; color: #1F1F1F; margin-bottom: 14px; }
.keep-doc-body { font-size: 16px; line-height: 1.6; color: #1F1F1F; white-space: pre-line; }
/* Android 16 expressive wavy progress */
.m3-slider.wavy { height: 14px !important; background: linear-gradient(#E8DEF8, #E8DEF8) center / 100% 4px no-repeat !important; border-radius: 2px !important; overflow: visible; }
.m3-slider.wavy .fm-progress-fill { height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0 7 Q6 1 12 7 T24 7' fill='none' stroke='%236750A4' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 24px 14px; border-radius: 0; position: relative; }
.m3-slider.wavy .fm-progress-fill::after { content: ""; position: absolute; right: -3px; top: -3px; width: 6px; height: 20px; border-radius: 3px; background: #6750A4; }


/* ============================================================================
   ROUND-5 9.0+ FIDELITY POLISH (All 4 OSes + Standalone WeChat)
   ============================================================================ */
/* 1. Prevent mid-extension (.ht / ml) wrapping across all 4 file managers */
.ficon-name, .mob-file-name { word-break: normal !important; overflow-wrap: break-word; }
.fn-tail { white-space: nowrap; }

/* 2. macOS Tahoe 26: QuickTime HUD, dark window hairline, thin specular Dock rim, white volume knob, disabled About zoom */
.os-window.focused .qt2 .qt2-hud { opacity: 1; }
html[data-os="macos"] .os-window:has(.qt2, .mac-games) {
  background: #141416;
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.50), inset 0 0.5px 0 rgba(255, 255, 255, 0.18);
}
html[data-os="macos"] #os-dock {
  border: 0.5px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.56), inset 0 -0.5px 0 rgba(255, 255, 255, 0.16);
}
.mac-pod-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) var(--vol-pct, 80%), rgba(0, 0, 0, 0.12) var(--vol-pct, 80%));
  outline: none;
  cursor: pointer;
}
.mac-pod-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32), 0 0 0 0.5px rgba(0, 0, 0, 0.14);
}
.os-window.focused .mac-dot.max.disabled,
.mac-dot.max.disabled {
  background: #D4D4D8 !important;
  border-color: #C2C2C7 !important;
  cursor: default;
  pointer-events: none;
}
.gm-hscroll.mac { margin-bottom: 10px; padding-bottom: 12px; }
.mg-main { padding-bottom: 34px; }

/* 3. Windows 11 25H2: shortcut badge, dark window border, Xbox scrim/logo, WMP accent, Start category pods */
.desk-ic-wrap { position: relative; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
html[data-os="macos"] .desktop-icon.selected .desk-ic-wrap img {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 7px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.34);
}
.win-shortcut-badge {
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-os="windows"] .os-window:has(.xbox, .win-films) {
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.xb-logo-img { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
.xb-hero-info {
  padding: 66px 22px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.88) 100%);
}
.xb-hero-info small { color: #B4FF39; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.88); }
.xb-hero-info b { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78); }
html[data-os="windows"] .win-mp-nav.active { border-left: none !important; }
.win-start-scroll { max-height: min(720px, calc(100dvh - 130px)); padding: 20px 36px 14px; }
.win-start-search { margin-bottom: 16px; }
.win-start-grid { margin-bottom: 12px; }
.win-start-item { padding: 9px 4px 8px; gap: 6px; }
.win-start-rec { margin-bottom: 12px; }
.win-start-rec > div { padding: 7px 10px; }
.win-start-cats { gap: 14px; margin-bottom: 4px; }
.win-start-cat { gap: 6px; font-size: 12px; font-weight: 500; color: #1B1B1B; }
.win-start-cat-box {
  aspect-ratio: auto;
  height: 94px;
  padding: 12px 14px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  gap: 8px;
}
.win-start-cat-box img { width: 28px; height: 28px; object-fit: contain; }

/* 4. iOS 26 Liquid Glass: thin specular Dock rim, knobless Now Playing volume bar, centered photo scrubber, balanced headings */
.ios-dock {
  border: 0.5px solid rgba(255, 255, 255, 0.36) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}
.ios-search-pill { border: 0.5px solid rgba(255, 255, 255, 0.30); }
.ios-np2-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) var(--vol-pct, 80%), rgba(255, 255, 255, 0.24) var(--vol-pct, 80%));
  outline: none;
  cursor: pointer;
}
.ios-np2-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
}
.ph-strip { justify-content: safe center; }
.ios-photo-viewer .ph-strip button.active {
  width: 44px;
  margin: 0 5px;
  opacity: 1;
  border-radius: 4px;
  outline: 2px solid #007AFF;
  outline-offset: -1px;
}
.note-doc-title, .note-doc-h3 { text-wrap: balance; }

/* 5. Android 16 M3 Expressive: clean sticker studio canvas in Photos viewer, unclipped show disclosure, Play Games mark */
.gp-photo-frame { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
.gp-stage.sticker-stage .gp-photo-frame {
  width: 100%;
  aspect-ratio: 1;
  background: #F8F9FA;
  padding: 28px;
  box-sizing: border-box;
}
.gp-stage.sticker-stage .gp-photo-frame img { width: 100%; height: 100%; object-fit: contain; }
.m3-scroll.has-mini { padding-bottom: 112px !important; }
.m3-show img { width: 164px; height: 164px; border-radius: 24px; }
.m3-show-title { margin-top: 10px; font-size: 22px; }
.pg-mark-img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }

/* 6. WeChat 4-Platform: Moments safe area & home bar, Contacts group mosaic, guest avatar, rail spacing, standalone desktop Moments window */
#pocket-sheet .pocket-sheet-body > .wx-moments { padding-bottom: 0 !important; }
.wx-moments::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sys-bottom);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 4;
}
.wx-moments .wx-mo-cover { height: 244px; margin-bottom: 40px; }
.wx-moments .wx-mo-feed { padding-bottom: calc(var(--sys-bottom) + 22px); }
.wx-d-crow .wx-groupav img { width: 100% !important; height: 100% !important; border-radius: 1px !important; }
.wx-me-av-img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.wx-d-me-img { width: 36px; height: 36px; border-radius: 5px; object-fit: cover; margin-bottom: 10px; }
.wx-desktop { grid-template-columns: 64px 248px 1fr; }
.wx-d-traffic .mac-traffic { gap: 7px; }
.wx-d-composer { height: 126px; }
.wx-d-chat .wx-messages { padding: 12px 22px 12px; gap: 12px; }
.wx-desktop .wx-sticker { width: 88px; height: 88px; }
html[data-os="windows"] .os-window:has(.wx-mowin) { border: 1px solid rgba(0, 0, 0, 0.22); background: #FFFFFF; backdrop-filter: none; }
html[data-os="macos"] .os-window:has(.wx-mowin) { border: 0.5px solid rgba(0, 0, 0, 0.22); background: #FFFFFF; }

.wx-mowin {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  color: #191919;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", sans-serif;
  overflow: hidden;
}
.wx-mowin-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 6;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  cursor: grab;
}
.wx-mowin.windows .wx-mowin-bar { padding-right: 0; height: 34px; }
.wx-mowin-title { color: #FFFFFF; font-size: 13px; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.wx-mowin-tools { display: flex; align-items: center; gap: 2px; color: #FFFFFF; }
.wx-mowin-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #FFFFFF;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wx-mowin-btn:hover { background: rgba(255, 255, 255, 0.16); }
.wx-mowin.windows .win-cap-btn { color: #FFFFFF; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.wx-mowin-scroll { flex: 1; min-height: 0; overflow-y: auto; background: #FFFFFF; }
.wx-mowin-scroll .wx-mo-cover { height: 236px; margin-bottom: 42px; }
.wx-mowin-scroll .wx-mo-feed { padding-bottom: 20px; }

/* Final R4 post-audit micro-polish */
.ios-lg-page.ios-settings::after { display: none !important; }
.wx-d-composer { height: 130px; }
.wx-mowin-bar { background: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0)); }

/* ============================================================================
   MOBILE GESTURE ENGINE — viewport, swipe-home card, App Switcher / Recents, Back
   ============================================================================ */
#pocket-viewport { display: none; }
html[data-os="ios"] #pocket-viewport,
html[data-os="android"] #pocket-viewport {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9800;
  overflow: hidden;
  pointer-events: none;
}
#pocket-viewport > #pocket-sheet {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none;
  border-radius: inherit;
  box-shadow: none !important;
  pointer-events: auto;
  overflow: hidden;
}
@media (min-width: 560px) {
  html[data-os="ios"] #pocket-viewport,
  html[data-os="android"] #pocket-viewport {
    margin: auto;
    width: 392px;
    height: min(844px, calc(100dvh - 36px));
    border-radius: 42px;
  }
}
#pocket-viewport > #pocket-sheet.gesturing {
  will-change: transform;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42) !important;
}
#pocket-sheet.gesturing .mob-sys-holder,
#pocket-sheet.gesturing .mob-home-ind { opacity: 0; transition: opacity 0.12s; }

/* Home screen behind a live app card: dims + blurs and comes into focus as the card shrinks */
#pocket-os::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.32);
  opacity: var(--home-dim, 0);
  transition: opacity 0.38s ease;
}
#pocket-os.dragging-home::after { transition: none; }

/* Gesture hit areas (invisible) */
.mob-gesture-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  z-index: 80;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
html[data-os="android"] .mob-gesture-zone { height: 28px; }
#pocket-os > .mob-gesture-zone.home { z-index: 61; }
.mob-edge-zone {
  position: absolute;
  top: calc(var(--sys-top) + 6px);
  bottom: 40px;
  width: 16px;
  z-index: 79;
  touch-action: none;
}
.mob-edge-zone.left { left: 0; }
.mob-edge-zone.right { right: 0; }
#pocket-sheet .mob-home-ind { pointer-events: none; }

/* Android 16 predictive-back arrow */
.and-back-bubble {
  position: absolute;
  left: 0;
  width: calc(10px + 34px * var(--amt, 0));
  height: 52px;
  border-radius: 0 26px 26px 0;
  background: rgba(32, 33, 36, 0.86);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: calc(4px + 6px * var(--amt, 0));
  box-sizing: border-box;
  z-index: 90;
  opacity: calc(0.4 + 0.6 * var(--amt, 0));
  pointer-events: none;
}
.and-back-bubble.right { left: auto; right: 0; border-radius: 26px 0 0 26px; justify-content: flex-start; padding: 0 0 0 calc(4px + 6px * var(--amt, 0)); }
.and-back-bubble.right svg { transform: scaleX(-1); }

/* App Switcher (iOS 26) / Recents (Android 16) */
#app-switcher { display: none; }
#app-switcher.open {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: auto;
  border-radius: inherit;
  color: #FFFFFF;
}
.as-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(26px) saturate(150%) brightness(0.72);
  -webkit-backdrop-filter: blur(26px) saturate(150%) brightness(0.72);
}
.as-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 0 calc(50% - var(--cw) / 2);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.as-track::-webkit-scrollbar { display: none; }
.as-card {
  position: relative;
  flex: 0 0 var(--cw);
  width: var(--cw);
  height: var(--ch);
  margin-top: 30px;
  touch-action: pan-x;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}
.as-ios .as-card + .as-card { margin-left: calc(var(--cw) * -0.44); }
.as-android .as-card + .as-card { margin-left: 18px; }
.as-label {
  position: absolute;
  left: 2px;
  top: -40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  pointer-events: none;
}
.as-label img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.as-android .as-label { left: 50%; transform: translateX(-50%); top: -44px; font-size: 14px; font-weight: 500; }
.as-android .as-label img { width: 30px; height: 30px; border-radius: 50%; }
.as-shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 30px;
  background: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.38), 0 18px 50px rgba(0, 0, 0, 0.3);
}
.as-android .as-shot { border-radius: 28px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.as-snap {
  position: absolute !important;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
}
.as-snap-body > :not(.ios-lg-page) { padding-top: var(--sys-top); padding-bottom: var(--sys-bottom); box-sizing: border-box; height: 100%; }
.as-snap .ios-lg-page { height: 100%; }
.as-media-ph { position: absolute; inset: 0; background: #000; }
.as-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.as-clear {
  flex: 0 0 auto;
  align-self: center;
  margin-right: 22px;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  color: #1F1F1F;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.as-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--sys-bottom) + 20px);
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 3;
}
.as-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #1F1F1F;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
#app-switcher .mob-home-ind { position: absolute; z-index: 5; }

/* Real phone: the device paints its own status bar & Dynamic Island — never paint a second fake one */
html[data-device="real"][data-os="ios"],
html[data-device="real"][data-os="android"] {
  --sys-top: max(env(safe-area-inset-top), 10px);
  --sys-bottom: max(env(safe-area-inset-bottom), 22px);
}
html[data-device="real"] .mob-sys-bar { display: none !important; }
html[data-device="real"] #pocket-os { padding-top: 0; }

/* ============================================================================
   iOS 26.1 PODCASTS — matched to the real app (title row + avatar, 新单集 artwork-tinted
   cards, 继续播放, 你的最爱节目, separate mini-player capsule, 4-tab capsule incl. 搜索)
   ============================================================================ */
.ios-podcasts2.ap26 { background: #FFFFFF; }
.ap26 .ios-lg-scroll { padding-top: calc(var(--sys-top) + 6px); }
.ap26-titlebar { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 2px; }
.ap26-titlebar .ios-large-title { margin: 0; }
.ap26-avatar { width: 40px; height: 40px; border-radius: 50%; border: none; padding: 0; overflow: hidden; background: #D1D1D6; cursor: pointer; flex-shrink: 0; }
.ap26-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap26 .ap-sec-head { font-size: 22px; margin: 20px 4px 10px; }
.ap26 .ap-sec-head .os-ic { opacity: 0.55; }
.ap26-hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
.ap26-hscroll::-webkit-scrollbar { display: none; }
.ap26-ep-card {
  flex: 0 0 246px;
  box-sizing: border-box;
  min-height: 330px;
  border-radius: 22px;
  padding: 26px 16px 14px;
  background: var(--tint, #4B5058);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ap26-ep-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18)); pointer-events: none; }
.ap26-ep-art { width: 148px; height: 148px; border-radius: 10px; object-fit: cover; align-self: center; box-shadow: 0 10px 26px rgba(0,0,0,.34); margin-bottom: 20px; position: relative; z-index: 1; }
.ap26-ep-meta { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.62); position: relative; z-index: 1; }
.ap26-ep-title { font-size: 16px; font-weight: 700; line-height: 1.3; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; position: relative; z-index: 1; }
.ap26-ep-desc { font-size: 13.5px; line-height: 1.34; color: rgba(255,255,255,.66); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; position: relative; z-index: 1; }
.ap26-ep-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.ap26-play-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border: none; border-radius: 999px; background: rgba(255,255,255,.2); color: #FFFFFF; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ap26-more { display: inline-flex; color: rgba(255,255,255,.88); }
.ap26-resume { flex: 0 0 310px; display: flex; gap: 12px; align-items: center; scroll-snap-align: start; cursor: pointer; }
.ap26-resume > img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.ap26-resume-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ap26-resume-txt small { font-size: 11.5px; color: #8E8E93; font-variant-numeric: tabular-nums; }
.ap26-resume-txt b { font-size: 16px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap26-resume-txt > span { font-size: 13.5px; color: #8E8E93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap26-resume-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.ap26-progress-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border: none; border-radius: 999px; background: rgba(161,91,255,.14); color: #8E3CF0; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ap26-progress-pill i { display: block; width: 26px; height: 4px; border-radius: 2px; background: rgba(142,60,240,.28); overflow: hidden; }
.ap26-progress-pill em { display: block; height: 100%; background: currentColor; border-radius: 2px; }
.ap26-resume .ap26-more { color: #8E8E93; }
.ap26-show-tile { flex: 0 0 176px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; scroll-snap-align: start; }
.ap26-show-tile img { width: 176px; height: 176px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.16); }
.ap26-show-tile b { font-size: 14.5px; font-weight: 600; }
.ap26-show-tile small { font-size: 12.5px; color: #8E8E93; margin-top: -4px; }
.ap26 .ios-lg-miniplayer.ap26-mini { left: 18px; right: 18px; height: 52px; bottom: calc(var(--sys-bottom) + 66px); }
.ap26-mini img { width: 34px !important; height: 34px !important; border-radius: 6px !important; }
.ap26-mini-sub { font-size: 12px; color: #8E8E93; }
.ap26-dock { left: 18px !important; right: 18px !important; }
.ap26-tabs { height: 58px !important; }
.ap26-tabs .ios-lg-tabbtn.active { color: #A15BFF; }

/* ============================================================================
   iOS HOME — 2×2 icons + Calendar small widget, artwork-tinted Podcasts widget,
   battery with percentage (as on the reference iPhone)
   ============================================================================ */
.ios-widget2.default { background: linear-gradient(160deg, color-mix(in srgb, var(--pod-tint, #4B5058) 78%, #ffffff), var(--pod-tint, #4B5058)); }
.ios-home-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; row-gap: 18px; justify-items: center; align-items: start; }
.ios-home-grid > .mob-app-icon:nth-child(1) { grid-column: 1; grid-row: 1; }
.ios-home-grid > .mob-app-icon:nth-child(2) { grid-column: 2; grid-row: 1; }
.ios-home-grid > .mob-app-icon:nth-child(3) { grid-column: 1; grid-row: 2; }
.ios-home-grid > .mob-app-icon:nth-child(4) { grid-column: 2; grid-row: 2; }
.ios-home-extra-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; justify-items: center; align-items: start; }
.ios-small-widget-cell { grid-column: 3 / span 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; }
.ios-small-widget-cell .ios-widget-label { margin: 6px 0 0; }
.ios-cal-widget {
  width: 156px;
  height: 156px;
  box-sizing: border-box;
  border-radius: 24px;
  padding: 13px 14px;
  background: #FFFFFF;
  color: #000000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  overflow: hidden;
}
.cal-wk { font-size: 12px; font-weight: 700; color: #FF3B30; letter-spacing: 0.02em; }
.cal-day { font-size: 34px; font-weight: 400; line-height: 1; margin: 2px 0 8px; letter-spacing: -0.02em; }
.cal-tmr { font-size: 11px; font-weight: 600; color: #8E8E93; margin: -4px 0 4px; }
.cal-ev { display: flex; gap: 7px; margin-top: 5px; min-width: 0; }
.cal-ev i { width: 3.5px; border-radius: 2px; flex-shrink: 0; }
.cal-ev div { min-width: 0; display: flex; flex-direction: column; }
.cal-ev b { font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev small { font-size: 11px; color: #8E8E93; line-height: 1.25; }
html[data-icon-style="clear"] .ios-cal-widget, html[data-icon-style="tinted"] .ios-cal-widget { background: rgba(255,255,255,.2); color: #FFF; backdrop-filter: blur(18px) saturate(200%); -webkit-backdrop-filter: blur(18px) saturate(200%); border: .5px solid rgba(255,255,255,.6); }
html[data-icon-style="dark"] .ios-cal-widget { background: #1C1C1E; color: #FFF; }
.ios-batt { display: block; }
#pocket-os.under-switcher .mob-home-bar { opacity: 0; }
.ios-switch.on { background: #34C759; }
.ios-switch.on::after { left: 22px; }

/* ============================================================================
   SYSTEM DARK APPEARANCE — follows the visitor's real phone setting
   ============================================================================ */
html[data-appearance="dark"][data-os="ios"] #pocket-sheet,
html[data-appearance="dark"][data-os="ios"] .as-shot,
html[data-appearance="dark"][data-os="ios"] .as-snap { background: #000000; }
html[data-appearance="dark"][data-os="ios"] .ios-lg-page:not(.ios-gamesapp):not(.ios-player) { background: #000000 !important; color: #FFFFFF; }
html[data-appearance="dark"][data-os="ios"] .ios-lg-page:not(.ios-player):not(.ios-games)::before { background: linear-gradient(to bottom, rgba(0,0,0,.88), rgba(0,0,0,0)) !important; }
html[data-appearance="dark"][data-os="ios"] .ios-lg-page:not(.ios-player):not(.ios-games)::after { background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,0)) !important; }
html[data-appearance="dark"][data-os="ios"] .ios-grouped-card,
html[data-appearance="dark"][data-os="ios"] .mob-file-list { background: #1C1C1E; }
html[data-appearance="dark"][data-os="ios"] .ios-grouped-row { color: #FFFFFF; }
html[data-appearance="dark"][data-os="ios"] .ios-grouped-row + .ios-grouped-row::before,
html[data-appearance="dark"][data-os="ios"] .ios-note-row + .ios-note-row::before,
html[data-appearance="dark"][data-os="ios"] .mob-file-row + .mob-file-row::before { background: rgba(84,84,88,.6); }
html[data-appearance="dark"][data-os="ios"] .ios-grouped-row.nav:active { background: #2C2C2E; }
html[data-appearance="dark"][data-os="ios"] .ios-section-head.big,
html[data-appearance="dark"][data-os="ios"] .ios-note-title { color: #FFFFFF; }
html[data-appearance="dark"][data-os="ios"] .ios-note-sub span { color: rgba(235,235,245,.6); }
html[data-appearance="dark"][data-os="ios"] .ios-search-field { background: rgba(118,118,128,.24); }
html[data-appearance="dark"][data-os="ios"] .ios-search-field input { color: #FFFFFF; }
html[data-appearance="dark"][data-os="ios"] .ios-switch { background: #39393D; }
html[data-appearance="dark"][data-os="ios"] .ios-switch.on { background: #30D158; }
html[data-appearance="dark"][data-os="ios"] .ios-row-chev { color: #5A5A5E; }
html[data-appearance="dark"][data-os="ios"] .ios-lg-pill:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-orb:not(.dark) {
  background: rgba(44,44,46,calc(var(--lg-chrome-dark-a) + .2));
  color: #FFFFFF;
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 1px .5px rgba(255,255,255,.22);
}
html[data-appearance="dark"][data-os="ios"] .ios-lg-tabcapsule:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-sideorb:not(.dark-orb),
html[data-appearance="dark"][data-os="ios"] .ios-lg-miniplayer,
html[data-appearance="dark"][data-os="ios"] .ios-lg-searchcapsule {
  background: rgba(30,30,32,calc(var(--lg-chrome-dark-a) + .26));
  color: #FFFFFF;
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 1.2px .8px rgba(255,255,255,.2);
}
html[data-appearance="dark"][data-os="ios"] .ios-lg-tabcapsule:not(.dark) .ios-lg-tabbtn { color: rgba(255,255,255,.88); }
html[data-appearance="dark"][data-os="ios"] .ios-lg-tabcapsule:not(.dark) .ios-lg-tabbtn.active { background: rgba(255,255,255,.12); box-shadow: inset 0 1px .5px rgba(255,255,255,.18); color: var(--lg-accent, #0A84FF); }
html[data-appearance="dark"][data-os="ios"] .ios-lg-tabcapsule.tools .ios-lg-tabbtn { color: var(--lg-accent, #0A84FF); }
html[data-appearance="dark"][data-os="ios"] .ios-mini-btn,
html[data-appearance="dark"][data-os="ios"] .ios-lg-sideorb { color: #FFFFFF; }
html[data-appearance="dark"][data-os="ios"] .ap26-tabs .ios-lg-tabbtn.active { color: #B57BFF; }
html[data-appearance="dark"][data-os="ios"] .ap-ep-title,
html[data-appearance="dark"][data-os="ios"] .ap-show-title { color: #FFFFFF; }
html[data-appearance="dark"][data-os="ios"] .ap-ep-play { background: rgba(181,123,255,.18); color: #C79BFF; }
html[data-appearance="dark"][data-os="ios"] .ap-ep-play.current { background: #A15BFF; color: #FFF; }
html[data-appearance="dark"][data-os="ios"] .ap-btn-glass { background: rgba(120,120,128,.24); color: #C79BFF; border-color: rgba(255,255,255,.08); }
html[data-appearance="dark"][data-os="ios"] .ap26-progress-pill { background: rgba(181,123,255,.2); color: #C79BFF; }
html[data-appearance="dark"][data-os="ios"] .ap26-avatar { background: #2C2C2E; }
html[data-appearance="dark"][data-os="ios"] .note-doc-title,
html[data-appearance="dark"][data-os="ios"] .note-doc-h3 { color: #FFFFFF; }
html[data-appearance="dark"][data-os="ios"] .note-doc-p { color: rgba(255,255,255,.86); }
html[data-appearance="dark"][data-os="ios"] .note-doc-quote { color: rgba(235,235,245,.72); border-left-color: #FFD60A; }
html[data-appearance="dark"][data-os="ios"] .ios-cal-widget { background: #1C1C1E; color: #FFFFFF; }
html[data-appearance="dark"][data-os="ios"] .ph-strip button { background: #1C1C1E; }

/* WeChat dark (iOS & Android 8.0.x) */
html[data-appearance="dark"] .wx { background: #111111; color: rgba(255,255,255,.88); }
html[data-appearance="dark"] .wx.wx-white,
html[data-appearance="dark"] .wx-mo-feed { background: #191919; }
html[data-appearance="dark"] .wx-nav,
html[data-appearance="dark"] .wx-nav.white { background: #111111; }
html[data-appearance="dark"] .wx-nav.overlay { background: transparent; }
html[data-appearance="dark"] .wx-nav-title { color: rgba(255,255,255,.9); }
html[data-appearance="dark"] .wx-nav-btn { color: rgba(255,255,255,.9); }
html[data-appearance="dark"] .wx-searchbar { background: #111111; }
html[data-appearance="dark"] .wx-searchbar span { background: #202020; color: #5F5F5F; }
html[data-appearance="dark"] .wx-list,
html[data-appearance="dark"] .wx-conv,
html[data-appearance="dark"] .wx-cells,
html[data-appearance="dark"] .wx-card-head,
html[data-appearance="dark"] .wx-me-head { background: #191919; }
html[data-appearance="dark"] .wx-conv.pinned { background: #232323; }
html[data-appearance="dark"] .wx-conv + .wx-conv::before,
html[data-appearance="dark"] .wx-cell + .wx-cell::before,
html[data-appearance="dark"] .wx-crow + .wx-crow::before,
html[data-appearance="dark"] .wx-drow + .wx-drow::before { background: #2A2A2A; }
html[data-appearance="dark"] .wx-conv-name,
html[data-appearance="dark"] .wx-cell,
html[data-appearance="dark"] .wx-crow,
html[data-appearance="dark"] .wx-drow,
html[data-appearance="dark"] .wx-me-name,
html[data-appearance="dark"] .wx-card-name { color: rgba(255,255,255,.88); }
html[data-appearance="dark"] .wx-conv-msg,
html[data-appearance="dark"] .wx-conv-time,
html[data-appearance="dark"] .wx-time,
html[data-appearance="dark"] .wx-me-id,
html[data-appearance="dark"] .wx-card-line,
html[data-appearance="dark"] .wx-cell-sub { color: #6B6B6B; }
html[data-appearance="dark"] .wx-letter,
html[data-appearance="dark"] .wx-white .wx-cells { background: #111111; border-top-color: #111111; color: #6B6B6B; }
html[data-appearance="dark"] .wx-white .wx-cells { background: #191919; }
html[data-appearance="dark"] .wx-tabbar { background: #191919; border-top-color: #2B2B2B; }
html[data-appearance="dark"] .wx-tabbar button { color: rgba(255,255,255,.88); }
html[data-appearance="dark"] .wx-tabbar button.on { color: #07C160; }
html[data-appearance="dark"] .wx-messages { background: #111111; }
html[data-appearance="dark"] .wx-bubble { background: #2C2C2C; color: rgba(255,255,255,.86); }
html[data-appearance="dark"] .wx-bubble::before { border-right-color: #2C2C2C; }
html[data-appearance="dark"] .wx-msg.me .wx-bubble { background: #3EB575; color: rgba(0,0,0,.9); }
html[data-appearance="dark"] .wx-msg.me .wx-bubble::before { border-left-color: #3EB575; border-right-color: transparent; }
html[data-appearance="dark"] .wx-card { background: #2C2C2C; }
html[data-appearance="dark"] .wx-card-title { color: rgba(255,255,255,.86); }
html[data-appearance="dark"] .wx-card-src { border-top-color: #3A3A3A; color: #6B6B6B; }
html[data-appearance="dark"] .wx-composer { background: #1E1E1E; border-top-color: #2B2B2B; }
html[data-appearance="dark"] .wx-input { background: #2C2C2C; color: #FFFFFF; }
html[data-appearance="dark"] .wx-cbtn { color: rgba(255,255,255,.82); }
html[data-appearance="dark"] .wx-post { border-bottom-color: #2A2A2A; }
html[data-appearance="dark"] .wx-post-name { color: #7D90A9; }
html[data-appearance="dark"] .wx-post-text { color: rgba(255,255,255,.82); }
html[data-appearance="dark"] .wx-post-likes,
html[data-appearance="dark"] .wx-post-link,
html[data-appearance="dark"] .wx-post-op { background: #202020; }
html[data-appearance="dark"] .wx-me-status { border-color: #3A3A3A; color: #6B6B6B; }
html[data-appearance="dark"] .wx-chev { color: #4A4A4A; }
html[data-appearance="dark"] .wx-moments::after { background: rgba(25,25,25,.94); }

/* Android 16 dark (Material 3 Expressive dark scheme) */
html[data-appearance="dark"][data-os="android"] #pocket-sheet,
html[data-appearance="dark"][data-os="android"] .as-shot,
html[data-appearance="dark"][data-os="android"] .as-snap { background: #141218; }
html[data-appearance="dark"][data-os="android"] .m3-app,
html[data-appearance="dark"][data-os="android"] .and-settings,
html[data-appearance="dark"][data-os="android"] .pgames { background: #141218 !important; color: #E6E0E9; }
html[data-appearance="dark"][data-os="android"] .m3-icon-btn { color: #CAC4D0; }
html[data-appearance="dark"][data-os="android"] .m3-topbar-title,
html[data-appearance="dark"][data-os="android"] .m3-large-title,
html[data-appearance="dark"][data-os="android"] .pg-logo,
html[data-appearance="dark"][data-os="android"] .m3-list-title,
html[data-appearance="dark"][data-os="android"] .m3-ep-title,
html[data-appearance="dark"][data-os="android"] .m3-cat,
html[data-appearance="dark"][data-os="android"] .m3-show-title,
html[data-appearance="dark"][data-os="android"] .m3-np-title,
html[data-appearance="dark"][data-os="android"] .gm-list.and .gm-row,
html[data-appearance="dark"][data-os="android"] .gm-hscroll.and .gm-tile { color: #E6E0E9; }
html[data-appearance="dark"][data-os="android"] .m3-section-head,
html[data-appearance="dark"][data-os="android"] .m3-list-sub,
html[data-appearance="dark"][data-os="android"] .m3-ep-sub,
html[data-appearance="dark"][data-os="android"] .m3-mini-sub,
html[data-appearance="dark"][data-os="android"] .m3-card-sub,
html[data-appearance="dark"][data-os="android"] .m3-show-desc,
html[data-appearance="dark"][data-os="android"] .m3-sort-row,
html[data-appearance="dark"][data-os="android"] .m3-np-times { color: #CAC4D0; }
html[data-appearance="dark"][data-os="android"] .m3-searchbar { background: #2B2930; color: #CAC4D0; }
html[data-appearance="dark"][data-os="android"] .m3-searchbar-ph { color: #CAC4D0; }
html[data-appearance="dark"][data-os="android"] .m3-navbar { background: #211F26; }
html[data-appearance="dark"][data-os="android"] .m3-nav-item { color: #CAC4D0; }
html[data-appearance="dark"][data-os="android"] .m3-nav-item.active { color: #E6E0E9; }
html[data-appearance="dark"][data-os="android"] .m3-nav-item.active .m3-nav-pill { background: #4A4458; color: #E8DEF8; }
html[data-appearance="dark"][data-os="android"] .m3-list.grouped,
html[data-appearance="dark"][data-os="android"] .m3-card,
html[data-appearance="dark"][data-os="android"] .m3-cat { background: #211F26; border-color: #49454F; }
html[data-appearance="dark"][data-os="android"] .m3-card.tonal,
html[data-appearance="dark"][data-os="android"] .m3-card.filled,
html[data-appearance="dark"][data-os="android"] .m3-miniplayer { background: #2B2930; }
html[data-appearance="dark"][data-os="android"] .m3-chip { border-color: #938F99; color: #CAC4D0; }
html[data-appearance="dark"][data-os="android"] .m3-chip.selected { background: #4A4458; border-color: #4A4458; color: #E8DEF8; }
html[data-appearance="dark"][data-os="android"] .m3-btn.filled,
html[data-appearance="dark"][data-os="android"] .m3-fab.small { background: #D0BCFF; color: #381E72; }
html[data-appearance="dark"][data-os="android"] .m3-btn.tonal,
html[data-appearance="dark"][data-os="android"] .m3-icon-btn.tonal,
html[data-appearance="dark"][data-os="android"] .gm-list.and .gm-play-btn { background: #4A4458; color: #E8DEF8; }
html[data-appearance="dark"][data-os="android"] .m3-np { background: linear-gradient(180deg, #2E2442, #141218 62%); color: #E6E0E9; }
html[data-appearance="dark"][data-os="android"] .m3-np-play { background: #D0BCFF; color: #381E72; }
html[data-appearance="dark"][data-os="android"] .m3-ep-title.current,
html[data-appearance="dark"][data-os="android"] .m3-show-host,
html[data-appearance="dark"][data-os="android"] .m3-np-show { color: #D0BCFF; }
html[data-appearance="dark"][data-os="android"] .m3-slider.wavy { background: linear-gradient(#4A4458, #4A4458) center / 100% 4px no-repeat !important; }
html[data-appearance="dark"][data-os="android"] .keep,
html[data-appearance="dark"][data-os="android"] .keep-card { background: #202124 !important; color: #E8EAED; }
html[data-appearance="dark"][data-os="android"] .keep-card { border-color: #5F6368; }
html[data-appearance="dark"][data-os="android"] .keep-card-body,
html[data-appearance="dark"][data-os="android"] .keep-edited { color: #BDC1C6; }
html[data-appearance="dark"][data-os="android"] .keep .m3-searchbar,
html[data-appearance="dark"][data-os="android"] .keep-bottombar { background: #303134; }
html[data-appearance="dark"][data-os="android"] .keep-fab { background: #303134; color: #8AB4F8; }
html[data-appearance="dark"][data-os="android"] .keep-doc-title,
html[data-appearance="dark"][data-os="android"] .keep-doc-body { color: #E8EAED; }
html[data-appearance="dark"][data-os="android"] .keep-editbar { border-top-color: #303134; }
html[data-appearance="dark"][data-os="android"] .gphotos { background: #131314 !important; }
html[data-appearance="dark"][data-os="android"] .gp-logo span,
html[data-appearance="dark"][data-os="android"] .gp-date,
html[data-appearance="dark"][data-os="android"] .gp-album b { color: #E3E3E3; }

/* Podcasts has no floating top bar: the scroll-edge blur only covers the status bar */
.ios-lg-page.ap26::before { height: calc(var(--sys-top) + 2px) !important; }
html[data-appearance="dark"][data-os="ios"] .ios-lg-opt,
html[data-appearance="dark"][data-os="ios"] .ios-appearance-opt { color: #FFFFFF; }
html[data-appearance="dark"][data-os="ios"] .ios-radio { border-color: #5A5A5E; }
html[data-appearance="dark"][data-os="ios"] .ios-radio.on { background: #0A84FF; border-color: #0A84FF; }

/* ============================================================================
   ROUND-2 REALISM FIXES (independent audit vs real iPhone)
   ============================================================================ */
/* Hardware layer: island / punch-hole always on top of animating cards & switcher */
#hw-layer { position: absolute; left: 0; right: 0; top: 0; height: var(--sys-top); z-index: 100; pointer-events: none; }
.hw-cutout { position: absolute; left: 50%; transform: translateX(-50%); background: #000; }
html[data-os="ios"] .hw-cutout { top: 11px; width: 124px; height: 36px; border-radius: 20px; }
html[data-os="android"] .hw-cutout { top: 13px; width: 13px; height: 13px; border-radius: 50%; background: #08080A; }
.hw-status { position: absolute; inset: 0; opacity: 0; transition: opacity .12s; }
#pocket-viewport.show-status .hw-status { opacity: 1; }
.hw-status .mob-sys-bar { position: absolute; }
html[data-device="real"] #hw-layer { display: none; }

/* Home screen recedes (zoomed out, dimmed, blurred) behind an app and springs back on Home */
#pocket-os::after { backdrop-filter: blur(calc(var(--home-dim, 0) * 30px)); -webkit-backdrop-filter: blur(calc(var(--home-dim, 0) * 30px)); }
#pocket-viewport > #pocket-sheet.gesturing { box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5) !important; }

/* App Switcher: no status bar, ~56% cards offset by half a card so every label shows */
.as-ios .as-card + .as-card { margin-left: calc(var(--cw) * -0.5); }
.as-ios .as-track { padding: 0 calc(50% - var(--cw) * 0.62) 0 calc(50% - var(--cw) * 0.38); }
.as-backdrop { backdrop-filter: blur(44px) saturate(140%) brightness(0.6); -webkit-backdrop-filter: blur(44px) saturate(140%) brightness(0.6); }
.as-shot { border-radius: 26px; }
#pocket-os.under-switcher .android-home-bottom,
#pocket-os.under-switcher .mob-grid.android,
#pocket-os.under-switcher .android-glance { opacity: 0; transition: opacity .18s; }

/* Android media notification icon next to the clock while audio plays */
.and-sb-notif { display: inline-flex; margin-left: 7px; vertical-align: -1px; opacity: .92; }

/* Edge-to-edge: bottom bars extend under the home indicator / gesture handle */
#pocket-sheet .pocket-sheet-body > :not(.ios-lg-page) { padding-bottom: 0 !important; }
#pocket-sheet .wx-tabbar { height: calc(56px + var(--sys-bottom)); padding-bottom: var(--sys-bottom); box-sizing: border-box; }
#pocket-sheet .wx-composer { padding-bottom: calc(8px + var(--sys-bottom)); }
#pocket-sheet .m3-navbar { height: calc(80px + var(--sys-bottom)); padding-bottom: var(--sys-bottom); box-sizing: border-box; }
#pocket-sheet .keep-bottombar { height: calc(72px + var(--sys-bottom)); padding-bottom: var(--sys-bottom); box-sizing: border-box; }
#pocket-sheet .keep-editbar { height: calc(52px + var(--sys-bottom)); padding-bottom: var(--sys-bottom); box-sizing: border-box; }
#pocket-sheet .gp-viewer-bar { padding-bottom: calc(4px + var(--sys-bottom)); }
#pocket-sheet .and-player-ctrl { padding-bottom: calc(14px + var(--sys-bottom)); }
#pocket-sheet .m3-scroll:last-child { padding-bottom: calc(16px + var(--sys-bottom)); }
#pocket-sheet .wx-scroll:last-child { padding-bottom: var(--sys-bottom); }
#pocket-sheet .wx-chatpage .wx-messages { padding-bottom: 16px; }
#pocket-sheet .win-explorer, #pocket-sheet .gm-run { padding-bottom: 0; }
html[data-os="android"] #pocket-sheet .keep-fab { top: -28px; }

/* Podcasts 继续播放: fixed-width paging items so titles ellipsize and the next item peeks */
.ap26-resume { flex: 0 0 300px; width: 300px; min-width: 0; }
.ap26-ep-card, .ap26-show-tile { min-width: 0; }

/* Display & Brightness thumbnails = mini Home Screens with the time; selection by checkmark only */
.ios-phone { width: 70px; height: 148px; border-radius: 14px; border: 2.5px solid #1C1C1E !important; background: url("./assets/wallpapers/scene-01-lake.webp") 42% center / cover; position: relative; overflow: hidden; }
.ios-phone.dark { filter: brightness(.55); }
.ios-phone::after { display: none; }
.ios-phone b { position: absolute; left: 0; right: 0; top: 16px; text-align: center; color: #FFF; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ios-phone i { position: absolute; left: 9px; right: 9px; top: 46px; height: 64px; background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.88) 0 5.4px, transparent 5.8px); background-size: 25% 33.3%; opacity: .9; }
.ios-appearance-opt.on .ios-phone { border-color: #1C1C1E !important; }
html[data-appearance="dark"] .ios-phone { border-color: #3A3A3C !important; }

/* Dark appearance reaches the Home Screen and the glass */
html[data-appearance="dark"][data-os="ios"] #os-wallpaper-bg,
html[data-appearance="dark"][data-os="ios"] #os-solar-canvas,
html[data-appearance="dark"][data-os="android"] #os-wallpaper-bg,
html[data-appearance="dark"][data-os="android"] #os-solar-canvas { filter: brightness(.7); }
html[data-appearance="dark"][data-os="ios"] .ios-dock { background: rgba(40,40,44,.34) !important; border-color: rgba(255,255,255,.14) !important; box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 1px 1px 0 rgba(255,255,255,.16) !important; }
html[data-appearance="dark"][data-os="ios"] .ios-search-pill { background: rgba(40,40,44,.42); border-color: rgba(255,255,255,.12); }
html[data-appearance="dark"][data-os="android"] .android-gsearch { background: rgba(31,31,31,.92); }
html[data-appearance="dark"][data-os="android"] .android-gsearch-ph { color: #C4C7C5; }
html[data-appearance="dark"][data-os="android"] .and-set-ic,
html[data-appearance="dark"][data-os="android"] .m3-cat-ic { filter: invert(1) hue-rotate(180deg) saturate(1.3); }
/* Dark Liquid Glass: softer, more translucent, specular top-left rim instead of a uniform ring */
html[data-appearance="dark"][data-os="ios"] .ios-lg-pill:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-orb:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-tabcapsule:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-sideorb:not(.dark-orb),
html[data-appearance="dark"][data-os="ios"] .ios-lg-miniplayer,
html[data-appearance="dark"][data-os="ios"] .ios-lg-searchcapsule {
  background: rgba(28,28,30,.46);
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.42), inset 1.2px 1.2px .6px rgba(255,255,255,.22), inset -.6px -.6px .6px rgba(255,255,255,.06);
}
html[data-appearance="dark"][data-lg-chrome="tinted"][data-os="ios"] .ios-lg-tabcapsule:not(.dark),
html[data-appearance="dark"][data-lg-chrome="tinted"][data-os="ios"] .ios-lg-miniplayer { background: rgba(28,28,30,.86); }
#pocket-os.under-switcher .mob-home-top { opacity: 0; }

/* ============================================================================
   ROUND-3 REALISM FIXES
   ============================================================================ */
/* App Switcher: cards sit high (~15%), older cards compress and recede, heavy dim+blur backdrop */
.as-ios .as-track { align-items: flex-start; padding-top: calc(13% + 46px); }
.as-ios .as-card { margin-top: 0; }
.as-ios .as-card .as-shot { transform: scale(var(--as-sc, 1)); transform-origin: 0% 50%; }
.as-backdrop { background: rgba(10, 12, 16, 0.38); }
#pocket-os.under-switcher > .ios-home,
#pocket-os.under-switcher > .ios-home-bottom { filter: blur(26px) saturate(70%) brightness(.62); transition: filter .2s; }
.as-android .as-label { gap: 0; }

/* iOS never shows the home indicator on the Home Screen (the gesture zone stays) */
html[data-os="ios"] #pocket-os .mob-home-bar { opacity: 0 !important; }

/* Android: home icons stay opaque behind the card (scale only), roomier hotseat → search bar */
html[data-os="android"] #pocket-os::after { opacity: 0 !important; }
.android-dock { margin-bottom: 22px; }
.ios-island.live { width: 174px; }

/* Liquid Glass reads as glass: no uniform outline, directional specular rim, more see-through */
.ios-lg-pill, .ios-lg-orb, .ios-lg-tabcapsule, .ios-lg-sideorb, .ios-lg-miniplayer, .ios-lg-searchcapsule, .ios-dock, .ios-search-pill {
  border-color: transparent !important;
}
.ios-lg-pill:not(.dark), .ios-lg-orb:not(.dark), .ios-lg-tabcapsule:not(.dark), .ios-lg-sideorb:not(.dark-orb), .ios-lg-miniplayer, .ios-lg-searchcapsule {
  box-shadow: 0 10px 28px rgba(0,0,0,.12), inset 1.4px 1.4px .8px rgba(255,255,255,.95), inset -1px -1px .8px rgba(255,255,255,.45), inset 0 0 0 .5px rgba(0,0,0,.04);
}
.ios-dock { box-shadow: 0 14px 34px rgba(0,0,0,.2), inset 1.4px 1.6px 1px rgba(255,255,255,.7), inset -1px -1px 1px rgba(255,255,255,.18) !important; }
.ios-search-pill { box-shadow: inset 1px 1px .6px rgba(255,255,255,.55), inset -.6px -.6px .6px rgba(255,255,255,.15); }
.ap26 .ios-lg-miniplayer, .ap26 .ios-lg-tabcapsule { background: rgba(250,250,252,.58); }
html[data-appearance="dark"][data-os="ios"] .ap26 .ios-lg-miniplayer,
html[data-appearance="dark"][data-os="ios"] .ap26 .ios-lg-tabcapsule { background: rgba(36,36,40,.4); }
html[data-appearance="dark"][data-os="ios"] .ios-lg-pill:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-orb:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-tabcapsule:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-sideorb:not(.dark-orb),
html[data-appearance="dark"][data-os="ios"] .ios-lg-miniplayer,
html[data-appearance="dark"][data-os="ios"] .ios-lg-searchcapsule {
  box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 1.2px 1.2px .6px rgba(255,255,255,.2), inset -.6px -.6px .6px rgba(255,255,255,.05) !important;
}
/* Podcasts: no blurred smudge under the mini player — just a soft scroll-edge fade */
.ios-lg-page.ap26::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; height: calc(var(--sys-bottom) + 120px) !important; }
html[data-appearance="dark"][data-os="ios"] .ap26-progress-pill { background: #2C2C2E; color: #B57BFF; }
html[data-appearance="dark"][data-os="ios"] .ap26-progress-pill i { background: rgba(181,123,255,.3); }

/* Dark appearance dims the wallpaper (inset shadow paints over the wallpaper, under the icons) */
@media (max-width: 559px) {
  html[data-appearance="dark"][data-os="ios"] #pocket-os,
  html[data-appearance="dark"][data-os="android"] #pocket-os { box-shadow: inset 0 0 0 2000px rgba(0,0,0,.26); }
}
@media (min-width: 560px) {
  html[data-appearance="dark"][data-os="ios"] #pocket-os,
  html[data-appearance="dark"][data-os="android"] #pocket-os { box-shadow: inset 0 0 0 2000px rgba(0,0,0,.26), 0 26px 68px rgba(0,0,0,.46), 0 0 0 8px #1B1C20, 0 0 0 9.5px rgba(255,255,255,.24); }
}
html[data-appearance="dark"][data-os="ios"] .ios-widget2.default { background: linear-gradient(160deg, color-mix(in srgb, var(--pod-tint, #4B5058) 70%, #000), color-mix(in srgb, var(--pod-tint, #4B5058) 52%, #000)); }
html[data-appearance="dark"][data-os="android"] .m3-list-ic { background: #4A4458; color: #E8DEF8; }
html[data-os="android"] .keep-fab { border-radius: 16px; background: #C2E7FF; color: #001D35; box-shadow: 0 3px 8px rgba(0,0,0,.18); }
html[data-appearance="dark"][data-os="android"] .keep-fab { background: #004A77; color: #C2E7FF; }

/* Appearance thumbnails: rounded-square icon grid like the real preview */
.ios-phone i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='21' viewBox='0 0 13 21'%3E%3Crect x='1.5' y='1.5' width='10' height='10' rx='2.6' fill='white' fill-opacity='.9'/%3E%3C/svg%3E"); background-size: 13px 21px; left: 9px; right: 9px; opacity: 1; }

/* ============================================================================
   ROUND-4 POLISH (after audit R3)
   ============================================================================ */
/* Hardware cutout only needed when no status bar is drawn (App Switcher); avoids clipping the Live Activity art */
.hw-cutout { display: none; }
#app-switcher.open ~ #hw-layer .hw-cutout { display: block; }
.ios-island.live img { border-radius: 6px; }

/* App Switcher depth: blurred home (dock blobs visible), cards behind dimmed, front card casts a shadow */
.as-backdrop { background: rgba(10, 12, 16, 0.2); }
#pocket-os.under-switcher > .ios-home,
#pocket-os.under-switcher > .ios-home-bottom { filter: blur(22px) saturate(85%) brightness(.8); }
.as-ios .as-card .as-shot { filter: brightness(var(--as-dim, 1)); box-shadow: -14px 0 36px rgba(0, 0, 0, 0.42), 0 18px 50px rgba(0, 0, 0, 0.3); }

/* iOS 26 Home search pill: small */
.ios-search-pill { width: 66px; height: 26px; font-size: 12px; gap: 3px; margin-bottom: 14px; }

/* iOS 26 switch: wider track with a pill-shaped glass thumb */
.ios-switch { width: 64px; height: 28px; }
.ios-switch::after { width: 38px; height: 24px; border-radius: 12px; top: 2px; left: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.16), inset 0 .5px 0 rgba(255,255,255,.9); }
.ios-switch.on::after { left: 24px; }

/* Dark Liquid Glass: smoky see-through grey with a bright edge, not near-black discs */
html[data-appearance="dark"][data-os="ios"] .ios-lg-pill:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-orb:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-tabcapsule:not(.dark),
html[data-appearance="dark"][data-os="ios"] .ios-lg-sideorb:not(.dark-orb),
html[data-appearance="dark"][data-os="ios"] .ios-lg-miniplayer,
html[data-appearance="dark"][data-os="ios"] .ios-lg-searchcapsule,
html[data-appearance="dark"][data-os="ios"] .ap26 .ios-lg-miniplayer,
html[data-appearance="dark"][data-os="ios"] .ap26 .ios-lg-tabcapsule {
  background: rgba(64, 64, 70, 0.36) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.4), inset 1.4px 1.4px .8px rgba(255,255,255,.3), inset -.8px -.8px .8px rgba(255,255,255,.08) !important;
}
html[data-appearance="dark"][data-lg-chrome="tinted"][data-os="ios"] .ios-lg-tabcapsule:not(.dark),
html[data-appearance="dark"][data-lg-chrome="tinted"][data-os="ios"] .ios-lg-miniplayer { background: rgba(44, 44, 48, 0.86) !important; }

/* Android: lighter dark wallpaper dim, muted dark tonal icons, aligned Settings title */
@media (max-width: 559px) {
  html[data-appearance="dark"][data-os="android"] #pocket-os { box-shadow: inset 0 0 0 2000px rgba(0,0,0,.16); }
}
html[data-appearance="dark"][data-os="android"] .and-set-ic,
html[data-appearance="dark"][data-os="android"] .m3-cat-ic { filter: invert(1) hue-rotate(180deg) saturate(.8) brightness(1.25); }
.and-settings .m3-large-title { padding-left: 4px; padding-right: 4px; }
html[data-os="android"] .android-gsearch { background: color-mix(in srgb, #EEF3F1 88%, #5E8A86); }

/* ============================================================================
   REAL PHONE IN A BROWSER — Safari 26 / Chrome chrome tint + auto-hiding home indicator
   ============================================================================ */
/* Thin fixed bars touching the viewport edges: Safari 26 samples their colour for its
   status-bar band and toolbar band (theme-color is ignored). Colour = what's under the edge. */
/* 14px tall so WebKit's ~4px-inset edge hit-test lands on it; masked so only the outer 3px is
   actually painted (the colour equals what's beneath, so even that is invisible) */
.edge-probe { position: fixed; left: 0; right: 0; height: 14px; z-index: 2147483000; pointer-events: auto; touch-action: none; }
.edge-probe.top { top: 0; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 3px, transparent 14px); mask-image: linear-gradient(180deg, #000 0, #000 3px, transparent 14px); }
.edge-probe.bottom { bottom: 0; -webkit-mask-image: linear-gradient(0deg, #000 0, #000 3px, transparent 14px); mask-image: linear-gradient(0deg, #000 0, #000 3px, transparent 14px); }
html[data-device="sim"] .edge-probe { display: none; }
/* The OS already draws a home indicator below the browser toolbar — ours only peeks */
html[data-device="real"] #pocket-sheet .mob-home-ind { opacity: 0; transition: opacity .5s ease .1s; }
html[data-device="real"] #pocket-sheet.ind-peek .mob-home-ind { opacity: 1; transition: opacity .18s ease; }
html[data-device="real"] #pocket-sheet.gesturing .mob-home-ind { opacity: 0; }
