@import url("/portal-assets/base.css");
:root {
  --navy: #0e1e32;
  --green: #32b561;
  --green-dark: #218447;
  --ink: #172b40;
  --muted: #7a8794;
  --border: #e7ecef;
  --bg: #f6f8fa;
  --white: #fff;
  --red: #c84e5b;
  --amber: #b57922;
  --blue: #477ab3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  background: var(--bg);
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.app {
  display: flex;
  min-height: 100vh;
}
#sidebar {
  width: 248px;
  background: var(--navy);
  position: fixed;
  inset: 0 auto 0 0;
  color: #bcc7d4;
  padding: 33px 20px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: block;
  margin: 0 22px 30px;
}
.brand img {
  width: 166px;
  display: block;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #7f90a6;
  padding: 0 15px;
  margin-bottom: 22px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  text-align: left;
  border-radius: 8px;
  font-size: 13px;
  position: relative;
}
nav button:hover {
  background: #ffffff09;
  color: white;
}
.finance-subnav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 28px;
}
.finance-subnav[hidden] { display: none; }
.finance-subnav button { padding: 9px 12px; font-size: 12px; }
.finance-subnav button.active:before { display: none; }
.finance-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding: 20px;
  margin-bottom: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.finance-filters label { margin: 0; min-width: 0; }
