/* Task-first workspaces. Shared by learner, mentor, and administrator screens. */
:root {
  --canvas: #f5f7fa;
  --line: #dfe4eb;
  --muted: #596373;
  --ink: #202a39;
  --cream: #eef1f5;
  --shadow: 0 2px 8px rgba(25, 40, 60, .025);
}
body { background: var(--canvas); }
button, a, input, textarea, select { scroll-margin-top: 90px; }
h1, h2, h3, h4 { letter-spacing: -.025em; }
.shell { grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { width: 240px; padding: 25px 16px 18px; overflow-x: hidden; }
.sidebar .brand { margin-left: 10px; }
.sidebar-subtitle { margin: 10px 10px 25px; font-size: .75rem; letter-spacing: .04em; }
.sidebar-callout { display: none; }
.nav { gap: 5px; padding-bottom: 18px; }
.nav-group { display: flex; flex-direction: column; gap: 3px; margin-bottom: 13px; }
.nav-group-label, .nav-label { font-size: .75rem; letter-spacing: .06em; color: var(--muted); padding: 0 12px; margin: 6px 0; font-weight: 700; }
.nav-button { min-height: 44px; padding: 10px 12px; font-size: .9375rem; color: #4c5868; width: 100%; }
.nav-button.active { background: #fff0eb; color: #a73925; font-weight: 700; }
.nav-button.active:after { display: none; }
.nav-button:hover { background: #f1f4f8; }
.nav-button.active:hover { background: #ffe7dd; }
.user-panel { margin-top: auto; padding: 16px 4px 0; flex-shrink: 0; }
.user-panel > div:not(.avatar) { min-width: 0; flex: 1; }
.user-panel > .avatar, .user-panel > .icon-button { flex-shrink: 0; }
.user-panel .name { font-size: .875rem; max-width: 122px; }
.user-panel .role { font-size: .75rem; color: var(--muted); }
.user-panel .icon-button { min-width: 36px; min-height: 44px; }
.topbar { height: 66px; background: #fff; padding: 0 32px; }
.breadcrumbs, .breadcrumbs strong, .topbar-right .small { font-size: .875rem; color: var(--muted); }
.demo-badge { font-size: .75rem; background: #f1f4f8; color: #546276; }
.demo-badge:before { display: none; }
.main { max-width: 1380px; padding: 30px 32px 48px; }
.page-heading { align-items: center; gap: 16px; margin-bottom: 24px; }
.page-heading h1, .welcome-heading h1 { font-size: clamp(1.6rem, 2.3vw, 2rem); }
.page-heading p, .welcome-heading p { font-size: 1rem; line-height: 1.6; margin-top: 7px; color: var(--muted); }
.page-heading .date-label { display: none; }
.panel { padding: 24px; border-radius: 12px; }
.panel-title { align-items: flex-start; gap: 14px; }
.panel-title h2, .section-heading h2 { font-size: 1.25rem; }
.panel-title p, .panel-title .text-button { font-size: .875rem; }
.btn, .text-button, .ns-assistant-button, .ns-course-button { font-size: .9375rem; min-height: 44px; }
.btn-small { font-size: .875rem; min-height: 40px; }
.btn .icon { width: 18px; height: 18px; }
.small, small, .help, .field .help, .note, .meta, .course-meta, .progress-label,
.stat-top, .stat-bottom, .availability, .mentor-card .position, .request-item .meta,
.data-table .secondary, .table-caption, .recipient-detail, .recipient-row,
.ns-assistant-help, .tier-description p, .support-response p, .announcement-card .small { font-size: .875rem; color: var(--muted); }
.field label, .field-label, .filter label, .check-field { font-size: .875rem; color: var(--ink); }
.field input, .field select, .field textarea, .filter select { font-size: 1rem; min-height: 46px; border-color: #bec7d2; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #b94a36; }
.field-row { gap: 18px; }
.badge, .chip { font-size: .75rem; }
.empty { padding: 32px 22px; background: #f9fbfd; border-color: #cbd3de; }
.empty h3 { font-size: 1.125rem; }
.empty p { font-size: .9375rem; }
.empty .btn { margin-top: 5px; }
.stat-grid { gap: 16px; }
.stat-card { padding: 20px; }
.stat-value { font-size: 2rem; margin: 9px 0 5px; }
.stat-top .icon { color: #64748b; }
.chart-foot p, .metric-note, .chart-axis, .legend, .bar-label { font-size: .8125rem; color: var(--muted); }
.data-table th { font-size: .75rem; color: var(--muted); letter-spacing: .03em; }
.data-table td { font-size: .875rem; }
.footer-note { font-size: .75rem; color: var(--muted); padding-top: 25px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.quick-action { appearance: none; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 22px; min-height: 142px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.quick-action:hover { border-color: #b8c3d2; background: #fafcfe; text-decoration: none; }
.quick-action strong, .quick-action h3 { font-size: 1.0625rem; line-height: 1.45; }
.quick-action p, .quick-action span { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.quick-action > .icon { color: #b8402a; width: 24px; height: 24px; }
.quick-action.primary, .quick-action:first-child { border-color: #e7b8aa; background: #fff8f4; }
.quick-action.primary:hover, .quick-action:first-child:hover { background: #fff0e9; }
.setup-checklist { display: flex; flex-direction: column; gap: 0; margin: 18px 0 24px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.setup-checklist > .panel-title { padding: 20px 20px 0; }
.setup-step { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.setup-step:last-child { border-bottom: 0; }
.setup-step > div { flex: 1; min-width: 0; }
.setup-step h3, .setup-step strong { font-size: 1rem; }
.setup-step p { font-size: .875rem; color: var(--muted); margin-top: 4px; }
.step-status { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; border-radius: 8px; color: #64748b; background: #edf2f7; font-size: .8125rem; font-weight: 700; }
.step-status.complete, .setup-step.complete .step-status { background: #e8f4ee; color: #21674d; }
.task-list { display: grid; gap: 16px; margin: 18px 0 24px; }
.task-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-width: 0; }
.task-card h3 { font-size: 1.125rem; }
.task-card p { color: var(--muted); font-size: .9375rem; }
.task-card .row { flex-wrap: wrap; }
.mentor-account-panel { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #f5f8fc; }
.mentor-account-panel p { font-size: .875rem; margin-bottom: 12px; color: var(--muted); }
.mentor-account-panel code { overflow-wrap: anywhere; font-size: .875rem; }
.membership-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.membership-plan { display: flex; flex-direction: column; min-width: 0; border-top: 4px solid #d9e1eb; }
.membership-plan:nth-child(2) { border-top-color: #b7aad9; }
.membership-plan:nth-child(3) { border-top-color: #8cbba7; }
.membership-plan.current { border: 2px solid #327255; border-top-width: 4px; }
.membership-plan h2 { font-size: 1.5rem; margin: 14px 0 10px; }
.membership-plan p { font-size: 1rem; color: var(--muted); }
.membership-plan-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.membership-plan-price { font-size: 1.125rem; font-weight: 700; color: var(--ink); margin: 8px 0 16px; }
.membership-plan ul { padding-left: 20px; margin: 16px 0 24px; }
.membership-plan li { font-size: 1rem; line-height: 1.6; margin: 8px 0; }
.membership-plan-actions { margin-top: auto; padding-top: 12px; }
.membership-plan-actions .btn { width: 100%; }
@media (min-width: 701px) and (max-width: 1199px) {
  .membership-plans { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .membership-plans { grid-template-columns: 1fr; gap: 16px; }
}
.workspace-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.welcome-heading { margin-bottom: 24px; }
.mobile-menu-toggle, .nav-backdrop { display: none; }
.course-grid, .mentor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-card h2, .mentor-card h2 { font-size: 1.25rem; }
.course-card > p, .mentor-card .story { font-size: 1rem; }
.course-card .btn, .mentor-card .btn { font-size: .9375rem; }
.learning-item h3 { font-size: 1rem; }
.learning-item .meta { font-size: .875rem; margin-bottom: 8px; }
.learning-item .btn { font-size: .875rem; min-height: 44px; }
.lesson-link { font-size: .875rem; min-height: 48px; }
.lesson-nav > h3 { font-size: .8125rem; }
.coach p, .coach-response, .feedback-box { font-size: .9375rem; }
.match-reason { background: #f1f5fa; color: #48566a; font-size: .875rem; }
.match-reason strong { font-size: .75rem; color: #48566a; }
.note { background: #f1f5fa; border-color: #dbe3ee; color: #48566a; }
.modal { width: min(680px, 100%); max-height: calc(100dvh - 40px); overflow: auto; }
.modal-header h2 { font-size: 1.375rem; }
.modal-header .icon-button { min-width: 44px; min-height: 44px; }
.modal-actions { position: sticky; bottom: -24px; z-index: 2; background: #fff; padding: 16px 0 6px; border-top: 1px solid var(--line); }
.login-story { background: #edf2f8; gap: 28px; }
.login-story:before, .login-story:after { display: none; }
.login-story h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.login-story .intro { font-size: 1rem; color: #526074; }
.login-proof { background: #fff; box-shadow: none; border-color: #dce4ef; }
.login-proof h3 { font-size: 1rem; }
.login-proof p, .login-footer { font-size: .875rem; color: var(--muted); }
.login-panel { max-width: 440px; }
.login-panel > p { font-size: 1rem; }
.demo-notice { font-size: .875rem !important; color: var(--muted) !important; }
.form-foot, .form-error { font-size: .9375rem; }
.ns-assistant { background: #fff; border-color: var(--line); }
.ns-assistant-eyebrow { font-size: .75rem; }
.ns-assistant-heading h2 { font-size: 1.25rem; }
.ns-assistant-heading p { font-size: 1rem; }
.nr-page { color: var(--ink); }
.nr-heading h1 { font-size: clamp(1.6rem, 2.3vw, 2rem); letter-spacing: -.025em; }
.nr-eyebrow { display: none; }
.nr-heading p { color: var(--muted); }
.nr-metric, .nr-panel, .nr-paper { border-color: var(--line); border-radius: 12px; }
.nr-btn { min-height: 44px; }
.nr-metric small, .nr-page td small, .nr-help { font-size: .875rem; color: var(--muted); }
.nr-empty-action { padding: 0 24px 24px; text-align: center; }
.nr-page th { background: #f5f7fa; color: var(--muted); }
.nr-close { min-width: 44px; min-height: 44px; }
@media (min-width: 621px) {
  .quick-actions:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
  .main { padding-top: 36px; }
  .course-grid, .mentor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1120px) {
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { width: 218px; }
  .main { padding-left: 24px; padding-right: 24px; }
  .quick-actions { gap: 12px; }
  .quick-action { padding: 18px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 85vw); padding: 24px 16px; display: flex; transform: translateX(-100%); transition: transform .18s ease; z-index: 60; border-right: 1px solid var(--line); overflow-y: auto; }
  .sidebar-subtitle, .nav-label { display: block; }
  .sidebar-subtitle { margin: 12px 10px 24px; }
  .nav { flex-direction: column; overflow: visible; gap: 4px; margin: 0; padding-bottom: 20px; }
  .nav-button { font-size: .9375rem; min-height: 46px; gap: 12px; }
  .nav-button .icon { width: 20px; height: 20px; }
  .nav-group-label { margin-top: 6px; }
  .user-panel { position: static; border-top: 1px solid var(--line); margin-top: auto; padding: 18px 4px 0; }
  .user-panel .name, .user-panel .role { display: block; }
  .user-panel .avatar { width: 38px; height: 38px; font-size: .875rem; }
  .user-panel .icon-button { width: 40px; margin-left: auto; }
  .nav-open .sidebar { transform: translateX(0); }
  .nav-open .nav-backdrop { display: block; position: fixed; inset: 0; border: 0; border-radius: 0; background: #15233866; z-index: 55; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; background: #fff; border: 1px solid #cbd3de; border-radius: 8px; color: var(--ink); font-size: .875rem; font-weight: 700; flex-shrink: 0; }
  .topbar { position: sticky; top: 0; z-index: 30; height: 68px; padding: 0 20px; justify-content: space-between; }
  .topbar .breadcrumbs { display: flex; }
  .topbar-right { width: auto; gap: 8px; margin-left: auto; }
  .topbar-right > .avatar { display: none; }
  .main { padding: 24px 20px 40px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; }
  .page-heading p { font-size: 1rem; }
  .page-heading .btn { font-size: .9375rem; padding: 11px 16px; min-height: 44px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column, .equal-columns, .impact-grid { grid-template-columns: 1fr; }
  .quick-actions { gap: 12px; }
  .quick-action { padding: 18px; min-height: 132px; }
  .filter select { font-size: .9375rem; }
  .filterbar .btn { font-size: .875rem; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 16px; gap: 8px; }
  .topbar .breadcrumbs { display: none; }
  .topbar-right .small { font-size: .8125rem; }
  .main { padding: 22px 16px 36px; }
  .page-heading h1 { font-size: 1.625rem; }
  .page-heading > div { flex: 1 1 100%; }
  .quick-actions { grid-template-columns: 1fr; gap: 10px; }
  .quick-action { min-height: auto; padding: 18px; gap: 5px; }
  .quick-action > .icon { display: none; }
  .setup-step { padding: 16px; flex-wrap: wrap; gap: 10px; }
  .setup-step > div { flex: 1 1 calc(100% - 48px); }
  .setup-step > .btn { margin-left: 42px; }
  .panel, .task-card { padding: 20px; }
  .panel-title { flex-wrap: wrap; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.75rem; }
  .stat-top { font-size: .8125rem; }
  .stat-bottom { font-size: .75rem; }
  .stat-top .icon { display: none; }
  .course-grid, .mentor-grid { grid-template-columns: 1fr; }
  .learning-item { flex-wrap: wrap; }
  .learning-item .btn { margin-left: 52px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .course-layout { grid-template-columns: 1fr; }
  .lesson-nav { padding: 12px; }
  .lesson-link { min-height: 44px; font-size: .875rem; }
  .modal-backdrop { padding: 10px; }
  .modal { padding: 20px; max-height: calc(100dvh - 20px); }
  .modal-actions { bottom: -20px; }
  .login-story { padding: 24px; }
  .login-story h1 { font-size: 2rem; }
  .login-form-side { padding: 26px 24px; }
  .login-layout { display: block; }
  .login-proof, .login-footer { display: none; }
  .recipient-detail, .task-card, .mentor-account-panel, .support-summary { overflow-wrap: anywhere; }
}
