@import url('weixin.css?v=2026.11.03-moments-safe-top-1');
:root {
    --phone-width: 375px;
    --phone-height: 812px;
    --app-vh: 100vh;
    /* 当前设备的手动顶部修正值；只叠加在现有安全区上，不改变页面高度。 */
    --device-top-offset: 0px;
    --safe-top-raw: env(safe-area-inset-top, 0px);
    --safe-bottom-raw: env(safe-area-inset-bottom, 0px);
    --content-safe-top-base: env(safe-area-inset-top, 0px);
    --content-safe-top: calc(var(--content-safe-top-base) + var(--device-top-offset));
    --content-safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-bottom-compact: clamp(0px, var(--safe-bottom-raw), 14px);
    --dock-bottom-offset: calc(8px + var(--safe-bottom-compact));
    --screen-bg: #e7e7e7;
    --text-color: #333;
    --accent-color: #007aff;
    --icon-gray: #e0e0e0;
    --theme-primary: #f3f4fb;
    --theme-primary-soft: rgba(243, 244, 251, 0.9);
    --theme-foreground: #555555;
    --theme-label: #333333;
    --dock-bg: #aeb0b2;
    --top-safe-inset: calc(max(env(safe-area-inset-top, 0px), 44px) + var(--device-top-offset));
    --app-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

@supports (height: 100dvh) {
    :root {
        --app-vh: 100dvh;
    }
}

/* iOS 主屏幕 PWA 使用稳定的物理视口高度，背景延伸到系统状态栏下方。 */
html.ios-standalone-pwa {
    --app-vh: 100vh;
    --content-safe-top-base: clamp(44px, env(safe-area-inset-top, 44px), 59px);
    --content-safe-bottom: clamp(0px, env(safe-area-inset-bottom, 0px), 34px);
    position: relative;
    inset: auto;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

html.ios-standalone-pwa body {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transform: none;
}

html.ios-standalone-pwa .phone-frame {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    transform: none;
}

/* 用户在“屏幕诊断”中手动开启后，使用真实可视高度修正异常 iOS PWA。 */
html.ios-standalone-pwa.ios-standalone-manual-viewport-fix {
    --app-vh: var(--ios-standalone-interactive-vh, 100dvh);
    --content-safe-top-base: env(safe-area-inset-top, 0px);
    --top-safe-inset: calc(env(safe-area-inset-top, 0px) + var(--device-top-offset));
    height: var(--app-vh, 100dvh);
    min-height: var(--app-vh, 100dvh);
}

html.ios-standalone-pwa.ios-standalone-manual-viewport-fix body,
html.ios-standalone-pwa.ios-standalone-manual-viewport-fix .phone-frame {
    height: var(--app-vh, 100dvh);
    min-height: var(--app-vh, 100dvh);
}

html.ios-standalone-pwa .desktop-page {
    padding-top: calc(var(--content-safe-top) + 12px);
}

/*
 * iOS 主屏幕全屏安全区：只在上方启动脚本标记的 iOS standalone PWA 内生效。
 * 不依赖 WebKit 在每个子视图中都正确返回 env(safe-area-inset-top)。
 */
html.ios-standalone-pwa {
    --ios-interactive-safe-top: var(--content-safe-top);
    --spacing-safe-top: var(--content-safe-top) !important;
}

html.ios-standalone-pwa .modal-header-bar {
    padding-top: var(--ios-interactive-safe-top) !important;
}

html.ios-standalone-pwa #memory-archive-modal .memory-archive-settings-btn,
html.ios-standalone-pwa #memory-archive-modal .memory-archive-close-btn {
    top: calc(var(--ios-interactive-safe-top) + 8px) !important;
}

html.ios-standalone-pwa #memory-archive-modal .memory-archive-container {
    padding-top: var(--ios-interactive-safe-top);
}

html.ios-standalone-pwa .role-profile-topbar,
html.ios-standalone-pwa .offline-topbar {
    padding-top: calc(var(--ios-interactive-safe-top) + 8px) !important;
}

html.ios-standalone-pwa .wallet-header,
html.ios-standalone-pwa .sports-navbar,
html.ios-standalone-pwa .sports-detail-topbar {
    height: calc(56px + var(--ios-interactive-safe-top));
    padding-top: var(--ios-interactive-safe-top);
}

