/**
 * 织梦工坊 (Weaver) - 样式
 * 极简黑白灰风格 + 玫瑰色高亮
 * 参考美化版（人设生成.html）的设计语言
 */

/* ========== 容器 ========== */
#app-weaver {
    background: #ffffff !important;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.dark-mode #app-weaver {
    background: #1a1f2e !important;
}

/* ========== 顶栏 ========== */
.wv-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    min-height: 52px;
    flex-shrink: 0;
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
}

/* iOS PWA 灵动岛/刘海安全区 */
@supports (padding-top: env(safe-area-inset-top)) {
    @supports (-webkit-touch-callout: none) {
        .wv-bar {
            padding-top: calc(env(safe-area-inset-top) + 12px);
        }
    }
}

body.dark-mode .wv-bar {
    background: #1a1f2e;
    border-bottom-color: rgba(255,255,255,0.06);
}

/* ========== 自定义下拉菜单 ========== */
.wv-select-wrap {
    position: static;
    width: 100%;
}

.wv-select {
    display: none;
}

/* 自定义下拉触发器 */
.wv-select-trigger {
    width: 100%;
    background: #fafaf8;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    padding: 10px 30px 10px 12px;
    font-family: inherit;
    font-size: 0.85rem;
    color: #0a0a0a;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
    user-select: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
    min-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wv-select-trigger::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #8a8a8a;
    border-bottom: 1.5px solid #8a8a8a;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.2s;
}

.wv-select-trigger.open::after {
    transform: translateY(-30%) rotate(-135deg);
}

.wv-select-trigger:focus {
    border-color: #0a0a0a;
}

body.dark-mode .wv-select-trigger {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
    color: #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

body.dark-mode .wv-select-trigger::after {
    border-color: #8a8a8a;
}

body.dark-mode .wv-select-trigger:focus {
    border-color: rgba(255,255,255,0.15);
}

/* 自定义下拉面板 */
.wv-select-dropdown {
    position: fixed;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    padding: 4px;
}

.wv-select-dropdown.open {
    opacity: 1;
    pointer-events: auto;
}

.wv-select-dropdown::-webkit-scrollbar { width: 4px; }
.wv-select-dropdown::-webkit-scrollbar-track { background: transparent; }
.wv-select-dropdown::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

/* 自定义下拉选项 */
.wv-select-option {
    padding: 9px 12px;
    font-size: 0.85rem;
    color: #0a0a0a;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wv-select-option:hover {
    background: rgba(0,0,0,0.04);
}

.wv-select-option:active {
    transform: scale(0.98);
}

.wv-select-option.selected {
    color: #0a0a0a;
    font-weight: 600;
    background: rgba(0,0,0,0.04);
}

body.dark-mode .wv-select-dropdown {
    background: rgba(30,40,55,0.96);
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

body.dark-mode .wv-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
}

body.dark-mode .wv-select-option {
    color: #e2e8f0;
}

body.dark-mode .wv-select-option:hover {
    background: rgba(255,255,255,0.06);
}

body.dark-mode .wv-select-option.selected {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.wv-bar-logo {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #0a0a0a;
    font-family: 'Georgia', 'Palatino', 'Garamond', serif;
    font-style: italic;
}

body.dark-mode .wv-bar-logo {
    color: #e2e8f0;
}

.wv-bar-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a4a4a;
    font-size: 1rem;
    border-radius: 50%;
    transition: background 0.15s;
    border: none;
    background: none;
}

.wv-bar-btn:active {
    background: #f4f4f4;
}

body.dark-mode .wv-bar-btn {
    color: #7a8a9a;
}

body.dark-mode .wv-bar-btn:active {
    background: rgba(255,255,255,0.06);
}

/* ========== Tab 栏 ========== */
.wv-tabs {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
    flex-shrink: 0;
}

body.dark-mode .wv-tabs {
    background: #1a1f2e;
    border-bottom-color: rgba(255,255,255,0.06);
}

.wv-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8a8a8a;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    border: none;
    background: none;
    font-family: inherit;
}

.wv-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: #0a0a0a;
    transform: scaleX(0);
    transition: transform 0.25s;
}

.wv-tab.active {
    color: #0a0a0a;
}

.wv-tab.active::after {
    transform: scaleX(1);
}

