/* 流畅模式 (update/161): html[data-perf="lite"], set by perf-mode.js. Loaded last. */

/* Blur is the most expensive effect on weak GPUs: turn it off everywhere. */
html[data-perf="lite"] *,html[data-perf="lite"] *::before,html[data-perf="lite"] *::after{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Decorative motion off; loading spinners and the streaming cursor keep running. */
html[data-perf="lite"] *:not(.tool-call-spinner):not(.loading-spinner),html[data-perf="lite"] *::before{animation:none!important;transition:none!important}
html[data-perf="lite"] :is(.studio-wordmark,.conversation-mark,.login-editorial h2,.signup-story h2,.style-preview-terminal>em)::after{animation:none!important}
html[data-perf="lite"] .glyph-canvas{display:none!important}
html[data-perf="lite"],html[data-perf="lite"] *{scroll-behavior:auto!important}

/* Glass without blur: opaque frosted-white surfaces, a still background, lighter shadows. */
html[data-perf="lite"][data-ui-theme="glass"] body::before{display:none!important}
html[data-perf="lite"][data-ui-theme="glass"] body,html[data-perf="lite"][data-ui-theme="glass"] body.light-mode{
  --bg-secondary:#fbfaff;--bg-tertiary:#f1eefc;--st-surface:rgba(255,255,255,.93);--st-surface-strong:#fff;--st-sidebar-bg:rgba(255,255,255,.9);--st-header-bg:rgba(250,248,255,.94);
  --st-card-shadow:0 1px 2px rgba(76,29,149,.08);--st-card-shadow-hover:0 2px 6px rgba(76,29,149,.12);--st-answer-shadow:0 1px 2px rgba(76,29,149,.08);--st-pop-shadow:0 6px 18px rgba(76,29,149,.16)}
html[data-perf="lite"][data-ui-theme="glass"] body{background-attachment:scroll!important}
html[data-perf="lite"][data-ui-theme="editorial"] body{background:#f3ede2!important}

/* Long conversations: the browser skips layout and paint for messages far off screen. */
html[data-perf="lite"] #appPage .conversation-view>.message:not(:nth-last-child(-n+6)){content-visibility:auto;contain-intrinsic-size:auto 480px}

/* Heavy shadows on many cards cost repaint time while scrolling. */
html[data-perf="lite"] :is(.achievement-card,.csp-history-card,.wrongbook-list-item,.tc-day,.pcal-cell){box-shadow:none!important}

/* The settings row keeps its status line visible in every mode (other hints in that group stay hidden). */
html[data-ui-theme] .optional-features-settings .perf-mode-row small#perfModeNote{display:block!important;margin-top:3px;font-size:12px;color:var(--text-muted)}