html.ios-standalone-pwa .wallet-header {
    height: calc(60px + var(--ios-interactive-safe-top));
}

html.ios-standalone-pwa .sports-back-btn,
html.ios-standalone-pwa #loading-mask .sports-loading-back-btn,
html.ios-standalone-pwa .kr-back-btn {
    top: calc(var(--ios-interactive-safe-top) + 8px);
}

html.ios-standalone-pwa .mine-favorites-panel,
html.ios-standalone-pwa .theme-studio-panel {
    padding-top: var(--ios-interactive-safe-top);
}

html.ios-standalone-pwa .gift-cabinet-page-header,
html.ios-standalone-pwa .gift-pool-page-header {
    padding-top: calc(var(--ios-interactive-safe-top) + 12px);
}

html.ios-standalone-pwa .checkin-app {
    padding-top: calc(var(--ios-interactive-safe-top) + 22px);
}

* {
    box-sizing: border-box;
    user-select: none;
}

/* Editable controls must keep the native selection handles and paste menu.
   Some Android WebViews inherit the global user-select:none into password
   fields, which makes a long-press paste appear to do nothing. */
input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default;
}

.settings-secret-paste-wrap {
    position: relative;
    width: 100%;
}

.settings-secret-paste-wrap > input {
    padding-right: 70px !important;
}

.settings-secret-paste-button {
    position: absolute;
    top: 50%;
    right: 7px;
    z-index: 2;
    min-width: 48px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(28, 28, 26, 0.08);
    border-radius: 999px;
    background: rgba(239, 239, 235, 0.96);
    color: #343431;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.settings-secret-paste-button:active {
    background: #deded8;
    transform: translateY(-50%) scale(0.96);
}

html {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: var(--screen-bg);
    overscroll-behavior: none;
}

body {
    margin: 0;
    padding: 0;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    background-color: var(--screen-bg);
    font-family: var(--app-font-family);
    overflow: hidden;
    overscroll-behavior: none;
}

button,
input,
textarea,
select {
    font-family: var(--app-font-family);
}

/* 手机外壳 */
.phone-frame {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: var(--app-vh, 100dvh);
    min-height: 100vh;
    min-height: var(--app-vh, 100dvh);
    background: var(--screen-bg);
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
/* 屏幕区域 */
.screen {
    width: 100%;
    height: 100%;
    background: var(--screen-bg);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- 主界面布局 (图标网格) --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
    flex: 1;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    cursor: pointer;
}

.app-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.8);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.1s;
}

.app-item:active .app-icon-box {
    transform: scale(0.95);
    background: rgba(255,255,255,0.6);
}

.app-name {
    font-size: 12px;
    color: var(--theme-foreground);
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    font-weight: 500;
    transition: color 0.5s ease;
}

/* --- 底部Dock栏 --- */
.dock {
    margin: 0;
    height: 72px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(240,240,250,0.4));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 26px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--dock-bottom-offset);
    width: calc(100% - 60px);
    max-width: 320px;
    z-index: 150;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0;
    cursor: pointer;
    width: 56px;
}

.dock-icon-img {
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--theme-foreground);
    transition: transform 0.1s, color 0.5s ease;
}
.dock-item:active .dock-icon-img {
    transform: scale(0.9);
}

.dock-item span {
    display: none;
}

/* --- App 窗口 (覆盖层) --- */
.character-reply-toast {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 80px);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    z-index: 60000;
    display: none;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}

.app-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #f6f6f3;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 0.18s ease;
}

.app-window.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.app-window.moments-fullscreen {
    /* 朋友圈全屏模式：可能需要调整顶部padding等，这里暂时留空，视具体需求而定 */
}

.app-header {
    height: calc(50px + var(--top-safe-inset));
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-end;
    justify-content: center; /* 标题居中 */
    padding: var(--top-safe-inset) 15px 12px 15px;
    box-sizing: border-box;
    font-weight: 600;
    color: #111;
    position: relative;
    z-index: 10;
}

.app-header .back-btn {
    position: absolute;
    left: 10px;
    bottom: 6px;
    height: 36px;
    padding: 0 8px;
    font-size: 26px;
    color: #007aff;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.2s, opacity 0.2s;
}

.app-header .back-btn:active {
    background-color: rgba(0, 122, 255, 0.1);
    opacity: 0.7;
}

