/* ============================================================
   EduMate Ghana v2 — Chat, Avatar, Tutor, Classroom,
   Mind Map, Study Plan, Notification, and accessibility styles
   ============================================================ */

:root {
    --gh-green:    #006B3F;
    --gh-gold:     #FCD116;
    --gh-red:      #CE1126;
    --gh-green-lt: #f0fdf4;
    --avatar-sz:   80px;
    --chat-radius: 18px;
}

/* ── Chat v2 layout ───────────────────────────────────────────────────────── */

.chat-page-v2 {
    display: flex;
    height: calc(100vh - 64px);
    overflow: hidden;
    position: relative;
}

/* Sidebar */
.chat-sidebar-v2 {
    width: 240px;
    min-width: 240px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 1rem;
}
.sidebar-avatar-section {
    padding: 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    gap: .5rem;
}
.sidebar-avatar {
    width: var(--avatar-sz); height: var(--avatar-sz); border-radius: 50%;
    border: 3px solid; display: flex; align-items: center; justify-content: center;
    position: relative; cursor: pointer; transition: transform .2s;
}
.sidebar-avatar:hover { transform: scale(1.05); }
.avatar-emoji-large { font-size: 2.8rem; line-height: 1; }
.avatar-status-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 14px; height: 14px; border-radius: 50%; background: #22c55e;
    border: 2.5px solid #f9fafb;
}
.avatar-name-label { text-align: center; }
.avatar-name-label strong { display: block; font-weight: 800; font-size: 1rem; }
.avatar-name-label small  { color: #6b7280; font-size: .8rem; }

.tts-toggle { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #374151; }
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0; background: #d1d5db; border-radius: 20px;
    cursor: pointer; transition: .2s;
}
.toggle-slider::before {
    content: ''; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: .2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--gh-green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

.sidebar-section { padding: .75rem 1rem; border-bottom: 1px solid #f3f4f6; }
.sidebar-action-link {
    display: block; padding: .5rem .75rem; border-radius: 8px;
    font-size: .9rem; font-weight: 600; color: var(--gh-green);
    text-decoration: none; transition: background .15s; margin-bottom: .25rem;
    background: transparent; border: none; cursor: pointer; text-align: left; width: 100%;
    font-family: inherit;
}
.sidebar-action-link:hover { background: var(--gh-green-lt); }
.sidebar-action-link.danger-link { color: var(--gh-red); }
.sidebar-action-link.danger-link:hover { background: #fff5f5; }

.uploaded-file-chip {
    display: flex; align-items: center; gap: .35rem;
    padding: .35rem .6rem; background: #f3f4f6; border-radius: 6px;
    font-size: .8rem; cursor: pointer; margin-bottom: .25rem;
    transition: background .15s;
}
.uploaded-file-chip:hover { background: var(--gh-green-lt); }
.uploaded-file-chip.active { background: var(--gh-green-lt); border: 1px solid var(--gh-green); }

/* Chat main */
.chat-main-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Avatar panel */
.avatar-panel {
    position: absolute;
    bottom: 120px;
    right: 16px;
    width: 90px;
    background: rgba(255,255,255,.95);
    border: 2px solid var(--gh-green);
    border-radius: 16px;
    padding: .75rem .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,107,63,.2);
    transition: all .3s;
}
.avatar-panel:hover { transform: scale(1.05); }
.avatar-panel-face { font-size: 2.5rem; transition: all .2s; }
.avatar-expression-label { font-size: .65rem; font-weight: 700; color: var(--gh-green); text-align: center; line-height: 1.2; }
.avatar-lipsync { display: flex; align-items: flex-end; gap: 2px; height: 20px; }
.avatar-lipsync span {
    width: 4px; border-radius: 2px; background: var(--gh-green);
    animation: lipsync .4s ease-in-out infinite alternate;
}
.avatar-lipsync span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.avatar-lipsync span:nth-child(2) { height: 12px; animation-delay: .1s; }
.avatar-lipsync span:nth-child(3) { height: 18px; animation-delay: .2s; }
.avatar-lipsync span:nth-child(4) { height: 12px; animation-delay: .3s; }
.avatar-lipsync span:nth-child(5) { height: 6px;  animation-delay: .4s; }
@keyframes lipsync { to { transform: scaleY(1.8); } }

/* Messages */
.chat-messages-v2 {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.message { display: flex; align-items: flex-end; gap: .5rem; }
.message-user { flex-direction: row-reverse; }
.message-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; background: #f3f4f6;
}
.assistant-avatar { background: var(--gh-green-lt); }
.user-avatar { background: var(--gh-gold); font-weight: 800; font-size: .9rem; }
.message-content { display: flex; flex-direction: column; max-width: 72%; }
.message-user .message-content { align-items: flex-end; }
.message-bubble {
    padding: .75rem 1rem; border-radius: var(--chat-radius);
    font-size: .95rem; line-height: 1.6; word-break: break-word;
}
.message-assistant .message-bubble {
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    color: #111827;
}
.message-user .message-bubble {
    background: var(--gh-green); color: #fff;
    border-bottom-right-radius: 4px;
}
.message-time { font-size: .72rem; color: #9ca3af; margin-top: .25rem; padding: 0 .25rem; }
.message-system { text-align: center; font-size: .8rem; color: #9ca3af; padding: .25rem 0; }

/* Typing indicator v2 */
.typing-indicator-v2 {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-top: 1px solid #f3f4f6;
}
.typing-avatar { font-size: 1.5rem; }
.typing-dots { display: flex; gap: 4px; }
.typing-dots span {
    width: 8px; height: 8px; border-radius: 50%; background: var(--gh-green);
    animation: typingBounce .8s infinite ease;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.typing-label { font-size: .85rem; color: #6b7280; font-style: italic; }

/* Tutor banner */
.tutor-connected-banner {
    background: linear-gradient(90deg, #f0fdf4, #dcfce7);
    border-top: 2px solid var(--gh-green);
    padding: .6rem 1rem;
    display: flex; align-items: center; gap: .75rem;
    font-size: .9rem; font-weight: 600; color: var(--gh-green);
}
.tutor-connected-banner button { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1rem; }

/* Input area v2 */
.chat-input-area-v2 {
    border-top: 1px solid #e5e7eb;
    padding: .75rem 1rem;
    background: #fff;
}
.upload-preview {
    display: flex; align-items: center; gap: .5rem;
    background: var(--gh-green-lt); border: 1px solid var(--gh-green);
    border-radius: 8px; padding: .4rem .75rem; margin-bottom: .5rem;
    font-size: .85rem; font-weight: 600; color: var(--gh-green);
}
.clear-upload { background: none; border: none; cursor: pointer; font-size: 1rem; margin-left: auto; }
.drop-zone {
    border: 2px dashed var(--gh-green); border-radius: 10px;
    padding: 1rem; text-align: center; background: var(--gh-green-lt);
    color: var(--gh-green); font-weight: 600; margin-bottom: .5rem;
}
.chat-form-v2 { display: flex; flex-direction: column; }
.input-row { display: flex; align-items: flex-end; gap: .5rem; }
.input-icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #e5e7eb;
    background: #f9fafb; cursor: pointer; font-size: 1.15rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.input-icon-btn:hover { background: var(--gh-green-lt); border-color: var(--gh-green); }
.mic-btn.recording { background: #fee2e2; border-color: var(--gh-red); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(206,17,38,.3)} 50%{box-shadow:0 0 0 8px rgba(206,17,38,0)} }
.chat-textarea-v2 {
    flex: 1; border: 1.5px solid #e5e7eb; border-radius: 12px;
    padding: .6rem .85rem; font-size: .95rem; resize: none; font-family: inherit;
    max-height: 120px; transition: border .2s;
}
.chat-textarea-v2:focus { outline: none; border-color: var(--gh-green); }
.send-btn-v2 {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: var(--gh-green); color: #fff; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.send-btn-v2:hover:not(:disabled) { background: #005432; transform: scale(1.08); }
.send-btn-v2:disabled { background: #d1d5db; cursor: not-allowed; }
.input-footer { display: flex; align-items: center; gap: 1rem; margin-top: .35rem; }
.char-count  { font-size: .75rem; color: #9ca3af; }
.voice-status { font-size: .8rem; color: var(--gh-red); font-weight: 700; animation: pulse 1s infinite; }
.daily-quota { font-size: .75rem; color: #9ca3af; margin-left: auto; }

/* Celebration overlay */
.celebration-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 9999;
}
.confetti-burst { position: absolute; inset: 0; overflow: hidden; }
.confetti-dot {
    position: absolute; top: -10px; width: 10px; height: 10px; border-radius: 50%;
    animation: confettiFly 2.5s ease-out forwards;
}
@keyframes confettiFly {
    to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Quick prompts */
.quick-prompt-btn {
    display: block; width: 100%; text-align: left;
    padding: .4rem .6rem; background: var(--gh-green-lt); border: 1px solid #d1fae5;
    border-radius: 8px; font-size: .82rem; font-weight: 600; color: var(--gh-green);
    cursor: pointer; margin-bottom: .3rem; transition: background .15s; font-family: inherit;
}
.quick-prompt-btn:hover { background: #dcfce7; }

/* ── Tutor Dashboard ──────────────────────────────────────────────────────── */

.tutor-dashboard { padding: 1.5rem; max-width: 1400px; margin: 0 auto; }
.tutor-header {
    display: flex; align-items: center; gap: 1.5rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 1rem 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.tutor-status { display: flex; align-items: center; gap: .75rem; }
.status-indicator { width: 14px; height: 14px; border-radius: 50%; }
.status-indicator.online { background: #22c55e; box-shadow: 0 0 0 4px #bbf7d0; }
.status-indicator.offline { background: #9ca3af; }
.toggle-status-btn { background: none; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: .4rem .9rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.tutor-stats-mini { display: flex; gap: 1.5rem; margin-left: auto; }
.mini-stat { display: flex; flex-direction: column; align-items: center; }
.mini-stat strong { font-size: 1.2rem; font-weight: 800; }
.mini-stat small  { font-size: .75rem; color: #6b7280; }

.tutor-layout { display: grid; grid-template-columns: 280px 1fr 260px; gap: 1rem; margin-bottom: 1.5rem; height: 560px; }
.tutor-queue-panel, .tutor-chat-panel, .tutor-context-panel {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column;
}
.tutor-queue-panel h3, .tutor-chat-panel h3, .tutor-context-panel h4 { padding: .75rem 1rem; border-bottom: 1px solid #f3f4f6; font-weight: 800; margin: 0; }
#studentQueue { overflow-y: auto; flex: 1; }
.queue-card { padding: .75rem 1rem; border-bottom: 1px solid #f9fafb; }
.queue-card.new-student { animation: slideDown .3s ease; background: #f0fdf4; }
@keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.queue-student-info { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.student-avatar-mini { width: 32px; height: 32px; border-radius: 50%; background: var(--gh-gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.queue-wait, .queue-actions { font-size: .8rem; }

.tutor-chat-panel { position: relative; }
#activeChatArea { display: flex; flex-direction: column; height: 100%; }
.chat-student-header { padding: .6rem 1rem; background: var(--gh-green-lt); border-bottom: 1px solid #d1fae5; font-weight: 700; color: var(--gh-green); }
.tutor-chat-messages { flex: 1; overflow-y: auto; padding: 1rem; }
.tutor-input-area { padding: .75rem; border-top: 1px solid #f3f4f6; }
.tutor-input-actions { display: flex; gap: .5rem; margin-top: .4rem; }
.empty-queue { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 2rem; color: #9ca3af; }

.tutor-sessions-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; padding: .5rem .75rem; background: #f9fafb; font-weight: 700; border-bottom: 2px solid #e5e7eb; }
.data-table td { padding: .5rem .75rem; border-bottom: 1px solid #f3f4f6; }

/* ── Classroom ────────────────────────────────────────────────────────────── */

.classroom-page { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }
.classroom-start { display: flex; justify-content: center; align-items: center; min-height: 50vh; }
.classroom-start-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 2rem; max-width: 480px; width: 100%; }

.classroom-live-header {
    display: flex; align-items: center; gap: 1.5rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 1rem 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem;
}
.class-code-display {
    background: #f9fafb; border: 1.5px solid var(--gh-green);
    border-radius: 8px; padding: .4rem .8rem; font-size: .9rem; font-weight: 700;
    display: flex; align-items: center; gap: .5rem; color: #374151;
}
.class-code { font-size: 1.4rem; letter-spacing: .15em; font-weight: 900; color: var(--gh-green); }
.copy-btn { background: none; border: none; cursor: pointer; font-size: 1rem; }
.live-pill { background: var(--gh-red); color: #fff; padding: .25rem .6rem; border-radius: 20px; font-size: .8rem; font-weight: 800; animation: livePulse 1.5s infinite; }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.meta-pill { background: #f3f4f6; border-radius: 20px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; }

.classroom-layout { display: grid; grid-template-columns: 260px 1fr 220px; gap: 1rem; }
.classroom-controls, .classroom-feed, .classroom-participants {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem;
    max-height: 560px; overflow-y: auto;
}
.classroom-controls h4, .classroom-feed h4, .classroom-participants h4 { font-weight: 800; margin: 0 0 1rem; }
.control-section { margin-bottom: 1.25rem; }
.control-label { display: block; font-size: .85rem; font-weight: 700; color: #374151; margin-bottom: .4rem; }
.quiz-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .5rem 0; }

.feed-messages { display: flex; flex-direction: column; gap: .5rem; }
.feed-item {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: .5rem .75rem; border-radius: 8px; font-size: .88rem; gap: .5rem;
    background: #f9fafb; border: 1px solid #f3f4f6;
}
.feed-item.teacher-msg { background: #f0fdf4; border-color: #d1fae5; }
.feed-item.ai-msg      { background: #eff6ff; border-color: #bfdbfe; }
.feed-item.system-msg  { background: #fafafa; color: #6b7280; font-style: italic; }
.feed-item.result-msg  { background: #fefce8; border-color: #fde68a; }
.feed-item small       { color: #9ca3af; font-size: .72rem; flex-shrink: 0; }

.participant-chip {
    display: flex; align-items: center; gap: .5rem;
    padding: .4rem .6rem; background: #f9fafb; border-radius: 8px;
    font-size: .85rem; margin-bottom: .3rem;
}
.participant-chip > span:first-child {
    width: 24px; height: 24px; border-radius: 50%; background: var(--gh-gold);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800;
}

/* Student classroom */
.classroom-student-page { padding: 1.5rem; max-width: 900px; margin: 0 auto; }
.classroom-student-header { margin-bottom: 1rem; }
.classroom-student-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.classroom-main-feed { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.classroom-main-feed .feed-messages { max-height: 400px; overflow-y: auto; padding: 1rem; }
.live-quiz-panel { background: #fff; border: 2px solid var(--gh-gold); border-radius: 12px; padding: 1.25rem; }
.live-quiz-panel h4 { font-weight: 800; margin-bottom: 1rem; }
.quiz-submitted-msg { background: var(--gh-green-lt); border: 1px solid var(--gh-green); border-radius: 8px; padding: .75rem; text-align: center; font-weight: 700; color: var(--gh-green); }
.classroom-leave { margin-top: 1rem; }

/* ── Mind Maps ───────────────────────────────────────────────────────────── */

.mind-maps-page { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
.mindmap-generator { margin-bottom: 2rem; }
.mindmap-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.mindmap-form .form-control { flex: 1; min-width: 180px; }

.mindmap-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.mindmap-modal-inner {
    background: #fff; border-radius: 16px; max-width: 800px; width: 100%;
    max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
}
.mm-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; border-bottom: 1px solid #e5e7eb;
}
.mm-modal-header h3 { font-weight: 800; margin: 0; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #6b7280; }
.mm-canvas { flex: 1; overflow: auto; padding: 1rem; min-height: 450px; }
.mm-canvas svg { display: block; }

.maps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.map-card {
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
    padding: 1rem; cursor: pointer; transition: all .2s;
}
.map-card:hover { border-color: var(--gh-green); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,107,63,.15); }
.map-preview { min-height: 100px; }
.map-center-label { font-weight: 800; font-size: 1rem; text-align: center; color: var(--gh-green); margin-bottom: .5rem; }
.map-branches-preview { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.branch-mini { background: var(--gh-green-lt); color: var(--gh-green); font-size: .75rem; padding: .2rem .5rem; border-radius: 20px; font-weight: 600; }
.map-meta { text-align: center; margin-top: .5rem; font-size: .8rem; color: #9ca3af; }

/* ── Study Plan ──────────────────────────────────────────────────────────── */

.study-plan-page { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
.plan-week-label { font-size: 1rem; font-weight: 800; color: var(--gh-green); margin-bottom: 1rem; }
.plan-days-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 1rem; }
.plan-day-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.day-label { background: var(--gh-green); color: #fff; padding: .4rem .75rem; font-weight: 800; font-size: .9rem; }
.plan-subject-block { padding: .75rem; border-bottom: 1px solid #f3f4f6; }
.plan-subject-block:last-child { border-bottom: none; }
.subj-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.subj-header strong { font-size: .9rem; font-weight: 800; }
.duration-badge { background: var(--gh-green-lt); color: var(--gh-green); font-size: .72rem; font-weight: 700; padding: .15rem .4rem; border-radius: 6px; }
.topic-list { padding-left: 1.2rem; margin: .25rem 0; }
.topic-list li { font-size: .82rem; color: #374151; margin-bottom: .15rem; }
.plan-tip { background: #fefce8; border-left: 3px solid var(--gh-gold); padding: .3rem .5rem; font-size: .8rem; color: #713f12; margin-top: .3rem; border-radius: 0 4px 4px 0; }
.no-plan-msg { max-width: 400px; margin: 3rem auto; }
.plan-history { margin-top: 2rem; }
.plan-history h3 { font-weight: 800; margin-bottom: 1rem; }
.history-item { display: flex; align-items: center; justify-content: space-between; padding: .6rem .75rem; background: #f9fafb; border-radius: 8px; margin-bottom: .4rem; font-size: .9rem; }

/* ── Badges ──────────────────────────────────────────────────────────────── */

.badge { padding: .2rem .55rem; border-radius: 20px; font-size: .75rem; font-weight: 800; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red    { background: #fee2e2; color: #991b1b; }

/* ── Notification bell ───────────────────────────────────────────────────── */

.notif-bell-wrap { position: relative; cursor: pointer; }
.notif-bell-wrap .badge { position: absolute; top: -6px; right: -6px; padding: .1rem .35rem; font-size: .65rem; background: var(--gh-red); color: #fff; }

/* ── Toast ───────────────────────────────────────────────────────────────── */

.toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: #111827; color: #fff; padding: .6rem 1.25rem; border-radius: 24px;
    font-size: .9rem; font-weight: 600; z-index: 9999;
    animation: toastIn .25s ease;
}
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* ── Accessibility ───────────────────────────────────────────────────────── */

@media (prefers-contrast: high) {
    .message-assistant .message-bubble { border: 2px solid #000; }
    .avatar-panel { border-width: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .chat-sidebar-v2 { display: none; }
    .chat-page-v2 { height: calc(100vh - 64px); }
    .tutor-layout { grid-template-columns: 1fr; height: auto; }
    .classroom-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .avatar-panel { display: none; }
    .plan-days-grid { grid-template-columns: 1fr; }
}
