/* =========================================================
   Studio Noir OS · 高定黑白极简设置页面样式
   ========================================================= */
.manual-color-options {
    max-height: 100px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.28s ease, 
                padding-top 0.35s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
}

.manual-color-options.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    border-top-color: transparent;
    pointer-events: none;
}

.icon-mode-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.icon-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.icon-dot:active { transform: scale(0.9); }

/* 渐显提示语 (上移15px) */
.hint-toast {
    position: absolute;
    right: 16px;
    top: -49px;
    font-size: 9px;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    border: 0.5px solid rgba(255,255,255,0.25);
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 25;
}
.noir-settings-root.theme-light .hint-toast {
    color: #000000;
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.2);
}
.hint-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* 悬空小书签 (下移25px 左移5px -> right: 17px, top: 45px) */
.bookmark-tab {
    position: absolute;
    right: 17px;
    top: calc(50% + 45px);
    transform: translateY(-50%);
    width: 34px;
    height: 46px;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}
.bookmark-tab:active { transform: translateY(-50%) scale(0.92); }
.bookmark-tab svg { width: 100%; height: 100%; }

/* 拉出的 App 名称颜色面板 */
.app-name-panel {
    position: absolute;
    right: 53px;
    top: calc(50% + 45px);
    transform: translateY(-50%) translateX(12px) scale(0.95);
    width: 230px;
    background: rgba(20, 20, 25, 0.92);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 0.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 19;
}
.noir-settings-root.theme-light .app-name-panel {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.15);
    color: #000000;
}
.noir-settings-root.theme-light .panel-title {
    color: rgba(0, 0, 0, 0.75) !important;
}
.noir-settings-root.theme-light .panel-sub {
    color: rgba(0, 0, 0, 0.4) !important;
}
.noir-settings-root.theme-light .live-preview {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: #000;
}
.noir-settings-root.theme-light .live-preview svg {
    stroke: #000 !important;
}
.app-name-panel.open {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
    pointer-events: auto;
}
.panel-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.panel-sub {
    font-size: 8px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}

