/* 黑白手绘风格 - Minimax音频生成器 */

/* ==================== 基础设置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 手札体字体设置 */
body {
    font-family: 'ZCOOL KuaiLe', 'Ma Shan Zheng', '楷体', 'KaiTi', cursive, serif;
    background: #fefefe;
    color: #333;
    line-height: 1.6;
    /* 纸张纹理背景 */
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 20px 20px;
    min-height: 100vh;
    overflow-x: auto;
}

/* 标题字体 */
h1, h2, h3, .section-title {
    font-family: 'Zhi Mang Xing', 'Ma Shan Zheng', '行楷', cursive;
    font-weight: normal;
}

/* ==================== 仪表板布局 ==================== */
.dashboard-container {
    display: grid;
    grid-template-areas: 
        "header header header header"
        "quick-ops param-panel queue-panel system-panel"  
        "results results results results";
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* ==================== 手绘边框效果 ==================== */
.sketch-border {
    position: relative;
    background: #fff;
    padding: 15px;
}

.sketch-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border: 2px solid #333;
    border-radius: 8px;
    /* 手绘不规则效果 */
    clip-path: polygon(
        0% 2px, 2px 0%, 8px 0%, 10px 2px, 
        calc(100% - 8px) 0%, calc(100% - 2px) 2px,
        100% 8px, calc(100% - 2px) 10px,
        100% calc(100% - 8px), calc(100% - 2px) calc(100% - 2px),
        calc(100% - 8px) 100%, calc(100% - 10px) calc(100% - 2px),
        8px 100%, 2px calc(100% - 2px),
        0% calc(100% - 8px), 2px calc(100% - 10px)
    );
}

/* ==================== 顶部状态栏 ==================== */
.dashboard-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 15px;
    /* 手绘阴影效果 */
    box-shadow: 4px 4px 0px #333, 8px 8px 0px rgba(0,0,0,0.1);
    position: relative;
}

.header-title h1 {
    font-size: 24px;
    margin: 0;
    font-weight: normal;
    color: #333;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.header-stats {
    display: flex;
    gap: 25px;
    align-items: center;
}

.stat-item {
    text-align: center;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #f9f9f9;
    min-width: 80px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.api-status .stat-value {
    color: #2c5530;
}

/* ==================== 主要面板样式 ==================== */
.quick-operations {
    grid-area: quick-ops;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    padding: 20px;
    /* 手绘阴影 */
    box-shadow: 3px 3px 0px #333;
    position: relative;
}

.param-panel {
    grid-area: param-panel;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 3px 3px 0px #333;
}

.queue-panel {
    grid-area: queue-panel;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 3px 3px 0px #333;
}

.system-panel {
    grid-area: system-panel;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 3px 3px 0px #333;
}

.results-section {
    grid-area: results;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 3px 3px 0px #333;
    min-height: 300px;
}

/* ==================== 区域标题 ==================== */
.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #333;
    transform: translateY(2px);
}

.section-subtitle {
    font-size: 14px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    color: #555;
    position: relative;
}

.section-subtitle::before {
    content: '◆';
    margin-right: 5px;
    color: #333;
}

/* ==================== 手绘按钮样式 ==================== */
.btn-sketch {
    background: #fff;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-sketch:hover {
    background: #f5f5f5;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0px #333;
}

.btn-sketch:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.btn-primary {
    background: #333;
    color: #fff;
}

.btn-primary:hover {
    background: #555;
    color: #fff;
}

.btn-secondary {
    background: #f0f0f0;
    border-color: #666;
    color: #666;
}

.btn-outline {
    background: transparent;
    border: 2px dashed #333;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 60px;
}

/* ==================== 表单控件 ==================== */
.text-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    color: #333;
    resize: vertical;
    outline: none;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1);
}

.text-input:focus {
    border-color: #555;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1), 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ==================== 设置面板 ==================== */
.setting-group {
    margin-bottom: 15px;
}

.setting-label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.setting-select {
    width: 100%;
    padding: 6px 10px;
    border: 2px solid #333;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    color: #333;
    outline: none;
}

.setting-select:focus {
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
    border: 1px solid #333;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #333;
}

.setting-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #333;
}

/* ==================== 上传区域 ==================== */
.upload-area {
    border: 3px dashed #333;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 0;
    position: relative;
}

.upload-area:hover, .upload-area.dragover {
    background: #f0f0f0;
    border-color: #555;
    transform: scale(1.02);
}

.upload-btn {
    background: transparent;
    border: 2px solid #333;
    padding: 8px 15px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    margin-left: 10px;
}

.upload-btn:hover {
    background: #333;
    color: #fff;
}

/* ==================== 队列和状态 ==================== */
.queue-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #f9f9f9;
    margin: 10px 0;
    min-height: 60px;
}

.queue-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px 0;
}

.queue-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
}

.queue-status, .system-status {
    margin-bottom: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #333;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.status-online {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

/* ==================== 音频播放器 ==================== */
.current-player {
    background: #f8f8f8;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.player-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.player-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-info .audio-name {
    font-weight: bold;
    color: #333;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-player {
    flex: 1;
    height: 32px;
}

.player-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* ==================== 音频列表 ==================== */
.audio-list {
    max-height: 300px;
    overflow-y: auto;
}

.audio-item {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.audio-item:hover {
    border-color: #333;
    background: #f9f9f9;
    transform: translateX(2px);
}

.audio-info {
    flex: 1;
    margin-right: 15px;
}

.audio-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
    display: block;
}

.audio-duration {
    font-size: 12px;
    color: #666;
}

.audio-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.no-audio-message {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
}

/* ==================== 操作按钮组 ==================== */
.action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.preset-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preset-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #333;
    background: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: #333;
    color: #fff;
}

