/* Trackmedico forest workspace. Presentation only; all data and controls stay in their original modules. */
:root {
  --forest: #153f3b;
  --forest-deep: #103632;
  --forest-ink: #203a37;
  --forest-muted: #665f56;
  --forest-paper: #f5f3eb;
  --forest-panel: #fffefa;
  --forest-line: #d3dedd;
  --forest-mint: #bcede8;
  --workspace-rail: 248px;
  --teal: #27635d;
  --teal-dark: #194d48;
  --teal-light: #dff0ee;
  --teal-xdark: #153f3b;
  --green: #27635d;
  --green-soft: #e7f3f2;
  --danger: #a13950;
  --danger-soft: #faecef;
  --amber: #96631d;
  --amber-soft: #faf0d9;
  --text-primary: var(--forest-ink);
  --text-muted: var(--forest-muted);
  --text-light: #716b63;
  --ink: var(--forest-ink);
  --muted: var(--forest-muted);
  --stroke: var(--forest-line);
  --ivory: var(--forest-panel);
  --warm-gray: #e4eeed;
  --shadow-sm: 0 3px 12px rgb(30 55 53 / 5%);
}
body { background: var(--forest-paper); }
body::before { background: none; }
::selection { color: var(--forest-deep); background: var(--forest-mint); }
input, textarea { caret-color: var(--teal); }
input[type="checkbox"], input[type="radio"], progress { accent-color: var(--teal); }
:focus-visible { outline: 3px solid #40847d; outline-offset: 3px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { text-underline-offset: 3px; }
.student-metric-value, .student-metric-foot, .subject-mini-head strong,
.calendar-day, .student-today-time, .batch-review-counts dd { font-variant-numeric: tabular-nums; }

/* A recognisable green rail anchors every screen. */
.app-sidebar {
  background: var(--forest-deep);
  color: #e7f4f3;
  border: 0;
  padding: 30px 18px 22px;
  gap: 24px;
  scrollbar-color: #7c7367 var(--forest-deep);
  scrollbar-width: thin;
}
.sidebar-identity { padding: 0 8px 0; gap: 20px; border-bottom: 0; }
.sidebar-brand-block { gap: 12px; }
.sidebar-brand-block h1 { color: #fffdf2; font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.sidebar-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--forest-mint); color: var(--forest-deep); font-weight: 800; }
.sidebar-identity .user-chip { color: #c5d4d3; font-size: 12px; line-height: 1.6; }
.sidebar-navigation-kicker { display: none; }
.app-sidebar .tab-button { min-height: 46px; border-radius: 9px; color: #cedddc; padding: 11px 13px; font-size: 14px; }
.app-sidebar .tab-button svg { width: 19px; height: 19px; stroke-width: 1.7; }
.app-sidebar .tab-button.active { background: var(--forest-mint); color: var(--forest-deep); font-weight: 750; }
.app-sidebar .tab-button:hover:not(.active) { background: #234c48; color: #fffdf2; }
.app-sidebar .tab-button:focus-visible { outline-color: var(--forest-mint); }
.app-sidebar [data-view="profile"] { margin-top: 18px; }
.app-sidebar .developer-handle-global { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid #365b57; color: #bccfcd; font-size: 11px; }
.app-sidebar .developer-handle-global a { color: #c8ede9; }
.app-sidebar #batch-switcher { padding: 18px 8px; border-top: 1px solid #365b57; border-bottom: 1px solid #365b57; gap: 10px; }
.app-sidebar #batch-switcher label, .app-sidebar #batch-switcher label > span { color: #cee3e1; font-size: 12px; }
.app-sidebar #batch-switcher select { background: #234c48; color: #ebf7f6; border-color: #4a6b68; border-radius: 9px; padding: 10px 12px; color-scheme: dark; }
.app-sidebar #batch-switcher button { background: transparent; border-color: #4a6b68; color: #daedeb; font-size: 12px; border-radius: 9px; }
.app-sidebar #batch-switcher button:hover { background: #234c48; }
.app-sidebar #batch-switcher [role="alert"] { color: #ffccd7; font-size: 12px; }
.app-topbar { background: var(--forest-paper); border-bottom: 1px solid var(--forest-line); }
.app-topbar-inner { padding-inline: 36px; }
.app-topbar-title { font-size: 13px; font-weight: 650; color: var(--forest-muted); }
.app-brand-mark { background: var(--forest); color: #fffdf2; border-radius: 8px; }
.notification-button { background: var(--forest-panel); border-color: var(--forest-line); border-radius: 12px; }
.notification-button:hover { background: #dcedeb; }
.notification-panel { background: var(--forest-panel); border-color: var(--forest-line); border-radius: 14px; }

/* Paper-like work surfaces, with the content carrying the hierarchy. */
.view-stack { padding: 36px 40px 64px; max-width: 1280px; gap: 24px; }
.workspace-page-heading { align-items: center; gap: 20px; padding: 0 0 4px; }
.workspace-page-heading h1 { font-size: 30px; font-weight: 750; letter-spacing: -.035em; color: var(--forest); }
.workspace-page-heading p { max-width: 34ch; font-size: 13px; text-align: right; }
.section-heading h2, .home-workspace-section h2, .dashboard-surface-heading h2 { font-weight: 750; letter-spacing: -.02em; color: var(--forest); }
.view-panel input, .view-panel select, .view-panel textarea, .batch-dialog input, .batch-dialog select {
  background: var(--forest-panel); color: var(--forest-ink); border-color: #cbc6c0; border-radius: 8px; min-height: 44px;
}
input::placeholder, textarea::placeholder { color: #726c64; opacity: 1; }
.primary-button, .view-panel .primary-button { border-radius: 9px; background: var(--teal); color: #fff; box-shadow: none; }
.primary-button:hover:not(:disabled), .view-panel .primary-button:hover:not(:disabled) { background: var(--teal-dark); }
.ghost-button, .view-panel .ghost-button { background: var(--forest-panel); border-color: #c0d1cf; border-radius: 9px; }
.ghost-button:hover:not(:disabled) { background: #dfedec; }
.view-panel button, .batch-dialog button { transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out; }
.view-panel button:disabled, .batch-dialog button:disabled { cursor: not-allowed; }
.section-kicker { display: none; }
.student-home-date { display: block; }

/* Home reads as a daily desk: greeting, today's list, then the student's tools. */
.student-dashboard-shell { gap: 30px; }
.student-home-header { padding: 6px 0 28px; border-color: #c7d9d7; align-items: center; gap: 24px; }
.student-home-date { color: var(--forest-muted); font-size: 13px; margin-bottom: 10px; }
.student-home-intro h1 { font-size: 36px; font-weight: 750; letter-spacing: -.035em; color: var(--forest); }
.student-home-intro > p:last-child { font-size: 14px; line-height: 1.6; color: var(--forest-muted); max-width: 62ch; }
.student-home-period { background: #d9eae8; border: 0; border-radius: 12px; padding: 16px 20px; min-width: 200px; max-width: 300px; }
.student-home-period strong { font-size: 17px; font-weight: 750; color: var(--forest); overflow-wrap: anywhere; }
.student-period-label { color: #615a51; font-size: 12px; }
.student-home-period small { color: #615a51; }
.student-home-main-grid { gap: 28px; grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); border: 0; padding: 0; }
.view-panel .student-today-card { padding: 24px !important; background: var(--forest-panel); border: 1px solid var(--forest-line); border-radius: 14px; }
.view-panel .student-focus-card { padding: 24px !important; background: #dfedec; border: 0 !important; border-radius: 14px; align-self: start; }
.dashboard-surface-heading { margin-bottom: 12px; }
.dashboard-surface-heading h2, .home-workspace-section h2 { font-size: 18px; }
.dashboard-text-action { color: var(--teal-dark); font-weight: 650; }
.student-today-row { padding: 18px 0; grid-template-columns: 62px 8px minmax(0,1fr) auto; border-color: var(--forest-line); gap: 12px; }
.student-today-row:hover { background: #e9f3f2; }
.student-today-time { font-size: 12px; color: #5f5950; font-weight: 650; }
.student-today-details strong, .student-focus-row strong { font-size: 14px; font-weight: 700; }
.student-today-details small, .student-focus-row small { color: #655e54; font-size: 12px; }
.student-today-status { color: #635c52; background: #e4f0ef; border-radius: 5px; padding: 4px 7px; }
.student-focus-row { border-color: #bfd6d4; padding: 18px 0; }
.student-focus-row:hover { background: #d1e6e4; }
.student-focus-arrow { color: var(--forest-muted); }
.student-empty-state.compact { padding: 24px 0; }
.student-empty-state.compact > .lucide { color: #44706c; }
.student-empty-state.compact strong { font-size: 15px; font-weight: 700; }
.home-workspace-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin-top: 14px; border-top: 1px solid var(--forest-line); border-bottom: 1px solid var(--forest-line); }
.home-module-link { background: transparent; border: 0; border-radius: 0; padding: 22px 20px; min-height: 102px; }
.home-module-link:nth-child(even) { border-left: 1px solid var(--forest-line); }
.home-module-link:nth-child(n+3) { border-top: 1px solid var(--forest-line); }
.home-module-link:hover { background: #dfedec; }
.home-module-link strong { font-weight: 750; }
.module-symbol { width: 40px; height: 40px; border-radius: 10px; }
.attendance-symbol { background: #cbe8e5; color: #315451; }
.syllabus-symbol { background: #e1eae9; color: #386561; }
.work-symbol { background: #f1e5ca; color: #775426; }

/* Attendance is data-first: one connected summary and crisp subject sheets. */
.tracker-tab-toggle { gap: 8px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--forest-line); border-radius: 10px; background: #dfeceb; }
.tracker-tab-toggle .tracker-icon-button { border: 0; border-radius: 7px; min-height: 42px; height: 42px; padding: 9px 16px; color: #5f584f; }
.tracker-tab-toggle .tracker-icon-button.active { background: var(--forest-panel); color: var(--forest-deep); box-shadow: 0 2px 5px rgb(24 53 50 / 7%); font-weight: 750; }
.tracker-tab-toggle .tracker-icon-button:hover:not(.active) { background: #d3e5e3; }
.tracker-button-label { font-size: 13px; font-weight: 650; }
.month-controls { gap: 10px; }
.month-title { font-size: 16px; font-weight: 750; color: var(--forest); }
.month-nav-button { min-width: 40px; background: var(--forest-panel); border: 1px solid var(--forest-line); border-radius: 9px; }
.month-today-button { background: var(--forest-panel); border-color: var(--forest-line); border-radius: 9px; }
.student-home-metrics { gap: 0; padding: 0; background: var(--forest-panel); border: 1px solid var(--forest-line); border-radius: 14px; overflow: hidden; }
.student-metric-card, .student-metric-card.safe, .student-metric-card.risk, .student-metric-card.neutral { background: transparent; border: 0; border-radius: 0; padding: 24px; }
.student-metric-card + .student-metric-card { border-left: 1px solid var(--forest-line); }
.student-metric-card:last-child { padding-right: 24px; }
.student-metric-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.student-metric-topline > span:first-child { color: var(--forest); font-size: 14px; font-weight: 750; }
.student-metric-status { font-size: 11px; line-height: 1.5; color: #605950; }
.student-metric-card.risk .student-metric-status { color: #9a394e; }
.student-metric-value { font-size: 36px; line-height: 1.2; letter-spacing: -.035em; font-weight: 750; color: var(--forest); margin: 18px 0; }
.student-metric-progress { height: 5px; background: #dce8e7; border-radius: 3px; margin-bottom: 14px; }
.student-metric-progress span { background: var(--teal); }
.student-metric-card.risk .student-metric-progress span { background: #a13950; }
.student-metric-foot { font-size: 12px; color: var(--forest-muted); }
.student-subject-heading { margin-top: 4px; margin-bottom: 18px; }
.subject-dashboard-grid { gap: 20px; }
.subject-mini-card { background: var(--forest-panel); border: 1px solid var(--forest-line); border-radius: 14px; padding: 24px; }
.subject-mini-card:hover { box-shadow: none; }
.subject-card-heading { align-items: flex-start; gap: 12px; }
.subject-mini-card h3 { font-size: 16px; font-weight: 750; letter-spacing: -.02em; color: var(--forest); }
.subject-card-status { font-size: 11px; padding: 4px 8px; border-radius: 5px; font-weight: 650; white-space: normal; text-align: center; flex-shrink: 0; }
.subject-mini-card.risk .subject-card-status { background: #f7e7ea; color: #963c50; }
.subject-mini-card.safe .subject-card-status { background: #dcefed; color: #2c5b56; }
.subject-mini-row { margin-top: 18px; padding-top: 18px; border-color: var(--forest-line); }
.subject-mini-head { color: #605950; font-size: 13px; }
.subject-mini-head strong { color: var(--forest); font-size: 22px; font-weight: 750; }
.subject-progress { background: #dfeae9; height: 5px; }
.subject-mini-row.ok .subject-progress span { background: var(--teal); }
.subject-mini-row.bad .subject-progress span { background: var(--danger); }
.subject-compact-metric { color: #635c53; }
.fine-calc-button { border-radius: 6px; border: 1px solid #dab6be; color: #963c50; font-size: 12px; background: transparent; min-height: 36px; }
.fine-calc-button:hover { background: #f7e7ea; border-color: #c4939e; color: #832f41; }
.fine-calc-button:focus-visible { outline-color: #40847d; }
.snapshot-panel + .snapshot-panel { border-color: var(--forest-line); }
.calibration-round-card { background: var(--forest-panel); border: 1px solid var(--forest-line); border-radius: 14px; padding: 22px 24px; margin-top: 14px; }
.calibration-round-head h3 { color: var(--forest); font-weight: 750; }
.calibration-metric-row { border-color: var(--forest-line); }
.calibration-round-chip { border-radius: 5px; background: #dceeec; color: #2d5753; }

/* The same materials follow students into calendars and moderators into forms. */
.calendar-grid { gap: 7px; }
.calendar-weekdays span { color: #635c53; font-weight: 650; }
.calendar-day { border-color: var(--forest-line); border-radius: 10px; background: var(--forest-panel); box-shadow: none; }
.calendar-day:hover { background: #def0ee; border-color: #98b3b0; }
.calendar-day.today { border-color: var(--teal); background: #e3f3f1; color: var(--forest-ink); }
.calendar-day.today .day-number { color: var(--forest-ink); }
.calendar-day.selected, .calendar-day.today.selected { background: var(--forest); color: #fffdf2; border-color: var(--forest); }
.calendar-day.selected .day-number, .calendar-day.selected .day-count { color: #fffdf2; }
.calendar-day.other-month { opacity: .55; }
.detail-panel { padding-left: 28px !important; }
.session-card { background: var(--forest-panel); border-color: var(--forest-line); border-radius: 12px; }
.settings-group { background: transparent; border-color: var(--forest-line); }
.syllabus-release-state.empty-day { background: #dfedec; border-radius: 14px; color: var(--forest-ink); }
.owner-console-tabs, .batch-control-sections { border-color: #bed3d1; }
.owner-console-tabs button.active, .batch-control-sections button.active { color: var(--forest); border-color: var(--teal); font-weight: 750; }
.batch-dialog { background: var(--forest-panel); border: 0; border-radius: 16px; padding: 28px; box-shadow: 0 18px 60px rgb(16 54 50 / 18%); }
.batch-dialog::backdrop { background: rgb(12 35 33 / 46%); }
.batch-dialog h2 { color: var(--forest); font-weight: 750; letter-spacing: -.025em; }
.batch-dialog button { border-radius: 8px; background: #edf5f4; color: var(--forest-ink); }
.batch-dialog button[type="submit"], .batch-dialog [data-publish] { background: var(--teal); color: #fff; border-color: var(--teal); }
.batch-dialog button:hover:not(:disabled) { background: #d8eae8; }
.batch-dialog button[type="submit"]:hover:not(:disabled), .batch-dialog [data-publish]:hover:not(:disabled) { background: var(--teal-dark); }
.batch-readiness, .batch-application-success { background: #e4f3f2; border-color: #aecdca; border-radius: 12px; }
.batch-slot-block.is-parallel { border-left-width: 1px; border-color: #98bab7; }
.batch-slot-block > header, .batch-timetable-version, .batch-timetable-first { background: #e4f0ef; }
.batch-slot-block, .batch-group-setup, .batch-timetable-version, .batch-timetable-first { border-radius: 12px; }
.batch-review-counts div { border-radius: 8px; }
.batch-status-note { background: #dceeec; color: #2f5652; border-radius: 5px; }
.auth-scene, .approval-scene, .boot-scene { background: var(--forest-paper); }
.auth-panel, .approval-panel, .boot-panel { background: var(--forest-panel); border: 1px solid var(--forest-line); border-radius: 16px; }
.auth-panel { max-width: 500px; padding: 40px; }
.auth-hero-title { color: var(--forest); font-weight: 750; letter-spacing: -.035em; }
.auth-subtitle-line { text-transform: none; letter-spacing: 0; color: #5f5950; font-weight: 500; font-size: 13px; }
.auth-form input, .auth-form select { background: #fffefa; border-color: #cbc6c0; border-radius: 8px; }
.auth-form .primary-button { background: var(--teal); border-radius: 9px; }
.auth-form .primary-button:hover:not(:disabled) { background: var(--teal-dark); }
.auth-feature-list { color: #5f5950; }
.auth-submit { border-radius: 9px; }
.login-value-list li::before { content: ""; width: 16px; height: 16px; display: inline-block; background: var(--teal); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (max-width: 1199px) {
  .view-stack { padding: 30px 28px 64px; }
  .home-workspace-list { grid-template-columns: 1fr; }
  .home-module-link { padding: 18px 8px; min-height: 86px; }
  .home-module-link:nth-child(even) { border-left: 0; }
  .home-module-link + .home-module-link { border-top: 1px solid var(--forest-line); }
  .student-metric-card, .student-metric-card:last-child { padding: 22px; }
}
@media (max-width: 999px) {
  .app-topbar-inner { padding-inline: 20px; }
  .view-stack { padding-bottom: 112px; }
  .mobile-primary-nav { background: var(--forest-panel); border-top: 1px solid var(--forest-line); }
  .mobile-primary-nav button { color: #625b51; border-radius: 9px; }
  .mobile-primary-nav button.active { background: #daedeb; color: var(--forest-deep); }
  .app-sidebar { bottom: calc(68px + env(safe-area-inset-bottom)); }
  #app-root.sidebar-collapsed .app-sidebar { visibility: hidden; pointer-events: none; }
}
@media (max-width: 680px) {
  .view-stack { padding: 24px 18px 108px; gap: 20px; }
  .app-topbar-inner { padding-inline: 12px; }
  .workspace-page-heading { gap: 12px; align-items: flex-start; }
  .workspace-page-heading h1 { font-size: 27px; }
  .workspace-page-heading p { font-size: 12px; max-width: 20ch; overflow-wrap: anywhere; }
  .student-home-intro h1 { font-size: 30px; }
  .student-home-intro > p:last-child { font-size: 13px; }
  .student-home-header { padding-bottom: 22px; }
  .student-home-period { display: grid; gap: 3px; margin-top: 20px; padding: 14px 16px; max-width: none; min-width: 0; }
  .student-home-period .student-period-label { display: block; }
  .student-home-period strong { font-size: 15px; }
  .student-home-main-grid { grid-template-columns: 1fr; gap: 18px; padding: 0; }
  .view-panel .student-today-card, .view-panel .student-focus-card { padding: 20px !important; border-top: 0 !important; }
  .student-today-row { grid-template-columns: 52px 8px minmax(0,1fr); gap: 10px; }
  .student-today-status { grid-column: 3; justify-self: start; }
  .student-home-metrics { gap: 0; grid-template-columns: 1fr; }
  .student-metric-card, .student-metric-card:last-child { padding: 18px 20px; display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 16px; row-gap: 10px; align-items: center; }
  .student-metric-card + .student-metric-card { border-left: 0; border-top: 1px solid var(--forest-line); }
  .student-metric-topline { display: grid; gap: 3px; min-height: 0; }
  .student-metric-value { font-size: 30px; margin: 0; grid-column: 2; grid-row: 1; }
  .student-metric-progress { grid-column: 1 / -1; margin: 0; }
  .student-metric-foot { grid-column: 1 / -1; font-size: 12px; gap: 8px; justify-content: space-between; }
  .student-metric-foot span { width: auto; }
  .subject-dashboard-grid { grid-template-columns: 1fr; gap: 16px; }
  .subject-mini-card { padding: 20px; }
  .subject-mini-card h3 { font-size: 15px; }
  .subject-card-status { font-size: 10px; max-width: 100px; }
  .tracker-tab-toggle { width: 100%; gap: 2px; padding: 4px; }
  .tracker-tab-toggle .tracker-icon-button { padding: 8px 4px; gap: 5px; }
  .tracker-button-label { font-size: 11px; }
  .tracker-tab-toggle .tracker-icon-button svg { width: 15px; height: 15px; }
  .calibration-round-card { padding: 20px; }
  .calendar-grid { gap: 4px; }
  .calendar-day { border-radius: 8px; }
  .batch-dialog { padding: 20px; }
  .auth-panel { padding: 30px 24px; }
}
@media print {
  body { background: white; }
  .subject-mini-card, .student-home-metrics { background: white; }
}