body.dark-mode .wv-tab {
    color: #7a8a9a;
}

body.dark-mode .wv-tab.active {
    color: #e2e8f0;
}

body.dark-mode .wv-tab::after {
    background: #e2e8f0;
}

/* ========== 内容区 ========== */
.wv-content {
    flex: 1;
    overflow-y: auto;
    background: #f4f4f4;
    -webkit-overflow-scrolling: touch;
}

body.dark-mode .wv-content {
    background: #141926;
}

.wv-tab-pane {
    display: none;
    padding: 16px;
    padding-bottom: 100px;
}

.wv-tab-pane.active {
    display: block;
    animation: wv-fadeIn 0.3s ease;
}

@keyframes wv-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== 卡片区块 ========== */
.wv-section {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}

body.dark-mode .wv-section {
    background: #1e2837;
    border-color: rgba(255,255,255,0.06);
}

.wv-section-head {
    padding: 14px 16px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.dark-mode .wv-section-head {
    border-bottom-color: rgba(255,255,255,0.06);
}

.wv-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4a4a4a;
}

body.dark-mode .wv-section-title {
    color: #94a3b8;
}

.wv-section-badge {
    font-size: 0.58rem;
    padding: 2px 8px;
    border-radius: 2px;
    background: #f4f4f4;
    color: #8a8a8a;
    letter-spacing: 1px;
}

.wv-section-badge.required {
    background: #f7f0f0;
    color: #c9a0a0;
}

body.dark-mode .wv-section-badge {
    background: rgba(255,255,255,0.06);
    color: #7a8a9a;
}

body.dark-mode .wv-section-badge.required {
    background: rgba(201,160,160,0.15);
    color: #c9a0a0;
}

.wv-section-body {
    padding: 16px;
}

/* ========== 表单字段 ========== */
.wv-field {
    margin-bottom: 14px;
}

.wv-field:last-child {
    margin-bottom: 0;
}

.wv-field-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 6px;
}

body.dark-mode .wv-field-label {
    color: #7a8a9a;
}

.wv-input,
.wv-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.85rem;
    color: #0a0a0a;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.wv-input::placeholder,
.wv-textarea::placeholder {
    color: #c4c4c4;
    font-weight: 300;
}

.wv-input:focus,
.wv-textarea:focus {
    border-color: #0a0a0a;
}