.audio-management {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.queue-controls {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.system-controls {
    margin-top: 15px;
    text-align: center;
}

/* ==================== 测试区域 ==================== */
.quick-test-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #ddd;
}

.test-input {
    width: 100%;
    height: 60px;
    padding: 8px;
    border: 2px solid #333;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    resize: vertical;
    margin-bottom: 10px;
}

.test-result {
    margin-top: 10px;
    min-height: 40px;
}

/* ==================== 优化建议 ==================== */
.optimization-tips {
    margin: 15px 0;
}

.tips-list {
    list-style: none;
    padding-left: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.tips-list li {
    padding: 2px 0;
    position: relative;
    padding-left: 15px;
}

.tips-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

/* ==================== 加载动画 ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    padding: 30px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #333;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

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

/* ==================== 文件信息显示 ==================== */
.file-info-display {
    background: #f0f8f0;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    font-size: 13px;
}

.batch-info, .queue-count {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 10px 0;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-areas: 
            "header header header"
            "quick-ops param-panel queue-panel"
            "quick-ops system-panel system-panel"
            "results results results";
    }
}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "header header"
            "quick-ops quick-ops"
            "param-panel queue-panel"
            "system-panel system-panel"
            "results results";
        gap: 15px;
        padding: 15px;
    }
    
    .header-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat-item {
        min-width: 60px;
        padding: 5px 8px;
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "quick-ops"
            "param-panel"
            "queue-panel"
            "system-panel"
            "results";
        padding: 10px;
        gap: 10px;
    }
    
    .header-title h1 {
        font-size: 18px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-sketch {
        width: 100%;
        text-align: center;
    }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==================== 手绘装饰元素 ==================== */
.section-title::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

/* 隐藏原有的兼容性元素，但保持在DOM中 */
#preview-card, #progress-card, #results-card,
#single-text, #generate-single-btn, #single-audio-container, 
#main-single-audio-container {
    display: none !important;
}

/* 保持一些关键的隐藏元素可见，用于JS交互 */
#main-single-text, #model, #voice_id, #emotion, 
#speed, #volume, #pitch, #sample_rate, #format,
#file-input, #upload-area, #test-text, #test-btn,
#main-generate-single-btn, #clear-single-btn, #test-params-btn {
    display: block !important;
}

/* 特殊处理某些必须隐藏的元素 */
#file-input {
    display: none !important;
}

/* Excel预览样式 */
.excel-preview {
    background: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
}

.preview-header {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.preview-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.column-selector {
    margin-bottom: 15px;
}

.column-selector label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.preview-sample {
    margin-bottom: 15px;
    font-size: 12px;
}

.preview-sample strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.sample-row {
    padding: 3px 0;
    color: #666;
    border-left: 2px solid #ddd;
    padding-left: 8px;
    margin: 3px 0;
    font-size: 11px;
}

/* 批量生成按钮样式 */
#generate-batch-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    background: #333;
    color: #fff;
    border: 2px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#generate-batch-btn:hover {
    background: #555;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0px #333;
}

/* ==================== 实时处理进度区域样式 ==================== */
.real-time-progress-section {
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #333;
    border-radius: 4px;
}

.progress-label {
    font-size: 12px;
    color: #666;
    font-family: 'ZCOOL KuaiLe', cursive;
}

.progress-value {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    font-family: 'ZCOOL KuaiLe', cursive;
}

.progress-bar-container {
    position: relative;
    margin-bottom: 15px;
}

.progress-bar-bg {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 8px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
    font-family: 'ZCOOL KuaiLe', cursive;
}

.current-processing {
    text-align: center;
}

.processing-status {
    font-size: 13px;
    color: #666;
    font-family: 'ZCOOL KuaiLe', cursive;
    padding: 5px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ==================== 任务完成模态框样式 ==================== */
.completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.completion-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #333;
    font-family: 'ZCOOL KuaiLe', cursive;
    position: relative;
}

.completion-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.completion-header h2 {
    margin: 0;
    color: #28a745;
    font-size: 24px;
    font-family: 'Ma Shan Zheng', cursive;
}

.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border: 2px solid #333;
    border-radius: 50%;
    background: white;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.completion-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.completion-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.stat-info {
    flex: 1;
}

.stat-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.completion-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.completion-actions button {
    flex: 1;
    min-width: 120px;
}

/* ==================== 增强系统状态网格样式 ==================== */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 2px solid #333;
    border-radius: 6px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.status-card:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.15);
}

.status-icon {
    font-size: 18px;
    width: 30px;
    text-align: center;
}

.status-details {
    flex: 1;
}

.status-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
    font-family: 'ZCOOL KuaiLe', cursive;
}

.status-value {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    font-family: 'ZCOOL KuaiLe', cursive;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 状态指示点样式 */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-online {
    background: #28a745;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.5);
}

.status-warning {
    background: #ffc107;
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.5);
}

.status-error {
    background: #dc3545;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.5);
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .progress-metrics {
        grid-template-columns: 1fr;
    }
    
    .completion-stats {
        grid-template-columns: 1fr;
    }
    
    .completion-actions {
        flex-direction: column;
    }
    
    .completion-actions button {
        min-width: auto;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
}