/* Shared workspace navigation; semantic controls opt in through .l2e-ui. */
.l2e-workspace { --ink:var(--l2e-text);--muted:var(--l2e-secondary);--paper:var(--l2e-surface);--surface:var(--l2e-canvas);--line:var(--l2e-border);--blue:var(--l2e-accent);font-family:var(--l2e-font); }
.l2e-workspace *, .l2e-workspace *::before, .l2e-workspace *::after { box-sizing:border-box; }
.l2e-workspace .sidebar { background:var(--l2e-surface)!important;border-color:var(--l2e-border)!important; }
.l2e-workspace .sidebar-brand,.l2e-workspace .sidebar-brand span { color:var(--l2e-accent)!important; }
.l2e-workspace .sidebar-link { color:var(--l2e-secondary)!important;min-height:44px; }
.l2e-workspace .sidebar-link:hover,.l2e-workspace .sidebar-link.active { background:var(--l2e-accent-soft)!important;color:var(--l2e-accent)!important;transform:none; }
.l2e-workspace .sidebar-link.active::before { background:var(--l2e-accent); }
.l2e-workspace .nav-kicker { color:var(--l2e-muted)!important;letter-spacing:.1em;margin-top:14px; }
.l2e-workspace .sidebar-foot { border-color:var(--l2e-border); }
.l2e-workspace .mobile-menu-toggle,.l2e-workspace .icon-btn { color:var(--l2e-text)!important;min-height:44px;min-width:44px; }
.l2e-workspace :focus-visible { outline:3px solid var(--l2e-focus)!important;outline-offset:3px; }
.l2e-workspace .app-shell { background:var(--l2e-canvas)!important; }
.l2e-workspace main.l2e-ui { color:var(--l2e-text)!important;max-width:1720px; }
.l2e-workspace .l2e-ui h1,.l2e-workspace .l2e-ui h2,.l2e-workspace .l2e-ui h3,.l2e-workspace .l2e-ui h4 { color:var(--l2e-text)!important;font-family:var(--l2e-font);line-height:1.25; }
.l2e-workspace .l2e-ui h1 { font-size:var(--l2e-title);font-weight:800; }
.l2e-workspace .l2e-ui h3 { font-size:1.15rem;margin:0 0 16px;font-weight:750; }
.l2e-workspace .l2e-ui h4 { margin:0 0 8px;font-weight:750; }
.l2e-workspace .l2e-ui p { line-height:1.6;overflow-wrap:anywhere; }
.l2e-workspace .l2e-ui a:not(.l2e-button):not(.activation-btn) { color:var(--l2e-accent)!important; }
.l2e-workspace .l2e-ui .page-sub,.l2e-workspace .l2e-muted { color:var(--l2e-secondary)!important; }
.l2e-workspace .l2e-ui button,.l2e-workspace .l2e-button { display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:10px 16px;border:1px solid var(--l2e-border);border-radius:var(--l2e-radius-sm);font:700 .9rem/1.4 var(--l2e-font);cursor:pointer;background:var(--l2e-accent)!important;color:var(--l2e-on-accent)!important;gap:8px;text-decoration:none;white-space:normal; }
.l2e-workspace .l2e-ui button:disabled { opacity:.65;cursor:wait; }
.l2e-workspace .l2e-button.secondary,.l2e-workspace .l2e-ui .profile-cancel-button,.l2e-workspace .l2e-ui .timetable-day-nav button,.l2e-workspace .l2e-ui .day-chip { background:var(--l2e-subtle)!important;color:var(--l2e-text)!important; }
.l2e-workspace .l2e-ui .timetable-day-nav button[aria-pressed="true"],.l2e-workspace .l2e-ui .day-chip.selected { background:var(--l2e-accent)!important;color:var(--l2e-on-accent)!important; }
.l2e-workspace .l2e-ui input:not([type="checkbox"]),.l2e-workspace .l2e-ui textarea { width:100%;min-height:44px;background:var(--l2e-surface)!important;color:var(--l2e-text)!important;border:1px solid var(--l2e-border);border-radius:var(--l2e-radius-sm);padding:12px;font:inherit; }
.l2e-workspace .l2e-card,.l2e-workspace .l2e-ui .card,.l2e-workspace .l2e-ui .stat-card,.l2e-workspace .l2e-ui .bg-white { background:var(--l2e-surface)!important;color:var(--l2e-text)!important;border:1px solid var(--l2e-border);border-radius:var(--l2e-radius-md);box-shadow:var(--l2e-shadow);padding:24px;min-width:0; }
.daily-workspace { margin:0 0 40px; }
.daily-heading { display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px; }
.daily-heading h2 { font-size:clamp(1.8rem,3vw,2.5rem);margin:8px 0;font-weight:800; }
.daily-grid { display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);gap:24px;align-items:start; }
.daily-secondary { display:grid;gap:20px; }
.daily-agenda { list-style:none;padding:0;margin:0 0 20px; }
.daily-agenda li { display:grid;grid-template-columns:95px minmax(0,1fr);gap:16px;padding:24px 0;border-top:1px solid var(--l2e-border); }
.daily-agenda p { margin:8px 0; }
.agenda-time { font-size:.85rem;font-weight:700;color:var(--l2e-secondary); }
.l2e-badge { display:inline-block;border-radius:20px;background:var(--l2e-accent-soft);color:var(--l2e-accent);font-size:.8rem;font-weight:750;padding:6px 10px; }
.coverage-number { font-size:2rem;font-weight:800;margin:8px 0; }
.l2e-workspace progress { width:100%;accent-color:var(--l2e-accent); }
.l2e-workspace .l2e-ui .focus-card { background:var(--l2e-accent-soft)!important; }
.l2e-workspace .l2e-ui .workspace-eyebrow,.l2e-workspace .l2e-ui .dashboard-eyebrow { color:var(--l2e-secondary)!important; }
.l2e-workspace .l2e-feedback { background:var(--l2e-warning-soft);color:var(--l2e-warning);padding:16px;border-radius:var(--l2e-radius-sm);margin-bottom:16px; }
.l2e-workspace .l2e-loading { color:var(--l2e-secondary);border-left:3px solid var(--l2e-accent);padding:12px; }
.secondary-heading { margin-top:40px;font-size:1.35rem; }
.l2e-workspace .l2e-ui .activation-banner { background:var(--l2e-accent-soft)!important;color:var(--l2e-text)!important; }
.l2e-workspace .l2e-ui .activation-banner p,.l2e-workspace .l2e-ui .discovery-item p { color:var(--l2e-secondary)!important; }
.l2e-workspace .l2e-ui .activation-btn { background:var(--l2e-accent)!important;color:var(--l2e-on-accent)!important; }
.l2e-workspace .l2e-ui .discovery-item,.l2e-workspace .l2e-ui .dashboard-next-grid a { background:var(--l2e-subtle)!important;border-color:var(--l2e-border)!important; }
.l2e-workspace .l2e-ui .timetable-day-nav { display:flex;flex-wrap:wrap;gap:8px;position:static; }
.l2e-workspace .l2e-ui .timetable-day-nav button { flex:1 0 44px; }
.l2e-workspace .l2e-ui .timetable-day-card { background:var(--l2e-surface)!important;border:1px solid var(--l2e-border);padding:20px;margin:0 0 16px;border-radius:var(--l2e-radius-md);min-width:0; }
.l2e-workspace .l2e-ui .timetable-day-card h3 { font-size:1rem; }
.l2e-workspace .l2e-ui .timetable-day-card .bg-gray-50 { background:var(--l2e-accent-soft)!important;padding:16px;border-radius:var(--l2e-radius-sm);margin-bottom:12px;overflow-wrap:anywhere; }
.l2e-workspace .l2e-ui .timetable-day-card .flex { display:flex;gap:8px;flex-wrap:wrap; }
.l2e-workspace .l2e-ui .timetable-day-card p { font-size:.9rem;color:var(--l2e-text)!important; }
.l2e-workspace .l2e-ui .timetable-day-card .bg-red-500 { background:var(--l2e-error-soft)!important;color:var(--l2e-error)!important; }
.l2e-workspace [data-workspace-dialog] { padding:20px;overflow-y:auto; }
.l2e-workspace [data-workspace-dialog] > div { max-height:90dvh;overflow-y:auto;background:var(--l2e-surface)!important;color:var(--l2e-text)!important; }
.l2e-workspace [data-workspace-dialog] input,.l2e-workspace [data-workspace-dialog] textarea { background:var(--l2e-surface)!important;color:var(--l2e-text)!important; }
.l2e-workspace [data-workspace-dialog] label,.l2e-workspace [data-workspace-dialog] p,.l2e-workspace [data-workspace-dialog] h2 { color:var(--l2e-text)!important; }
@media(min-width:1101px) { .l2e-workspace .l2e-ui .week-overview { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px; }.l2e-workspace .l2e-ui .week-overview .timetable-day-card { padding:12px; }.l2e-workspace .l2e-ui .week-overview .bg-gray-50 { padding:10px; }.l2e-workspace .l2e-ui .week-overview button { width:100%; }.l2e-workspace .l2e-ui .week-overview > :not(.timetable-day-card) { grid-column:1/-1; } }
@media(max-width:1100px) { .daily-grid { grid-template-columns:minmax(0,1fr); }.daily-secondary { grid-template-columns:repeat(2,minmax(0,1fr)); }.daily-secondary > :last-child { grid-column:1/-1; } }
@media(max-width:600px) { .l2e-workspace main.l2e-ui { padding:24px 16px 60px; }.daily-heading { align-items:start;flex-direction:column; }.daily-heading .l2e-button { width:100%; }.daily-secondary { grid-template-columns:minmax(0,1fr); }.l2e-workspace .l2e-card { padding:20px; }.daily-agenda li { grid-template-columns:minmax(0,1fr);gap:8px; }.l2e-workspace .sidebar-brand { font-size:19px; }.l2e-workspace [data-workspace-dialog] { padding:12px; } }
@media(prefers-reduced-motion:reduce) { .l2e-workspace * { scroll-behavior:auto!important;transition:none!important; } }
.l2e-workspace .logout-link { color:var(--l2e-error)!important;min-height:44px; }
.l2e-workspace .l2e-ui .timetable-day-card .text-gray-400 { color:var(--l2e-secondary)!important; }
.l2e-workspace .l2e-ui .timetable-day-card .text-green-600 { color:var(--l2e-accent)!important; }

