:root {
  --accent: #7447f7;
  --gold: #d8ff00;
  --navy: #23244f;
  --fanus-green: #31ef4d;
  --fanus-pink: #f73ca7;
  --fanus-cyan: #46cce7;
  --ink: #20213f;
  --muted: #73748f;
  --line: #e1def1;
  --paper: #f7f5ff;
  --panel: #ffffff;
  --danger: #b3261e;
  --modal-scale: 1;
}

.student-study-topbar {
  align-items: flex-start;
  gap: 16px;
}

.student-week-controls {
  margin-left: auto;
}

.student-week-controls button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.student-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.student-progress-card,
.student-subject-progress,
.student-week-program,
.student-resource-summary {
  border: 1px solid #ded8fb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(35, 28, 83, .06);
}

.student-progress-card {
  padding: 14px 16px;
  border-left: 5px solid #54d5eb;
}

.student-progress-card span {
  display: block;
  color: #767493;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.student-progress-card strong {
  display: block;
  margin-top: 5px;
  color: #202044;
  font-size: 1.55rem;
  line-height: 1;
}

.student-progress-card small {
  display: block;
  margin-top: 7px;
  color: #767493;
  font-weight: 800;
}

.student-progress-card.green {
  border-left-color: #2eed55;
}

.student-progress-card.purple {
  border-left-color: #7b2df2;
}

.student-progress-card.pink {
  border-left-color: #f7359f;
}

.student-subject-progress,
.student-week-program,
.student-resource-summary {
  padding: clamp(10px, 1vw, 16px);
}

.student-subject-progress {
  margin-bottom: 16px;
}

.student-subject-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.student-subject-list article,
.student-resource-card {
  border: 1px solid #ece8ff;
  border-radius: 10px;
  background: #fbfaff;
  padding: 12px;
}

.student-subject-list strong {
  display: block;
  color: #222246;
  font-size: .98rem;
}

.student-subject-list span,
.student-resource-card small {
  display: block;
  margin-top: 4px;
  color: #767493;
  font-size: .82rem;
  font-weight: 800;
}

.student-progress-bar {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeafc;
}

.student-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #54d5eb, #8d39f5);
}

.student-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.student-week-head h3 {
  margin: 0;
  color: #202044;
  font-size: 1.25rem;
}

.student-week-head p {
  margin: 4px 0 0;
  color: #767493;
  font-weight: 800;
}

.student-day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
}

.student-day-tab {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 76px;
  padding: 10px 11px;
  border: 1px solid #ded8fb;
  border-radius: 12px;
  background: #fbfaff;
  color: #202044;
  text-align: left;
  box-shadow: 0 8px 20px rgba(35, 28, 83, .04);
}

.student-day-tab.active {
  border-color: #7c4df4;
  background: linear-gradient(135deg, #7643f4, #9a46f8);
  color: #fff;
  box-shadow: 0 14px 28px rgba(116, 71, 247, .22);
}

.student-day-tab strong {
  display: block;
  font-size: clamp(.82rem, .95vw, 1rem);
  line-height: 1;
}

.student-day-tab span,
.student-day-tab small {
  color: #767493;
  font-weight: 900;
}

.student-day-tab span {
  font-size: clamp(.72rem, .78vw, .84rem);
}

.student-day-tab small {
  font-size: .72rem;
}

.student-day-tab.active span,
.student-day-tab.active small {
  color: rgba(255, 255, 255, .86);
}

.student-day-detail {
  border: 1px solid #e7e2fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fdfcff);
  padding: clamp(12px, 1.4vw, 18px);
}

.whatsapp-planner-grid {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.whatsapp-plan-form {
  align-self: start;
}

.whatsapp-plan-form textarea {
  min-height: 150px;
  resize: vertical;
}

.whatsapp-fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid #ded8fb;
  border-radius: 12px;
  background: #fbfaff;
}

.whatsapp-fieldset legend {
  padding: 0 8px;
  color: #39463d;
  font-weight: 900;
}

.whatsapp-check-grid,
.whatsapp-student-pick-list,
.whatsapp-due-list,
.whatsapp-delivery-list,
.whatsapp-plan-list {
  display: grid;
  gap: 10px;
}

.whatsapp-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.whatsapp-check-pill,
.whatsapp-student-option {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-width: 0;
  border: 1px solid #ded8fb;
  border-radius: 999px;
  background: #fff;
  color: #23244f;
  font-weight: 900;
  cursor: pointer;
}

.whatsapp-check-pill input[type="checkbox"],
.whatsapp-student-option input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  cursor: pointer;
}

.whatsapp-check-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  padding: 7px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-check-pill:has(input:checked) {
  border-color: transparent;
  background: linear-gradient(135deg, #31dff0, #7a3ff2);
  color: #fff;
  box-shadow: 0 8px 18px rgba(116, 71, 247, .18);
}

.whatsapp-student-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 9px 12px 9px 38px;
  border-radius: 11px;
}

.whatsapp-student-option span,
.whatsapp-student-option small {
  display: block;
  min-width: 0;
}

.whatsapp-student-option strong {
  display: block;
  font-size: .88rem;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.whatsapp-student-option small {
  margin-top: 3px;
  color: #73748f;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.whatsapp-student-option::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid #cfc7f6;
  border-radius: 5px;
  background: #fff;
  transform: translateY(-50%);
}

.whatsapp-student-option:has(input:checked) {
  border-color: #31dff0;
  background: linear-gradient(135deg, #f2feff, #f8f2ff);
  box-shadow: inset 4px 0 0 #31dff0;
}

.whatsapp-student-option:has(input:checked)::before {
  border-color: #7447f7;
  background: linear-gradient(135deg, #31dff0, #7447f7);
  box-shadow: inset 0 0 0 3px #fff;
}

.whatsapp-student-option.phone-missing {
  border-color: #f3d4cf;
  background: #fffafa;
}

.whatsapp-student-option.consent-missing {
  border-color: #f0d9a7;
  background: #fffaf0;
}

.whatsapp-consent-field {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #ded8fb;
  border-radius: 10px;
  background: #fbfaff;
  color: #39463d;
  font-weight: 900;
  line-height: 1.3;
}

.whatsapp-consent-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 1px 0 0;
}

.whatsapp-student-pick-list {
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.whatsapp-auto-settings {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #ded8fb;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #fbf8ff);
}

.whatsapp-auto-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.whatsapp-auto-head h3 {
  margin: 0;
}

.whatsapp-auto-head p {
  margin: 4px 0 0;
  color: #73748f;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
}

.whatsapp-auto-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #ded8fb;
  border-radius: 999px;
  background: #fff;
  color: #28398d;
  font-weight: 900;
  white-space: nowrap;
}

.whatsapp-auto-toggle input {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0;
}

.whatsapp-settings-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.whatsapp-settings-row label {
  display: grid;
  gap: 6px;
  color: #39463d;
  font-weight: 900;
}

.whatsapp-settings-row input,
.whatsapp-settings-row select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ded8fb;
  border-radius: 10px;
  background: #fff;
  color: #23244f;
  font-weight: 900;
}

.whatsapp-delivery-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #c9f3ea;
  border-radius: 10px;
  background: #f3fffb;
}

.whatsapp-delivery-card.failed {
  border-color: #ffc6bf;
  background: #fff6f4;
}

.whatsapp-delivery-card strong,
.whatsapp-delivery-card small {
  display: block;
}

.whatsapp-delivery-card small,
.whatsapp-delivery-card p {
  margin: 2px 0 0;
  color: #73748f;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 560px) {
  .whatsapp-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whatsapp-auto-head {
    flex-direction: column;
  }

  .whatsapp-settings-row {
    grid-template-columns: 1fr;
  }
}

.whatsapp-saved-head {
  margin-top: 18px;
}

.whatsapp-due-card,
.whatsapp-plan-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ded8fb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 28, 83, .05);
}

.whatsapp-due-card {
  border-left: 5px solid #31dff0;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
}

.whatsapp-due-card h4,
.whatsapp-plan-card h4,
.whatsapp-due-card p,
.whatsapp-plan-card p {
  margin: 0;
}

.whatsapp-due-card h4,
.whatsapp-plan-card h4 {
  color: #20213f;
  font-size: 1.05rem;
}

.whatsapp-due-card p,
.whatsapp-plan-card p {
  color: #39463d;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-wrap;
}

.whatsapp-due-card small,
.whatsapp-plan-card small {
  color: #73748f;
  font-weight: 800;
}

.whatsapp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.whatsapp-actions a.button,
.whatsapp-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #d8cdfb;
  border-radius: 10px;
  background: #f5f0ff;
  color: #29358c;
  font-weight: 900;
  text-decoration: none;
}

.whatsapp-actions a.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2ddc5a, #21c6e7);
  color: #fff;
}

.whatsapp-actions button.danger {
  border-color: #ffc5bd;
  background: #fff0ee;
  color: #b3261e;
}

.whatsapp-phone-missing {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff0ee;
  color: #b3261e;
  font-weight: 900;
}

.student-day-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e6e1fb;
}

.student-day-detail-head h4 {
  margin: 0;
  color: #202044;
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
}

.student-day-detail-head p {
  margin: 4px 0 0;
  color: #767493;
  font-weight: 850;
}

.student-day-detail-head small {
  padding: 6px 10px;
  border: 1px solid #ded8fb;
  border-radius: 999px;
  color: #24378f;
  background: #f2efff;
  font-weight: 950;
  white-space: nowrap;
}

.student-day-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
  gap: 12px;
}

.student-day-task-grid .student-study-task {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
}

.student-day-task-grid .student-task-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.student-day-task-grid .student-task-top time {
  white-space: nowrap;
}

.student-empty-day.large {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed #ded8fb;
  border-radius: 12px;
  background: #fbfaff;
  text-align: center;
}

.student-study-task {
  margin: 7px;
  padding: 7px;
  border: 1px solid #dcd7f5;
  border-radius: 8px;
  background: #fff;
}

.student-task-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}

.student-task-top b {
  max-width: 100%;
  color: #202044;
  font-size: clamp(.78rem, .78vw, 1rem);
  line-height: 1.08;
  overflow: visible;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.student-task-top time {
  color: #3b4a45;
  font-size: clamp(.68rem, .72vw, .82rem);
  font-weight: 900;
  line-height: 1.05;
  white-space: normal;
}

.student-study-task small {
  display: block;
  margin-top: 5px;
  color: #5e6b66;
  font-size: clamp(.66rem, .7vw, .75rem);
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.student-study-task p {
  margin: 6px 0 8px;
  color: #202044;
  font-size: clamp(.68rem, .72vw, .76rem);
  font-weight: 850;
  line-height: 1.22;
  overflow-wrap: break-word;
}
.student-task-blocks {
  display: grid;
  gap: 5px;
  margin: 6px 0 8px;
}
.student-task-blocks .study-task-block {
  padding: 7px 8px;
  font-size: .75rem;
}
.student-task-blocks .study-task-block > span {
  font-size: .66rem;
}
.student-task-blocks .study-task-block > em {
  font-size: .76rem;
}
.student-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.student-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  font-size: clamp(.66rem, .68vw, .76rem);
  font-weight: 950;
  text-decoration: none;
}
.student-video-link:hover { filter: brightness(1.04); }

.student-status-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 6px;
}

