/* 头像菜单里的「AI 生成水印」开关 + 关闭确认弹窗（逻辑见 aigc_label.js） */

.dropdown-item--switch { justify-content: flex-start; user-select: none; }
.dropdown-item--switch .dd-switch {
    margin-left: auto;
    position: relative;
    width: 32px;
    height: 18px;
    border-radius: 9px;
    background: #cfd3dc;
    transition: background 0.18s ease;
    flex-shrink: 0;
}
.dropdown-item--switch .dd-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 18, 28, 0.3);
    transition: transform 0.18s ease;
}
.dropdown-item--switch[aria-checked="true"] .dd-switch { background: #3444fe; }
.dropdown-item--switch[aria-checked="true"] .dd-switch-knob { transform: translateX(14px); }
.dropdown-item--switch.is-busy { opacity: 0.6; pointer-events: none; }

/* 头像菜单最底部的协议链接 */
.dropdown-legal { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 14px 6px; font-size: 11.5px; }
.dropdown-legal a { color: #9aa0ad; text-decoration: none; white-space: nowrap; }
.dropdown-legal a:hover { color: #3444fe; }

.aigc-label-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 18, 28, 0.5);
}
.aigc-label-overlay.show { display: flex; }

.aigc-label-modal {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px 26px 20px;
    border-radius: 16px;
    background: #fff;
    color: #2c2f36;
    box-shadow: 0 24px 64px rgba(15, 18, 28, 0.25);
    font-size: 13.5px;
    line-height: 1.65;
}
.aigc-label-modal h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.aigc-label-modal p { margin: 0 0 12px; color: #5b6170; }
.aigc-label-modal a { color: #3444fe; text-decoration: none; }
.aigc-label-modal a:hover { text-decoration: underline; }

.aigc-label-commit {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #e6e8ef;
    border-radius: 10px;
    cursor: pointer;
}
.aigc-label-commit input { margin: 3px 0 0; flex-shrink: 0; width: 15px; height: 15px; accent-color: #3444fe; }
.aigc-label-commit:hover { border-color: #c9cffb; }

.aigc-label-note { font-size: 12px; color: #8a8f9c !important; margin-top: 12px !important; }

.aigc-label-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.aigc-label-btn {
    padding: 8px 18px;
    border-radius: 9px;
    border: 1px solid #dcdfe8;
    background: #fff;
    color: #2c2f36;
    font-size: 13.5px;
    cursor: pointer;
}
.aigc-label-btn--primary { border-color: #3444fe; background: #3444fe; color: #fff; }
.aigc-label-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.aigc-label-toast {
    position: fixed;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    z-index: 10060;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(28, 30, 38, 0.92);
    color: #fff;
    font-size: 13.5px;
    box-shadow: 0 8px 24px rgba(15, 18, 28, 0.25);
}

[data-theme="dark"] .dropdown-item--switch .dd-switch { background: #4a4d58; }
[data-theme="dark"] .dropdown-item--switch[aria-checked="true"] .dd-switch { background: #5b68ff; }
[data-theme="dark"] .dropdown-legal a { color: #7d8290; }
[data-theme="dark"] .dropdown-legal a:hover { color: #8f99ff; }
[data-theme="dark"] .aigc-label-modal { background: #1e1f25; color: #e8e9ee; }
[data-theme="dark"] .aigc-label-modal p { color: #a9adba; }
[data-theme="dark"] .aigc-label-modal a { color: #8f99ff; }
[data-theme="dark"] .aigc-label-commit { border-color: #34363f; }
[data-theme="dark"] .aigc-label-commit:hover { border-color: #5b68ff; }
[data-theme="dark"] .aigc-label-btn { background: #2a2c34; border-color: #3a3d47; color: #e8e9ee; }
[data-theme="dark"] .aigc-label-btn--primary { background: #5b68ff; border-color: #5b68ff; color: #fff; }