body.dark-mode .wv-input,
body.dark-mode .wv-textarea {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

body.dark-mode .wv-input::placeholder,
body.dark-mode .wv-textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

body.dark-mode .wv-input:focus,
body.dark-mode .wv-textarea:focus {
    border-color: rgba(255,255,255,0.15);
}

.wv-textarea {
    resize: none;
    height: 80px;
    line-height: 1.65;
    min-height: 80px;
    max-height: 300px;
}

.wv-textarea-lg {
    height: 120px;
    min-height: 120px;
}

/* 两列布局 */
.wv-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ========== 按钮 ========== */
.wv-btn-primary {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 2px;
    background: #0a0a0a;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wv-btn-primary:active {
    opacity: 0.7;
}

.wv-btn-primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

body.dark-mode .wv-btn-primary {
    background: #e2e8f0;
    color: #1a1f2e;
}

.wv-btn-secondary {
    flex: 1;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    background: #ffffff;
    color: #4a4a4a;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
}

.wv-btn-secondary:active {
    background: #f4f4f4;
}

body.dark-mode .wv-btn-secondary {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    color: #94a3b8;
}

.wv-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ========== 结果展示 ========== */
.wv-result-wrap {
    display: none;
    margin-top: 12px;
    animation: wv-fadeIn 0.3s ease;
}

.wv-result-field {
    padding: 12px 14px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

.wv-result-field:last-child {
    border-bottom: none;
}

.wv-rf-label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 5px;
}

.wv-rf-value {
    font-size: 0.84rem;
    color: #0a0a0a;
    line-height: 1.72;
    white-space: pre-wrap;
    word-break: break-word;
    outline: none;
    border-radius: 2px;
    transition: background 0.15s;
}

.wv-rf-value[contenteditable="true"]:hover {
    background: #f8f8f6;
}

.wv-rf-value[contenteditable="true"]:focus {
    background: #f4f4f2;
    box-shadow: inset 0 0 0 1px #e8e8e8;
}

body.dark-mode .wv-rf-value[contenteditable="true"]:hover {
    background: rgba(255,255,255,0.04);
}

body.dark-mode .wv-rf-value[contenteditable="true"]:focus {
    background: rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

body.dark-mode .wv-rf-value {
    color: #e2e8f0;
}

.wv-rf-value.mono {
    font-size: 0.78rem;
    color: #4a4a4a;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

body.dark-mode .wv-rf-value.mono {
    color: #94a3b8;
}

.wv-rf-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    background: #ffffff;
    color: #8a8a8a;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.15s;
    font-family: inherit;
}

.wv-rf-copy:active {
    background: #0a0a0a;
    color: #ffffff;
    border-color: #0a0a0a;
}

body.dark-mode .wv-rf-copy {
    background: #1e2837;
    border-color: rgba(255,255,255,0.06);
    color: #7a8a9a;
}

body.dark-mode .wv-rf-copy:active {
    background: #e2e8f0;
    color: #1a1f2e;
    border-color: #e2e8f0;
}

/* 核心字段高亮（玫瑰色） */
.wv-result-field.core {
    background: #f7f0f0;
}

.wv-result-field.core .wv-rf-label {
    color: #c9a0a0;
}

body.dark-mode .wv-result-field.core {
    background: rgba(201,160,160,0.08);
}

body.dark-mode .wv-result-field.core .wv-rf-label {
    color: #c9a0a0;
}

/* 标签 */
.wv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.wv-tag {
    padding: 4px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    font-size: 0.68rem;
    font-weight: 400;
    color: #4a4a4a;
}

body.dark-mode .wv-tag {
    border-color: rgba(255,255,255,0.06);
    color: #94a3b8;
}

/* ========== 好感度滑块 ========== */
.wv-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wv-slider-wrap input[type=range] {
    flex: 1;
    height: 2px;
    border: none;
    padding: 0;
    -webkit-appearance: none;
    background: #e8e8e8;
    border-radius: 1px;
    outline: none;
}

body.dark-mode .wv-slider-wrap input[type=range] {
    background: rgba(255,255,255,0.06);
}

.wv-slider-wrap input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0a0a0a;
    cursor: pointer;
}

body.dark-mode .wv-slider-wrap input[type=range]::-webkit-slider-thumb {
    background: #e2e8f0;
}

.wv-slider-val {
    font-size: 0.8rem;
    font-weight: 500;
    color: #0a0a0a;
    min-width: 24px;
    text-align: right;
}

body.dark-mode .wv-slider-val {
    color: #e2e8f0;
}

/* ========== 世界书条目卡片 ========== */
.wv-entry-card {
    padding: 12px 14px;
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
}

.wv-entry-card:last-child {
    border-bottom: none;
}

body.dark-mode .wv-entry-card {
    background: #1e2837;
    border-bottom-color: rgba(255,255,255,0.06);
}

.wv-entry-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.wv-key-tag {
    padding: 2px 8px;
    background: #f4f4f4;
    border-radius: 2px;
    font-size: 0.62rem;
    font-weight: 500;
    color: #4a4a4a;
}

body.dark-mode .wv-key-tag {
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
}

.wv-entry-content {
    font-size: 0.82rem;
    color: #1a1a1a;
    line-height: 1.65;
}

body.dark-mode .wv-entry-content {
    color: #cbd5e1;
}

.wv-entry-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.wv-ea-btn {
    padding: 3px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    background: #ffffff;
    color: #8a8a8a;
    font-size: 0.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    font-family: inherit;
}

.wv-ea-btn:active {
    background: #f4f4f4;
}

.wv-ea-btn.del:active {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

body.dark-mode .wv-ea-btn {
    background: #1e2837;
    border-color: rgba(255,255,255,0.06);
    color: #7a8a9a;
}

/* ========== 草稿列表 ========== */
.wv-draft-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
}

.wv-draft-item:last-child {
    border-bottom: none;
}

body.dark-mode .wv-draft-item {
    background: #1e2837;
    border-bottom-color: rgba(255,255,255,0.06);
}

.wv-draft-info {
    flex: 1;
    min-width: 0;
}

.wv-draft-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #0a0a0a;
    margin-bottom: 2px;
}