.student-status-buttons button {
  min-width: 0;
  min-height: 31px;
  border: 1px solid #d9d0ff;
  border-radius: 7px;
  background: #f7f4ff;
  color: #6542d8;
  font-size: clamp(.58rem, .62vw, .68rem);
  font-weight: 900;
  line-height: 1.05;
  overflow: visible;
  overflow-wrap: normal;
  padding: 3px 4px;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.student-status-buttons button:nth-child(3) {
  grid-column: auto;
}

.student-status-buttons button.active {
  border-color: #7c4df4;
  background: linear-gradient(90deg, #54d5eb, #8d39f5);
  color: #fff;
  box-shadow: 0 8px 18px rgba(116, 71, 247, .18);
}

.student-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.student-result-grid label {
  color: #767493;
  font-size: clamp(.58rem, .62vw, .68rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: normal;
  white-space: normal;
  word-break: normal;
}

.student-result-grid input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ded8fb;
  border-radius: 7px;
  color: #202044;
  font-size: clamp(.68rem, .72vw, .76rem);
  font-weight: 900;
  min-height: 31px;
  padding: 3px 5px;
}

.student-empty-day {
  margin: 14px 10px;
  color: #87849b;
  font-size: .82rem;
  font-weight: 800;
}

.student-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-resource-card {
  background: #fff;
}

.assigned-resource-card {
  position: relative;
  display: block;
  min-height: 138px;
  overflow: hidden;
}

.assigned-resource-card.is-open {
  grid-column: 1 / -1;
}

.assigned-resource-open {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 114px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.assigned-resource-open:hover,
.assigned-resource-open:focus-visible {
  background: #faf9ff;
}

.assigned-resource-cover {
  display: grid;
  min-height: 114px;
  place-items: center;
  border: 1px solid #ece8ff;
  border-radius: 8px;
  background: #f4fbf8;
}

.assigned-resource-cover img {
  width: 100%;
  height: 114px;
  object-fit: contain;
}

.assigned-resource-cover span {
  color: var(--accent);
  font-size: 30px;
}

.assigned-resource-body {
  min-width: 0;
  padding-right: 58px;
}

.assigned-resource-hint {
  display: block;
  margin-top: 8px;
  color: var(--accent) !important;
  font-size: .72rem !important;
  font-weight: 900;
  text-transform: none !important;
}

.resource-manual-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e7e2fb;
}

.resource-manual-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.resource-manual-panel > header strong,
.resource-manual-panel > header small {
  display: block;
}

.resource-manual-panel > header small {
  margin-top: 3px;
  color: #777590;
}

.resource-manual-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.resource-manual-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

.resource-manual-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #e6e0fb;
  border-radius: 9px;
  background: #fbfaff;
}

.resource-manual-row.is-complete {
  border-color: #83dca3;
  background: #eaf9ef;
}

.resource-manual-row input {
  width: 20px;
  height: 20px;
  accent-color: #22a75a;
}

.resource-manual-copy,
.resource-manual-copy b,
.resource-manual-copy small {
  display: block;
  min-width: 0;
}

.resource-manual-copy b {
  color: #252348;
  font-size: .86rem;
}

.resource-manual-copy small {
  margin-top: 3px;
  color: #777590;
  font-size: .72rem;
}

.resource-manual-row em {
  color: #777590;
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.resource-manual-row.is-complete em {
  color: #187a3d;
}

.resource-manual-state {
  display: grid !important;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff !important;
  background: #b8b4ca;
  font-size: .8rem !important;
}

.resource-manual-row.is-complete .resource-manual-state {
  background: #22a75a;
}

.resource-percent {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 46px;
  padding: 7px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #54d5eb, #7447f7);
  font-size: .82rem;
  text-align: center;
}

.resource-assign-panel form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  min-width: min(520px, 100%);
}

.resource-assign-panel {
  flex-wrap: wrap;
}

.resource-assign-panel > div {
  min-width: min(320px, 100%);
}

.resource-assign-panel form select,
.resource-assign-panel form button {
  min-width: 0;
}

.student-resource-card span {
  color: #767493;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.student-resource-card strong {
  display: block;
  margin-top: 5px;
  color: #202044;
  font-size: 1.05rem;
}

@media (max-width: 1200px) {
  .student-day-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .student-progress-grid,
  .student-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-assign-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-assign-panel form {
    width: 100%;
  }
}

@container workspace (max-width: 1120px) {
  .student-day-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .student-day-task-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@container workspace (min-width: 1121px) {
  .student-week-program {
    padding: 10px;
  }

  .student-week-head {
    margin-bottom: 10px;
  }

  .student-week-head h3 {
    font-size: clamp(1rem, 1.45vw, 1.25rem);
  }

  .student-week-head p {
    font-size: clamp(.78rem, 1vw, 1rem);
  }

  .student-day-tab strong {
    font-size: clamp(.78rem, .82vw, .95rem);
  }

  .student-day-tab span {
    font-size: clamp(.68rem, .72vw, .78rem);
  }
}

@container (max-width: 145px) {
  .student-status-buttons {
    grid-template-columns: 1fr;
  }

  .student-status-buttons button:nth-child(3) {
    grid-column: auto;
  }

  .student-status-buttons button {
    min-height: 28px;
  }
}

@media (max-width: 720px) {
  .student-day-tabs,
  .student-progress-grid,
  .student-subject-list,
  .student-resource-grid {
    grid-template-columns: 1fr;
  }

  .student-day-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-day-task-grid {
    grid-template-columns: 1fr;
  }

  .student-week-controls {
    width: 100%;
  }
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body { max-width: 100%; margin: 0; overflow-x: hidden; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f4f3ff; }
img, video, canvas, svg { max-width: 100%; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { min-height: 40px; border: 0; border-radius: 9px; color: #fff; background: var(--accent); cursor: pointer; font-weight: 700; padding: 0 14px; }
button:hover { filter: brightness(.96); }
button:disabled { cursor: not-allowed; opacity: .45; filter: none; }
input, select, textarea { width: 100%; min-height: 40px; border: 1px solid #d7d2ee; border-radius: 9px; color: var(--ink); background: #fff; padding: 9px 10px; }
textarea { resize: vertical; }
label { display: grid; gap: 6px; color: #37463d; font-size: 13px; font-weight: 700; }
h1, h2, h3, h4, p { margin: 0; }
.hidden { display: none !important; }
.ghost { color: var(--accent); background: #f3efff; border: 1px solid #dcd4fb; }
.danger { color: var(--danger); background: #fff0ee; border-color: #f3c6c1; }
.compact-button { min-height: 34px; }

.login-screen { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(360px, .95fr); place-items: stretch; overflow-x: hidden; overflow-y: auto; padding: 0; background: #f7f5ff; scroll-behavior: smooth; }
.login-landing-nav { position: absolute; z-index: 4; top: 26px; left: clamp(28px, 5vw, 76px); display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 56px); padding: 8px; overflow-x: auto; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.14); box-shadow: 0 18px 44px rgba(27, 22, 79, .12); backdrop-filter: blur(16px); }
.login-landing-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 8px 14px; border: 0; border-radius: 999px; color: #fff; background: transparent; font-size: 13px; font-weight: 900; text-decoration: none; cursor: pointer; }
.login-landing-nav a:hover { background: rgba(255,255,255,.16); }
.login-hero { position: relative; display: grid; align-content: space-between; gap: clamp(18px, 3vh, 32px); min-height: 100vh; overflow: hidden; padding: clamp(34px, 5vw, 70px); color: #fff; background: linear-gradient(150deg, #5525e9 0%, #823cf8 42%, #f237a9 100%); }
.login-hero::before, .login-hero::after { content: ""; position: absolute; pointer-events: none; opacity: .22; }
.login-hero::before { width: 58%; height: 34%; right: -12%; top: 0; background: #50d7e9; transform: skew(-18deg) rotate(8deg); }
.login-hero::after { width: 42%; height: 30%; left: -18%; bottom: -5%; background: #5ae6f0; transform: skew(-18deg) rotate(8deg); }
.login-hero-brand-logo { position: absolute; z-index: 2; top: clamp(28px, 4.6vw, 58px); right: clamp(54px, 8vw, 118px); width: clamp(102px, 8.8vw, 138px); height: auto; object-fit: contain; mix-blend-mode: normal; filter: drop-shadow(0 16px 34px rgba(27, 22, 79, .12)); }
.login-hero-copy { position: relative; z-index: 1; display: grid; gap: clamp(14px, 2vh, 20px); max-width: 590px; margin-top: clamp(100px, 16vh, 150px); }
.login-hero-copy span, .login-eyebrow { color: #ff4fb0; font-size: 13px; font-weight: 900; letter-spacing: 3px; }
.login-hero-copy span { color: var(--gold); }
.login-hero-copy h1 { max-width: 620px; color: #fff; font-size: clamp(42px, 4.6vw, 64px); line-height: 1.06; }
.login-hero-copy p { max-width: 560px; color: rgba(255,255,255,.88); font-size: clamp(18px, 1.55vw, 23px); line-height: 1.35; }
.login-color-strip { position: relative; z-index: 1; display: flex; width: min(560px, 100%); height: 18px; overflow: hidden; border-radius: 999px; }
.login-color-strip i { flex: 1; }
.login-color-strip i:nth-child(1) { background: #49cde8; }
.login-color-strip i:nth-child(2) { background: #31ef4d; }
.login-color-strip i:nth-child(3) { background: #fff24a; }
.login-color-strip i:nth-child(4) { background: #ff9dd0; }
.login-color-strip i:nth-child(5) { background: #ff7815; }
.login-color-strip i:nth-child(6) { background: #b6ff00; }
.login-color-strip i:nth-child(7) { background: #3a91ef; }
.login-color-strip i:nth-child(8) { background: #762cf4; }
.login-hero-credit { position: relative; z-index: 1; margin-top: -18px; color: rgba(255,255,255,.76); font-size: clamp(12px, .95vw, 15px); font-weight: 400; letter-spacing: .12px; }
.login-box { align-self: center; justify-self: center; width: min(78%, 540px); display: grid; gap: 16px; padding: 28px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.login-box h1 { color: var(--navy); font-size: clamp(38px, 4vw, 58px); line-height: 1.05; }
.login-box h2 { display: none; }
.login-subtitle { color: var(--muted); font-size: 20px; line-height: 1.4; }
.login-help, .form-error, .success-message { min-height: 18px; color: var(--muted); font-size: 12px; }
.form-error { color: var(--danger); }
.success-message { color: var(--accent); font-weight: 800; }
.login-brand { display: none; }
.login-box button[type="submit"] { min-height: 58px; border-radius: 13px; background: linear-gradient(90deg, #7047f7, #974df6); font-size: 20px; }
.login-box .login-recovery-button { width: 100%; min-height: 44px; border: 0; background: transparent; color: #5e43c8; }
.login-box .login-recovery-button:hover { background: #f5f1ff; }
.login-box input { min-height: 58px; border-color: #d7d2ee; background: #fff; font-size: 16px; }
.login-box input:focus { outline: 3px solid rgba(116, 71, 247, .18); border-color: var(--accent); }
.login-brand .brand-mark { width: min(100%, 280px); height: 100px; flex: none; border-radius: 0; color: var(--accent); background: transparent; font-size: 38px; }
.login-brand .brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.login-showcase {
  grid-column: 1 / -1;
  display: grid;
  gap: 28px;
  padding: clamp(46px, 6vw, 78px) clamp(22px, 5vw, 76px) clamp(54px, 7vw, 90px);
  background: linear-gradient(180deg, #f7f5ff 0%, #fff 54%, #f5f9ff 100%);
}
.showcase-hero {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.showcase-hero span,
.module-story-copy > span,
.gallery-strip span,
.package-strip span,
.contact-strip span {
  color: #ff4fb0;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 2.4px;
}
.showcase-hero h2,
.module-story-copy h3,
.gallery-strip h2,
.package-strip h2,
.contact-strip h2 {
  color: var(--navy);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.06;
}
.showcase-hero p,
.module-story-copy p,
.package-strip p,
.contact-strip p {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.45;
}
.module-story {
  display: grid;
  grid-template-columns: minmax(280px, .38fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 2.8vw, 34px);
  border: 1px solid #e2dcfb;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,245,255,.9));
  box-shadow: 0 28px 70px rgba(38, 34, 91, .08);
}
.module-story-featured { grid-template-columns: minmax(300px, .36fr) minmax(0, .64fr); }
.module-story-image-card {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.module-story-image-card img {
  display: block;
  width: 100%;
  height: auto;
}
.module-story-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}
.module-story-copy h3,
.module-story-copy p { margin: 0; }
.story-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
}
.story-brand img {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
}
.story-brand strong {
  align-self: end;
  color: var(--navy);
  font-size: 17px;
  line-height: 1;
}
.story-brand span {
  align-self: start;
  color: #53608c;
  font-size: 14px;
  font-weight: 900;
}
.module-color-line {
  display: flex;
  width: min(360px, 100%);
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
}
.module-color-line i { flex: 1; }
.module-color-line i:nth-child(1) { background: #49cde8; }
.module-color-line i:nth-child(2) { background: #31ef4d; }
.module-color-line i:nth-child(3) { background: #fff24a; }
.module-color-line i:nth-child(4) { background: #ff9dd0; }
.module-color-line i:nth-child(5) { background: #ff7815; }
.module-color-line i:nth-child(6) { background: #b6ff00; }
.module-color-line i:nth-child(7) { background: #3a91ef; }
.module-color-line i:nth-child(8) { background: #762cf4; }
.module-menu-preview {
  display: grid;
  gap: 7px;
  max-width: 250px;
}
.module-menu-preview b {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px #ebe5ff;
  font-size: 12px;
}
.module-menu-preview b:first-child {
  color: #fff;
  background: linear-gradient(135deg, #6c44f6, #a33cff);
}
.module-browser {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ded6fb;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 48px rgba(34, 31, 86, .10);
}
.browser-top {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid #ebe7fb;
  background: rgba(255,255,255,.78);
}
.browser-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3150;
}
.browser-top i:nth-child(2) { background: #ffcf00; }
.browser-top i:nth-child(3) { background: #20d95a; }
.browser-top span {
  margin-left: auto;
  color: var(--navy);
  font-size: 12px;
  font-weight: 950;
}
.dashboard-mock {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 330px;
}
.dashboard-mock aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid #ebe7fb;
  background: linear-gradient(180deg, #fff, #fbf8ff);
}
.dashboard-mock aside img { width: 48px; height: 48px; }
.dashboard-mock aside b {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--navy);
  background: #f5f0ff;
  font-size: 11px;
}
.dashboard-mock aside b:first-of-type {
  color: #fff;
  background: linear-gradient(135deg, #6c44f6, #a33cff);
}
.dashboard-mock main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}
.dash-head {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
}
.dash-head strong { color: var(--navy); font-size: 20px; }
.dash-head span { color: var(--muted); font-size: 12px; font-weight: 800; }
.exam-counts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-left: auto;
  width: min(360px, 62%);
}
.exam-counts b {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 10px 11px;
  border-radius: 8px;
  color: #76718f;
  background: #fff;
  box-shadow: inset 3px 0 0 #31ef4d, 0 8px 20px rgba(34,31,86,.06);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .5px;
}
.exam-counts b:nth-child(2) { box-shadow: inset 3px 0 0 #ff9dd0, 0 8px 20px rgba(34,31,86,.06); }
.exam-counts b:nth-child(3) { box-shadow: inset 3px 0 0 #49cde8, 0 8px 20px rgba(34,31,86,.06); }
.exam-counts strong {
  color: var(--navy);
  font-size: 21px;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}
.exam-counts small {
  color: #74708f;
  font-size: 9px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}
.metric-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.metric-grid b {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #111337;
  background: #fff;
  box-shadow: inset 0 3px 0 #49cde8, 0 10px 22px rgba(34,31,86,.06);
  font-size: 26px;
}
.metric-grid b:nth-child(2) { box-shadow: inset 0 3px 0 #fff24a, 0 10px 22px rgba(34,31,86,.06); }
.metric-grid b:nth-child(3) { box-shadow: inset 0 3px 0 #3a91ef, 0 10px 22px rgba(34,31,86,.06); }
.metric-grid b:nth-child(4) { box-shadow: inset 0 3px 0 #762cf4, 0 10px 22px rgba(34,31,86,.06); }
.metric-grid small { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 900; }
.wide-card,
.donut-card,
.lesson-card {
  display: grid;
  gap: 9px;
  min-height: 128px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 3px 0 #ff4fb0, 0 10px 22px rgba(34,31,86,.06);
}
.wide-card { grid-column: span 3; }
.lesson-card { grid-column: span 1; }
.donut-card { grid-column: span 1; }
.wide-card strong,
.donut-card strong,
.lesson-card strong { color: var(--navy); font-size: 13px; }
.wide-card em {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 8px;
  color: #6c44f6;
  background: #f5f0ff;
  font-style: normal;
  font-weight: 950;
}
.wide-card span {
  min-height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6c44f6 55%, #f5f0ff 55%);
}
.lesson-card {
  align-content: center;
  box-shadow: inset 0 3px 0 #31ef4d, 0 10px 22px rgba(34,31,86,.06);
}
.lesson-card b {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #354036;
  border-bottom: 1px solid #ece8ff;
  padding-bottom: 6px;
  font-size: 11px;
}
.lesson-card em {
  color: #2d3b91;
  font-style: normal;
  font-size: 16px;
}
.donut-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}
.donut-card i,
.mock-donut,
.finance-panel-mock div:last-child i {
  width: 82px;
  aspect-ratio: 1;
  place-self: center;
  border-radius: 50%;
  background: conic-gradient(#31ef4d 0 34%, #ff4fb0 34% 72%, #6c44f6 72% 100%);
  position: relative;
}
.donut-card i::after,
.mock-donut::after,
.finance-panel-mock div:last-child i::after {
  content: "";
  position: absolute;
  inset: 23px;
  border-radius: 50%;
  background: #fff;
}
.module-feature-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.module-feature-grid article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 3px 12px;
  align-items: center;
  min-height: 96px;
  padding: 14px;
  border: 1px solid #e7e1fb;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
}
.module-feature-grid article i {
  grid-row: 1 / span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #6c44f6, #4f46c7);
  font-style: normal;
  font-weight: 950;
  font-size: 18px;
}
.module-feature-grid article b { color: var(--navy); font-size: 15px; }
.module-feature-grid article p { margin: 0; color: #5f6382; font-size: 12px; line-height: 1.35; font-weight: 750; }
.module-feature-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-browser { align-self: stretch; }
.records-panel-mock,
.student-panel-mock,
.teacher-panel-mock,
.fanus-panel-mock,
.finance-panel-mock {
  display: grid;
  gap: 12px;
  min-height: 300px;
  padding: 18px;
}
.records-panel-mock {
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 0;
  gap: 0;
  min-height: 334px;
}
.records-panel-mock > aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid #ebe7fb;
  background: linear-gradient(180deg, #fff, #fbf8ff);
}
.records-panel-mock > aside img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}
.records-panel-mock > aside b,
.records-panel-mock > aside span {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--navy);
  background: #fff;
  box-shadow: inset 0 0 0 1px #ebe5ff;
  font-size: 11px;
  font-weight: 950;
}
.records-panel-mock > aside b:nth-of-type(2) {
  color: #fff;
  background: linear-gradient(135deg, #6c44f6, #a33cff);
}
.records-panel-mock > aside span {
  margin-left: 10px;
  background: #f4efff;
}
.student-panel-mock { grid-template-columns: .72fr 1.28fr; min-height: 334px; }
.teacher-panel-mock { grid-template-columns: .48fr 1fr; }
.student-panel-mock section,
.teacher-panel-mock section,
.finance-panel-mock div,
.fanus-panel-mock aside,
.fanus-panel-mock main {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ebe5ff;
}
.student-panel-mock b,
.teacher-panel-mock b,
.fanus-panel-mock b,
.fanus-panel-mock strong,
.finance-panel-mock b { color: var(--navy); font-size: 15px; }
.student-panel-mock em,
.teacher-panel-mock em,
.finance-panel-mock span,
.fanus-panel-mock span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: #746f91;
  background: #f8f5ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.student-panel-mock button,
.teacher-panel-mock button,
.fanus-panel-mock button {
  min-height: 42px;
  border-radius: 8px;
  background: #2d3b91;
  color: #fff;
  font-weight: 950;
}
.student-panel-mock p,
.teacher-panel-mock p {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: #fbfaff;
  border: 1px solid #eee8ff;
}
.student-panel-mock p i,
.teacher-panel-mock p i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-style: normal;
  font-weight: 950;
}
.student-panel-mock p span,
.teacher-panel-mock p span { display: grid; gap: 2px; color: var(--navy); font-size: 12px; font-weight: 950; }
.student-panel-mock p small,
.teacher-panel-mock p small,
.teacher-panel-mock b small { color: var(--muted); font-size: 10px; }
.student-panel-mock p strong,
.teacher-panel-mock p strong {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #39469c, #6f48e8);
  font-size: 11px;
}
.teacher-panel-mock p strong {
  color: #26358f;
  background: #f4efff;
  box-shadow: inset 0 0 0 1px #dfd4ff;
}
.student-chart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}
.mock-donut { width: 86px; }
.mock-donut.class-chart { background: conic-gradient(#49cde8 0 45%, #31ef4d 45% 62%, #fff24a 62% 74%, #ff9dd0 74% 84%, #ff7815 84% 91%, #b6ff00 91% 96%, #3a91ef 96% 100%); }
.fanus-panel-mock { grid-template-columns: 180px minmax(0, 1fr); }
.fanus-panel-mock main p {
  margin: 0;
  min-height: 64px;
  padding: 12px;
  border: 1px dashed #d4c9fb;
  border-radius: 8px;
  color: #746f91;
  background: #fbfaff;
  font-weight: 850;
}
.fanus-panel-mock main div {
  min-height: 86px;
  border-radius: 8px;
  background: repeating-linear-gradient(0deg, #fff 0 17px, #ece8ff 17px 18px);
  border: 1px solid #ebe5ff;
}
.finance-panel-mock {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.finance-panel-mock div:last-child {
  align-content: center;
  text-align: center;
}
.finance-panel-mock div:last-child strong {
  color: var(--navy);
  font-size: 22px;
}
.finance-panel-mock div:last-child i {
  width: 96px;
}
.finance-panel-mock div:first-child span:nth-child(2) { background: #effdff; color: #168ca1; }
.finance-panel-mock div:first-child span:nth-child(3) { background: #f7f1ff; color: #6c44f6; }
.finance-panel-mock div:first-child span:nth-child(4) { background: #fff9d8; color: #9c7200; }
.finance-panel-mock div:nth-child(2) span:nth-child(2) { background: #f0fff4; color: #169742; }
.finance-panel-mock div:nth-child(2) span:nth-child(3) { background: #f5f0ff; color: #6c44f6; }
.finance-panel-mock div:nth-child(2) span:nth-child(4) { background: #fff0f8; color: #cc2d83; }
.gallery-strip,
.package-strip,
.contact-strip {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid #e2dcfb;
  border-radius: 8px;
  background: rgba(255,255,255,.88);
}
.gallery-strip {
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
  align-items: center;
}
.gallery-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.gallery-cards article {
  min-height: 86px;
  display: grid;
  align-content: end;
  padding: 11px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #5525e9, #f237a9);
  font-size: 13px;
  font-weight: 950;
}
.gallery-cards article:nth-child(2) { background: linear-gradient(135deg, #49cde8, #762cf4); }
.gallery-cards article:nth-child(3) { background: linear-gradient(135deg, #31ef4d, #3a91ef); }
.gallery-cards article:nth-child(4) { background: linear-gradient(135deg, #ff7815, #ff4fb0); }

@media (max-width: 1320px) and (min-width: 761px) {
  .login-landing-nav {
    top: clamp(16px, 2.4vw, 24px);
    left: clamp(22px, 3.4vw, 46px);
    gap: 4px;
    width: auto;
    max-width: min(49vw, 520px);
    padding: 6px;
  }
  .login-landing-nav a {
    min-height: clamp(30px, 3vw, 36px);
    padding: 6px clamp(9px, 1.45vw, 14px);
    font-size: clamp(11px, 1.2vw, 13px);
  }
  .login-hero-brand-logo {
    top: clamp(70px, 7.8vw, 92px);
    right: clamp(42px, 7.5vw, 94px);
    width: clamp(78px, 7.6vw, 108px);
  }
  .login-hero-copy {
    margin-top: clamp(132px, 17vh, 165px);
  }
}

.app-shell { display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; z-index: 35; top: 0; width: 92px; height: 100vh; height: 100svh; max-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: #fbfbff; border-right: 1px solid var(--line); padding: 20px 14px; transition: width .2s ease, box-shadow .2s ease, padding .2s ease; }
.sidebar.sidebar-expanded { width: 260px; padding-inline: 20px; box-shadow: 22px 0 46px rgba(35, 36, 79, .14); }
.sidebar.sidebar-force-collapsed { width: 92px; padding-inline: 14px; box-shadow: none; }
.sidebar::before { content: ""; display: block; height: 8px; margin: -20px -20px 18px; background: linear-gradient(90deg, #49cde8 0 12.5%, #31ef4d 12.5% 25%, #fff24a 25% 37.5%, #ff9dd0 37.5% 50%, #ff7815 50% 62.5%, #b6ff00 62.5% 75%, #3a91ef 75% 87.5%, #762cf4 87.5% 100%); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand-mark { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; overflow: hidden; border-radius: 16px; color: #fff; background: transparent; box-shadow: 0 14px 34px rgba(49, 239, 77, .18); font-weight: 900; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.brand h1 { font-size: 15px; font-weight: 800; line-height: 1.15; }
.brand p, .topbar p, .section-head p, .question-meta, .empty { color: var(--muted); font-size: 13px; }
.sidebar:not(.sidebar-expanded) .brand { justify-content: center; gap: 0; margin-bottom: 20px; }
.sidebar:not(.sidebar-expanded) .brand > div:not(.brand-mark),
.sidebar:not(.sidebar-expanded) .nav-label > span,
.sidebar:not(.sidebar-expanded) .nav-arrow,
.sidebar:not(.sidebar-expanded) .nav-chevron,
.sidebar:not(.sidebar-expanded) .nav-submenu,
.sidebar:not(.sidebar-expanded) .account-box strong,
.sidebar:not(.sidebar-expanded) .account-box span,
.sidebar:not(.sidebar-expanded) .account-box .cloud-sync-status,
.sidebar:not(.sidebar-expanded) #cloudSyncNow { display: none !important; }
.sidebar.sidebar-force-collapsed .brand { justify-content: center; gap: 0; margin-bottom: 20px; }
.sidebar.sidebar-force-collapsed .brand > div:not(.brand-mark),
.sidebar.sidebar-force-collapsed .nav-label > span,
.sidebar.sidebar-force-collapsed .nav-arrow,
.sidebar.sidebar-force-collapsed .nav-chevron,
.sidebar.sidebar-force-collapsed .nav-submenu,
.sidebar.sidebar-force-collapsed .account-box strong,
.sidebar.sidebar-force-collapsed .account-box span,
.sidebar.sidebar-force-collapsed .account-box .cloud-sync-status,
.sidebar.sidebar-force-collapsed #cloudSyncNow { display: none !important; }
.sidebar:not(.sidebar-expanded) .brand-mark { flex-basis: 50px; width: 50px; height: 50px; border-radius: 14px; }
.sidebar.sidebar-force-collapsed .brand-mark { flex-basis: 50px; width: 50px; height: 50px; border-radius: 14px; }
.side-nav { display: grid; flex: 1 1 auto; min-height: 0; align-content: start; gap: 6px; overflow-x: hidden; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #d8ccff transparent; }
.side-nav.hidden { display: none !important; }
.nav-button {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(225, 222, 241, .92);
  border-radius: 9px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 8px 18px rgba(35, 36, 79, .035);
  text-align: left;
  font-weight: 850;
}
.side-nav > .nav-button:not(.nav-subbutton), .nav-group-toggle, .plain-nav-group > .nav-button {
  overflow: hidden;
  color: var(--navy);
  background: #fff;
}
.nav-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.sidebar:not(.sidebar-expanded) .nav-button { justify-content: center; padding-inline: 0; }
.sidebar:not(.sidebar-expanded) .nav-label { justify-content: center; gap: 0; }
.sidebar:not(.sidebar-expanded) .nav-icon { flex-basis: 22px; width: 22px; height: 22px; }
.sidebar:not(.sidebar-expanded) .nav-group.open .nav-submenu { display: none; }
.sidebar.sidebar-force-collapsed .nav-button { justify-content: center; padding-inline: 0; }
.sidebar.sidebar-force-collapsed .nav-label { justify-content: center; gap: 0; }
.sidebar.sidebar-force-collapsed .nav-icon { flex-basis: 22px; width: 22px; height: 22px; }
.sidebar.sidebar-force-collapsed .nav-group.open .nav-submenu { display: none; }
.nav-label > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: var(--fanus-cyan);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-button[data-view="dashboardView"] .nav-icon { color: var(--fanus-cyan); }
#recordsNavToggle .nav-icon { color: #ff3ab2; }
.nav-button[data-view="questionsView"] .nav-icon,
.nav-button[data-view="questionFanusView"] .nav-icon { color: #21f33f; }
.nav-button[data-view="messagesView"] .nav-icon { color: #ffad75; }
#lessonsNavToggle .nav-icon,
.nav-button[data-view="studentResourcesView"] .nav-icon { color: #ffdf18; fill: currentColor; stroke-width: 0; }
#accountingNavToggle .nav-icon { color: #3a91ef; }
#coachingNavToggle .nav-icon,
.nav-button[data-view="studentStudyProgramView"] .nav-icon { color: #27ef45; }
.nav-button[data-view="institutionView"] .nav-icon { color: #5a63ff; }
.nav-button[data-view="adminUsersView"] .nav-icon { color: #7447f7; }
.nav-arrow,
.nav-chevron {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: #c6c2db;
  transform: rotate(-45deg);
  transition: transform .18s ease, color .18s ease;
}
.nav-button.active { color: var(--accent); background: #f0ecff; }
.side-nav > .nav-button:not(.nav-subbutton).active,
.side-nav .nav-group-toggle.active,
.side-nav .nav-group.open > .nav-group-toggle,
.plain-nav-group > .nav-button.active {
    color: #fff;
    background: linear-gradient(90deg, #7047f7, #974df6);
    border-color: rgba(116, 71, 247, .55);
    box-shadow: 0 12px 24px rgba(116, 71, 247, .18);
}
.side-nav > .nav-button:not(.nav-subbutton).active .nav-icon,
.side-nav .nav-group-toggle.active .nav-icon,
.side-nav .nav-group.open > .nav-group-toggle .nav-icon,
.plain-nav-group > .nav-button.active .nav-icon { color: #fff; fill: none; stroke: currentColor; }
.side-nav > .nav-button:not(.nav-subbutton).active .nav-arrow,
.side-nav .nav-group-toggle.active .nav-chevron,
.side-nav .nav-group.open > .nav-group-toggle .nav-chevron,
.plain-nav-group > .nav-button.active .nav-arrow { color: #fff; }
.nav-group { display: grid; }
.nav-group-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav-group-toggle .nav-chevron { transform: rotate(45deg); }
.nav-group.open .nav-chevron { transform: rotate(225deg); }
.nav-submenu { display: none; gap: 4px; padding: 4px 0 4px 12px; }
.nav-group.open .nav-submenu { display: grid; }
.nav-subbutton { min-height: 36px; padding-left: 16px; border: 0; border-left: 2px solid var(--line); border-radius: 0 7px 7px 0; background: transparent; box-shadow: none; font-size: 13px; }
.account-box { display: grid; flex: 0 0 auto; gap: 4px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); background: #fbfbff; }
.account-box span { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.account-box .cloud-sync-status { margin: 2px 0 8px; padding: 7px 9px; border-radius: 8px; background: #eef9f1; color: #2f5b3b; font-weight: 800; line-height: 1.25; }
.account-box .cloud-sync-status[data-tone="pending"] { background: #fff6d7; color: #7b5b10; }
.account-box .cloud-sync-status[data-tone="error"] { background: #fff0ee; color: #b52b20; }
.sidebar:not(.sidebar-expanded) .account-box { padding-top: 12px; }
.sidebar:not(.sidebar-expanded) #logoutButton { width: 42px; min-height: 42px; justify-self: center; overflow: hidden; color: transparent; border-radius: 12px; padding: 0; }
.sidebar:not(.sidebar-expanded) #logoutButton::before { content: "↪"; color: var(--navy); font-size: 20px; font-weight: 900; }
.sidebar.sidebar-force-collapsed .account-box { padding-top: 12px; }
.sidebar.sidebar-force-collapsed #logoutButton { width: 42px; min-height: 42px; justify-self: center; overflow: hidden; color: transparent; border-radius: 12px; padding: 0; }
.sidebar.sidebar-force-collapsed #logoutButton::before { content: "↪"; color: var(--navy); font-size: 20px; font-weight: 900; }
.workspace { container-name: workspace; container-type: inline-size; min-width: 0; max-width: 100%; padding: 24px; }
.app-view { width: 100%; min-width: 0; max-width: 100%; }
#dashboardView { position: relative; }
#dashboardView::before {
  content: "";
  display: block;
  width: min(430px, 100%);
  height: 10px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #49cde8 0 12.5%, #31ef4d 12.5% 25%, #fff24a 25% 37.5%, #ff9dd0 37.5% 50%, #ff7815 50% 62.5%, #b6ff00 62.5% 75%, #3a91ef 75% 87.5%, #762cf4 87.5% 100%);
}
.app-view > *, .panel > *, .question-form > *, .bank-section > * { min-width: 0; max-width: 100%; }
.app-view p, .app-view span, .app-view small, .app-view strong, .app-view button, .app-view label { overflow-wrap: anywhere; }
.app-view .student-status-buttons button,
.app-view .student-result-grid label,
.app-view .student-result-grid input {
  overflow-wrap: normal;
  word-break: normal;
}
.app-view .student-status-buttons button,
.app-view .student-result-grid label {
  white-space: normal;
}
.workspace:has(#accountingDebtorsView:not(.hidden)) {
  padding-top: 16px;
  padding-bottom: 12px;
}
.topbar, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.topbar h2 { font-size: 27px; margin-bottom: 4px; }
.dashboard-topbar { align-items: flex-start; }
.exam-countdown-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 8px;
  width: min(480px, 100%);
}
.exam-countdown-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 34px rgba(35, 36, 79, .06);
}
button.exam-countdown-card {
  width: 100%;
  border: 1px solid var(--line);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
button.exam-countdown-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(116, 71, 247, .13);
}
.exam-countdown-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--pill-color, var(--accent));
}
.exam-countdown-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.exam-countdown-card strong {
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1;
}
.exam-countdown-card small { color: var(--muted); font-size: 11px; font-weight: 700; }
.exam-countdown-card.lgs { --pill-color: #31ef4d; }
.exam-countdown-card.yks { --pill-color: #ff9dd0; }
.exam-countdown-card.today { --pill-color: #49cde8; }
.exam-countdown-card.question-total { --pill-color: var(--accent); }
.exam-countdown-card.stopwatch-card { --pill-color: #ff7a1a; }
.student-countdown-strip { grid-template-columns: repeat(5, minmax(118px, 1fr)); max-width: 1060px; }
.buyer-countdown-strip { grid-template-columns: repeat(4, minmax(118px, 1fr)); max-width: 760px; }
.dashboard-topbar:has(.question-total:not(.hidden)) .exam-countdown-strip { grid-template-columns: repeat(3, minmax(118px, 1fr)); }
.dashboard-topbar:has(.question-total:not(.hidden)) .exam-countdown-strip.buyer-countdown-strip { grid-template-columns: repeat(4, minmax(118px, 1fr)); }
.topbar-actions, .basket-header-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions.buyer-question-actions { display: none; }
.buyer-folder-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid #ddd6f5;
  border-radius: 8px;
  color: var(--accent);
  background: #f7f2ff;
  font-size: 14px;
  font-weight: 900;
}
.basket-button { position: relative; display: flex; align-items: center; gap: 8px; }
.basket-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.basket-button strong { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #fff; background: #849189; font-size: 12px; }
.basket-button.has-items {
  color: #fff;
  border-color: #9b7bff;
  background: linear-gradient(135deg, #8a4df6, #38bfd6);
}
.basket-button.has-items strong { color: #7044e8; background: #fff; }
.secondary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #cfe3d6;
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}
.panel, .question-form, .basket-panel, .bank-section { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.panel, .question-form, .basket-panel, .bank-section { padding: 16px; }
.integrated-basket { margin-bottom: 16px; border-color: #b9d2c0; box-shadow: 0 8px 24px rgba(38, 78, 51, .08); }
.basket-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.basket-title-row h3 { margin: 0; }
.basket-title-row #basketCount {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #4b3c8a;
  background: #f1ebff;
  font-size: 12px;
  font-weight: 900;
}
.basket-clear-inline {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #7b3ff5;
  font-size: 12px;
}
.basket-clear-inline:disabled {
  opacity: .45;
  cursor: default;
}
.panel h2 { font-size: 16px; margin-bottom: 12px; }
.question-form { display: grid; gap: 12px; margin-bottom: 16px; }
.inline-check { display: flex; align-items: center; gap: 8px; width: fit-content; }
.inline-check input { width: 18px; min-height: 18px; }
.teacher-image-uploader { min-height: 200px; }
.teacher-question-preview { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(230px, 320px); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f4f7f5; }
.teacher-question-preview > img { display: block; width: 100%; height: min(48vh, 440px); object-fit: contain; background: #fff; }
.teacher-preview-details { display: grid; align-content: start; gap: 14px; padding: 16px; border-left: 1px solid var(--line); }
.teacher-preview-details > div:first-child { display: grid; gap: 4px; }
.teacher-preview-details span { color: var(--muted); font-size: 13px; }
.preview-answer { padding: 12px; border-left: 3px solid var(--gold); background: #fff9e8; font-size: 13px; font-weight: 800; }
.student-upload { max-width: 720px; }
.upload-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.upload-steps span { padding: 8px 4px 11px; color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; }
.upload-steps span.active { color: var(--accent); border-bottom: 3px solid var(--accent); }
.photo-uploader { min-height: 220px; display: grid; }
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.camera-button, .photo-actions .file-picker { min-height: 210px; place-items: center; border: 1px dashed #91ae9a; border-radius: 7px; color: var(--accent); background: #f4faf6; cursor: pointer; font-size: 15px; text-align: center; }
.camera-button { display: grid; }
.camera-button input { display: none; }
.photo-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f3f6f4; }
.photo-preview img { display: block; width: 100%; height: min(48vh, 430px); object-fit: contain; background: #fff; }
.photo-preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
.photo-preview-footer div { display: grid; gap: 2px; }
.photo-preview-footer span { color: var(--muted); font-size: 12px; }
.upload-summary { display: grid; gap: 3px; padding: 12px; border-left: 3px solid var(--gold); background: #fff9e8; }
.upload-summary span { color: var(--muted); font-size: 13px; }
.management-grid { display: grid; grid-template-columns: minmax(290px, 380px) minmax(420px, 1fr); gap: 16px; align-items: start; }
.two-col, .three-col, .color-row, .print-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.three-col, .print-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.integrated-basket .print-options {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  align-items: end;
}
.integrated-basket .print-options label {
  gap: 5px;
  color: #2f3b35;
  font-size: 12px;
  font-weight: 850;
}
.integrated-basket .print-options input,
.integrated-basket .print-options select {
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
}
.integrated-basket .print-options .layout-note {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border-radius: 8px;
  color: #16755d;
  background: #e8fff7;
  font-size: 12px;
  font-weight: 800;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { display: grid; gap: 5px; min-height: 105px; align-content: center; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stat strong { color: var(--accent); font-size: 30px; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.dashboard-stat { min-height: 250px; grid-template-rows: auto auto 1fr auto auto; justify-items: center; text-align: center; border-top: 4px solid var(--fanus-cyan); box-shadow: 0 16px 36px rgba(35, 36, 79, .04); }
.dashboard-stat:nth-child(2) { border-top-color: #fff24a; }
.dashboard-stat:nth-child(3) { border-top-color: #3a91ef; }
.dashboard-stat:nth-child(4) { border-top-color: #762cf4; }
.dashboard-stat > span:not(.stat-icon) { max-width: 180px; color: #39423d; font-size: 17px; }
.dashboard-stat strong { align-self: center; color: #202622; font-size: 38px; }
.dashboard-stat small { min-height: 18px; color: var(--muted); font-size: 12px; }
.stat-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #fff !important; font-size: 22px !important; font-weight: 900; box-shadow: 0 12px 26px rgba(35, 36, 79, .12); }
.stat-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon.turquoise { background: #49cde8; }
.stat-icon.yellow { color: #4c3a00 !important; background: #fff24a; }
.stat-icon.blue { background: #3a91ef; }
.stat-icon.green { background: #762cf4; }
.stat-detail { width: 100%; min-height: 34px; color: var(--muted); background: transparent; border-top: 1px solid var(--line); border-radius: 0; padding-top: 10px; }
.birthday-inline-detail { width: 100%; display: grid; gap: 7px; max-height: 96px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; text-align: left; }
.birthday-inline-detail div { display: grid; gap: 2px; padding: 6px 7px; border-radius: 7px; background: #fff; }
.birthday-inline-detail strong { color: var(--ink); font-size: 13px; line-height: 1.2; }
.birthday-inline-detail span, .birthday-inline-detail p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.dashboard-workbench { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; margin-bottom: 16px; }
.dashboard-todo-card, .dashboard-lesson-card, .dashboard-finance-card { display: grid; align-content: start; gap: 12px; min-width: 0; min-height: 270px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 16px 36px rgba(35, 36, 79, .04); }
.dashboard-todo-card { grid-column: span 2; }
.buyer-dashboard-workbench { grid-template-columns: minmax(0, 1fr); }
.buyer-dashboard-workbench .dashboard-todo-card { grid-column: 1 / -1; min-height: 360px; padding: 22px; }
.buyer-dashboard-workbench .dashboard-calendar-day { min-height: 32px; font-size: 13px; }
.buyer-dashboard-workbench .dashboard-calendar-empty { min-height: 32px; }
.buyer-dashboard-workbench .dashboard-calendar-head strong { font-size: 18px; }
.dashboard-todo-card { border-top: 4px solid var(--fanus-pink); }
.dashboard-lesson-card { border-top: 4px solid var(--fanus-green); }
.dashboard-finance-card { border-top: 4px solid var(--accent); }
.dashboard-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-card-head div { display: grid; gap: 3px; }
.dashboard-card-head span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-card-head h3 { color: var(--navy); font-size: 22px; line-height: 1.1; }
.dashboard-privacy-toggle { min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #f7f3ff; color: var(--accent); font-size: 12px; font-weight: 900; white-space: nowrap; box-shadow: 0 8px 18px rgba(116, 71, 247, .08); }
.dashboard-privacy-toggle:hover { border-color: var(--accent); background: #efe8ff; }
.dashboard-privacy-toggle[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.dashboard-calendar { display: grid; gap: 7px; padding: 9px; border: 1px solid #eadcf7; border-radius: 8px; background: #fbfaff; }
.dashboard-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-calendar-head strong { color: var(--navy); font-size: 14px; line-height: 1; }
.dashboard-calendar-head button { display: grid; width: 28px; min-height: 28px; place-items: center; padding: 0; border-radius: 50%; color: var(--accent); background: #f3efff; font-size: 18px; line-height: 1; }
.dashboard-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dashboard-calendar-weekday { color: var(--muted); font-size: 10px; font-weight: 900; text-align: center; }
.dashboard-calendar-empty { min-height: 24px; }
.dashboard-calendar-day { position: relative; display: grid; min-width: 0; min-height: 24px; place-items: center; padding: 0 0 2px; border-radius: 7px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 900; }
.dashboard-calendar-day.today { box-shadow: inset 0 0 0 1px var(--fanus-pink); }
.dashboard-calendar-day.active { color: #fff; background: linear-gradient(135deg, var(--accent), #974df6); }
.dashboard-calendar-day.has-task::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--fanus-pink); transform: translateX(-50%); }
.dashboard-calendar-day.active.has-task::after { background: #fff; }
.dashboard-selected-day { color: var(--muted); font-size: 12px; font-weight: 900; }
.dashboard-todo-list { display: grid; gap: 8px; max-height: 220px; overflow: auto; padding-right: 2px; }
.dashboard-open-planner { display: grid; gap: 4px; min-height: 82px; padding: 15px 16px; border: 1px dashed #d8cfef; border-radius: 8px; color: var(--navy); background: linear-gradient(135deg, rgba(247, 60, 167, .08), rgba(116, 71, 247, .08)); text-align: left; }
.dashboard-open-planner span { font-size: 16px; font-weight: 950; }
.dashboard-open-planner strong { color: var(--muted); font-size: 12px; font-weight: 900; }
.dashboard-todo-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; min-height: 46px; padding: 9px 10px; border: 1px solid #eadcf7; border-radius: 8px; background: linear-gradient(90deg, rgba(247, 60, 167, .08), rgba(116, 71, 247, .05)); color: var(--ink); font-size: 13px; }
.dashboard-todo-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.dashboard-todo-check input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.dashboard-todo-check span { min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.dashboard-todo-item.done span { color: var(--muted); text-decoration: line-through; }
.dashboard-todo-item button { display: grid; width: 28px; min-height: 28px; place-items: center; padding: 0; border-radius: 50%; color: #a13661; background: #fff; }
.dashboard-todo-item .dashboard-reminder-mark { width: auto; min-height: 28px; padding: 0 10px; border-radius: 999px; color: var(--accent); background: #f7f3ff; font-size: 11px; font-weight: 900; white-space: nowrap; }
.dashboard-todo-item .dashboard-reminder-mark.active { color: #8a3e09; background: #fff2df; border-color: #ffd5ac; }
.dashboard-empty-note { min-height: 150px; display: grid; place-items: center; border: 1px dashed #d8cfef; border-radius: 8px; color: var(--muted); background: #fbfaff; font-weight: 800; }
.dashboard-planner-modal { width: min(1060px, calc((100vw - 42px) / var(--modal-scale))); }
.dashboard-planner-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; }
.dashboard-planner-section { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid #e5ddfb; border-radius: 8px; background: #fff; }
.dashboard-planner-focus { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(247, 60, 167, .1), rgba(73, 205, 232, .1)); }
.dashboard-planner-section span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-planner-section h3 { color: var(--navy); font-size: 22px; line-height: 1.12; }
.dashboard-planner-section p { margin: 0; color: var(--muted); font-weight: 850; }
.dashboard-planner-section-head { display: flex; justify-content: space-between; gap: 12px; }
.dashboard-planner-lessons, .dashboard-planner-notes { display: grid; gap: 9px; max-height: 360px; overflow: auto; padding-right: 2px; }
.dashboard-planner-lesson { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 58px; padding: 10px; border: 1px solid #d9eef3; border-radius: 8px; background: #f6fcff; }
.dashboard-planner-lesson > strong { color: var(--accent); font-size: 16px; font-weight: 950; font-variant-numeric: tabular-nums; }
.dashboard-planner-lesson b { display: block; color: var(--navy); font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.dashboard-planner-lesson span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: 0; text-transform: none; }
.dashboard-planner-note-form { display: grid; gap: 8px; }
.dashboard-planner-note-form textarea { min-height: 92px; resize: vertical; border-color: #dcd4fb; background: #fbfaff; font-weight: 800; }
.dashboard-planner-note-form button { min-height: 44px; background: linear-gradient(90deg, var(--accent), #974df6); }
.dashboard-planner-reminder-option { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 8px 10px; border: 1px solid #ded8fb; border-radius: 999px; background: #fbf8ff; color: var(--navy); font-size: 12px; font-weight: 900; }
.dashboard-planner-reminder-option input { width: 16px; min-height: 16px; accent-color: var(--accent); }
.dashboard-planner-reminder-option span { color: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
.dashboard-planner-empty { min-height: 116px; display: grid; place-items: center; padding: 16px; border: 1px dashed #d8cfef; border-radius: 8px; color: var(--muted); background: #fbfaff; font-weight: 850; text-align: center; }
.dashboard-reminder-modal { width: min(760px, calc((100vw - 42px) / var(--modal-scale))); }
.dashboard-reminder-list { display: grid; gap: 10px; margin-top: 10px; }
.dashboard-reminder-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e5ddfb; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 242, 223, .82), rgba(247, 243, 255, .9)); }
.dashboard-reminder-item div { display: grid; gap: 4px; min-width: 0; }
.dashboard-reminder-item span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-reminder-item strong { color: var(--navy); font-size: 15px; overflow-wrap: anywhere; }
.dashboard-reminder-item button { min-height: 34px; padding-inline: 12px; border-radius: 8px; font-size: 12px; font-weight: 900; }
.dashboard-reminder-done-all { margin-top: 12px; min-height: 42px; }
.dashboard-lesson-summary { display: grid; gap: 9px; }
.dashboard-lesson-summary div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ece8f8; }
.dashboard-lesson-summary span { color: #39423d; font-weight: 850; }
.dashboard-lesson-summary strong { color: var(--accent); font-size: 24px; line-height: 1; }
.dashboard-detail-link { justify-self: start; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0; color: var(--muted); background: transparent; font-size: 13px; }
.dashboard-detail-link span { color: var(--ink); font-size: 18px; line-height: 1; }
.dashboard-teacher-breakdown { display: grid; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); }
.dashboard-teacher-breakdown div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.dashboard-teacher-breakdown strong { color: var(--navy); white-space: nowrap; }
.dashboard-donut-wrap { position: relative; display: grid; width: min(190px, 100%); aspect-ratio: 1; place-self: center; place-items: center; }
.dashboard-donut { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent) 0 360deg); box-shadow: inset 0 0 0 9px #fff, 0 14px 30px rgba(35, 36, 79, .08); }
.dashboard-donut::after { content: ""; position: absolute; inset: 27%; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.dashboard-finance-total { position: relative; z-index: 1; display: grid; gap: 2px; text-align: center; }
.dashboard-finance-total span { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.dashboard-finance-total strong { color: var(--navy); font-size: 20px; }
.dashboard-finance-legend { display: grid; gap: 8px; }
.dashboard-finance-legend div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.dashboard-finance-legend i { width: 12px; height: 12px; border-radius: 50%; }
.dashboard-finance-legend i.income { background: #31ef4d; }
.dashboard-finance-legend i.expense { background: #f73ca7; }
.dashboard-finance-legend i.receivable { background: var(--accent); }
.dashboard-finance-legend strong { color: var(--navy); white-space: nowrap; }
.finance-hidden-value { color: var(--muted) !important; letter-spacing: .06em; }
.buyer-folder-panel { display: grid; gap: 12px; margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.buyer-library-head { align-items: flex-start; }
.buyer-library-head h3 { font-size: 24px; }
.buyer-library-head p { font-size: 13px; }
.buyer-library-add { display: grid; width: 38px; min-height: 38px; place-items: center; padding: 0; border: 1px solid #ddd6f5; border-radius: 10px; color: var(--accent); background: #fff; font-size: 24px; line-height: 1; }
.buyer-folder-form { grid-template-columns: minmax(0, 1fr) auto; }
.buyer-folder-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 18px; max-width: min(920px, 100%); }
.buyer-library-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); background: transparent; cursor: pointer; }
.buyer-library-row:hover strong, .buyer-library-row:focus-visible strong { color: var(--accent); }
.buyer-library-row:focus-visible { outline: 3px solid rgba(247, 60, 167, .35); outline-offset: 4px; border-radius: 8px; }
.buyer-library-row.buyer-drop-target {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(84, 213, 235, .18), rgba(116, 71, 247, .12));
  box-shadow: inset 0 0 0 2px #54d5eb;
}
.buyer-bank-drop-target {
  position: relative;
  box-shadow: inset 0 0 0 3px rgba(84, 213, 235, .7);
}
.buyer-bank-drop-target::after {
  content: "Görseli bu klasöre bırak";
  position: absolute;
  inset: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 2px dashed #54d5eb;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(248, 252, 255, .92);
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
}
.buyer-library-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--navy); font-size: 15px; font-weight: 900; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .68); }
.buyer-library-number.cyan { background: #49cde8; }
.buyer-library-number.green { background: #31ef4d; }
.buyer-library-number.yellow { background: #fff24a; }
.buyer-library-number.pink { background: #f77bc7; }
.buyer-library-number.orange { background: #ff7a18; }
.buyer-library-number.lime { background: #b9ff00; }
.buyer-library-number.blue { color: #fff; background: #3a91ef; }
.buyer-library-number.purple { color: #fff; background: #762cf4; }
.buyer-library-row strong { color: var(--navy); font-size: 16px; line-height: 1.1; }
.buyer-library-row small { color: var(--muted); font-size: 11px; font-weight: 800; }
.buyer-library-actions { display: flex; align-items: center; gap: 6px; }
.buyer-library-row button { display: grid; width: 26px; min-height: 26px; place-items: center; padding: 0; color: var(--accent); background: #f3edff; font-size: 18px; }
.buyer-library-row button.danger { color: #bf2b24; background: #fff0ee; }
.buyer-folder-list small { color: var(--muted); font-weight: 800; }
.buyer-folder-modal { width: min(560px, calc(100vw - 28px)); }
.modal-eyebrow { margin: 0 0 8px; color: var(--fanus-pink); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.buyer-folder-modal-form { display: grid; gap: 16px; }
.buyer-folder-modal-form label { display: grid; gap: 8px; color: var(--navy); font-weight: 900; }
.buyer-folder-modal-form input, .buyer-folder-modal-form select { min-height: 52px; border: 1px solid #cfded7; border-radius: 10px; background: #fff; font-weight: 850; }
.buyer-answer-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 14px;
  padding: 22px;
  border: 2px dashed #9fbfc5;
  border-radius: 8px;
  background: #dceff2;
}
.buyer-answer-head h3 { color: #0d4453; font-size: 28px; }
.buyer-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px 42px;
  align-items: start;
}
.buyer-answer-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}
.buyer-answer-card h4 {
  margin: 0;
  color: #0d4453;
  font-size: 24px;
  font-weight: 950;
}
.buyer-answer-card img {
  width: min(320px, 100%);
  max-height: 190px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 9px 18px rgba(31, 41, 55, .18);
}
.buyer-answer-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.buyer-answer-options button {
  display: grid;
  width: 40px;
  min-height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #0d4453;
  background: #b9daf4;
  font-size: 18px;
  font-weight: 900;
}
.buyer-answer-options button.active {
  color: #fff;
  background: linear-gradient(135deg, #2a388d, var(--accent));
}
.buyer-card-answer {
  display: grid;
  gap: 7px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid #ddd6f5;
  border-radius: 8px;
  background: #fff;
}
.buyer-card-answer strong {
  color: var(--navy);
  font-size: 12px;
}
.buyer-answer-options.compact {
  justify-content: flex-start;
  gap: 5px;
}
.buyer-answer-options.compact button {
  width: 30px;
  min-height: 28px;
  border-radius: 6px;
  font-size: 13px;
}
.birthday-section { margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.birthday-list { display: flex; flex-wrap: wrap; gap: 10px; }
.birthday-person { display: flex; align-items: center; gap: 10px; min-width: min(240px, 100%); padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.birthday-person div:last-child { display: grid; gap: 3px; }
.birthday-person span { color: var(--muted); font-size: 12px; }
.teacher-avatar { background: #d79f00; }
.branch-fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.branch-fieldset legend { color: #37463d; font-size: 13px; font-weight: 800; padding: 0 5px; }
.branch-fieldset label { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.branch-fieldset input { width: 17px; min-height: 17px; }
.form-actions { display: flex; gap: 8px; }
.form-actions button { flex: 1; }
.week-controls { display: flex; gap: 8px; }
.schedule-visibility-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 42px; margin: -4px 0 10px; }
.schedule-visibility-bar button { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 8px 12px; color: #34483c; background: #f4f8f5; border-color: #c7d7cc; }
.schedule-visibility-bar button::before { content: "⌄"; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 18px; font-weight: 900; line-height: 1; transition: transform .2s ease; }
.schedule-visibility-bar button.active::before { transform: rotate(180deg); }
.schedule-visibility-bar button:hover { background: #eaf3ed; }
.schedule-visibility-bar strong { padding: 3px 7px; border-radius: 999px; color: #85451e; background: #ffe3cf; font-size: 11px; white-space: nowrap; }
.lesson-template-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.lesson-template-actions button { min-height: 36px; padding: 7px 11px; color: #283889; background: #f5f0ff; border-color: #ded5ff; }
.lesson-teacher-filter { display: grid; gap: 6px; min-width: 260px; max-width: 360px; color: var(--muted); font-weight: 800; }
.lesson-teacher-filter select { min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; padding: 0 12px; }
.schedule-shell { width: 100%; height: calc(100vh - 220px); min-width: 0; min-height: 480px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.schedule-table { display: grid; grid-template-columns: clamp(64px, 5vw, 76px) repeat(var(--schedule-days), minmax(0, 1fr)); width: 100%; min-width: 0; }
.schedule-corner, .schedule-day-head, .schedule-time, .schedule-cell { border-right: 1px solid #bdc9c1; border-bottom: 1px solid #bdc9c1; }
.schedule-corner, .schedule-day-head { position: sticky; top: 0; z-index: 4; min-height: 58px; background: #f3f7f4; box-shadow: 0 1px 0 #bdc9c1; }
.schedule-corner { left: 0; z-index: 6; display: grid; place-items: center; color: var(--muted); font-size: 14px; font-weight: 800; }
.schedule-day-head { display: grid; min-width: 0; place-items: center; align-content: center; gap: 2px; padding: 5px 3px; text-align: center; }
.schedule-day-head strong { font-size: clamp(10px, .8vw, 12px); white-space: nowrap; }
.schedule-day-head span { color: var(--muted); font-size: 11px; }
.schedule-time { position: sticky; left: 0; z-index: 3; display: grid; min-height: 44px; place-items: center; padding: 0 18px 0 4px; background: #f8fbf9; box-shadow: 1px 0 0 #bdc9c1; font-size: clamp(12px, 1.1vw, 16px); font-weight: 850; white-space: nowrap; }
.schedule-time span { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-align: center; line-height: 1; text-overflow: clip; white-space: nowrap; }
.schedule-time-remove { position: absolute; top: 50%; right: 4px; display: grid; width: 14px; min-width: 14px; height: 14px; min-height: 14px; place-items: center; padding: 0; border-radius: 50%; color: #b92d25; background: #fff2f0; border-color: #ffc9c3; font-size: 11px; line-height: 1; opacity: .58; transform: translateY(-50%); }
.schedule-time:hover .schedule-time-remove,
.schedule-time-remove:focus-visible { opacity: 1; }
.schedule-cell { min-width: 0; min-height: 44px; overflow: hidden; border-radius: 0; color: var(--ink); background: #fff; padding: 3px 4px; text-align: left; }
.schedule-cell:hover { background: #edf7f0; }
.schedule-cell.booked { position: relative; display: grid; align-content: center; cursor: grab; user-select: none; border-top: 2px solid color-mix(in srgb, currentColor 36%, transparent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.48); padding-right: 5px; padding-bottom: clamp(17px, 1.5vw, 20px); }
.schedule-cell.booked:active { cursor: grabbing; }
.schedule-cell.booked.dragging { opacity: .45; outline: 2px dashed #53675a; outline-offset: -3px; }
.schedule-cell.drop-target { position: relative; background: #e0f4e6; box-shadow: inset 0 0 0 3px var(--accent); }
.schedule-cell.drop-target::after { content: "Buraya taşı"; position: absolute; inset: 0; display: grid; place-items: center; color: #275a38; font-size: 11px; font-weight: 900; }
.schedule-cell.drop-target-invalid { position: relative; filter: saturate(.65); box-shadow: inset 0 0 0 3px #c84a43; }
.schedule-cell.drop-target-invalid::after { content: "Seans dolu"; position: absolute; inset: 0; display: grid; place-items: center; color: #8e2924; background: rgba(255, 235, 233, .88); font-size: 11px; font-weight: 900; }
.schedule-cell.booked strong { overflow: hidden; font-size: clamp(9px, .75vw, 11px); line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.schedule-cell.booked small { display: block; margin-top: 1px; overflow: hidden; color: inherit; font-size: 9px; line-height: 1.05; opacity: .82; text-overflow: ellipsis; white-space: nowrap; }
.lesson-action-stack {
  position: absolute;
  right: 4px;
  bottom: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .54);
  box-shadow: 0 1px 5px rgba(31, 31, 61, .12);
  opacity: .58;
  transition: opacity .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.schedule-cell.booked:hover .lesson-action-stack,
.schedule-cell.booked:focus-within .lesson-action-stack { background: rgba(255, 255, 255, .86); box-shadow: 0 2px 8px rgba(31, 31, 61, .18); opacity: 1; }
.lesson-complete-toggle,
.lesson-delete-toggle {
  position: static;
  display: grid;
  width: clamp(16px, 1.35vw, 20px);
  min-width: clamp(16px, 1.35vw, 20px);
  height: clamp(14px, 1.2vw, 18px);
  min-height: clamp(14px, 1.2vw, 18px);
  place-items: center;
  padding: 0;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.lesson-complete-toggle {
  border: 1px solid rgba(37, 71, 52, .4);
  background: rgba(255, 255, 255, .86);
  color: #1c7c42;
  font-size: clamp(10px, .9vw, 13px);
}
.lesson-complete-toggle.done { background: #d9f7e3; border-color: #62c984; }
.lesson-delete-toggle {
  border: 1px solid rgba(180, 47, 47, .34);
  background: rgba(255, 246, 246, .92);
  color: #b42f2f;
}
.lesson-delete-toggle svg { width: clamp(10px, .95vw, 13px); height: clamp(10px, .95vw, 13px); stroke: currentColor; fill: none; stroke-width: 2.3; }
.lesson-delete-toggle:hover,
.lesson-delete-toggle:focus-visible,
.lesson-complete-toggle:hover,
.lesson-complete-toggle:focus-visible { opacity: 1; background: #fff; border-color: currentColor; }
.schedule-cell.booked.grade-5 { color: #155c68; background: #c9f2f7; }
.schedule-cell.booked.grade-6 { color: #176a32; background: #cff8d7; }
.schedule-cell.booked.grade-7 { color: #766600; background: #fbf3b5; }
.schedule-cell.booked.grade-8 { color: #8a2862; background: #f8c9e5; }
.schedule-cell.booked.grade-9 { color: #8a410e; background: #ffd5ad; }
.schedule-cell.booked.grade-10 { color: #527a00; background: #e4ffb8; }
.schedule-cell.booked.grade-11 { color: #235b94; background: #cfe6ff; }
.schedule-cell.booked.grade-12 { color: #5a32a8; background: #ded1ff; }
.schedule-cell.booked.grade-other { color: #47535b; background: #edf1f7; }
.schedule-table.compact .schedule-corner,
.schedule-table.compact .schedule-day-head { min-height: 50px; }
.schedule-table.compact .schedule-time,
.schedule-table.compact .schedule-cell { min-height: 36px; }
.schedule-table.compact .schedule-time { font-size: clamp(12px, 1vw, 14px); }
.schedule-table.compact .schedule-time-remove { width: 14px; min-width: 14px; height: 14px; min-height: 14px; font-size: 10px; }
.schedule-table.compact .schedule-cell { padding: 2px 3px; }
.schedule-table.compact .schedule-cell.booked { padding-right: 4px; padding-bottom: 16px; }
.schedule-table.compact .lesson-action-stack { right: 3px; bottom: 2px; gap: 2px; padding: 1px; }
.schedule-table.compact .schedule-cell.booked strong { font-size: 9px; }
.schedule-table.compact .schedule-cell.booked small { font-size: 8px; }
.study-program-topbar { margin-bottom: 12px; min-width: 0; }
.study-program-navigation { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.study-program-navigation .week-controls { gap: 6px; }
.study-program-navigation .week-controls button,
.study-toolbar-actions button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.1;
  box-shadow: none;
}
.study-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(260px, 360px) minmax(160px, 190px);
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}
.study-toolbar > * { min-width: 0; }
.study-student-list-open { height: auto; min-height: 134px; padding: 8px; overflow: auto; }
.study-student-list-open option { padding: 7px 8px; border-radius: 6px; font-weight: 800; }
.study-student-search span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.study-student-search button { min-height: 42px; padding: 0 16px; }
.study-toolbar-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  justify-content: stretch;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.study-toolbar-actions button {
  width: 100%;
  max-width: none;
  min-width: 0;
  white-space: normal;
}
.study-toolbar-actions #saveStudyProgram,
.study-toolbar-actions #publishStudyProgram,
.study-toolbar-actions #printStudyProgram {
  min-width: 92px;
}
.study-program-message { margin: -3px 0 10px; text-align: right; }
.study-copy-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 340px) auto;
  align-items: end;
  gap: 12px;
  margin: -2px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(35, 37, 88, .08);
}
.study-copy-info strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}
.study-copy-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.study-copy-panel label { margin: 0; }
.study-copy-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.study-copy-actions button { white-space: nowrap; }
.smart-coaching-panel { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 14px; margin: 0 0 14px; }
.smart-coaching-controls { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.smart-compact-field { min-width: 0; }
.smart-auto-weeks { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 10px; border: 1px solid #ded8ff; border-radius: 8px; background: #fbf9ff; color: var(--ink); font-size: 13px; font-weight: 850; }
.smart-auto-weeks input { width: 18px; height: 18px; }
.smart-daily-rules { display: grid; gap: 8px; align-self: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9ff; }
.smart-daily-rules label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.smart-daily-rules input { width: 18px; height: 18px; }
.smart-workdays { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, minmax(54px, 1fr)); gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9ff; }
.smart-workdays strong { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.smart-workdays label { position: relative; display: block; min-width: 0; margin: 0; cursor: pointer; }
.smart-workdays input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.smart-workdays span { display: grid; place-items: center; min-height: 36px; border: 1px solid #ded8ff; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 900; transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.smart-workdays input:checked + span { border-color: transparent; background: linear-gradient(135deg, #7a45ff, #43c6e8); color: #fff; box-shadow: 0 8px 18px rgba(91, 69, 255, .18); }
.smart-workdays input:focus-visible + span { outline: 3px solid rgba(67, 198, 232, .32); outline-offset: 2px; }
.smart-workdays label:hover span { transform: translateY(-1px); border-color: #bfb2ff; }
.smart-folder-picker { grid-column: 1 / -1; display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.smart-folder-picker strong { color: var(--ink); font-size: 14px; }
.smart-folder-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 8px; }
.smart-folder-options label { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 38px; padding: 7px 9px; border: 1px solid #ded8ff; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; }
.smart-folder-options input { width: 16px; height: 16px; }
.smart-folder-options span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15; }
.smart-folder-options small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.smart-instruction { grid-column: 1 / -1; }
.smart-instruction textarea { min-height: 82px; resize: vertical; }
.smart-coach-insight {
  grid-column: 1 / -1;
  margin-top: -2px;
  padding: 10px 12px;
  border: 1px solid #d9f2dc;
  border-radius: 8px;
  color: #315d3b;
  background: #f2fbf4;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.smart-coaching-summary { display: grid; gap: 2px; margin: 12px 0; padding: 10px 12px; border-left: 4px solid var(--navy); background: #f4faf6; }
.smart-coaching-summary strong { color: var(--ink); }
.smart-coaching-summary span, .smart-coaching-summary small { color: var(--muted); }
.smart-plan-list { display: grid; gap: 12px; }
.smart-week-group { display: grid; gap: 8px; }
.smart-week-group h4 { margin: 0; color: var(--ink); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.smart-week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.smart-week-more { color: var(--muted); font-weight: 800; align-self: center; }
.smart-plan-card { display: grid; grid-template-columns: 34px 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fbfdfb; }
.smart-plan-card > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; }
.smart-plan-card div { display: grid; gap: 5px; }
.smart-plan-card strong { color: var(--ink); }
.smart-plan-card small, .smart-plan-card p { color: var(--muted); }
.smart-plan-card p { grid-column: 2; margin: 0; font-weight: 700; }
.smart-coaching-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.study-week-label { display: grid; gap: 4px; min-height: 40px; align-content: center; padding: 0 12px; border-left: 3px solid var(--accent); }
.study-week-label span { color: var(--muted); font-size: 11px; font-weight: 800; }
.study-week-label strong { font-size: 15px; }
.study-resource-panel { display: grid; grid-template-columns: minmax(340px, 520px) 1fr; gap: 14px; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.study-resource-panel form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 8px; }
.study-resource-list { display: flex; flex-wrap: wrap; align-content: start; gap: 7px; }
.study-resource-list > span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 6px 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: #f6f8f7; font-size: 11px; }
.study-resource-list span b { padding: 3px 5px; border-radius: 4px; background: rgba(255, 255, 255, .75); }
.study-resource-list button { width: 24px; min-height: 24px; padding: 0; color: var(--danger); background: #fff; }
.study-resource-list small { align-self: center; color: var(--muted); }
.study-board-shell { width: 100%; min-width: 0; overflow: hidden; border: 1px solid #b9c7be; border-radius: 8px; background: #fff; }
.study-board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; min-width: 0; align-items: start; }
.study-day-column { min-width: 0; border-right: 1px solid #aebbb3; }
.study-day-column:last-child { border-right: 0; }
.study-day-header { position: sticky; top: 0; z-index: 3; display: grid; min-height: 68px; place-items: center; align-content: center; gap: 4px; padding: 8px; border-bottom: 2px solid #91a198; background: #f1f5f2; text-align: center; }
.study-day-header strong { font-size: 14px; }
.study-day-header span { color: var(--muted); font-size: 12px; }
.study-day-tasks { display: grid; }
.study-task-slot { position: relative; min-width: 0; }
.study-task-cell { position: relative; display: grid; width: 100%; min-width: 0; min-height: 66px; align-content: start; gap: 1px; overflow: hidden; padding: 4px 5px; border-radius: 0; border-bottom: 1px solid #bdc8c1; color: var(--ink); background: #fff; text-align: left; font-weight: 500; }
.study-task-cell:hover { filter: none; background: #f4f8f5; }
.study-task-cell.filled.status-done,
.study-task-cell.filled.status-done:hover {
  border-bottom-color: #82d7a2;
  background: #ecfdf3;
  box-shadow: inset 5px 0 0 #22a95c;
}
.study-task-cell.filled.status-partial,
.study-task-cell.filled.status-partial:hover {
  border-bottom-color: #efaaa6;
  background: #fff1f0;
  box-shadow: inset 5px 0 0 #df514a;
}
.study-task-cell[draggable="true"] { cursor: grab; }
.study-task-cell.dragging { cursor: grabbing; opacity: .45; }
.study-task-cell.study-drop-target { outline: 3px solid var(--accent); outline-offset: -3px; background: #edf8f0; }
.study-task-cell:not(.filled) { place-items: center; align-content: center; color: #728078; }
.study-add-icon { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #b8c8be; border-radius: 50%; color: var(--accent); background: #f2f8f4; font-size: 20px; line-height: 1; }
.study-task-cell em { font-size: 10px; font-style: normal; font-weight: 700; }
.study-task-head { display: flex; align-items: start; justify-content: space-between; gap: 5px; min-width: 0; }
.study-task-head b { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 62px); padding: 1px 6px; overflow: hidden; border-radius: 4px; font-size: 9px; overflow-wrap: normal; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; word-break: normal; }
.study-task-head time { flex: 0 0 auto; color: #3f4c45; font-size: 8px; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.study-task-cell > small { color: #4d5d54; font-size: 8.5px; font-weight: 800; line-height: 1.12; }
.study-task-cell > small.study-video-indicator { color: var(--accent); }
.study-task-cell > strong { overflow-wrap: anywhere; font-size: 9.5px; line-height: 1.24; }
.study-task-block {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 2px 5px;
  border: 1px solid #e6defd;
  border-radius: 5px;
  background: #fbf8ff;
  font-size: 9px;
  line-height: 1.2;
}
.study-task-block + .study-task-block { margin-top: 1px; }
.study-task-block > span {
  color: var(--navy);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.study-task-block > em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: pre-wrap;
}
.study-task-block.video { border-color: #cceff5; background: #f2fcff; }
.study-task-head + .study-task-block.video { margin-top: -2px; }
.study-task-block.question { border-color: #ffe0b7; background: #fff8ed; }
.study-task-block.question > span { color: #9a5b00; }
.study-task-block.plain { border-color: #e5ddff; background: #fbf9ff; }
.study-task-block.plain > span { color: var(--navy); }
.study-task-cell > i { position: absolute; right: 7px; bottom: 5px; color: rgba(42, 60, 49, .55); font-size: 9px; font-style: normal; font-weight: 800; opacity: 0; }
.study-task-cell:hover > i { opacity: 1; }
.study-cell-tools { position: absolute; z-index: 3; left: 5px; bottom: 5px; display: flex; gap: 3px; }
.study-cell-tools:empty { display: none; }
.study-cell-tools button { display: grid; width: 24px; min-height: 24px; place-items: center; padding: 0; border: 1px solid #b9cabe; border-radius: 5px; color: var(--accent); background: rgba(255, 255, 255, .94); font-size: 15px; line-height: 1; }
.study-cell-tools .study-task-status-button { font-size: 13px; font-weight: 950; }
.study-cell-tools .study-task-status-button.done { border-color: #9cdeb5; color: #168245; background: #f0fff5; }
.study-cell-tools .study-task-status-button.partial { border-color: #efb8b4; color: #bd3d37; background: #fff5f4; }
.study-cell-tools .study-task-status-button.done.active { border-color: #168245; color: #fff; background: #22a95c; box-shadow: 0 3px 8px rgba(34, 169, 92, .24); }
.study-cell-tools .study-task-status-button.partial.active { border-color: #bd3d37; color: #fff; background: #df514a; box-shadow: 0 3px 8px rgba(223, 81, 74, .24); }
.study-task-slot:has(.study-cell-tools:not(:empty)) .study-task-cell { padding-bottom: 34px; }
.study-remove-row { position: absolute; z-index: 2; right: 5px; bottom: 5px; display: grid; width: 22px; min-height: 22px; place-items: center; padding: 0; border: 1px solid #e4b2ae; border-radius: 50%; color: #a33a34; background: #fff4f3; font-size: 15px; line-height: 1; opacity: .72; }
.study-remove-row:hover { opacity: 1; }
.study-task-slot:has(.study-remove-row) .study-task-cell > i { right: 32px; }
.study-add-row { width: 100%; min-height: 36px; border: 0; border-radius: 0; border-top: 1px solid #c9d4cd; font-size: 11px; }
.study-task-head .subject-math, .study-resource-list .subject-math, .study-print-task .subject-math { background: #fff3aa; }
.study-task-head .subject-turkish, .study-resource-list .subject-turkish, .study-print-task .subject-turkish { background: #bde9e8; }
.study-task-head .subject-science, .study-resource-list .subject-science, .study-print-task .subject-science { background: #c9edb7; }
.study-task-head .subject-history, .study-resource-list .subject-history, .study-print-task .subject-history { background: #ffd29c; }
.study-task-head .subject-english, .study-resource-list .subject-english, .study-print-task .subject-english { background: #e2c7ef; }
.study-task-head .subject-religion, .study-resource-list .subject-religion, .study-print-task .subject-religion { background: #f6d5bc; }
.study-task-head .subject-free-time, .study-resource-list .subject-free-time, .study-print-task .subject-free-time { background: #d9e5ec; }
.study-task-head .subject-other, .study-resource-list .subject-other, .study-print-task .subject-other { background: #edf1ef; }
.study-task-modal { width: min(720px, 100%); }
.study-task-form { display: grid; gap: 12px; }
.study-task-form textarea#studyTaskVideoLink {
  min-height: 72px;
  resize: vertical;
}
.study-no-time-option {
  margin-top: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.study-no-time-option input {
  accent-color: var(--accent);
}
#studyTaskTime.disabled {
  background: #f4f1ff;
  color: var(--muted);
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(.72rem, .72vw, .82rem);
  font-weight: 800;
  line-height: 1.3;
}
.study-task-curriculum { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9ff; }
.study-task-curriculum-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.study-task-curriculum-head strong { color: var(--ink); font-size: 13px; }
.study-task-curriculum-head span { color: var(--muted); font-size: 11px; font-weight: 800; }
.study-task-curriculum-list { display: grid; max-height: 220px; overflow: auto; gap: 6px; padding-right: 4px; }
.study-task-choice-heading {
  margin: 5px 0 0;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--navy);
  background: #edfaff;
  font-size: 11px;
  font-weight: 950;
}
.study-task-choice-heading.question { color: #9a5b00; background: #fff4dd; }
.study-task-curriculum-list label { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 7px 8px; border: 1px solid #ded8ff; border-radius: 7px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.study-task-curriculum-list label.is-planned { border-color: #bdf0d0; background: #f6fff9; box-shadow: inset 4px 0 0 #32d16f; }
.study-task-curriculum-list label.video:has(input:checked) { border-color: #bfeaf2; background: #f0fbff; box-shadow: inset 4px 0 0 #48c7dc; }
.study-task-curriculum-list label.question:has(input:checked) { border-color: #ffd69b; background: #fff7ea; box-shadow: inset 4px 0 0 #f59e0b; }
.study-task-curriculum-list label.is-planned:has(input:checked) { box-shadow: inset 4px 0 0 #32d16f, inset 8px 0 0 rgba(255, 255, 255, .65); }
.study-task-curriculum-list input { width: 16px; height: 16px; }
.study-task-curriculum-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.study-task-curriculum-list em { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; font-style: normal; }
.study-task-curriculum-list small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.study-task-curriculum-list small.curriculum-used-mark { padding: 2px 6px; border: 1px solid #a7eec0; border-radius: 999px; color: #168245; background: #dcfce7; font-size: 10px; font-weight: 900; }
.study-task-curriculum-list span.curriculum-plan-usage { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; min-width: 0; overflow: visible; white-space: normal; }
.study-task-curriculum-list small.curriculum-week-mark { padding: 2px 6px; border: 1px solid #c8d9ff; border-radius: 999px; color: #3148a0; background: #eef3ff; font-size: 10px; font-weight: 900; }
.study-task-curriculum-empty { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.study-empty { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; }
.student-folder-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.student-folder-tabs button { min-width: 180px; }
.student-folder-tabs button.active { color: #fff; background: var(--accent); }
.student-folder-content { display: grid; gap: 12px; }
.student-folder-summary, .saved-program-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.student-folder-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; }
.student-folder-summary > div, .saved-program-card header > div { display: grid; gap: 4px; }
.student-folder-summary span, .saved-program-card header span { color: var(--muted); font-size: 12px; font-weight: 800; }
.student-folder-summary strong { font-size: 24px; }
.student-folder-summary small, .saved-program-card header small { color: var(--muted); }
.saved-program-list { display: grid; gap: 10px; }
.saved-program-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; }
.saved-program-card details { border-top: 1px solid var(--line); padding: 10px 14px 14px; }
.saved-program-card summary { cursor: pointer; color: var(--accent); font-weight: 800; }
.saved-program-card ul { display: grid; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.saved-program-card li { display: grid; grid-template-columns: 145px 130px 1fr; align-items: center; gap: 8px; padding: 7px; border-bottom: 1px solid #e7ece9; font-size: 12px; }
.saved-program-card li b { padding: 4px 6px; border-radius: 4px; font-size: 10px; text-transform: uppercase; }
.empty-module { min-height: 240px; display: grid; place-items: center; border: 1px dashed #b7c7bd; border-radius: 8px; color: var(--muted); background: #fff; }
.homework-list { display: grid; gap: 12px; }
.homework-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.homework-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.homework-card header > div { display: grid; gap: 4px; }
.homework-card span { color: var(--muted); font-size: 12px; font-weight: 800; }
.homework-card small { color: var(--muted); }
.homework-card p { margin: 0; white-space: pre-wrap; font-weight: 700; }
.homework-card label { min-width: 180px; }
.homework-card select { width: 100%; }
.homework-note-field {
  display: grid;
  gap: 6px;
  min-width: 0 !important;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.homework-note-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.homework-status-select { font-weight: 900; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.homework-status-select.homework-status-unchecked { color: var(--ink); background: #fff; border-color: var(--line); }
.homework-status-select.homework-status-done { color: #1f7a45; background: #e9f9ef; border-color: #62d78d; }
.homework-status-select.homework-status-not-done { color: #aa2e3a; background: #fff0f2; border-color: #f0a4ac; }
.homework-status-select.homework-status-partial { color: #8a5600; background: #fff3dc; border-color: #efba5f; }
.homework-status-pill {
  min-width: 116px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}
.homework-status-pill.homework-status-unchecked { color: var(--ink); background: #fff; border-color: var(--line); }
.homework-status-pill.homework-status-done { color: #1f7a45; background: #e9f9ef; border-color: #62d78d; }
.homework-status-pill.homework-status-not-done { color: #aa2e3a; background: #fff0f2; border-color: #f0a4ac; }
.homework-status-pill.homework-status-partial { color: #8a5600; background: #fff3dc; border-color: #efba5f; }
.homework-teacher-note {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #ded8fb;
  border-radius: 8px;
  background: #faf8ff;
}
.homework-teacher-note p {
  font-weight: 800;
}
.student-homework-panel {
  display: grid;
  gap: 12px;
}
.institution-form { max-width: 780px; }
.institution-fixed-info {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.accounting-student-finder {
  display: grid;
  grid-template-columns: 64px minmax(250px, 380px) auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(760px, 100%);
  margin: 2px auto 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(35, 36, 79, .08);
}
.accounting-avatar {
  display: grid;
  width: 62px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 28%, #974df6, var(--accent));
  box-shadow: 0 12px 24px rgba(116, 71, 247, .18);
  font-size: 24px;
  font-weight: 950;
}
.accounting-fields { display: grid; gap: 9px; }
.accounting-fields label { color: var(--muted); font-size: 12px; font-weight: 900; text-decoration: none; }
.accounting-fields input { min-height: 36px; background: #f7f7fb; font-size: 14px; font-weight: 900; }
#accountingFindStudent { min-height: 42px; padding-inline: 16px; background: linear-gradient(90deg, #3a91ef, var(--accent)); font-size: 14px; }
.accounting-search-panel { display: grid; gap: 10px; width: min(820px, 100%); margin: -6px auto 16px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.accounting-student-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.accounting-student-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 52px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); text-align: left; }
.accounting-student-row > span:nth-child(2) { display: grid; gap: 2px; }
.accounting-student-row small { color: var(--muted); }
.accounting-student-row b { color: var(--accent); }
.accounting-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.accounting-tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}
.accounting-tabs button.active { color: var(--accent); background: #fff; border-color: var(--line); }
.accounting-panel {
  min-height: 240px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.accounting-info-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.accounting-info-grid div {
  display: grid;
  gap: 6px;
  min-height: 68px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid #eceaf7;
  border-radius: 8px;
  background: #fbfbff;
}
.accounting-info-grid div:nth-child(4n+1),
.accounting-info-grid div:nth-child(4n+2) { background: #f8f5ff; }
.accounting-info-grid span { color: #ff8f9b; font-size: 13px; font-weight: 950; text-transform: uppercase; }
.accounting-info-grid strong { color: var(--navy); font-size: 15px; }
.accounting-history-report { display: grid; gap: 12px; }
.accounting-history-report h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 950;
}
.accounting-history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.accounting-history-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
}
.accounting-history-table th,
.accounting-history-table td {
  padding: 9px 11px;
  border-right: 1px solid #e3def6;
  border-bottom: 1px solid #e3def6;
  color: var(--ink);
  text-align: left;
  vertical-align: middle;
}
.accounting-history-table th:last-child,
.accounting-history-table td:last-child { border-right: 0; }
.accounting-history-table tr:last-child td { border-bottom: 0; }
.accounting-history-table th {
  color: var(--navy);
  background: #fbfbff;
  border-bottom: 2px solid var(--navy);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}
.accounting-history-table tbody tr:nth-child(even) { background: #fbf7ff; }
.accounting-history-table td:nth-child(5),
.accounting-history-table.detail-table td:nth-child(4),
.accounting-history-table.detail-table td:nth-child(5) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.accounting-payment-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.accounting-payment-actions .compact-button {
  min-width: 62px;
  padding: 0 12px;
}
.accounting-payment-detail-button {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
}
.accounting-history-totals {
  display: grid;
  gap: 4px;
  max-width: 520px;
  color: var(--ink);
  font-size: 15px;
}
.accounting-history-totals div {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: 12px;
  align-items: center;
}
.accounting-history-totals span { color: var(--ink); }
.accounting-history-totals strong { color: var(--navy); }
.accounting-payment-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaff;
}
.payment-detail-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 950;
}
.payment-detail-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.accounting-history-table.detail-table { min-width: 720px; }
.payment-detail-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}
.payment-detail-status.closed { color: #126d3b; background: #e8f8ee; }
.payment-detail-status.partial { color: #a15e00; background: #fff4d9; }
.accounting-collection-form { display: grid; gap: 14px; max-width: 680px; }
.accounting-balance-card { display: grid; gap: 4px; padding: 18px; border-left: 5px solid var(--accent); border-radius: 8px; background: linear-gradient(90deg, rgba(116, 71, 247, .11), rgba(247, 60, 167, .06)); }
.accounting-balance-card span { color: var(--muted); font-weight: 900; }
.accounting-balance-card strong { color: var(--navy); font-size: 34px; }
.accounting-empty { min-height: 220px; display: grid; place-items: center; border: 1px dashed #d8cfef; border-radius: 8px; color: var(--muted); background: #fbfaff; font-weight: 900; }
.accounting-ledger-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.accounting-ledger-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}
.accounting-ledger-card span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.accounting-ledger-card strong { color: var(--navy); font-size: clamp(22px, 1.7vw, 28px); line-height: 1.1; }
.accounting-ledger-card.income { border-left-color: #25c46b; }
.accounting-ledger-card.expense { border-left-color: #f05261; }
.accounting-ledger-card.net { border-left-color: #48c7dd; }
.accounting-ledger-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.accounting-ledger-form { position: sticky; top: 16px; }
.currency-input { position: relative; }
.currency-input input { padding-right: 44px; }
.currency-input span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 950;
}
.accounting-ledger-list-panel {
  display: grid;
  gap: 12px;
  min-height: 420px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.accounting-ledger-list { display: grid; gap: 10px; }
.accounting-ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--paper);
}
.accounting-ledger-row.income { border-left-color: #25c46b; }
.accounting-ledger-row.expense { border-left-color: #f05261; }
.accounting-ledger-row div { display: grid; gap: 4px; min-width: 0; }
.accounting-ledger-row span,
.accounting-ledger-row small { color: var(--muted); font-weight: 900; }
.accounting-ledger-row strong { color: var(--ink); overflow-wrap: anywhere; }
.accounting-ledger-row b { color: var(--navy); font-size: 18px; white-space: nowrap; }
.accounting-ledger-row.expense b { color: #b72f3d; }
.accounting-ledger-row.income b { color: #197d49; }
.accounting-ledger-row button {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  color: #b72f3d;
  background: #fff0f0;
  border-color: #ffc4c4;
  font-size: 22px;
}
.accounting-ledger-lock {
  display: grid;
  min-width: 40px;
  min-height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #197d49;
  background: #e9f9ef;
  font-size: 12px;
  font-weight: 950;
}
.accounting-report-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.accounting-report-controls {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(160px, 220px) minmax(120px, 160px) auto;
  gap: 12px;
  align-items: end;
}
.accounting-report-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}
.accounting-report-controls button { min-height: 46px; }
.accounting-debtor-filter-panel { margin-bottom: 16px; }
#accountingDebtorsView .topbar {
  margin-bottom: 10px;
}
#accountingDebtorsView .topbar h2 {
  margin: 0 0 2px;
  font-size: 24px;
  line-height: 1.1;
}
#accountingDebtorsView .topbar p,
#accountingDebtorsView .section-head p {
  font-size: 14px;
  line-height: 1.2;
}
#accountingDebtorsView .accounting-report-panel {
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
}
#accountingDebtorsView input,
#accountingDebtorsView select {
  min-height: 38px;
}
#accountingDebtorsView .accounting-report-controls {
  gap: 8px;
}
#accountingDebtorsView .accounting-report-controls button {
  min-height: 38px;
}
#accountingDebtorsView .debtor-apply-button {
  min-height: 40px;
}
#accountingDebtorsView .debtor-range-buttons {
  gap: 8px;
}
#accountingDebtorsView .debtor-range-buttons .compact-button {
  min-height: 34px;
  padding: 6px 10px;
}
#accountingDebtorsView .section-head {
  margin-bottom: 8px;
}
#accountingDebtorsView .section-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}
#accountingDebtorListPanel .section-head {
  margin-bottom: 4px;
}
.debtor-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.debtor-list-actions button {
  min-width: 132px;
}
.debtor-date-controls { grid-template-columns: repeat(2, minmax(180px, 1fr)) minmax(150px, auto); align-items: end; }
.debtor-apply-button {
  min-height: 44px;
  padding: 9px 16px;
  white-space: nowrap;
}
.debtor-range-buttons {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}
.debtor-range-buttons .compact-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 14px;
}
.accounting-debtor-report {
  display: grid;
  gap: 8px;
  padding: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(37, 34, 82, .08);
}
.accounting-debtor-report h3 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}
.accounting-debtor-table-wrap {
  max-height: 340px;
  width: 100%;
  min-width: 0;
  overflow: auto;
  border: 1px solid #ddd7f5;
  border-radius: 8px;
  background: #fff;
}
.accounting-detail-table-wrap { overflow: auto; border-top: 2px solid #dfe4e8; }
.accounting-debtor-table, .accounting-detail-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; color: #23262d; }
.accounting-debtor-table {
  min-width: 0;
  table-layout: fixed;
}
.accounting-debtor-table th:nth-child(1), .accounting-debtor-table td:nth-child(1) { width: 23%; }
.accounting-debtor-table th:nth-child(2), .accounting-debtor-table td:nth-child(2) { width: 8%; }
.accounting-debtor-table th:nth-child(3), .accounting-debtor-table td:nth-child(3) { width: 18%; }
.accounting-debtor-table th:nth-child(4), .accounting-debtor-table td:nth-child(4) { width: 19%; }
.accounting-debtor-table th:nth-child(5), .accounting-debtor-table td:nth-child(5) { width: 18%; }
.accounting-debtor-table th:nth-child(6), .accounting-debtor-table td:nth-child(6) { width: 14%; }
.accounting-debtor-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0;
  border-right: 1px solid #ddd7f5;
  border-bottom: 2px solid var(--navy);
  background: #fbfaff;
  text-align: left;
  white-space: nowrap;
}
.accounting-detail-table th { padding: 10px 8px; border: 1px solid #dfe4e8; border-bottom: 2px solid #20242a; text-align: left; font-size: 15px; font-weight: 900; white-space: nowrap; }
.accounting-debtor-table td {
  overflow: hidden;
  padding: 7px 7px;
  border-right: 1px solid #e6e1f7;
  border-bottom: 1px solid #e6e1f7;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.accounting-detail-table td { padding: 8px; border: 1px solid #dfe4e8; font-size: 15px; white-space: nowrap; }
.accounting-debtor-table tbody tr:nth-child(odd) { background: #fff; }
.accounting-debtor-table tbody tr:nth-child(even) { background: #f8f5ff; }
.accounting-debtor-table tbody tr:hover { background: #f1ebff; }
.debtor-sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 7px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  text-align: left;
  box-shadow: none;
}
.debtor-sort-button > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.debtor-sort-button:hover { background: #f1ebff; }
.debtor-sort-arrows {
  display: inline-grid;
  gap: 0;
  color: #c9c3dc;
  font-size: 10px;
  line-height: 1;
}
.debtor-sort-arrows i {
  display: block;
  height: 10px;
  font-style: normal;
}
.debtor-sort-arrows i.active { color: var(--accent); }
.accounting-debtor-table td:nth-child(3),
.accounting-debtor-table td:nth-child(4),
.accounting-debtor-table td:nth-child(5),
.accounting-detail-table td:nth-child(4),
.accounting-detail-table td:nth-child(5),
.accounting-detail-table td:nth-child(6),
.accounting-detail-table td:nth-child(7),
.accounting-detail-table td:nth-child(8) { text-align: right; }
.debtor-detail-button { width: 100%; background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; min-height: 32px; padding-inline: 10px; font-size: 13px; }
.accounting-debtor-totals, .accounting-detail-summary { display: grid; gap: 2px; max-width: 520px; margin-top: 2px; font-size: 14px; }
.accounting-debtor-totals div, .accounting-detail-summary div { display: grid; grid-template-columns: 230px 1fr; gap: 12px; }
.accounting-debtor-range-note { margin-top: 8px; color: var(--muted); font-weight: 800; }
.accounting-detail-modal { width: min(1560px, calc((100vw - 32px) / var(--modal-scale))); padding: 0; }
.accounting-detail-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e3e5e8; }
.accounting-detail-header h2 { margin: 0; font-size: 24px; }
.accounting-detail-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.accounting-detail-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.accounting-detail-student { padding: 18px 20px 10px; font-size: 16px; }
#accountingDebtorDetailBody { padding: 0 20px 16px; }
.accounting-detail-date { color: #e51f2e; font-weight: 900; }
.accounting-status-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; color: #fff; font-weight: 900; }
.accounting-status-icon.paid { background: #2ebd59; }
.accounting-status-icon.partial { background: #ffc21a; }
.accounting-status-icon.unpaid { background: #ef334c; }
.accounting-detail-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #e3e5e8; background: #fafafa; }
.accounting-detail-actions button:first-child { background: #19a7ba; color: #fff; }
.accounting-print-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe4e8;
}
.accounting-print-header h1 { margin: 0; }
.accounting-print-header img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}
.accounting-report-body { display: grid; gap: 14px; }
.accounting-report-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.accounting-report-cards article {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.accounting-report-cards span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.accounting-report-cards strong { color: var(--navy); font-size: 18px; line-height: 1.1; }
.accounting-report-columns {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: 14px;
}
.accounting-report-columns section {
  display: grid;
  align-content: start;
  gap: 8px;
}
.accounting-report-columns h3 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 18px;
}
.accounting-report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}
.accounting-report-row.income { border-left-color: #25c46b; }
.accounting-report-row.expense { border-left-color: #f05261; }
.accounting-report-row span {
  color: var(--muted);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.accounting-report-row strong {
  color: var(--navy);
  white-space: nowrap;
}
.accounting-report-row.income strong { color: #197d49; }
.accounting-report-row.expense strong { color: #b72f3d; }
.accounting-print-report {
  padding: 18mm;
  color: #202141;
  font-family: Arial, sans-serif;
}
.accounting-print-report h1 { margin: 0 0 6px; font-size: 28px; }
.accounting-print-report h2 { margin: 20px 0 10px; font-size: 22px; }
.accounting-print-report .muted { color: #777997; font-weight: 700; }
.accounting-print-report .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.accounting-print-report .card {
  padding: 14px;
  border: 1px solid #dcd7ff;
  border-radius: 8px;
}
.accounting-print-report .card span {
  display: block;
  color: #777997;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.accounting-print-report .card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}
.accounting-print-report table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 12px;
}
.accounting-print-report th,
.accounting-print-report td {
  padding: 8px;
  border: 1px solid #dcd7ff;
  text-align: left;
  vertical-align: top;
}
.accounting-print-report th { background: #f3efff; }
.student-print-report {
  padding: 14mm;
  color: #202141;
  font-family: Arial, sans-serif;
}
.student-print-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14mm;
  margin-bottom: 8mm;
  padding-bottom: 4mm;
  border-bottom: 1px solid #dcd7ff;
}
.student-print-header h1 {
  margin: 0 0 4px;
  color: #202141;
  font-size: 24px;
}
.student-print-header p {
  margin: 0;
  color: #777997;
  font-size: 12px;
  font-weight: 700;
}
.student-print-header img {
  width: 22mm;
  height: 22mm;
  object-fit: contain;
}
.student-print-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8mm;
}
.student-print-cards article {
  padding: 10px;
  border: 1px solid #dcd7ff;
  border-radius: 8px;
  background: #fbfaff;
}
.student-print-cards span {
  display: block;
  color: #777997;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.student-print-cards strong {
  display: block;
  margin-top: 4px;
  color: #25358d;
  font-size: 20px;
}
.student-print-report table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}
.student-print-report th,
.student-print-report td {
  padding: 7px;
  border: 1px solid #dcd7ff;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.student-print-report th {
  color: #202141;
  background: #f3efff;
}
.student-print-report th:first-child,
.student-print-report td:first-child {
  width: 30px;
  text-align: center;
}
.student-print-report th:nth-child(4),
.student-print-report td:nth-child(4),
.student-print-report th:nth-child(5),
.student-print-report td:nth-child(5),
.student-print-report th:nth-child(7),
.student-print-report td:nth-child(7) {
  width: 72px;
}
.curriculum-print-report {
  padding: 12mm;
  color: #20213f;
  font-family: Arial, sans-serif;
}
.curriculum-print-report h1 { margin: 0 0 4px; font-size: 24px; }
.curriculum-print-report p { margin: 0 0 18px; color: #73748f; font-weight: 700; }
.curriculum-print-report table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.curriculum-print-report th,
.curriculum-print-report td {
  padding: 8px;
  border: 1px solid #dcd7f5;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.35;
}
.curriculum-print-report th {
  color: #20213f;
  background: #f4f1fb;
}
.curriculum-print-report th:first-child,
.curriculum-print-report td:first-child {
  width: 48px;
  text-align: center;
}
.curriculum-print-report th:nth-child(4),
.curriculum-print-report td:nth-child(4) {
  width: 90px;
  text-align: center;
}
.section-head.compact { margin-bottom: 0; }
.section-head.compact h3 { margin-bottom: 2px; }
.custom-slots { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.custom-slots > div:first-child { display: grid; grid-template-columns: minmax(170px, 260px) auto; align-items: end; gap: 8px; }
.custom-slots.hidden-slots > strong { color: var(--ink); font-size: 14px; }
.custom-slot-list { display: flex; flex-wrap: wrap; gap: 7px; }
.custom-slot-list > span { display: flex; align-items: center; gap: 6px; padding: 5px 7px 5px 10px; border-radius: 999px; color: #30543a; background: #e5f1e8; font-size: 12px; font-weight: 800; }
.custom-slot-list button { min-width: 24px; min-height: 24px; padding: 0; border-radius: 50%; color: #8f302a; background: #fff; }
.custom-slot-list small { color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: clamp(10px, 2vw, 24px); overflow: hidden; background: rgba(24, 36, 29, .48); }
.modal-backdrop > * { zoom: var(--modal-scale); }
.lesson-modal { width: min(1480px, calc((100vw - 48px) / var(--modal-scale))); max-height: calc((100vh - 48px) / var(--modal-scale)); overflow: auto; border-radius: 8px; background: #fff; padding: clamp(14px, 1.8vw, 20px); box-shadow: 0 24px 70px rgba(15, 28, 20, .25); }
.password-change-backdrop {
  z-index: 120;
  background: rgba(18, 21, 48, .78);
  backdrop-filter: blur(8px);
}
.password-change-modal {
  width: min(560px, calc((100vw - 32px) / var(--modal-scale)));
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #ded8fb;
  border-radius: 18px;
}
.password-change-modal h2 { margin: 0 0 8px; color: var(--ink); font-size: clamp(27px, 4vw, 38px); }
.password-change-modal > p:not(.modal-eyebrow) { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.password-change-icon { display: grid; width: 56px; height: 56px; margin-bottom: 18px; place-items: center; border-radius: 16px; background: #f1edff; font-size: 28px; }
.password-change-form { display: grid; gap: 14px; }
.password-change-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 850; }
.password-change-form input { width: 100%; }
.password-requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; margin: 2px 0; padding: 14px 14px 14px 34px; border-radius: 10px; color: #4f536b; background: #f8f7ff; font-size: 13px; font-weight: 720; }
.password-change-form .form-error { min-height: 22px; margin: 0; }
.password-change-form button { width: 100%; }
body.password-change-required { overflow: hidden; }
body.password-change-required .app-shell > :not(#firstLoginPasswordModal) { pointer-events: none; user-select: none; }
body.password-recovery-required { overflow: hidden; }
@media (max-width: 560px) {
  .password-requirements { grid-template-columns: 1fr; }
}
.stopwatch-modal {
  width: min(520px, calc((100vw - 48px) / var(--modal-scale)));
  display: grid;
  gap: 20px;
  text-align: center;
}
.stopwatch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}
.stopwatch-head span {
  display: block;
  margin-bottom: 4px;
  color: #f334a9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stopwatch-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
}
.stopwatch-time {
  padding: 26px 16px;
  border: 1px solid #ded8fb;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(123, 63, 245, .12), rgba(73, 205, 232, .12));
  color: var(--ink);
  font-size: clamp(54px, 8vw, 82px);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stopwatch-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.stopwatch-actions button {
  min-height: 50px;
  border-radius: 8px;
  font-weight: 900;
}
.lesson-modal-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; }
.lesson-modal-grid:has(.lesson-choice-inactive) { grid-template-columns: minmax(360px, .8fr) minmax(420px, 1fr); }
.lesson-modal-grid.has-selected-student .lesson-form { grid-column: auto; }
.student-search-panel, .lesson-form { display: grid; min-width: 0; gap: clamp(8px, 1.2vw, 12px); padding: clamp(10px, 1.4vw, 14px); border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.student-search-panel.student-selected { display: grid; }
.lesson-choice-panel.lesson-choice-collapsed > h3,
.lesson-choice-panel.lesson-choice-collapsed > label,
.lesson-choice-panel.lesson-choice-collapsed > .lesson-student-results,
.lesson-choice-panel.lesson-choice-inactive { display: none; }
.lesson-choice-panel h3, .lesson-form h3 { margin: 0; color: var(--ink); font-size: clamp(18px, 2.1vw, 22px); }
.lesson-student-row.selected {
  border-color: var(--accent);
  outline: 3px solid rgba(116, 71, 247, .34);
  background: linear-gradient(90deg, rgba(116, 71, 247, .16), rgba(151, 77, 246, .08));
  box-shadow: 0 10px 24px rgba(116, 71, 247, .16);
}
.lesson-empty-selection { grid-template-columns: 1fr; color: var(--muted); border-style: dashed; background: #fff; }
.lesson-empty-selection p { margin: 0; }
.lesson-fee-note { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.lesson-student-results { display: grid; gap: 7px; max-height: 430px; overflow: auto; }
.lesson-student-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; min-height: 62px; color: var(--ink); background: #fff; border: 1px solid var(--line); text-align: left; }
.lesson-student-row > span:nth-child(2) { display: grid; gap: 2px; }
.lesson-student-row small { color: var(--muted); }
.lesson-student-row b { color: var(--accent); }
.selected-student { display: grid; grid-template-columns: clamp(38px, 4.8vw, 46px) minmax(0, 1fr) auto; align-items: center; gap: clamp(7px, 1vw, 10px); min-width: 0; padding: clamp(9px, 1.2vw, 12px); border-left: 4px solid var(--accent); background: #edf7f0; }
.selected-student:not(.lesson-empty-selection) {
  border: 2px solid rgba(116, 71, 247, .32);
  border-left: 7px solid var(--accent);
  background: linear-gradient(90deg, rgba(116, 71, 247, .16), rgba(151, 77, 246, .08));
  box-shadow: 0 14px 30px rgba(116, 71, 247, .14);
}
.selected-student:not(.lesson-empty-selection) .avatar {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #974df6);
}
.selected-student > div:nth-child(2) { display: grid; gap: 3px; }
.selected-student strong,
.selected-student span { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }
.selected-student strong { line-height: 1.14; }
.selected-student span { color: var(--muted); font-size: 12px; }
.selected-student button { min-width: 0; padding-inline: clamp(8px, 1vw, 14px); }
.currency-input { display: grid; grid-template-columns: 1fr 42px; }
.currency-input input { border-radius: 7px 0 0 7px; }
.currency-input span { display: grid; place-items: center; border: 1px solid #ccd8d0; border-left: 0; border-radius: 0 7px 7px 0; background: #f2f5f3; font-weight: 900; }

.student-group-modal { width: min(1180px, 100%); }
.student-group-builder {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.student-group-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.student-group-panel.selected { background: #fff; }
.student-group-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.student-group-candidate-list,
.student-group-selected-list,
.student-group-saved-list {
  display: grid;
  gap: 8px;
}
.student-group-candidate-list {
  max-height: 460px;
  overflow: auto;
}
.group-student-row,
.selected-group-student,
.student-group-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.group-student-row b { color: var(--accent); }
.group-student-row span:nth-child(2),
.selected-group-student span:nth-child(2),
.student-group-card > div:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.group-student-row small,
.selected-group-student small,
.student-group-card span,
.student-group-card small {
  color: var(--muted);
}
.student-group-existing {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.student-group-card-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7447f7, #ec3ca8);
  font-weight: 900;
}

.student-list, .basket-list, .question-bank, .category-tree, .compact-form { display: grid; gap: 10px; }
#studentsView .management-grid {
  align-items: start;
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.35fr);
  gap: 14px;
}
#studentsView .question-form {
  align-self: start;
  gap: 8px;
  margin-bottom: 0;
  padding: 13px;
}
#studentsView .question-form h3 { margin-bottom: 0; }
#studentsView .question-form label { gap: 5px; }
#studentsView .question-form input,
#studentsView .question-form select {
  min-height: 36px;
  padding-block: 7px;
}
#studentsView .question-form .form-actions { margin-top: 2px; }
#studentsView #studentSaveButton {
  min-height: 46px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}
#studentsView .student-detail-toggle {
  width: fit-content;
  min-height: 30px;
  justify-self: start;
  padding: 0 10px;
  border: 1px solid #ded3ff;
  border-radius: 7px;
  color: var(--accent);
  background: #f6f1ff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}
#studentsView .student-detail-toggle:hover { background: #efe7ff; }
.student-form-details {
  display: grid;
  gap: 9px;
}
.student-form-details.hidden { display: none; }
.student-form-message {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #bfe8d1;
  border-radius: 8px;
  color: #197d49;
  background: #effbf4;
  font-size: 12px;
  font-weight: 850;
}
.student-form-message.hidden { display: none; }
#studentsView .bank-section {
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  max-height: calc(100vh - 180px);
  overflow: hidden;
  gap: 8px;
}
#studentsView .section-head {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, auto);
  align-items: end;
  gap: 10px;
  margin-bottom: 0;
}
#studentsView .section-head h3 {
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 1.1;
}
#studentsView .section-head p {
  font-size: 12px;
  line-height: 1.2;
}
#studentsView #studentList {
  align-content: start;
  align-items: start;
  max-height: calc(100vh - 500px);
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}
#studentsView #studentList::-webkit-scrollbar { width: 8px; }
#studentsView #studentList::-webkit-scrollbar-track { background: #f4efff; border-radius: 999px; }
#studentsView #studentList::-webkit-scrollbar-thumb { background: #d6c9ff; border-radius: 999px; }
#studentsView #studentList::-webkit-scrollbar-thumb:hover { background: #bca8ff; }
.student-list-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.student-list-actions > button {
  min-height: 38px;
  padding-inline: 13px;
  white-space: nowrap;
  font-size: 12px;
}
.student-search-field { width: clamp(220px, 24vw, 310px); min-width: 0; gap: 3px; }
.student-search-field span { color: var(--muted); font-size: 11px; font-weight: 900; }
.student-search-field input { min-height: 38px; padding-block: 8px; border-color: #dcd4fb; background: #fff; font-size: 13px; font-weight: 750; }
.student-search-field input:focus { outline: 3px solid rgba(116, 71, 247, .16); border-color: var(--accent); }
.student-list:has(.student-row) { gap: 7px; }
.student-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: -2px;
}
.student-chart-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 14px;
  min-height: 154px;
  padding: 12px 14px;
  border: 1px solid #e4dcfb;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbf9ff);
}
.student-chart-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.2;
}
.student-chart-card p {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 950;
}
.student-donut {
  grid-row: 1;
  grid-column: 2;
  width: 116px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#e7e0f6 0 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(44, 37, 73, .08);
}
.student-donut::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(44, 37, 73, .06);
}
.student-chart-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
  min-width: 0;
}
.student-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f5f2ff;
  color: #463a65;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}
.student-chart-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f5f2ff;
  color: #463a65;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
.student-chart-filter:hover,
.student-chart-filter:focus-visible {
  border-color: #9c7cf9;
  background: #eee8ff;
  transform: none;
}
.student-chart-filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 12px rgba(116, 71, 247, .22);
}
.student-chart-filter.is-active b { color: #fff; }
.student-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.student-chart-legend b { color: var(--navy); }
.student-chart-empty { color: var(--muted); }
.student-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 7px 9px;
  border: 1px solid #e3def5;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 18px rgba(35, 36, 79, .035);
}
.avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); font-size: 14px; font-weight: 950; }
.student-info { display: grid; gap: 2px; min-width: 0; }
.student-info strong { color: var(--ink); font-size: 14px; line-height: 1.08; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-info > span, .student-info small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.student-info > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-info small { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; overflow: hidden; line-height: 1.15; }
.student-info small span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
.student-info small b { color: var(--navy); font-size: 11px; font-weight: 900; }
.student-info-button {
  width: 36px;
  min-width: 36px;
  padding-inline: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #45c7df, #7a2ff0);
  border-color: transparent;
  font-size: 16px;
  font-weight: 950;
  font-family: Georgia, serif;
  line-height: 1;
}
.student-info-button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(122, 47, 240, .2);
}
.student-detail-backdrop {
  place-items: start center;
  padding-top: clamp(18px, 8vh, 72px);
  background: rgba(31, 28, 64, .24);
}
.student-detail-modal {
  width: min(470px, calc((100vw - 28px) / var(--modal-scale)));
  max-height: calc((100vh - 42px) / var(--modal-scale));
  padding: 18px;
  overflow: auto;
  box-shadow: 0 24px 72px rgba(31, 28, 64, .24);
}
.student-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.student-detail-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.15;
}
.student-detail-body { display: grid; gap: 12px; }
.student-detail-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e4dcfb;
  border-radius: 8px;
  background: #fbf9ff;
}
.student-detail-summary strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}
.student-detail-summary span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.student-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.student-detail-grid div,
.student-login-copy > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #e4dcfb;
  border-radius: 8px;
  background: #fff;
}
.student-detail-grid span,
.student-login-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.student-detail-grid strong,
.student-login-copy strong {
  min-width: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.student-login-copy {
  display: grid;
  gap: 8px;
}
.student-login-copy > div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.student-login-copy span,
.student-login-copy strong { grid-column: 1; }
.student-login-copy button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}
.student-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 5px; }
.student-actions button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
#studentsView .student-actions button[data-preview-student] {
  color: #fff;
  background: linear-gradient(135deg, #39469c, #6f48e8);
  box-shadow: 0 8px 18px rgba(70, 63, 190, .14);
}
#studentsView .student-actions button[data-preview-student]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(70, 63, 190, .2);
}
.student-actions .icon-button:not(.student-info-button) {
  width: auto;
  min-width: 42px;
}
#studentsView .student-actions .student-info-button {
  width: 36px;
  min-width: 36px;
  padding-inline: 0;
}
#studentsView .student-actions .student-delete-button {
  width: 34px;
  min-width: 34px;
  padding-inline: 0;
  color: #b4251e;
  font-size: 19px;
  line-height: 1;
}

.admin-users-grid { grid-template-columns: minmax(360px, 520px) minmax(420px, 1fr); }
.platform-organization-panel { grid-column: 1 / -1; margin-bottom: 0; border-color: #cfc3f3; background: linear-gradient(135deg, #fbf9ff, #f3f8ff); }
.organization-provision-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.organization-provision-status.success { color: #247548; }
.organization-provision-status.error { color: #b4251e; }
.platform-subscription-panel { grid-column: 1 / -1; }
.platform-subscription-list { display: grid; gap: 10px; }
.platform-subscription-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(135px, .7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #ded8f8;
  border-radius: 12px;
  background: #fff;
}
.platform-subscription-card .student-info { align-self: center; }
.platform-subscription-card label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 900; }
.platform-subscription-card select,
.platform-subscription-card input { min-height: 42px; }
.platform-subscription-card button { min-height: 42px; white-space: nowrap; }
@media (max-width: 1100px) {
  .platform-subscription-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-subscription-card .student-info { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .platform-subscription-card { grid-template-columns: 1fr; }
  .platform-subscription-card .student-info { grid-column: auto; }
}
.subscription-admin-panel { grid-column: 1 / -1; }
.security-monitor-panel { grid-column: 1 / -1; }
.security-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.security-summary-card { display: grid; gap: 3px; min-height: 112px; padding: 16px; border: 1px solid #ddd8f3; border-radius: 12px; background: #faf9ff; }
.security-summary-card strong { color: var(--navy); font-size: 30px; line-height: 1; }
.security-summary-card span { color: var(--ink); font-weight: 900; }
.security-summary-card small { color: var(--muted); }
.security-summary-card.safe { border-color: #bde8cb; background: #f1fbf4; }
.security-summary-card.warning { border-color: #f1d596; background: #fff9e9; }
.security-summary-card.danger { border-color: #f1b7b1; background: #fff1ef; }
.security-monitor-status { margin: 14px 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.security-event-list { display: grid; gap: 8px; }
.security-notification-inbox { display: grid; gap: 9px; margin-bottom: 14px; }
.security-notification-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid #efb2ac; border-left: 5px solid #d84444; border-radius: 12px; background: #fff7f6; }
.security-notification-card.read { border-color: var(--line); border-left-color: #a9a2bb; background: #faf9fd; opacity: .78; }
.security-notification-card > div { display: grid; gap: 4px; }
.security-notification-card strong { color: var(--navy); }
.security-notification-card small { color: var(--muted); line-height: 1.45; }
.security-event-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.security-event-row > div { display: grid; gap: 3px; }
.security-event-row small, .security-event-row time { color: var(--muted); font-size: 12px; }
.security-event-dot { width: 10px; height: 10px; border-radius: 999px; background: #8a7abf; }
.security-event-row.success .security-event-dot { background: #32a65a; }
.security-event-row.warning .security-event-dot { background: #e18a2c; }
.security-event-row.danger { border-color: #f1b7b1; background: #fff7f6; }
.security-event-row.danger .security-event-dot { background: #d84444; }
.security-event-row.info .security-event-dot { background: #6851d8; }
.subscription-plan-form { display: grid; gap: 12px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.subscription-module-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5def7;
  border-radius: 8px;
  background: #fbfaff;
}
.subscription-module-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #eee8fb;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}
.subscription-module-card input { width: 16px; min-height: 16px; accent-color: var(--accent); }
.subscription-module-card span { display: grid; gap: 2px; min-width: 0; }
.subscription-module-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.subscription-plan-list { display: grid; gap: 10px; margin-top: 12px; }
.subscription-plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.subscription-plan-card strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 950;
}
.subscription-plan-card span,
.subscription-plan-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.subscription-plan-card .campaign-note { color: var(--pink); }
.permission-panel { display: grid; gap: 10px; }
.permission-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.permission-list { display: grid; gap: 10px; }
.permission-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid #e5def7; border-radius: 8px; background: #fbfaff; }
.permission-group legend { padding: 0 6px; color: var(--navy); font-size: 13px; font-weight: 900; }
.permission-group label { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 8px; border: 1px solid #eee8fb; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; }
.permission-group input { width: 16px; min-height: 16px; accent-color: var(--accent); }
.user-access-list { display: grid; gap: 10px; }
.user-access-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.user-access-card.locked { background: linear-gradient(90deg, rgba(116, 71, 247, .06), rgba(247, 60, 167, .04)); }
.user-type-badge { display: inline-flex; align-items: center; min-height: 22px; margin-left: 6px; padding: 0 8px; border-radius: 999px; color: #fff; background: var(--accent); font-size: 11px; font-style: normal; font-weight: 900; vertical-align: middle; }
.locked-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; color: var(--accent); background: #f3efff; font-size: 12px; font-weight: 900; white-space: nowrap; }
.question-bank-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfaff;
  color: var(--muted);
  text-align: center;
}
.question-bank-empty strong {
  color: var(--navy);
  font-size: 18px;
}
.question-bank-empty span {
  font-size: 13px;
}
.question-bank { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
#questionsView.basket-mode #bankSection { display: none; }
.question-focus-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #bdf4df;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8fff7, #f8f2ff);
}
.question-focus-bar div {
  display: grid;
  gap: 3px;
}
.question-focus-bar strong {
  color: var(--navy);
  font-size: 16px;
}
.question-focus-bar span {
  color: #53625a;
  font-size: 12px;
  font-weight: 850;
}
.question-focus-bar button {
  flex: 0 0 auto;
}
.question-card, .basket-item { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.question-card { position: relative; }
.question-card img { display: block; width: 100%; height: 156px; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); }
.buyer-question-tools {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.buyer-question-tools button {
  display: grid;
  width: 30px;
  min-height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid #decfff;
  border-radius: 8px;
  color: #6847d8;
  background: #f3edff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}
.buyer-question-tools button.active {
  color: #fff;
  border-color: #8f6cff;
  background: linear-gradient(135deg, #8a4df6, #38bfd6);
}
.buyer-question-tools svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.image-editor-modal { width: min(1580px, calc((100vw - 24px) / var(--modal-scale))); }
.image-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 16px; align-items: start; }
.image-editor-preview { display: grid; min-height: 420px; place-items: center; overflow: visible; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, #fbfaff, #fff); }
.image-editor-stage { position: relative; display: inline-grid; max-width: 100%; cursor: crosshair; touch-action: none; }
.image-editor-preview canvas { display: block; max-width: 100%; max-height: 68vh; border-radius: 6px; background: #fff; box-shadow: 0 12px 38px rgba(26, 32, 44, .16); }
.image-crop-selection {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 2px dashed #fff;
  outline: 2px solid rgba(84, 213, 235, .9);
  background: rgba(84, 213, 235, .14);
  box-shadow: 0 0 0 9999px rgba(31, 35, 64, .34);
}
.image-crop-confirm {
  position: absolute;
  z-index: 3;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 9px;
  background: linear-gradient(90deg, #54d5eb, #8d39f5);
  box-shadow: 0 12px 28px rgba(35, 36, 79, .22);
}
.image-editor-controls { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaff; }
.image-editor-controls label { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 900; }
.image-editor-controls input[type="range"] { width: 100%; min-height: 26px; accent-color: var(--accent); }
.image-editor-hint { color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.35; }
.openai-clean-status { padding: 9px 10px; border-radius: 8px; background: #f2f8f3; color: #31553a; }
.openai-clean-review { position: fixed; inset: 8px; z-index: 9999; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .99); box-shadow: 0 24px 80px rgba(15, 28, 20, .28); overflow: hidden; }
.openai-clean-review figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; margin: 0; min-width: 0; min-height: 0; }
.openai-clean-review img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.openai-clean-review figcaption { color: var(--muted); font-size: 18px; font-weight: 900; text-align: center; }
.openai-clean-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 280px) minmax(220px, 360px); justify-content: center; gap: 12px; }
.openai-clean-actions button { min-width: 0; white-space: normal; }
.image-editor-controls .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.image-editor-controls .form-actions button:last-child { grid-column: 1 / -1; }
.question-body, .basket-item { padding: 9px; }
.question-card:has(.buyer-question-tools) .question-body { padding-top: 8px; }
.question-body p { min-height: 28px; font-size: 12px; line-height: 1.38; }
.question-uploader-badge {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  padding: 5px 7px;
  border: 1px solid #ded5ff;
  border-radius: 7px;
  background: #f7f3ff;
  box-shadow: inset 3px 0 0 #54d5eb;
}
.question-uploader-badge > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #54d5eb, #8d39f5);
  font-size: 12px;
  font-weight: 950;
}
.question-uploader-badge strong {
  display: inline;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.question-uploader-badge small {
  display: inline;
  overflow: hidden;
  margin-left: 5px;
  color: #68708c;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.answer-comparison { display: grid; gap: 3px; margin: 8px 0; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; }
.missing-answer { margin: 8px 0; padding: 9px; border: 1px solid #e6b2ad; border-radius: 6px; color: var(--danger); background: #fff5f4; }
.missing-answer span { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.missing-answer input { min-height: 36px; }
.missing-answer button { min-height: 36px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { border-radius: 999px; color: #31553a; background: #e8f2ea; font-size: 11px; font-weight: 800; padding: 4px 8px; }
.tag.gold { color: #624600; background: #fff2c9; }
.status-pending { color: #8b3e18; background: #ffe8d8; }
.status-new { color: #8b3e18; background: #ffe8d8; }
.status-working { color: #8b3e18; background: #ffe8d8; }
.status-solved { color: #28613a; background: #dff2e4; }
.status-repeat { color: #24558b; background: #e1efff; }
.status-exam_review { color: #64227e; background: #f2e1ff; }
.question-card .actions { display: grid; grid-template-columns: minmax(96px, max-content) minmax(150px, 1fr) minmax(64px, auto); gap: 8px; margin-top: 8px; }
.question-card .actions select { min-width: 0; }
.question-card .actions button, .question-card .actions select { min-height: 34px; border-radius: 7px; font-size: 12px; }
.question-card .actions button { white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }
.question-card .actions .status-select { border-width: 1px; font-weight: 800; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.status-select-pending,
.status-select-new,
.status-select-working { color: #8b3e18; background: #ffe8d8; border-color: #f0b995; }
.status-select-solved { color: #28613a; background: #dff2e4; border-color: #9fcbae; }
.status-select-repeat { color: #24558b; background: #e1efff; border-color: #a9cdf4; }
.status-select-exam_review { color: #64227e; background: #f2e1ff; border-color: #d5a9f4; }
.status-select option { color: var(--ink); background: #fff; }
.in-basket-button { color: var(--accent); background: #e7f1ea; border: 1px solid #bdd5c4; }
.filters { display: grid; grid-template-columns: 160px 150px 150px minmax(170px, 1fr); gap: 8px; }
.filters.buyer-folder-detail { grid-template-columns: 150px minmax(170px, 1fr); }
.basket-item { position: relative; display: grid; grid-template-columns: 22px 82px minmax(0, 1fr) auto; align-items: center; gap: 9px; cursor: grab; transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
.basket-item:active { cursor: grabbing; }
.basket-item.dragging { opacity: .45; }
.basket-item.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent); }
.basket-drag-handle { color: #829087; font-size: 20px; letter-spacing: -5px; }
.basket-thumbnail { width: 82px; height: 58px; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.basket-content { display: grid; gap: 6px; min-width: 0; }
.basket-title { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; }
.landscape-toggle { justify-self: start; display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; color: #53625a; background: #fff; border: 1px solid var(--line); font-size: 11px; }
.landscape-toggle span { font-size: 19px; line-height: 1; }
.landscape-toggle.active { color: #573f00; background: #ffe58b; border-color: #e2b719; }
.basket-landscape-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #6d5600;
  background: #fff2a8;
  border: 1px solid #e4c535;
  font-size: 11px;
  font-weight: 900;
}
.basket-actions { display: flex; gap: 6px; }
.basket-actions button { flex: 1; min-height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; }
.basket-actions .basket-remove-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
}
.basket-actions .basket-remove-icon * { pointer-events: none; }
.basket-remove-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.basket-item:has(.basket-landscape-pill) .basket-content { gap: 5px; }
.buyer-print-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 8px 0 10px;
}
.buyer-print-actions button { min-width: 88px; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14px; }
.print-check {
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f6f4;
}

.file-picker { display: grid; min-height: 44px; place-items: center; border: 1px dashed #afc2b5; border-radius: 7px; color: var(--accent); background: #f5faf7; cursor: pointer; padding: 12px; }
.file-picker.large { min-height: 110px; }
.file-picker input { display: none; }
.category-group { border-left: 3px solid var(--accent); padding-left: 10px; }
.category-group strong { display: block; margin-bottom: 5px; font-size: 14px; }
.category-group span { display: inline-block; margin: 0 5px 5px 0; padding: 4px 8px; border-radius: 999px; background: #edf4ef; font-size: 12px; }
.curriculum-panel { max-width: 1120px; }
.curriculum-form {
  grid-template-columns: minmax(220px, 360px) auto;
  align-items: center;
  justify-content: end;
  gap: 8px;
  width: min(560px, 100%);
  margin-left: auto;
}
.curriculum-form input { min-height: 36px; font-size: 13px; }
.curriculum-form button { min-height: 36px; padding-inline: 14px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.curriculum-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.curriculum-group-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}
.curriculum-group-tabs button.active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}
.curriculum-group-tabs small {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(111, 76, 255, .12);
  font-size: 11px;
}
.curriculum-group-tabs button.active small { background: rgba(255,255,255,.18); }
.curriculum-folder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.curriculum-folder-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
}
.curriculum-folder-card.active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); background: #fbf8ff; }
.curriculum-folder-main {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "number badge" "number title" "number meta";
  gap: 1px 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.curriculum-folder-card em {
  grid-area: badge;
  align-self: end;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  color: #24546b;
  background: #e9f8fb;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}
.curriculum-folder-number {
  grid-area: number;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #49cce4, #8d4bf4);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
}
.curriculum-folder-card strong { grid-area: title; font-size: 16px; line-height: 1.1; text-transform: none; }
.curriculum-folder-card small { grid-area: meta; color: var(--muted); font-weight: 800; font-size: 12px; }
.curriculum-folder-delete {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffd0cc;
  border-radius: 8px;
  background: #fff3f1;
  color: #b42318;
  font-size: 18px;
  font-weight: 900;
  padding: 0;
}
.curriculum-select-hint {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfbff;
  font-weight: 800;
}
.curriculum-detail-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(56vh, 620px);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  overflow: hidden;
}
.curriculum-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.curriculum-detail-head span { color: var(--pink); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.curriculum-detail-head h4 { margin: 2px 0 0; font-size: 20px; }
.curriculum-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.curriculum-save-button { background: linear-gradient(90deg, #54d5eb, #8d39f5); }
.curriculum-save-message { min-height: 18px; margin: -4px 0 8px; font-weight: 900; }

.messages-module {
  min-height: calc(100vh - 46px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}
.messages-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 24px;
  border-radius: 8px;
  background: #172a4f;
  color: #fff;
  box-shadow: 0 14px 34px rgba(23, 42, 79, .14);
}
.messages-hero-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.messages-hero-icon svg,
.messages-empty svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.messages-hero h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.messages-hero p { margin: 6px 0 0; color: #c8d2e8; font-weight: 750; }
.messages-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}
.messages-layout.messages-list-collapsed { grid-template-columns: 92px minmax(0, 1fr); }
.messages-layout.messages-list-collapsed .messages-sidebar { grid-template-rows: auto minmax(0, 1fr); }
.messages-layout.messages-list-collapsed .messages-sidebar-head div,
.messages-layout.messages-list-collapsed .messages-tabs,
.messages-layout.messages-list-collapsed .messages-bulk-button,
.messages-layout.messages-list-collapsed .messages-search,
.messages-layout.messages-list-collapsed .message-recipient span:not(.message-recipient-avatar),
.messages-layout.messages-list-collapsed .message-recipient time { display: none; }
.messages-layout.messages-list-collapsed .messages-sidebar-head { justify-content: center; padding: 14px; }
.messages-layout.messages-list-collapsed .messages-recipient-list { padding: 12px; }
.messages-layout.messages-list-collapsed .message-recipient {
  min-height: 54px;
  grid-template-columns: 46px;
  justify-content: center;
  padding: 8px;
}
.messages-sidebar,
.messages-chat {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.messages-sidebar {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}
.messages-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: #25467c;
  color: #fff;
}
.messages-sidebar-head h3 { margin: 0; font-size: 22px; }
.messages-sidebar-head p { margin: 4px 0 0; color: #d9e3f3; font-weight: 750; }
.messages-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 14px 14px 10px;
  padding: 5px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #eef3fb;
}
.messages-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4c4a47;
  font-weight: 900;
}
.messages-tabs button.active {
  background: #fff;
  color: #172a4f;
  box-shadow: 0 4px 12px rgba(23, 42, 79, .12);
}
.messages-bulk-button {
  min-height: 48px;
  margin: 0 14px 12px;
  border: 0;
  border-radius: 8px;
  background: #25467c;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(37, 70, 124, .15);
}
.messages-search {
  display: grid;
  gap: 6px;
  margin: 0 14px 12px;
  color: #777790;
  font-size: 12px;
  font-weight: 850;
}
.messages-search input {
  height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
}
.messages-recipient-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0 14px 16px;
}
.message-recipient {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e2e6ef;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #1f1f2f;
  text-align: left;
}
.message-recipient.active {
  border-color: #25467c;
  background: #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(37, 70, 124, .18);
}
.message-recipient-avatar,
.messages-person span {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #25467c;
  color: #fff;
  font-weight: 950;
}
.message-recipient-avatar { width: 46px; height: 46px; }
.message-recipient strong,
.message-recipient small,
.message-recipient em {
  min-width: 0;
  display: block;
}
.message-recipient strong { font-size: 15px; }
.message-recipient small { margin-top: 3px; color: #777790; font-weight: 750; }
.message-recipient em { margin-top: 5px; color: #706a64; font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-recipient time { align-self: start; color: #777790; font-size: 12px; font-weight: 800; }
.messages-empty {
  height: 100%;
  min-height: 480px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: #77736f;
}
.messages-empty svg { width: 64px; height: 64px; margin-bottom: 22px; color: #77736f; stroke-width: 1.4; }
.messages-empty h3 { margin: 0; color: #141420; font-size: 24px; }
.messages-empty p { margin: 8px 0 0; font-weight: 750; }
.messages-chat-room {
  height: 100%;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.messages-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #eef3fb;
  border-bottom: 1px solid #dbe3ee;
}
.messages-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.messages-person span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: #fff;
  color: #25467c;
  box-shadow: inset 0 0 0 1px #dbe3ee;
}
.messages-person h3 { margin: 0; font-size: 21px; }
.messages-person p { margin: 3px 0 0; color: #686764; font-weight: 750; }
.messages-thread {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: #fff;
}
.message-day {
  align-self: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f0f3f8;
  color: #69635d;
  font-size: 12px;
  font-weight: 900;
}
.message-bubble {
  max-width: min(520px, 78%);
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef3fb;
  color: #20203d;
  box-shadow: 0 8px 18px rgba(32, 32, 61, .06);
}
.message-bubble.outgoing {
  align-self: flex-end;
  background: #25467c;
  color: #fff;
}
.message-bubble.incoming { align-self: flex-start; }
.message-bubble p { margin: 0; white-space: pre-wrap; }
.message-bubble small {
  justify-self: end;
  color: inherit;
  opacity: .72;
  font-size: 11px;
  font-weight: 800;
}
.messages-composer {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 130px;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #dbe3ee;
  background: #fff;
}
.messages-composer input {
  min-width: 0;
  height: 52px;
  border: 2px solid #d6dde9;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
}
.messages-composer button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: #f4a77e;
  color: #fff;
  font-weight: 950;
  font-size: 15px;
}
.messages-composer .messages-attach {
  background: #eef3fb;
  color: #25467c;
  box-shadow: inset 0 0 0 1px #dbe3ee;
}
.messages-bulk-modal {
  display: grid;
  gap: 14px;
}
.modal#bulkMessageModal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 29, 52, .42);
}
.modal#bulkMessageModal.hidden { display: none !important; }
.messages-bulk-modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(18, 29, 52, .26);
}
.messages-bulk-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #eef3fb;
  color: #172a4f;
  font-weight: 950;
}
.messages-bulk-modal h3 { margin: 0; font-size: 22px; }
.messages-bulk-modal .modal-description { margin: 0; color: #777790; font-weight: 750; }
.messages-bulk-modal label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}
.messages-bulk-modal select,
.messages-bulk-modal textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}
.messages-bulk-modal textarea { resize: vertical; }

.messages-module {
  height: min(720px, calc(100vh - 108px));
  min-height: 560px;
  max-height: 720px;
  overflow: hidden;
  gap: 12px;
}
.messages-hero {
  min-height: 66px;
  padding: 12px 18px;
  gap: 12px;
  background: linear-gradient(135deg, #743cf2 0%, #944dff 58%, #43c6e8 100%);
  box-shadow: 0 12px 28px rgba(116, 60, 242, .16);
}
.messages-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
}
.messages-hero-icon svg { width: 23px; height: 23px; }
.messages-hero h2 { font-size: 22px; }
.messages-hero p { margin-top: 2px; color: rgba(255,255,255,.82); font-size: 13px; }
.messages-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.messages-sidebar,
.messages-chat {
  border-color: #e1def4;
  box-shadow: 0 10px 26px rgba(80, 54, 160, .08);
}
.messages-sidebar-head {
  min-height: 58px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #743cf2 0%, #944dff 100%);
}
.messages-sidebar-head h3 { font-size: 18px; }
.messages-sidebar-head p { margin-top: 2px; color: rgba(255,255,255,.78); font-size: 12px; }
.messages-sidebar-head .compact-button {
  min-width: 34px;
  min-height: 34px;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.14);
  color: #fff;
}
.messages-tabs {
  margin: 10px 10px 8px;
  padding: 4px;
  background: #f4f0ff;
  border-color: #ded6ff;
}
.messages-tabs button {
  min-height: 34px;
  font-size: 13px;
  color: #5f5678;
}
.messages-tabs button.active {
  color: #4e2ac5;
  box-shadow: 0 5px 14px rgba(116, 60, 242, .12);
}
.messages-bulk-button {
  min-height: 38px;
  margin: 0 10px 8px;
  background: linear-gradient(135deg, #743cf2, #944dff);
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(116, 60, 242, .16);
}
.messages-search {
  margin: 0 10px 8px;
  gap: 4px;
  font-size: 11px;
}
.messages-search input {
  height: 36px;
  border-color: #ded6ff;
  font-size: 12px;
}
.messages-recipient-list {
  overflow-y: auto;
  gap: 7px;
  padding: 0 10px 12px;
}
.messages-recipient-list::-webkit-scrollbar { width: 8px; }
.messages-recipient-list::-webkit-scrollbar-track { background: #f4f0ff; border-radius: 999px; }
.messages-recipient-list::-webkit-scrollbar-thumb { background: #cbbcff; border-radius: 999px; }
.message-recipient {
  min-height: 58px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 8px 9px;
  border-color: #e8e3fb;
}
.message-recipient.active {
  border-color: #8d39f5;
  background: #f5f1ff;
  box-shadow: inset 0 0 0 1px rgba(141, 57, 245, .18);
}
.message-recipient-avatar,
.messages-person span {
  background: linear-gradient(135deg, #743cf2, #944dff);
}
.message-recipient-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.message-recipient strong {
  font-size: 12.5px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-recipient small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-recipient em {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 650;
}
.message-recipient time { font-size: 10.5px; }
.messages-empty { min-height: 360px; }
.messages-empty svg { width: 48px; height: 48px; margin-bottom: 14px; color: #8d39f5; }
.messages-empty h3 { font-size: 20px; }
.messages-empty p { font-size: 13px; }
.messages-chat-room { min-height: 0; }
.messages-chat-head {
  padding: 12px 16px;
  background: #f6f2ff;
  border-color: #e1def4;
}
.messages-person span {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  color: #fff;
  box-shadow: none;
}
.messages-person h3 { font-size: 18px; }
.messages-person p { font-size: 12px; }
.messages-thread { padding: 20px 18px; gap: 10px; }
.message-day {
  padding: 5px 11px;
  background: #f4f0ff;
  color: #65518f;
  font-size: 11px;
}
.message-bubble {
  padding: 10px 12px;
  background: #f4f0ff;
  font-size: 13px;
}
.message-bubble.outgoing {
  background: linear-gradient(135deg, #743cf2, #944dff);
}
.message-attachments {
  display: grid;
  gap: 8px;
}
.message-attachment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: min(360px, 100%);
  padding: 7px;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  color: inherit;
  text-decoration: none;
}
.message-attachment.is-blocked { cursor: not-allowed; opacity: .72; border-style: dashed; }
.message-bubble.incoming .message-attachment {
  border: 1px solid #e8e3fb;
  background: #fff;
  color: #20203d;
}
.message-attachment img,
.message-attachment span {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}
.message-attachment img {
  object-fit: cover;
  background: #fff;
}
.message-attachment span {
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.82);
  color: #743cf2;
  font-size: 10px;
  font-weight: 950;
}
.message-bubble.incoming .message-attachment span { background: #f4f0ff; }
.message-attachment strong,
.message-attachment small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-attachment strong { font-size: 12px; }
.message-attachment small { font-size: 10px; opacity: .72; }
.messages-composer {
  grid-template-columns: 42px minmax(0, 1fr) 104px;
  gap: 8px;
  padding: 12px 16px;
  border-color: #e1def4;
}
.messages-composer input {
  height: 42px;
  border: 1px solid #ded6ff;
  font-size: 13px;
}
.messages-composer button {
  min-height: 42px;
  background: linear-gradient(135deg, #743cf2, #944dff);
  font-size: 13px;
}
.messages-composer .messages-attach {
  background: #f4f0ff;
  color: #743cf2;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px #ded6ff;
}
#messagesView.messages-student-mode .messages-tabs,
#messagesView.messages-student-mode .messages-bulk-button,
#messagesView.messages-student-mode .messages-search {
  display: none;
}
#messagesView.messages-student-mode .messages-sidebar {
  grid-template-rows: auto minmax(0, 1fr);
}
.messages-layout.messages-list-collapsed { grid-template-columns: 70px minmax(0, 1fr); }
.messages-layout.messages-list-collapsed .messages-recipient-list { padding: 9px; }
.messages-layout.messages-list-collapsed .message-recipient {
  min-height: 46px;
  grid-template-columns: 34px;
  padding: 6px;
}
.curriculum-table-wrap { overflow: auto; min-height: 0; border: 1px solid var(--line); border-radius: 8px; }
.curriculum-table { width: 100%; border-collapse: collapse; min-width: 940px; table-layout: fixed; }
.curriculum-table th, .curriculum-table td { padding: 4px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.curriculum-table th:first-child, .curriculum-table td:first-child { width: 54px; text-align: center; }
.curriculum-table th:nth-child(2), .curriculum-table td:nth-child(2) { width: 18%; }
.curriculum-table th:nth-child(4), .curriculum-table td:nth-child(4) { width: 105px; }
.curriculum-table th:last-child, .curriculum-table td:last-child { width: 44px; border-right: 0; text-align: center; }
.curriculum-table th { color: var(--ink); background: #f6f3ff; font-size: 11px; font-weight: 850; }
.curriculum-table thead th { position: sticky; top: 0; z-index: 1; }
.curriculum-table td { color: var(--muted); font-size: 11px; font-weight: 650; }
.curriculum-table tr:last-child td { border-bottom: 0; }
.curriculum-table td:first-child { color: var(--ink); }
.curriculum-cell-input {
  width: 100%;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 10.5px;
  font-weight: 620;
  line-height: 1.18;
  padding: 3px 5px;
  resize: vertical;
}
.curriculum-cell-input:hover, .curriculum-cell-input:focus { border-color: var(--line); background: #fff; outline: none; }
.curriculum-cell-input.small, .curriculum-cell-input.duration { text-align: center; }
.curriculum-empty { display: grid; gap: 6px; border: 1px dashed var(--line); border-radius: 12px; padding: 18px; color: var(--muted); background: #fff; }
.curriculum-empty strong { color: var(--ink); }
.curriculum-empty.slim { margin-top: 8px; }
.module-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.module-tabs button { min-width: 180px; }
.module-tabs button.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.brand-settings-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr); gap: 16px; align-items: stretch; }
.brand-logo-picker { min-height: 150px; }
.brand-logo-preview { display: grid; min-height: 150px; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.brand-logo-preview img { width: min(170px, 100%); max-height: 170px; object-fit: contain; }
.brand-settings-grid .color-row { grid-column: 1 / -1; }

.resource-library-form { margin-bottom: 16px; }
.resource-entry-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 8px; }
.resource-entry-tabs button.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.resource-cover-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(180px, 300px); gap: 12px; }
.resource-cover-picker { min-height: 180px; }
.resource-cover-preview { position: relative; display: grid; min-height: 180px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f7f9f8; }
.resource-cover-preview.hidden { display: none; }
.resource-cover-preview img { width: 100%; height: 180px; object-fit: contain; }
.resource-cover-preview button { position: absolute; right: 8px; bottom: 8px; }
.resource-topic-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 4px; }
.resource-topic-heading h3 { margin-bottom: 2px; }
.resource-topic-heading p { color: var(--muted); font-size: 12px; }
.automatic-resource-panel { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #f7faf8; }
.automatic-resource-panel.hidden { display: none; }
.automatic-content-picker { min-height: 120px; gap: 5px; }
.automatic-content-picker small { color: var(--muted); }
.automatic-image-previews { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.automatic-image-previews:empty { display: none; }
.automatic-image-previews > figure { position: relative; display: grid; flex: 0 0 170px; grid-template-rows: 170px 32px; width: 170px; height: 202px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.automatic-image-previews img { display: block; width: 170px; height: 170px; padding: 6px; object-fit: contain; background: #f7f9f8; }
.automatic-image-previews figcaption { display: flex; align-items: center; padding: 5px 9px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; font-weight: 800; }
.automatic-image-previews button { position: absolute !important; top: 6px; right: 6px; width: 30px !important; min-height: 30px !important; padding: 0 !important; border-radius: 50%; font-size: 18px; }
.automatic-image-previews > .content-file-preview { grid-template-rows: 1fr 32px; place-items: center; padding: 16px; background: #f7fbf8; }
.content-file-preview strong { max-width: 130px; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; text-align: center; }
.resource-layout-field { max-width: 520px; }
.resource-layout-field small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.45; }
.automatic-resource-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.automatic-resource-actions button { flex: 1 1 220px; }
.form-note { min-height: 18px; color: var(--muted); font-size: 12px; }
.resource-topic-table { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.resource-topic-header, .resource-topic-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.5fr) minmax(90px, .45fr) minmax(90px, .45fr) 44px; align-items: center; gap: 8px; padding: 8px; }
.resource-topic-header { color: #46534c; background: #f0f4f2; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.resource-topic-row + .resource-topic-row { border-top: 1px solid var(--line); }
.resource-topic-row input { min-width: 0; }
.resource-topic-row button { min-height: 40px; padding: 0; font-size: 20px; }
.resource-library-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; gap: 12px; }
.resource-card { position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr); min-height: 150px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.resource-card:has(.resource-card-body > details[open]) { grid-column: 1 / -1; grid-template-columns: 150px minmax(0, 1fr); }
.resource-card-cover { display: grid; min-height: 150px; align-self: start; place-items: center; border-right: 1px solid var(--line); background: #f1f5f3; }
.resource-card-cover img { width: 100%; height: 150px; object-fit: contain; }
.resource-card-cover span { color: var(--accent); font-size: 36px; }
.resource-card-body { min-width: 0; padding: 12px 14px 16px; }
.resource-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.resource-card-heading > b { display: inline-block; min-width: 0; padding: 4px 7px; border-radius: 4px; font-size: 10px; overflow-wrap: anywhere; text-transform: uppercase; }
.resource-card-body h3 { margin: 8px 0 4px; overflow-wrap: anywhere; font-size: 16px; }
.resource-card-body p { color: var(--muted); font-size: 11px; }
.resource-card details { margin-top: 9px; }
.resource-card summary { color: var(--accent); cursor: pointer; font-size: 11px; font-weight: 800; }
.resource-card details[open] { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.resource-card ul { display: grid; gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.resource-card details[open] ul { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-height: min(56vh, 560px); overflow-y: auto; padding: 2px 6px 2px 2px; }
.resource-card li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid #e6e9e7; border-radius: 6px; background: #f8faf9; font-size: 10px; line-height: 1.35; }
.resource-card li span { min-width: 0; overflow-wrap: anywhere; }
.resource-card li small { color: var(--muted); white-space: nowrap; }
.resource-card-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.resource-card-actions button { min-height: 34px; padding: 6px 9px; }
.print-sheet { display: none; }
body.preview-open { overflow: hidden; }
.print-sheet.screen-preview {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 3000;
  width: auto;
  margin: 0;
  overflow: auto;
  padding: 24px 18px 42px;
  color: #111;
  background: rgba(218, 221, 220, .92);
  border-radius: 0;
  box-shadow: none;
}
.paper-preview-toolbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(760px, calc(100vw - 48px));
  min-height: 72px;
  margin: 0 auto 22px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 46px rgba(31, 41, 55, .18);
}
.paper-preview-toolbar > strong {
  color: #1f2340;
  font-size: 18px;
  text-align: center;
}
.paper-preview-toolbar > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.paper-preview-toolbar button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
}
.paper-preview-toolbar button:first-child { justify-self: start; }
.paper-preview-toolbar .ghost { color: #7547f6; background: #fff; }
.paper-preview-toolbar button:not(.ghost) { background: linear-gradient(135deg, #7447f6, #9c46ef); }
.print-sheet:not(.screen-preview) .paper-preview-toolbar { display: none; }
.print-sheet.screen-preview .print-page.question-page,
.print-sheet.screen-preview .print-page.answer-sheet {
  width: min(720px, calc(100vw - 48px));
  margin: 0 auto 24px;
}
.print-sheet.screen-preview .print-page {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  min-height: auto;
  overflow: hidden;
  margin: 0 auto 24px;
  padding: 58px 42px 52px;
  background: #fff;
  border: 4px solid #20252a;
  box-shadow: 0 14px 42px rgba(31, 41, 55, .22);
}
.print-sheet.screen-preview .print-page:last-child { margin-bottom: 0; }
.print-sheet.screen-preview .print-corner,
.print-sheet.screen-preview .print-dots { display: none; }
.print-sheet.screen-preview .buyer-print-page { padding-top: 92px; }
.print-sheet.screen-preview .buyer-print-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background-image: radial-gradient(#38bfd6 1.4px, transparent 1.6px);
  background-size: 16px 16px;
  background-color: #d9f7fb;
  opacity: .72;
}
.print-sheet.screen-preview .buyer-print-strip {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(760px, 92%);
  min-height: 38px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  color: #fff;
  background: #38bfd6;
  font-size: 13px;
  font-weight: 900;
}
.print-sheet.screen-preview .buyer-print-description {
  position: relative;
  z-index: 2;
  width: min(760px, 92%);
  min-height: 0;
  max-height: 72px;
  margin: -6px auto 12px;
  padding: 10px 16px;
  border: 1.5px solid #38bfd6;
  border-radius: 8px;
  color: #20203d;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  white-space: pre-wrap;
}
.print-sheet.screen-preview .buyer-print-page .print-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 58px;
  place-items: center;
  margin-bottom: 24px;
  border: 2px solid #38bfd6;
  border-radius: 14px;
}
.print-sheet.screen-preview .buyer-print-page .print-student-name,
.print-sheet.screen-preview .buyer-print-page .print-logo,
.print-sheet.screen-preview .buyer-print-page .print-logo-fallback { display: none; }
.print-sheet.screen-preview .buyer-print-page .print-header h1 {
  grid-column: 1;
  margin: 0;
  color: #1f2937;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  text-align: center;
}
.print-sheet.screen-preview .buyer-print-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: -16px 0 22px;
  color: #60707a;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.print-sheet.screen-preview .print-questions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 30px;
  align-items: start;
}
.print-sheet.screen-preview .buyer-print-page.extra-question-space .print-questions { gap: 46px; }
.print-sheet.screen-preview .fanus-clean-paper {
  padding: 34px 48px 44px;
}
.print-sheet.screen-preview .fanus-clean-paper .buyer-print-strip {
  min-height: 38px;
  margin-bottom: 18px;
  font-size: 14px;
}
.print-sheet.screen-preview .fanus-clean-paper .buyer-print-description {
  height: 62px;
  margin-bottom: 10px;
}
.print-sheet.screen-preview .fanus-clean-paper .print-questions {
  gap: 10px;
}
.print-sheet.screen-preview .print-row {
  display: grid;
  break-inside: avoid;
  align-items: start;
}
.print-sheet.screen-preview .print-row.paired-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.print-sheet.screen-preview .print-row.paired-row .print-card + .print-card {
  border-left: 2px dashed #38bfd6;
  padding-left: 28px;
}
.print-sheet.screen-preview .print-card {
  break-inside: avoid;
  padding: 0;
}
.print-sheet.screen-preview .print-card h4 {
  margin: 0 0 10px;
  color: #ff5a1f;
  font-size: 13px;
}
.print-sheet.screen-preview .print-card img {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  object-position: top center;
}
.print-sheet.screen-preview .print-card.landscape-question img {
  width: auto;
  max-width: 100%;
  max-height: 390px;
  margin: 0 auto;
}
.print-sheet.screen-preview .fanus-clean-paper .print-card img {
  width: var(--fanus-img-width, 100%);
  max-height: var(--fanus-img-max, 82mm);
  margin-inline: auto;
}
.print-sheet.screen-preview .fanus-clean-paper .print-card.landscape-question img {
  width: var(--fanus-img-width, 100%);
  max-height: var(--fanus-img-max, 560px);
}
.print-sheet.screen-preview .print-footer {
  position: absolute;
  z-index: 3;
  right: 42px;
  bottom: 18px;
  left: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  border-top: 1px solid #b9ebf2;
  color: #59636e;
  font-size: 10px;
}
.print-sheet.screen-preview .page-number {
  display: inline-grid;
  min-width: 42px;
  height: 22px;
  place-items: center;
  padding: 0 10px;
  transform: translateY(-1px);
  border-radius: 999px;
  color: #fff;
  background: #38bfd6;
  font-size: 11px;
  font-weight: 900;
}
.print-sheet.screen-preview .answer-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.print-sheet.screen-preview .answer-item {
  display: grid;
  grid-template-columns: 34px 58px;
  min-height: 32px;
  overflow: hidden;
  border: 1px solid #c8d8df;
  border-radius: 10px;
  background: #fff;
}
.print-sheet.screen-preview .answer-item span,
.print-sheet.screen-preview .answer-item strong {
  display: grid;
  place-items: center;
}
.print-sheet.screen-preview .answer-item span {
  color: #fff;
  background: #38bfd6;
  font-size: 11px;
  font-weight: 900;
}
.print-sheet.screen-preview .answer-item strong {
  color: #1f2340;
  font-size: 12px;
}
.print-sheet.screen-preview .answer-note {
  position: absolute;
  z-index: 2;
  right: 48px;
  bottom: 80px;
  left: 48px;
  padding: 12px 14px;
  border-left: 3px solid #38bfd6;
  color: #52636b;
  background: #f4f8fa;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1050px) {
  :root { --modal-scale: .92; }
  #studentsView .management-grid { grid-template-columns: 1fr; }
  #studentsView .bank-section { max-height: none; }
  #studentsView #studentList { max-height: min(440px, 48vh); }
  #studentsView .section-head { grid-template-columns: minmax(170px, 1fr) minmax(0, auto); }
  #studentsView .student-list-actions { flex-wrap: wrap; }
  .login-screen { min-height: 100vh; height: auto; overflow-x: hidden; overflow-y: auto; grid-template-columns: minmax(0, 1.02fr) minmax(300px, .98fr); }
  .login-landing-nav { top: clamp(12px, 2.2vw, 18px); left: clamp(16px, 2.8vw, 28px); right: auto; width: auto; max-width: min(46vw, 430px); padding: 5px; gap: 3px; }
  .login-landing-nav a { min-height: 30px; padding: 5px clamp(8px, 1.2vw, 11px); font-size: clamp(10px, 1.25vw, 12px); }
  .login-hero { min-height: 100vh; gap: clamp(10px, 2vh, 20px); padding: clamp(24px, 4vw, 42px); }
  .login-hero-brand-logo { top: clamp(58px, 8vw, 76px); right: clamp(24px, 5vw, 48px); width: clamp(70px, 8vw, 92px); }
  .login-hero-copy { gap: clamp(9px, 1.8vh, 14px); max-width: min(100%, 520px); margin-top: clamp(116px, 15vh, 138px); }
  .login-hero-copy span, .login-eyebrow { font-size: clamp(10px, 1.4vw, 13px); letter-spacing: clamp(1.6px, .32vw, 3px); }
  .login-hero-copy h1 { font-size: clamp(28px, 4vw, 40px); }
  .login-hero-copy p { font-size: clamp(14px, 1.7vw, 17px); }
  .login-color-strip { width: min(560px, 100%); height: clamp(12px, 1.7vw, 18px); }
  .login-hero-credit { font-size: clamp(11px, 1.35vw, 14px); }
  .login-box { width: min(86%, 440px); gap: clamp(9px, 1.8vh, 13px); padding: clamp(18px, 3vw, 26px); }
  .login-box h1 { font-size: clamp(28px, 3.6vw, 38px); }
  .login-subtitle { font-size: clamp(14px, 1.7vw, 17px); }
  .login-box button[type="submit"], .login-box input { min-height: clamp(42px, 5vw, 52px); }
  .login-box button[type="submit"] { font-size: clamp(15px, 1.8vw, 18px); }
  .login-showcase { padding-inline: clamp(18px, 4vw, 34px); }
  .module-story,
  .module-story-featured { grid-template-columns: 1fr; }
  .module-menu-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .module-feature-grid,
  .module-feature-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-mock { grid-template-columns: 124px minmax(0, 1fr); }
  .exam-counts { width: 100%; }
  .records-panel-mock { grid-template-columns: 132px minmax(0, 1fr); }
  .records-panel-mock > aside { padding: 12px; }
  .records-panel-mock > aside b,
  .records-panel-mock > aside span { font-size: 10px; }
  .teacher-panel-mock { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-card,
  .lesson-card,
  .donut-card { grid-column: 1 / -1; }
  .gallery-strip { grid-template-columns: 1fr; }
  .gallery-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .schedule-day-head span { font-size: 10px; }
  .schedule-time, .schedule-cell { min-height: 38px; }
  .schedule-shell { height: calc(100vh - 260px); min-height: 430px; }
  .study-toolbar { grid-template-columns: minmax(210px, 1fr) minmax(190px, 1fr); }
  .study-toolbar-actions { grid-column: 1 / -1; justify-self: start; }
  .smart-coaching-controls { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .smart-workdays { grid-template-columns: repeat(4, minmax(54px, 1fr)); }
  .study-resource-panel { grid-template-columns: 1fr; }
  .study-day-header { min-height: 58px; padding: 5px 3px; }
  .study-day-header strong { font-size: 11px; }
  .study-day-header span { font-size: 9px; }
  .study-task-cell { min-height: 82px; gap: 4px; padding: 6px 4px; }
  .study-task-slot:has(.study-cell-tools:not(:empty)) .study-task-cell { padding-bottom: 31px; }
  .study-task-head { display: grid; gap: 3px; }
  .study-task-head b, .study-task-head time, .study-task-cell > small { font-size: 8px; }
  .study-task-cell > strong, .study-task-cell em { font-size: 9px; }
  .study-add-row { padding: 0 3px; font-size: 9px; }
}

@media (max-width: 920px), (max-height: 760px) {
  :root { --modal-scale: .84; }
  .lesson-modal-grid { gap: 12px; }
  .lesson-form .two-col { gap: 8px; }
  .lesson-form textarea { min-height: 78px; }
}

@media (max-width: 780px), (max-height: 660px) {
  :root { --modal-scale: .76; }
  .lesson-modal-grid { grid-template-columns: minmax(220px, .9fr) minmax(280px, 1fr); }
  .lesson-modal-grid:has(.lesson-choice-inactive) { grid-template-columns: minmax(350px, .85fr) minmax(410px, 1fr); }
  .lesson-choice-panel.lesson-choice-inactive { display: none; }
}

@container workspace (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-workbench { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-todo-card { grid-column: 1 / -1; }
  .dashboard-finance-card { grid-column: auto; }
  .accounting-student-finder { grid-template-columns: 60px minmax(220px, 1fr) auto; gap: 14px; padding: 14px 16px; }
  .accounting-avatar { width: 58px; font-size: 22px; }
  .accounting-tabs button { padding: 0 16px; font-size: 14px; }
  .accounting-ledger-grid { grid-template-columns: 1fr; }
  .accounting-ledger-form { position: static; }
  .accounting-report-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accounting-report-controls button { grid-column: 1 / -1; }
  .debtor-date-controls { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(145px, auto); }
  .debtor-apply-button { grid-column: auto; }
  .debtor-range-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .debtor-range-buttons button { grid-column: auto !important; }
  .accounting-debtor-report { padding: 14px; }
  .accounting-debtor-report h3 { font-size: 18px; }
  .accounting-debtor-table { min-width: 0; }
  .debtor-sort-button { min-height: 38px; padding: 7px 6px; font-size: 12px; }
  .accounting-debtor-table td { padding: 8px 6px; font-size: 12px; }
  .debtor-detail-button { min-height: 30px; padding-inline: 6px; font-size: 12px; }
  .debtor-sort-arrows { font-size: 9px; }
  .accounting-report-columns { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-row { grid-template-columns: 38px minmax(0, 1fr); }
  #studentsView .student-row {
    align-items: start;
    min-height: 88px;
    padding-block: 8px;
  }
  #studentsView .student-info small { overflow: visible; }
  .student-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  #studentsView .student-actions {
    padding-left: 47px;
    margin-top: 2px;
  }
  .study-toolbar { grid-template-columns: minmax(210px, 1fr) minmax(180px, 1fr); }
  .study-toolbar-actions { grid-column: 1 / -1; justify-self: stretch; justify-content: flex-start; }
}

@container workspace (max-width: 780px) {
  .dashboard-workbench { grid-template-columns: 1fr; }
  .dashboard-todo-card { grid-column: auto; }
  .dashboard-finance-card { grid-column: auto; }
  .accounting-student-finder { grid-template-columns: 58px minmax(0, 1fr); }
  #accountingFindStudent { grid-column: 1 / -1; }
  .accounting-tabs { justify-content: flex-start; overflow-x: auto; }
  .accounting-info-grid { grid-template-columns: 1fr; }
  .accounting-ledger-summary { grid-template-columns: 1fr; }
  .accounting-report-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-grid, .lesson-modal-grid, .study-resource-panel, .student-group-builder { grid-template-columns: 1fr; }
  .teacher-question-preview { grid-template-columns: 1fr; }
  .teacher-preview-details { border-top: 1px solid var(--line); border-left: 0; }
  .topbar, .section-head { align-items: stretch; flex-direction: column; }
  .exam-countdown-strip { width: 100%; }
  .student-countdown-strip, .buyer-countdown-strip { grid-template-columns: repeat(2, minmax(118px, 1fr)); max-width: none; }
  .topbar-actions, .basket-header-actions, .study-program-navigation { align-items: stretch; flex-direction: column; }
  .debtor-list-actions {
    justify-content: stretch;
  }
  .debtor-list-actions button {
    flex: 1;
  }
  .week-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .study-toolbar, .study-resource-panel form { grid-template-columns: 1fr; }
  .study-toolbar-actions { width: 100%; }
  .study-toolbar-actions button { flex: 1 1 180px; }
  .study-copy-panel { grid-template-columns: 1fr; }
  .study-copy-actions { justify-content: stretch; flex-wrap: wrap; }
  .study-copy-actions button { flex: 1 1 160px; }
  .smart-coaching-controls { grid-template-columns: 1fr; }
  .smart-coaching-actions button { width: 100%; }
  .saved-program-card li { grid-template-columns: 1fr; }
  .basket-item { grid-template-columns: 20px 80px minmax(0, 1fr); }
  .basket-actions { grid-column: 1 / -1; }
  .curriculum-form, .curriculum-folder-grid, .brand-settings-grid, .resource-cover-grid { grid-template-columns: 1fr; }
  .curriculum-detail-head { align-items: stretch; flex-direction: column; }
  .curriculum-detail-actions { justify-content: stretch; }
  .curriculum-detail-actions button { width: 100%; }
  .brand-settings-grid .color-row { grid-column: auto; }
  .resource-topic-heading { align-items: stretch; flex-direction: column; }
  .resource-topic-header { display: none; }
  .resource-topic-row { grid-template-columns: 1fr 1fr 44px; }
  .resource-topic-row [data-resource-topic-unit],
  .resource-topic-row [data-resource-topic-name] { grid-column: 1 / -1; }
}

@container workspace (max-width: 520px) {
  .stats-grid, .two-col, .three-col, .print-options, .filters, .photo-actions, .branch-fieldset, .permission-group { grid-template-columns: 1fr; }
  .dashboard-todo-card, .dashboard-lesson-card, .dashboard-finance-card { min-height: 0; padding: 14px; }
  .dashboard-todo-form { grid-template-columns: 1fr; }
  .dashboard-donut-wrap { width: min(160px, 100%); }
  .accounting-student-finder { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .accounting-fields { width: 100%; }
  .accounting-tabs { display: grid; grid-template-columns: 1fr; }
  .accounting-tabs button { border: 1px solid var(--line); border-radius: 8px; }
  .accounting-panel { padding: 14px; }
  .accounting-ledger-row { grid-template-columns: 1fr; align-items: stretch; }
  .accounting-ledger-row b,
  .accounting-ledger-row button,
  .accounting-ledger-lock { justify-self: start; }
  .accounting-report-controls,
  .accounting-report-cards { grid-template-columns: 1fr; }
  .debtor-date-controls { grid-template-columns: 1fr; }
  .debtor-range-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .debtor-range-buttons button { grid-column: auto !important; }
  .accounting-debtor-report { padding: 12px; }
  .accounting-debtor-report h3 { font-size: 16px; }
  .accounting-debtor-table { min-width: 0; }
  .debtor-sort-button { font-size: 11px; }
  .accounting-debtor-table td { font-size: 11px; }
  .debtor-detail-button { padding-inline: 4px; font-size: 11px; }
  .accounting-report-row { align-items: flex-start; flex-direction: column; }
  .debtor-list-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .debtor-list-actions button {
    width: 100%;
  }
  .exam-countdown-strip { grid-template-columns: 1fr; }
  .week-controls { grid-template-columns: 1fr; }
  .student-folder-tabs { display: grid; grid-template-columns: 1fr; }
  .student-folder-tabs button { min-width: 0; }
  .student-folder-summary, .saved-program-card header, .photo-preview-footer { align-items: stretch; flex-direction: column; }
  .homework-card header { display: grid; }
  .homework-card label { min-width: 0; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions button, .student-actions button { width: 100%; }
  #studentsView .student-actions button { width: auto; }
  .student-group-fields { grid-template-columns: 1fr; }
  .group-student-row,
  .selected-group-student,
  .student-group-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .group-student-row b,
  .selected-group-student button {
    grid-column: 2;
    justify-self: start;
  }
  .question-bank { grid-template-columns: minmax(0, 1fr); }
  .question-card .actions { grid-template-columns: 1fr; }
  .basket-item { grid-template-columns: 1fr; }
  .basket-thumbnail { width: 100%; height: 130px; }
  .module-tabs { display: grid; grid-template-columns: 1fr; }
  .module-tabs button { min-width: 0; }
  .student-resource-grid {
    grid-template-columns: 1fr;
  }
  .resource-assign-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .resource-assign-panel form {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .resource-assign-panel form button {
    width: 100%;
  }
  .assigned-resource-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .assigned-resource-open {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .assigned-resource-body {
    padding-right: 52px;
  }
  .resource-entry-tabs { grid-template-columns: 1fr; }
  .resource-library-list { grid-template-columns: 1fr; }
  .resource-card { grid-template-columns: 74px minmax(0, 1fr); }
  .resource-card:has(.resource-card-body > details[open]) { grid-template-columns: 96px minmax(0, 1fr); }
  .resource-card-cover, .resource-card-cover img { min-height: 130px; height: 130px; }
}
@media (max-width: 760px) {
  :root { --modal-scale: .72; }
  html, body { max-width: 100%; overflow-x: hidden; }
  body { background: var(--paper); }
  .login-screen {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100svh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: max(18px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
    place-items: center;
  }
  .login-landing-nav,
  .login-hero {
    display: none;
  }
  .login-box {
    width: min(100%, 440px);
    min-width: 0;
    align-self: center;
    justify-self: center;
    gap: 14px;
    padding: 0;
  }
  .login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
  }
  .login-brand .brand-mark {
    width: 118px;
    height: 72px;
  }
  .login-box h1 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.08;
  }
  .login-eyebrow {
    font-size: 11px;
    letter-spacing: 2.4px;
  }
  .login-subtitle {
    font-size: 17px;
    line-height: 1.4;
  }
  .login-box label {
    gap: 8px;
    font-size: 17px;
  }
  .login-box input {
    width: 100%;
    min-height: 56px;
    font-size: 16px;
  }
  .login-box button[type="submit"] {
    min-height: 58px;
    width: 100%;
    font-size: 20px;
  }
  .login-help {
    font-size: 14px;
    line-height: 1.35;
  }
  .login-showcase {
    width: 100%;
    padding: 28px 0 0;
    gap: 18px;
  }
  .showcase-hero h2,
  .module-story-copy h3,
  .gallery-strip h2,
  .package-strip h2,
  .contact-strip h2 {
    font-size: clamp(25px, 8vw, 34px);
  }
  .module-story,
  .module-story-featured,
  .records-panel-mock,
  .student-panel-mock,
  .teacher-panel-mock,
  .fanus-panel-mock,
  .finance-panel-mock,
  .module-feature-grid,
  .module-feature-grid.three,
  .gallery-cards { grid-template-columns: 1fr; }
  .dashboard-mock { grid-template-columns: 1fr; }
  .dashboard-mock aside { display: none; }
  .dashboard-mock main { grid-template-columns: 1fr; padding: 14px; }
  .exam-counts,
  .metric-grid { grid-template-columns: 1fr 1fr; width: 100%; }
  .records-panel-mock > aside { display: none; }
  .wide-card,
  .lesson-card,
  .donut-card { grid-column: 1 / -1; }
  .module-menu-preview { max-width: none; }
  .module-browser,
  .records-panel-mock,
  .student-panel-mock,
  .teacher-panel-mock,
  .fanus-panel-mock,
  .finance-panel-mock { min-height: 0; }
  .gallery-strip,
  .package-strip,
  .contact-strip {
    padding: 16px;
  }
  .app-shell {
    display: block;
    min-height: 100svh;
    overflow-x: hidden;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: auto;
    height: auto;
    max-height: 58svh;
    overflow: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(35, 36, 79, .08);
  }
  .sidebar.sidebar-expanded {
    width: auto;
    padding: 12px;
    box-shadow: 0 14px 34px rgba(35, 36, 79, .08);
  }
  .sidebar.sidebar-force-collapsed {
    width: auto;
    padding: 12px;
    box-shadow: 0 14px 34px rgba(35, 36, 79, .08);
  }
  .sidebar:not(.sidebar-expanded) .brand > div:not(.brand-mark),
  .sidebar:not(.sidebar-expanded) .nav-label > span,
  .sidebar:not(.sidebar-expanded) .nav-arrow,
  .sidebar:not(.sidebar-expanded) .nav-chevron,
  .sidebar:not(.sidebar-expanded) .account-box strong,
  .sidebar:not(.sidebar-expanded) .account-box span,
  .sidebar:not(.sidebar-expanded) .account-box .cloud-sync-status {
    display: revert !important;
  }
  .sidebar:not(.sidebar-expanded) .nav-group.open .nav-submenu { display: grid; }
  .sidebar:not(.sidebar-expanded) .brand { justify-content: flex-start; gap: 10px; margin-bottom: 10px; }
  .sidebar:not(.sidebar-expanded) .nav-button { justify-content: space-between; padding: 8px 9px; }
  .sidebar:not(.sidebar-expanded) .nav-label { justify-content: flex-start; gap: 7px; }
  .sidebar::before {
    height: 5px;
    margin: -12px -12px 10px;
  }
  .brand {
    gap: 10px;
    margin-bottom: 10px;
  }
  .brand-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .brand h1 {
    font-size: 14px;
  }
  .brand p {
    font-size: 12px;
  }
  .workspace {
    padding: 14px 12px max(20px, env(safe-area-inset-bottom));
  }
  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .nav-button {
    min-height: 40px;
    padding: 8px 9px;
    border-radius: 8px;
    font-size: 13px;
  }
  .nav-label {
    gap: 7px;
  }
  .nav-icon {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
  }
  .nav-arrow,
  .nav-chevron {
    width: 8px;
    height: 8px;
  }
  .nav-submenu {
    grid-column: 1 / -1;
    padding: 4px 0 6px 8px;
  }
  .nav-subbutton {
    min-height: 34px;
    font-size: 12px;
  }
  .account-box {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding-top: 10px;
  }
  .account-box > strong,
  .account-box > span,
  .account-box .cloud-sync-status {
    grid-column: 1 / -1;
  }
  .account-box > strong {
    font-size: 13px;
  }
  .account-box > span {
    margin-bottom: 0;
    font-size: 11px;
  }
  .account-box .cloud-sync-status {
    margin: 0;
    padding: 6px 8px;
    font-size: 12px;
  }
  .account-box button {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 13px;
  }
  .topbar h2 {
    font-size: 24px;
  }
  .topbar p,
  .section-head p {
    font-size: 13px;
    line-height: 1.35;
  }
  .panel,
  .question-form,
  .basket-panel,
  .bank-section {
    padding: 14px;
    border-radius: 8px;
  }
  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }
  button {
    min-height: 42px;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .topbar, .section-head { align-items: stretch; flex-direction: column; }
  .student-folder-summary,
  .resource-assign-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .student-folder-tabs {
    grid-template-columns: 1fr;
  }
  .student-folder-tabs button {
    min-width: 0;
    width: 100%;
  }
  .resource-assign-panel form {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }
  .assigned-resource-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .assigned-resource-open {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .assigned-resource-cover,
  .assigned-resource-cover img {
    min-height: 92px;
    height: 92px;
  }
  .assigned-resource-body {
    padding-right: 0;
  }
  .resource-percent {
    position: static;
    display: inline-block;
    margin-top: 8px;
  }
  .resource-manual-panel > header {
    align-items: stretch;
    flex-direction: column;
  }
  .resource-manual-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .resource-manual-list {
    grid-template-columns: 1fr;
  }
  .resource-manual-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .resource-manual-row em {
    grid-column: 2;
    white-space: normal;
  }
  .resource-card:has(.resource-card-body > details[open]) {
    grid-template-columns: 1fr;
  }
  .resource-card:has(.resource-card-body > details[open]) .resource-card-cover {
    display: none;
  }
  .resource-card details[open] ul {
    grid-template-columns: 1fr;
    max-height: 52vh;
  }
  .resource-card-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .resource-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .resource-card-actions button {
    width: 100%;
  }
  .exam-countdown-strip { width: 100%; grid-template-columns: 1fr; }
  .topbar-actions, .basket-header-actions { align-items: stretch; flex-direction: column; }
  .two-col, .three-col, .print-options, .filters { grid-template-columns: 1fr; }
  .teacher-question-preview { grid-template-columns: 1fr; }
  .teacher-preview-details { border-top: 1px solid var(--line); border-left: 0; }
  .photo-actions { grid-template-columns: 1fr; }
  .camera-button, .photo-actions .file-picker { min-height: 110px; }
  .photo-preview-footer { align-items: stretch; flex-direction: column; }
  .branch-fieldset { grid-template-columns: 1fr; }
  .week-controls { flex-direction: column; }
  .lesson-modal-grid { grid-template-columns: minmax(350px, .85fr) minmax(410px, 1fr); }
  .lesson-form .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-backdrop {
    align-items: start;
    justify-items: stretch;
    overflow: auto;
    padding: 10px;
  }
  .modal-backdrop > * {
    width: min(100%, calc(100vw - 20px));
    max-height: none;
  }
  .lesson-modal-grid {
    grid-template-columns: 1fr;
  }
  .lesson-form .two-col {
    grid-template-columns: 1fr;
  }
  .custom-slots > div:first-child { grid-template-columns: 1fr; }
  .study-toolbar, .study-resource-panel form { grid-template-columns: 1fr; }
  .study-toolbar-actions { width: 100%; }
  .study-toolbar-actions button { flex: 1; }
  .study-copy-panel { grid-template-columns: 1fr; }
  .study-copy-actions { justify-content: stretch; flex-wrap: wrap; }
  .study-copy-actions button { flex: 1; }
  .student-folder-summary, .saved-program-card header { align-items: stretch; flex-direction: column; }
  .homework-card header { display: grid; }
  .homework-card label { min-width: 0; }
  .student-folder-tabs { display: grid; grid-template-columns: 1fr; }
  .student-folder-tabs button { min-width: 0; }
  .saved-program-card li { grid-template-columns: 1fr; }
  .schedule-shell { height: 70vh; min-height: 400px; }
  .student-row { grid-template-columns: 44px 1fr; }
  .user-access-card { grid-template-columns: 44px 1fr; }
  .user-access-card .student-actions { grid-column: 1 / -1; }
  .student-actions { grid-column: 1 / -1; }
  .basket-item { grid-template-columns: 20px 80px minmax(0, 1fr); }
  .basket-thumbnail { width: 80px; height: 64px; }
  .basket-actions { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .student-insights { grid-template-columns: 1fr; }
  .student-chart-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    min-height: 142px;
  }
  .student-donut { width: 96px; }
  .student-donut::after { inset: 25px; }
  .login-screen {
    align-content: start;
    padding: max(16px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
  }
  .login-brand .brand-mark {
    width: 104px;
    height: 64px;
  }
  .login-box {
    gap: 12px;
  }
  .login-box h1 {
    font-size: clamp(28px, 10vw, 36px);
  }
  .login-subtitle {
    font-size: 15px;
  }
  .login-box label {
    font-size: 15px;
  }
  .login-box input,
  .login-box button[type="submit"] {
    min-height: 52px;
  }
  .sidebar {
    max-height: 62svh;
    padding: 10px;
  }
  .sidebar::before {
    margin: -10px -10px 9px;
  }
  .brand-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .brand h1 {
    font-size: 13px;
  }
  .side-nav {
    grid-template-columns: 1fr;
  }
  .nav-button {
    min-height: 38px;
  }
  .account-box {
    grid-template-columns: 1fr;
  }
  .workspace {
    padding: 12px 10px max(18px, env(safe-area-inset-bottom));
  }
  .topbar h2 {
    font-size: 22px;
  }
  .stats-grid,
  .student-progress-grid,
  .student-subject-list {
    grid-template-columns: 1fr;
  }
  .student-day-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .student-day-tab {
    flex: 0 0 112px;
    min-height: 66px;
  }
  .schedule-shell,
  .study-board-shell,
  .accounting-history-table-wrap,
  .accounting-debtor-table-wrap,
  .accounting-detail-table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .accounting-history-table {
    min-width: 680px;
  }
  .accounting-debtor-table {
    min-width: 720px;
  }
  .management-grid {
    grid-template-columns: 1fr;
  }
  .student-row,
  .user-access-card,
  .assigned-resource-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .assigned-resource-open {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .student-actions,
  .user-access-card .student-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .student-actions button {
    width: 100%;
  }
  #studentsView .student-actions {
    padding-left: 0;
  }
  #studentsView .student-actions button {
    width: 100%;
  }
  .basket-item {
    grid-template-columns: 1fr;
  }
  .basket-thumbnail {
    width: 100%;
    height: 128px;
  }
}

/* V114: mobil menü, çalışma programı ve dokunma alanları */
@media (max-width: 900px) {
  .sidebar.sidebar-force-collapsed .nav-group.open .nav-submenu,
  .sidebar.sidebar-expanded .nav-group.open .nav-submenu {
    display: grid !important;
  }

  .sidebar .nav-button,
  .student-week-controls button,
  .student-status-buttons button {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .study-board-shell {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  .study-board {
    width: 1260px;
    min-width: 1260px;
    grid-template-columns: repeat(7, minmax(180px, 1fr));
  }

  .study-cell-tools {
    gap: 4px;
  }

  .study-cell-tools button,
  .study-remove-row {
    width: 40px;
    min-height: 40px;
  }

  .study-task-slot:has(.study-cell-tools:not(:empty)) .study-task-cell {
    padding-bottom: 50px;
  }

  .study-task-slot:has(.study-remove-row) .study-task-cell > i {
    right: 48px;
  }

  .study-add-row {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .login-screen {
    align-content: start !important;
    justify-items: center !important;
    place-items: start center !important;
    min-height: 100svh !important;
    padding: max(22px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)) !important;
  }
  .login-box {
    width: min(100%, 420px) !important;
    gap: 11px !important;
    align-self: start !important;
    justify-self: center !important;
    padding: 0 !important;
  }
  .login-brand {
    display: flex !important;
    justify-content: center !important;
    margin: 0 0 8px !important;
  }
  .login-brand .brand-mark {
    width: 104px !important;
    height: 104px !important;
    flex: 0 0 104px !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .login-brand .brand-mark img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .login-eyebrow {
    font-size: 10px !important;
    letter-spacing: 2.2px !important;
  }
  .login-box h1 {
    font-size: clamp(29px, 8.6vw, 38px) !important;
    line-height: 1.04 !important;
  }
  .login-subtitle {
    font-size: 15px !important;
    line-height: 1.34 !important;
  }
  .login-box label {
    gap: 7px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }
  .login-box input {
    min-height: 50px !important;
    border-radius: 11px !important;
  }
  .login-box button[type="submit"] {
    min-height: 54px !important;
    margin-top: 6px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
  }
  .login-help {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 390px), (max-height: 760px) {
  .login-screen {
    padding-top: max(14px, env(safe-area-inset-top)) !important;
  }
  .login-brand .brand-mark {
    width: 84px !important;
    height: 84px !important;
    flex-basis: 84px !important;
  }
  .login-box {
    gap: 9px !important;
  }
  .login-box h1 {
    font-size: clamp(27px, 8vw, 33px) !important;
  }
  .login-subtitle,
  .login-box label {
    font-size: 14px !important;
  }
  .login-box input {
    min-height: 46px !important;
  }
  .login-box button[type="submit"] {
    min-height: 50px !important;
    font-size: 17px !important;
  }
}

@media print {
  :root { --print-navy: #004667; --print-orange: #ff5a1f; }
  html, body { width: 210mm; min-height: 297mm; background: #fff; }
  body { margin: 0; }
  .print-sheet,
  .print-sheet *,
  .print-sheet *::before,
  .print-sheet *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .app-shell, .login-screen { display: none !important; }
  .print-sheet, .print-sheet.screen-preview {
    position: static;
    display: block;
    width: 210mm;
    margin: 0;
    overflow: visible;
    padding: 0;
    color: #111;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
  }
  .paper-preview-toolbar { display: none !important; }
  html:has(body.printing-study-program), body.printing-study-program { width: 297mm; min-height: 210mm; height: auto; overflow: visible; }
  body.printing-study-program .print-sheet { width: 297mm; height: auto; overflow: visible; }
  @page { size: A4; margin: 0; }
  body.printing-accounting-report .accounting-detail-actions,
  body.printing-accounting-report button {
    display: none !important;
  }
  body.printing-accounting-report .print-sheet {
    padding: 12mm;
  }
  body.printing-accounting-report .accounting-print-report {
    font-family: Inter, Arial, sans-serif;
    color: #1f2340;
  }
  body.printing-accounting-report .accounting-print-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12mm;
    margin: 0 0 6mm;
    padding-bottom: 4mm;
    border-bottom: 1px solid #dfe4e8;
  }
  body.printing-accounting-report .accounting-print-header h1 {
    margin: 0;
    color: #1f2340;
    font-size: 18pt;
  }
  body.printing-accounting-report .accounting-print-header img {
    width: 24mm;
    height: 24mm;
    object-fit: contain;
  }
  .print-page { position: relative; width: 210mm; height: 297mm; overflow: hidden; padding: 15mm 16mm 23mm; break-after: page; page-break-after: always; background: #fff; }
  .print-page:last-child { break-after: auto; page-break-after: auto; }
  .print-header { position: relative; z-index: 2; display: grid; grid-template-columns: 48mm 1fr 58mm; align-items: center; min-height: 30mm; margin-bottom: 5mm; }
  .print-student-name { color: var(--print-navy); font-size: 15px; line-height: 1.2; }
  .print-header h1 { grid-column: 2; margin: 0; color: var(--print-orange); font-family: Impact, "Arial Black", sans-serif; font-size: 27px; letter-spacing: 0; text-align: center; }
  .print-logo { grid-column: 3; justify-self: end; width: 52mm; height: 28mm; object-fit: contain; object-position: center right; transform: scale(1.35); transform-origin: center right; }
  .print-logo-fallback { grid-column: 3; justify-self: end; display: grid; width: 22mm; height: 16mm; place-items: center; color: #fff; background: var(--print-navy); font-size: 17px; }
  .print-questions { display: grid; gap: 5mm; align-items: start; }
  .buyer-print-page { padding-top: 16mm; }
  .buyer-print-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 17mm;
    background-image: radial-gradient(#38bfd6 1px, transparent 1.2px);
    background-size: 5mm 5mm;
    background-color: #d9f7fb;
    box-shadow: inset 0 0 0 9999px #d9f7fb;
    opacity: .8;
  }
  .buyer-print-strip {
    position: relative;
    z-index: 3;
    display: grid;
    width: 176mm;
    min-height: 11mm;
    place-items: center;
    margin: 0 auto 5mm;
    border-radius: 999px;
    color: #fff;
    background: #38bfd6;
    box-shadow: inset 0 0 0 9999px #38bfd6;
    font-size: 13px;
    font-weight: 900;
  }
  .buyer-print-description {
    position: relative;
    z-index: 3;
    width: 176mm;
    box-sizing: border-box;
    height: 18mm;
    margin: -1mm auto 4mm;
    padding: 3mm 5mm;
    border: 1.4px solid #38bfd6;
    border-radius: 2.5mm;
    color: #20203d;
    background: #fff;
    box-shadow: inset 0 0 0 9999px #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    white-space: pre-wrap;
  }
  .buyer-print-strip.is-empty,
  .buyer-print-description.is-empty {
    visibility: hidden;
  }
  .buyer-print-page .print-header {
    grid-template-columns: 1fr;
    min-height: 16mm;
    margin-bottom: 7mm;
    border: 2px solid #38bfd6;
    border-radius: 5mm;
  }
  .buyer-print-page .print-student-name, .buyer-print-page .print-logo, .buyer-print-page .print-logo-fallback { display: none; }
  .buyer-print-page .print-header h1 {
    grid-column: 1;
    color: #1f2937;
    font-family: Inter, Arial, sans-serif;
    font-size: 17px;
    letter-spacing: 0;
  }
  .buyer-print-meta {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 5mm;
    margin: -4mm 0 7mm;
    color: #60707a;
    font-size: 10px;
    font-weight: 800;
  }
  .buyer-print-page.extra-question-space .print-questions { gap: 9mm; }
  .buyer-print-page .print-corner, .buyer-print-page .print-dots { display: none; }
  .fanus-clean-paper {
    padding: 9mm 11mm 14mm;
  }
  .fanus-clean-paper .buyer-print-strip {
    min-height: 9mm;
    margin-bottom: 5mm;
    font-size: 12px;
  }
  .fanus-clean-paper .buyer-print-description {
    margin-bottom: 3mm;
  }
  .fanus-clean-paper .print-questions {
    gap: 3mm;
  }
  .print-row { display: grid; break-inside: avoid; align-items: start; }
  .print-row.paired-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-row.paired-row .print-card + .print-card { border-left: 1px dashed #91b7c7; padding-left: 8mm; }
  .print-row.paired-row .print-card:first-child { padding-right: 8mm; }
  .print-row.single-row, .print-row.full-row { grid-template-columns: 1fr; }
  .print-card { break-inside: avoid; padding: 0; }
  .print-card h4 { margin: 0 0 2mm; color: var(--print-orange); font-size: 12px; }
  .print-card img { display: block; width: 100%; max-height: 88mm; object-fit: contain; object-position: top center; }
  .print-card.landscape-question img { width: auto; max-width: 100%; max-height: 82mm; margin: 0 auto; }
  .fanus-clean-paper .print-card img { width: var(--fanus-img-width, 100%); max-height: var(--fanus-img-max, 82mm); margin-inline: auto; }
  .fanus-clean-paper .print-card.landscape-question img { width: var(--fanus-img-width, 100%); max-height: var(--fanus-img-max, 112mm); }
  .print-card.compact img { max-height: 72mm; }
  .print-card.large, .print-card.large img { grid-column: 1 / -1; max-height: 145mm; }
  .answer-sheet { break-before: page; padding-top: 18mm; }
  .answer-header { display: flex; align-items: center; justify-content: space-between; min-height: 28mm; padding-bottom: 6mm; border-bottom: 2px solid var(--print-orange); }
  .answer-header span { color: var(--print-navy); font-size: 11px; font-weight: 900; }
  .answer-header h2 { margin: 2mm 0 0; color: var(--print-orange); font-family: Impact, "Arial Black", sans-serif; font-size: 28px; letter-spacing: 0; }
  .answer-header .print-logo { display: block; width: 42mm; height: 23mm; object-fit: contain; object-position: center right; transform: scale(1.25); transform-origin: center right; }
  .answer-header .print-logo-fallback { display: grid; }
  .answer-grid { display: flex; flex-wrap: wrap; gap: 3mm; margin-top: 10mm; }
  .answer-item { display: grid; grid-template-columns: 9mm 16mm; overflow: hidden; min-height: 8.5mm; border: 1px solid #c8d8df; border-radius: 2.4mm; background: #fff; }
  .answer-item span, .answer-item strong { display: grid; place-items: center; }
  .answer-item span { color: #fff; background: var(--print-navy); font-size: 10px; }
  .answer-item strong { color: var(--print-navy); font-size: 12px; }
  .answer-note { position: absolute; right: 16mm; bottom: 18mm; left: 16mm; padding: 4mm; border-left: 2px solid var(--print-orange); color: #52636b; background: #f4f8fa; font-size: 10px; font-weight: 700; }
  .print-corner { position: absolute; z-index: 1; pointer-events: none; }
  .print-corner i, .print-corner b { position: absolute; display: block; transform: skewX(-38deg); }
  .print-corner-top { top: 0; right: -10mm; width: 73mm; height: 25mm; }
  .print-corner-top i { top: 0; right: 0; width: 54mm; height: 15mm; background: var(--print-navy); }
  .print-corner-top b { top: 0; right: 49mm; width: 18mm; height: 11mm; background: var(--print-orange); }
  .print-corner-bottom { bottom: 0; left: -13mm; width: 88mm; height: 29mm; }
  .print-corner-bottom i { bottom: -4mm; left: 0; width: 67mm; height: 19mm; background: var(--print-navy); }
  .print-corner-bottom b { bottom: -4mm; left: 59mm; width: 24mm; height: 15mm; background: var(--print-orange); }
  .print-dots { position: absolute; z-index: 1; width: 20mm; height: 20mm; opacity: .35; background-image: radial-gradient(#7b8f98 1px, transparent 1.2px); background-size: 3mm 3mm; }
  .print-dots-top { top: 4mm; left: 4mm; }
  .print-dots-bottom { right: 3mm; bottom: 14mm; }
  .print-footer {
    position: absolute;
    z-index: 3;
    right: 16mm;
    bottom: 7mm;
    left: 16mm;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8mm;
    border-top: 1px solid #b9ebf2;
    color: #59636e;
    font-size: 9px;
  }
  .page-number {
    display: inline-grid;
    min-width: 15mm;
    height: 6mm;
    place-items: center;
    padding: 0 3mm;
    transform: translateY(-1mm);
    border-radius: 999px;
    color: #fff;
    background: #38bfd6;
    font-size: 10px;
    font-weight: 900;
  }
  @page study-program { size: A4 landscape; margin: 0; }
  .study-print-page, .study-print-page * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .study-print-page { page: study-program; width: 297mm; min-height: 210mm; height: 210mm; overflow: hidden; padding: 6mm 8mm 6mm; background: #fff; break-after: page; page-break-after: always; }
  .study-print-page:last-child { break-after: auto; page-break-after: auto; }
  .study-print-header { display: grid; grid-template-columns: 62mm 1fr 50mm; align-items: center; min-height: 13mm; border-bottom: 1.5px solid #27596c; }
  .study-print-header > div { display: grid; gap: 1mm; }
  .study-print-header > div strong { color: #27596c; font-size: 14px; }
  .study-print-header > div span { color: #68756d; font-size: 9px; }
  .study-print-header h1 { color: #c8673e; font-size: 16px; text-align: center; }
  .study-print-header img { justify-self: end; width: 40mm; height: 12mm; object-fit: contain; object-position: right center; }
  .study-print-week { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 1.3mm 0; color: #44544b; font-size: 9px; font-weight: 900; text-align: center; }
  .study-print-week > span { grid-column: 2; }
  .study-print-week > small { justify-self: end; color: #6b786f; font-size: 7px; }
  .study-print-grid { display: grid; grid-template-columns: repeat(7, 1fr); align-items: start; border-top: 1px solid #84958b; border-left: 1px solid #84958b; }
  .study-print-day { display: flex; min-width: 0; height: auto; align-self: start; flex-direction: column; border-right: 1px solid #84958b; }
  .study-print-day > header { display: grid; min-height: 10mm; place-items: center; align-content: center; gap: .5mm; border-bottom: 1px solid #84958b; background: #f1f4f2; }
  .study-print-day > header strong { font-size: 9px; }
  .study-print-day > header span { color: #66736c; font-size: 7px; }
  .study-print-task { display: grid; align-content: start; gap: 0; flex: 0 0 auto; min-height: var(--study-print-row-min, 30mm); height: var(--study-print-row-min, 30mm); overflow: hidden; padding: .55mm; border-bottom: 1px solid #aeb9b2; break-inside: avoid; }
  .study-print-task.is-empty { background: #fff; }
  .study-print-task > div { display: flex; align-items: start; justify-content: space-between; gap: .8mm; line-height: 1; }
  .study-print-task b { padding: .55mm 1.2mm; border-radius: 1mm; font-size: 6.5px; line-height: 1; text-transform: uppercase; }
  .study-print-task .subject-math { background: #fff3aa !important; }
  .study-print-task .subject-turkish { background: #bde9e8 !important; }
  .study-print-task .subject-science { background: #c9edb7 !important; }
  .study-print-task .subject-history { background: #ffd29c !important; }
  .study-print-task .subject-english { background: #e2c7ef !important; }
  .study-print-task .subject-religion { background: #f6d5bc !important; }
  .study-print-task .subject-free-time { background: #d9e5ec !important; }
  .study-print-task .subject-other { background: #edf1ef !important; }
  .study-print-task time { font-size: 6.5px; font-weight: 800; white-space: nowrap; }
  .study-print-task small { display: block; margin-top: .4mm; color: #4d5d54; font-size: 6px; font-weight: 800; }
  .study-print-task p { display: grid; gap: .2mm; margin: -.35mm 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 6.3px; line-height: 1.08; }
  .study-print-task .study-task-block { gap: .1mm; margin-top: .25mm; padding: .5mm .7mm; border-radius: 1mm; font-size: 5.8px; line-height: 1.05; }
  .study-print-task .study-task-block.video:first-child { margin-top: 0; }
  .study-print-task .study-task-block > span { font-size: 5px; }
  .study-print-task .study-task-block > em { font-size: 5.8px; line-height: 1.1; }
  .study-print-signature { position: absolute; right: 8mm; bottom: 3.5mm; color: #789087; font-size: 7px; font-weight: 800; letter-spacing: 0; }
}

.reports-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid #ded8fb;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 42px rgba(62, 48, 126, .08);
}
.reports-category-tabs,
.reports-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.reports-category-tabs button,
.reports-tabs button {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid #ded8fb;
  border-radius: 8px;
  background: #fff;
  color: #242445;
  font-weight: 900;
}
.reports-category-tabs button.active,
.reports-tabs button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #7447f7, #a346f8);
}
.reports-category-tabs button {
  min-width: 156px;
  background: #f9f6ff;
}
.reports-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  overflow: visible;
}
.reports-type-grid button {
  min-height: 58px;
  white-space: normal;
  text-align: left;
}
.reports-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.reports-filters label {
  display: grid;
  gap: 6px;
  color: #59636e;
  font-size: 13px;
  font-weight: 900;
}
.reports-filters input,
.reports-filters select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #ded8fb;
  border-radius: 8px;
  background: #fff;
  color: #242445;
  font: inherit;
  font-weight: 800;
}
.reports-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}
.reports-head h3 {
  margin: 0;
  color: #242445;
  font-size: 24px;
}
.reports-head p {
  margin: 4px 0 0;
  color: #7a7894;
  font-weight: 800;
}
.reports-actions {
  display: flex;
  gap: 10px;
}
.reports-table-wrap {
  overflow: auto;
  border: 1px solid #e7e2fb;
  border-radius: 8px;
  background: #fff;
}
.reports-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.reports-table th,
.reports-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #eeeafd;
  text-align: left;
  vertical-align: top;
}
.reports-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f2ff;
  color: #242445;
  font-size: 12px;
  text-transform: uppercase;
}
.report-sort-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}
.report-sort-button:hover,
.report-sort-button.active {
  color: #6d37f5;
}
.report-sort-arrow {
  flex: 0 0 auto;
  color: #8b86a7;
  font-size: 13px;
  line-height: 1;
}
.report-sort-button.active .report-sort-arrow {
  color: #6d37f5;
}
.reports-table td {
  color: #34314e;
  font-weight: 750;
}

@media print {
  body.printing-reports .app-shell,
  body.printing-reports .modal,
  body.printing-reports .toast { display: none !important; }
  body.printing-reports #printSheet {
    display: block !important;
    padding: 12mm;
    background: #fff;
  }
  .reports-print {
    color: #242445;
    font-family: Inter, Arial, sans-serif;
  }
  .reports-print header {
    margin-bottom: 8mm;
    padding-bottom: 4mm;
    border-bottom: 2px solid #38bfd6;
  }
  .reports-print h1 {
    margin: 0;
    font-size: 18px;
  }
  .reports-print p {
    margin: 2mm 0 0;
    color: #59636e;
    font-size: 10px;
  }
  .reports-print .reports-table {
    min-width: 0;
    font-size: 8px;
  }
  .reports-print .reports-table th,
  .reports-print .reports-table td {
    padding: 2.2mm;
  }
}

@media (max-width: 980px) {
  .reports-filters { grid-template-columns: 1fr 1fr; }
  .reports-filters .compact-button { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .reports-head { align-items: stretch; flex-direction: column; }
  .reports-actions { width: 100%; }
  .reports-actions button { flex: 1; }
  .reports-filters { grid-template-columns: 1fr; }
  .openai-clean-review { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .messages-module { height: auto; min-height: auto; max-height: none; gap: 12px; }
  .messages-hero { min-height: auto; padding: 16px; }
  .messages-hero h2 { font-size: 24px; }
  .messages-layout,
  .messages-layout.messages-list-collapsed { grid-template-columns: 1fr; }
  .messages-layout.messages-list-collapsed .messages-sidebar-head div,
  .messages-layout.messages-list-collapsed .messages-tabs,
  .messages-layout.messages-list-collapsed .messages-bulk-button,
  .messages-layout.messages-list-collapsed .messages-search,
  .messages-layout.messages-list-collapsed .message-recipient span:not(.message-recipient-avatar),
  .messages-layout.messages-list-collapsed .message-recipient time { display: block; }
  .messages-layout.messages-list-collapsed .messages-sidebar { grid-template-rows: auto auto auto auto minmax(0, 1fr); }
  .messages-layout.messages-list-collapsed .message-recipient { grid-template-columns: 46px minmax(0, 1fr) auto; justify-content: stretch; }
  .messages-recipient-list { max-height: 320px; }
  .messages-chat-room { min-height: 520px; }
  .messages-composer { grid-template-columns: 46px minmax(0, 1fr); }
  .messages-composer button[type="submit"] { grid-column: 1 / -1; }
  .message-bubble { max-width: 92%; }
}

.mobile-menu-button,
.mobile-menu-backdrop,
.pwa-install-button {
  display: none;
}

.pwa-install-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3400;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(135deg, #743cf2, #37c7e1);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(82, 54, 180, .22);
}

body.app-session-active .pwa-install-button:not(.hidden) {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }
  body.app-session-active .mobile-menu-button {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3300;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    border: 1px solid #ded8fb;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(55, 45, 120, .16);
  }
  .mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #28254a;
  }
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3100;
    border: 0;
    background: rgba(22, 18, 50, .42);
  }
  body.mobile-nav-open .mobile-menu-backdrop {
    display: block;
  }
  .app-shell {
    display: block;
    min-height: 100dvh;
  }
  .sidebar,
  .sidebar.sidebar-expanded,
  .sidebar.sidebar-force-collapsed {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 3200;
    width: min(320px, 88vw) !important;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 18px !important;
    overflow: hidden;
    transform: translateX(-105%);
    transition: transform .22s ease, box-shadow .22s ease;
    box-shadow: none;
  }
  body.mobile-nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 18px 0 48px rgba(32, 26, 74, .22);
  }
  .sidebar .brand,
  .sidebar:not(.sidebar-expanded) .brand {
    justify-content: flex-start !important;
    gap: 12px !important;
  }
  .sidebar .brand > div:not(.brand-mark),
  .sidebar:not(.sidebar-expanded) .brand > div:not(.brand-mark),
  .sidebar .nav-label > span,
  .sidebar:not(.sidebar-expanded) .nav-label > span,
  .sidebar .account-box strong,
  .sidebar .account-box span,
  .sidebar .account-box .cloud-sync-status,
  .sidebar .account-box button,
  .sidebar .nav-arrow,
  .sidebar .nav-chevron {
    display: block !important;
  }
  .sidebar .nav-label,
  .sidebar:not(.sidebar-expanded) .nav-label {
    justify-content: flex-start !important;
    gap: 10px !important;
  }
  .sidebar .nav-button,
  .sidebar:not(.sidebar-expanded) .nav-button {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
  }
  .sidebar .side-nav,
  .sidebar:not(.sidebar-expanded) .side-nav {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
  }
  .sidebar .nav-submenu {
    display: none;
  }
  .sidebar .nav-group.open .nav-submenu {
    display: grid;
  }
  .sidebar .account-box {
    flex: 0 0 auto;
    margin-top: 10px;
  }
  .workspace {
    min-width: 0;
    padding: 72px 12px 20px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-hero {
    display: none;
  }
  .topbar,
  .section-head,
  .reports-head,
  .basket-head,
  .maba-fanus-head {
    align-items: stretch !important;
    flex-direction: column;
    gap: 12px;
  }
  .topbar-actions,
  .section-actions,
  .reports-actions,
  .basket-header-actions,
  .maba-fanus-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .topbar-actions > *,
  .section-actions > *,
  .reports-actions > *,
  .basket-header-actions > *,
  .maba-fanus-actions > * {
    flex: 1 1 150px;
  }
  #questionsView .topbar-actions,
  #questionsView .basket-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  #questionsView .topbar-actions > *,
  #questionsView .basket-header-actions > * {
    width: 100%;
    min-height: 44px;
    flex: none;
  }
  #questionsView .question-bank {
    grid-template-columns: minmax(0, 1fr);
  }
  .exam-countdown-strip,
  .student-countdown-strip,
  .buyer-countdown-strip,
  .dashboard-workbench,
  .stats-grid,
  .management-grid,
  .student-progress-grid,
  .student-subject-list,
  .student-day-task-grid,
  .messages-layout,
  .reports-filters,
  .reports-type-grid,
  .reports-category-tabs,
  .accounting-grid,
  .resource-layout,
  .institution-grid,
  .maba-fanus-main,
  .maba-fanus-filters,
  .maba-fanus-grid,
  .buyer-question-grid,
  .homework-review-grid,
  .whatsapp-planner-grid {
    grid-template-columns: 1fr !important;
  }
  .dashboard-todo-card,
  .birthday-stat-card,
  .student-program-card {
    grid-column: auto !important;
  }
  .student-day-tabs,
  .maba-grade-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  .student-day-tab,
  .maba-grade-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .maba-fanus-shell {
    height: auto;
    min-height: calc(100dvh - 92px);
    overflow: visible;
  }
  .maba-fanus-main,
  .maba-fanus-library,
  .maba-fanus-content {
    min-height: auto;
    overflow: visible;
  }
  .maba-fanus-library {
    border-right: 0;
    border-bottom: 1px solid #e1def4;
  }
  .messages-module {
    height: auto;
    min-height: auto;
  }
  .messages-layout {
    height: auto;
  }
  .messages-sidebar,
  .messages-chat-room,
  .messages-chat {
    min-height: 420px;
  }
  .messages-recipient-list {
    max-height: 360px;
  }
  .table-wrap,
  .reports-table-wrap,
  .program-board-wrap,
  .schedule-board-wrap,
  .basket-panel,
  .question-paper-builder {
    overflow-x: auto;
  }
  .modal-card,
  .lesson-modal,
  .maba-fanus-dialog {
    width: min(100%, calc(100vw - 24px));
    max-height: 92dvh;
  }
  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  #questionsView .topbar-actions,
  #questionsView .basket-header-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 641px) {
  #questionFanusView.maba-fanus-view {
    --fanus-scale: 1;
    --fanus-design-width: 100%;
    position: relative !important;
    overflow: hidden !important;
  }
  #questionFanusView .maba-fanus-shell {
    width: var(--fanus-design-width, 100%) !important;
    min-width: 1040px !important;
    height: calc(100vh - 48px) !important;
    min-height: 660px !important;
    overflow: hidden !important;
    transform-origin: top left !important;
  }
  #questionFanusView.maba-fanus-view.maba-fanus-scaled {
    height: var(--fanus-scaled-height, calc(100vh - 48px)) !important;
    min-height: var(--fanus-scaled-height, calc(100vh - 48px)) !important;
  }
  #questionFanusView.maba-fanus-view.maba-fanus-scaled .maba-fanus-shell {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: var(--fanus-design-width, 1440px) !important;
    min-width: var(--fanus-design-width, 1440px) !important;
    transform: scale(var(--fanus-scale, 1)) !important;
  }
  #questionFanusView .maba-fanus-main {
    grid-template-columns: 310px minmax(690px, 1fr) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #questionFanusView .maba-fanus-library {
    min-height: 0 !important;
    border-right: 1px solid #e1def4 !important;
    border-bottom: 0 !important;
  }
  #questionFanusView .maba-fanus-content {
    min-width: 690px !important;
    min-height: 0 !important;
    overflow: auto !important;
  }
  #questionFanusView .maba-fanus-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
  }
  #questionFanusView .maba-fanus-filters {
    grid-template-columns: minmax(210px, 1fr) 165px 165px auto auto !important;
  }
  #questionFanusView .maba-fanus-actions {
    width: auto !important;
    flex-wrap: nowrap !important;
  }
  #questionFanusView .maba-fanus-actions > *,
  #questionFanusView .maba-fanus-tabs > * {
    flex: 0 0 auto !important;
  }
  #questionFanusView .maba-fanus-crumb,
  #questionFanusView .maba-fanus-title,
  #questionFanusView .maba-fanus-subtitle {
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}

@media (max-width: 820px) {
  .dashboard-planner-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-planner-lessons,
  .dashboard-planner-notes {
    max-height: none;
  }
  .dashboard-reminder-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .dashboard-reminder-item button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .security-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-event-row { grid-template-columns: 10px minmax(0, 1fr); }
  .security-event-row time { grid-column: 2; }
  .workspace {
    padding-inline: 10px;
  }
  h1,
  .topbar h1,
  .section-head h1,
  .maba-fanus-content h1 {
    font-size: clamp(24px, 8vw, 34px) !important;
    line-height: 1.05;
  }
  .card,
  .panel,
  .stat-card,
  .student-program-card,
  .messages-sidebar,
  .messages-chat,
  .reports-panel,
  .maba-fanus-shell {
    border-radius: 8px;
  }
  .topbar-actions > *,
  .section-actions > *,
  .reports-actions > *,
  .basket-header-actions > *,
  .maba-fanus-actions > * {
    flex-basis: 100%;
  }
  .student-countdown-strip,
  .exam-countdown-strip,
  .buyer-countdown-strip {
    gap: 10px;
  }
  .messages-composer {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .messages-composer button[type="submit"] {
    grid-column: 1 / -1;
  }
  .reports-table {
    min-width: 680px;
  }
  .pwa-install-button {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
  }
}