.finance-filters select, .finance-filters input { min-width: 0; width: 100%; }
.finance-filters .text-button { justify-self: start; }
.finance-amount { white-space: nowrap; }
.finance-work-context{display:grid;gap:4px;margin-top:7px;max-width:780px;overflow-wrap:anywhere}.finance-work-context>b{font-size:12px;color:var(--ink)}.finance-work-context small{display:block;white-space:normal;line-height:1.55;color:var(--muted,#718499)}.finance-recorded-at{font-size:10px}.finance-recording-note{margin:0 0 14px;line-height:1.6}
.finance-employee-balance { display: block; font-size: 19px; white-space: nowrap; }
.finance-low { color: #c84e5b; }
.finance-employees .actions { flex-wrap: wrap; }
.stats.finance-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.finance-stats .stat { min-width: 0; }
.finance-stats .stat-value { overflow-wrap: anywhere; }
@media(max-width: 760px) {
  .finance-filters { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .finance-employee-balance { font-size: 17px; }
}
nav button.active {
  background: #32b5611b;
  color: #65d38c;
}
nav button.active:before {
  position: absolute;
  content: "";
  width: 3px;
  height: 19px;
  border-radius: 5px;
  left: 0;
  background: var(--green);
}
nav .nav-count {
  margin-left: auto;
  border-radius: 5px;
  background: #ffffff12;
  font-size: 10px;
  padding: 1px 6px;
}
.nav-divider {
  height: 1px;
  background: #ffffff10;
  margin: 16px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.private-mark {
  font-size: 10px;
  color: #8594a8;
  margin: 14px 12px 23px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 7px;
}
.profile {
  width: 100%;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #ffffff12;
}
.profile b {
  font-size: 12px;
  color: #eef2f7;
}
.profile small {
  display: block;
  color: #7f90a6;
  font-size: 10px;
  margin-top: 2px;
}
.profile .avatar {
  background: #27415b;
  color: #d6e5ef;
}
.logout {
  font-size: 10px;
  color: #7f90a6;
  padding: 4px 12px;
}
.main-shell {
  margin-left: 248px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 78px;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  font-weight: 500;
  color: var(--ink);
}
.breadcrumb span {
  padding: 0 12px;
  color: #c5cdd4;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 21px;
}
.top-actions > span {
  font-size: 11px;
  color: var(--muted);
}
.avatar {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  background: #e8f4ed;
  color: #28814a;
  font-weight: 650;
  flex-shrink: 0;
}
.icon-button {
  padding: 5px;
  display: inline-flex;
  align-items: center;
  position: relative;
}
#bell.has-unread { color: var(--red); }
#bell.has-unread svg { stroke-width: 2.1; }
.mobile-menu {
  display: none;
}
#content {
  padding: 34px 38px 20px;
  max-width: 1720px;
  margin: 0 auto;
  min-height: calc(100vh - 145px);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 9px;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
  margin-bottom: 5px;
}
h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.muted {
  color: var(--muted);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-head p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.head-actions,
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.primary,
.secondary,
.danger {
  padding: 10px 17px;
  border-radius: 7px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 3px 5px #1c67330a;
}
.primary:hover {
  background: #29a455;
}
.secondary {
  border: 1px solid #dfe5e9;
  background: white;
  color: #526170;
}
.secondary:hover {
  border-color: #99b9a5;
  background: #f8fbf9;
}
.danger {
  background: #fbeaec;
  color: var(--red);
}
.small {
  font-size: 11px;
  padding: 6px 10px;
}
.text-button {
  font-size: 12px;
  color: var(--green-dark);
  padding: 5px 0;
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
}
.wide {
  width: 100%;
}
.hero {
  background: #e9f4ed;
  border: 1px solid #dcefe3;
  border-radius: 12px;
  padding: 24px 27px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.hero p {
  color: #6a8172;
  font-size: 12px;
  margin: 0;
  max-width: 650px;
}
.hero-symbol {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: white;
  border-radius: 18px;
  color: var(--green);
  flex-shrink: 0;
}
.hero-symbol svg {
  width: 30px;
  height: 30px;
}
.hero .text-button {
  margin-left: auto;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 20px 21px;
  position: relative;
}
.finance-balance {width:100%;max-width:380px;margin-bottom:24px}
.stat-label {
  font-size: 12px;
  color: #7c8895;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stat-icon {
  color: #a4afb9;
  background: #f7f9fa;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.stat-value {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 650;
}
.stat-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
}
.dashboard-stat {text-align:left;width:100%;transition:border-color .15s,box-shadow .15s}
.dashboard-stat:hover,.dashboard-stat:focus-visible {border-color:var(--green);box-shadow:0 3px 12px #163c2012}
.dashboard-stat .stat-value,.dashboard-stat .stat-note {display:block}
.dashboard-stat .stat-note>span {float:right;color:var(--green-dark);font-size:14px}
.dashboard-detail-total {display:flex;gap:20px;flex-wrap:wrap;align-items:baseline;margin:0 0 22px;color:var(--muted)}
.dashboard-detail-total strong {font-size:22px;color:var(--ink)}
.dashboard-detail-filters {display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-bottom:18px}
.dashboard-detail-filters .search {max-width:none;flex:2 1 280px}
.dashboard-detail-filters>label:not(.search) {flex:1 1 210px;min-width:0;max-width:100%;font-size:12px;color:var(--muted)}
.dashboard-detail-filters select {width:100%;margin-top:4px}
.dashboard-detail-count {padding:16px 20px;color:var(--muted);font-size:13px}
.dashboard-lessons {min-width:980px;table-layout:fixed}
.dashboard-lessons th:nth-child(1) {width:21%}.dashboard-lessons th:nth-child(2) {width:24%}
.dashboard-lessons th:nth-child(3) {width:17%}.dashboard-lessons th:nth-child(4) {width:16%}
.dashboard-lessons th:nth-child(5) {width:10%}.dashboard-lessons th:nth-child(6) {width:12%}
.dashboard-lessons td {white-space:normal;overflow-wrap:anywhere;vertical-align:top;font-size:13px}
.dashboard-lessons small {font-size:11px}.dashboard-task {text-align:left;padding:0}
.dashboard-task:hover b {color:var(--green-dark);text-decoration:underline}
.dashboard-pagination {display:flex;justify-content:center;align-items:center;gap:18px;padding:18px;border-top:1px solid var(--border)}
.green {
  color: var(--green-dark);
}
.red {
  color: var(--red);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 23px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.panel-head {
  padding: 22px 22px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.panel-body {
  padding: 0 22px 22px;
}
.panel + .panel {
  margin-top: 22px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 500;
  color: #8a96a1;
  background: #fbfcfd;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 18px;
}
td {
  padding: 17px 18px;
  border-bottom: 1px solid #eef1f4;
  font-size: 12px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfb;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
td b {
  font-weight: 600;
}
.course-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.course-icon {
  width: 35px;
  height: 39px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf5ee;
  color: #5a9a6b;
}
.course-icon.blue {
  background: #eef3fb;
  color: #7f9dbf;
}
.course-icon.amber {
  background: #f9f2e7;
  color: #bda373;
}
.course-icon.purple {
  background: #f2eefb;
  color: #9b8dbc;
}
.badge {
  font-size: 10px;
  border-radius: 5px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.assigned {
  background: #eef3f9;
  color: #6386ad;
}
.badge.review {
  background: #fff5e5;
  color: #b68a3c;
}
.badge.revision,
.badge.late {
  background: #fceef0;
  color: #c46470;
}
.badge.ready,
.badge.approved {
  background: #eaf7ef;
  color: #4a9d67;
}
.badge.neutral,
.badge.unreviewed {
  background: #f1f3f6;
  color: #778493;
}
.progress {
  height: 4px;
  background: #edf1ef;
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 3px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  color: #7b8790;
  font-size: 10px;
  margin-bottom: 6px;
}
.mini-task {
  padding: 15px 0;
  border-bottom: 1px solid #edf0f3;
  display: flex;
  gap: 11px;
}
.mini-task:last-child {
  border: 0;
}
.mini-task .check-circle {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #edf6ef;
  color: #67a77d;
  border-radius: 50%;
  flex-shrink: 0;
}
.mini-task b {
  font-size: 12px;
  font-weight: 600;
}
.mini-task p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.mini-task .badge {
  margin-top: 3px;
}
.dashed-button {
  border: 1px dashed #cad7cf;
  color: #739783;
  border-radius: 6px;
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  font-size: 11px;
}
.resource-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.resource-shortcut {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.resource-shortcut svg {
  color: #77a88b;
}
.resource-shortcut b {
  font-size: 11px;
}
.resource-shortcut small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.resource-shortcut .arrow {
  margin-left: auto;
  color: #8c9a94;
}
.activity-row {
  display: flex;
  gap: 11px;
  margin: 19px 0;
}
.activity-row .activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aac9b4;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-row p {
  font-size: 11px;
  margin: 0 0 4px;
}
.activity-row time {
  font-size: 10px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  max-width: 340px;
  flex: 1;
  color: #93a0ac;
}
.search input {
  border: 0;
  margin: 0;
  width: 100%;
  background: none;
  padding: 10px 0;
  font-size: 12px;
}
.search svg {
  width: 16px;
}
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}
.tabs button.active {
  background: #e6f2ea;
  color: #378558;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 23px;
}
.card p {
  font-size: 12px;
  color: var(--muted);
}
.card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.card h2 {
  font-size: 16px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: 20px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
  font-size: 13px;
}
.empty svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  display: block;
  color: #9fbda9;
}
.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 23px;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.lesson-row input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}
.lesson-row .badge {
  margin-left: auto;
}
.lesson-row .number {
  font-weight: 600;
  font-size: 12px;
}
.lesson-row small {
  font-size: 10px;
  color: var(--muted);
}
.lesson-actions {
  padding: 16px 0;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.file-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 8px 0;
  font-size: 11px;
}
.file-select input {
  margin: 0;
  width: auto;
}
.file-select a {
  margin-left: auto;
}
.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment b {
  font-size: 12px;
}
.comment small {
  margin-left: 9px;
  color: var(--muted);
  font-size: 10px;
}
.comment p {
  font-size: 12px;
  white-space: pre-wrap;
  margin: 8px 0 0;
}
.private-note {
  background: #fff8ea;
  padding: 14px;
  border-radius: 7px;
}
.richtext {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.richtext h2 {
  margin: 24px 0 10px;
}
.richtext a {
  color: var(--green-dark);
  text-decoration: underline;
}
.richtext img {
  max-width: 100%;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.calendar-day {
  min-height: 130px;
  background: white;
  padding: 12px;
  font-size: 11px;
}
.calendar-day.today {
  background: #f0f8f3;
}
.calendar-label {
  background: #f8faf9;
  padding: 11px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.calendar-event {
  background: #eaf3ed;
  color: #548365;
  display: block;
  border-left: 2px solid var(--green);
  margin: 8px 0;
  padding: 7px;
  border-radius: 3px;
  font-size: 10px;
  white-space: normal;
  text-align: left;
  width: 100%;
}
.notification {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 23px;
  border-bottom: 1px solid var(--border);
}
.notification.unread {
  background: #f6fbf8;
}
.notification h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.notification p {
  font-size: 13px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.notification time {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.setting-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.setting-line:last-child {
  border: 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 15px 0 6px;
}
label small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dfe5e9;
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  margin-top: 6px;
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #32b56140;
  border-color: var(--green);
}
textarea {
  min-height: 92px;
  resize: vertical;
}
label.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
}
label.checkbox input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.password-actions .secondary {
  padding: 8px 12px;
  font-size: 12px;
}
.password-actions button:disabled {
  cursor: default;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
.password-rules {
  line-height: 1.5;
}
.password-rules p {
  margin: 0;
}
.password-rules ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.alert {
  padding: 13px 15px;
  border-radius: 7px;
  background: #edf6f0;
  color: #508566;
  font-size: 12px;
  margin: 15px 0;
}
.alert.error {
  background: #fceff1;
  color: #b4505d;
}
.alert.warning {
  background: #fff7e7;
  color: #9a773c;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 13px;
  width: min(620px, calc(100vw - 30px));
  max-height: 90vh;
  box-shadow: 0 30px 80px #102a4330;
  color: var(--ink);
}
dialog::backdrop {
  background: #0e1e3270;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 27px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: 19px;
}
.modal-content {
  padding: 4px 27px 25px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 24px;
}
.modal-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
.check-list {
  max-height: 170px;
  overflow: auto;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-top: 6px;
}
.check-list label {
  margin: 9px 0;
}
.editor-toolbar {
  display: flex;
  gap: 5px;
  border: 1px solid var(--border);
  border-bottom: 0;
  padding: 6px;
  border-radius: 6px 6px 0 0;
  margin-top: 6px;
}
.editor-toolbar button {
  padding: 3px 9px;
  border-radius: 3px;
  background: #f2f5f3;
}
.editor {
  border: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  min-height: 210px;
  padding: 12px;
  outline-color: var(--green);
  font-size: 13px;
}
.editor p {
  margin: 4px 0;
}
.code {
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  background: #f4f6f8;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  font-family: Consolas, monospace;
  font-size: 12px;
}
#toasts {
  position: fixed;
  bottom: 23px;
  right: 25px;
  z-index: 100;
  max-width: 390px;
}
.toast {
  padding: 14px 20px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 8px 30px #10203030;
  font-size: 12px;
}
.toast.error {
  background: #a34451;
}
#upload-progress {
  position: fixed;
  bottom: 25px;
  left: 275px;
  width: 360px;
  background: white;
  box-shadow: 0 8px 40px #122c4530;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  z-index: 35;
}
#upload-progress b {
  font-size: 12px;
}
#upload-progress p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
footer {
  padding: 20px 38px;
  color: #9aa6b0;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
#demo-banner {
  font-size: 10px;
  background: #eaf3ed;
  color: #698974;
  padding: 7px 38px;
}
#demo-banner span {
  margin-left: 22px;
}
#demo-banner a {
  margin-left: 12px;
  text-decoration: underline;
}
.loading {
  padding: 100px;
  text-align: center;
  color: var(--muted);
}
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-story {
  background: var(--navy);
  color: white;
  padding: 50px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story > img {
  width: 180px;
}
.login-story h1 {
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: -1.8px;
  margin: 24px 0;
}
.login-story em {
  font-style: normal;
  color: #57ca80;
}
.login-story p {
  font-size: 15px;
  color: #92a4b8;
  line-height: 1.8;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 10px;
  color: #6ca780;
  font-weight: 600;
}
.story-footer {
  font-size: 11px;
  color: #73879d;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 45px;
}
.login-box {
  width: 100%;
  max-width: 355px;
}
.login-box h2 {
  font-size: 26px;
  letter-spacing: -0.6px;
  margin: 14px 0 9px;
}
.login-box > .muted {
  font-size: 12px;
  margin-bottom: 25px;
}
.login-box .primary {
  margin-top: 25px;
}
.login-box label {
  font-size: 11px;
  margin-top: 20px;
}
.login-note {
  font-size: 10px;
  color: #93a0ac;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 25px;
}
.demo-login {
  background: #f2f7f4;
  border-radius: 8px;
  padding: 16px;
  margin-top: 25px;
  font-size: 11px;
}
.demo-login p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 12px;
}
.demo-login a {
  margin-right: 13px;
  color: var(--green-dark);
}
.reset-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.reset-page .panel {
  width: 400px;
  max-width: 95%;
  padding: 30px;
}
.reset-logo {
  width: 160px;
  margin-bottom: 30px;
}
.drop-zone {
  border: 1px dashed #a7c8b3;
  background: #f5faf7;
  border-radius: 8px;
  text-align: center;
  padding: 30px;
  color: #649276;
  margin: 17px 0;
}
.drop-zone input {
  border: 0;
  background: none;
  font-size: 12px;
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.toolbar select {
  margin: 0;
  width: auto;
  font-size: 12px;
}
.month-title {
  min-width: 170px;
  text-align: center;
}
.truncate {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nowrap {
  white-space: nowrap;
}
.status-key {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
}
.status-key span:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
}
@media (min-width: 1600px) {
  #content {
    padding-top: 40px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .stat {
    padding: 24px;
  }
  .hero {
    padding: 30px;
  }
}
@media (max-width: 1200px) {
  #sidebar {
    width: 218px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main-shell {
    margin-left: 218px;
  }
  .topbar {
    padding: 0 25px;
  }
  #content {
    padding: 27px 25px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 275px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .resource-shortcuts {
    grid-template-columns: 1fr;
  }
  .hero-symbol {
    display: none;
  }
  .hero .text-button {
    display: none;
  }
  .stat {
    padding: 17px;
  }
  .split {
    grid-template-columns: 1fr 290px;
  }
  .file-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 980px) {
  .dashboard-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-icon {
    display: none;
  }
  .resource-shortcuts {
    grid-template-columns: repeat(3, 1fr);
  }
  .top-actions > span {
    display: none;
  }
  .calendar-day {
    min-height: 110px;
    padding: 7px;
  }
  .login-story {
    padding: 45px 35px;
  }
  .login-story h1 {
    font-size: 36px;
  }
}
@media (max-width: 740px) {
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  body.menu-open #sidebar {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax #0e1e3280;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
    gap: 12px;
  }
  .mobile-menu {
    display: flex;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 10px;
  }
  .top-actions {
    gap: 8px;
  }
  #content {
    padding: 24px 18px;
  }
  .page-head {
    align-items: flex-start;
    gap: 10px;
  }
  .page-head .head-actions .secondary {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 11px;
  }
  .primary,
  .secondary {
    font-size: 11px;
    padding: 9px 12px;
  }
  .hero {
    padding: 19px;
  }
  .hero h2 {
    font-size: 18px;
  }
  .hero p {
    font-size: 11px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-icon {
    display: grid;
  }
  .stat-value {
    font-size: 26px;
  }
  .stat-note {
    font-size: 9px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .grid,
  .settings-grid,
  .file-grid {
    grid-template-columns: 1fr;
  }
  .resource-shortcuts {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    min-width: 180px;
    max-width: none;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    font-size: 10px;
    padding: 7px 8px;
  }
  .panel-head {
    padding: 19px;
  }
  .panel-body {
    padding: 0 19px 19px;
  }
  .calendar-grid {
    overflow: auto;
    grid-template-columns: repeat(7, minmax(92px, 1fr));
  }
  .calendar-panel {
    overflow: auto;
  }
  .calendar-day {
    min-height: 115px;
  }
  .calendar-event {
    font-size: 9px;
  }
  .calendar-grid {
    min-width: 650px;
  }
  footer {
    padding: 18px;
    font-size: 9px;
  }
  footer span {
    max-width: 210px;
    text-align: right;
  }
  .login-page {
    display: block;
  }
  .login-story {
    padding: 25px;
  }
  .login-story > img {
    width: 140px;
  }
  .login-story > div,
  .story-footer {
    display: none;
  }
  .login-panel {
    padding: 35px 25px;
  }
  .login-box h2 {
    font-size: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-content {
    padding: 0 20px 20px;
  }
  #demo-banner {
    padding: 7px 18px;
    font-size: 9px;
  }
  #demo-banner span {
    display: none;
  }
  #upload-progress {
    left: 15px;
    right: 15px;
    width: auto;
  }
  .notification {
    padding: 15px;
  }
  .notification time {
    max-width: 65px;
    text-align: right;
  }
  .top-actions .avatar {
    width: 30px;
    height: 30px;
  }
}
/* Constrain grid children so wide tables scroll inside their panels. */
.dashboard-grid > div,
.split > div,
.panel,
.card {
  min-width: 0;
  max-width: 100%;
}
#nav {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #31465d transparent;
  flex-shrink: 1;
}
.sidebar-bottom {
  flex-shrink: 0;
}
.table-wrap {
  max-width: 100%;
}
@media (max-width: 980px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar-bottom .private-mark {
    display: none;
  }
  .sidebar-bottom {
    padding-top: 10px;
  }
}
@media (max-width: 740px) {
  #sidebar {
    visibility: hidden;
  }
  body.menu-open #sidebar {
    visibility: visible;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .page-head > div:first-child {
    max-width: 100%;
  }
  .calendar-panel {
    min-width: 0;
  }
  .modal-foot {
    flex-wrap: wrap;
  }
}
.drop-zone.dragging {
  border-color: var(--green);
  background: #eaf8ee;
}
.upload-queue {
  margin-top: 12px;
  max-height: 160px;
  overflow-y: auto;
}
.upload-queue summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}
.audit-detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-width: 420px;
}
.audit-line {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 2fr;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.audit-line b {
  font-weight: 500;
  color: var(--muted);
}

.owner-access-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; background: #fff3cf; border-bottom: 1px solid #e9d598; color: #57451c;
}
.owner-access-banner[hidden] { display: none; }
.owner-access-banner small { display: block; margin-top: 4px; }
.owner-access-banner .secondary { flex-shrink: 0; background: white; }
@media (max-width: 700px) {
  .owner-access-banner { align-items: flex-start; flex-direction: column; padding: 12px 16px; }
}

.teacher-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px;max-width:1040px}
.teacher-tool-card{background:white;border:1px solid var(--line,#dfe7ed);border-radius:14px;padding:28px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.teacher-tool-card h2,.teacher-tool-card p{margin:0}.teacher-tool-card p{color:#65798a;line-height:1.65;flex:1}.teacher-tool-card a{text-decoration:none;margin-top:12px}
.teacher-tool-mark{width:52px;height:52px;background:#e9f5ee;border-radius:12px;display:grid;place-items:center;font-size:32px;color:#188646}.teacher-tool-mark svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.5}
/* Compact file versions list; keep actions on one line so they do not stretch rows. */
.materials-table{table-layout:fixed;min-width:1260px}.materials-table th:nth-child(1){width:30%}.materials-table th:nth-child(2){width:19%}.materials-table th:nth-child(3){width:6%}.materials-table th:nth-child(4){width:13%}.materials-table th:nth-child(5){width:8%}.materials-table th:nth-child(6){width:24%}
.materials-table th{padding:10px 14px}.materials-table td{padding:8px 14px;vertical-align:middle;line-height:1.4}.materials-table .course-cell{gap:9px;min-width:0}.materials-table .course-icon{width:30px;height:32px;flex-shrink:0;border-radius:7px}.materials-table .course-icon svg{width:17px;height:17px}.materials-name{min-width:0;flex:1}.materials-name b,.materials-name small,.materials-folder{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.materials-name small{margin-top:2px}.materials-table .actions{flex-wrap:nowrap;gap:12px}.materials-table .actions>*{flex-shrink:0;min-height:32px}.materials-table .actions .small{padding:5px 8px}.materials-table .actions .text-button{font-size:11px;padding:5px 0}.materials-table td:nth-child(3),.materials-table td:nth-child(5){font-variant-numeric:tabular-nums}

.materials-author{display:block;overflow-wrap:anywhere}.materials-author small{display:block;margin-top:3px;color:var(--muted)}

.notification>button{flex:1;min-width:0}.notification>svg{flex-shrink:0}.notification time{flex-shrink:0;max-width:115px}

@media(max-width:650px){
 .notification{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:6px 12px;padding:16px}
 .notification>time{grid-column:2;margin:0;max-width:none}
 .notification>svg{margin-top:4px}
}
