/* Socioemocional landing — scoped styles.
   Warm, human palette: violet primary + aqua secondary + soft pastels. No loud gamification. */
.sel-hero {
    background: linear-gradient(135deg, #8754A1 0%, #4BC6BD 60%, #F9C784 100%);
    position: relative;
    overflow: hidden;
}
.sel-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
    border-radius: 50%;
}
.sel-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(249, 199, 132, 0.22), transparent);
    border-radius: 50%;
}
.typed-word {
    display: inline-block;
    min-height: 1.2em;
    min-width: 1ch;
}

/* CASEL pillars — soft, warm card palette (sunrise / leaf / sky / hearth / horizon) */
.pillar-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}
.pillar-icon {
    width: 74px; height: 74px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.6rem;
}
.pillar-self-aware  { background: linear-gradient(135deg, #F9C784, #F4A261); }
.pillar-self-manage { background: linear-gradient(135deg, #6FCF97, #35A8A0); }
.pillar-social      { background: linear-gradient(135deg, #7AB8E3, #4B8EC6); }
.pillar-relations   { background: linear-gradient(135deg, #F4B1B1, #E76F7F); }
.pillar-decisions   { background: linear-gradient(135deg, #A89BE3, #8754A1); }

.border-top-self-aware  { border-top: 4px solid #F4A261 !important; }
.border-top-self-manage { border-top: 4px solid #35A8A0 !important; }
.border-top-social      { border-top: 4px solid #4B8EC6 !important; }
.border-top-relations   { border-top: 4px solid #E76F7F !important; }
.border-top-decisions   { border-top: 4px solid #8754A1 !important; }

/* Demo simulator — same shape as ingles but warmer accent */
.demo-simulator-wrapper {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}
.demo-simulator-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(135, 84, 161, 0.25);
    background: #fff;
}
.demo-simulator-badge {
    position: absolute;
    top: -25px; left: 50%;
    transform: translateX(-50%);
    background: #F4A261;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(244,162,97,0.45);
}

/* How it works */
.how-step {
    position: relative;
    text-align: center;
}
.how-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8754A1, #4BC6BD);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    box-shadow: 0 10px 30px rgba(135,84,161,0.25);
}

/* FAQ accordion — h3 wrapper kept for SEO hierarchy without visual heading weight */
.faq-item h3 { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.faq-question {
    width: 100%;
    background: #fff;
    border: none;
    text-align: left;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #52617A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-question[aria-expanded="true"] { color: #8754A1; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s ease; color: #8754A1; }
.faq-answer {
    padding: 0 22px 18px 22px;
    color: #576279;
    line-height: 1.7;
    display: none;
}
.faq-answer.open { display: block; }
.faq-question:focus-visible { outline: 3px solid #F9C784; outline-offset: -3px; }

@media (max-width: 767px) {
    .demo-simulator-frame { aspect-ratio: 3 / 4; }
}

/* Publications cards */
.sel-post-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 14px;
    overflow: hidden;
}
.sel-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(135, 84, 161, 0.14) !important;
}
.sel-post-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}
.sel-post-card a { text-decoration: none; }

/* Accessibility — skip-link visible only on focus */
.sel-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #8754A1;
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
}
.sel-skip-link:focus {
    top: 0;
    color: #fff;
    text-decoration: none;
}

/* =======================================================================
   PRODUCT PROTOTYPE (.proto-*) — in-page mock of teacher + student views.
   Scoped entirely under .proto-* to avoid collisions with global layout.
   ======================================================================= */
.proto-stage {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px 20px;
    perspective: 1400px;
}
.proto-glow {
    position: absolute;
    inset: -40px -20px;
    background:
        radial-gradient(ellipse at 30% 45%, rgba(135, 84, 161, 0.20), transparent 55%),
        radial-gradient(ellipse at 75% 60%, rgba(249, 199, 132, 0.20), transparent 55%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}
.proto-panels {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}
.proto-panel {
    background: #F4F5F9;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
    box-shadow:
        0 30px 60px -18px rgba(30, 30, 60, 0.30),
        0 12px 28px -10px rgba(135, 84, 161, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.05);
}
/* Fixed natural widths — enough room for dashboard/workstation content to breathe */
.proto-panel-teacher {
    width: 560px;
    transform: rotateZ(-1.2deg) translateY(12px);
    transform-origin: right center;
    z-index: 1;
}
.proto-panel-student {
    width: 420px;
    transform: rotateZ(1.2deg) translateY(-12px);
    transform-origin: left center;
    z-index: 2;
    margin-left: -20px;
}
.proto-stage:hover .proto-panel-teacher,
.proto-stage:hover .proto-panel-student {
    transform: rotateZ(0deg) translateY(0);
}

/* Panel hero-shots: drop the outer sidebar in split-view for a tighter composition */
.proto-panel-teacher .proto-sidebar,
.proto-panel-student .proto-sidebar-right { display: none; }
.proto-panel-teacher .proto-teacher { grid-template-columns: 1fr; min-height: 0; }
.proto-panel-student .proto-student-view { grid-template-columns: 1fr; padding: 22px 20px; }
.proto-panel-teacher .proto-main { padding: 22px 24px 24px 24px; gap: 18px; }
.proto-panel-teacher .proto-topbar { margin-bottom: 4px; }
.proto-panel-teacher .proto-kpi-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.proto-panel-teacher .proto-kpi { padding: 12px 14px; }
.proto-panel-teacher .proto-kpi-label { font-size: 0.7rem; line-height: 1.2; }
.proto-panel-teacher .proto-kpi-value { font-size: 1.55rem; }

/* Student panel tight layout */
.proto-panel-student .proto-topstrip { padding: 14px 18px; }
.proto-panel-student .proto-xp { width: 140px; }
.proto-panel-student .proto-exercise { padding: 18px; }
.proto-panel-student .proto-alts { grid-template-columns: 1fr; gap: 10px; }
.proto-panel-student .proto-alt { padding: 12px 14px; text-align: left; }
.proto-panel-student .proto-character { font-size: 2.6rem; }
.proto-panel-student .proto-bubble { font-size: 0.9rem; }

/* --- TEACHER VIEW --- */
.proto-teacher {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 560px;
}
.proto-sidebar {
    background: #fff;
    border-right: 1px solid #EEF0F5;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
}
.proto-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    color: #8754A1;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    padding-left: 4px;
}
.proto-brand .proto-brand-accent { color: #4BC6BD; }
.proto-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(135,84,161,0.08), rgba(75,198,189,0.08));
    border-radius: 10px;
    margin-bottom: 16px;
}
.proto-avatar-circle {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8754A1, #4BC6BD);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.proto-user-meta { line-height: 1.15; min-width: 0; }
.proto-user-meta strong { color: #2D3748; font-size: 0.88rem; display: block; }
.proto-user-meta span { color: #8898AA; font-size: 0.75rem; }
.proto-nav { list-style: none; padding: 0; margin: 0; flex: 1; }
.proto-nav li {
    padding: 9px 12px;
    margin-bottom: 3px;
    border-radius: 8px;
    color: #52617A;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}
.proto-nav li:hover { background: #F6F0FB; color: #8754A1; }
.proto-nav li.active {
    background: linear-gradient(135deg, #8754A1, #4BC6BD);
    color: #fff;
}
.proto-nav li.active:hover { color: #fff; }
.proto-nav i { width: 16px; text-align: center; }
.proto-sidebar-footer {
    font-size: 0.72rem;
    color: #B0B7C3;
    padding-top: 12px;
    border-top: 1px solid #EEF0F5;
}

.proto-main { padding: 20px 24px; overflow: hidden; }
.proto-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.proto-breadcrumb { font-size: 0.82rem; color: #8898AA; }
.proto-breadcrumb strong { color: #2D3748; font-weight: 700; }
.proto-breadcrumb .sep { margin: 0 6px; color: #CBD2D9; }
.proto-topbar-right { display: flex; align-items: center; gap: 14px; }
.proto-bell {
    position: relative;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8898AA;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.proto-bell:hover { color: #8754A1; transform: translateY(-1px); }
.proto-bell-dot {
    position: absolute;
    top: 7px; right: 8px;
    width: 8px; height: 8px;
    background: #E76F7F;
    border: 2px solid #fff;
    border-radius: 50%;
}

.proto-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.proto-kpi {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(135,84,161,0.06);
    border-left: 4px solid #8754A1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.proto-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(135,84,161,0.12);
}
.proto-kpi.accent-teal { border-left-color: #35A8A0; }
.proto-kpi.accent-sun  { border-left-color: #F4A261; }
.proto-kpi-label { color: #8898AA; font-size: 0.74rem; font-weight: 600; margin-bottom: 4px; }
.proto-kpi-value {
    font-size: 1.55rem;
    font-weight: 900;
    color: #2D3748;
    line-height: 1.1;
    font-family: 'Nunito', sans-serif;
}
.proto-kpi-sub { font-size: 0.72rem; color: #52617A; margin-top: 2px; }
.proto-kpi-sub .up { color: #35A8A0; font-weight: 700; }
.proto-kpi-sub .down { color: #E76F7F; font-weight: 700; }
.proto-kpi-cta {
    margin-top: 10px;
    border: none;
    background: linear-gradient(135deg, #8754A1, #4BC6BD);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(135, 84, 161, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.proto-kpi-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(135, 84, 161, 0.3);
}

/* Climate ring — simple visual for "clima emocional del curso" */
.proto-climate {
    display: flex;
    align-items: center;
    gap: 14px;
}
.proto-climate-ring {
    position: relative;
    width: 58px; height: 58px;
    flex-shrink: 0;
}
.proto-climate-ring svg { transform: rotate(-90deg); }
.proto-climate-ring .ring-bg   { stroke: #F0F2F7; }
.proto-climate-ring .ring-fill {
    stroke: url(#selGrad);
    transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.proto-climate-label {
    font-size: 1rem;
    font-weight: 900;
    color: #2D3748;
}
.proto-climate-note {
    font-size: 0.7rem;
    color: #8898AA;
    font-weight: 600;
    margin-top: 2px;
}

/* Student "needs support" list — warm, not alarming. Hover reveals the CTA arrow. */
.proto-care-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    transition: background 0.15s ease;
}
.proto-care-row + .proto-care-row {
    margin-top: 4px;
    border-top: 1px solid #F3F4F8;
    padding-top: 14px;
}
.proto-care-row:hover { background: #FAFBFD; }
.proto-care-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.proto-care-body { min-width: 0; }
.proto-care-body strong {
    display: block;
    font-size: 0.88rem;
    color: #2D3748;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
}
.proto-care-body span { font-size: 0.72rem; color: #8898AA; }
.proto-care-cta {
    border: 1px solid #E0D5EA;
    background: #fff;
    color: #8754A1;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, gap 0.18s ease, padding 0.18s ease;
}
.proto-care-cta::after {
    content: '→';
    font-weight: 900;
    font-size: 0.85rem;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.18s ease, max-width 0.18s ease;
}
.proto-care-cta:hover,
.proto-care-row:hover .proto-care-cta {
    background: #8754A1;
    border-color: #8754A1;
    color: #fff;
    padding-right: 14px;
}
.proto-care-cta:hover::after,
.proto-care-row:hover .proto-care-cta::after {
    opacity: 1;
    max-width: 14px;
}

/* Trust-signals chip row above the stage */
.proto-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 24px auto;
    max-width: 960px;
}
.proto-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #EEE9F5;
    color: #52617A;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(135,84,161,0.06);
}
.proto-meta-chip i { color: #8754A1; }

/* Inner teacher sub-grid — sub-cards stack vertically for full width use */
.proto-subgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.proto-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(135, 84, 161, 0.06);
}
.proto-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.proto-card-title .proto-card-tag {
    font-size: 0.68rem;
    background: #F2EEF7;
    color: #8754A1;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* --- STUDENT VIEW --- */
.proto-student-view {
    background: linear-gradient(180deg, #FDFBFF 0%, #FFF6E7 100%);
    min-height: 560px;
    padding: 16px 20px 20px 20px;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
}
.proto-student-main { display: flex; flex-direction: column; }
.proto-topstrip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(135,84,161,0.08);
    margin-bottom: 14px;
}
.proto-player { display: flex; align-items: center; gap: 10px; }
.proto-player-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6FCF97, #35A8A0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(53,168,160,0.25);
}
.proto-player-meta strong { color: #2D3748; font-size: 0.92rem; font-weight: 800; display: block; }
.proto-xp {
    width: 110px;
    height: 6px;
    background: #F0F2F7;
    border-radius: 4px;
    margin-top: 3px;
    overflow: hidden;
}
.proto-xp > div {
    height: 100%;
    width: 62%;
    background: linear-gradient(90deg, #8754A1, #4BC6BD);
    border-radius: 4px;
}
.proto-chips { display: flex; gap: 8px; }
.proto-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFF6E7;
    color: #C47C0A;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 5px 11px;
    border-radius: 20px;
}
.proto-chip.mood { background: #F2EEF7; color: #8754A1; }

/* Exercise card — scenario + emotion choices */
.proto-exercise {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 20px rgba(135,84,161,0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.proto-exercise-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.proto-exercise-title { font-size: 0.82rem; font-weight: 800; color: #8754A1; letter-spacing: 0.2px; }
.proto-exercise-counter { font-size: 0.78rem; color: #8898AA; font-weight: 600; }
.proto-scene-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #F6F0FB, #FFF6E7);
    border-radius: 14px;
    margin-bottom: 14px;
}
.proto-character {
    font-size: 2.8rem;
    line-height: 1;
    flex-shrink: 0;
    animation: proto-bob 2.6s ease-in-out infinite;
}
@keyframes proto-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
.proto-bubble {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    color: #2D3748;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.45;
}
.proto-bubble::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 22px;
    border: 7px solid transparent;
    border-right-color: #fff;
    border-left: 0;
}
.proto-bubble strong { color: #8754A1; font-weight: 800; }
.proto-bubble em {
    display: block;
    font-weight: 500;
    color: #52617A;
    font-size: 0.82rem;
    margin-top: 4px;
    font-style: normal;
}

/* Alternatives — warm, sentence-style (not a quiz grid) */
.proto-alts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.proto-alt {
    background: #fff;
    border: 2px solid #EEF0F5;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.proto-alt:hover {
    border-color: #8754A1;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(135,84,161,0.14);
}
.proto-alt-emoji {
    font-size: 1.7rem;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.proto-alt-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2D3748;
    line-height: 1.35;
}
.proto-alt.correct {
    border-color: #35A8A0;
    background: #E8FAF7;
    animation: proto-shake-ok 0.4s ease;
}
.proto-alt.wrong {
    border-color: #E76F7F;
    background: #FBE8EC;
    animation: proto-shake-err 0.4s ease;
}
@keyframes proto-shake-ok {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}
@keyframes proto-shake-err {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}
.proto-alt.disabled { pointer-events: none; opacity: 0.6; }
.proto-feedback {
    min-height: 30px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: none;
    line-height: 1.45;
}
.proto-feedback.show { display: block; }
.proto-feedback.ok  { background: #E8FAF7; color: #1C6B5F; }
.proto-feedback.err { background: #FBE8EC; color: #A13B4B; }

.proto-progress { height: 10px; background: #F0F2F7; border-radius: 6px; overflow: hidden; }
.proto-progress > div {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #F9C784, #8754A1);
    border-radius: 6px;
    transition: width 0.3s ease;
}
.proto-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #8898AA;
    font-weight: 600;
    margin-top: 6px;
}

/* Student sidebar (right) — kept for completeness though hidden in split-view */
.proto-sidebar-right { display: flex; flex-direction: column; gap: 12px; }
.proto-side-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 2px 10px rgba(135,84,161,0.08);
}
.proto-side-title {
    font-size: 0.78rem;
    color: #8898AA;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Tablet (<1060px) — stack panels; 560+420+28 gap overflows below that. */
@media (max-width: 1059px) {
    .proto-stage { padding: 20px 10px 40px 10px; }
    .proto-panels { flex-direction: column; gap: 28px; }
    .proto-panel {
        width: 100%;
        max-width: 560px;
        margin-left: 0 !important;
        transform: none !important;
    }
    .proto-stage:hover .proto-panel { transform: none !important; }
    .proto-teacher { grid-template-columns: 1fr; }
    .proto-student-view { grid-template-columns: 1fr; }
}

/* Mobile (<576px) — tighten spacings */
@media (max-width: 575px) {
    .proto-main { padding: 14px; }
    .proto-kpi-row { grid-template-columns: 1fr; }
    .proto-kpi-value { font-size: 1.35rem; }
    .proto-student-view { padding: 12px; }
    .proto-character { font-size: 2.2rem; }
    .proto-bubble { font-size: 0.85rem; padding: 10px 12px; }
}
