/* 批量头像页主界面样式：顶部提示条、左侧卡密输入、右侧处理列表 */
.workbench {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.topbar-logo {
    width: 30px;
    height: 30px;
    border-radius: var(--radius);
}

.topbar-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.topbar-text strong {
    font-size: 13px;
}

.topbar-text span {
    color: var(--text-secondary);
    font-size: 12px;
}

.topbar-logout {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.topbar-logout:hover:not(:disabled) {
    color: var(--primary);
}

.workspace {
    display: grid;
    grid-template-columns: minmax(280px, 33%) 1fr;
    flex: 1;
    min-height: 0;
}

/* 左右两栏共用的标题区 */
.pane-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
}

.pane-eyebrow {
    color: var(--text-secondary);
    font-size: 12px;
}

.pane-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

/* 左侧卡密输入 */
.input-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 16px 14px;
    border-right: 1px solid var(--border);
    background: var(--surface-muted);
}

.count-chip {
    padding: 1px 8px;
    border-radius: 3px;
    background: #e9ecf1;
    color: var(--text-secondary);
    font-size: 12px;
}

.card-input {
    flex: 1;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    font: 12.5px/1.75 var(--mono);
    resize: none;
}

.card-input:disabled {
    color: var(--text-secondary);
}

.pane-note {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* 右侧处理列表 */
.result-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 16px 14px;
    background: var(--surface);
}

.result-head {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

.result-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px 12px;
}

.stats {
    display: flex;
    color: var(--text-secondary);
    font-size: 12px;
}

.stats span + span {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid var(--border);
}

.stats b {
    color: var(--text);
}

.stats .source-ready {
    color: var(--primary);
}

.stats .source-empty {
    color: var(--text-muted);
    font-weight: 400;
}

.chip-btn {
    padding: 2px 9px;
    border: 1px solid var(--primary-soft-border);
    border-radius: 3px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.chip-btn:disabled {
    border-color: var(--border);
    background: var(--surface-muted);
    color: var(--text-disabled);
    cursor: not-allowed;
}

.toolbar {
    display: flex;
    gap: 8px;
}

.image-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.image-thumb {
    position: relative;
    width: 40px;
    height: 40px;
}

.image-thumb img {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    object-fit: cover;
}

.image-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    cursor: pointer;
}

.image-remove .icon {
    width: 10px;
    height: 10px;
}

.image-remove:disabled {
    display: none;
}

.image-strip-note {
    color: var(--text-secondary);
    font-size: 12px;
}

.notice {
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: var(--radius);
    font-size: 12px;
}

.notice-info {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.notice-success {
    background: var(--success-soft);
    color: var(--success);
}

.notice-error {
    background: var(--danger-soft);
    color: var(--danger);
}

@media (max-width: 860px) {
    .workbench {
        height: auto;
        min-height: 100vh;
    }

    .workspace {
        grid-template-columns: 1fr;
    }

    .input-pane {
        height: 280px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}
