.qc-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    max-width: 52rem;
    margin: 0 auto;
    width: 100%;
}

.qc-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.qc-header-icon-wrap {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.qc-header-icon-wrap i {
    font-size: 2rem;
    color: rgb(139 92 246);
}

.qc-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: rgb(var(--color-text));
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.qc-subtitle {
    font-size: 0.9375rem;
    color: rgb(var(--color-text-secondary));
    font-weight: 300;
}

.upload-card {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.drop-zone {
    border: 1.5px dashed rgb(var(--color-border));
    border-radius: 0.75rem;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: rgb(var(--color-accent));
    background: rgb(var(--color-accent) / 0.04);
}

.drop-icon-shell {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    margin: 0 auto 1.5rem;
}

.drop-icon-shell i {
    font-size: 1.5rem;
    color: rgb(var(--color-text-muted));
}

.drop-title {
    font-size: 1.0625rem;
    font-weight: 500;
    color: rgb(var(--color-text));
    margin-bottom: 0.5rem;
}

.drop-subtitle {
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    color: rgb(var(--color-text-muted));
    margin-bottom: 2rem;
}

.drop-divider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 16rem;
    margin: 0 auto 0.75rem;
}

.drop-divider {
    flex: 1;
    height: 1px;
    background: rgb(var(--color-border));
}

.drop-divider-text {
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    color: rgb(var(--color-text-muted));
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.browse-btn {
    margin-top: 0.75rem;
}

.file-info {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgb(17 17 20);
    border: 1px solid rgb(var(--color-surface-2));
    border-radius: 0.5rem;
    margin-top: 0.75rem;
}

.file-icon {
    color: rgb(var(--color-accent-soft));
    font-size: 1.25rem;
    flex-shrink: 0;
}

.file-name {
    font-size: 0.875rem;
    color: rgb(var(--color-text));
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file-btn {
    background: rgb(var(--color-danger) / 0.1);
    border: 1px solid rgb(var(--color-danger) / 0.2);
    color: rgb(var(--color-danger-soft));
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.analyze-btn {
    width: 100%;
    max-width: 22rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
}

.status-msg {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 22rem;
}

.status-msg.processing {
    display: flex;
    background: rgb(var(--color-accent) / 0.08);
    color: rgb(var(--color-accent-soft));
    border: 1px solid rgb(var(--color-accent) / 0.2);
}

.status-msg.success {
    display: flex;
    background: rgb(var(--color-success) / 0.08);
    color: rgb(var(--color-success));
    border: 1px solid rgb(var(--color-success) / 0.2);
}

.status-msg.error {
    display: flex;
    background: rgb(var(--color-danger) / 0.08);
    color: rgb(var(--color-danger-soft));
    border: 1px solid rgb(var(--color-danger) / 0.2);
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgb(255 255 255 / 0.2);
    border-top-color: rgb(var(--color-accent-soft));
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.results-panel {
    width: 100%;
    margin-top: 2rem;
    padding: 1.75rem;
    display: none;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.results-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(var(--color-text));
    letter-spacing: -0.015em;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    cursor: pointer;
    border: 1px solid rgb(var(--color-border));
    background: transparent;
    color: rgb(var(--color-text-secondary));
    transition: all 0.2s;
}

.copy-btn:hover {
    border-color: rgb(var(--color-accent));
    color: rgb(var(--color-accent-soft));
}

.copy-btn.copied {
    border-color: rgb(var(--color-success) / 0.4);
    color: rgb(var(--color-success));
}

.score-section {
    text-align: center;
    margin-bottom: 2rem;
}

.score-label {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgb(var(--color-text-muted));
    margin-bottom: 1.25rem;
}

.score-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 10rem;
    border-radius: 9999px;
}

.score-ring svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

#scoreArc {
    transition: stroke-dashoffset 0.8s ease;
}

.score-inner {
    text-align: center;
}

.score-ring-val {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(var(--color-text));
}

.score-scale {
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    color: rgb(var(--color-text-muted));
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.criterion-card {
    background: rgb(17 17 20);
    border: 1px solid rgb(var(--color-surface-2));
    border-radius: 0.625rem;
    padding: 1.25rem;
}

.criterion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.criterion-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.criterion-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    background: rgb(31 31 39);
    border: 1px solid rgb(45 45 53);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.criterion-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: rgb(var(--color-text));
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.star {
    font-size: 1rem;
    color: rgb(var(--color-border));
}

.star.filled {
    color: rgb(var(--color-warning));
}

.criterion-score {
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.criterion-score-scale {
    font-size: 0.875rem;
    color: rgb(var(--color-text-muted));
    font-weight: 400;
}

.criterion-comment {
    font-size: 0.8125rem;
    color: rgb(var(--color-text-secondary));
    line-height: 1.6;
    padding: 0.75rem;
    background: rgb(0 0 0 / 0.2);
    border-radius: 0.375rem;
    border-left: 2px solid rgb(var(--color-border));
    font-style: italic;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
