/**
 * 统一 history-panel 布局 — 对齐 AI 图像编辑页 (300px)
 * 在各 Skill 页面 CSS 中 @import 或 <link> 引入
 */
.history-panel {
    width: 300px;
    background: #ffffff;
    border-radius: 0;
    padding: 50px 20px 20px;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    overflow-y: hidden !important;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    position: relative;
    z-index: 100;
    box-sizing: border-box;
}

.history-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.history-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.clear-history-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
    color: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
}

.clear-history-btn:hover {
    color: #ff6b6b;
    transform: scale(1.08);
    background: rgba(255, 107, 107, 0.08);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.18);
}

.history-list::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.empty-history {
    text-align: center;
    color: rgba(0, 0, 0, 0.35);
    padding: 40px 16px;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .history-panel {
        width: 100%;
        order: 3;
        max-height: 400px;
        height: auto;
    }
}