/* 名称颜色选择球 */
.name-color-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.name-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.name-dot:active { transform: scale(0.9); }
.name-dot.active {
    transform: scale(1.18);
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.7);
    z-index: 5;
}
.nd-white { background: #FFFFFF; }
.nd-black { background: #1E1E24; }
.nd-gray { background: #A1A1AA; }
.nd-blue { background: #74b9ff; }
.nd-pink { background: #ff7675; }
.nd-custom { background: linear-gradient(135deg, #ff7675, #74b9ff, #ffeaa7); }

/* 实时预览文字 */
.live-preview {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 0.5px solid rgba(255,255,255,0.1);
}
.live-preview svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 1.7; fill: none; }
.live-preview span { transition: color 0.3s ease; }
.icon-dot.active {
    transform: scale(1.15);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 5;
}

.noir-settings-root.theme-light .icon-dot.active {
    border-color: #000000 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(0, 0, 0, 0.2) !important;
    z-index: 5;
}
.dark-dot { background: #18181B; }
.light-dot { background: #FFFFFF; }
.custom-dot { background: linear-gradient(135deg, #ff7675, #74b9ff, #ffeaa7); }
.noir-settings-root {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(6, 6, 8, 0.55), rgba(6, 6, 8, 0.55)), url('/assets/settings/设置背景.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 56px 20px 20px 20px;
    transition: background 0.4s ease, color 0.4s ease;
}

.mono-font {
    font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
}

.noir-settings-root .grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 34px 34px;
}

.noir-settings-root .top-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 45%;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(180, 185, 200, 0.10) 0%, transparent 65%);
    pointer-events: none;
}

.noir-settings-root .dotted-stars-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.noir-settings-root .dotted-stars-container svg { fill: #ffffff; transition: fill 0.4s ease; }

.noir-settings-root .crosshair {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.35;
}
.noir-settings-root .crosshair::before, .noir-settings-root .crosshair::after {
    content: '';
    position: absolute;
    background: #ffffff;
}
.noir-settings-root .crosshair::before { left: 50%; top: 0; width: 0.5px; height: 100%; transform: translateX(-50%); }
.noir-settings-root .crosshair::after { top: 50%; left: 0; height: 0.5px; width: 100%; transform: translateY(-50%); }
.noir-settings-root .crosshair.tl { top: 40px; left: 20px; }
.noir-settings-root .crosshair.tr { top: 40px; right: 20px; }

/* 顶部导航 */
.noir-settings-root .nav-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.noir-settings-root .top-glass-pill {
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: url(#lens-refraction) blur(12px) saturate(180%);
    -webkit-backdrop-filter: url(#lens-refraction) blur(12px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.noir-settings-root .top-glass-pill:active { transform: scale(0.92); background: rgba(255,255,255,0.15); }
.noir-settings-root .top-glass-pill svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.noir-settings-root .top-glass-pill span { font-size: 10.5px; font-weight: 600; color: #fff; letter-spacing: 1px; }

.noir-settings-root .header-title-group {
    display: flex; align-items: center; gap: 7px; color: #fff;
}
.noir-settings-root .plane-logo-svg { width: 16px; height: 16px; fill: #ffffff; }
.noir-settings-root .header-title {
    font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    opacity: 0.85;
}

/* Hero 大标题 */
.noir-settings-root .hero-zone {
    position: relative;
    z-index: 5;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.noir-settings-root .hero-text-col { display: flex; flex-direction: column; }

.noir-settings-root .hero-kicker {
    font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,0.4);
    display: flex; align-items: center; gap: 8px;
}
.noir-settings-root .hero-kicker .kicker-line {
    height: 0.5px; width: 24px; background: rgba(255,255,255,0.35);
}
.noir-settings-root .hero-main {
    font-size: 24px; 
    font-weight: 200; 
    letter-spacing: 0.5px;
    color: #ffffff; 
    margin-top: 6px; 
    line-height: 1.08;
}
.noir-settings-root .hero-main strong { 
    font-weight: 700; 
    letter-spacing: -0.3px; 
    color: inherit;
}
.noir-settings-root .hero-sub {
    font-size: 10px; color: rgba(255,255,255,0.42);
    margin-top: 6px; letter-spacing: 0.3px;
}

.noir-settings-root .hero-avatar {
    position: relative;
    width: 52px; height: 52px;
    flex-shrink: 0;
}
.noir-settings-root .avatar-ring {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.03) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 22px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.4);
    backdrop-filter: url(#lens-refraction) blur(6px);
    -webkit-backdrop-filter: url(#lens-refraction) blur(6px);
    overflow: hidden;
}
.noir-settings-root .avatar-plane { width: 20px; height: 20px; fill: #ffffff; opacity: 0.92; }
.noir-settings-root .avatar-status {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 9px; height: 9px; border-radius: 50%;
    background: #ffffff;
    border: 2px solid #060608;
    z-index: 2;
}

/* 设置面板区 */
.noir-settings-root .settings-container {
    position: relative;
    z-index: 5;
    flex: 1;
    margin-top: 16px;
    overflow: hidden;
    display: flex;
}

.noir-settings-root .settings-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-bottom: 70px;
    visibility: hidden;
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-overflow-scrolling: touch;
}
.noir-settings-root .settings-panel::-webkit-scrollbar { display: none; }

.noir-settings-root .settings-panel.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.noir-settings-root .section-tag {
    font-size: 8.5px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: rgba(255,255,255,0.32);
    padding-left: 4px; margin-bottom: -4px;
}

.noir-settings-root .setting-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 2px 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6), inset 0 0.5px 0 rgba(255,255,255,0.08);
}

.noir-settings-root .setting-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 0.5px solid rgba(255, 255, 255, 0.055); cursor: pointer;
    transition: opacity 0.2s;
}
.noir-settings-root .setting-row:active { opacity: 0.6; }
.noir-settings-root .setting-row:last-child { border-bottom: none; }

.noir-settings-root .row-left { display: flex; align-items: center; gap: 11px; color: #fff; }

.noir-settings-root .row-icon-box {
    width: 28px; height: 28px; border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    border: 0.5px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.noir-settings-root .row-icon-box svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.noir-settings-root .row-text-group { display: flex; flex-direction: column; gap: 1px; }
.noir-settings-root .row-label { font-size: 12px; font-weight: 600; letter-spacing: -0.1px; }
.noir-settings-root .row-note { font-size: 8px; color: rgba(255,255,255,0.35); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 500; }

.noir-settings-root .row-right { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.42); font-size: 11px; }
.noir-settings-root .row-right svg { width: 12px; height: 12px; stroke: rgba(255,255,255,0.4); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* 开关 */
.noir-settings-root .ios-switch {
    width: 40px; height: 23px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 0.5px solid rgba(255,255,255,0.1);
    position: relative; cursor: pointer; transition: background 0.25s;
    flex-shrink: 0;
}
.noir-settings-root .ios-switch::after {
    content: ''; position: absolute; top: 2.5px; left: 2.5px;
    width: 17px; height: 17px; border-radius: 50%; background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.45);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.noir-settings-root .ios-switch.active { background: #ffffff; }
.noir-settings-root .ios-switch.active::after { transform: translateX(17px); background: #060608; }

.noir-settings-root .action-text-btn {
    font-size: 10px; font-weight: 600; color: #fff;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(255,255,255,0.08); border: 0.5px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

/* 胶囊选择器 */
.noir-settings-root .theme-seg-picker {
    display: flex; width: 100%; background: rgba(255, 255, 255, 0.06);
    border-radius: 999px; padding: 2.5px; gap: 2px;
    border: 0.5px solid rgba(255, 255, 255, 0.12); margin-top: 4px;
}
.noir-settings-root .seg-pill {
    flex: 1; text-align: center; padding: 5px 0; font-size: 10px; font-weight: 600;
    color: rgba(255, 255, 255, 0.6); border-radius: 999px; cursor: pointer; transition: all 0.25s;
}
.noir-settings-root .seg-pill.active {
    background: #ffffff; color: #060608; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* API 表单 */
.noir-settings-root .api-form-group { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.noir-settings-root .field-label { font-size: 8.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.38); }
.noir-settings-root .api-input-field {
    width: 100%; background: rgba(255, 255, 255, 0.045);
    border: 0.5px solid rgba(255, 255, 255, 0.14); border-radius: 11px;
    padding: 10px 13px; color: #ffffff; font-size: 12px; outline: none;
}
.noir-settings-root .api-input-field::placeholder { color: rgba(255, 255, 255, 0.25); }

.noir-settings-root .api-action-buttons { display: flex; gap: 8px; margin-top: 4px; }
.noir-settings-root .pill-btn {
    flex: 1; height: 40px; border-radius: 20px; background: transparent;
    border: 0.75px solid rgba(255, 255, 255, 0.35); color: #ffffff;
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.noir-settings-root .pill-btn svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2; fill: none; }
.noir-settings-root .pill-btn.primary { background: #ffffff; border-color: #ffffff; color: #060608; }
.noir-settings-root .pill-btn.primary svg { stroke: #060608; }

.noir-settings-root .model-select-wrapper { margin-top: 8px; display: none; flex-direction: column; gap: 6px; }
.noir-settings-root .model-select-wrapper.show { display: flex; }
.noir-settings-root .model-dropdown {
    width: 100%;
    background: rgba(16, 16, 20, 0.95);
    border: 0.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    padding: 10px 13px;
    color: #ffffff;
    font-size: 11.5px;
    outline: none;
    cursor: pointer;
}

.noir-settings-root .presets-list-box { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.noir-settings-root .preset-accordion-item {
    background: rgba(255, 255, 255, 0.035); border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px; overflow: hidden;
}
.noir-settings-root .preset-accordion-header {
    padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.noir-settings-root .preset-title-wrap { display: flex; align-items: center; gap: 8px; color: #fff; }
.noir-settings-root .preset-title-wrap svg { width: 13px; height: 13px; stroke: rgba(255,255,255,0.6); stroke-width: 2; fill: none; }
.noir-settings-root .preset-name-text { font-size: 11.5px; font-weight: 600; }
.noir-settings-root .preset-tag-badge { font-size: 8px; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); font-weight: 500; }

.noir-settings-root .preset-accordion-body {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease; background: rgba(0,0,0,0.25);
}
.noir-settings-root .preset-accordion-item.expanded .preset-accordion-body {
    max-height: 240px; padding: 12px 14px;
}
.noir-settings-root .preset-edit-inner { display: flex; flex-direction: column; gap: 8px; }
.noir-settings-root .preset-edit-input {
    width: 100%; background: rgba(255,255,255,0.05); border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 9px; padding: 7px 10px; color: #fff; font-size: 11px; outline: none;
}
.noir-settings-root .preset-edit-row-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 2px; }
.noir-settings-root .preset-sub-btn {
    padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.1);
    color: #fff; font-size: 9px; font-weight: 700; border: none; cursor: pointer; text-transform: uppercase;
}
.noir-settings-root .preset-sub-btn.primary { background: #fff; color: #000; }

/* 左下角操作按钮组 */
.noir-settings-root .bottom-left-controls {
    position: absolute; left: 20px; bottom: 20px; z-index: 10;
    display: flex; align-items: center; gap: 8px;
}
.noir-settings-root .corner-preset-switcher {
    height: 40px; padding: 0 14px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: url(#lens-refraction) blur(14px) saturate(180%);
    -webkit-backdrop-filter: url(#lens-refraction) blur(14px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.35);
    display: flex; align-items: center; gap: 7px; cursor: pointer;
    transition: all 0.3s ease;
}
.noir-settings-root .corner-preset-switcher:active { transform: scale(0.9); background: rgba(255,255,255,0.16); }
.noir-settings-root .corner-preset-switcher svg { width: 15px; height: 15px; fill: #fff; }
.noir-settings-root .corner-preset-switcher .switcher-text { font-size: 10px; font-weight: 700; color: #fff; letter-spacing: 0.5px; text-transform: uppercase; }

.noir-settings-root .corner-bg-switcher {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: url(#lens-refraction) blur(14px) saturate(180%);
    -webkit-backdrop-filter: url(#lens-refraction) blur(14px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.3s ease;
}
.noir-settings-root .corner-bg-switcher:active { transform: scale(0.9); background: rgba(255,255,255,0.16); }
.noir-settings-root .corner-bg-switcher svg { stroke: #fff; width: 15px; height: 15px; fill: none; }

.noir-settings-root.theme-light .corner-bg-switcher {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    border-top-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04), inset 0 1px 1px rgba(255,255,255,0.9) !important;
}
.noir-settings-root.theme-light .corner-bg-switcher svg {
    stroke: #000000 !important;
}

/* 底部 footer */
.noir-settings-root .stage-footer {
    position: relative; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 7px;
    font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.25); font-weight: 600;
}
.noir-settings-root .stage-footer .dot-sep { width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,0.3); }

/* 彻底消除设置应用自带的默认外框、头部黑条与底部横条 */
.app-window.noir-mode .app-header,
.app-window.noir-mode .home-indicator-area {
    display: none !important;
}
.app-window.noir-mode .app-content {
    padding: 0 !important;
    height: 100% !important;
}

/* =========================================================
   iOS 居中毛玻璃弹窗 (Centered iOS Modal)
   ========================================================= */
.noir-settings-root .modal-backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55);
    z-index: 50; opacity: 0; pointer-events: none;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.35s ease;
}
.noir-settings-root.center-modal-open .modal-backdrop { opacity: 1; pointer-events: auto; }

.noir-settings-root .ios-center-modal {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    width: 86%; max-width: 340px; max-height: 75vh; z-index: 60; border-radius: 28px; padding: 22px 20px 20px 20px;
    background: rgba(20, 20, 25, 0.88);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 0.5px solid rgba(255, 255, 255, 0.22); box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    display: flex; flex-direction: column; gap: 14px; opacity: 0; pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.noir-settings-root.center-modal-open .ios-center-modal {
    opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto;
}

.center-modal-header {
    display: flex; align-items: center; justify-content: space-between; color: #fff; padding-bottom: 10px; border-bottom: 0.5px solid rgba(255,255,255,0.09);
}
.sheet-title-group { display: flex; align-items: center; gap: 9px; }
.sheet-title-group svg { width: 16px; height: 16px; fill: #fff; }
.sheet-title { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.sheet-subtitle { font-size: 8.5px; font-weight: 600; letter-spacing: 1px; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-top: 2px; display: block; }

.sheet-close-btn {
    width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.08);
    border: 0.5px solid rgba(255,255,255,0.15); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sheet-close-btn svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; }

.center-modal-body { display: flex; flex-direction: column; gap: 9px; max-height: 260px; overflow-y: auto; }
.center-modal-body::-webkit-scrollbar { display: none; }
.sheet-option-item {
    padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); color: #fff;
    font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 11px; cursor: pointer; border: 0.5px solid rgba(255,255,255,0.08);
}
.sheet-option-item:active { background: rgba(255,255,255,0.12); }
.sheet-option-item .opt-icon {
    width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sheet-option-item .opt-icon svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sheet-option-item .opt-arrow { margin-left: auto; }

.tip-modal-content { text-align: center; padding: 12px 0 6px 0; font-size: 13.5px; font-weight: 500; letter-spacing: -0.1px; }
.tip-modal-btn {
    margin-top: 6px; width: 100%; height: 38px; border-radius: 12px; background: #ffffff; color: #060608;
    font-size: 12px; font-weight: 700; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px;
}

/* =========================================================
   浅色主题：无色调纯白适配 (Neutral Pure White Light Mode)
   ========================================================= */
.noir-settings-root.theme-light {
    color: #000000 !important;
}
.noir-settings-root.theme-light .grid-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
}
.noir-settings-root.theme-light .top-glow { background: none !important; }
.noir-settings-root.theme-light .crosshair::before,
.noir-settings-root.theme-light .crosshair::after { background: rgba(0, 0, 0, 0.2); }
.noir-settings-root.theme-light .dotted-stars-container svg { fill: rgba(0, 0, 0, 0.2) !important; }
.noir-settings-root.theme-light .top-glass-pill,
.noir-settings-root.theme-light .corner-preset-switcher {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    border-top-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04), inset 0 1px 1px rgba(255,255,255,0.9) !important;
}
.noir-settings-root.theme-light .top-glass-pill svg,
.noir-settings-root.theme-light .plane-logo-svg,
.noir-settings-root.theme-light .avatar-plane,
.noir-settings-root.theme-light .corner-preset-switcher svg {
    stroke: #000000 !important; fill: #000000 !important;
}
.noir-settings-root.theme-light .top-glass-pill span,
.noir-settings-root.theme-light .header-title-group span,
.noir-settings-root.theme-light .hero-main,
.noir-settings-root.theme-light .row-label,
.noir-settings-root.theme-light .preset-name-text,
.noir-settings-root.theme-light .corner-preset-switcher .switcher-text,
.noir-settings-root.theme-light .hero-kicker,
.noir-settings-root.theme-light .hero-sub,
.noir-settings-root.theme-light .section-tag,
.noir-settings-root.theme-light .field-label,
.noir-settings-root.theme-light .row-note,
.noir-settings-root.theme-light .stage-footer {
    color: #000000 !important;
}
.noir-settings-root.theme-light .hero-kicker { color: rgba(0,0,0,0.5) !important; }
.noir-settings-root.theme-light .hero-kicker .kicker-line { background: rgba(0,0,0,0.3) !important; }
.noir-settings-root.theme-light .hero-sub,
.noir-settings-root.theme-light .row-note,
.noir-settings-root.theme-light .section-tag,
.noir-settings-root.theme-light .field-label,
.noir-settings-root.theme-light .stage-footer {
    color: rgba(0,0,0,0.45) !important;
}
.noir-settings-root.theme-light .setting-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.05), inset 0 0.5px 0 rgba(255,255,255,1) !important;
}
.noir-settings-root.theme-light .row-icon-box { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
.noir-settings-root.theme-light .row-icon-box svg { stroke: #000000 !important; }
.noir-settings-root.theme-light .setting-row { border-bottom-color: rgba(0,0,0,0.06); }
.noir-settings-root.theme-light .row-right svg { stroke: rgba(0,0,0,0.4) !important; }
.noir-settings-root.theme-light .theme-seg-picker { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
.noir-settings-root.theme-light .seg-pill { color: rgba(0,0,0,0.6); }
.noir-settings-root.theme-light .seg-pill.active { background: #000000; color: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.noir-settings-root.theme-light .api-input-field,
.noir-settings-root.theme-light .preset-edit-input { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.18); color: #000000; }
.noir-settings-root.theme-light .api-input-field::placeholder,
.noir-settings-root.theme-light .preset-edit-input::placeholder { color: rgba(0,0,0,0.35); }
.noir-settings-root.theme-light .pill-btn { border-color: rgba(0,0,0,0.3); color: #000000; background: rgba(0,0,0,0.03); }
.noir-settings-root.theme-light .pill-btn svg { stroke: #000000; }
.noir-settings-root.theme-light .pill-btn.primary,
.noir-settings-root.theme-light .preset-sub-btn.primary { background: #000000; color: #ffffff; }
.noir-settings-root.theme-light .pill-btn.primary svg { stroke: #ffffff; }
.noir-settings-root.theme-light .preset-sub-btn { background: rgba(0,0,0,0.08); color: #000000; }
.noir-settings-root.theme-light .preset-accordion-item { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
.noir-settings-root.theme-light .preset-accordion-body { background: rgba(0,0,0,0.04); }
.noir-settings-root.theme-light .preset-title-wrap,
.noir-settings-root.theme-light .preset-title-wrap svg { color: #000000; stroke: #000000; }
.noir-settings-root.theme-light .preset-tag-badge { background: rgba(0,0,0,0.08); color: rgba(0,0,0,0.7); }
.noir-settings-root.theme-light .preset-tag-badge[style*="background:#ffffff"] { background: #000000 !important; color: #ffffff !important; }
.noir-settings-root.theme-light .model-dropdown { background: #ffffff !important; border-color: rgba(0,0,0,0.22) !important; color: #000000 !important; background-image: none !important; }
.noir-settings-root.theme-light .ios-switch { background: rgba(0,0,0,0.15); border-color: rgba(0,0,0,0.1); }
.noir-settings-root.theme-light .ios-switch.active { background: #000000; border-color: #000000; }
.noir-settings-root.theme-light .ios-switch.active::after { background: #ffffff; }
.noir-settings-root.theme-light .avatar-status { border-color: #ffffff; }
.noir-settings-root.theme-light .action-text-btn { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.15); color: #000000; }
.ios-center-modal .sheet-title { color: #ffffff !important; }
.ios-center-modal .sheet-subtitle { color: rgba(255, 255, 255, 0.45) !important; }

.noir-settings-root.theme-light .ios-center-modal { background: rgba(255, 255, 255, 0.95); color: #000000; border-color: rgba(0,0,0,0.15); }
.noir-settings-root.theme-light .ios-center-modal .sheet-title { color: #000000 !important; }
.noir-settings-root.theme-light .ios-center-modal .sheet-subtitle { color: rgba(0, 0, 0, 0.55) !important; }
.noir-settings-root.theme-light .ios-center-modal .sheet-option-item,
.noir-settings-root.theme-light .ios-center-modal .sheet-option-item span { color: #000000 !important; }
.noir-settings-root.theme-light .ios-center-modal .preset-tag-badge { color: #000000 !important; background: rgba(0, 0, 0, 0.08) !important; }
.noir-settings-root.theme-light .sheet-title-group svg,
.noir-settings-root.theme-light .sheet-option-item .opt-icon svg { fill: #000000 !important; stroke: #000000 !important; }
.noir-settings-root.theme-light .sheet-option-item { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.noir-settings-root.theme-light .sheet-close-btn { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); }
.noir-settings-root.theme-light .sheet-close-btn svg { stroke: #000000 !important; }
.noir-settings-root.theme-light .tip-modal-btn { background: #000000; color: #ffffff; }
.noir-settings-root.theme-light .sheet-option-item .opt-icon { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.08); }

/* 图标库弹窗 SVG 在深色/浅色模式下的精准适配 */
.ios-center-modal .opt-icon svg {
    stroke: #ffffff;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.noir-settings-root.theme-light ~ .modal-backdrop .ios-center-modal .opt-icon svg,
.noir-settings-root.theme-light .ios-center-modal .opt-icon svg {
    stroke: #000000 !important;
    fill: none !important;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ===== 修复：浅色模式下弹窗标题下的分隔横线看不见 ===== */
.noir-settings-root.theme-light .center-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.14) !important;
}

/* ===== 修复：弹窗第二行（副标题）粗体，与 Preferences 的样式一致 ===== */
.ios-center-modal .sheet-subtitle {
    font-weight: 800 !important;
    font-size: 10px !important;
}

/* ===== 修复：浅色模式下书签标签的线条与星形仍是白色 ===== */
.noir-settings-root.theme-light .bookmark-tab path:first-of-type {
    fill: rgba(0, 0, 0, 0.08) !important;
    stroke: rgba(0, 0, 0, 0.5) !important;
}
.noir-settings-root.theme-light .bookmark-tab path:last-of-type {
    fill: rgba(0, 0, 0, 0.85) !important;
}

/* ===== 新增：弹窗头部的日夜切换按钮（在叉号左边） ===== */
.sheet-header-actions {
    display: flex; align-items: center; gap: 8px;
}
.sheet-theme-btn svg {
    width: 13px; height: 13px;
    fill: none; stroke: #fff; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
/* 深色模式显示月亮（当前是夜间），浅色模式显示太阳（当前是日间） */
.sheet-theme-btn .icon-sun { display: none; }
.sheet-theme-btn .icon-moon { display: block; }
.noir-settings-root.theme-light .sheet-theme-btn .icon-moon { display: none; }
.noir-settings-root.theme-light .sheet-theme-btn .icon-sun { display: block; }

/* ===== 深色模式：所有弹窗做成半透明纯黑 ===== */
.noir-settings-root:not(.theme-light) .ios-center-modal {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}
.noir-settings-root:not(.theme-light) .sheet-option-item {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
}
.noir-settings-root:not(.theme-light) .sheet-option-item:active {
    background: rgba(0, 0, 0, 0.55);
}
.noir-settings-root:not(.theme-light) .sheet-close-btn {
    background: rgba(0, 0, 0, 0.4);
}

/* ===== 弹窗图标（包括桌面真实图标、信息样式预览）：颜色跟随弹窗自己的日夜，去掉白色光晕 ===== */
.noir-settings-root .sheet-option-item .opt-icon .stroke-primary,
.noir-settings-root .sheet-option-item .opt-icon .stroke-secondary,
.noir-settings-root .sheet-option-item .opt-icon .star-solid-translucent {
    stroke: inherit !important;
    filter: none !important;
}
.noir-settings-root .sheet-option-item .opt-icon .stroke-secondary {
    opacity: 0.5 !important;
}
.noir-settings-root .sheet-option-item .opt-icon .fill-solid {
    fill: inherit !important;
    stroke: none !important;
}
.noir-settings-root .sheet-option-item .opt-icon svg,
.noir-settings-root .sheet-option-item .opt-icon svg * {
    filter: none !important;
}


/* ===== 桌面壁纸：点击后从按钮处展开的液态玻璃方框（与设置页其他玻璃控件一致） ===== */
.wp-morph {
    position: absolute; z-index: 80; overflow: hidden;
    display: flex; flex-direction: column;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: url(#lens-refraction) blur(16px) saturate(180%);
    -webkit-backdrop-filter: url(#lens-refraction) blur(16px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    transition: left 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                top 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
}
.wp-morph.open { border-radius: 22px; }

/* 玻璃表面的顶部高光 */
.wp-morph::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 45%);
}

.wp-morph-item {
    position: relative; z-index: 1;
    flex: 1; display: flex; align-items: center; padding: 0 18px;
    font-size: 13px; font-weight: 600; color: #ffffff; white-space: nowrap;
    cursor: pointer; opacity: 0; transition: opacity 0.2s ease, background 0.2s ease;
}
.wp-morph.open .wp-morph-item { opacity: 1; transition: opacity 0.25s ease 0.2s, background 0.2s ease; }
.wp-morph-item + .wp-morph-item { border-top: 0.5px solid rgba(255, 255, 255, 0.14); }
.wp-morph-item:active { background: rgba(255, 255, 255, 0.12); }

/* 浅色模式 */
.noir-settings-root.theme-light .wp-morph {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    border-top-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}
.noir-settings-root.theme-light .wp-morph::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 45%);
}
.noir-settings-root.theme-light .wp-morph-item { color: #000000; }
.noir-settings-root.theme-light .wp-morph-item + .wp-morph-item { border-top-color: rgba(0, 0, 0, 0.1); }
.noir-settings-root.theme-light .wp-morph-item:active { background: rgba(0, 0, 0, 0.06); }

/* ===== 弹窗下方悬浮按钮：外层边框胶囊 + 黑色半透明按钮 ===== */
.popup-floating-footer {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: none; align-items: center; gap: 16px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: none;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    z-index: 61;
    transition: opacity 0.3s ease;
}
.noir-settings-root.center-modal-open .popup-floating-footer { pointer-events: auto; opacity: 1; }
.noir-settings-root:not(.center-modal-open) .popup-floating-footer { opacity: 0 !important; pointer-events: none !important; }

.pf-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
}
.pf-btn {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease;
}
.pf-btn svg {
    width: 20px; height: 20px;
    stroke: #ffffff; stroke-width: 1.9; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.pf-item:active .pf-btn { transform: scale(0.9); }
.pf-caption {
    font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    color: #ffffff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); white-space: nowrap;
}

/* ===== 设置里的滑条：渐变填充 + 波点装饰 ===== */
.appicon-slider-row {
    display: flex; flex-direction: column; gap: 10px;
    padding: 12px 14px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-top: 0.75px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}
.appicon-slider-head {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; font-weight: 600;
}
.appicon-val {
    font-size: 10px; font-weight: 700; font-family: inherit;
    padding: 2px 9px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}
.appicon-range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; border-radius: 999px; outline: none; cursor: pointer;
    background-image:
        radial-gradient(circle, rgba(120, 120, 130, 0.75) 0.9px, transparent 1.3px),
        linear-gradient(to right,
            #ffffff 0%, #b4b4bc var(--p, 50%),
            rgba(255, 255, 255, 0.12) var(--p, 50%), rgba(255, 255, 255, 0.12) 100%);
    background-size: 6px 8px, 100% 100%;
    background-repeat: repeat-x, no-repeat;
}
.appicon-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: #ffffff; border: 3px solid rgba(138, 138, 146, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
}
.appicon-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.appicon-range::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: #ffffff; border: 3px solid rgba(138, 138, 146, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.appicon-range::-moz-range-track { background: transparent; }

.appicon-priority {
    font-size: 10px; line-height: 1.6; opacity: 0.65; padding: 2px 4px 0;
}

/* 设置里的颜色选择框 */
.appicon-color {
    width: 40px; height: 24px; padding: 0; border: none; background: none; cursor: pointer;
    border-radius: 8px;
}
.appicon-color::-webkit-color-swatch-wrapper { padding: 0; }
.appicon-color::-webkit-color-swatch { border: 0.5px solid rgba(255, 255, 255, 0.35); border-radius: 8px; }
.appicon-color::-moz-color-swatch { border: 0.5px solid rgba(255, 255, 255, 0.35); border-radius: 8px; }

/* 浅色模式的滑条 */
.noir-settings-root.theme-light .appicon-slider-row {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.08);
    border-top-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}
.noir-settings-root.theme-light .appicon-range {
    background-image:
        radial-gradient(circle, rgba(90, 90, 100, 0.6) 0.9px, transparent 1.3px),
        linear-gradient(to right,
            #000000 0%, #6a6a72 var(--p, 50%),
            rgba(0, 0, 0, 0.12) var(--p, 50%), rgba(0, 0, 0, 0.12) 100%);
}
.noir-settings-root.theme-light .appicon-range::-webkit-slider-thumb {
    background: #ffffff; border: 3px solid rgba(0, 0, 0, 0.28); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.noir-settings-root.theme-light .appicon-range::-moz-range-thumb { background: #ffffff; border-color: rgba(0, 0, 0, 0.28); }
.noir-settings-root.theme-light .appicon-val { background: rgba(0, 0, 0, 0.08); }

/* ===== 桌面 App 图标：材质 / 边框 / 颜色（优先级见设置里的说明） ===== */

/* 基础：方圆度、磨砂、透明度；边框默认值可被“图标边框”覆盖（优先级 2） */
#phoneContainer .app-icon,
#phoneContainer .dock .app-icon {
    border-radius: var(--app-radius, 17px) !important;
    background: rgba(255, 255, 255, var(--app-glass-alpha, 0.035)) !important;
    backdrop-filter: url(#lens-refraction) blur(var(--app-blur, 1.5px)) saturate(180%) !important;
    -webkit-backdrop-filter: url(#lens-refraction) blur(var(--app-blur, 1.5px)) saturate(180%) !important;
    border: var(--app-border-w, 0.5px) solid var(--app-border-color, rgba(255, 255, 255, 0.18)) !important;
    border-top: var(--app-border-w, 0.75px) solid var(--app-border-color, rgba(255, 255, 255, 0.4)) !important;
}

/* 编辑模式的粉色边框提示：只在没有自定义边框颜色时显示 */
#phoneContainer.edit-mode:not(.app-border-custom) .app-icon {
    border-color: rgba(255, 180, 220, 0.22) !important;
}

/* 优先级 1：纯色材质（背景、图标、边框颜色都由设置决定） */
#phoneContainer.app-material-solid .app-icon,
#phoneContainer.app-material-solid .dock .app-icon {
    background: color-mix(in srgb, var(--app-solid-bg, #ffffff) calc(var(--app-solid-opacity, 1) * 100%), transparent) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: var(--app-border-w, 3px) solid var(--app-border-color, #DDDDDD) !important;
    border-top: var(--app-border-w, 3px) solid var(--app-border-color, #DDDDDD) !important;
}
#phoneContainer.app-material-solid.theme-light .app-icon,
#phoneContainer.app-material-solid.theme-light .dock .app-icon {
    background: color-mix(in srgb, var(--app-solid-bg, #ffffff) calc(var(--app-solid-opacity, 1) * 100%), transparent) !important;
    border-color: var(--app-border-color, #DDDDDD) !important;
    border-top-color: var(--app-border-color, #DDDDDD) !important;
}
#phoneContainer.app-material-solid .app-icon::before { display: none; }

#phoneContainer.app-material-solid .app-icon .stroke-primary,
#phoneContainer.app-material-solid .app-icon .stroke-secondary,
#phoneContainer.app-material-solid .app-icon .star-solid-translucent {
    stroke: var(--app-solid-icon, #595959) !important;
}
#phoneContainer.app-material-solid .app-icon .fill-solid {
    fill: var(--app-solid-icon, #595959) !important;
}
#phoneContainer.app-material-solid.theme-light .app-icon .stroke-primary,
#phoneContainer.app-material-solid.theme-light .app-icon .stroke-secondary,
#phoneContainer.app-material-solid.theme-light .app-icon .star-solid-translucent {
    stroke: var(--app-solid-icon, #595959) !important;
}
#phoneContainer.app-material-solid.theme-light .app-icon .fill-solid {
    fill: var(--app-solid-icon, #595959) !important;
}

/* 优先级 3：应用名称颜色（设置了就覆盖自适应和手动颜色） */
#phoneContainer.app-name-custom .app-label {
    color: var(--app-name-color) !important;
}


/* ===== 内置壁纸弹窗 ===== */
.bw-follow {
    display: flex; flex-direction: column; gap: 3px;
    padding: 12px 14px; border-radius: 14px; cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
}
.bw-follow.selected { outline: 2px solid #ffffff; outline-offset: 1px; }
.bw-follow-sub { font-size: 10px; opacity: 0.6; }
.bw-section-title {
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    opacity: 0.6; padding: 6px 2px 0;
}
.bw-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.bw-thumb {
    position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
}
.bw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bw-thumb::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    border: 2px solid transparent; transition: border-color 0.2s ease;
}
.bw-thumb.selected::after { border-color: #ffffff; }
.bw-num {
    position: absolute; right: 6px; bottom: 6px;
    font-size: 10px; font-weight: 700; color: #ffffff;
    padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.45);
}
.noir-settings-root.theme-light .bw-thumb.selected::after { border-color: #000000; }
.noir-settings-root.theme-light .bw-switch-bar { background: #ffffff; border-color: #000000; }
.noir-settings-root.theme-light .bw-switch-label { color: #000000; }
.noir-settings-root.theme-light .bw-follow { background: rgba(255, 255, 255, 0.55); border-color: rgba(0, 0, 0, 0.08); }
.noir-settings-root.theme-light .bw-thumb { background: rgba(255, 255, 255, 0.55); border-color: rgba(0, 0, 0, 0.08); }

/* ===== 内置壁纸：细长横条跟随系统开关 ===== */
.bw-switch-bar {
    display: flex; align-items: center; justify-content: space-between;
    height: 40px; padding: 0 6px 0 16px; border-radius: 999px; cursor: pointer;
    background: #000000;
    border: 1px solid #ffffff;
}
.bw-switch-label { font-size: 12px; font-weight: 700; color: #ffffff; }
.bw-switch {
    position: relative; width: 44px; height: 28px; border-radius: 999px; flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18); transition: background 0.3s ease;
}
.bw-switch .bw-knob {
    position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
    background: #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bw-switch.on { background: #ffffff; }
.bw-switch.on .bw-knob { transform: translateX(16px); background: #000000; }

/* 暗 / 亮 分段 */
.bw-seg {
    display: flex; margin-top: 10px; padding: 3px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.06); border: 0.5px solid rgba(255, 255, 255, 0.12);
}
.bw-seg-item {
    flex: 1; text-align: center; height: 28px; line-height: 28px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer;
    color: rgba(255, 255, 255, 0.6); transition: all 0.25s ease;
}
.bw-seg-item.active { background: #ffffff; color: #000000; }

/* 每次三张 */
.bw-row3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px;
}
.bw-row3 .bw-thumb { aspect-ratio: 3 / 4; }
.bw-more {
    margin-top: 10px; height: 30px; line-height: 30px; text-align: center; cursor: pointer;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); border: 0.5px solid rgba(255, 255, 255, 0.14);
}
.bw-more:active { background: rgba(255, 255, 255, 0.16); }

.noir-settings-root.theme-light .bw-switch-bar,
.noir-settings-root.theme-light .bw-seg,
.noir-settings-root.theme-light .bw-more { background: rgba(255, 255, 255, 0.55); border-color: rgba(0, 0, 0, 0.1); }
.noir-settings-root.theme-light .bw-switch { background: rgba(0, 0, 0, 0.16); }
.noir-settings-root.theme-light .bw-switch.on { background: #000000; }
.noir-settings-root.theme-light .bw-switch.on .bw-knob { background: #ffffff; }
.noir-settings-root.theme-light .bw-seg-item { color: rgba(0, 0, 0, 0.55); }
.noir-settings-root.theme-light .bw-seg-item.active { background: #000000; color: #ffffff; }

/* ===== 圆形小胶囊提示：底部冒出，然后渐出 ===== */
.capsule-tip {
    position: absolute; left: 50%; bottom: 118px; z-index: 9500;
    transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
    padding: 9px 18px; border-radius: 999px; white-space: nowrap;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.capsule-tip.show { opacity: 1; transform: translate(-50%, 0); }
#phoneContainer.theme-light .capsule-tip {
    color: #000000; background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* ===== 选中框：用内描边，不会被裁切 ===== */
.bw-thumb.selected { outline: none !important; }
.bw-thumb.selected::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 2px #ffffff;
}
.noir-settings-root.theme-light .bw-thumb.selected::after { box-shadow: inset 0 0 0 2px #000000; }
.bw-follow.selected { outline: none !important; }

/* 跟随系统横条文字：纯白 / 纯黑 */
.noir-settings-root .bw-switch-label { color: #ffffff !important; opacity: 1 !important; }
.noir-settings-root.theme-light .bw-switch-label { color: #000000 !important; }

/* ===== 左下角换壁纸长按方框：2×2 四个选项 ===== */
.sb-morph { border-radius: 18px; }
.sb-morph.open { border-radius: 22px; }
.sb-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px; height: 100%; box-sizing: border-box; position: relative; z-index: 1;
}
.sb-grid .wp-morph-item {
    justify-content: center; padding: 0 8px; font-size: 12px; text-align: center;
    border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: none;
}
.sb-grid .wp-morph-item + .wp-morph-item { border-top: none; }
.noir-settings-root.theme-light .sb-grid .wp-morph-item { background: rgba(0, 0, 0, 0.05); }
.noir-settings-root.theme-light .sb-grid .wp-morph-item:active { background: rgba(0, 0, 0, 0.1); }


/* ===== 视口边距：点击才展开的滑块面板 ===== */
.viewport-toggle-row { cursor: pointer; }
.viewport-arrow {
    width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease;
}
.viewport-panel {
    overflow: hidden; max-height: 260px; opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.viewport-panel.collapsed { max-height: 0; opacity: 0; }
.viewport-panel-inner {
    display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px 0 4px;
}

/* ===== 视口层：桌面与应用窗口都在里面，上下边距由滑条决定；壁纸不在此层 ===== */
.viewport-layer {
    position: absolute; left: 0; right: 0;
    top: var(--vp-top, 24px); bottom: var(--vp-bottom, 0px);
    display: flex; flex-direction: column; overflow: visible;
}
/* 应用窗口：背景仍铺满整个屏幕（向上下延伸），内容通过内边距跟随视口移动；默认值 24 时与原来一致 */
.viewport-layer > #appWindow {
    top: calc(-1 * var(--vp-top, 24px)) !important;
    bottom: calc(-1 * var(--vp-bottom, 0px)) !important;
    height: auto !important;
    width: 100% !important;
    padding: 0 !important;
}
.viewport-layer > #appWindow .app-content {
    padding-top: calc(var(--vp-top, 24px) - 24px) !important;
    padding-bottom: var(--vp-bottom, 0px) !important;
}
/* 设置页自己处理内边距（背景层铺满，内容在里面下移） */
.viewport-layer > #appWindow .app-content:has(#noirSettingsRoot) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.viewport-layer #noirSettingsRoot {
    padding-top: calc(56px + var(--vp-top, 24px) - 24px);
    padding-bottom: calc(20px + var(--vp-bottom, 0px));
}

/* 视口的 Reset：一直显示在箭头左边（展开或收起都在） */
.viewport-toggle-row .row-right { display: flex; align-items: center; gap: 10px; }
.viewport-toggle-row .viewport-reset { display: block; }

/* 壁纸层（手机容器的 ::before，z-index:-1）要画在 body 的背景之上：给手机容器建立层叠上下文 */
#phoneContainer {
    isolation: isolate;
}

/* 视口行的箭头：深色白、浅色黑，明确指定，避免被其他规则盖成黑色 */
.noir-settings-root .viewport-toggle-row .viewport-arrow { stroke: rgba(255, 255, 255, 0.6) !important; }
.noir-settings-root.theme-light .viewport-toggle-row .viewport-arrow { stroke: rgba(0, 0, 0, 0.55) !important; }

/* ===== 桌面：独立视口（homeScreen 不在视口层里，用自己的 top / bottom） ===== */
#homeScreen {
    position: absolute !important; left: 0; right: 0;
    top: 24px; bottom: 0; flex: none;
}

/* 编辑模式下：分页点上方的黑色五角星，星星上写着 Got it */
.desktop-edit-star {
    position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
    width: 84px; height: 84px;
    display: none; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; z-index: 12; user-select: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.desktop-edit-star svg {
    position: absolute; left: 0; top: 0; width: 84px; height: 84px; display: block;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}
.desktop-star-label {
    position: relative; margin-top: 12px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    color: #ffffff; pointer-events: none; white-space: nowrap;
}
#phoneContainer.edit-mode .desktop-edit-star {
    display: flex; animation: starPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.desktop-edit-star:active { transform: translateX(-50%) scale(0.88); }
@keyframes starPop {
    from { opacity: 0; transform: translateX(-50%) scale(0.4); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}
}


/* 主界面编辑模式的提示框：下移 20px（原来 top: 12px） */
.global-edit-toast { top: 32px !important; }

/* 图标库列表：svg 继承外层 .opt-icon 的颜色（纯色材质时跟随“纯色材质图标颜色”） */
.noir-settings-root .sheet-option-item .opt-icon svg { stroke: inherit !important; }
.noir-settings-root .sheet-option-item .opt-icon svg .fill-solid { fill: inherit !important; }
.noir-settings-root.theme-light .ios-center-modal .sheet-option-item .opt-icon svg { stroke: inherit !important; }
.noir-settings-root.theme-light .ios-center-modal .sheet-option-item .opt-icon svg .fill-solid { fill: inherit !important; }

/* 视口层本身不拦截点击（否则会挡住桌面）；只有打开的应用窗口才接收点击 */
.viewport-layer { pointer-events: none; }
.viewport-layer > #appWindow.active { pointer-events: auto; }

/* 设置页的图标预览 */
.appicon-preview-row {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px;
    border-radius: 16px; background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
}
.appicon-preview-tile {
    width: 56px; height: 56px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    --pv-icon: #ffffff;
}
.appicon-preview-tile svg { width: 40px; height: 40px; }
.appicon-preview-tile .stroke-primary,
.appicon-preview-tile .stroke-secondary,
.appicon-preview-tile .star-solid-translucent { stroke: var(--pv-icon) !important; }
.appicon-preview-tile .fill-solid { fill: var(--pv-icon) !important; }
.appicon-preview-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.appicon-preview-title { font-size: 12px; font-weight: 700; }
.appicon-hint { font-size: 10px; opacity: 0.65; line-height: 1.5; }
.noir-settings-root .appicon-preview-tile { color: #ffffff; }
.noir-settings-root.theme-light .appicon-preview-tile { color: #000000; }

/* ===== 纯色材质：app 图标去掉阴影 ===== */
#phoneContainer.app-material-solid .app-icon,
#phoneContainer.app-material-solid .dock .app-icon {
    box-shadow: none !important;
}
#phoneContainer.app-material-solid .app-icon svg,
#phoneContainer.app-material-solid .app-icon svg *,
#phoneContainer.app-material-solid .app-icon .floating-glyph {
    filter: none !important;
}
#phoneContainer.app-material-solid .app-item .app-label {
    text-shadow: none !important;
}

/* ===== 弹窗里的滑块区域：平面，不要液态玻璃效果 ===== */
.noir-settings-root .appicon-slider-row,
.noir-settings-root .appicon-preview-row {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 14px !important;
}
.noir-settings-root.theme-light .appicon-slider-row,
.noir-settings-root.theme-light .appicon-preview-row {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* ===== 书签弹窗：盖在视口区块上面 ===== */
.app-name-panel { z-index: 80 !important; }

/* ===== 视口滑块：圆头完整显示，不被裁切 ===== */
.viewport-panel:not(.collapsed) { overflow: visible; }
.viewport-panel-inner { padding: 14px 8px 12px; }

/* ===== Dock：方角 / 磨砂 / 透明度 / 间距（由 applyDockStyle 写入变量） ===== */
#phoneContainer #dockBar { gap: var(--dock-gap, 10px) !important; }
#phoneContainer .dock {
    border-radius: var(--dock-radius, 32px) !important;
    background: rgba(255, 255, 255, var(--dock-alpha, 0.035)) !important;
    backdrop-filter: var(--dock-filter, url(#lens-refraction) blur(1.5px) saturate(180%)) !important;
    -webkit-backdrop-filter: var(--dock-filter, url(#lens-refraction) blur(1.5px) saturate(180%)) !important;
}

/* ===== 书签颜色区块（含书签弹窗）盖在视口区块上面 ===== */
.manual-color-options { position: relative !important; z-index: 60 !important; }
.viewport-toggle-row, .viewport-panel { position: static; z-index: auto; }
/* 书签颜色所在的卡片（自成堆叠上下文）整体提到视口卡片上面 */
.setting-card:has(#manualColorOptions) { position: relative !important; z-index: 60 !important; }

/* Dock 区块标题行：标题左边，展开按钮在右边 */
.dock-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px;
}
.dock-expand-btn { cursor: pointer; user-select: none; }
#phoneContainer #dockBar::before { display: var(--dock-before-display, block) !important; }

/* Dock 区块展开箭头 */
.dock-expand-btn {
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: center; color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.dock-expand-btn svg {
    width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2;
    stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease;
}
.noir-settings-root.theme-light .dock-expand-btn { color: #000000; background: rgba(0, 0, 0, 0.06); }

/* ===== 桌面视口：不要在视口边缘把顶部内容和 Dock 阴影切平（只保留左右翻页的裁剪） ===== */
#homeScreen { overflow: visible !important; }
#homeScreen .desktop-viewport { overflow-x: clip !important; overflow-y: visible !important; }


/* ===== Dock 去掉阴影 ===== */
/* Dock：只去掉外层的投影，保留边缘高光（这两条内阴影就是 Dock 的边框线） */
#phoneContainer #dockBar {
    box-shadow:
        inset 0 0.8px 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 2px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ===== 小组件文字设置弹窗 ===== */
.widget-text-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.noir-settings-root.theme-light .widget-text-row { background: rgba(0, 0, 0, 0.04); }
.widget-text-idx { font-size: 10px; font-weight: 700; opacity: 0.6; min-width: 12px; text-align: center; }
.widget-text-input {
    flex: 1; min-width: 0; box-sizing: border-box; padding: 7px 10px; border-radius: 10px;
    border: 0.5px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06);
    color: inherit; font-size: 12px; outline: none;
    user-select: text; -webkit-user-select: text;
}
.noir-settings-root.theme-light .widget-text-input { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.1); }
.widget-popup-actions { display: flex; justify-content: flex-end; margin: 10px 0 4px; }





/* ===== 浅色模式：Dock 边框线（深色线条，否则白底上看不见） ===== */
#phoneContainer.theme-light #dockBar {
    border: 0.5px solid rgba(0, 0, 0, 0.12) !important;
    border-top: 0.75px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow:
        inset 0 0.8px 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}


/* ===== 还原按钮：浅色模式下黑底白字 ===== */
.noir-settings-root.theme-light .restore-btn,
#phoneContainer.theme-light .restore-btn {
    background: #000000 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    border-color: transparent !important;
}
.noir-settings-root.theme-light .restore-btn svg { stroke: #ffffff !important; }

/* ===== 小组件弹窗：GOT IT + 右侧圆形还原按钮 ===== */
.widget-popup-actions { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.widget-got-btn { flex: 1; margin-top: 0 !important; }
.restore-round {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.12);
}
.restore-round svg {
    width: 16px; height: 16px; fill: none; stroke: #ffffff; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.noir-settings-root.theme-light .restore-round { background: #000000; }

/* ===== 设置页头像圆框：图片 ===== */
.noir-settings-root .avatar-ring { cursor: pointer; }
.noir-settings-root .settings-avatar-img {
    width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%;
}


/* ===== 头像选择框（点头像弹出的 恢复内置 / 上传图片 / 本地上传）：浅色模式也是液态玻璃 ===== */
#phoneContainer.theme-light .wp-morph,
.noir-settings-root.theme-light .wp-morph {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: url(#lens-refraction) blur(16px) saturate(180%);
    -webkit-backdrop-filter: url(#lens-refraction) blur(16px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
#phoneContainer.theme-light .wp-morph::before,
.noir-settings-root.theme-light .wp-morph::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 45%);
}
#phoneContainer.theme-light .wp-morph-item,
.noir-settings-root.theme-light .wp-morph-item { color: #000000; }
#phoneContainer.theme-light .wp-morph-item + .wp-morph-item,
.noir-settings-root.theme-light .wp-morph-item + .wp-morph-item { border-top-color: rgba(0, 0, 0, 0.12); }
#phoneContainer.theme-light .wp-morph-item:active,
.noir-settings-root.theme-light .wp-morph-item:active { background: rgba(255, 255, 255, 0.35); }


/* ===== 自定义应用图标：铺满图标方块，圆角跟随，不透明度跟随透明度设置 ===== */
#phoneContainer .app-icon > img.custom-app-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: var(--app-radius, 17px);
    opacity: var(--custom-icon-opacity, 1);
    transition: opacity 0.25s ease;
}

/* 外观设置页：顶部两个按钮与“打开侧边栏”按钮（messages .arrow-btn）完全一致 */
.noir-settings-root .nav-header.appearance-nav .top-glass-pill{
    height: 36px; min-width: 44px; width: auto; padding: 0 13px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(0,0,0,0.04);
    backdrop-filter: url(#lens-refraction) blur(12px) saturate(180%);
    -webkit-backdrop-filter: url(#lens-refraction) blur(12px) saturate(180%);
    border: 0.5px solid rgba(0,0,0,0.12); border-top: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04), inset 0 1px 1px rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}
.noir-settings-root .nav-header.appearance-nav .top-glass-pill svg{
    width: 15px; height: 15px; stroke: #000; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.noir-settings-root .nav-header.appearance-nav .top-glass-pill span{ color: #000; }
.noir-settings-root .nav-header.appearance-nav .top-glass-pill:active{ transform: scale(0.92); background: rgba(0,0,0,0.08); }
