.student-overview {
    --so-card-gap: 2.5rem;
    --so-accent: #6b4ce6;
    --so-accent-light: #ede9fe;
    --so-page-bg: #f4f5f7;
    --so-text-muted: #6b7280;
    --so-border: var(--app-card-border);
    --so-success: #16a34a;
    --so-success-bg: #dcfce7;
    --so-info: #2563eb;
    --so-info-bg: #dbeafe;
    --so-danger: #dc2626;
    --so-danger-bg: #fee2e2;
    --so-upcoming: #9ca3af;
    --so-upcoming-bg: #f3f4f6;
}

.student-overview.so-stack {
    display: flex;
    flex-direction: column;
    gap: var(--so-card-gap);
}

.student-overview .so-card {
    background: var(--app-card-bg);
    border: 1px solid var(--app-card-border);
    border-radius: var(--app-card-radius);
    box-shadow: var(--app-card-shadow);
    padding: var(--app-card-padding-block) var(--app-card-padding-inline);
}

.student-overview .so-card-title--spaced {
    margin-bottom: 1.25rem !important;
}

.student-overview .so-progress-percent {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--so-accent);
    line-height: 1;
}

.student-overview .so-progress-track {
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.student-overview .so-progress-fill {
    height: 100%;
    background: var(--so-accent);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.student-overview .so-phase-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.student-overview .so-phase-label {
    font-size: 0.8125rem;
    color: var(--so-upcoming);
    text-align: center;
    flex: 1 1 0;
    min-width: 4.5rem;
}

.student-overview .so-phase-label.completed {
    color: var(--so-accent);
    font-weight: 600;
}

.student-overview .so-phase-label.completed::before {
    content: "✓ ";
}

.student-overview .so-phase-label.current {
    color: #111827;
    font-weight: 600;
}

.student-overview .so-phase-label.current::before {
    content: "• ";
    color: #111827;
}

.student-overview .so-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--so-card-gap);
}

@media (max-width: 960px) {
    .student-overview .so-two-col {
        grid-template-columns: 1fr;
    }
}

.student-overview .so-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.student-overview .so-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.9375rem;
}

.student-overview .so-detail-row dt {
    color: var(--so-text-muted);
    font-weight: 400;
    margin: 0;
}

.student-overview .so-detail-row dd {
    font-weight: 600;
    color: #111827;
    margin: 0;
    text-align: right;
}

.student-overview .so-timeline {
    position: relative;
    padding-left: 2rem;
}

.student-overview .so-timeline::before {
    content: "";
    position: absolute;
    left: 0.6875rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: #d1d5db;
}

.student-overview .so-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.student-overview .so-timeline-item:last-child {
    padding-bottom: 0;
}

.student-overview .so-timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.125rem;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
    background: var(--app-card-bg);
}

.student-overview .so-timeline-marker.completed {
    background: var(--so-accent);
    color: #fff;
    border: none;
}

.student-overview .so-timeline-marker.in-progress {
    background: var(--so-info-bg);
    border: 2px solid var(--so-info);
}

.student-overview .so-timeline-marker.overdue {
    background: var(--so-danger);
    border: none;
}

.student-overview .so-timeline-marker.upcoming {
    background: var(--app-card-bg);
    border: 2px solid #d1d5db;
}

.student-overview .so-timeline-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.student-overview .so-timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.student-overview .so-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.student-overview .so-badge.completed {
    background: var(--so-success-bg);
    color: var(--so-success);
}

.student-overview .so-badge.in-progress {
    background: var(--so-info-bg);
    color: var(--so-info);
}

.student-overview .so-badge.overdue {
    background: var(--so-danger-bg);
    color: var(--so-danger);
}

.student-overview .so-badge.upcoming {
    background: var(--so-upcoming-bg);
    color: #4b5563;
}

.student-overview .so-timeline-subtitle {
    font-size: 0.8125rem;
    color: var(--so-text-muted);
    margin: 0 0 0.5rem;
}

.student-overview .so-timeline-description {
    margin: 0;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #374151;
    border-left: 3px solid var(--so-accent);
}

.student-overview .so-timeline-description.in-progress {
    border-left-color: var(--so-info);
}

.student-overview .so-timeline-description.overdue {
    border-left-color: var(--so-danger);
}

.student-overview .so-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 0.5rem;
}

.student-overview .so-btn-primary {
    background: var(--so-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 600 !important;
}

.student-overview .so-btn-outline {
    border: 2px solid var(--so-accent) !important;
    color: var(--so-accent) !important;
    background: transparent !important;
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 600 !important;
}