.app-header .app-title,
.app-header #app-title-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.app-header #top-plus-btn {
    position: absolute;
    right: 15px;
    bottom: 10px;
    width: 40px;
    text-align: right;
}

.app-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
    /* padding: 15px;  <-- Removed global padding */
}

.embedded-app-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: transparent;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    transition: opacity 0.24s ease;
}

.embedded-app-frame.is-loading {
    opacity: 0;
}

.app-content.embedded-app-loading-host {
    overflow: hidden !important;
    background: #f6f6f3 !important;
}

.embedded-app-loading {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top, 0px)) 24px max(24px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: hidden;
    color: #151515;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0.54) 27%, transparent 58%),
        #f6f6f3;
    opacity: 1;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.embedded-app-loading::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(17, 17, 17, 0.045);
    border-radius: 28px;
    pointer-events: none;
}

.embedded-app-loading.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.embedded-app-loading-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(240px, 76vw);
    text-align: center;
    transform: translateY(-5px);
    animation: embedded-app-content-in 0.28s ease both;
}

.embedded-app-loading-orbit {
    position: relative;
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
    border: 1px solid rgba(17, 17, 17, 0.11);
    border-radius: 50%;
}

.embedded-app-loading-orbit::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1.5px solid transparent;
    border-top-color: #151515;
    border-right-color: rgba(21, 21, 21, 0.22);
    border-radius: inherit;
    animation: embedded-app-orbit 1.05s cubic-bezier(.55, .15, .35, .9) infinite;
}

.embedded-app-loading-orbit::after {
    content: '✦';
    position: absolute;
    inset: 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #151515;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.embedded-app-loading-kicker {
    margin-bottom: 7px;
    color: #aaa9a5;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 2px;
    line-height: 1.2;
}

.embedded-app-loading-title {
    color: #151515;
    font-size: 16px;
    font-weight: 620;
    letter-spacing: -0.2px;
    line-height: 1.45;
}

.embedded-app-loading-progress {
    position: relative;
    width: 94px;
    height: 2px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.08);
}

.embedded-app-loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -42%;
    width: 42%;
    border-radius: inherit;
    background: #151515;
    animation: embedded-app-progress 1.2s ease-in-out infinite;
}

@keyframes embedded-app-orbit {
    to { transform: rotate(360deg); }
}

@keyframes embedded-app-progress {
    0% { transform: translateX(0); }
    55%, 100% { transform: translateX(338%); }
}