body.dark-mode .wv-draft-name {
    color: #e2e8f0;
}

.wv-draft-time {
    font-size: 0.7rem;
    color: #8a8a8a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .wv-draft-time {
    color: #7a8a9a;
}

.wv-draft-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.wv-da-btn {
    padding: 5px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    background: #ffffff;
    font-size: 0.62rem;
    font-weight: 500;
    color: #4a4a4a;
    cursor: pointer;
    transition: 0.15s;
    font-family: inherit;
}

.wv-da-btn:active {
    background: #f4f4f4;
}

.wv-da-btn.del {
    color: #8a8a8a;
}

.wv-da-btn.del:active {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

body.dark-mode .wv-da-btn {
    background: #1e2837;
    border-color: rgba(255,255,255,0.06);
    color: #94a3b8;
}

/* ========== Loading ========== */
.wv-loader {
    display: none;
    padding: 24px 0;
    text-align: center;
}

.wv-ld-bar {
    width: 48px;
    height: 1px;
    background: #e8e8e8;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
}

.wv-ld-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    animation: wv-ldSlide 1.2s ease-in-out infinite;
}

@keyframes wv-ldSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

body.dark-mode .wv-ld-bar {
    background: rgba(255,255,255,0.06);
}

body.dark-mode .wv-ld-bar::after {
    background: #e2e8f0;
}

.wv-ld-text {
    font-size: 0.65rem;
    color: #8a8a8a;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.dark-mode .wv-ld-text {
    color: #7a8a9a;
}

/* ========== 分割线标题 ========== */
.wv-divider-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
}

.wv-divider-label span {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8a8a8a;
    white-space: nowrap;
}

.wv-divider-label::before,
.wv-divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

body.dark-mode .wv-divider-label span {
    color: #7a8a9a;
}

body.dark-mode .wv-divider-label::before,
body.dark-mode .wv-divider-label::after {
    background: rgba(255,255,255,0.06);
}

/* ========== 空状态 ========== */
.wv-empty {
    padding: 40px 16px;
    text-align: center;
    font-size: 0.65rem;
    color: #8a8a8a;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.dark-mode .wv-empty {
    color: #7a8a9a;
}

/* ========== Toast ========== */
.wv-toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #0a0a0a;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s cubic-bezier(0.22,1,0.36,1);
    z-index: 1000;
}

.wv-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.dark-mode .wv-toast {
    background: #e2e8f0;
    color: #1a1f2e;
}

/* ========== 确认弹窗 ========== */
.wv-dialog-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wv-fadeIn 0.2s ease;
}

.wv-dialog {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    padding: 24px;
    width: 280px;
    max-width: 90vw;
}

body.dark-mode .wv-dialog {
    background: #1e2837;
    border-color: rgba(255,255,255,0.06);
}

.wv-dialog-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #0a0a0a;
    margin-bottom: 8px;
}

body.dark-mode .wv-dialog-title {
    color: #e2e8f0;
}

.wv-dialog-msg {
    font-size: 0.78rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 20px;
}

body.dark-mode .wv-dialog-msg {
    color: #94a3b8;
}

.wv-dialog-btns {
    display: flex;
    gap: 8px;
}

.wv-dialog-btns button {
    flex: 1;
    padding: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    background: #ffffff;
    color: #4a4a4a;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.15s;
}

.wv-dialog-btns button:active {
    background: #f4f4f4;
}

.wv-dialog-btns button.primary {
    background: #0a0a0a;
    color: #ffffff;
    border-color: #0a0a0a;
}

.wv-dialog-btns button.primary:active {
    opacity: 0.7;
}

.wv-dialog-btns button.danger {
    color: #ef4444;
}

.wv-dialog-btns button.danger:active {
    background: #fee2e2;
    border-color: #fca5a5;
}

body.dark-mode .wv-dialog-btns button {
    background: #1e2837;
    border-color: rgba(255,255,255,0.06);
    color: #94a3b8;
}

body.dark-mode .wv-dialog-btns button:active {
    background: rgba(255,255,255,0.06);
}

body.dark-mode .wv-dialog-btns button.primary {
    background: #e2e8f0;
    color: #1a1f2e;
    border-color: #e2e8f0;
}

body.dark-mode .wv-dialog-btns button.danger:active {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.3);
}
