/* Chalk & Clover role workspaces. Real data and existing workflow controls. */
.hw-workspace, .role-workspace, .family-portal-shell, .student-shell, .platform-admin-shell {
  --rw-navy: #1b2320; --rw-primary: #135640; --rw-primary-dark: #0e4433;
  --rw-ink: #1b2320; --rw-muted: #5c6862; --rw-line: #e6e2d8;
  --rw-soft: #f3f1eb; --rw-gold: #b7791f; --rw-red: #b3402b; --rw-blue: #2a6f97;
  color: #1b2320;
}
.hw-workspace { display: grid; gap: 24px; max-width: 1200px; margin-inline: auto; }
.hw-workspace > * + *, .role-workspace > * + * { margin-top: 0; }
.hw-workspace [hidden], .platform-admin-shell [hidden] { display: none !important; }
.hw-heading, .rw-command-bar, .family-portal-shell .surface-head, .student-shell > .student-hero-panel, .platform-admin-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #1b2320;
  padding: 10px 0 0; overflow: visible;
}
.rw-command-bar::after, .student-hero-panel::after, .platform-admin-hero::after { display: none; }
.hw-heading h1, .rw-command-bar h1, .family-portal-shell h1, .student-shell .student-hero-panel h1, .platform-admin-hero h1 {
  margin: 4px 0 8px; font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: #1b2320;
}
.hw-heading p, .rw-command-bar .rw-subtitle, .family-portal-shell .surface-head p, .student-shell .student-hero-panel p, .platform-admin-hero p { color: #5c6862; margin: 0; }
.hw-eyebrow, .rw-eyebrow, .rw-command-bar .rw-eyebrow, .student-shell .eyebrow.light, .platform-admin-shell .eyebrow {
  font: 500 13px/1.5 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: #5c6862;
}
.hw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hw-actions .button, .hw-heading .button { white-space: nowrap; }
.hw-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e6e2d8; overflow-x: auto; }
.hw-tabs > a { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; min-height: 56px; padding: 12px 17px; border-bottom: 3px solid transparent; color: #5c6862; text-decoration: none; font-size: 15px; font-weight: 500; }
.hw-tabs > a[aria-selected="true"] { color: #135640; border-bottom-color: #135640; font-weight: 600; }
.hw-tabs > a:hover { background: #f3f1eb; }
.hw-tabs .material-symbols-rounded { font-size: 21px; }
.hw-badge { padding: 3px 7px; font-size: 13px; line-height: 1.2; background: #f3f1eb; border-radius: 6px; color: #47534d; }
.hw-tabs a[aria-selected="true"] .hw-badge { color: #135640; background: #e4efe9; }
.hw-panel { min-width: 0; }
.hw-panel > :first-child { margin-top: 0; }
.hw-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.hw-panel-head h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.03em; }
.hw-panel-head p { color: #5c6862; margin: 0; font-size: 14px; }
.hw-layout-toggle { display: flex; background: #f3f1eb; padding: 4px; border: 1px solid #e6e2d8; border-radius: 9px; }
.hw-layout-toggle button { padding: 8px 12px; min-height: 38px; border: 0; background: transparent; color: #5c6862; box-shadow: none; font-size: 13px; }
.hw-layout-toggle button[aria-pressed="true"] { background: white; color: #135640; box-shadow: 0 1px 2px #1b23200a; }
.hw-summary, .teacher-schedule-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 24px; }
.hw-summary > article, .teacher-schedule-summary > article, .rw-kpi, .platform-stat-grid > article { border: 1px solid #e6e2d8; border-radius: 14px; background: #fff; padding: 20px; box-shadow: 0 1px 2px #1b23200a; }
.hw-summary strong, .teacher-schedule-summary strong { font-size: 30px; font-weight: 700; line-height: 1.1; color: #1b2320; display: block; font-variant-numeric: tabular-nums; }
.hw-summary span, .teacher-schedule-summary span { display: block; margin-top: 8px; font-size: 14px; color: #47534d; }
.hw-summary small { display: block; color: #5c6862; margin-top: 6px; font-size: 13px; }
.hw-day-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.hw-needs-you, .hw-card, .hw-empty { border: 1px solid #e6e2d8; border-radius: 14px; background: #fff; padding: 22px; }
.hw-needs-you h2 { font-size: 20px; margin: 0 0 16px; }
.hw-priority { display: flex; align-items: center; gap: 12px; padding: 15px 0; color: #1b2320; text-decoration: none; border-top: 1px solid #e6e2d8; }
.hw-priority:first-of-type { border-top: 0; }
.hw-priority strong, .hw-priority small { display: block; }
.hw-priority strong { font-weight: 600; font-size: 15px; }
.hw-priority small { color: #5c6862; margin-top: 4px; font-size: 13px; }
.hw-icon { height: 40px; width: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: #e4efe9; color: #135640; }
.hw-icon.amber { background: #fbf0dc; color: #7a5210; }
.hw-icon.clay { background: #faeae5; color: #b3402b; }
.hw-icon.slate { background: #e8f1f7; color: #2a6f97; }
.hw-focus-card { background: #e4efe9; border: 1px solid #bbd3c6; border-radius: 16px; padding: 32px; margin-bottom: 24px; }
.hw-focus-card h2 { font-size: 30px; margin: 8px 0 12px; }
.hw-focus-card p { color: #47534d; max-width: 65ch; }
.hw-focus-card .hw-actions { margin-top: 24px; }
.hw-workspace .teacher-schedule-panel { margin: 0; }
.hw-workspace .teacher-schedule-panel-head { padding: 0; margin-bottom: 16px; }
.hw-workspace .teacher-schedule-panel-head h2 { font-size: 20px; }
.hw-workspace .teacher-schedule-day { gap: 0; }
.hw-workspace .teacher-schedule-occurrence { background: white; border: 0; border-bottom: 1px solid #e6e2d8; border-radius: 0; grid-template-columns: 72px minmax(0, 1fr); padding: 18px 0; }
.hw-workspace .teacher-schedule-occurrence.is-now { background: #e4efe9; border-left: 3px solid #135640; border-radius: 10px; padding-inline: 12px; }
.hw-workspace .teacher-schedule-time strong { font: 500 15px 'IBM Plex Mono', monospace; color: #47534d; }
.hw-workspace .teacher-schedule-time span { font: 400 13px 'IBM Plex Mono', monospace; color: #5c6862; }
.hw-workspace .teacher-schedule-occurrence > a > strong { color: #1b2320; font-size: 17px; }
.hw-workspace .teacher-schedule-status { background: #f3f1eb; color: #5c6862; font-size: 13px; }
.hw-workspace .teacher-schedule-occurrence.is-now .teacher-schedule-status { color: #135640; background: transparent; }
.hw-workspace .teacher-schedule-lower-grid { margin-top: 24px; }
.hw-workspace .teacher-register-panel { border: 1px solid #e6e2d8; }
.hw-workspace .role-register-list { gap: 0; max-height: none; overflow: visible; }
.hw-workspace .role-register-row { grid-template-columns: minmax(200px, 1fr) auto auto auto; border: 0; border-bottom: 1px solid #e6e2d8; border-radius: 0; padding: 14px 0; gap: 14px; }
.hw-workspace .role-register-learner { display: flex; align-items: center; gap: 12px; }
.hw-avatar { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; background: #f3f1eb; color: #47534d; border-radius: 50%; font-size: 13px; font-weight: 600; }
.hw-workspace .role-register-learner strong { font-weight: 600; font-size: 15px; }
.hw-workspace .role-register-learner small { font-size: 13px; }
.hw-workspace .role-register-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hw-attendance-options { display: flex; background: #f3f1eb; border-radius: 9px; padding: 4px; gap: 2px; }
.hw-attendance-options button { background: transparent; border: 0; color: #5c6862; min-height: 40px; padding: 8px 12px; font-size: 13px; font-weight: 500; box-shadow: none; }
.hw-attendance-options button[aria-pressed="true"] { font-weight: 600; }
.hw-attendance-options [data-status="present"][aria-pressed="true"] { color: #135640; background: #e4efe9; }
.hw-attendance-options [data-status="late"][aria-pressed="true"] { color: #7a5210; background: #fbf0dc; }
.hw-attendance-options [data-status="absent"][aria-pressed="true"] { color: #b3402b; background: #faeae5; }
.hw-attendance-more { position: relative; }
.hw-attendance-more summary { font-size: 13px; color: #5c6862; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.hw-attendance-more select { position: absolute; right: 0; top: 44px; z-index: 5; width: 180px; background: white; }
.hw-register-tally { border: 1px solid #bbd3c6; background: #e4efe9; color: #135640; border-radius: 10px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.hw-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.hw-card { color: #1b2320; text-decoration: none; display: block; }
.hw-card:hover { border-color: #a8cbba; }
.hw-card h3 { font-size: 19px; margin: 12px 0 8px; }
.hw-card p { color: #47534d; font-size: 14px; margin-bottom: 12px; }
.hw-card small { color: #5c6862; font-size: 13px; }
.hw-text-link { color: #135640; font-size: 14px; font-weight: 600; }
.hw-class-feed { padding: 18px 0; border-bottom: 1px solid #e6e2d8; }
.hw-class-feed p { margin: 12px 0 8px; }
.hw-class-feed small { color: #5c6862; }
.hw-surface:empty { display: none; }
.hw-surface[aria-busy="true"] { min-height: 90px; opacity: .6; }
.hw-surface > .workspace, .hw-surface > .student-shell { width: 100%; margin: 0; padding: 0; max-width: none; }
.hw-surface .reporting-page { display: block; }
.hw-surface .report-hero, .hw-surface .student-hero-panel, .hw-surface .course-hero { background: #f3f1eb; color: #1b2320; box-shadow: none; }
.hw-surface .student-hero-panel p, .hw-surface .course-hero p, .hw-surface .eyebrow.light { color: #47534d; }
.hw-learner-drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(820px, 95vw); max-width: 95vw; padding: 0; border: 0; border-left: 1px solid #e6e2d8; background: #fbfaf7; color: #1b2320; box-shadow: -10px 0 40px #1b232020; }
.hw-learner-drawer::backdrop { background: #1b232073; }
.hw-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; padding: 20px 24px; background: #fbfaf7; border-bottom: 1px solid #e6e2d8; z-index: 12; }
.hw-drawer-head h2 { margin: 0; font-size: 20px; }
.hw-drawer-content { padding: 24px; }
.hw-drawer-content .learner-overview-stats { grid-template-columns: repeat(3, 1fr); }
.hw-drawer-content .two-col { grid-template-columns: 1fr; }
.hw-drawer-content .role-anchor-tabs { position: static; }
.hw-drawer-content .student-hero-panel { padding: 20px; }
.hw-subject-progress { width: 100%; height: 6px; accent-color: #135640; grid-column: 1 / -1; margin-bottom: 12px; }
.rw-command-bar .rw-button.rw-secondary, .rw-button.rw-secondary { border-color: #d5cfc2; color: #47534d; background: #fff; }
.rw-button { font-weight: 600; font-size: 14px; border-radius: 10px; }
.rw-button.rw-secondary:hover { background: #f3f1eb; color: #135640; }
.rw-kpi strong { color: #1b2320; font-size: 30px; font-weight: 700; }
.rw-kpi span { color: #47534d; font-size: 14px; }
.rw-kpi small { font-size: 13px; }
.rw-kpi strong .hw-inline-number { display: inline; font-size: 16px; font-weight: 500; }
.rw-kpi.rw-attention strong { color: #7a5210; }
.rw-kpi.rw-critical strong { color: #b3402b; }
.rw-priority-feed { background: #fff; border-color: #e6e2d8; border-radius: 14px; padding: 24px; }
.rw-priority-feed .rw-row { border-color: #e6e2d8; padding-block: 16px; }
.rw-tag { font-size: 13px; line-height: 1.3; text-transform: none; font-weight: 500; padding: 4px 9px; }
.rw-tag.high, .rw-tag.critical, .rw-tag.overdue { background: #faeae5; color: #b3402b; }
.rw-tag.medium, .rw-tag.warning, .rw-tag.due { background: #fbf0dc; color: #7a5210; }
.rw-tag.low, .rw-tag.complete, .rw-tag.approved { background: #e4efe9; color: #135640; }
.rw-tag.info { background: #e8f1f7; color: #2a6f97; }
.rw-panel, .rw-section { padding: 24px; }
.rw-panel h2, .rw-section h2, .rw-priority-feed h2 { font-size: 20px; }
.rw-anchor-nav, .role-anchor-tabs, .student-quick-nav { position: static; background: transparent; border: 0; border-bottom: 1px solid #e6e2d8; border-radius: 0; box-shadow: none; padding: 0; gap: 6px; }
.rw-anchor-nav a, .role-anchor-tabs a, .student-quick-nav a { flex: 0 0 auto; background: transparent; border: 0; border-radius: 0; padding: 13px 16px; color: #5c6862; font-size: 14px; font-weight: 500; }
.rw-anchor-nav a:hover, .role-anchor-tabs a:hover, .student-quick-nav a:hover { color: #135640; background: #f3f1eb; }
.rw-accordion summary { font-weight: 600; font-size: 17px; padding: 20px 24px; }
.rw-accordion-body { padding: 24px; }
.rw-row strong { font-weight: 600; }
.rw-row small, .rw-meta, .rw-school-summary span { font-size: 13px; }
.rw-note { background: #e8f1f7; color: #2a6f97; border-left: 3px solid #2a6f97; border-radius: 9px; }
.family-portal-shell { max-width: 960px; margin-inline: auto; }
.family-daily-scan { border-top: 1px solid #e6e2d8; }
.family-scan-card { background: #fff; padding: 24px; border-radius: 14px; }
.family-scan-metrics > div { background: #f3f1eb; padding: 12px; }
.family-scan-metrics > div.needs-attention { background: #fbf0dc; color: #7a5210; }
.family-scan-metrics span, .family-scan-metrics small { font-size: 13px; opacity: 1; color: #5c6862; white-space: normal; overflow: visible; }
.family-scan-metrics strong { font-size: 20px; font-weight: 600; }
.family-scan-child { gap: 12px; }
.family-scan-child .hw-avatar { background: #e8f1f7; color: #2a6f97; width: 44px; height: 44px; flex-basis: 44px; }
.family-scan-child > div { flex: 1; }
.family-portal-shell .dashboard-launcher, .student-shell > .dashboard-launcher { display: none; }
.student-shell { max-width: 1060px; margin-inline: auto; }
.student-shell > .student-hero-panel .student-avatar { background: #f1e7f6; color: #7a4e93; border: 0; height: 56px; width: 56px; font-size: 20px; box-shadow: none; }
.student-shell > .student-hero-panel .button.secondary-on-dark { color: #47534d; background: white; border: 1px solid #d5cfc2; }
.student-shell > .student-hero-panel .hero-actions { margin-top: 18px; }
.student-shell > .student-stats { grid-template-columns: repeat(5, 1fr); margin: 24px 0; }
.student-shell .student-stats { grid-auto-flow: row; grid-auto-columns: auto; min-width: 0; max-width: 100%; }
.student-shell .student-stats > * { min-width: 0; }
.student-shell .student-stat::before { display: none; }
.student-shell .student-stat { border: 1px solid #e6e2d8; border-radius: 12px; box-shadow: none; background: #fff; padding: 18px; }
.student-shell .student-stat > strong { color: #1b2320; font-size: 26px; font-weight: 700; }
.student-shell .student-stat > span, .student-shell .student-stat > small { font-size: 13px; color: #5c6862; }
.hw-student-next { background: #f1e7f6; border: 1px solid #dccde4; border-radius: 16px; padding: 26px; margin-top: 24px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.hw-student-next h2 { font-size: 26px; margin: 8px 0; }
.hw-student-next p { color: #5c6862; margin: 0; }
.hw-student-next .hw-eyebrow { color: #7a4e93; }
.student-shell .improvement-panel { background: white; }
.student-shell .recommendation-card, .student-shell .assignment-card { background: white; border: 1px solid #e6e2d8; border-radius: 12px; box-shadow: none; }
.student-shell .recommendation-card:first-child { border-left: 3px solid #7a4e93; }
.student-shell .assignment-card.due { border-color: #efdcB5; }
.platform-admin-shell { display: block; }
.platform-admin-hero { margin-bottom: 26px; }
.platform-admin-hero .view-as-control { background: #f3f1eb; border: 1px solid #e6e2d8; color: #47534d; border-radius: 12px; padding: 16px; max-width: 630px; }
.platform-admin-hero .view-as-control strong, .platform-admin-hero .view-as-control small { color: #47534d; }
.hw-platform-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.hw-platform-layout .platform-tabs { display: grid; grid-template-columns: 1fr; gap: 5px; border: 0; background: #f3f1eb; padding: 12px; border-radius: 14px; position: sticky; top: 90px; margin: 0; }
.hw-platform-layout .platform-tabs a { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 9px; color: #47534d; font-size: 14px; font-weight: 500; background: transparent; min-height: 48px; padding: 12px; }
.hw-platform-layout .platform-tabs a[aria-current="page"] { background: #fff; color: #135640; font-weight: 600; }
.hw-platform-layout .platform-tabs a:hover { background: #fff; }
.hw-platform-content { min-width: 0; }
.hw-platform-content .platform-stat-grid { gap: 14px; margin-top: 0; }
.hw-platform-content .platform-admin-grid-wide { grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); }
.hw-platform-content .platform-record-card { background: white; border: 1px solid #e6e2d8; border-radius: 12px; box-shadow: none; padding: 20px; }
.hw-platform-content .platform-filter-bar { display: flex; flex-wrap: wrap; }
.hw-platform-content .platform-filter-bar label { min-width: 130px; flex: 1; }
.hw-platform-content .platform-record-main h3 { color: #1b2320; font-size: 17px; }
.hw-platform-content .platform-audit-entry { border-color: #e6e2d8; padding: 20px 0; }
.hw-workspace :focus-visible, .role-workspace :focus-visible, .family-portal-shell :focus-visible, .student-shell :focus-visible, .platform-admin-shell :focus-visible { outline: 2px solid #135640; outline-offset: 3px; }
@media (max-width: 1100px) {
  .hw-day-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .hw-platform-content .platform-admin-grid-wide { grid-template-columns: 1fr; }
  .hw-platform-layout { gap: 20px; grid-template-columns: 190px minmax(0, 1fr); }
  .platform-admin-hero { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 780px) {
  .family-portal-shell .button, .student-shell .button, .hw-workspace .button { min-height: 44px; }
  .hw-workspace { gap: 20px; }
  .hw-heading, .hw-panel-head, .hw-student-next { flex-direction: column; align-items: stretch; }
  .hw-heading h1, .rw-command-bar h1, .student-shell .student-hero-panel h1 { font-size: 28px; }
  .hw-day-grid, .hw-card-grid { grid-template-columns: 1fr; }
  .hw-needs-you { order: -1; }
  .hw-summary, .teacher-schedule-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hw-summary > article { padding: 14px; }
  .hw-summary strong { font-size: 24px; }
  .hw-workspace .role-register-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .hw-workspace .role-register-learner { grid-column: 1 / -1; }
  .hw-attendance-options { grid-column: 1; width: fit-content; }
  .hw-attendance-more { grid-column: 2; grid-row: 2; }
  .hw-workspace .role-register-row > a.button { justify-self: start; margin-top: 4px; }
  .hw-attendance-options button { min-height: 44px; }
  .hw-platform-layout { grid-template-columns: 1fr; }
  .hw-platform-layout .platform-tabs { display: flex; position: static; overflow-x: auto; }
  .hw-platform-layout .platform-tabs a { flex: 0 0 auto; }
  .family-portal-shell .panel { padding: 18px; }
  .family-scan-card { padding: 18px; }
  .family-scan-metrics { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .family-scan-metrics > div { padding: 10px; }
  .family-scan-child { flex-wrap: wrap; }
  .family-scan-child .role-chip { margin-left: 56px; }
  .student-shell > .student-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .student-shell > .student-stats .student-stat:last-child { grid-column: 1 / -1; }
  .student-layout { grid-template-columns: 1fr; }
  .hw-student-next .button { width: 100%; }
  .hw-drawer-content { padding: 16px; }
  .hw-drawer-content .learner-overview-stats { grid-template-columns: repeat(2, 1fr); }
  .rw-panel, .rw-section, .rw-priority-feed, .rw-accordion-body { padding: 20px; }
  .hw-focus-card { padding: 24px; }
}
@media (max-width: 480px) {
  .hw-tabs > a { padding: 12px 10px; font-size: 14px; }
  .hw-tabs .material-symbols-rounded { display: none; }
  .hw-summary strong { font-size: 22px; }
  .hw-summary span { font-size: 13px; }
  .hw-summary > article { padding: 12px; }
  .family-scan-metrics { grid-template-columns: 1fr; }
  .family-scan-metrics > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px; }
  .family-scan-metrics small { grid-column: 1 / -1; }
}
@media print { .hw-tabs, .hw-layout-toggle, .hw-platform-layout .platform-tabs { display: none; } .hw-platform-layout { display: block; } }