@keyframes embedded-app-content-in {
    from { opacity: 0; transform: translateY(3px) scale(0.985); }
    to { opacity: 1; transform: translateY(-5px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .embedded-app-frame,
    .embedded-app-loading,
    .embedded-app-loading-inner {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }

    .embedded-app-loading-orbit::before {
        animation-duration: 2.4s;
    }

    .embedded-app-loading-progress::after {
        animation: none;
        left: 29%;
    }
}

/* 通用隐藏滚动条但保留功能 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 动画定义 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-out;
}

@media screen and (min-width: 769px) and (hover: hover) and (pointer: fine) {
    html,
    body {
        position: static;
        width: 100%;
        height: 100%;
        min-height: 100%;
    }

    body {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #2c3e50;
    }

    .phone-frame {
        position: relative;
        inset: auto;
        width: var(--phone-width);
        height: var(--phone-height);
        min-height: auto;
        background: #000;
        border-radius: 40px;
        padding: 12px;
        margin: 0;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }

    .screen {
        border-radius: 32px;
    }

    .dock {
        bottom: 16px;
    }
}

.dynamic-island {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%) translateY(-6px) scale(0.92);
    height: 34px;
    width: 144px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
    z-index: 1200;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dynamic-island.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dynamic-island:active {
    transform: translateX(-50%) translateY(0) scale(0.985);
}

.dynamic-island-cover {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    flex: 0 0 auto;
}

.dynamic-island-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dynamic-island-waves {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 3px;
    flex: 1;
}

.di-bar {
    width: 3px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    transform-origin: bottom;
}

.dynamic-island.is-playing .di-bar {
    animation: diWave 900ms ease-in-out infinite;
}

.dynamic-island.is-playing .di-bar:nth-child(2) {
    animation-delay: 120ms;
}

.dynamic-island.is-playing .di-bar:nth-child(3) {
    animation-delay: 240ms;
}

.dynamic-island.is-playing .di-bar:nth-child(4) {
    animation-delay: 360ms;
}

@keyframes diWave {
    0% { transform: scaleY(0.6); opacity: 0.7; }
    35% { transform: scaleY(1.7); opacity: 1; }
    70% { transform: scaleY(0.85); opacity: 0.85; }
    100% { transform: scaleY(0.6); opacity: 0.7; }
}

.global-music-float-ball {
    position: absolute;
    right: 16px;
    bottom: 106px;
    width: 64px;
    height: 64px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.94);
    transition: opacity 180ms ease, transform 220ms ease, background-color 220ms ease;
    z-index: 1200;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.global-music-float-ball.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.global-music-float-ball:active {
    transform: scale(0.96);
}

.global-music-float-ball.is-dragging {
    transition: none;
    cursor: grabbing;
}

.global-music-float-ball.is-dragging,
.global-music-float-ball.is-dragging:active {
    transform: scale(1);
}

.global-music-float-ball::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    z-index: -1;
    opacity: 0;
}

.global-music-float-ball.is-playing::after {
    opacity: 0.32;
    animation: globalFloatPulse 2s ease-out infinite;
}

.global-music-float-progress {
    position: absolute;
    inset: 0;
    width: 64px;
    height: 64px;
    transform: rotate(-90deg);
}

.global-music-float-ring {
    fill: none;
    stroke: #111111;
    stroke-width: 3;
    stroke-linecap: round;
}

.global-music-float-cover {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.82);
    animation: globalFloatRotate 8s linear infinite;
    animation-play-state: paused;
}

.global-music-float-ball.is-playing .global-music-float-cover {
    animation-play-state: running;
}

.global-music-float-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.global-music-float-bars {
    position: absolute;
    bottom: 8px;
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 12px;
    opacity: 0;
    transition: opacity 180ms ease;
}

.global-music-float-ball.is-playing .global-music-float-bars {
    opacity: 1;
}

.gmf-bar {
    width: 2px;
    background: #111111;
    border-radius: 999px;
    animation: globalFloatBarGrow 0.8s ease-in-out infinite alternate;
}

.gmf-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.gmf-bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes globalFloatRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes globalFloatBarGrow {
    0% { height: 2px; opacity: 0.45; }
    100% { height: 10px; opacity: 1; }
}

@keyframes globalFloatPulse {
    0% { transform: scale(1); opacity: 0.32; }
    100% { transform: scale(1.3); opacity: 0; }
}

.ios-notification-banner {
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%) translateY(-140%);
    max-width: 92%;
    width: 320px;
    padding: 10px 12px;
    border-radius: 20px;
    background: rgba(248, 248, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    z-index: 12000;
    transition:
        transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 200ms ease;
}

.ios-notification-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ios-notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ddd;
}

.ios-notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ios-notification-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ios-notification-name {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.ios-notification-message {
    font-size: 13px;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-barrage-layer {
    position: fixed;
    top: 20%;
    left: 0;
    width: 100vw;
    height: 62vh;
    pointer-events: none;
    z-index: 900000;
    overflow: hidden;
    display: none;
}

.ai-barrage-layer.is-visible {
    display: block;
}

.ai-barrage-item {
    position: absolute;
    left: 0;
    top: var(--top, 0px);
    transform: translateX(100vw);
    white-space: nowrap;
    user-select: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: rgba(140, 0, 0, 0.78);
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.22),
        0 0 12px rgba(40, 0, 0, 0.45),
        0 0 28px rgba(140, 0, 0, 0.22);
    animation: aiBarrageMove var(--dur, 12s) linear infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}

@keyframes aiBarrageMove {
    0% { transform: translateX(100vw); opacity: 0; }
    6% { opacity: 1; }
    92% { opacity: 1; }
    100% { transform: translateX(-120%); opacity: 0; }
}

.ui-toast {
    position: fixed;
    left: 50%;
    bottom: calc(12px + var(--safe-bottom-compact));
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 10px 12px;
    max-width: min(86vw, 340px);
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    opacity: 0;
    pointer-events: none;
    z-index: 200000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 180ms ease, transform 180ms ease;
    text-align: center;
}

.ui-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ui-dialog-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 210000;
}

.ui-dialog-mask.is-visible {
    display: flex;
}

.ui-dialog {
    width: min(92vw, 320px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.ui-dialog-body {
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ui-dialog-title {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    text-align: center;
}

.ui-dialog-message {
    font-size: 13px;
    color: #222;
    text-align: center;
    line-height: 1.4;
    white-space: pre-wrap;
}

.ui-dialog[data-ui-dialog-variant="memory-delete"] {
    max-height: calc(100dvh - 36px);
    display: flex;
    flex-direction: column;
}

.ui-dialog[data-ui-dialog-variant="memory-delete"] .ui-dialog-body {
    min-height: 0;
    overflow: hidden;
}

.ui-dialog[data-ui-dialog-variant="memory-delete"] .ui-dialog-message {
    min-height: 0;
    max-height: min(46dvh, 320px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f4f4f2;
    color: #454541;
    text-align: left;
    word-break: break-word;
}

.ui-dialog[data-ui-dialog-variant="memory-delete"] .ui-dialog-actions {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.98);
}

.ui-dialog-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(245, 245, 247, 0.9);
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    color: #111;
}

.ui-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ui-dialog-actions.is-single {
    grid-template-columns: 1fr;
}

.ui-dialog-btn {
    appearance: none;
    border: 0;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 800;
    background: transparent;
    color: #111;
    cursor: pointer;
}

.ui-dialog-btn + .ui-dialog-btn {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.ui-dialog-actions.is-single .ui-dialog-btn + .ui-dialog-btn {
    border-left: 0;
}

.ui-dialog-btn.primary {
    color: #111;
}

.ui-dialog-symbol,
.ui-dialog-meta {
    display: none;
}

.ui-dialog-mask[data-ui-dialog-variant="backup-reminder"] {
    background: rgba(17, 17, 17, 0.26);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.ui-dialog-mask[data-ui-dialog-variant="backup-reminder"].is-visible .ui-dialog {
    animation: backup-reminder-enter 260ms cubic-bezier(.2, .78, .2, 1) both;
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] {
    position: relative;
    width: min(90vw, 350px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(250, 250, 248, 0.97);
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.18);
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"]::after {
    content: "";
    position: absolute;
    top: 17px;
    right: 20px;
    width: 30px;
    border-top: 1px dashed rgba(17, 17, 17, 0.16);
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-body {
    padding: 24px 22px 18px;
    gap: 0;
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-symbol {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-meta {
    margin-bottom: 7px;
    color: #aaa9a5;
    display: block !important;
    font-size: 8px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 1.35px;
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-title {
    color: #151515;
    font-size: 21px;
    font-weight: 680;
    line-height: 1.28;
    text-align: left;
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-message {
    margin-top: 12px;
    padding: 15px 16px;
    border: 1px solid rgba(17, 17, 17, 0.055);
    border-radius: 18px;
    background: #efefed;
    color: #747470;
    font-size: 12.5px;
    line-height: 1.68;
    text-align: left;
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-actions {
    padding: 0 22px 22px;
    border-top: 0;
    gap: 9px;
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-btn {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 999px;
    background: #e8e8e5;
    color: #747470;
    font-size: 13px;
    font-weight: 680;
    transition: transform 160ms ease, opacity 160ms ease;
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-btn + .ui-dialog-btn {
    border-left: 1px solid rgba(17, 17, 17, 0.06);
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-btn.primary {
    border-color: #111;
    background: #111;
    color: #fff;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
}

.ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-btn:active {
    transform: scale(.97);
    opacity: .82;
}

@keyframes backup-reminder-enter {
    from { opacity: 0; transform: translateY(10px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 360px) {
    .ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-body {
        padding: 21px 19px 16px;
    }

    .ui-dialog[data-ui-dialog-variant="backup-reminder"] .ui-dialog-actions {
        padding: 0 19px 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-dialog-mask[data-ui-dialog-variant="backup-reminder"].is-visible .ui-dialog {
        animation: none;
    }
}

/* === Model picker: fetched API models can be searched without relying on native select UI. === */
.settings-model-search-picker {
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 22px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(14, 15, 17, 0.32);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.settings-model-search-sheet {
    width: min(100%, 560px);
    max-height: min(75vh, 620px);
    overflow: hidden;
    border: 1px solid rgba(22, 22, 20, 0.08);
    border-radius: 26px;
    background: #fbfbf9;
    color: #20201e;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.2);
}

.settings-model-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 17px 12px;
}

.settings-model-search-head > div { min-width: 0; }
.settings-model-search-kicker {
    display: block;
    margin-bottom: 4px;
    color: #999994;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .14em;
}
.settings-model-search-head strong { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -.03em; }
.settings-model-search-head small { display: block; margin-top: 4px; color: #85857e; font-size: 11px; }
.settings-model-search-close {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border: 0;
    border-radius: 50%;
    background: #ededE9;
    color: #44443f;
    font-size: 22px;
    line-height: 1;
}
.settings-model-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 14px 12px;
    padding: 0 12px;
    min-height: 44px;
    border: 1px solid #e4e4df;
    border-radius: 14px;
    background: #f1f1ee;
    color: #777771;
}
.settings-model-search-input i { font-size: 18px; }
.settings-model-search-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #242421;
    font: 500 14px/1.2 var(--app-font-family);
}
.settings-model-search-input input::placeholder { color: #9d9d97; }
.settings-model-search-results {
    max-height: min(49vh, 410px);
    overflow: auto;
    padding: 0 8px 9px;
    overscroll-behavior: contain;
}
.settings-model-search-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 47px;
    gap: 10px;
    padding: 10px 11px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #30302d;
    text-align: left;
}
.settings-model-search-item > span { min-width: 0; flex: 1; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.settings-model-search-item > i { color: #a2a29b; font-size: 18px; }
.settings-model-search-item.is-selected { background: #e9e9e4; }
.settings-model-search-item.is-selected > i { color: #20201e; }
.settings-model-search-item:active { transform: scale(.985); }
.settings-model-search-empty { padding: 27px 13px 30px; color: #94948e; font-size: 13px; text-align: center; }
.settings-model-native-select-hidden { display: none !important; }
.settings-model-inline-search { margin: 2px 0 8px; }
.settings-model-inline-input {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #e1e3e7;
    border-radius: 14px;
    background: #f1f3f6;
    color: #777b83;
}
.settings-model-inline-input > i { flex: 0 0 auto; font-size: 18px; }
.settings-model-inline-input > input {
    min-width: 0;
    flex: 1;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: #202124;
    font: 500 13px/1.2 var(--app-font-family);
}
.settings-model-inline-count {
    min-width: 25px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #dedfe3;
    color: #64676e;
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
}
.settings-model-inline-results {
    max-height: 230px;
    margin-top: 8px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #e7e8eb;
    border-radius: 16px;
    background: #fafbfc;
    overscroll-behavior: contain;
}
.settings-model-inline-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 43px;
    gap: 9px;
    padding: 9px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #303238;
    text-align: left;
}
.settings-model-inline-item > span { min-width: 0; flex: 1; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.settings-model-inline-item > i { flex: 0 0 auto; color: #a1a4aa; font-size: 17px; }
.settings-model-inline-item.is-selected { background: #e8eaee; color: #141518; }
.settings-model-inline-item.is-selected > i { color: #141518; }
.settings-model-inline-empty { padding: 24px 10px; color: #92969e; font-size: 12px; text-align: center; }
.appearance-night-mode-kicker { display: block; color: #999993; font-size: 9px; font-weight: 750; letter-spacing: .14em; }

/* === Whole-app night mode === */
html.night-mode {
    color-scheme: dark;
    --screen-bg: #111216;
    --text-color: #f2f2ee;
    --theme-primary: #202126;
    --theme-primary-soft: rgba(32, 33, 38, .9);
    --theme-foreground: #ecece8;
    --theme-label: #f0f0ed;
    --dock-bg: #292a30;
}

html.night-mode,
html.night-mode body,
html.night-mode .phone-frame,
html.night-mode .screen {
    background-color: #111216 !important;
    color: #f1f1ed;
}

html.night-mode .app-window,
html.night-mode .app-content.embedded-app-loading-host,
html.night-mode .embedded-app-loading {
    background: #15161a !important;
    color: #f2f2ee;
}

html.night-mode .app-header,
html.night-mode .modal-header-bar,
html.night-mode .chat-room-header {
    border-color: rgba(255,255,255,.09) !important;
    background: rgba(24, 25, 29, .88) !important;
    color: #f5f5f1 !important;
}

html.night-mode .app-header *,
html.night-mode .modal-header-bar *,
html.night-mode .chat-room-header *,
html.night-mode .chat-room-title,
html.night-mode #chat-room-layer .back-btn { color: inherit; }

html.night-mode .setting-card,
html.night-mode .settings-v2-card,
html.night-mode .settings-api-main-legacy .bg-white,
html.night-mode .settings-api-main-legacy .api-main-preset-shell,
html.night-mode .settings-api-main-legacy .api-main-preset-card,
html.night-mode .ui-dialog,
html.night-mode .ui-dialog[data-ui-dialog-variant="backup-reminder"],
html.night-mode .modal-content,
html.night-mode .bg-white {
    border-color: rgba(255,255,255,.09) !important;
    background-color: #1b1d22 !important;
    color: #f1f1ed !important;
}

html.night-mode .bg-gray-50,
html.night-mode .bg-gray-100,
html.night-mode .bg-gray-200,
html.night-mode .settings-v2,
html.night-mode .settings-api-main-legacy,
html.night-mode .settings-api-main-legacy .api-main-preset-list,
html.night-mode .settings-api-main-legacy .api-main-preset-empty,
html.night-mode .ui-dialog-message,
html.night-mode .ui-dialog-input {
    background-color: #24262c !important;
    color: #ecece8 !important;
}

html.night-mode input:not([type="range"]),
html.night-mode textarea,
html.night-mode select,
html.night-mode .url-input {
    border-color: rgba(255,255,255,.11) !important;
    background-color: #292b31 !important;
    color: #f4f4ef !important;
}
html.night-mode input::placeholder,
html.night-mode textarea::placeholder { color: #97989d !important; }

html.night-mode .text-black,
html.night-mode .text-gray-900,
html.night-mode .text-gray-800,
html.night-mode .text-gray-700,
html.night-mode .text-gray-600,
html.night-mode .settings-v2-label,
html.night-mode .settings-v2-section-title,
html.night-mode .settings-api-main-legacy h3,
html.night-mode .settings-api-main-legacy label,
html.night-mode .setting-card h1,
html.night-mode .setting-card h2,
html.night-mode .setting-card h3,
html.night-mode .setting-card span { color: #f0f0ec !important; }

html.night-mode .text-gray-500,
html.night-mode .text-gray-400,
html.night-mode .settings-v2-kicker,
html.night-mode .settings-v2-status,
html.night-mode .settings-api-main-legacy p,
html.night-mode .setting-card p { color: #a4a5aa !important; }

html.night-mode .border-gray-50,
html.night-mode .border-gray-100,
html.night-mode .border-gray-200,
html.night-mode .settings-v2-row + .settings-v2-row {
    border-color: rgba(255,255,255,.09) !important;
}

html.night-mode .desktop-page .dock,
html.night-mode .dock-container { background: rgba(32, 33, 38, .82) !important; }
html.night-mode .appearance-night-mode-card { border-color: rgba(255,255,255,.12) !important; }
html.night-mode .appearance-night-mode-kicker { color: #999aa1; font-size: 9px; font-weight: 750; letter-spacing: .14em; }

html.night-mode .settings-model-search-picker { background: rgba(0, 0, 0, .56); }
html.night-mode .settings-model-search-sheet { border-color: rgba(255,255,255,.11); background: #1b1d22; color: #f1f1ed; }
html.night-mode .settings-model-search-kicker,
html.night-mode .settings-model-search-head small,
html.night-mode .settings-model-search-empty { color: #9c9da3; }
html.night-mode .settings-model-search-close,
html.night-mode .settings-model-search-input,
html.night-mode .settings-model-search-item.is-selected { background: #2a2c32; color: #ededE8; }
html.night-mode .settings-model-search-input { border-color: rgba(255,255,255,.1); }
html.night-mode .settings-model-search-input input,
html.night-mode .settings-model-search-item { color: #f1f1ed; }
html.night-mode .settings-model-search-item > i { color: #9b9ca1; }

html.night-mode .settings-model-inline-input,
html.night-mode .settings-model-inline-results {
    border-color: rgba(255,255,255,.1);
    background: #24262c;
    color: #a9abb1;
}
html.night-mode .settings-model-inline-input > input,
html.night-mode .settings-model-inline-item { color: #f1f1ed !important; }
html.night-mode .settings-model-inline-count,
html.night-mode .settings-model-inline-item.is-selected { background: #34363d; color: #f5f5f0; }

/* Cover app-specific pages that use their own fixed light surfaces. Images and chat wallpapers stay untouched. */
html.night-mode .app-window :where(
    [class$="-page"], [class*="-page "],
    [class$="-screen"], [class*="-screen "],
    [class$="-view"], [class*="-view "],
    [class$="-layout"], [class*="-layout "],
    [class$="-app"], [class*="-app "],
    [class$="-shell"], [class*="-shell "]
) {
    background-color: #15161a !important;
    color: #f1f1ed !important;
}

html.night-mode :where(.app-window, .modal-overlay, .modal-mask, [class*="-modal"]) :where(
    [class$="-card"], [class*="-card "],
    [class$="-panel"], [class*="-panel "],
    [class$="-sheet"], [class*="-sheet "],
    [class$="-section"], [class*="-section "],
    [class$="-content"], [class*="-content "]
):not(.msg-bubble):not(.message-bubble):not(.user-bubble):not(.ai-bubble) {
    border-color: rgba(255,255,255,.09) !important;
    background-color: #1b1d22 !important;
    color: #f1f1ed !important;
}

html.night-mode .app-window :where(
    [class$="-header"], [class*="-header "],
    [class$="-topbar"], [class*="-topbar "],
    [class$="-navbar"], [class*="-navbar "],
    [class$="-footer"], [class*="-footer "],
    [class$="-toolbar"], [class*="-toolbar "],
    [class$="-tabs"], [class*="-tabs "]
) {
    border-color: rgba(255,255,255,.09) !important;
    background-color: rgba(25,26,31,.94) !important;
    color: #f3f3ef !important;
}

html.night-mode .app-window :where(
    [class$="-item"], [class*="-item "],
    [class$="-cell"], [class*="-cell "],
    [class$="-row"], [class*="-row "]
):not(.msg-row):not(.message-row):not(.chat-row) {
    border-color: rgba(255,255,255,.08) !important;
}

html.night-mode .app-window :where(.title, [class$="-title"], [class*="-title "], h1, h2, h3, h4, strong) {
    color: #f3f3ef !important;
}
html.night-mode .app-window :where(.subtitle, [class$="-subtitle"], [class*="-subtitle "], .description, [class$="-description"], [class*="-description "], .caption, [class$="-caption"], [class*="-caption "], small) {
    color: #a5a7ae !important;
}

html.night-mode .app-window :where(button:not(.msg-bubble), [role="button"]),
html.night-mode :where(.modal-overlay, .modal-mask, [class*="-modal"]) button {
    border-color: rgba(255,255,255,.1);
}

html.night-mode .app-window :where(.tab.active, [class*="tab-active"], [class*="is-active"], .primary-button, [class*="-primary"]) {
    background-color: #efefeb !important;
    color: #15161a !important;
}

/* Runtime correction for legacy pages with inline #fff/#fafafa backgrounds. */
html.night-mode [data-shubao-night-surface="page"] {
    border-color: rgba(255,255,255,.07) !important;
    background-color: #15161a !important;
    background-image: none !important;
    box-shadow: none !important;
}
html.night-mode [data-shubao-night-surface="raised"] {
    border-color: rgba(255,255,255,.09) !important;
    background-color: #202126 !important;
    background-image: none !important;
    box-shadow: 0 5px 20px rgba(0,0,0,.16) !important;
}
html.night-mode [data-shubao-night-ink="strong"] { color: #f2f2ee !important; }
html.night-mode [data-shubao-night-ink="muted"] { color: #a8a9af !important; }

html.night-mode .mini-btn,
html.night-mode .device-layout-reset,
html.night-mode .global-chat-wallpaper-preview,
html.night-mode .checkin-picker-count,
html.night-mode .checkin-picker-hero,
html.night-mode .perception-mode-switch,
html.night-mode .perception-floating-dock,
html.night-mode .pomodoro-bottom-nav,
html.night-mode .redbook-bottom-nav,
html.night-mode .redbook-top-nav,
html.night-mode .redbook-empty-box,
html.night-mode .redbook-drawer,
html.night-mode .mcp-note,
html.night-mode .meeting-match-button,
html.night-mode .update-announcement-card,
html.night-mode .update-announcement-footer {
    border-color: rgba(255,255,255,.09) !important;
    background-color: #202126 !important;
    color: #f1f1ed !important;
}

html.night-mode .update-announcement-card :where(h1,h2,h3,h4,strong,p,span),
html.night-mode .update-announcement-footer :where(p,span) { color: inherit !important; }
