/* Generated by scripts/build-css-variants.py — do not edit. Source: src/styles/player.css */
  /* 底栏 Dock：贴底全宽，默认展开；FAB 收起后为微信风贴边竖向胶囊 */
  #dockFab {
    position: fixed; left: 0; top: 50%; z-index: 25;
    box-sizing: border-box;
    width: 50px; height: 84px; margin: 0; padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(36, 40, 48, 0.82);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
    cursor: pointer;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s, border-color .2s, opacity .28s, transform 80ms ease-out, border-radius .18s ease, box-shadow .18s ease;
    transform-origin: center center;
    overflow: visible;
  }
  #dockFab::before,
  #dockFab::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    border: 3px solid rgba(255, 255, 255, 0.88);
    box-sizing: border-box;
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.5),
      0 0 16px rgba(96, 165, 250, 0.45);
  }
  #dockFab.is-appearing {
    animation: fabAppearGlow 0.75s ease-out forwards;
    transition: none;
  }
  #dockFab.is-appearing::before {
    animation: fabAppearRipple 0.85s cubic-bezier(.22,.61,.36,1) forwards;
  }
  #dockFab.is-appearing::after {
    animation: fabAppearRippleSecondary 0.85s cubic-bezier(.22,.61,.36,1) 0.28s forwards;
  }
  body.dock-collapsed #dockFab {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: ns-resize;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.dock-collapsed #dockFab:not(.is-dragging) {
    border-radius: 14px 5px 5px 14px;
    border-right-color: transparent;
    border-right-width: 0;
    align-items: flex-start;
    padding: 12px 0 12px 8px;
    background: linear-gradient(270deg, rgba(36, 40, 48, 0.92) 0%, rgba(44, 48, 58, 0.86) 100%);
    box-shadow:
      -4px 0 20px rgba(0, 0, 0, 0.38),
      inset 1px 0 0 rgba(255, 255, 255, 0.14);
  }
  body.dock-collapsed #dockFab:not(.is-dragging) #dockFabDot {
    left: 10px;
    margin-left: 0;
  }
  body.dock-collapsed #dockFab:not(.is-dragging) #dockFabIcon {
    margin-left: 5px;
  }
  body.live.dock-collapsed #dockFab:not(.is-dragging) {
    border-color: rgba(52, 211, 153, 0.42);
    border-right-color: transparent;
    box-shadow:
      -4px 0 20px rgba(0, 0, 0, 0.38),
      0 0 14px rgba(52, 211, 153, 0.22),
      inset 1px 0 0 rgba(167, 243, 208, 0.2);
  }
  body.idle.dock-collapsed #dockFab:not(.is-appearing):not(.is-dragging) {
    animation: fabIdleBreath 2.2s ease-in-out infinite;
  }
  body.app-cast-touch.dock-collapsed #dockFab {
    touch-action: none;
    cursor: ns-resize;
  }
  body.dock-collapsed #dockFab.is-dragging {
    cursor: grabbing;
  }
  #dockFab.is-dragging {
    cursor: grabbing;
    z-index: 9999;
    opacity: 0.94;
    border-radius: 999px !important;
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(0,0,0,.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: background .2s, border-color .2s, opacity .08s ease, transform .08s ease, box-shadow .08s ease;
  }
  #dockFab.is-pressed:not(.is-dragging) {
    transform: scale(0.94);
    background: rgba(255,255,255,.14);
  }
  body.dock-expanded #dockFab {
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: none;
  }
  body.dock-animating.dock-expanded #dockFab {
    visibility: visible !important;
    pointer-events: none !important;
  }
  #dockFabDot {
    display: none !important;
    position: absolute; top: 10px; left: 50%;
    width: 8px; height: 8px; margin-left: -4px;
    border-radius: 50%;
    background: #9ca3af; pointer-events: none;
  }
  body.live #dockFabDot {
    background: #34d399;
    animation: none;
  }
  body.connecting #dockFabDot, body.reconnecting #dockFabDot {
    background: #f0b429;
    animation: none;
  }
  body.error #dockFabDot { background: #f87171; animation: none; }
  #dockFabDot.pulse-once { animation: pulseLiveOnce .65s ease-out 1; }
  #dockFabDot.pulse-once-amber { animation: pulseAmberOnce .65s ease-in-out 1; }
  #dockFabIcon {
    display: block;
    width: 3px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0;
    line-height: 0;
    color: transparent;
    pointer-events: none;
    flex-shrink: 0;
  }
  #dockFab.is-pressed:not(.is-dragging) #dockFabIcon {
    background: rgba(255, 255, 255, 0.94);
  }
  #dockFab.is-dragging #dockFabIcon {
    background: rgba(255, 255, 255, 0.9);
  }
  #dockPanel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 24;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(100%);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
    will-change: transform, opacity;
  }
  body.dock-animating #dockPanel {
    transition: none !important;
    visibility: visible !important;
  }
  body.dock-expanded #dockPanel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
    padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  body:not(.dock-expanded):not(.dock-animating) #dockPanel {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(100%) !important;
    box-shadow: none !important;
  }
  #dockRow {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    align-items: center; gap: var(--dock-gap);
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #castDesktopDockBtn,
  #appLayoutBtn {
    width: var(--dock-tile-lg);
    height: var(--dock-tile-lg);
    min-width: var(--dock-tile-lg);
    max-width: var(--dock-tile-lg);
    padding: 0;
    flex-shrink: 0;
    position: relative;
    background: var(--dock-bg-group);
    border: 1px solid var(--dock-border-group);
    border-radius: var(--dock-r-group);
    color: var(--dock-text-active);
    box-shadow: none;
  }
  #appLayoutBtn.on {
    background: var(--dock-bg-group);
    border-color: var(--dock-border-group);
    box-shadow: none;
  }
  #castDesktopDockBtn .dock-glyph,
  #appLayoutBtn .dock-glyph,
  #appLayoutBtn.on .dock-glyph,
  #screenPowerBtn .dock-glyph {
    opacity: 0.78;
  }
  #castDesktopDockBtn:focus-visible .dock-glyph,
  #appLayoutBtn:focus-visible .dock-glyph,
  #screenPowerBtn:focus-visible .dock-glyph,
  #screenPowerBtn.on .dock-glyph {
    opacity: 1;
  }
  #dockRowCenter,
  .dock-row-center {
    flex: 1 1 auto;
    display: flex; flex-direction: row; flex-wrap: nowrap;
    align-items: center; gap: var(--dock-gap);
    min-width: 0;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #dockRowCenter::-webkit-scrollbar { display: none; }
  #dockRowCenter.dock-scroll-fade-left {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px);
    mask-image: linear-gradient(90deg, transparent 0, #000 18px);
  }
  #dockRowCenter.dock-scroll-fade-right {
    -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 18px);
    mask-image: linear-gradient(270deg, transparent 0, #000 18px);
  }
  #dockRowCenter.dock-scroll-fade-left.dock-scroll-fade-right {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }
  #dockRowCenter > #unlock,
  #dockRowCenter > #teslaBrowserFullscreenBtn,
  #dockRowCenter > #screenPowerBtn,
  #dockRowCenter > #castDesktopDockBtn,
  #dockRowCenter > #appLayoutBtn,
  #dockRowCenter > #orientPrimary,
  #dockRowCenter > #orientSecondary,
  #dockRowCenter > #dualPaneSwapBtn,
  #dockRowCenter > #dockClose,
  #dockRowCenter > #appSwitchBtn,
  #dockRowCenter > #appQuickSwitch { flex: 0 0 auto; }
  #dockRowTrailing,
  .dock-row-trailing {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
    flex-shrink: 0;
  }
  .dock-fps-cluster {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0 2px 0 8px;
    font: 600 22px/1.2 -apple-system, "PingFang SC", sans-serif;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
  }
  .dock-fps-slot {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
  }
  .dock-fps-label {
    font-size: 20px;
    font-weight: 700;
    opacity: 0.55;
  }
  .dock-fps-value {
    display: inline-block;
    box-sizing: content-box;
    min-width: 5ch;
    width: 5ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .dock-fps-slot.is-ok .dock-fps-value { color: #34d399; }
  .dock-fps-slot.is-warn .dock-fps-value { color: #f0b429; }
  .dock-fps-slot.is-bad .dock-fps-value { color: #f87171; }
  .dock-fps-slot.is-idle .dock-fps-value { color: rgba(255, 255, 255, 0.32); }
  body.app-cast-touch.dual-app #dockRowCenter {
    justify-content: center;
  }
  #dockFabPreview {
    position: fixed; left: 12px; top: auto; bottom: 72px; z-index: 25;
    box-sizing: border-box; max-width: min(80vw, 280px);
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(28, 32, 40, 0.72);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: rgba(255,255,255,.85);
    font: 500 13px/1.45 -apple-system, "PingFang SC", sans-serif;
    white-space: pre-line;
    box-shadow: 0 6px 20px rgba(0,0,0,.45);
    pointer-events: none;
    transform-origin: bottom left;
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(.22,.61,.36,1);
  }
  #dockFabPreview.is-shown {
    opacity: 1;
    transform: scale(1);
  }
  #dockFabPreview.hide { display: none; }
  body.dock-expanded #dockFabPreview { display: none !important; }
  @keyframes pulseLiveOnce {
    0% { box-shadow: 0 0 0 0 rgba(52,211,153,.45); }
    70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
  }
  @keyframes pulseAmberOnce {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
  }
  @keyframes fabAppearRipple {
    0% {
      opacity: 1;
      transform: scale(1);
      border-color: rgba(255, 255, 255, 0.98);
      box-shadow:
        0 0 0 0 rgba(255, 255, 255, 0.65),
        0 0 22px rgba(96, 165, 250, 0.62);
    }
    45% {
      opacity: 0.82;
      border-color: rgba(147, 197, 253, 0.88);
    }
    100% {
      opacity: 0;
      transform: scale(1.55);
      border-color: rgba(255, 255, 255, 0);
      box-shadow:
        0 0 0 16px rgba(255, 255, 255, 0),
        0 0 40px rgba(96, 165, 250, 0);
    }
  }
  @keyframes fabAppearRippleSecondary {
    0% {
      opacity: 0.92;
      transform: scale(0.96);
      border-color: rgba(191, 219, 254, 0.95);
      box-shadow:
        0 0 0 0 rgba(147, 197, 253, 0.55),
        0 0 16px rgba(59, 130, 246, 0.48);
    }
    100% {
      opacity: 0;
      transform: scale(1.42);
      border-color: rgba(147, 197, 253, 0);
      box-shadow:
        0 0 0 14px rgba(147, 197, 253, 0),
        0 0 32px rgba(59, 130, 246, 0);
    }
  }
  @keyframes fabAppearGlow {
    0% {
      transform: scale(1);
      border-color: rgba(255, 255, 255, 0.78);
      box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 0 rgba(255, 255, 255, 0.72),
        0 0 28px rgba(96, 165, 250, 0.68);
    }
    35% {
      transform: scale(1.08);
      border-color: rgba(191, 219, 254, 0.95);
      box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.45),
        0 0 0 16px rgba(255, 255, 255, 0),
        0 0 36px rgba(96, 165, 250, 0.42);
    }
    100% {
      transform: scale(1);
      border-color: rgba(255, 255, 255, 0.22);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
  }
  @keyframes fabIdleBreath {
    0%, 100% {
      transform: scale(1);
      border-color: rgba(255, 255, 255, 0.3);
      box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.42),
        0 0 0 0 rgba(96, 165, 250, 0);
    }
    50% {
      transform: scale(1.06);
      border-color: rgba(191, 219, 254, 0.92);
      box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.48),
        0 0 0 12px rgba(96, 165, 250, 0.28),
        0 0 26px rgba(96, 165, 250, 0.52);
    }
  }
  /* ── Dock 控件：统一 Tile 体系 ── */
  .dock-action.on,
  .dock-toggle.on,
  .dock-segment button.on:not(.orientFlipBtn) {
    background: var(--dock-bg-tile-on);
    border-color: var(--dock-border-tile-on);
    color: var(--dock-text-active);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .dock-glyph {
    display: block;
    width: var(--dock-icon);
    height: var(--dock-icon);
    pointer-events: none;
    filter: brightness(0) invert(1);
    object-fit: contain;
    opacity: 0.78;
    transition: opacity var(--dock-transition);
  }
  .dock-action.on .dock-glyph,
  .dock-app-icon.active .dock-glyph,
  .dock-action:focus-visible .dock-glyph {
    opacity: 1;
  }
  .dock-action {
    margin: 0; box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0; min-height: var(--dock-height);
    padding: 0 16px;
    border: 1px solid var(--dock-border-tile);
    border-radius: var(--dock-radius);
    cursor: pointer;
    background: var(--dock-bg-tile);
    color: var(--dock-text-active);
    font: 600 16px/1.2 -apple-system, "PingFang SC", sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: background var(--dock-transition), border-color var(--dock-transition),
      color var(--dock-transition), box-shadow var(--dock-transition), transform 80ms ease-out;
  }
  .dock-action.is-pressed,
  .dock-action:active {
    opacity: var(--dock-press-opacity);
    transform: scale(0.96);
  }
  .dock-action.hide { display: none; }
  #teslaBrowserFullscreenBtn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  #appSwitchBtn {
    display: none;
    min-width: 88px;
  }
  #appQuickSwitch {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    padding: 0;
    min-height: var(--dock-height);
  }
  .orientToggle .app-quick-switch {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  body.app-cast-touch .orientToggle .app-quick-switch:not(.hide) {
    display: inline-flex;
  }
  .pane-dock-cluster {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
  }
  .pane-dock-close {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: var(--dock-tile);
    height: var(--dock-tile);
    border: none;
    border-radius: var(--dock-r-tile);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--dock-transition), transform 80ms ease-out;
  }
  .pane-dock-back {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: var(--dock-tile);
    height: var(--dock-tile);
    border: none;
    border-radius: var(--dock-r-tile);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: inherit;
    transition: opacity var(--dock-transition), transform 80ms ease-out;
  }
  .pane-dock-close .dock-glyph,
  .pane-dock-back .dock-glyph {
    opacity: 0.78;
  }
  .pane-dock-close.hide,
  .pane-dock-back.hide { display: none; }
  .pane-dock-close:active,
  .pane-dock-back:active {
    opacity: var(--dock-press-opacity);
    transform: scale(0.94);
  }
  body.app-cast-touch.dual-app .orientToggle .app-quick-switch:not(.hide) {
    display: inline-flex;
  }
  .dock-app-icon {
    margin: 0; padding: 0;
    box-sizing: border-box;
    width: var(--dock-tile); height: var(--dock-tile);
    border: none;
    border-radius: var(--dock-r-tile);
    background: transparent;
    cursor: pointer; flex-shrink: 0;
    position: relative; overflow: hidden;
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: opacity var(--dock-transition), transform 80ms ease-out;
  }
  .dock-app-icon img {
    width: var(--dock-app-img); height: var(--dock-app-img);
    border-radius: var(--dock-r-app);
    object-fit: cover;
    display: block;
  }
  .dock-app-icon .dock-app-fallback {
    display: none;
    font: 600 14px/1 -apple-system, "PingFang SC", sans-serif;
    color: var(--dock-text-active, rgba(255,255,255,.85));
  }
  .dock-app-icon.no-icon .dock-app-fallback { display: block; }
  .dock-app-icon.no-icon img { display: none; }
  .dock-app-icon.more {
    overflow: visible;
    pointer-events: auto !important;
  }
  .dock-app-icon.more .dock-glyph {
    width: var(--dock-icon-sm);
    height: var(--dock-icon-sm);
    border-radius: 0;
  }
  .dock-app-icon.is-pressed,
  .dock-app-icon:active {
    transform: scale(0.94);
  }
  .dock-app-icon.empty {
    background: transparent;
    box-shadow: none;
  }
  .dock-app-icon.empty .dock-app-fallback {
    display: block;
    color: var(--dock-text-active, rgba(255,255,255,.85));
  }
  .dock-app-icon.current-pane,
  .dock-app-icon.current-pane.active {
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .dock-app-icon.is-minimized img,
  .dock-app-icon.is-minimized .dock-app-fallback {
    transform: scale(0.92);
    transform-origin: center center;
    transition: transform 120ms ease-out;
  }
  .dock-app-icon.is-minimized::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: var(--dock-minimize-bar-w, 68%);
    height: var(--dock-minimize-bar-h, 4px);
    border-radius: 99px;
    background: var(--dock-minimize-bar, rgba(255, 255, 255, 0.78));
    box-shadow: none;
    transform: translateX(-50%);
    pointer-events: none;
  }
  .dock-app-icon.empty .dock-app-empty-mark {
    display: block;
    font: 500 18px/1 -apple-system, "PingFang SC", sans-serif;
    color: var(--dock-text-active, rgba(255,255,255,.85));
  }
  .dock-app-icon.preset-editing {
    border-color: rgba(120, 190, 255, .85);
    box-shadow: 0 0 0 1px rgba(120, 190, 255, .35);
  }
  .appFavItemWrap {
    position: relative;
    width: 72px;
  }
  .appFavItemWrap .preset-remove {
    position: absolute;
    top: -4px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    font: 700 12px/18px -apple-system, "PingFang SC", sans-serif;
    cursor: pointer;
    padding: 0;
  }
  body.app-cast-touch.single-app #appQuickSwitch,
  body.app-cast-touch.dual-app #appQuickSwitch {
    display: none !important;
  }
  body.app-cast-touch.single-app #appSwitchBtn {
    display: none !important;
  }
  body.app-cast-touch.single-app #orientPrimary .app-quick-switch:not(.hide) {
    display: inline-flex;
  }
  #unlock {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: var(--dock-tile-lg);
    height: var(--dock-tile-lg);
    min-width: var(--dock-tile-lg);
    max-width: var(--dock-tile-lg);
    min-height: var(--dock-tile-lg);
    max-height: var(--dock-tile-lg);
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    background: var(--dock-bg-group);
    border: 1px solid var(--dock-border-group);
    border-radius: var(--dock-r-group);
    box-shadow: none;
    color: var(--dock-text-active);
  }
  #screenPowerBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--dock-tile-lg);
    height: var(--dock-tile-lg);
    min-width: var(--dock-tile-lg);
    max-width: var(--dock-tile-lg);
    min-height: var(--dock-tile-lg);
    max-height: var(--dock-tile-lg);
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    background: var(--dock-bg-group);
    border: 1px solid var(--dock-border-group);
    border-radius: var(--dock-r-group);
    box-shadow: none;
    color: var(--dock-text-active);
  }
  #screenPowerBtn.hide {
    display: none !important;
  }
  #unlock.hide {
    display: none !important;
  }
  /* 应用投屏 / 镜像：强制藏声音按钮；CarLife 除外 */
  body.app-cast-touch:not(.carlife-active) #unlock,
  body.mirror-cast:not(.carlife-active) #unlock,
  body.app-cast-active:not(.carlife-active) #unlock {
    display: none !important;
  }
  #unlock.bt-silent {
    border-color: rgba(255, 255, 255, 0.12);
  }
  #unlock.muted .audioUnlockIcon,
  #unlock:not(.on):not(.bt-audio):not(.bt-silent) .audioUnlockIcon {
    opacity: 0.42;
  }
  #unlock.bt-silent .audioUnlockIcon {
    opacity: 0.42;
  }
  #unlock.on .audioUnlockIcon,
  #unlock.bt-audio .audioUnlockIcon {
    opacity: 1;
  }
  #unlock.starting .audioUnlockIcon {
    opacity: 0.85;
    animation: audio-unlock-pulse 1.2s ease-in-out infinite;
  }
  #unlock.failed .audioUnlockIcon {
    opacity: 0.5;
  }
  @keyframes audio-unlock-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
  }
  .dock-toggle {
    margin: 0; box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px; min-height: var(--dock-height);
    padding: 0 16px;
    border: 1px solid var(--dock-border-tile);
    border-radius: var(--dock-radius);
    cursor: pointer;
    background: var(--dock-bg-tile);
    color: var(--dock-text);
    font: 600 16px/1.2 -apple-system, "PingFang SC", sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: background var(--dock-transition), border-color var(--dock-transition),
      color var(--dock-transition), box-shadow var(--dock-transition), transform 80ms ease-out;
  }
  .dock-toggle.is-pressed,
  .dock-toggle:active { opacity: var(--dock-press-opacity); transform: scale(0.96); }
  .dock-toggle.hide { display: none; }
  .dock-toggle:disabled {
    background: var(--dock-bg-group);
    border-color: rgba(255,255,255,.08);
    color: var(--dock-text);
    cursor: not-allowed;
    opacity: 1;
  }
  .dock-toggle:disabled:active { opacity: 1; }
  .dock-segment {
    display: none;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: var(--dock-height);
    padding: 4px;
    border: 1px solid var(--dock-border-group);
    border-radius: var(--dock-r-group);
    background: var(--dock-bg-group);
    gap: 4px;
    align-items: center;
  }
  body.app-cast-touch.dual-app #orientPrimary,
  body.app-cast-touch.dual-app #orientSecondary { display: flex; }
  body.app-cast-touch.single-app #orientPrimary { display: flex; }
  .dock-segment button {
    margin: 0; box-sizing: border-box;
    flex: 0 0 auto;
    min-width: var(--dock-tile); width: auto;
    height: var(--dock-tile); min-height: var(--dock-tile);
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--dock-r-tile);
    cursor: pointer;
    background: transparent;
    color: var(--dock-text);
    font: 600 16px/1 -apple-system, "PingFang SC", sans-serif;
    letter-spacing: 0.02em;
    transition: background var(--dock-transition), border-color var(--dock-transition),
      color var(--dock-transition), box-shadow var(--dock-transition), transform 80ms ease-out;
  }
  .dock-segment button.pending { opacity: .6; }
  .dock-segment button.is-pressed,
  .dock-segment button:active {
    opacity: var(--dock-press-opacity);
    transform: scale(0.96);
  }
  .orientToggle {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  .orientToggle .orientLabel {
    display: none;
  }
  .orientToggle .orientFlipBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--dock-tile);
    min-width: var(--dock-tile);
    height: var(--dock-tile);
    min-height: var(--dock-tile);
    padding: 0;
    line-height: 0;
    border: none;
    border-radius: var(--dock-r-tile);
    background: transparent;
  }
  .orientToggle .orientFlipBtn.on,
  .orientToggle .orientFlipBtn.is-pressed,
  .orientToggle .orientFlipBtn:active {
    background: transparent;
    border: none;
    box-shadow: none;
    color: inherit;
  }
  .orientToggle .orientFlipBtn .orientFlipIcon,
  .orientToggle .orientFlipBtn .dock-glyph {
    display: block;
    width: var(--dock-icon-sm);
    height: var(--dock-icon-sm);
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }
  .orientToggle .orientFlipBtn .orientFlipIcon {
    filter: none;
  }
  .orientToggle .orientFlipBtn.pending .orientFlipIcon {
    opacity: 0.55;
  }
  #dualPaneSwapBtn {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--dock-tile);
    min-width: var(--dock-tile);
    height: var(--dock-tile);
    min-height: var(--dock-tile);
    padding: 0;
    line-height: 0;
    border: 1px solid var(--dock-border-tile);
    border-radius: var(--dock-r-tile);
    background: var(--dock-bg-tile);
    cursor: pointer;
  }
  #dualPaneSwapBtn .dock-glyph {
    display: block;
    width: var(--dock-icon-sm);
    height: var(--dock-icon-sm);
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }
  #dualPaneSwapBtn:active { opacity: var(--dock-press-opacity); }
  #dualPaneSwapBtn:disabled { opacity: .45; cursor: default; }
  #dualPaneSwapBtn.pending:not(:disabled) { opacity: .55; }
  /* 浮窗：互换按钮变灰但仍可点，用于提示「无法互换」 */
  #dualPaneSwapBtn.overlay-swap-disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
  #dualPaneSwapBtn.overlay-swap-disabled:active {
    opacity: 0.45;
  }
  body.app-cast-touch.dual-app #dualPaneSwapBtn { display: inline-flex; }
  /* APP 模块折叠：默认只显示当前应用图标 + 关闭；横竖屏等仍收起 */
  body.app-cast-touch .dock-pane-module.is-collapsed .pane-dock-cluster > :not(.app-quick-switch):not(.pane-dock-close),
  body.app-cast-touch .dock-pane-module.is-collapsed .orientFlipBtn {
    display: none !important;
  }
  body.app-cast-touch .dock-pane-module.is-collapsed .app-quick-switch .dock-app-icon:not(.current-pane):not(.empty):not(.more) {
    display: none !important;
  }
  body.app-cast-touch .dock-pane-module.is-collapsed .app-quick-switch:not(.hide) {
    display: inline-flex !important;
  }
  body.app-cast-touch .dock-pane-module.is-collapsed {
    padding: 4px;
    gap: 0;
  }
  body.app-cast-touch .dock-pane-module.is-collapsed .app-quick-switch {
    gap: 0;
  }
  body.app-cast-touch.single-app #orientPrimary .orientLabel { display: none; }
  body.app-cast-touch.single-app #orientSecondary { display: none !important; }
  body.app-cast-touch.single-app-secondary #orientPrimary { display: none !important; }
  body.app-cast-touch.single-app-secondary #orientSecondary { display: flex !important; }
  body.app-cast-touch.single-app-secondary #orientSecondary .orientLabel { display: none; }
  body.app-cast-touch.single-app-secondary #orientSecondary .app-quick-switch:not(.hide) {
    display: inline-flex;
  }
  body.app-cast-touch.single-app .orientFlipBtn,
  body.app-cast-touch.single-app-secondary .orientFlipBtn,
  body.app-cast-touch.dual-partial[data-solo-pane="primary"] .orientFlipBtn,
  body.app-cast-touch.dual-partial[data-solo-pane="secondary"] .orientFlipBtn {
    display: none !important;
  }
  body.app-cast-touch.dual-app #appSwitchBtn { display: none !important; }
  body.app-cast-touch.dual-app .orientToggle .orientFlipBtn { display: none !important; }
  /* 开分屏瞬间 body 可能短暂同时带 single-app + dual-app，须以 dual-app 为准 */
  body.app-cast-touch.dual-app.single-app #orientPrimary .orientFlipBtn,
  body.app-cast-touch.dual-app.single-app #orientSecondary .orientFlipBtn,
  body.app-cast-touch.dual-app.single-app-secondary #orientPrimary .orientFlipBtn,
  body.app-cast-touch.dual-app.single-app-secondary #orientSecondary .orientFlipBtn {
    display: none !important;
  }
  body.app-cast-touch.dual-app #orientSecondary { display: flex !important; }
  body.app-cast-touch.dual-app .dock-pane-module {
    width: fit-content;
    max-width: 100%;
  }
  body.app-cast-touch.dual-app #appLayoutBtn { display: inline-flex !important; }
  /* 半关分屏：幸存 primary → dock 与 single-app 一致 */
  body.app-cast-touch.dual-partial[data-solo-pane="primary"] #dockRowCenter {
    justify-content: center;
  }
  body.app-cast-touch.dual-partial[data-solo-pane="primary"] #orientSecondary,
  body.app-cast-touch.dual-partial[data-solo-pane="primary"] #dualPaneSwapBtn {
    display: none !important;
  }
  body.app-cast-touch.dual-partial[data-solo-pane="primary"] #orientPrimary {
    display: flex !important;
  }
  body.app-cast-touch.dual-partial[data-solo-pane="primary"] #orientPrimary .orientLabel {
    display: none;
  }
  body.app-cast-touch.dual-partial[data-solo-pane="primary"] #orientPrimary .app-quick-switch:not(.hide) {
    display: inline-flex;
  }
  /* 半关分屏：幸存 secondary → dock 与 single-app-secondary 一致 */
  body.app-cast-touch.dual-partial[data-solo-pane="secondary"] #dockRowCenter {
    justify-content: center;
  }
  body.app-cast-touch.dual-partial[data-solo-pane="secondary"] #orientPrimary,
  body.app-cast-touch.dual-partial[data-solo-pane="secondary"] #dualPaneSwapBtn {
    display: none !important;
  }
  body.app-cast-touch.dual-partial[data-solo-pane="secondary"] #orientSecondary {
    display: flex !important;
  }
  body.app-cast-touch.dual-partial[data-solo-pane="secondary"] #orientSecondary .orientLabel {
    display: none;
  }
  body.app-cast-touch.dual-partial[data-solo-pane="secondary"] #appLayoutBtn {
    display: none !important;
  }
  body.app-cast-touch.dual-partial[data-solo-pane="secondary"] #orientSecondary .app-quick-switch:not(.hide) {
    display: inline-flex !important;
  }
  .dock-close, #dockClose {
    margin: 0; box-sizing: border-box; flex-shrink: 0;
    width: var(--dock-height); height: var(--dock-height); padding: 0;
    border: 1px solid var(--dock-border-group);
    border-radius: var(--dock-r-group); cursor: pointer;
    background: var(--dock-bg-group);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 80ms ease-out, opacity 80ms ease-out, background var(--dock-transition);
  }
  .dock-close .dock-glyph,
  #dockClose .dock-glyph {
    opacity: 0.78;
  }
  .dock-close.is-pressed,
  .dock-close:active,
  #dockClose.is-pressed,
  #dockClose:active {
    opacity: var(--dock-press-opacity);
    transform: scale(0.96);
  }
  @media (prefers-reduced-motion: reduce) {
    #dockPanel, #dockFab, #stage, #dockFabPreview {
      transition-duration: .01ms !important;
    }
    #dockPanel { transform: none !important; }
    .dock-action, .dock-toggle, .dock-segment button, .dock-app-icon, .dock-close, #dockClose, #dockFab {
      transition-duration: .01ms !important;
      transform: none !important;
    }
    #dockFabDot.pulse-once, #dockFabDot.pulse-once-amber {
      animation: none !important;
    }
    #dockFab.is-appearing::before, #dockFab.is-appearing::after {
      animation: none !important;
    }
    #dockFab.is-appearing {
      animation: none !important;
    }
    body.idle.dock-collapsed #dockFab {
      animation: none !important;
    }
  }
  @media (prefers-reduced-transparency: reduce) {
    #dockPanel, #dockFab, #dockFabPreview {
      background: rgba(20, 22, 28, 0.95);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }
  