/* ============================================================
   css/panels/panels-closet.css — 电子衣橱面板样式
   设计: 韩系法式花艺 × 极简线条 × 衬线花字 × 零emoji
   遵循 DESIGN-SYSTEM.md — 暖米底·干燥玫瑰·多层光影
   ============================================================ */

/* ---- 搜索栏 ---- */
.closet-search-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.closet-search-bar .cs-input-wrap {
    flex: 1; display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--radius-full);
    background: var(--input-bg); border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.closet-search-bar .cs-input-wrap:focus-within {
    border-color: var(--accent); box-shadow: var(--shadow-glow);
}
.closet-search-bar .cs-search-icon {
    flex-shrink: 0; opacity: 0.35;
}
.closet-search-bar input {
    flex: 1; border: none; background: transparent;
    font-family: inherit; font-size: 14px; color: var(--text-primary);
    outline: none; padding: 4px 0; min-width: 0;
}
.closet-search-bar input::placeholder { color: var(--text-muted); font-style: italic; }

/* ---- 一级分类栏(横向滑动) ---- */
.closet-cat-bar {
    display: flex; gap: 4px; padding: 8px 12px;
    overflow-x: auto; flex-shrink: 0; -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border); touch-action: pan-x;
}
.closet-cat-bar::-webkit-scrollbar { display: none; }
.closet-cat-chip {
    padding: 5px 14px; border-radius: var(--radius-full);
    border: 1px solid var(--border); background: var(--surface-solid);
    font-size: 12px; color: var(--text-secondary); white-space: nowrap;
    cursor: pointer; font-family: inherit; transition: all 0.2s ease;
}
.closet-cat-chip.active { background: var(--rose-dark); color: #fff; border-color: var(--rose-dark); font-weight: 600; }
.closet-cat-chip:active { transform: scale(0.94); }

/* ---- 二级筛选栏(横滑) ---- */
.closet-filter-bar {
    padding: 6px 12px; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.closet-filter-row {
    display: flex; gap: 4px; flex-wrap: nowrap; padding: 2px 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x;
}
.closet-filter-row::-webkit-scrollbar { display: none; }
.closet-filter-chip {
    padding: 3px 10px; border-radius: var(--radius-full);
    border: 1px solid transparent; background: var(--accent-light);
    font-size: 11px; color: var(--text-secondary); cursor: pointer;
    font-family: inherit; transition: all 0.15s ease; white-space: nowrap;
}
.closet-filter-chip.active { background: var(--rose-dark); color: #fff; }
.closet-filter-chip:active { transform: scale(0.94); }

/* ---- 衣橱内底部切换栏 ---- */
.closet-bottom-bar {
    display: flex; border-top: 1px solid var(--border);
    background: var(--surface); flex-shrink: 0;
}
.closet-bottom-bar button {
    flex: 1; padding: 10px; background: none; border: none;
    font-family: inherit; font-size: 12px; color: var(--text-secondary);
    cursor: pointer; transition: all 0.2s ease; position: relative;
    letter-spacing: 0.4px;
}
.closet-bottom-bar button::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent); opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.closet-bottom-bar button.active { color: var(--accent); font-weight: 600; }
.closet-bottom-bar button.active::before { transform: translateX(-50%) scale(1); opacity: 1; }

/* ---- 整体 flex 布局：头部/工具栏/底部栏固定，中间视图各自滚动 ---- */
#nest-sub-closet.fullscreen { display: flex; flex-direction: column; overflow: hidden; }
.closet-toolbar { flex-shrink: 0; }
.closet-outfits-view, .closet-calendar-view, .closet-wishlist-view {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    animation: fadeIn 0.18s ease;
}

/* ---- 子视图容器 ---- */
.closet-sub-view { flex: 1; overflow-y: auto; padding: 12px; }

/* ================================================================
   单品网格 (3列)
   ================================================================ */
.closet-grid {
    flex: 1; overflow-y: auto; padding: 8px; min-height: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    align-content: start;
    animation: fadeIn 0.18s ease;
}
@media (max-width: 375px) { .closet-grid { gap: 6px; padding: 6px; } }

.closet-item-card {
    background: var(--surface-solid); border-radius: var(--radius-sm);
    box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, var(--shadow-xs);
    overflow: hidden; cursor: pointer; transition: all 0.2s ease;
    position: relative; border: 1px solid var(--border);
}
.closet-item-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, var(--shadow-sm); }
.closet-item-card:active { transform: scale(0.96); transition: transform 0.06s ease; }
.closet-item-card .ci-thumb {
    width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bg-primary); display: block;
}
.closet-item-card .ci-thumb-placeholder {
    width: 100%; aspect-ratio: 3/4; background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.closet-item-card .ci-info { padding: 6px 8px 8px; }
.closet-item-card .ci-name {
    font-size: 12px; color: var(--text-primary); line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.closet-item-card .ci-styles {
    font-family: var(--font-reading); font-size: 9px; letter-spacing: 0.6px;
    color: var(--text-muted); margin-top: 2px; text-transform: lowercase;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.closet-item-card .ci-wear-dot {
    position: absolute; top: 6px; right: 6px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-rose);
    box-shadow: 0 0 6px var(--accent-glow);
}
.closet-item-card .ci-cat {
    position: absolute; top: 6px; left: 6px;
    padding: 2px 7px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.88); color: var(--accent-rose);
    font-size: 9px; letter-spacing: 0.5px; white-space: nowrap;
}

/* ---- 空状态 ---- */
.closet-empty {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px;
}
.closet-empty .ce-deco {
    font-family: 'Playfair Display', var(--font-decorative);
    font-size: 28px; font-style: italic; color: var(--accent-rose);
    opacity: 0.3; margin-bottom: 12px; letter-spacing: 2px;
}
.closet-empty .ce-text {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 4px;
}
.closet-empty .ce-sub {
    font-family: var(--font-reading); font-size: 10px; letter-spacing: 4px;
    text-transform: uppercase; color: var(--text-muted);
}
.closet-empty .ce-cta {
    display: inline-block; margin-top: 16px; padding: 11px 26px;
    border-radius: var(--radius-full); border: 1px solid var(--accent);
    background: var(--accent); color: #fff; font-family: inherit;
    font-size: 13px; font-weight: 600; cursor: pointer; letter-spacing: 1px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, var(--shadow-sm);
    transition: all 0.15s ease;
}
.closet-empty .ce-cta:hover { background: var(--accent-rose); border-color: var(--accent-rose); }
.closet-empty .ce-cta:active { transform: scale(0.95); }

/* ================================================================
   单品详情 overlay
   ================================================================ */
.closet-detail-overlay {
    position: absolute; inset: 0; z-index: 1600; background: rgba(20,16,12,0.45);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.closet-detail-panel {
    width: 100%; max-width: 480px; max-height: 85vh;
    background: var(--surface-solid); border-radius: 20px 20px 0 0;
    overflow-y: auto; padding: 20px 16px 28px;
    box-shadow: 0 -8px 40px rgba(20,16,12,0.12);
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.closet-detail-panel .cd-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.closet-detail-panel .cd-name {
    font-size: 17px; color: var(--text-primary); font-weight: 600;
    letter-spacing: 0.3px;
}
.closet-detail-panel .cd-close {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease;
}
.closet-detail-panel .cd-close:hover { background: var(--accent-light); }
.closet-detail-panel .cd-close:active { transform: scale(0.9); }
.closet-detail-panel .cd-image {
    width: 100%; border-radius: var(--radius-md); margin-bottom: 16px;
    background: var(--bg-primary); display: block;
}
.closet-detail-panel .cd-section {
    margin-bottom: 12px;
}
.closet-detail-panel .cd-section-title {
    font-family: var(--font-reading); font-size: 9px; letter-spacing: 4px;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.closet-detail-panel .cd-field {
    display: flex; align-items: baseline; gap: 8px; padding: 5px 0;
    font-size: 13px; border-bottom: 1px solid var(--divider);
}
.closet-detail-panel .cd-field-label { color: var(--text-muted); flex-shrink: 0; font-size: 11px; min-width: 36px; }
.closet-detail-panel .cd-field-value { color: var(--text-primary); }
.closet-detail-panel .cd-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.closet-detail-panel .cd-tag {
    padding: 2px 8px; border-radius: var(--radius-full);
    background: var(--accent-light); font-size: 11px; color: var(--accent);
}
.closet-detail-panel .cd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.closet-detail-panel .cd-btn {
    flex: 1 1 45%; padding: 12px; border-radius: var(--radius-sm);
    border: none; font-family: inherit; font-size: 14px; cursor: pointer;
    transition: all 0.15s ease; text-align: center;
}
.closet-detail-panel .cd-btn-danger {
    background: transparent; color: var(--danger);
    border: 1px solid var(--danger);
}
.closet-detail-panel .cd-btn-danger:active { background: var(--danger); color: #fff; transform: scale(0.96); }
.closet-detail-panel .cd-btn-primary {
    background: var(--accent); color: #fff; font-weight: 600;
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, var(--shadow-sm);
}
.closet-detail-panel .cd-btn-primary:active { transform: scale(0.96); }
.closet-detail-panel .cd-btn-ghost {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border);
}
.closet-detail-panel .cd-btn-ghost:active { background: var(--accent-light); transform: scale(0.96); }

/* ================================================================
   单品编辑 overlay
   ================================================================ */
.closet-edit-overlay {
    position: absolute; inset: 0; z-index: 1610; background: rgba(20,16,12,0.45);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.closet-edit-panel {
    width: 100%; max-width: 480px; max-height: 90vh;
    background: var(--surface-solid); border-radius: 20px 20px 0 0;
    overflow-y: auto; padding: 20px 16px 28px;
    box-shadow: 0 -8px 40px rgba(20,16,12,0.12);
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.closet-edit-panel .ce-header {
    display: flex; align-items: center; justify-content: space-between;
    margin: -20px -16px 16px; padding: 20px 16px 16px;
    position: sticky; top: 0; z-index: 2;
    background: var(--surface-solid);
    border-radius: 20px 20px 0 0;
}
.closet-edit-panel .ce-title {
    font-family: var(--font-reading);
    font-size: 18px; letter-spacing: 1px; color: var(--text-primary); font-weight: 600;
}
.closet-edit-panel .ce-close {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease;
}
.closet-edit-panel .ce-close:hover { background: var(--accent-light); }
.closet-edit-panel .ce-field { margin-bottom: 14px; }
.closet-edit-panel .ce-label {
    font-size: 11px; color: var(--text-muted); margin-bottom: 4px;
    display: block; letter-spacing: 0.3px;
}
.closet-edit-panel .ce-input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 14px;
    color: var(--text-primary); background: var(--bg-chat); outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.closet-edit-panel .ce-input:focus { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.closet-edit-panel .ce-textarea { min-height: 80px; resize: vertical; line-height: 1.6; }
.closet-edit-panel .ce-select { cursor: pointer; appearance: none; }
.closet-edit-panel .ce-tag-select { display: flex; flex-wrap: wrap; gap: 5px; }
.closet-edit-panel .ce-tag-option {
    padding: 4px 10px; border-radius: var(--radius-full);
    border: 1px solid var(--border); font-size: 11px; color: var(--text-secondary);
    cursor: pointer; background: var(--surface); transition: all 0.15s ease;
}
.closet-edit-panel .ce-tag-option.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.closet-edit-panel .ce-image-upload {
    width: 100%; aspect-ratio: 3/4; border: 2px dashed var(--border);
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; cursor: pointer; background: var(--bg-chat);
    transition: border-color 0.2s ease; overflow: hidden; position: relative;
}
.closet-edit-panel .ce-image-upload:hover { border-color: var(--accent); }
.closet-edit-panel .ce-image-upload img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.closet-edit-panel .ce-upload-hint { font-size: 13px; color: var(--text-muted); z-index: 1; text-align: center; }
.closet-edit-panel .ce-upload-hint svg { display: block; margin: 0 auto 6px; opacity: 0.3; }
.closet-edit-panel .ce-submit {
    width: 100%; padding: 14px; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff; border: none;
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 4px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, var(--shadow-sm);
    transition: all 0.15s ease; letter-spacing: 0.4px;
}
.closet-edit-panel .ce-submit:active { transform: scale(0.96); }
.closet-edit-panel .ce-footer {
    position: sticky; bottom: 0; z-index: 2;
    background: var(--surface-solid);
    margin: 4px -16px -28px; padding: 12px 16px 16px;
    border-top: 1px solid var(--divider);
}

/* ---- 录入表单分区（收纳感：中文标题 + 法式英文 + 金色分隔线） ---- */
.closet-edit-panel .ce-zone { margin-bottom: 24px; }
.closet-edit-panel .ce-zone-hd {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 13px; padding-bottom: 7px; position: relative;
    border-bottom: 1px solid var(--divider);
}
.closet-edit-panel .ce-zone-hd::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 26px; height: 1px; background: var(--gold, #C4A86A);
}
.closet-edit-panel .ce-zone-zh {
    font-size: 13px; font-weight: 600; color: var(--text-primary); letter-spacing: 1px;
}
.closet-edit-panel .ce-zone-en {
    font-family: 'Playfair Display', var(--font-decorative);
    font-size: 11px; font-style: italic; color: var(--accent-rose);
    letter-spacing: 1px; opacity: 0.75; line-height: 1;
}
.closet-edit-panel .ce-zone .ce-field:last-child { margin-bottom: 0; }

/* ---- 可折叠分区（风格色彩 / 细节收纳 默认折叠，grid-rows 过渡） ---- */
.closet-edit-panel .ce-zone-hd.foldable { cursor: pointer; user-select: none; }
.closet-edit-panel .ce-zone-hd.foldable:active { opacity: 0.7; }
.closet-edit-panel .ce-fold-arrow {
    margin-left: auto; width: 16px; height: 16px; position: relative; flex-shrink: 0;
    align-self: center;
}
.closet-edit-panel .ce-fold-arrow::before {
    content: ''; position: absolute; left: 3px; top: 5px; width: 9px; height: 9px;
    border-right: 1.6px solid var(--text-muted); border-bottom: 1.6px solid var(--text-muted);
    transform: rotate(45deg); transition: transform 0.3s ease;
}
.closet-edit-panel .ce-fold-arrow.collapsed::before { transform: rotate(-45deg); }
.closet-edit-panel .ce-zone-body {
    display: grid; grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.closet-edit-panel .ce-zone-body.collapsed { grid-template-rows: 0fr; opacity: 0.6; }
.closet-edit-panel .ce-zone-inner { overflow: hidden; min-height: 0; }
.closet-edit-panel .ce-zone-body.collapsed .ce-zone-inner { pointer-events: none; }

/* ================================================================
   穿搭画板 overlay ★核心
   ================================================================ */
.outfit-board-overlay {
    position: absolute; inset: 0; z-index: 1620; background: var(--bg-primary);
    display: flex; flex-direction: column;
    animation: fadeIn 0.25s ease;
}
.outfit-board-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(12px + var(--safe-top)) 16px; background: var(--surface);
    border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.outfit-board-header .obh-left { display: flex; align-items: center; gap: 10px; }
.outfit-board-header .obh-back {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: var(--text-primary); transition: color 0.15s;
}
.outfit-board-header .obh-back:hover { color: var(--accent); }
.outfit-board-header .obh-title {
    font-family: var(--font-reading);
    font-size: 17px; letter-spacing: 1px; color: var(--text-primary); font-weight: 600;
}
.outfit-board-header .obh-actions { display: flex; gap: 6px; }
.outfit-board-header .obh-btn {
    padding: 5px 12px; border-radius: var(--radius-full);
    border: 1px solid var(--border); background: var(--surface-solid);
    font-size: 11px; color: var(--text-secondary); cursor: pointer;
    font-family: inherit; transition: all 0.15s ease; white-space: nowrap;
}
.outfit-board-header .obh-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.outfit-board-header .obh-btn:active { transform: scale(0.94); }

/* 画布 */
.outfit-board-canvas-wrap {
    flex: 1; overflow-y: auto; display: flex; align-items: center; justify-content: center;
    padding: 16px; position: relative;
}
.outfit-board-canvas {
    position: relative; width: 280px; height: 520px; max-width: 100%;
}
/* 人体轮廓线稿背景 */
.outfit-board-canvas .obc-outline {
    position: absolute; inset: 0; opacity: 0.18; pointer-events: none;
    background-size: contain; background-repeat: no-repeat; background-position: center;
}

/* 槽位 */
.outfit-slot {
    position: absolute; border: 1.5px dashed var(--border);
    border-radius: var(--radius-xs); cursor: pointer; z-index: 1;
    transition: all 0.2s ease; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
    background: rgba(255,255,255,0.35);
}
.outfit-slot:hover { border-color: var(--accent); background: var(--accent-light); }
.outfit-slot.filled {
    border-style: solid; border-color: transparent; background: transparent;
}
.outfit-slot.filled img { width: 100%; height: 100%; object-fit: contain; }
.outfit-slot .slot-hint {
    font-size: 10px; color: var(--text-muted); pointer-events: none;
    text-align: center; line-height: 1.2;
}
.outfit-slot .slot-remove {
    position: absolute; top: -9px; right: -9px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--surface-solid); border: 1px solid var(--border);
    cursor: pointer; display: none; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 14px; line-height: 1;
    box-shadow: var(--shadow-xs); z-index: 2; transition: all 0.15s;
}
.outfit-slot.filled .slot-remove { display: flex; }
.outfit-slot .slot-remove:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* 背景切换器 */
.outfit-bg-picker {
    display: flex; gap: 6px; padding: 6px 16px; background: var(--surface);
    border-top: 1px solid var(--border); align-items: center;
}
.outfit-bg-picker .bg-option {
    width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; transition: all 0.2s ease; flex-shrink: 0;
}
.outfit-bg-picker .bg-option.active { border-color: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.bg-pure-white { background: #FAFAF8; }
.bg-cream     { background: #F8F4EF; }
.bg-blush     { background: #F5EDED; }
.bg-wood      { background: linear-gradient(135deg, #E8D5C4, #DDC7B5); }
.bg-closet    { background: linear-gradient(180deg, #F0E8DD, #E8D8C8, #D8C8B0); }

/* 配饰展开按钮区 */
.outfit-accessory-toggle {
    text-align: center; padding: 6px 16px;
    border-top: 1px solid var(--border); background: var(--surface);
}
.outfit-accessory-toggle button {
    background: none; border: 1px dashed var(--border); border-radius: var(--radius-full);
    padding: 4px 14px; font-size: 11px; color: var(--text-muted);
    cursor: pointer; font-family: inherit; transition: all 0.15s ease;
}
.outfit-accessory-toggle button:hover { border-color: var(--accent); color: var(--accent); }
.outfit-accessory-toggle button:active { transform: scale(0.94); }

/* 底部操作栏 */
.outfit-board-footer {
    display: flex; gap: 6px; padding: 10px 14px;
    background: var(--surface); border-top: 1px solid var(--border);
    flex-shrink: 0; overflow-x: auto;
}
.outfit-board-footer::-webkit-scrollbar { display: none; }
.outfit-board-footer .obf-chip {
    padding: 6px 14px; border-radius: var(--radius-full);
    border: 1px solid var(--border); background: var(--surface-solid);
    font-size: 11px; color: var(--text-secondary); cursor: pointer;
    font-family: inherit; white-space: nowrap; transition: all 0.15s ease;
}
.outfit-board-footer .obf-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.outfit-board-footer .obf-chip.selected { border-color: var(--accent); color: var(--accent); }
.outfit-board-footer .obf-chip:active { transform: scale(0.94); }

/* ================================================================
   弹出衣柜选择器
   ================================================================ */
.closet-picker-overlay {
    position: absolute; inset: 0; z-index: 1630; background: rgba(20,16,12,0.35);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn 0.15s ease;
}
.closet-picker-panel {
    width: 100%; max-width: 480px; max-height: 55vh;
    background: var(--surface-solid); border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column;
    box-shadow: 0 -8px 40px rgba(20,16,12,0.12);
    animation: slideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.closet-picker-panel .cpp-header {
    padding: 12px 16px 8px; border-bottom: 1px solid var(--divider);
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.closet-picker-panel .cpp-title {
    font-family: var(--font-reading);
    font-size: 15px; letter-spacing: 0.8px; color: var(--text-primary); font-weight: 600;
}
.closet-picker-panel .cpp-filters {
    display: flex; gap: 4px; padding: 6px 12px; overflow-x: auto; flex-shrink: 0;
}
.closet-picker-panel .cpp-filters::-webkit-scrollbar { display: none; }
.closet-picker-panel .cpp-grid {
    flex: 1; overflow-y: auto; padding: 8px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.closet-picker-panel .cpp-item {
    cursor: pointer; border-radius: var(--radius-sm);
    overflow: hidden; border: 2px solid transparent;
    transition: all 0.15s ease; position: relative; background: var(--bg-primary);
}
.closet-picker-panel .cpp-item:hover { border-color: var(--accent); }
.closet-picker-panel .cpp-item.selected {
    border-color: var(--accent-rose);
    box-shadow: 0 0 12px var(--accent-glow);
}
.closet-picker-panel .cpp-item img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
}
.closet-picker-panel .cpp-item .cpp-name {
    font-size: 10px; padding: 3px 4px; text-align: center;
    color: var(--text-secondary); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

/* 统一新增选择器（录入单品 / 新增穿搭 / 添加想买） */
.closet-picker-panel .cam-list { padding: 8px 12px 18px; display: flex; flex-direction: column; gap: 4px; }
.closet-picker-panel .cam-row {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 13px 12px; border: none; border-radius: var(--radius-md);
    background: transparent; cursor: pointer; text-align: left; font-family: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
}
.closet-picker-panel .cam-row:hover { background: var(--accent-light); }
.closet-picker-panel .cam-row:active { transform: scale(0.985); }
.closet-picker-panel .cam-icon {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-primary); color: var(--accent);
}
.closet-picker-panel .cam-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.closet-picker-panel .cam-title { font-size: 15px; color: var(--text-primary); font-weight: 600; }
.closet-picker-panel .cam-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ================================================================
   穿搭列表卡片
   ================================================================ */
.outfit-list-card {
    background: var(--surface-solid); border-radius: var(--radius-md);
    box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, var(--shadow-xs);
    margin-bottom: 12px; overflow: hidden;
    cursor: pointer; transition: all 0.2s ease;
    border: 1px solid var(--border);
    position: relative;
}
.outfit-list-card .olc-more {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 28px; height: 28px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.88);
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    transition: all 0.15s ease;
}
.outfit-list-card .olc-more:hover { color: var(--accent); transform: scale(1.06); }
.outfit-list-card .olc-more:active { transform: scale(0.92); }
.outfit-list-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, var(--shadow-sm); }
.outfit-list-card:active { transform: scale(0.97); transition: transform 0.06s ease; }
.outfit-list-card .olc-preview {
    width: 100%; height: 160px; object-fit: cover; background: var(--bg-primary);
}
.outfit-list-card .olc-body { padding: 12px 14px; }
.outfit-list-card .olc-name { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.outfit-list-card .olc-meta {
    font-size: 11px; color: var(--text-muted); margin-top: 4px;
    display: flex; gap: 8px; align-items: center;
}
.outfit-list-card .olc-claude-comment {
    font-size: 12px; color: var(--accent-rose); margin-top: 6px;
    font-style: italic; line-height: 1.5; position: relative; padding-left: 10px;
}
.outfit-list-card .olc-claude-comment::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--accent-rose); border-radius: 1px; opacity: 0.3;
}

/* ================================================================
   穿搭日历
   ================================================================ */
.outfit-calendar .oc-header {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
}
.outfit-calendar .oc-nav {
    background: none; border: 1px solid var(--border); border-radius: var(--radius-full);
    padding: 4px 10px; cursor: pointer; font-size: 13px; color: var(--text-secondary);
    font-family: inherit; transition: all 0.15s;
}
.outfit-calendar .oc-nav:hover { background: var(--accent-light); }
.outfit-calendar .oc-title {
    font-family: var(--font-reading);
    font-size: 15px; letter-spacing: 1px; font-weight: 600;
}
.outfit-calendar .oc-hint {
    font-family: var(--font-reading);
    font-size: 11px; color: var(--text-muted);
    text-align: center; letter-spacing: 1px; padding: 0 8px 8px;
}
.outfit-calendar .oc-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
    font-size: 10px; color: var(--text-muted); padding: 4px 8px;
}
.outfit-calendar .oc-days {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 8px 8px;
}
.outfit-calendar .oc-day {
    aspect-ratio: 1; border-radius: var(--radius-xs); text-align: center;
    font-size: 12px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; position: relative; cursor: default; color: var(--text-secondary);
}
.outfit-calendar .oc-day.has-outfit {
    cursor: pointer; background: var(--accent-light); color: var(--accent); font-weight: 600;
}
.outfit-calendar .oc-day.today { border: 1px solid var(--accent); }
.outfit-calendar .oc-day img {
    width: 70%; height: 70%; object-fit: cover; border-radius: 3px; margin-top: -2px;
}
.outfit-calendar .oc-day .oc-day-num {
    font-size: 10px; position: absolute; top: 2px; left: 4px;
}

/* 日期操作弹层：当天穿搭预览 */
.closet-picker-panel .ods-current { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 12px; }
.closet-picker-panel .ods-preview { width: 120px; height: 150px; border-radius: var(--radius-md); object-fit: cover; background: var(--bg-primary); }
.closet-picker-panel .ods-current-name { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.closet-picker-panel .ods-current-meta { font-size: 11px; color: var(--text-muted); }

/* 套用选择器：已存穿搭列表 */
.closet-picker-panel .osp-list { max-height: 45vh; overflow-y: auto; padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.closet-picker-panel .osp-row {
    display: flex; align-items: center; gap: 12px; padding: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); cursor: pointer; text-align: left; font-family: inherit;
    transition: all 0.15s ease;
}
.closet-picker-panel .osp-row:hover { border-color: var(--accent); }
.closet-picker-panel .osp-row:active { transform: scale(0.98); }
.closet-picker-panel .osp-thumb { width: 52px; height: 66px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.closet-picker-panel .osp-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.closet-picker-panel .osp-name { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.closet-picker-panel .osp-meta { font-size: 11px; color: var(--text-muted); }

/* 日期选择器 */
.closet-picker-panel .assign-cal .oc-days { max-height: 42vh; }

/* ================================================================
   想买清单
   ================================================================ */
.wishlist-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 4px 0;
}
.wishlist-card {
    background: var(--surface-solid); border-radius: var(--radius-md);
    border: 1px solid var(--border); overflow: hidden;
    box-shadow: var(--shadow-xs); transition: all 0.2s ease; cursor: pointer;
}
.wishlist-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.wishlist-card .wc-image {
    width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-primary);
}
.wishlist-card .wc-body { padding: 10px 12px; }
.wishlist-card .wc-name { font-size: 13px; color: var(--text-primary); }
.wishlist-card .wc-notes { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.wishlist-card .wc-bought {
    display: inline-block; padding: 2px 8px; border-radius: var(--radius-full);
    background: var(--accent-light); color: var(--accent-rose); font-size: 10px; margin-top: 6px;
}
.wishlist-add-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius-full);
    background: var(--accent); color: #fff; border: none;
    font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, var(--shadow-sm);
    transition: all 0.15s ease; letter-spacing: 0.4px;
}
.wishlist-add-btn:hover { background: var(--accent-rose); }
.wishlist-add-btn:active { transform: scale(0.95); }
.wishlist-card .wc-bought-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.wishlist-card .wc-convert-btn {
    padding: 3px 10px; border-radius: var(--radius-full);
    border: 1px solid var(--accent); color: var(--accent);
    background: transparent; font-family: inherit; font-size: 10px; cursor: pointer;
    transition: all 0.15s ease;
}
.wishlist-card .wc-convert-btn:hover { background: var(--accent-light); }
.wishlist-card .wc-convert-btn:active { transform: scale(0.94); }

/* ---- 穿搭画板保存表单 overlay ---- */
.outfit-save-overlay {
    position: absolute; inset: 0; z-index: 1650; background: rgba(20,16,12,0.45);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.outfit-save-panel {
    width: 100%; max-width: 480px;
    background: var(--surface-solid); border-radius: 20px 20px 0 0;
    padding: 20px 16px 28px;
    box-shadow: 0 -8px 40px rgba(20,16,12,0.12);
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.outfit-save-panel .os-title {
    font-family: var(--font-reading);
    font-size: 17px; letter-spacing: 1px; margin-bottom: 14px; font-weight: 600;
}
.outfit-save-panel .os-field { margin-bottom: 12px; }
.outfit-save-panel .os-label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.outfit-save-panel .os-input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 14px;
    color: var(--text-primary); background: var(--bg-chat); outline: none;
}
.outfit-save-panel .os-input:focus { border-color: var(--accent); }
.outfit-save-panel .os-actions { display: flex; gap: 10px; margin-top: 16px; }
.outfit-save-panel .os-btn {
    flex: 1; padding: 12px; border-radius: var(--radius-sm);
    border: none; font-family: inherit; font-size: 14px; cursor: pointer;
    transition: all 0.15s ease; text-align: center;
}
.outfit-save-panel .os-btn-primary {
    background: var(--accent); color: #fff; font-weight: 600;
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, var(--shadow-sm);
}
.outfit-save-panel .os-btn-ghost {
    background: transparent; color: var(--text-secondary); border: 1px solid var(--border);
}
.os-btn-primary:active, .os-btn-ghost:active { transform: scale(0.96); }

/* ---- 穿搭请求面板(from +号面板) ---- */
.outfit-ask-panel {
    width: 100%; max-width: 480px;
    background: var(--surface-solid); border-radius: 20px 20px 0 0;
    padding: 20px 16px 28px;
    box-shadow: 0 -8px 40px rgba(20,16,12,0.12);
    animation: slideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.outfit-ask-panel .oa-title {
    font-family: var(--font-reading);
    font-size: 17px; letter-spacing: 1px; margin-bottom: 14px; font-weight: 600;
}
.outfit-ask-panel .oa-field { margin-bottom: 12px; }
.outfit-ask-panel .oa-label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.outfit-ask-panel .oa-chip-row { display: flex; gap: 5px; flex-wrap: wrap; }
.outfit-ask-panel .oa-chip {
    padding: 5px 12px; border-radius: var(--radius-full);
    border: 1px solid var(--border); background: var(--surface);
    font-size: 12px; color: var(--text-secondary); cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}
.outfit-ask-panel .oa-chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.outfit-ask-panel .oa-chip:active { transform: scale(0.94); }
.outfit-ask-panel .oa-input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 14px;
    color: var(--text-primary); background: var(--bg-chat); outline: none;
}
.outfit-ask-panel .oa-input:focus { border-color: var(--accent); }
.outfit-ask-panel .oa-submit {
    width: 100%; padding: 13px; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff; border: none;
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, var(--shadow-sm);
    transition: all 0.15s ease; margin-top: 4px;
}
.outfit-ask-panel .oa-submit:active { transform: scale(0.96); }

/* 穿搭分享选择器 overlay */
.outfit-share-overlay {
    position: absolute; inset: 0; z-index: 1640; background: rgba(20,16,12,0.35);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn 0.15s ease;
}
.outfit-share-panel {
    width: 100%; max-width: 480px; max-height: 60vh;
    background: var(--surface-solid); border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column;
    box-shadow: 0 -8px 40px rgba(20,16,12,0.12);
    animation: slideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.outfit-share-panel .osp-header {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.outfit-share-panel .osp-title {
    font-family: var(--font-reading);
    font-size: 15px; letter-spacing: 0.8px; font-weight: 600;
}
.outfit-share-panel .osp-list {
    flex: 1; overflow-y: auto; padding: 12px;
}
.outfit-share-panel .osp-item {
    display: flex; align-items: center; gap: 12px; padding: 10px;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: all 0.15s ease; border: 1px solid transparent;
}
.outfit-share-panel .osp-item:hover { background: var(--accent-light); border-color: var(--border); }
.outfit-share-panel .osp-item:active { transform: scale(0.97); }
.outfit-share-panel .osp-thumb {
    width: 48px; height: 48px; border-radius: var(--radius-xs);
    object-fit: cover; flex-shrink: 0; background: var(--bg-primary);
}
.outfit-share-panel .osp-info { flex: 1; min-width: 0; }
.outfit-share-panel .osp-name { font-size: 13px; color: var(--text-primary); font-weight: 600; }
.outfit-share-panel .osp-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ================================================================
   衣橱顶部标题区 + 工具栏
   ================================================================ */
.closet-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px; flex-shrink: 0;
}
.closet-header-title {
    font-size: 20px; font-weight: 600; color: var(--text-primary); letter-spacing: 1px;
}
.closet-header-sub {
    font-family: 'Playfair Display', var(--font-decorative);
    font-size: 13px; font-style: italic; color: var(--accent-rose);
    letter-spacing: 2px; margin-top: 2px; opacity: 0.85;
}
.closet-header-actions { display: flex; gap: 8px; align-items: center; }
.closet-header-help {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface-solid);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--accent); transition: all 0.2s ease;
}
.closet-header-help:hover { background: var(--accent-light); border-color: var(--accent); }
.closet-header-help:active { transform: scale(0.92); }
.closet-header-add {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface-solid);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.closet-header-add:hover { background: var(--accent-light); border-color: var(--accent); }
.closet-header-add:active { transform: scale(0.92); }
.closet-header-add svg { stroke: var(--accent); }
.closet-header-trash {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface-solid);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all 0.2s ease;
}
.closet-header-trash:hover { background: var(--accent-light); border-color: var(--accent); }
.closet-header-trash:active { transform: scale(0.92); }

/* ================================================================
   自定义下拉选择器（替代原生 select）
   ================================================================ */
.ce-select {
    position: relative; width: 100%; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-chat); cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ce-select:hover { border-color: var(--accent); }
.ce-select-label { font-size: 14px; color: var(--text-primary); flex: 1; }
.ce-select-arrow { color: var(--text-muted); flex-shrink: 0; margin-left: 8px; }
.ce-drop {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
    max-height: 200px; overflow-y: auto;
    background: var(--surface-solid); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    animation: fadeIn 0.15s ease; padding: 4px;
}
.ce-drop-item {
    padding: 8px 10px; border-radius: var(--radius-xs);
    font-size: 13px; color: var(--text-secondary); cursor: pointer;
    transition: background 0.12s ease;
}
.ce-drop-item:hover { background: var(--accent-light); }
.ce-drop-item.checked { color: var(--accent); font-weight: 600; }

/* ================================================================
   穿搭日历：无穿搭日期可点
   ================================================================ */
.outfit-calendar .oc-day.clickable { cursor: pointer; transition: background 0.15s ease; }
.outfit-calendar .oc-day.clickable:hover { background: var(--accent-light); }

/* ================================================================
   衣橱帮助面板
   ================================================================ */
.closet-help-overlay {
    position: absolute; inset: 0; z-index: 1660;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px; animation: fadeIn 0.2s ease;
}
.closet-help-backdrop {
    position: absolute; inset: 0; background: rgba(20,16,12,0.45);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.closet-help-card {
    position: relative; width: 100%; max-width: 400px; max-height: 80vh;
    overflow-y: auto; background: var(--surface-solid);
    border-radius: var(--radius-lg); padding: 26px 22px 22px;
    box-shadow: var(--shadow-lg); animation: popIn 0.3s ease-out;
}
.closet-help-hero { text-align: center; margin-bottom: 18px; }
.closet-help-en {
    font-family: 'Playfair Display', var(--font-decorative);
    font-size: 24px; font-style: italic; color: var(--accent-rose); letter-spacing: 2px;
}
.closet-help-zh { font-size: 13px; color: var(--text-muted); margin-top: 4px; letter-spacing: 2px; }
.closet-help-section { margin-bottom: 14px; }
.closet-help-section:last-child { margin-bottom: 0; }
.closet-help-hd { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.closet-help-text { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }
.closet-help-close {
    position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
    border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.15s ease;
}
.closet-help-close:hover { background: var(--accent-light); color: var(--text-primary); }

/* ================================================================
   回收站（已删除单品恢复）
   ================================================================ */
.closet-trash-overlay {
    position: absolute; inset: 0; z-index: 1640; background: rgba(20,16,12,0.35);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn 0.15s ease;
}
.closet-trash-panel {
    width: 100%; max-width: 480px; max-height: 70vh;
    background: var(--surface-solid); border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column;
    box-shadow: 0 -8px 40px rgba(20,16,12,0.12);
    animation: slideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.closet-trash-panel .ctr-header {
    padding: 14px 16px; border-bottom: 1px solid var(--divider);
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.closet-trash-panel .ctr-title {
    font-family: var(--font-reading);
    font-size: 15px; letter-spacing: 1px; color: var(--text-primary); font-weight: 600;
}
.closet-trash-list { flex: 1; overflow-y: auto; }
.closet-trash-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-bottom: 1px solid var(--divider);
}
.closet-trash-item .cti-thumb {
    width: 44px; height: 58px; border-radius: var(--radius-xs);
    object-fit: cover; background: var(--bg-primary); flex-shrink: 0;
}
.closet-trash-item .cti-info { flex: 1; min-width: 0; }
.closet-trash-item .cti-name { font-size: 13px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.closet-trash-item .cti-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.closet-trash-item .cti-actions { display: flex; gap: 6px; flex-shrink: 0; }
.closet-trash-item .cti-btn {
    padding: 6px 12px; border-radius: var(--radius-full);
    border: 1px solid var(--border); background: var(--surface);
    font-size: 12px; color: var(--text-secondary); cursor: pointer; font-family: inherit;
    transition: all 0.15s ease; white-space: nowrap;
}
.closet-trash-item .cti-btn.restore { color: var(--accent); border-color: var(--accent); }
.closet-trash-item .cti-btn:active { transform: scale(0.94); }
.closet-trash-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ================================================================
   弹层关闭淡出（所有挂载到 #app 的浮层）
   ================================================================ */
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
.closet-detail-overlay.closing,
.closet-edit-overlay.closing,
.closet-picker-overlay.closing,
.outfit-save-overlay.closing,
.outfit-share-overlay.closing,
.closet-help-overlay.closing,
.closet-trash-overlay.closing,
.outfit-board-overlay.closing {
    animation: fadeOut 0.2s ease forwards;
}

/* 窄屏 <400px：画板 header 按钮收紧，避免挤压标题 */
@media (max-width: 400px) {
    .outfit-board-header .obh-btn { padding: 5px 8px; font-size: 10px; }
    .outfit-board-header .obh-title { font-size: 15px; }
    .closet-header-title { font-size: 18px; }
}