/* Keep short daily plans compact instead of leaving a tall empty column. */
.daily-grid { grid-template-areas:"agenda session" "coverage focus";grid-template-columns:repeat(2,minmax(0,1fr)); }
.daily-grid > .l2e-card { grid-area:agenda; }
.daily-secondary { display:contents; }
.daily-secondary > :nth-child(1) { grid-area:session; }
.daily-secondary > :nth-child(2) { grid-area:coverage; }
.daily-secondary > :nth-child(3) { grid-area:focus; }
@media(max-width:700px) { .daily-grid { grid-template-columns:minmax(0,1fr);grid-template-areas:"agenda" "session" "coverage" "focus"; } }
/* Selected controls switch foreground and background together, preserving contrast. */
.l2e-workspace .l2e-ui .timetable-day-nav button,.l2e-workspace .l2e-ui .day-chip { transition:box-shadow var(--l2e-duration); }
.l2e-workspace .l2e-ui .reflection-mode-switch button { background:var(--l2e-subtle)!important;color:var(--l2e-text)!important;transition:box-shadow var(--l2e-duration); }
.l2e-workspace .l2e-ui .reflection-mode-switch button[aria-selected="true"] { background:var(--l2e-accent)!important;color:var(--l2e-on-accent)!important; }
@media(min-width:1101px) { .l2e-workspace .l2e-ui .week-overview .block-time { font-size:.8rem; } }
@media(min-width:1101px) { .l2e-workspace .l2e-ui .week-overview button { padding:8px 4px;font-size:.75rem;white-space:nowrap;word-break:normal;overflow-wrap:normal; } }
/* The reflection editor shares fields across both entry modes. */
.l2e-workspace #reflectionModal [hidden] { display:none!important; }
.l2e-workspace #reflectionModal .reflection-modal { background:var(--l2e-surface)!important;color:var(--l2e-text)!important;border-color:var(--l2e-border); }
.l2e-workspace #reflectionModal label { display:block;color:var(--l2e-text)!important;font-weight:700;margin:16px 0 8px; }
.l2e-workspace #reflectionModal .reflection-entry-hint,.l2e-workspace #reflectionModal .reflection-voice-intro,.l2e-workspace #reflectionModal .reflection-field-meta,.l2e-workspace #reflectionModal .reflection-modal-date { color:var(--l2e-secondary)!important;line-height:1.5; }
.l2e-workspace #reflectionModal .reflection-voice-status,.l2e-workspace #reflectionModal .reflection-voice-attached { color:var(--l2e-accent)!important; }
.l2e-workspace #reflectionModal .reflection-voice-status.is-error { color:var(--l2e-error)!important; }
.l2e-workspace #reflectionModal .reflection-voice-preview { background:var(--l2e-subtle)!important;border-color:var(--l2e-border); }
.l2e-workspace #reflectionModal #voiceRecordBtn { width:auto;height:auto;min-height:60px;border-radius:var(--l2e-radius-sm);font-size:1rem;box-shadow:none; }
.l2e-workspace #reflectionModal #voiceRecordBtn.is-recording { background:var(--l2e-error)!important;color:var(--l2e-surface)!important; }
.l2e-workspace #reflectionModal #voiceRecordBtn::before,.l2e-workspace #reflectionModal #voiceRecordBtn::after { display:none; }
.l2e-workspace #reflectionModal .reflection-scrubber { flex-wrap:wrap; }
.l2e-workspace #reflectionModal #voiceScrubber { flex:1 1 130px;width:auto;min-width:0;padding:0; }
.l2e-workspace #reflectionModal #cancelReflectionButton,.l2e-workspace #reflectionModal #voiceDelete { background:var(--l2e-subtle)!important;color:var(--l2e-text)!important; }
.l2e-workspace #reflectionAttachmentStatus { color:var(--l2e-secondary);font-size:.9rem;line-height:1.5; }
.l2e-workspace .l2e-ui [hidden] { display:none!important; }
.history-filters { display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;align-items:end;margin-bottom:20px; }
.history-filters label { display:block;font-weight:700;margin:0 0 8px; }
.l2e-workspace .history-filters select { min-height:44px;width:100%;border:1px solid var(--l2e-border);border-radius:var(--l2e-radius-sm);background:var(--l2e-surface);color:var(--l2e-text);padding:10px;font:inherit; }
.history-card { border-top:1px solid var(--l2e-border);padding:24px 0;overflow-wrap:anywhere; }
.l2e-workspace .l2e-ui .history-card h2 { font-size:1.3rem;margin:0 0 12px; }
.history-card p { white-space:pre-wrap; }
.history-card audio { display:block;width:100%;max-width:500px;min-height:54px; }
.history-date { color:var(--l2e-secondary); }.history-detached { background:var(--l2e-accent-soft);padding:12px;border-radius:10px;color:var(--l2e-accent); }
@media(max-width:700px) { .history-filters { grid-template-columns:minmax(0,1fr); } }
.l2e-workspace.workspace-dialog-open { overflow:hidden; }
.l2e-workspace #reflectionModal,.l2e-workspace #addModal { top:var(--l2e-visible-top,0px);bottom:auto;height:var(--l2e-visible-height,100dvh);padding:12px;overflow:hidden;align-items:center; }
.l2e-workspace #reflectionModal .reflection-modal,.l2e-workspace #addModal > div { display:flex;flex-direction:column;min-height:0;max-height:calc(var(--l2e-visible-height,100dvh) - 24px);padding:0;overflow:hidden;width:min(540px,100%);margin:0;border-radius:16px; }
.l2e-workspace .dialog-header { flex:none;padding:16px 20px 0; }
.l2e-workspace .dialog-header .reflection-mode-switch { margin:12px 0; }
.l2e-workspace .dialog-body { flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 20px 16px;scroll-padding:12px; }
.l2e-workspace .dialog-footer { flex:none;padding:12px 20px;display:grid;gap:8px;border-top:1px solid var(--l2e-border);background:var(--l2e-surface); }
.l2e-workspace .dialog-footer button { width:100%;margin:0!important; }
.l2e-workspace .dialog-footer .reflection-feedback { max-height:80px;overflow:auto;margin:0; }
.l2e-workspace #deleteBlockDialog { top:var(--l2e-visible-top,0px);bottom:auto;margin:12px auto;max-height:calc(var(--l2e-visible-height,100dvh) - 24px);overflow:auto; }
.l2e-workspace .heatmap-footer span { color:var(--l2e-secondary)!important; }
.l2e-workspace .l2e-ui #reflectionStreakSection p { color:var(--l2e-secondary)!important; }
.tutoring-filters { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:16px;margin:24px 0; }
.tutoring-filters label,.booking-dialog label,.booking-review-form label { display:block;font-weight:700;margin:0 0 8px; }
.l2e-workspace .l2e-ui select { min-height:44px;width:100%;padding:10px;border:1px solid var(--l2e-border);border-radius:10px;background:var(--l2e-surface);color:var(--l2e-text);font:inherit; }
.tutoring-checkbox { display:flex!important;gap:12px;align-items:center;min-height:44px; }.tutoring-checkbox input { width:22px;height:22px;accent-color:var(--l2e-accent); }
.tutor-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
.tutor-card,.session-card { padding:24px;border:1px solid var(--l2e-border);border-radius:16px;min-width:0;overflow-wrap:anywhere;margin:0 0 20px;background:var(--l2e-surface); }
.l2e-workspace .l2e-ui .tutor-card h2,.l2e-workspace .l2e-ui .session-card h2 { font-size:1.3rem;font-weight:750;margin:0 0 12px; }
.tutor-card p,.session-card p { margin:10px 0; }.tutor-card button { width:100%; }
.l2e-workspace .booking-dialog { width:min(560px,calc(100% - 24px));max-width:none;max-height:calc(var(--l2e-visible-height,100dvh) - 24px);top:var(--l2e-visible-top,0px);bottom:auto;margin:12px auto;padding:0;border:1px solid var(--l2e-border);border-radius:16px;background:var(--l2e-surface);color:var(--l2e-text);overflow:hidden; }
.booking-dialog[open] { display:flex;flex-direction:column; }.booking-dialog::backdrop { background:#0009; }.booking-dialog .dialog-header { display:flex;align-items:start;gap:12px;justify-content:space-between;padding-bottom:12px; }.booking-dialog h2 { margin:0; }.booking-dialog .dialog-header button { flex:none; }
.booking-dialog input,.booking-dialog select { margin-bottom:16px; }.booking-dialog #bookingError,.booking-dialog #bookingActionError { margin:0;color:var(--l2e-error);line-height:1.5; }
.booking-review { background:var(--l2e-subtle);padding:16px;border-radius:12px;margin-top:16px; }.booking-review dl { display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);gap:10px; }.booking-review dt { font-weight:700; }.booking-review dd { margin:0;overflow-wrap:anywhere; }
.session-status { display:inline-block;border:1px solid var(--l2e-border);border-radius:20px;padding:6px 12px;font-weight:750;margin:10px 0;background:var(--l2e-subtle);color:var(--l2e-text); }.status-pending { background:var(--l2e-warning-soft);color:var(--l2e-warning); }.status-confirmed,.status-completed { background:var(--l2e-accent-soft);color:var(--l2e-accent); }.status-no_show { background:var(--l2e-error-soft);color:var(--l2e-error); }
.session-actions { display:flex;flex-wrap:wrap;gap:10px; }.booking-feedback { min-height:24px;line-height:1.5; }.booking-feedback.is-error { color:var(--l2e-error); }
@media(max-width:700px) { .tutoring-filters,.tutor-grid { grid-template-columns:minmax(0,1fr); }.tutor-card,.session-card { padding:18px; }.booking-dialog .dialog-header,.booking-dialog .dialog-body,.booking-dialog .dialog-footer { padding-left:16px;padding-right:16px; } }
.l2e-workspace .l2e-ui p a { text-decoration:underline;text-underline-offset:3px; }

.session-card.session-selected{border:2px solid var(--l2e-accent);scroll-margin-top:24px}@media(max-width:860px){.session-card.session-selected{scroll-margin-top:100px}}
/* Legacy dashboard detail text follows the shared contrast-tested palette. */
.l2e-workspace .l2e-ui .dashboard-next-grid small,
.l2e-workspace .l2e-ui .profile-row-label { color:var(--l2e-secondary)!important; }
.l2e-workspace .l2e-ui .dashboard-next-grid span,
.l2e-workspace .l2e-ui .dashboard-next-grid b { color:var(--l2e-accent)!important; }
.l2e-workspace .l2e-ui .profile-rating { color:var(--l2e-warning)!important; }
