/* =============================================================================
   SABORA · PROFESORES
   -----------------------------------------------------------------------------
   Extraído de los bloques <style> que vivían dentro de los .razor. Se conserva
   el origen de cada tramo para poder seguir migrándolo a componentes.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Pages/Teachers/TeacherDetail.razor
   -------------------------------------------------------------------------- */
    /* Ficha del profesor */
    .tp-page {
        padding: 16px 20px 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        font-family: var(--sb-font);
    }

    /* Cabecera Hero */
    .tp-hero {
        display: flex;
        align-items: center;
        gap: 22px;
        flex-wrap: wrap;
        padding: 22px 26px;
        border-radius: 20px;
        background: linear-gradient(135deg, var(--sb-brand-50) 0%, var(--sb-neutral-0) 60%);
        border: 1px solid #fce7df;
        box-shadow: 0 4px 16px rgba(200, 40, 0, 0.04);
    }
    .tp-hero--skeleton { background: var(--sb-neutral-25); border-color: var(--sb-neutral-150); }
    .tp-avatar-wrap { position: relative; flex: 0 0 auto; }
    .tp-avatar {
        width: 88px;
        height: 88px;
        font-size: 1.8rem;
        border: 3px solid var(--sb-neutral-0);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
        border-radius: 50%;
        object-fit: cover;
    }
    .sb-avatar--initials.tp-avatar {
        background: linear-gradient(135deg, var(--sb-brand), #ff7a59);
        border-color: var(--sb-neutral-0);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
    }
    .tp-skel-avatar { width: 88px; height: 88px; border-radius: 50%; }
    .tp-status-dot {
        position: absolute;
        right: 4px;
        bottom: 6px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--sb-neutral-300);
        border: 2.5px solid var(--sb-neutral-0);
    }
    .tp-status-dot.is-on {
        background: var(--sb-green-600);
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
    }

    .tp-hero-identity {
        flex: 1 1 320px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .tp-name-row {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .tp-name {
        margin: 0;
        font-size: 1.65rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        letter-spacing: -0.02em;
    }
    .tp-meta-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        font-size: 0.88rem;
        color: var(--sb-neutral-500);
        font-weight: 500;
    }
    .tp-meta-row i { color: var(--sb-neutral-400); margin-right: 4px; }
    .tp-meta-sep { color: var(--sb-neutral-300); }
    .tp-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
    .tp-chip-row:empty { display: none; }

    .tp-strip {
        flex: 0 0 auto;
        margin-left: auto;
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 14px;
        padding: 10px 18px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
    .tp-strip .sb-strip-item { align-items: center; min-width: 85px; }
    .sb-strip-value { font-size: 1.4rem; font-weight: 900; color: var(--sb-neutral-900); }
    .sb-strip-label { font-size: 0.72rem; font-weight: 700; color: var(--sb-neutral-500); text-transform: uppercase; }

    /* Pestañas */
    .tp-tabs .sb-tabs-header { margin-bottom: 16px; }

    /* Cursos: tabla + columna lateral */
    .tp-courses-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
        align-items: start;
    }
    .tp-main, .tp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
    .tp-main .sb-card {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    }
    .tp-side .sb-card {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    }
    .sb-card-head {
        padding: 14px 18px;
        background: var(--sb-neutral-50);
        border-bottom: 1px solid var(--sb-neutral-200);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .sb-card-title {
        font-size: 0.95rem;
        font-weight: 800;
        color: var(--sb-neutral-800);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .sb-card-body { padding: 18px; }

    .tp-course-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .tp-course-ico {
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--sb-brand-50);
        color: var(--sb-brand);
        font-size: 0.95rem;
    }
    .tp-course-ico.is-off { background: var(--sb-neutral-100); color: var(--sb-neutral-400); }
    .tp-course-title { font-weight: 700; color: var(--sb-neutral-900); font-size: 0.92rem; }
    .tp-course-sub { font-size: 0.78rem; color: var(--sb-neutral-400); font-weight: 500; }

    .tp-sched-chips { display: flex; gap: 6px; flex-wrap: wrap; }
    .tp-sched-chip {
        padding: 4px 10px;
        font-size: 0.76rem;
        font-weight: 700;
        white-space: nowrap;
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 8px;
        color: var(--sb-neutral-700);
    }
    .tp-sched-chip i { color: var(--sb-brand); margin-right: 4px; }
    .tp-sched-room {
        padding-left: 6px;
        margin-left: 4px;
        border-left: 1px solid var(--sb-neutral-300);
        color: var(--sb-neutral-500);
        font-weight: 600;
    }
    .tp-muted { color: var(--sb-neutral-400); font-size: 0.85rem; font-weight: 500; }

    .tp-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; color: var(--sb-neutral-500); }
    .tp-bio { font-size: 0.9rem; line-height: 1.6; color: var(--sb-neutral-600); white-space: pre-line; }

    /* Esquemas de pago */
    .tp-payouts { display: flex; flex-direction: column; gap: 10px; }
    .tp-payout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-150);
        border-left: 4px solid var(--sb-brand);
    }
    .tp-payout.is-expired { border-left-color: var(--sb-neutral-300); opacity: 0.75; }
    .tp-payout-main { display: flex; flex-direction: column; }
    .tp-payout-value { font-size: 1.15rem; font-weight: 900; color: var(--sb-neutral-900); line-height: 1.1; }
    .tp-payout-type { font-size: 0.72rem; font-weight: 800; color: var(--sb-neutral-400); text-transform: uppercase; letter-spacing: 0.5px; }
    .tp-payout-meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
    .tp-payout-scope { font-size: 0.82rem; font-weight: 700; color: var(--sb-neutral-600); }
    .tp-payout-validity { font-size: 0.74rem; color: var(--sb-neutral-400); font-weight: 500; }

    @media (max-width: 1100px) {
        .tp-courses-layout { grid-template-columns: 1fr; }
        .tp-strip { margin-left: 0; width: 100%; justify-content: space-around; }
    }

    @media (max-width: 640px) {
        .tp-page { padding: 12px; }
        .tp-hero { padding: 16px; }
        .tp-name { font-size: 1.3rem; }
    }

/* ----------------------------------------------------------------------------
   Pages/Teachers/TeacherPayments.razor
   -------------------------------------------------------------------------- */
    .payments-outer {
        min-height: 100vh;
        background: var(--sb-neutral-100);
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
    }

    .payments-outer.is-embedded {
        min-height: auto;
        background: transparent;
        padding: 4px 0 20px 0;
    }

    .content-container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .tp-embedded-content {
        padding: 0;
    }

    /* Embedded Toolbar Header */
    .tp-embedded-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 20px;
        padding: 14px 20px;
        background: var(--sb-neutral-0);
        border-radius: 16px;
        border: 1px solid var(--sb-neutral-200);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .tp-embedded-title-box {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .tp-embedded-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #fff1ee;
        color: var(--sb-brand);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
    }

    .tp-embedded-title {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        font-family: var(--sb-font);
        line-height: 1.2;
    }

    .tp-embedded-subtitle {
        font-size: 0.76rem;
        color: var(--sb-neutral-500);
        font-weight: 500;
    }

    .tp-embedded-controls {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Page Header Bar */
    .page-top-bar {
        background: var(--sb-neutral-900);
        color: white;
        padding: 40px 0 100px 0;
        margin-bottom: -70px;
    }

    .header-main {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .btn-back {
        width: 44px; height: 44px;
        border-radius: 12px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.1);
        color: white;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: all 0.2s;
    }
    .btn-back:hover { background: rgba(255,255,255,0.2); transform: translateX(-3px); }

    .header-title-row { display: flex; align-items: center; gap: 10px; }
    .header-text h1 { font-size: 1.85rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
    .header-text p { margin: 4px 0 0 0; color: var(--sb-neutral-400); font-size: 0.95rem; }

    .btn-cache-reset-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid var(--sb-neutral-200);
        background: var(--sb-neutral-50);
        color: var(--sb-neutral-500);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .btn-cache-reset-icon:hover:not(:disabled) { background: var(--sb-neutral-100); color: var(--sb-neutral-900); border-color: var(--sb-neutral-300); }
    .btn-cache-reset-icon:disabled { opacity: 0.55; cursor: not-allowed; }

    /* Professor Profile inside header */
    .prof-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 12px;
        background: rgba(255,255,255,0.08);
        padding: 6px 16px 6px 8px;
        border-radius: 100px;
        width: fit-content;
    }
    .prof-profile img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); }
    .avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--sb-brand); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }
    
    .prof-info { display: flex; flex-direction: column; line-height: 1.2; }
    .prof-name { font-size: 0.9rem; font-weight: 700; color: white; }
    .prof-label { font-size: 0.7rem; font-weight: 500; color: var(--sb-neutral-400); text-transform: uppercase; letter-spacing: 0.05em; }

    /* Period Picker */
    .period-picker {
        display: inline-flex;
        align-items: center;
        background: var(--sb-neutral-0);
        padding: 4px;
        border-radius: 12px;
        border: 1px solid var(--sb-neutral-200);
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .picker-btn {
        width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; color: var(--sb-neutral-500); cursor: pointer; display: flex; align-items: center; justify-content: center;
        transition: all 0.15s ease;
    }
    .picker-btn:hover:not(:disabled) { background: var(--sb-neutral-100); color: var(--sb-neutral-900); }
    .picker-btn:disabled { opacity: 0.3; cursor: not-allowed; }

    .picker-center { min-width: 120px; text-align: center; display: flex; flex-direction: column; line-height: 1.15; }
    .picker-month { font-size: 0.88rem; font-weight: 800; color: var(--sb-neutral-900); text-transform: capitalize; }
    .picker-year { font-size: 0.72rem; font-weight: 600; color: var(--sb-neutral-400); }

    /* Dashboard Grid */
    .page-content { position: relative; z-index: var(--sb-z-raised); padding-bottom: 60px; }

    .summary-card {
        background: var(--sb-neutral-0);
        border-radius: 18px;
        padding: 24px 28px;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
        margin-bottom: 24px;
        border: 1px solid var(--sb-neutral-200);
    }

    .is-paid { border-left: 5px solid var(--sb-green-500); }
    .is-pending { border-left: 5px solid var(--sb-amber-500); }

    .card-body { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

    .main-stats .overline { font-size: 0.75rem; font-weight: 800; color: var(--sb-neutral-500); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 4px; }
    .huge-amount { font-size: 2.6rem; font-weight: 900; color: var(--sb-neutral-900); line-height: 1; margin-bottom: 12px; letter-spacing: -0.03em; font-family: var(--sb-font); }
    .sub-stats { display: flex; gap: 10px; flex-wrap: wrap; }
    .tp-stat-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--sb-neutral-600);
    }
    .tp-stat-chip i { color: var(--sb-brand); font-size: 0.78rem; }

    .actions-group { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
    
    .status-pill {
        padding: 6px 16px;
        border-radius: 100px;
        font-size: 0.82rem;
        font-weight: 700;
        display: flex; align-items: center; gap: 8px;
    }
    .status-pill.confirmed { background: var(--sb-green-100); color: var(--sb-green-800); }
    .status-pill.paid { background: var(--sb-blue-50); color: var(--sb-blue-700); }
    .status-pill.pending { background: var(--sb-amber-100); color: var(--sb-amber-700); }

    .btn-action {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-gradient-end));
        color: white;
        padding: 10px 22px;
        border-radius: 10px;
        font-weight: 800;
        font-size: 0.88rem;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(200, 40, 0, 0.25);
    }
    .btn-action:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200, 40, 0, 0.35); }
    .btn-action:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

    /* Table Section */
    .section-header { margin-bottom: 14px; }
    .section-header h2 { font-size: 1.1rem; font-weight: 800; color: var(--sb-neutral-900); margin: 0; font-family: var(--sb-font); display: flex; align-items: center; }

    .card-table-wrapper {
        background: white;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
        border: 1px solid var(--sb-neutral-200);
        overflow: hidden;
    }

    .data-table { width: 100%; border-collapse: collapse; }
    .data-table th { 
        background: linear-gradient(135deg, var(--sb-brand), #a02000); 
        padding: 12px 18px; 
        text-align: left; 
        font-size: 0.74rem; 
        font-weight: 800; 
        color: var(--sb-neutral-0); 
        text-transform: uppercase; 
        letter-spacing: 0.05em; 
        border: none;
    }
    .data-table td { padding: 14px 18px; border-bottom: 1px solid var(--sb-neutral-100); vertical-align: middle; }
    .data-table tr:last-child td { border-bottom: none; }
    .data-table tbody tr:hover { background: var(--sb-brand-50); }

    .td-course { font-weight: 700; color: var(--sb-neutral-900); font-size: 0.92rem; margin-bottom: 2px; }
    .td-schedule { font-size: 0.78rem; color: var(--sb-brand); font-weight: 600; display: flex; align-items: center; gap: 5px; }

    .count-badge { background: var(--sb-neutral-100); color: var(--sb-neutral-700); padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 0.82rem; display: inline-block; min-width: 28px; text-align: center; }

    .scheme-pill { display: flex; flex-direction: column; line-height: 1.2; }
    .s-val { font-weight: 700; color: var(--sb-neutral-900); font-size: 0.9rem; }
    .s-type { font-size: 0.7rem; color: var(--sb-neutral-400); font-weight: 600; text-transform: uppercase; }

    .commission-val { font-size: 0.98rem; font-weight: 800; color: var(--sb-neutral-900); }

    .empty-row { text-align: center; padding: 48px !important; color: var(--sb-neutral-400); font-weight: 500; }

    /* Alignment Specificity Fix */
    .data-table .text-center { text-align: center !important; }
    .data-table .text-right { text-align: right !important; }
    
    .data-table th.text-center { text-align: center !important; }
    .data-table th.text-right { text-align: right !important; }

    /* Skeleton Styles */
    .shimmer {
        background: #f6f7f8;
        background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
        background-repeat: no-repeat;
        background-size: 800px 100%; 
        animation: shimmer 1.5s infinite linear;
    }
    @keyframes shimmer { 0% { background-position: -468px 0; } 100% { background-position: 468px 0; } }
    .skel-card { height: 160px; border-radius: 18px; margin-bottom: 20px; }
    .skel-table { height: 300px; border-radius: 16px; }

    .status-box { text-align: center; padding: 60px 30px; background: white; border-radius: 18px; border: 1px dashed var(--sb-neutral-200); color: var(--sb-neutral-500); }
    .status-box i { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.3; }
    .status-box.error i { color: var(--sb-red-500); opacity: 1; }

    .animate-fade-in { animation: fadeIn 0.4s ease-out; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------------------------------------
   Pages/Teachers/TeacherOnboarding.razor
   -------------------------------------------------------------------------- */
    .teacher-onboarding-wizard {
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 28px;
        font-family: var(--sb-font);
        /* El cuerpo de CardPrimary va a padding 0, así que la separación con la
           cabecera de la tarjeta y con su borde inferior la pone el wizard. */
        padding: 24px 22px 28px;
    }

    /* Stepper / Progress Bar */
    .teacher-onboarding-wizard .wizard-progress {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 16px;
        padding: 18px 28px;
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .teacher-onboarding-wizard .wizard-progress-track {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        position: relative;
        max-width: 660px;
        margin: 0 auto;
        width: 100%;
    }

    .teacher-onboarding-wizard .wizard-progress-item {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 6px 14px;
        border-radius: 12px;
        background: transparent;
        border: none;
        color: var(--sb-neutral-500);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        user-select: none;
        cursor: default;
        text-decoration: none;
        flex-shrink: 0;
    }

    .teacher-onboarding-wizard .wizard-progress-item.is-clickable {
        cursor: pointer;
    }

    .teacher-onboarding-wizard .wizard-progress-item.is-clickable:hover {
        background: var(--sb-neutral-100);
        transform: translateY(-1px);
    }

    .teacher-onboarding-wizard .wizard-progress-item.active {
        color: var(--sb-neutral-900);
    }

    .teacher-onboarding-wizard .wizard-progress-item.completed {
        color: var(--sb-neutral-800);
    }

    .teacher-onboarding-wizard .wizard-progress-index {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.88rem;
        font-weight: 800;
        flex-shrink: 0;
        background: var(--sb-neutral-100);
        color: var(--sb-neutral-500);
        border: 2px solid var(--sb-neutral-200);
        transition: all 0.25s ease;
    }

    .teacher-onboarding-wizard .wizard-progress-item.active .wizard-progress-index {
        background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-gradient-end, #ea580c));
        color: var(--sb-neutral-0);
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(200, 40, 0, 0.3), 0 0 0 3px rgba(200, 40, 0, 0.12);
    }

    .teacher-onboarding-wizard .wizard-progress-item.completed .wizard-progress-index {
        background: var(--sb-green-500, #10b981);
        color: var(--sb-neutral-0);
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

    .teacher-onboarding-wizard .wizard-progress-meta {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
        text-align: left;
    }

    .teacher-onboarding-wizard .wizard-progress-step-num {
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--sb-neutral-400);
        margin-bottom: 2px;
    }

    .teacher-onboarding-wizard .wizard-progress-item.active .wizard-progress-step-num {
        color: var(--sb-brand);
    }

    .teacher-onboarding-wizard .wizard-progress-item.completed .wizard-progress-step-num {
        color: var(--sb-green-600, #059669);
    }

    .teacher-onboarding-wizard .wizard-progress-label {
        font-size: 0.90rem;
        font-weight: 700;
        color: var(--sb-neutral-600);
        white-space: nowrap;
    }

    .teacher-onboarding-wizard .wizard-progress-item.active .wizard-progress-label {
        color: var(--sb-neutral-900);
        font-weight: 800;
    }

    .teacher-onboarding-wizard .wizard-progress-item.completed .wizard-progress-label {
        color: var(--sb-neutral-800);
    }

    .teacher-onboarding-wizard .wizard-progress-connector {
        flex: 1 1 60px;
        max-width: 120px;
        height: 2px;
        background: var(--sb-neutral-200);
        border-radius: 999px;
        margin: 0 28px;
        transition: background-color 0.3s ease;
    }

    .teacher-onboarding-wizard .wizard-progress-connector.is-completed {
        background: var(--sb-green-500, #10b981);
    }

    .teacher-onboarding-wizard .wizard-progress-connector.is-active {
        background: linear-gradient(90deg, var(--sb-brand), var(--sb-neutral-200));
    }

    /* Panels & Layout */
    .teacher-onboarding-wizard .wizard-panels {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 24px;
        align-items: start;
    }

    .teacher-onboarding-wizard .wizard-main {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .teacher-onboarding-wizard .wizard-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
        background: transparent;
        padding: 0;
        border-radius: 0;
        text-align: left;
    }

    .teacher-onboarding-wizard .wizard-section-card {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 20px;
        padding: 28px 32px;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
    }

    .teacher-onboarding-wizard .wizard-section-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--sb-neutral-150);
        text-align: left;
    }

    .teacher-onboarding-wizard .wizard-section-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: var(--sb-brand-50, #fff1ee);
        color: var(--sb-brand);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        flex-shrink: 0;
        border: 1px solid var(--sb-brand-100, #ffe4de);
    }

    .teacher-onboarding-wizard .wizard-section-header h3 {
        margin: 0;
        font-size: 1.22rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        letter-spacing: -0.01em;
    }

    .teacher-onboarding-wizard .wizard-section-description {
        margin: 4px 0 0;
        font-size: 0.88rem;
        color: var(--sb-neutral-500);
        font-weight: 500;
    }

    /* Footer & Action Buttons */
    .teacher-onboarding-wizard .wizard-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding-top: 24px;
        border-top: 1px solid var(--sb-neutral-150);
        margin-top: 32px;
        width: 100%;
        box-sizing: border-box;
    }

    .teacher-onboarding-wizard .wizard-footer-left {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: auto;
    }

    .teacher-onboarding-wizard .wizard-footer-right {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
    }

    .teacher-onboarding-wizard .wizard-card-footer .sb-btn {
        min-width: 130px;
        height: 42px;
        padding: 0 20px;
        font-weight: 700;
        font-size: 0.90rem;
    }

    @media (max-width: 1024px) {
        .teacher-onboarding-wizard .wizard-panels {
            grid-template-columns: 1fr;
        }
        .teacher-summary {
            position: static;
        }
    }

    @media (max-width: 768px) {
        .teacher-onboarding-wizard {
            padding: 16px 14px 20px;
            gap: 20px;
        }
        .teacher-onboarding-wizard .wizard-progress {
            padding: 12px 16px;
        }
        .teacher-onboarding-wizard .wizard-progress-track {
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }
        .teacher-onboarding-wizard .wizard-progress-connector {
            display: none;
        }
        .teacher-onboarding-wizard .wizard-progress-item {
            padding: 4px 8px;
            gap: 8px;
        }
        .teacher-onboarding-wizard .wizard-progress-index {
            width: 32px;
            height: 32px;
            font-size: 0.82rem;
        }
        .teacher-onboarding-wizard .wizard-progress-label {
            font-size: 0.84rem;
        }
        .teacher-onboarding-wizard .wizard-section-card {
            padding: 20px;
        }
    }

    @media (max-width: 640px) {
        .teacher-onboarding-wizard .wizard-card-footer {
            flex-direction: column-reverse;
            align-items: stretch;
            gap: 12px;
        }
        .teacher-onboarding-wizard .wizard-footer-left,
        .teacher-onboarding-wizard .wizard-footer-right {
            width: 100%;
            justify-content: stretch;
            margin: 0;
        }
        .teacher-onboarding-wizard .wizard-footer-left > *,
        .teacher-onboarding-wizard .wizard-footer-right > * {
            flex: 1;
            width: 100%;
        }
    }

    .teacher-summary {
        position: sticky;
        top: 24px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        min-width: 0;
    }

    .teacher-summary-card {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    }

    .teacher-summary-card-header,
    .teacher-summary-card h4 {
        margin: 0;
        padding: 16px 20px;
        background: var(--sb-neutral-50);
        color: var(--sb-neutral-900);
        font-weight: 800;
        font-size: 0.90rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid var(--sb-neutral-150);
    }

    .teacher-summary-header-title {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--sb-neutral-900);
        font-weight: 800;
        line-height: 1.3;
        min-width: 0;
    }

    /* El badge "En vivo" no se parte en dos líneas: manda el título. */
    .teacher-summary-card-header .wizard-summary-badge {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .teacher-summary-header-title i {
        color: var(--sb-brand);
        font-size: 0.95rem;
    }

    .teacher-summary-card-body {
        padding: 22px 22px 24px;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .teacher-summary-section {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .teacher-summary-section-subtitle {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--sb-neutral-500);
        padding-bottom: 4px;
    }

    .teacher-summary-section-subtitle i {
        color: var(--sb-brand);
        font-size: 0.82rem;
    }

    .teacher-summary-divider {
        height: 1px;
        background: var(--sb-neutral-150);
        margin: 4px 0;
    }

    .teacher-summary-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .teacher-summary-row {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .teacher-summary-list dt {
        font-size: 0.68rem;
        font-weight: 800;
        color: var(--sb-neutral-400);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0;
    }

    .teacher-summary-list dd {
        font-size: 0.90rem;
        font-weight: 700;
        color: var(--sb-neutral-900);
        margin: 0;
        word-break: break-word;
    }

    .teacher-summary-hint {
        margin: 6px 0 0;
        font-size: 0.80rem;
        line-height: 1.45;
        color: var(--sb-neutral-600);
        background: var(--sb-neutral-50);
        border: 1px dashed var(--sb-neutral-200);
        border-radius: 12px;
        padding: 10px 12px;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .teacher-summary-hint i {
        color: var(--sb-brand);
        margin-top: 2px;
        flex-shrink: 0;
    }
