﻿/* Actividades Unesco. Extraído desde index.html para modularización incremental. */

#activitiesAssignModal.active {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
}

#activitiesAssignModal .resource-upload-card {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
}

#activitiesAssignModal,
#activitiesAssignModal * {
  box-sizing: border-box;
}

#activitiesAssignModal .hidden {
  display: none !important;
}
 #activitiesAssignModal .resource-upload-card > header {
  padding: 10px 14px;
  border-bottom: 1px solid #dbe6f0;
  background: #ffffff;
}
 #activitiesAssignModal .resource-upload-card > header h2 {
  font-size: 18px;
  line-height: 1.1;
}
 #activitiesAssignModal .resource-upload-card > header .count {
  line-height: 1.2;
}
 #activitiesAssignModal .resource-upload-form {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: 10px 14px 12px;
  box-sizing: border-box;
  border-bottom: 0;
  gap: 10px;
}
 #activitiesAssignModal .activities-start {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
}
 #activitiesAssignModal .activities-task-composer {
  min-height: 0;
  overflow: hidden;
  padding-right: 0;
  width: 100%;
  grid-column: 1 / -1;
}
 #activitiesAssignModal .activities-form-grid {
  overflow: hidden;
}

.activities-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.65fr);
  gap: 14px;
  align-items: start;
}
  .activities-panel {
  border: 1px solid #cfe1f1;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(15, 62, 98, .06);
}
  .activities-panel h3 {
  margin: 0 0 10px;
  color: #0f4774;
  font-size: 18px;
}
  .activities-course-list,
.activities-assignment-list,
.activities-quick-list {
  display: grid;
  gap: 10px;
}
  .activities-course-card,
.activities-assignment-card,
.activities-option-card {
  border: 1px solid #cfe1f1;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
  color: #0b3157;
}
  .activities-course-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
  .activities-course-card strong,
.activities-assignment-card strong,
.activities-option-card strong {
  display: block;
  color: #083b66;
  font-size: 15px;
}
  .activities-course-card span,
.activities-assignment-card span,
.activities-option-card span {
  color: #50647a;
  font-size: 12px;
  font-weight: 800;
}
  .activities-chip {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  border-radius: 999px;
  background: #e6f4ff;
  color: #0f4774;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}
  .activities-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
  .activities-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
 .activities-option-card {
  text-align: left;
  cursor: pointer;
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: start;
  position: relative;
}
 .activities-option-card.active {
  border-color: #0f75bc;
  background: #eaf6ff;
  box-shadow: inset 4px 0 0 #0f75bc;
}
 .activities-option-card.coming-soon {
  cursor: not-allowed;
  opacity: .82;
  background: #f8fbff;
}
 .activities-option-card.coming-soon .activities-option-icon {
  background: #64748b;
}
 .activities-coming-soon {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 1000;
}
 .activities-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #0f75bc;
  color: #ffffff;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .02em;
}
 .activities-start {
  position: relative;
  min-height: 360px;
  margin: -8px -18px 0;
  padding: 30px 28px 30px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, .95), rgba(255,255,255,.98) 46%, rgba(236, 253, 245, .95)),
    #ffffff;
}
 .activities-start::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 160px;
  background: linear-gradient(120deg, #0f4774 0%, #159947 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 68% 82%, 0 58%);
  z-index: 0;
}
 .activities-start > * {
  position: relative;
  z-index: 1;
}
 .activities-start h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .22);
}
 .activities-start-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 14px;
  width: min(100%, 760px);
  align-items: end;
  margin-top: 10px;
}
 .activities-start-card {
  position: relative;
  min-height: 112px;
  border: 1px solid rgba(207, 225, 241, .95);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 30px rgba(15, 62, 98, .14);
  color: #083b66;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px;
  font-weight: 900;
  text-align: left;
}
 .activities-start-card:hover,
.activities-start-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(120, 53, 96, .18);
  outline: none;
}
 .activities-start-card.active {
  border-color: #159947;
  box-shadow: inset 0 0 0 2px rgba(21, 153, 71, .12), 0 18px 32px rgba(15, 62, 98, .16);
}
 .activities-start-card.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: #159947;
}
 .activities-start-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eaf6ff;
  color: #0f75bc;
  box-shadow: none;
  font-size: 24px;
}
 .activities-start-card span:last-child {
  color: #52677e;
  font-size: 13px;
  font-weight: 800;
}
 .activities-start-search {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 10px;
  width: min(100%, 640px);
  margin-top: 10px;
}
 .activities-start .activities-option-grid {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
  margin: 24px auto 0;
}
 .activities-start-search label {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  border: 1px solid #bfd7ed;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  min-height: 50px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .05);
  color: #0f4774;
}
 .activities-start-search input {
  border: 0;
  outline: 0;
  font: inherit;
  font-weight: 800;
  color: #0b3157;
  min-width: 0;
}
 .activities-start-search input::placeholder {
  color: #98a2b3;
}
 .activities-oa-step {
  width: min(100%, 940px);
  display: grid;
  gap: 12px;
  margin-top: 6px;
  border: 1px solid rgba(191, 215, 237, .95);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 28px rgba(15, 62, 98, .12);
  padding: 16px;
}
 .activities-oa-step h4 {
  margin: 0;
  color: #083b66;
  font-size: 18px;
}
 .activities-oa-grid {
  display: grid;
  grid-template-columns: 190px 230px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}
 .activities-oa-grid label {
  display: grid;
  gap: 6px;
  color: #0b3157;
  font-size: 12px;
  font-weight: 900;
}
 .activities-oa-grid select {
  width: 100%;
  border: 1px solid #b8d4ea;
  border-radius: 9px;
  background: #f8fbff;
  color: #0b3157;
  padding: 10px 11px;
  font: inherit;
  font-weight: 900;
  box-sizing: border-box;
}
 .activities-oa-summary {
  border: 1px solid #cfe1f1;
  border-radius: 10px;
  background: #eef8ff;
  color: #38566f;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}
 .activities-search-btn {
  width: 54px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: #0f4774;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 71, 116, .18);
}
 .activities-form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  grid-column: 1 / -1;
}
 .activities-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
 .activities-form-title h3 {
  margin: 0;
  color: #0f4774;
  font-size: 20px;
}
 .activities-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
  .activities-form-grid label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  color: #0b3157;
}
  .activities-form-grid input,
.activities-form-grid select,
.activities-form-grid textarea {
  border: 1px solid #b8d4ea;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  font-weight: 800;
  color: #0b3157;
  background: #ffffff;
}
  .activities-form-grid textarea,
.activities-form-grid .full {
  grid-column: 1 / -1;
}
 .activities-task-composer {
  display: grid;
  gap: 16px;
  height: 100%;
  min-height: 0;
}
 .activities-task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 12px;
  align-items: start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#activitiesAssignModal .activities-task-layout {
  width: 100%;
}
 .activities-task-main {
  display: grid;
  gap: 10px;
  min-height: 0;
}
 .activities-task-card,
.activities-task-sidebar {
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
  box-shadow: 0 8px 18px rgba(15, 62, 98, .06);
}
 .activities-task-field {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
 .activities-task-field + .activities-task-field {
  margin-top: 10px;
}
 .activities-task-field input,
.activities-task-field textarea,
.activities-task-field select,
.activities-rich-editor {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #475569;
  border-radius: 0;
  background: #f8fafc;
  padding: 10px 14px;
  color: #0b3157;
  font: inherit;
  font-weight: 800;
  box-sizing: border-box;
}
 .activities-task-field textarea {
  min-height: 82px;
  max-height: 112px;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid #94a3b8;
}
 .activities-rich-editor {
  min-height: 82px;
  max-height: 132px;
  overflow: auto;
  outline: none;
  line-height: 1.45;
}
 .activities-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #6b7280;
}
 .activities-rich-editor.disabled {
  opacity: .65;
  pointer-events: none;
}
 .activities-rich-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
  color: #475569;
  font-size: 14px;
  font-weight: 900;
}
 .activities-rich-toolbar button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
 .activities-rich-toolbar label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}
 .activities-rich-toolbar select,
.activities-rich-toolbar input[type="color"] {
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #fff;
  color: #0b3157;
  height: 30px;
  font: inherit;
  font-size: 12px;
}
 .activities-rich-toolbar select {
  width: 128px;
}
 .activities-rich-toolbar input[type="color"] {
  width: 38px;
  padding: 2px;
}
 .activities-attach-title {
  margin: 0 0 10px;
  color: #111827;
  font-size: 16px;
}
 .activities-attachment-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 2px 0 0;
}
 .activities-attachment-btn {
  border: 0;
  background: transparent;
  color: #0b3157;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-weight: 900;
  min-width: 70px;
}
 .activities-attachment-btn span:first-child {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid #d1d5db;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .07);
  font-size: 22px;
}
 .activities-attachment-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
 .activities-attachment-empty,
.activities-attachment-status,
.activities-task-sidebar small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
 .activities-attachment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px 10px;
}
 .activities-attachment-item strong,
.activities-attachment-item span {
  display: block;
}
 .activities-attachment-item strong {
  color: #0f4774;
  font-size: 12px;
}
 .activities-attachment-item span {
  color: #1f2937;
  font-size: 12px;
  overflow-wrap: anywhere;
}
 .activities-attachment-item button {
  border: 1px solid #cfe1f1;
  border-radius: 8px;
  background: #fff;
  color: #0f4774;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}
 .activities-rubric-toggle span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #0b3157;
}
 .activities-rubric-toggle input[type="checkbox"] {
  width: auto;
}
 .activities-task-sidebar {
  display: grid;
  gap: 7px;
  position: sticky;
  top: 0;
  box-shadow: none;
  border-color: transparent;
  border-left: 1px solid #d8e2ee;
  border-radius: 0;
  background: #ffffff;
}
 .activities-task-sidebar label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
 .activities-task-sidebar select,
.activities-task-sidebar input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #475569;
  border-radius: 0;
  background: #f1f5f9;
  padding: 10px 14px;
  color: #0b3157;
  font: inherit;
  font-weight: 800;
  box-sizing: border-box;
}
 .activities-assignees-btn,
.activities-rubric-btn {
  border: 1px solid #475569;
  border-radius: 999px;
  background: #ffffff;
  color: #0f5fb8;
  padding: 9px 14px;
  font-weight: 900;
  text-align: center;
}
.activities-task-assignees {
  display: grid;
  gap: 8px;
}
.activities-task-groups {
  display: grid;
  gap: 8px;
  border-top: 1px solid #d7e4ef;
  padding-top: 10px;
}
.activities-task-group-options {
  display: grid;
  gap: 8px;
}
.activities-task-assignees > span,
.activities-task-groups > span,
.activities-task-group-options small {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.activities-assignee-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.activities-assignee-mode button {
  min-height: 34px;
  border: 1px solid #bfd0e2;
  border-radius: 8px;
  background: #f8fbff;
  color: #17405f;
  font-weight: 900;
  cursor: pointer;
}
.activities-assignee-mode button.active {
  border-color: #0f5fb8;
  background: #e8f2fb;
  color: #0f5fb8;
}
.activities-task-assignee-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #d7e4ef;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 6px;
}
.activities-task-assignee-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(92px, auto);
  gap: 8px;
  align-items: start;
  border: 1px solid #eef2f7;
  border-radius: 7px;
  padding: 7px;
  color: #123a5a;
  font-size: 12px;
  font-weight: 900;
}
.activities-task-assignee-list input {
  margin-top: 2px;
}
.activities-task-assignee-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.activities-task-assignee-list select {
  min-width: 92px;
  border: 1px solid #cfe1f1;
  border-radius: 7px;
  background: #f8fbff;
  color: #0b3157;
  padding: 6px;
  font-weight: 900;
}
  .activities-empty {
  border: 1px dashed #a9ccec;
  border-radius: 8px;
  background: #f4faff;
  padding: 18px;
  color: #486077;
  font-weight: 800;
  text-align: center;
}
 .activities-course-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
 .activities-manage-card {
  border: 1px solid #cfe1f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 62, 98, .08);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 150px;
  display: grid;
  grid-template-rows: auto 1fr;
}
 .activities-manage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 62, 98, .14);
}
.activities-manage-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--activities-head-bg, #0f75bc);
  color: #fff;
  padding: 11px 14px;
  font-weight: 900;
}

.activities-manage-head.tone-0 { --activities-head-bg: #6d28d9; }
.activities-manage-head.tone-1 { --activities-head-bg: #f04a23; }
.activities-manage-head.tone-2 { --activities-head-bg: #159947; }
.activities-manage-head.tone-3 { --activities-head-bg: #0f8c9b; }
.activities-manage-head.tone-4 { --activities-head-bg: #0f75bc; }
.activities-manage-head.tone-5 { --activities-head-bg: #b45309; }

 .activities-manage-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  color: #314a60;
  font-weight: 800;
}
 .activities-manage-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef7ff;
  color: #0f75bc;
  font-size: 22px;
  font-weight: 900;
}
 .activities-manage-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #40566d;
}
 .activities-course-panel {
  display: grid;
  gap: 14px;
}
 .activities-course-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfe1f1;
  border-radius: 12px;
  background: linear-gradient(135deg, #163f7a 0%, #2474d9 54%, #eaf6ff 54%, #fff 100%);
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 62, 98, .12);
}
 .activities-course-hero h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #fff;
}
 .activities-course-hero p {
  margin: 0;
  max-width: 560px;
  color: #dbeafe;
  font-weight: 800;
  line-height: 1.45;
}
 .activities-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
 .activities-hero-actions button {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.14);
  color: #fff;
  padding: 10px 14px;
  font-weight: 900;
}
 .activities-hero-actions .primary {
  background: #fff;
  color: #0f4774;
  border-color: #fff;
}
 .activities-mini-board {
  align-self: center;
  background: rgba(255,255,255,.96);
  border-radius: 10px;
  padding: 12px;
  color: #0b3157;
  box-shadow: 0 16px 28px rgba(15, 23, 42, .16);
}
 .activities-mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #e5eef7;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 900;
}
 .activities-mini-row:last-child {
  border-bottom: 0;
}
 .activities-course-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #d8e5f2;
  padding-bottom: 8px;
}
 .activities-course-tabs button {
  border: 1px solid #cfe1f1;
  border-radius: 999px;
  background: #fff;
  color: #0f4774;
  padding: 9px 16px;
  font-weight: 900;
}
 .activities-course-tabs button.active {
  background: #0f4774;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 71, 116, .18);
}
 .activities-course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 14px;
  align-items: start;
}
 .activities-feed,
.activities-student-panel {
  display: grid;
  gap: 10px;
}
 .activities-feed-item,
.activities-student-row,
.activities-student-detail {
  border: 1px solid #cfe1f1;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: #0b3157;
}
 .activities-feed-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
}
 .activities-feed-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf6ff;
  color: #0f75bc;
  display: grid;
  place-items: center;
  font-weight: 900;
}
 .activities-student-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}
 .activities-student-row:hover {
  border-color: #0f75bc;
  background: #f5fbff;
}
 .activities-student-row strong,
.activities-feed-item strong {
  color: #083b66;
}
 .activities-student-row span,
.activities-feed-item span,
.activities-student-detail span {
  color: #52677e;
  font-size: 12px;
  font-weight: 800;
}
 .activities-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
 .activities-subject-stat {
  border: 1px solid #d7e8f6;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
  font-weight: 900;
}
.activities-subject-stat strong {
  display: block;
  color: #0f4774;
  font-size: 18px;
}
.activities-grade-dashboard {
  display: grid;
  gap: 14px;
}
.activities-grade-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.activities-grade-summary-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid #f3d8ad;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffaf2, #fff3df);
  box-shadow: 0 12px 28px rgba(74, 47, 29, .08);
  padding: 14px;
}
.activities-grade-summary-card span,
.activities-grade-summary-card small {
  color: #7c4a17;
  font-size: 12px;
  font-weight: 950;
}
.activities-grade-summary-card strong {
  color: #0b4f83;
  font-size: 26px;
  line-height: 1;
}
.activities-grade-summary-card.critical strong,
.activities-grade-summary-card.critical span {
  color: #b42318;
}
.activities-grade-summary-card.warning strong,
.activities-grade-summary-card.warning span,
.activities-grade-summary-card.watch strong,
.activities-grade-summary-card.watch span {
  color: #b45309;
}
.activities-grade-summary-card.ok strong,
.activities-grade-summary-card.ok span {
  color: #166534;
}
.activities-grade-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}
.activities-grade-bars,
.activities-grade-subject-list,
.activities-grade-support-list {
  display: grid;
  gap: 10px;
}
.activities-grade-bar-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: #203047;
  font-size: 12px;
  font-weight: 950;
}
.activities-grade-bar-row div,
.activities-grade-subject-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e6d8;
}
.activities-grade-bar-row i,
.activities-grade-subject-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0b4f83;
}
.activities-grade-bar-row.critical i,
.activities-grade-subject.critical .activities-grade-subject-bar i {
  background: #dc2626;
}
.activities-grade-bar-row.watch i,
.activities-grade-subject.watch .activities-grade-subject-bar i,
.activities-grade-subject.warning .activities-grade-subject-bar i {
  background: #d97706;
}
.activities-grade-bar-row.ok i,
.activities-grade-subject.ok .activities-grade-subject-bar i {
  background: #16a34a;
}
.activities-grade-alert {
  margin-top: 12px;
  border: 1px solid #f6c453;
  border-radius: 14px;
  background: #fff8dc;
  color: #713f12;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  padding: 12px;
}
.activities-grade-subject,
.activities-grade-support-row {
  display: grid;
  gap: 10px;
  align-items: center;
  border: 1px solid #f0d8b8;
  border-radius: 16px;
  background: #fffdf8;
  padding: 12px;
  color: #1f2937;
}
.activities-grade-subject {
  grid-template-columns: minmax(0, 1.3fr) minmax(110px, .9fr) 42px;
}
.activities-grade-support-row {
  grid-template-columns: minmax(0, 1fr) 52px;
}
.activities-grade-subject strong,
.activities-grade-support-row strong {
  color: #4a2f1d;
  font-size: 14px;
}
.activities-grade-subject span,
.activities-grade-support-row span {
  display: block;
  margin-top: 3px;
  color: #7c6a5a;
  font-size: 12px;
  font-weight: 850;
}
.activities-grade-subject b,
.activities-grade-support-row b {
  justify-self: end;
  border-radius: 999px;
  background: #eaf4fb;
  color: #0b4f83;
  min-width: 42px;
  padding: 7px 9px;
  text-align: center;
}
.activities-grade-support-row.critical b {
  background: #ffe5e5;
  color: #b42318;
}
.activities-grade-support-row.watch b,
.activities-grade-support-row.warning b {
  background: #fff3d8;
  color: #b45309;
}
.activities-task-dashboard {
  display: grid;
  gap: 14px;
}
.activities-task-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.activities-task-dashboard-head h3,
.activities-task-dashboard-card h4,
.activities-task-dashboard-card h5 {
  margin: 0;
  color: #083b66;
}
.activities-task-dashboard-head p,
.activities-task-dashboard-card p,
.activities-folder-card span,
.activities-task-file-row span,
.activities-task-recipient-row span {
  margin: 3px 0 0;
  color: #52677e;
  font-size: 12px;
  font-weight: 800;
}
.activities-task-dashboard-head button,
.activities-drive-folder-link,
.activities-folder-card a,
.activities-folder-card button,
.activities-task-file-row a {
  width: fit-content;
  border: 1px solid #cfe1f1;
  border-radius: 8px;
  background: #f8fbff;
  color: #0f4774;
  padding: 8px 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.activities-task-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.activities-task-dashboard-list,
.activities-folder-list,
.activities-task-recipient-list,
.activities-task-submission-files {
  display: grid;
  gap: 10px;
}
.activities-task-dashboard-card {
  display: grid;
  gap: 12px;
  border: 1px solid #cfe1f1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.activities-task-dashboard-card > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.activities-task-dashboard-card > header span {
  color: #0f75bc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.activities-simce-official-control {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
}

.activities-simce-official-control span {
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 1000;
  padding: 4px 8px;
}

.activities-simce-official-control.official span {
  background: #15803d;
}

.activities-simce-official-control.practice span {
  background: #64748b;
}

.activities-simce-official-control small {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.activities-simce-official-control button {
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, .28);
  border-radius: 999px;
  color: #9a3412;
  cursor: pointer;
  font-size: 11px;
  font-weight: 1000;
  padding: 5px 10px;
}

.activities-simce-official-control button:hover {
  background: #fed7aa;
}

.activities-task-progress {
  min-width: 92px;
  border: 1px solid #d7e8f6;
  border-radius: 8px;
  background: #f8fbff;
  padding: 9px;
  text-align: center;
}
.activities-task-progress strong {
  display: block;
  color: #0f4774;
  font-size: 22px;
}
.activities-task-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr);
  gap: 12px;
}
.activities-task-dashboard-grid > div,
.activities-task-recipient-list {
  border: 1px solid #edf4fb;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}
.activities-paper-workflow {
  display: grid;
  gap: 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  padding: 12px;
}
.activities-paper-workflow > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.activities-paper-workflow > header span {
  color: #c2410c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.activities-paper-workflow > header small {
  color: #7c2d12;
  font-weight: 900;
}
.activities-paper-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.activities-paper-steps article {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid #fde0bc;
  border-radius: 12px;
  background: #fffdf9;
  padding: 12px;
}
.activities-paper-steps article > span {
  width: fit-content;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}
.activities-paper-steps article strong {
  color: #4a2f1d;
  font-size: 14px;
}
.activities-paper-steps article p {
  margin: 0;
  color: #7c5a3b;
  font-size: 12px;
  line-height: 1.35;
}
.activities-paper-steps button {
  width: fit-content;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
  padding: 8px 11px;
  font-weight: 900;
  cursor: pointer;
}
.activities-paper-steps button[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.activities-task-file-row,
.activities-task-recipient-row,
.activities-folder-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid #d7e8f6;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.activities-task-recipient-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.activities-task-submission-files,
.activities-task-response {
  grid-column: 1 / -1;
}
.activities-task-response {
  border: 1px solid #e5eef7;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
}
.activities-task-error {
  color: #b42318;
}
.activities-task-empty-inline {
  border: 1px dashed #cfe1f1;
  border-radius: 8px;
  background: #fff;
  color: #52677e;
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
}
.activities-chip.submitted {
  background: #dcfce7;
  color: #166534;
}
.activities-chip.progress {
  background: #fff7d6;
  color: #92400e;
}

.activities-live-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.activities-live-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b4f83, #24a148);
  transition: width .25s ease;
}

.activities-task-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -4px 0 8px;
}

.activities-task-actions button,
.activities-task-actions a {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b4f83, #1d6ea8);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 16px;
  box-shadow: 0 10px 20px rgba(11, 79, 131, .16);
  text-decoration: none;
}

.activities-task-actions button.danger {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  box-shadow: 0 10px 20px rgba(153, 27, 27, .14);
}

.activities-task-actions button:disabled {
  cursor: wait;
  opacity: .75;
}

.student-results-panel {
  display: grid;
  gap: 18px;
  margin-top: 8px;
  border: 1px solid rgba(11, 79, 131, .16);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 18px;
}

.student-results-panel.hidden {
  display: none;
}

.student-results-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(11, 79, 131, .12);
  padding-bottom: 14px;
}

.student-results-head span,
.student-results-head p,
.student-results-freshness {
  color: #60758c;
  font-size: 12px;
  font-weight: 800;
}

.student-results-head h4 {
  margin: 4px 0;
  color: #0b3763;
  font-size: 22px;
}

.student-results-title {
  display: block;
  margin: 0 0 4px;
  color: #173b61;
  font-size: 14px;
}

.student-results-freshness {
  border-radius: 999px;
  background: #e7f2fb;
  color: #0b4f83;
  padding: 8px 12px;
  white-space: nowrap;
}

.student-results-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.student-results-session {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 950;
  padding: 8px 12px;
  white-space: nowrap;
}

.student-results-session::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.student-results-session.live::before {
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, .12);
}

.student-results-session.finished::before {
  background: #dc2626;
}

.student-results-live-tools {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(11, 79, 131, .12);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(18, 44, 74, .05);
}

.student-results-live-tools > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.student-results-live-tools > header span {
  display: block;
  color: #d97706;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.student-results-live-tools h5 {
  margin: 2px 0;
  color: #0b3763;
  font-size: 16px;
}

.student-results-live-tools p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.student-results-live-tools button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  padding: 10px 14px;
  font-weight: 950;
}

.student-results-live-roster {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.student-results-live-roster article {
  display: grid;
  gap: 8px;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px;
}

.student-results-live-roster article.excluded {
  opacity: .72;
  background: #fff7ed;
}

.student-results-live-roster strong,
.student-results-live-roster span {
  display: block;
}

.student-results-live-roster strong {
  color: #102033;
  font-size: 12px;
}

.student-results-live-roster span,
.student-results-live-roster label {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.student-results-live-roster label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-results-live-roster select {
  min-width: 0;
  width: 100%;
  border: 1px solid #cfe0f2;
  border-radius: 10px;
  background: #fff;
  color: #0b3763;
  padding: 8px;
  font-weight: 850;
}

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

.student-results-metric {
  border: 1px solid rgba(11, 79, 131, .12);
  border-radius: 16px;
  background: #fff;
  padding: 13px;
  box-shadow: 0 10px 24px rgba(18, 44, 74, .06);
}

.student-results-metric span,
.student-results-metric small {
  display: block;
  color: #66758a;
  font-size: 11px;
  font-weight: 800;
}

.student-results-metric strong {
  display: block;
  margin: 4px 0;
  color: #0b4f83;
  font-size: 24px;
  line-height: 1;
}

.student-results-official-selector {
  background: #fffaf3;
  border: 1px solid rgba(217, 119, 6, .22);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(74, 47, 29, .08);
  margin: 0 0 16px;
  padding: 16px;
}

.student-results-official-selector > header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.student-results-official-selector h5 {
  color: #4a2f1d;
  font-size: 1rem;
  margin: 0;
}

.student-results-official-selector p,
.student-results-official-selector span {
  color: #765d49;
  margin: 0;
}

.student-results-official-selector > header > div > span {
  color: #d97706;
  display: block;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.student-results-official-selector label {
  font-weight: 800;
}

.student-results-official-selector select {
  background: #fff;
  border: 1px solid rgba(217, 119, 6, .28);
  border-radius: 12px;
  color: #4a2f1d;
  font: inherit;
  font-weight: 800;
  min-width: 160px;
  padding: 9px 12px;
}

.student-results-evidence-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-bottom: 12px;
}

.student-results-evidence-grid article {
  background: #fff;
  border: 1px solid rgba(217, 119, 6, .16);
  border-radius: 14px;
  padding: 10px;
}

.student-results-evidence-grid span {
  display: block;
  font-size: .72rem;
  font-weight: 800;
}

.student-results-evidence-grid strong {
  color: #0b4f83;
  display: block;
  font-size: 1.05rem;
  margin-top: 3px;
}

.student-results-essay-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.student-results-essay-list.compact label:not(:has(input:checked)) {
  display: none;
}

.student-results-essay-list label {
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, .16);
  border-radius: 12px;
  display: flex;
  gap: 8px;
  padding: 9px;
}

.student-results-essay-list strong,
.student-results-essay-list small {
  display: block;
}

.student-results-essay-list small {
  color: #765d49;
  font-size: .74rem;
  margin-top: 2px;
}

.student-results-recommendation {
  display: grid;
  gap: 4px;
  border: 1px solid #f3c56b;
  border-radius: 14px;
  background: #fff8e7;
  color: #5d3a08;
  padding: 12px 14px;
}

.student-results-recommendation.good {
  border-color: #b9e6c8;
  background: #f0fbf4;
  color: #23583b;
}

.student-results-recommendation strong {
  font-size: 14px;
}

.student-results-tabs {
  display: grid;
  gap: 12px;
}

.student-results-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.student-results-tab-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.student-results-tab-nav label {
  cursor: pointer;
  border: 1px solid #d7e5f3;
  border-radius: 999px;
  background: #fff;
  color: #284766;
  font-size: 12px;
  font-weight: 950;
  padding: 10px 14px;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.student-results-tab-nav label:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 79, 131, .12);
}

.student-results-tab-panel {
  display: none;
}

.student-results-tab-input:nth-of-type(1):checked ~ .student-results-tab-nav label:nth-child(1),
.student-results-tab-input:nth-of-type(2):checked ~ .student-results-tab-nav label:nth-child(2),
.student-results-tab-input:nth-of-type(3):checked ~ .student-results-tab-nav label:nth-child(3),
.student-results-tab-input:nth-of-type(4):checked ~ .student-results-tab-nav label:nth-child(4),
.student-results-tab-input:nth-of-type(5):checked ~ .student-results-tab-nav label:nth-child(5) {
  border-color: #0b4f83;
  background: #0b4f83;
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 79, 131, .18);
}

.student-results-tab-input:nth-of-type(1):checked ~ .student-results-tab-panels .student-results-tab-panel:nth-child(1),
.student-results-tab-input:nth-of-type(2):checked ~ .student-results-tab-panels .student-results-tab-panel:nth-child(2),
.student-results-tab-input:nth-of-type(3):checked ~ .student-results-tab-panels .student-results-tab-panel:nth-child(3),
.student-results-tab-input:nth-of-type(4):checked ~ .student-results-tab-panels .student-results-tab-panel:nth-child(4),
.student-results-tab-input:nth-of-type(5):checked ~ .student-results-tab-panels .student-results-tab-panel:nth-child(5) {
  display: grid;
  gap: 14px;
}

.student-results-table-scroll {
  overflow: auto;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: #fff;
}

.student-results-oa-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  color: #102033;
  font-size: 13px;
}

.student-results-oa-table th,
.student-results-oa-table td {
  border-right: 1px solid #e7eef6;
  border-bottom: 1px solid #e7eef6;
  padding: 12px;
  text-align: left;
}

.student-results-oa-table thead th {
  background: #0b4f83;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.student-results-oa-table tbody th {
  color: #0b3763;
  font-weight: 950;
  white-space: nowrap;
}

.student-results-table-percent {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 46px;
  gap: 10px;
  align-items: center;
}

.student-results-table-percent strong {
  color: #0b3763;
  text-align: right;
}

.student-results-simce-estimate {
  display: grid;
  gap: 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 64%, #eef6ff 100%);
}

.student-results-simce-estimate > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.student-results-simce-estimate > header span {
  display: inline-block;
  margin-bottom: 4px;
  color: #d97706;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.student-results-simce-estimate > header h5 {
  margin: 0 0 4px;
  color: #0b3763;
  font-size: 18px;
}

.student-results-simce-estimate > header p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.student-results-simce-estimate > header > strong {
  min-width: 108px;
  border-radius: 18px;
  background: #0b4f83;
  color: #fff;
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(11, 79, 131, .18);
}

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

.student-results-simce-grid article {
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  padding: 12px;
}

.student-results-simce-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.student-results-simce-grid strong {
  display: block;
  margin-top: 4px;
  color: #0b3763;
  font-size: 24px;
  line-height: 1;
}

.student-results-score-distribution {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.student-results-score-range {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  gap: 7px;
  align-items: center;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
}

.student-results-score-range div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.student-results-score-range i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0b4f83;
}

.student-results-score-range b {
  color: #0b3763;
  text-align: right;
}

.student-results-oa-chart-card,
.student-results-support-card,
.student-results-support-summary {
  border: 1px solid rgba(11, 79, 131, .12);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(18, 44, 74, .05);
}

.student-results-oa-chart-card {
  display: grid;
  gap: 14px;
}

.student-results-oa-chart-card > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.student-results-oa-chart-card header h5,
.student-results-support-card header h5 {
  margin: 0 0 4px;
  color: #0b3763;
  font-size: 15px;
}

.student-results-oa-chart-card header p,
.student-results-support-card header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.student-results-sort-control {
  display: grid;
  gap: 5px;
  min-width: 190px;
}

.student-results-sort-control span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.student-results-sort-control select {
  border: 1px solid #d8e4f1;
  border-radius: 10px;
  background: #fff;
  color: #0f2f4d;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 10px;
}

.student-results-oa-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 260px;
  border-left: 1px solid #d7dee8;
  border-bottom: 1px solid #d7dee8;
  background:
    repeating-linear-gradient(to top, rgba(15, 23, 42, .08) 0 1px, transparent 1px 52px),
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  padding: 14px 10px 8px;
}

.student-results-oa-chart-bar {
  display: grid;
  grid-template-rows: 24px 180px 34px;
  gap: 8px;
  justify-items: center;
  align-items: end;
  min-width: 54px;
}

.student-results-oa-chart-bar b {
  color: #4f5b66;
  font-size: 11px;
  font-weight: 900;
}

.student-results-oa-chart-bar span {
  display: flex;
  align-items: flex-end;
  width: 28px;
  height: 180px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: rgba(100, 116, 139, .08);
}

.student-results-oa-chart-bar i {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: inherit;
  background: #77716a;
}

.student-results-oa-chart-bar strong {
  color: #2f3a46;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.student-results-oa-alerts {
  display: grid;
  gap: 10px;
}

.student-results-oa-alerts h5 {
  margin: 0;
  color: #0b3763;
  font-size: 15px;
}

.student-results-oa-alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.student-results-oa-alert {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: #fbfdff;
  padding: 12px;
}

.student-results-oa-alert span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.student-results-oa-alert strong {
  color: #0b3763;
  font-size: 16px;
}

.student-results-oa-alert p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.student-results-oa-alert.critical {
  border-color: #fecaca;
  background: #fff1f2;
}

.student-results-oa-alert.alert {
  border-color: #fed7aa;
  background: #fff7ed;
}

.student-results-oa-alert.watch {
  border-color: #fde68a;
  background: #fffbeb;
}

.student-results-oa-alert.strong {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.student-results-oa-alert.empty {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.student-results-guide {
  border-radius: 14px;
  background: #f3f4f6;
  color: #334155;
  padding: 13px 15px;
}

.student-results-guide strong {
  display: block;
  margin-bottom: 6px;
  color: #1f2937;
  font-size: 13px;
}

.student-results-guide p {
  margin: 5px 0;
  font-size: 12px;
  font-weight: 760;
}

.student-results-support-layout {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: 14px;
}

.student-results-support-summary {
  align-content: center;
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, #5d6873 0%, #eceff2 100%);
  color: #fff;
}

.student-results-support-summary span {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.student-results-support-summary strong {
  color: #2e3440;
  font-size: 48px;
  line-height: 1;
}

.student-results-support-summary small {
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 850;
}

.student-results-support-card {
  display: grid;
  gap: 12px;
}

.student-results-support-axis {
  display: flex;
  justify-content: space-between;
  margin: 0 58px 0 280px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.student-results-support-chart {
  display: grid;
  gap: 8px;
}

.student-results-support-row {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(220px, 1fr) 50px;
  gap: 10px;
  align-items: center;
}

.student-results-support-row strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-results-support-row div {
  position: relative;
  height: 34px;
  border: 1px solid #d4dce6;
  border-radius: 8px;
  background:
    linear-gradient(to right, rgba(197, 48, 48, .10) 0 40%, rgba(217, 119, 6, .10) 40% 80%, rgba(47, 133, 90, .08) 80% 100%),
    repeating-linear-gradient(to right, transparent 0 calc(25% - 1px), rgba(15, 23, 42, .12) calc(25% - 1px) 25%);
}

.student-results-support-row i {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #685c54;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .24);
  transform: translate(-50%, -50%);
}

.student-results-support-row b {
  color: #0b3763;
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

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

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

.student-results-grid > article,
.student-results-section {
  border: 1px solid rgba(11, 79, 131, .12);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.student-results-grid h5,
.student-results-section h5 {
  margin: 0 0 12px;
  color: #0b3763;
  font-size: 15px;
}

.student-results-bar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  color: #203047;
  font-size: 12px;
  font-weight: 900;
}

.student-results-bar-row div,
.student-results-mini-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.student-results-bar-row i,
.student-results-mini-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0b4f83;
}

.student-results-bar-row.submitted i,
.student-results-bar-row.score-alto i {
  background: #2f855a;
}

.student-results-bar-row.progress i,
.student-results-bar-row.score-adecuado i {
  background: #d97706;
}

.student-results-bar-row.pending i,
.student-results-bar-row.score-refuerzo i {
  background: #a0aec0;
}

.student-results-bar-row.score-critico i {
  background: #c53030;
}

.student-results-oa-row,
.student-results-question-row,
.student-results-student-row {
  display: grid;
  gap: 10px;
  align-items: center;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #fbfdff;
  padding: 11px;
}

.student-results-oa-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(100px, .8fr) 48px;
  margin: 9px 0;
}

.student-results-oa-row strong,
.student-results-question-row strong,
.student-results-student-row strong {
  color: #173b61;
}

.student-results-oa-row span,
.student-results-question-row small,
.student-results-student-row span {
  color: #63738a;
  font-size: 12px;
  font-weight: 750;
}

.student-results-question-list,
.student-results-student-list {
  display: grid;
  gap: 10px;
}

.student-results-question-row {
  grid-template-columns: minmax(0, 1fr) 92px 82px;
}

.student-results-question-main {
  display: grid;
  gap: 4px;
}

.student-results-question-main > span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #60758c;
  font-size: 11px;
  font-weight: 900;
}

.student-results-question-main b {
  border-radius: 999px;
  background: #eaf4fb;
  color: #0b4f83;
  padding: 2px 7px;
}

.student-results-question-score {
  text-align: right;
}

.student-results-question-score strong {
  display: block;
  color: #0b4f83;
  font-size: 22px;
}

.student-results-question-row em {
  border-radius: 999px;
  background: #edf2f7;
  color: #475569;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 6px 8px;
  text-align: center;
}

.student-results-question-row.critica em {
  background: #ffe5e5;
  color: #9b1c1c;
}

.student-results-question-row.descendida em {
  background: #fff3d8;
  color: #92400e;
}

.student-results-student-row {
  grid-template-columns: minmax(0, 1fr) 120px 110px 58px;
}

.student-results-student-row b {
  justify-self: end;
  border-radius: 999px;
  background: #eaf4fb;
  color: #0b4f83;
  padding: 7px 10px;
}

.student-results-student-row.submitted b {
  background: #e8f8ef;
  color: #276749;
}

.student-results-student-row.progress b {
  background: #fff3d8;
  color: #92400e;
}

.student-results-student-row.pending b {
  background: #edf2f7;
  color: #4a5568;
}

.student-results-live-board {
  display: grid;
  gap: 12px;
}

.student-results-live-board header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.student-results-live-board header h5 {
  margin-bottom: 4px;
}

.student-results-live-board header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.student-results-live-board label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.student-results-live-board select {
  border: 1px solid #d8e4f1;
  border-radius: 9px;
  background: #fff;
  color: #0f2f4d;
  font-weight: 900;
  padding: 8px 10px;
}

.student-results-matrix-scroll {
  overflow: auto;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: #fff;
}

.student-results-matrix {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  color: #102033;
  font-size: 12px;
}

.student-results-matrix th,
.student-results-matrix td {
  border-right: 1px solid #e7eef6;
  border-bottom: 1px solid #e7eef6;
  padding: 10px;
  text-align: center;
}

.student-results-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
  color: #0b3763;
  font-weight: 950;
}

.student-results-matrix thead th:first-child,
.student-results-matrix tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
}

.student-results-matrix thead th:first-child {
  z-index: 3;
}

.student-results-matrix tbody th {
  min-width: 220px;
  background: #fff;
}

.student-results-matrix th span,
.student-results-matrix th small,
.student-results-matrix tbody th strong,
.student-results-matrix tbody th small,
.student-results-points strong,
.student-results-points small {
  display: block;
}

.student-results-matrix th small,
.student-results-matrix tbody th small,
.student-results-points small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.student-results-points {
  min-width: 88px;
  background: #fbfdff;
}

.student-results-matrix-cell {
  min-width: 54px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.student-results-matrix-cell.correct {
  background: #b8edcf;
  color: #047857;
}

.student-results-matrix-cell.wrong {
  background: #ffd3d3;
  color: #b91c1c;
}

.student-results-matrix-cell.answered {
  background: #dbeafe;
  color: #1d4ed8;
}

.student-results-matrix-cell.empty {
  background: #f8fafc;
}

#activitiesAssignModal .activities-simce-composer {
  min-height: 0;
  overflow: auto;
  grid-column: 1 / -1;
  padding-right: 2px;
}

.activities-simce-shell {
  display: grid;
  gap: 12px;
  min-height: 0;
  color: #0b3157;
}

.activities-simce-mode-shell {
  gap: 14px;
}

.activities-simce-mode-intro {
  border: 1px solid #cfe1f1;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #fff7ed);
  box-shadow: 0 12px 28px rgba(15, 62, 98, .08);
  padding: 18px;
}

.activities-simce-mode-intro span,
.activities-simce-modebar span {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 5px 9px;
}

.activities-simce-mode-intro h4 {
  margin: 10px 0 4px;
  color: #0f4774;
  font-size: 24px;
}

.activities-simce-mode-intro p {
  margin: 0;
  color: #64748b;
  font-weight: 850;
}

.activities-simce-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.activities-simce-mode-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid #cfe1f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 62, 98, .08);
  color: #0b3157;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.activities-simce-mode-card:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 16px 32px rgba(15, 62, 98, .12);
}

.activities-simce-mode-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f4774, #1476a8);
  color: #ffffff;
  font-size: 12px;
  font-weight: 1000;
}

.activities-simce-mode-card.paper span {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.activities-simce-mode-card strong {
  color: #0f4774;
  font-size: 20px;
}

.activities-simce-mode-card small {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.activities-simce-modebar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.activities-simce-modebar button {
  border: 1px solid #cfe1f1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f4774;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  padding: 8px 12px;
}

.activities-simce-stylebar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activities-simce-stylebar button {
  border: 1px solid #cfe1f1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 62, 98, .06);
  color: #0b3157;
  cursor: pointer;
  display: grid;
  gap: 4px;
  font: inherit;
  padding: 13px 14px;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.activities-simce-stylebar button:hover {
  border-color: #f59e0b;
  box-shadow: 0 14px 28px rgba(217, 119, 6, .12);
  transform: translateY(-1px);
}

.activities-simce-stylebar button.active {
  background: linear-gradient(135deg, #fff7ed, #eef7ff);
  border-color: #f59e0b;
}

.activities-simce-stylebar span {
  color: #d97706;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.activities-simce-stylebar strong {
  color: #0f4774;
  font-size: 13px;
}

.activities-simce-evidence {
  background: #fffaf3;
  border-color: rgba(217, 119, 6, .24);
}

.activities-simce-evidence > header label {
  display: grid;
  gap: 5px;
  min-width: 170px;
}

.activities-simce-personalized-mode {
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, .22);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.activities-simce-personalized-mode button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7c2d12;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  padding: 8px 11px;
}

.activities-simce-personalized-mode button.active {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(217, 119, 6, .2);
}

.activities-simce-evidence > header select {
  border: 1px solid rgba(217, 119, 6, .32);
  border-radius: 12px;
  color: #4a2f1d;
  font: inherit;
  font-weight: 900;
  padding: 8px 10px;
}

.activities-simce-evidence-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
}

.activities-simce-evidence-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.activities-simce-evidence-list.compact label:not(:has(input:checked)) {
  display: none;
}

.activities-simce-evidence-list label {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, .16);
  border-radius: 12px;
  display: flex;
  gap: 8px;
  padding: 9px;
}

.activities-simce-evidence-list strong,
.activities-simce-evidence-list small {
  display: block;
}

.activities-simce-evidence-list small {
  color: #765d49;
  font-size: 11px;
  margin-top: 2px;
}

.activities-simce-plan {
  margin-top: 12px;
}

.activities-simce-plan h5 {
  color: #4a2f1d;
  font-size: 14px;
  margin: 0 0 8px;
}

.activities-simce-plan-note {
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, .18);
  border-radius: 12px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px;
  padding: 8px 10px;
}

.activities-simce-plan-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.activities-simce-plan-list article {
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, .16);
  border-radius: 12px;
  padding: 10px;
}

.activities-simce-plan-list article.critical {
  border-color: rgba(185, 28, 28, .36);
  background: #fff1f2;
}

.activities-simce-plan-list article.alert {
  border-color: rgba(217, 119, 6, .36);
  background: #fff7ed;
}

.activities-simce-plan-list article.strong {
  border-color: rgba(54, 92, 59, .26);
  background: #f0fbf4;
}

.activities-simce-plan-list span {
  color: #d97706;
  display: block;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.activities-simce-plan-list strong {
  color: #0b3157;
  display: block;
  font-size: 13px;
}

.activities-simce-plan-list small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
}

.activities-simce-individual-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.activities-simce-individual-list article {
  background: #ffffff;
  border: 1px solid rgba(15, 76, 129, .14);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 62, 98, .05);
  padding: 10px;
}

.activities-simce-individual-list article.ready {
  border-color: rgba(24, 121, 78, .28);
  background: #f3fbf6;
}

.activities-simce-individual-list article.fallback {
  border-color: rgba(217, 119, 6, .28);
  background: #fffaf3;
}

.activities-simce-individual-list strong,
.activities-simce-individual-list span,
.activities-simce-individual-list small {
  display: block;
}

.activities-simce-individual-list strong {
  color: #0b3157;
  font-size: 13px;
}

.activities-simce-individual-list span {
  color: #d97706;
  font-size: 11px;
  font-weight: 950;
  margin-top: 2px;
  text-transform: uppercase;
}

.activities-simce-individual-list small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
}

.activities-simce-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(190px, 1fr) minmax(190px, 1fr) minmax(150px, 180px) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #cfe1f1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #eef7ff);
}

.activities-simce-toolbar label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  color: #0b3157;
}

.activities-simce-toolbar select,
.activities-simce-toolbar input {
  min-height: 38px;
  border: 1px solid #b8d4ea;
  border-radius: 10px;
  background: #ffffff;
  color: #0b3157;
  font: inherit;
  font-weight: 900;
  padding: 8px 10px;
}

.activities-simce-toolbar label small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.activities-simce-toolbar button,
.activities-simce-question-actions button,
.activities-simce-assign-box button,
.activities-simce-paper-box button,
.activities-simce-history-list button {
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.activities-simce-toolbar button {
  min-height: 38px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f4774, #1476a8);
  box-shadow: 0 10px 22px rgba(15, 71, 116, .18);
}

.activities-simce-toolbar button:hover,
.activities-simce-question-actions button:hover,
.activities-simce-paper-box button:hover,
.activities-simce-history-list button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 71, 116, .14);
}

.activities-simce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 12px;
  align-items: start;
}

.activities-simce-card {
  border: 1px solid #cfe1f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 62, 98, .08);
  padding: 14px;
}

.activities-simce-card > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.activities-simce-card > header span {
  display: block;
  color: #d97706;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.activities-simce-card > header h4 {
  margin: 2px 0 0;
  color: #0f4774;
  font-size: 18px;
}

.activities-simce-card > header small {
  color: #64748b;
  font-weight: 900;
  text-align: right;
}

.activities-simce-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.activities-simce-stat {
  display: grid;
  gap: 3px;
  min-height: 72px;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(145deg, #f8fbff, #edf6ff);
  border: 1px solid #d8e8f6;
}

.activities-simce-stat span,
.activities-simce-stat small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.activities-simce-stat strong {
  color: #0f4774;
  font-size: 22px;
  line-height: 1;
}

.activities-simce-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.activities-simce-oa-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff7ed;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid #fed7aa;
}

.activities-simce-oa-chip.covered {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.activities-simce-oa-chip small {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
}

.activities-simce-question-list {
  display: grid;
  gap: 10px;
}

.activities-simce-question {
  border: 1px solid #d8e2ee;
  border-radius: 16px;
  background: #f8fafc;
  padding: 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.activities-simce-question:hover {
  transform: translateY(-1px);
  border-color: #9cc8ec;
  box-shadow: 0 10px 24px rgba(15, 62, 98, .08);
}

.activities-simce-question.approved {
  border-color: #86efac;
  background: #f0fdf4;
}

.activities-simce-question.repeated {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .18), 0 10px 24px rgba(127, 29, 29, .08);
}

.activities-simce-question header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.activities-simce-question header > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
}

.activities-simce-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #0f4774;
  color: #ffffff;
  font-size: 13px;
  font-weight: 1000;
  grid-row: span 2;
}

.activities-simce-question strong {
  color: #0b3157;
  font-size: 14px;
}

.activities-simce-question small {
  color: #64748b;
  font-weight: 800;
}

.activities-simce-question-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.activities-simce-question-actions button {
  min-height: 32px;
  padding: 0 12px;
  color: #0f4774;
  background: #e6f2fb;
}

.activities-simce-question-actions button.approved {
  color: #166534;
  background: #dcfce7;
}

.activities-simce-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.activities-simce-question-meta span {
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.activities-simce-question-meta span.repeated {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.activities-simce-question-meta span.pending {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.activities-simce-question-meta span.saved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.activities-simce-question-preview {
  max-height: 240px;
  overflow: auto;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  padding: 10px;
  color: #1e293b;
  line-height: 1.45;
}

.activities-simce-question-preview img,
.activities-simce-question-preview svg {
  max-width: 100%;
  height: auto;
}

.activities-simce-question-preview .math-mixed-number,
.activities-simce-question-preview .math-fraction {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  white-space: nowrap;
}

.activities-simce-question-preview .math-mixed-number {
  gap: .12em;
  margin: 0 .08em;
}

.activities-simce-question-preview .math-fraction {
  flex-direction: column;
  justify-content: center;
  gap: 0;
  line-height: 1;
  font-size: .92em;
  margin: 0 .08em;
}

.activities-simce-question-preview .math-numerator {
  border-bottom: .09em solid currentColor;
  padding: 0 .18em .05em;
}

.activities-simce-question-preview .math-denominator {
  padding: .05em .18em 0;
}

.activities-simce-editor {
  position: sticky;
  top: 8px;
  z-index: 8;
  margin: 10px 0 12px;
}

.activities-simce-editor-dialog {
  border: 1px solid #f59e0b;
  border-radius: 18px;
  background: #fffaf0;
  box-shadow: 0 18px 36px rgba(120, 53, 15, .16);
  padding: 14px;
}

.activities-simce-editor-dialog > header,
.activities-simce-editor-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.activities-simce-editor-dialog > header span {
  display: block;
  color: #c2410c;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.activities-simce-editor-dialog > header h4 {
  margin: 2px 0 0;
  color: #431407;
  font-size: 18px;
}

.activities-simce-editor-dialog > header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 24px;
  font-weight: 900;
}

.activities-simce-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .45fr);
  gap: 10px;
  margin: 12px 0;
}

.activities-simce-editor-grid label,
.activities-simce-editor-options {
  display: grid;
  gap: 6px;
  color: #431407;
  font-size: 12px;
  font-weight: 900;
}

.activities-simce-editor-grid .wide,
.activities-simce-editor-options.wide {
  grid-column: 1 / -1;
}

.activities-simce-editor-grid input,
.activities-simce-editor-grid textarea {
  width: 100%;
  border: 1px solid #fdba74;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
}

.activities-simce-editor-grid textarea {
  min-height: 170px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.activities-simce-editor-options {
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
}

.activities-simce-editor-options > strong {
  color: #9a3412;
  font-size: 13px;
}

.activities-simce-editor-options label {
  grid-template-columns: 24px 18px minmax(0, 1fr);
  align-items: center;
}

.activities-simce-editor-options label span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: #0f4774;
  color: #ffffff;
  font-weight: 1000;
}

.activities-simce-editor-options input[type="radio"] {
  width: 16px;
  height: 16px;
  padding: 0;
}

.activities-simce-editor-dialog > footer {
  justify-content: flex-end;
}

.activities-simce-editor-dialog > footer button {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  background: #ffedd5;
  color: #9a3412;
  font-weight: 1000;
  padding: 0 14px;
}

.activities-simce-editor-dialog > footer button.primary {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
}

.activities-simce-side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 0;
}

.activities-simce-history-list {
  display: grid;
  gap: 8px;
}

.activities-simce-history-list button {
  display: grid;
  gap: 3px;
  text-align: left;
  padding: 10px;
  background: #f8fafc;
  color: #0b3157;
  border: 1px solid #d8e2ee;
}

.activities-simce-history-list span {
  color: #64748b;
  font-size: 12px;
}

.activities-simce-assign-box {
  display: grid;
  gap: 10px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 12px;
  color: #7c2d12;
  font-weight: 900;
}

.activities-simce-assign-box label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activities-simce-assignee-mode {
  grid-template-columns: 1fr;
}

.activities-simce-assign-box .activities-task-assignee-list {
  max-height: 260px;
  background: #fffdf9;
}

.activities-simce-assign-box .activities-task-assignee-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.activities-simce-assign-box p {
  margin: 0;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.35;
}

.activities-simce-official-toggle,
.activities-simce-official-note {
  align-items: center;
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, .2);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.activities-simce-official-toggle input {
  accent-color: #d97706;
  height: 18px;
  width: 18px;
}

.activities-simce-official-toggle strong,
.activities-simce-official-note strong {
  color: #7c2d12;
  display: block;
  font-size: 12px;
  font-weight: 1000;
}

.activities-simce-official-toggle small,
.activities-simce-official-note span {
  color: #6b5a4e;
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.activities-simce-official-note.practice {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, .24);
}

.activities-simce-assign-box button,
.activities-simce-paper-box button,
.activities-simce-toolbar button[disabled],
.activities-simce-toolbar button.disabled {
  opacity: .65;
  cursor: not-allowed;
}

.activities-simce-assign-box button {
  min-height: 36px;
  color: #7c2d12;
  background: #fed7aa;
}

.activities-simce-paper-box {
  display: grid;
  gap: 10px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px;
  color: #0f4774;
  font-weight: 900;
}

.activities-simce-paper-box p {
  margin: 0;
  color: #0b4f83;
  font-size: 12px;
  line-height: 1.35;
}

.activities-simce-paper-box button {
  min-height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f4774, #1476a8);
}

.activities-simce-paper-box button:not([disabled]) {
  opacity: 1;
  cursor: pointer;
}

.activities-simce-paper-box.assigned {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #7c2d12;
}

.activities-simce-paper-box.assigned p {
  color: #7c2d12;
}

.activities-simce-empty,
.activities-simce-messages {
  border-radius: 14px;
  padding: 12px;
  background: #eff6ff;
  color: #0f4774;
  border: 1px solid #bfdbfe;
  font-weight: 900;
}

.activities-simce-messages {
  display: grid;
  gap: 6px;
  background: #fff7ed;
  color: #92400e;
  border-color: #fed7aa;
}

.activities-simce-messages p {
  margin: 0;
}
@media (max-width: 900px) {
  .activities-course-menu,
  .activities-course-grid,
  .activities-course-hero,
  .activities-task-dashboard-grid,
  .activities-task-summary,
  .activities-grade-grid,
  .activities-grade-summary,
  .activities-simce-grid,
  .activities-simce-mode-grid,
  .activities-simce-stylebar,
  .activities-simce-evidence-grid,
  .activities-simce-plan-list,
  .activities-paper-steps,
  .activities-simce-stats {
    grid-template-columns: 1fr;
  }

  .activities-simce-toolbar {
    grid-template-columns: 1fr;
  }

  .activities-simce-side {
    position: static;
  }
}

@media (max-height: 720px) {
  #activitiesAssignModal .resource-upload-card > header {
    padding: 8px 12px;
  }

  #activitiesAssignModal .resource-upload-form {
    padding: 8px 12px 10px;
    gap: 8px;
  }

  .activities-task-field textarea {
    min-height: 68px;
    max-height: 88px;
  }

  .activities-task-card,
  .activities-task-sidebar {
    padding: 8px 10px;
  }

  .activities-attachment-row {
    gap: 8px;
  }

  .activities-attachment-btn span:first-child {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
}

/* Vista docente Actividades Unesco: piel premium otono, acotada al modulo. */
.activities-teacher-view {
  --activities-brown: #4a2f1d;
  --activities-brown-deep: #2f1c11;
  --activities-orange: #d97706;
  --activities-gold: #f6c453;
  --activities-beige: #f5e6d3;
  --activities-cream: #fff8ef;
  --activities-green: #365c3b;
  --activities-ink: #2d241e;
  --activities-muted: #806a58;
  --activities-line: #ead7bd;
  min-height: 100vh;
  padding: 16px;
  background:
    radial-gradient(circle at 15% 8%, rgba(246, 196, 83, .18), transparent 28%),
    radial-gradient(circle at 90% 4%, rgba(54, 92, 59, .12), transparent 26%),
    linear-gradient(135deg, #fff9f0 0%, #f8ead8 48%, #fff5e7 100%);
  color: var(--activities-ink);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.activities-teacher-view *,
.activities-teacher-view *::before,
.activities-teacher-view *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.activities-teacher-view .resource-shell {
  width: min(100%, 1400px);
  min-height: calc(100vh - 32px);
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.activities-teacher-sidebar {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100vh - 32px);
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  padding: 18px 16px;
  border: 0;
  border-radius: 26px 0 0 26px;
  background:
    linear-gradient(180deg, rgba(74, 47, 29, .98), rgba(47, 28, 17, .98)),
    var(--activities-brown);
  box-shadow: 0 24px 50px rgba(74, 47, 29, .18);
  color: #fff7ea;
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 196, 83, .44) transparent;
  overflow: hidden auto;
}

.activities-teacher-sidebar::before,
.activities-teacher-sidebar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.activities-teacher-sidebar::before {
  left: -34px;
  bottom: -28px;
  width: 220px;
  height: 120px;
  background:
    radial-gradient(ellipse at 32% 45%, #d97706 0 15%, transparent 16%),
    radial-gradient(ellipse at 55% 48%, #f6c453 0 12%, transparent 13%),
    radial-gradient(ellipse at 76% 60%, #b85f04 0 13%, transparent 14%);
  opacity: .72;
}

.activities-teacher-sidebar::after {
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 68%, rgba(255, 255, 255, .05) 69% 72%, transparent 73%),
    linear-gradient(180deg, transparent 0 72%, rgba(0, 0, 0, .15));
}

.activities-teacher-sidebar > * {
  position: relative;
  z-index: 1;
}

.activities-teacher-sidebar .small-logo {
  width: 154px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.activities-teacher-sidebar h1 {
  margin: 4px 0 3px;
  color: #fff7ea;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.08;
}

.activities-teacher-sidebar p {
  margin: 0;
  color: rgba(255, 247, 234, .72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.activities-teacher-profile-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 231, 196, .26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 239, .18), rgba(217, 119, 6, .11));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
  padding: 10px;
}

.activities-teacher-profile-card span,
.activities-teacher-profile-card small {
  display: block;
  color: rgba(255, 247, 234, .76);
  font-size: 12px;
  font-weight: 800;
}

.activities-teacher-profile-card strong {
  display: block;
  color: #fff7ea;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.activities-teacher-sidebar-skin.empty {
  display: none;
}

.activities-teacher-sidebar-skin-card {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.activities-teacher-nav {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.activities-teacher-nav-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 248, 239, .04), rgba(255, 248, 239, .01));
  color: rgba(255, 247, 234, .86);
  padding: 6px 9px;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

.activities-teacher-nav-item:hover,
.activities-teacher-nav-item.active {
  transform: scale(1.01);
  border-color: rgba(255, 213, 148, .42);
  background: linear-gradient(135deg, var(--activities-orange), #f59e0b);
  box-shadow: 0 16px 30px rgba(217, 119, 6, .24);
  color: #fff;
}

.activities-teacher-nav-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(246, 196, 83, .26), rgba(217, 119, 6, .16));
  color: #ffd990;
  font-size: 20px;
  font-weight: 1000;
}

.activities-teacher-nav-item.active .activities-teacher-nav-icon,
.activities-teacher-nav-item:hover .activities-teacher-nav-icon {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.activities-teacher-main {
  min-width: 0;
  height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
}

.activities-teacher-view .activities-teacher-sidebar .back,
.activities-teacher-view .resource-hero .primary,
.activities-teacher-view .activities-hero-actions .primary,
.activities-teacher-view .activities-task-dashboard-head button,
.activities-teacher-view .activities-drive-folder-link,
.activities-teacher-view .activities-folder-card a,
.activities-teacher-view .activities-folder-card button,
.activities-teacher-view .activities-task-file-row a {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, var(--activities-orange));
  color: #fff7ea;
  box-shadow: 0 14px 28px rgba(217, 119, 6, .24);
  padding: 10px 15px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.activities-teacher-view .activities-teacher-sidebar .back:hover,
.activities-teacher-view .resource-hero .primary:hover,
.activities-teacher-view .activities-hero-actions .primary:hover,
.activities-teacher-view .activities-task-dashboard-head button:hover,
.activities-teacher-view .activities-drive-folder-link:hover,
.activities-teacher-view .activities-folder-card a:hover,
.activities-teacher-view .activities-folder-card button:hover,
.activities-teacher-view .activities-task-file-row a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(217, 119, 6, .3);
  filter: saturate(1.05);
}

.activities-teacher-view .activities-teacher-sidebar .back {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  border: 1px solid rgba(255, 231, 196, .24);
  background: rgba(255, 248, 239, .11);
  color: #fff7ea;
  box-shadow: none;
}

.activities-teacher-view .activities-teacher-sidebar .back:hover {
  background: rgba(255, 248, 239, .18);
  box-shadow: none;
}

.activities-teacher-view .resource-content {
  display: grid;
  gap: 18px;
  padding: 0;
  overflow: visible;
  align-content: start;
}

.activities-teacher-view .resource-hero.activities-teacher-hero {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 22px;
  align-items: stretch;
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(246, 196, 83, .3), transparent 28%),
    linear-gradient(135deg, rgba(255, 248, 239, .96), rgba(245, 230, 211, .85)),
    var(--activities-cream);
  box-shadow: 0 24px 50px rgba(74, 47, 29, .12);
  padding: 28px 30px;
}

.activities-teacher-view .resource-hero.activities-teacher-hero::before,
.activities-teacher-view .resource-hero.activities-teacher-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.activities-teacher-view .resource-hero.activities-teacher-hero::before {
  right: 245px;
  top: 28px;
  width: 160px;
  height: 120px;
  background:
    radial-gradient(ellipse at 22% 24%, #d97706 0 13%, transparent 14%),
    radial-gradient(ellipse at 60% 42%, #f6c453 0 11%, transparent 12%),
    radial-gradient(ellipse at 72% 78%, #b45309 0 12%, transparent 13%);
  opacity: .58;
}

.activities-teacher-view .resource-hero.activities-teacher-hero::after {
  right: 0;
  bottom: -44px;
  width: 210px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 42%, rgba(217, 119, 6, .26), transparent 42%),
    radial-gradient(circle at 62% 62%, rgba(54, 92, 59, .18), transparent 44%);
}

.activities-teacher-view .activities-teacher-hero-copy,
.activities-teacher-view .activities-teacher-hero-side {
  position: relative;
  z-index: 1;
}

.activities-teacher-view .activities-teacher-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(217, 119, 6, .12);
  color: var(--activities-orange);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.activities-teacher-view .resource-hero h2 {
  margin: 0;
  color: var(--activities-brown);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 900;
  line-height: .95;
}

.activities-teacher-view .resource-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--activities-muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.activities-teacher-view .activities-teacher-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.activities-teacher-view .activities-teacher-quick span {
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--activities-brown);
  box-shadow: 0 10px 20px rgba(74, 47, 29, .07);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
}

.activities-teacher-view .activities-teacher-hero-side {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
}

.activities-teacher-view .activities-teacher-skin.empty {
  display: none;
}

.activities-teacher-view .activities-teacher-skin-card {
  width: 154px;
  height: 154px;
  border-radius: 42px;
}

.activities-teacher-view .activities-teacher-skin-card img {
  object-fit: cover;
}

.activities-teacher-view #activitiesUnescoHomePanel {
  display: grid;
  gap: 18px;
}

.activities-official-accumulated {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(217, 119, 6, .18);
  border-radius: 22px;
  background: linear-gradient(135deg, #fffaf3, #fff);
  box-shadow: 0 16px 34px rgba(74, 47, 29, .08);
  padding: 16px;
}

.activities-official-accumulated > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.activities-official-accumulated > header span,
.activities-official-accumulated-card > header span {
  display: block;
  color: #d97706;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.activities-official-accumulated h3 {
  margin: 2px 0;
  color: var(--activities-brown);
  font-size: 20px;
}

.activities-official-accumulated p {
  margin: 0;
  color: var(--activities-muted);
  font-size: 13px;
  font-weight: 800;
}

.activities-official-accumulated-list {
  display: grid;
  gap: 12px;
}

.activities-official-accumulated-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(217, 119, 6, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  padding: 12px;
}

.activities-official-accumulated-card > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.activities-official-accumulated-card strong,
.activities-official-accumulated-card small {
  display: block;
}

.activities-official-accumulated-card strong {
  color: #0b3763;
  font-size: 16px;
}

.activities-official-accumulated-card small {
  color: #64748b;
  font-weight: 800;
}

.activities-official-accumulated-card button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b4f83, #0f6ea8);
  color: #fff;
  padding: 10px 14px;
  font-weight: 950;
}

.activities-teacher-view .activities-teacher-games-panel {
  display: grid;
  gap: 18px;
  animation: activitiesTeacherPanelIn .24s ease both;
}

.activities-games-stream-shell {
  display: grid;
  gap: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(14, 20, 25, .96), rgba(24, 29, 29, .94)),
    #111;
  color: #fffaf2;
  padding: 18px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .22);
}

.activities-games-stream-head,
.activities-games-catalog-row > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.activities-games-stream-head h2 {
  margin: 0;
  color: #fffaf2;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.activities-games-stream-head p {
  max-width: 820px;
  margin: 8px 0 0;
  color: rgba(255, 250, 242, .78);
  font-weight: 800;
}

.activities-games-feature-banner {
  min-height: 230px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 20%, rgba(246, 196, 83, .48), transparent 28%),
    linear-gradient(135deg, rgba(54, 92, 59, .92), rgba(217, 119, 6, .88)),
    #365c3b;
  padding: 26px;
  box-shadow: inset 0 -80px 90px rgba(0, 0, 0, .22);
}

.activities-games-feature-banner span,
.activities-game-poster-badge {
  color: #f6c453;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.activities-games-feature-banner h3 {
  max-width: 760px;
  margin: 6px 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 68px);
  line-height: .95;
}

.activities-games-feature-banner p {
  max-width: 620px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .84);
  font-size: 16px;
  font-weight: 800;
}

.activities-games-feature-banner button,
.activities-game-poster button {
  border: 0;
  border-radius: 999px;
  background: #f6c453;
  color: #4a2f1d;
  padding: 12px 16px;
  font-weight: 1000;
}

.activities-games-catalog {
  display: grid;
  gap: 18px;
}

.activities-games-catalog-row {
  display: grid;
  gap: 10px;
}

.activities-games-catalog-row h3 {
  margin: 0;
  color: #fffaf2;
  font-size: 19px;
}

.activities-games-catalog-row > header button {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 250, 242, .8);
  padding: 7px 11px;
  font-weight: 900;
}

.activities-games-catalog-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scroll-snap-type: x proximity;
}

.activities-game-poster {
  min-height: 190px;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 18px;
  background: #17202a;
  scroll-snap-align: start;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
  transition: transform .18s ease, filter .18s ease;
}

.activities-game-poster:hover {
  transform: translateY(-4px) scale(1.01);
  filter: brightness(1.06);
}

.activities-game-poster-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .35), transparent 28%),
    linear-gradient(135deg, #0f5a8a, #d97706);
}

.activities-game-poster.math .activities-game-poster-art {
  background: linear-gradient(135deg, #365c3b, #d97706);
}

.activities-game-poster.green .activities-game-poster-art {
  background: linear-gradient(135deg, #365c3b, #4d7c0f);
}

.activities-game-poster.amber .activities-game-poster-art {
  background: linear-gradient(135deg, #d97706, #f6c453);
}

.activities-game-poster.blue .activities-game-poster-art {
  background: linear-gradient(135deg, #0b4f83, #38bdf8);
}

.activities-game-poster.forest .activities-game-poster-art {
  background: linear-gradient(135deg, #173f2a, #365c3b);
}

.activities-game-poster-art span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
}

.activities-game-poster-body {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.activities-game-poster h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.05;
}

.activities-game-poster p {
  margin: 0;
  color: rgba(255, 250, 242, .78);
  font-size: 13px;
  font-weight: 800;
}

.activities-game-poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activities-game-poster-tags small {
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 250, 242, .82);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
}

.activities-game-poster > button {
  margin: 0 14px 14px;
}

.activities-game-poster > button:disabled {
  opacity: .65;
}

.activities-teacher-view .activities-teacher-games-hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(246, 196, 83, .42), transparent 28%),
    radial-gradient(circle at 18% 92%, rgba(54, 92, 59, .13), transparent 34%),
    linear-gradient(135deg, rgba(255, 248, 239, .98), rgba(245, 230, 211, .88));
  box-shadow: 0 24px 52px rgba(74, 47, 29, .13);
  padding: 28px;
}

.activities-teacher-view .activities-teacher-games-hero::before,
.activities-teacher-view .activities-teacher-games-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.activities-teacher-view .activities-teacher-games-hero::before {
  right: 68px;
  top: 28px;
  width: 190px;
  height: 120px;
  background:
    radial-gradient(ellipse at 20% 40%, #d97706 0 12%, transparent 13%),
    radial-gradient(ellipse at 52% 22%, #f6c453 0 12%, transparent 13%),
    radial-gradient(ellipse at 78% 58%, #b45309 0 12%, transparent 13%);
  opacity: .5;
  transform: rotate(-12deg);
}

.activities-teacher-view .activities-teacher-games-hero::after {
  right: -28px;
  bottom: -42px;
  width: 245px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 42%, rgba(217, 119, 6, .2), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(54, 92, 59, .16), transparent 44%);
}

.activities-teacher-view .activities-teacher-games-hero > div,
.activities-teacher-view .activities-teacher-games-status {
  position: relative;
  z-index: 1;
}

.activities-teacher-view .activities-teacher-games-hero h2 {
  margin: 0;
  color: var(--activities-brown);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 1000;
  line-height: .95;
}

.activities-teacher-view .activities-teacher-games-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--activities-muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.48;
}

.activities-teacher-view .activities-teacher-games-status {
  min-width: 118px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, var(--activities-orange));
  color: #fff8ef;
  box-shadow: 0 18px 36px rgba(217, 119, 6, .24);
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.activities-teacher-view .activities-teacher-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.activities-teacher-view .activities-teacher-games-feature {
  display: grid;
}

.activities-teacher-view .activities-teacher-game-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 15px;
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 14%, rgba(246, 196, 83, .28), transparent 34%),
    rgba(255, 248, 239, .96);
  box-shadow: 0 20px 42px rgba(74, 47, 29, .1);
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.activities-teacher-view .activities-teacher-game-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 54px rgba(74, 47, 29, .16);
}

.activities-teacher-view .activities-teacher-game-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -24px;
  width: 118px;
  height: 82px;
  border-radius: 50%;
  background: rgba(217, 119, 6, .1);
}

.activities-teacher-view .activities-teacher-game-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #365c3b, #4d7c0f);
  color: #fff8ef;
  box-shadow: 0 16px 32px rgba(54, 92, 59, .22);
  font-size: 15px;
  font-weight: 1000;
}

.activities-teacher-view .activities-teacher-game-card:nth-child(2) .activities-teacher-game-icon {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 16px 32px rgba(217, 119, 6, .2);
}

.activities-teacher-view .activities-teacher-game-card:nth-child(3) .activities-teacher-game-icon {
  background: linear-gradient(135deg, #4a2f1d, #7c4a22);
  box-shadow: 0 16px 32px rgba(74, 47, 29, .2);
}

.activities-teacher-view .activities-teacher-game-card h3 {
  margin: 0;
  color: var(--activities-brown);
  font-size: 22px;
  font-weight: 1000;
  line-height: 1.08;
}

.activities-teacher-view .activities-teacher-game-card p {
  margin: 8px 0 0;
  color: var(--activities-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.activities-teacher-view .activities-teacher-game-card small {
  width: fit-content;
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: rgba(217, 119, 6, .12);
  color: var(--activities-orange);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.activities-teacher-view .activities-teacher-game-feature-card {
  min-height: 280px;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: end;
  background:
    radial-gradient(circle at 90% 18%, rgba(246, 196, 83, .38), transparent 28%),
    linear-gradient(135deg, rgba(255, 248, 239, .98), rgba(255, 226, 183, .9));
}

.activities-teacher-view .activities-teacher-game-feature-card h3 {
  font-size: clamp(30px, 4vw, 52px);
}

.activities-teacher-view .activities-teacher-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.activities-teacher-view .activities-teacher-game-tags span {
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: var(--activities-brown);
  box-shadow: inset 0 0 0 1px rgba(234, 215, 189, .95);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 1000;
}

.activities-teacher-view .activities-teacher-game-feature-card button {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff8ef;
  box-shadow: 0 14px 30px rgba(217, 119, 6, .22);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 1000;
}

.activities-teacher-view .activities-teacher-game-feature-card button:hover {
  transform: translateY(-2px);
}

.activities-teacher-view .resource-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.activities-teacher-view .activities-summary-card,
.activities-teacher-view .stats-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border: 1px solid rgba(234, 215, 189, .92);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 12%, rgba(246, 196, 83, .22), transparent 36%),
    rgba(255, 248, 239, .94);
  box-shadow: 0 18px 36px rgba(74, 47, 29, .11);
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.activities-teacher-view .activities-summary-card > div,
.activities-teacher-view .stats-card > div {
  min-width: 0;
}

.activities-teacher-view .activities-summary-card:hover,
.activities-teacher-view .stats-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 42px rgba(74, 47, 29, .15);
}

.activities-teacher-view .activities-summary-card::after,
.activities-teacher-view .stats-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 86px;
  height: 64px;
  border-radius: 50%;
  background: rgba(217, 119, 6, .12);
}

.activities-teacher-view .activities-summary-card.forest {
  background:
    radial-gradient(circle at 95% 12%, rgba(54, 92, 59, .16), transparent 38%),
    rgba(245, 250, 241, .94);
}

.activities-teacher-view .activities-summary-card.orange {
  background:
    radial-gradient(circle at 95% 12%, rgba(217, 119, 6, .22), transparent 38%),
    rgba(255, 248, 239, .96);
}

.activities-teacher-view .activities-summary-card.gold {
  background:
    radial-gradient(circle at 95% 12%, rgba(246, 196, 83, .36), transparent 38%),
    rgba(255, 252, 232, .96);
}

.activities-teacher-view .activities-summary-card.brown {
  background:
    radial-gradient(circle at 95% 12%, rgba(74, 47, 29, .16), transparent 38%),
    rgba(255, 248, 239, .96);
}

.activities-teacher-view .activities-summary-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, var(--activities-orange));
  color: #fff7ea;
  box-shadow: 0 14px 28px rgba(217, 119, 6, .22);
  font-size: 14px;
  font-weight: 1000;
}

.activities-teacher-view .activities-summary-card.forest .activities-summary-icon {
  background: linear-gradient(135deg, #4d7c0f, var(--activities-green));
}

.activities-teacher-view .activities-summary-card.brown .activities-summary-icon {
  background: linear-gradient(135deg, #8b5a2b, var(--activities-brown));
}

.activities-teacher-view .activities-summary-card span:not(.activities-summary-icon),
.activities-teacher-view .stats-card span {
  color: var(--activities-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.activities-teacher-view .activities-summary-card strong,
.activities-teacher-view .stats-card strong {
  display: block;
  margin-top: 2px;
  color: var(--activities-brown);
  font-size: 34px;
  font-weight: 1000;
  line-height: .95;
}

.activities-teacher-view .activities-summary-card small,
.activities-teacher-view .stats-card small {
  display: block;
  margin-top: 7px;
  color: var(--activities-muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.activities-teacher-view .activities-course-menu {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 0;
}

.activities-teacher-view .activities-manage-card {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, .98), rgba(255, 255, 255, .86)),
    var(--activities-cream);
  box-shadow: 0 20px 42px rgba(74, 47, 29, .12);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.activities-teacher-view .activities-manage-card:hover,
.activities-teacher-view .activities-manage-card:focus-visible {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 28px 54px rgba(74, 47, 29, .18);
  outline: none;
}

.activities-teacher-view .activities-manage-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -36px;
  width: 145px;
  height: 100px;
  background:
    radial-gradient(ellipse at 32% 45%, #d97706 0 15%, transparent 16%),
    radial-gradient(ellipse at 58% 55%, #f6c453 0 13%, transparent 14%),
    radial-gradient(ellipse at 78% 68%, #b45309 0 13%, transparent 14%);
  opacity: .42;
}

.activities-teacher-view .activities-manage-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(74, 47, 29, .96), rgba(91, 57, 29, .94));
  color: #fff7ea;
  padding: 18px;
}

.activities-teacher-view .activities-manage-head.tone-0 { background: linear-gradient(135deg, #b45309, #d97706); }
.activities-teacher-view .activities-manage-head.tone-1 { background: linear-gradient(135deg, #365c3b, #4d7c0f); }
.activities-teacher-view .activities-manage-head.tone-2 { background: linear-gradient(135deg, #a16207, #f6c453); color: #3b2617; }
.activities-teacher-view .activities-manage-head.tone-3 { background: linear-gradient(135deg, #4a2f1d, #7c4a22); }
.activities-teacher-view .activities-manage-head.tone-4 { background: linear-gradient(135deg, #9a3412, #ea580c); }
.activities-teacher-view .activities-manage-head.tone-5 { background: linear-gradient(135deg, #0f766e, #365c3b); }

.activities-teacher-view .activities-course-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 248, 239, .2);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 239, .24);
  color: inherit;
  font-size: 22px;
  font-weight: 1000;
}

.activities-teacher-view .activities-manage-head div span {
  display: block;
  color: currentColor;
  opacity: .78;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.activities-teacher-view .activities-manage-head div strong {
  display: block;
  margin-top: 3px;
  color: currentColor;
  font-size: 21px;
  font-weight: 1000;
  line-height: 1.05;
}

.activities-teacher-view .activities-manage-head .arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 248, 239, .18);
  color: currentColor;
  font-size: 32px;
  line-height: 1;
}

.activities-teacher-view .activities-manage-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.activities-teacher-view .activities-manage-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 26%, rgba(246, 196, 83, .65), transparent 38%),
    linear-gradient(135deg, #fef3c7, #fff8ef);
  color: var(--activities-orange);
  box-shadow: 0 14px 28px rgba(217, 119, 6, .14);
  font-size: 15px;
  font-weight: 1000;
}

.activities-teacher-view .activities-manage-body p {
  margin: 3px 0 10px;
  color: var(--activities-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.activities-teacher-view .activities-manage-progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(74, 47, 29, .1);
}

.activities-teacher-view .activities-manage-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--activities-gold), var(--activities-orange));
}

.activities-teacher-view .activities-manage-metrics,
.activities-teacher-view .activities-manage-foot {
  grid-column: 1 / -1;
}

.activities-teacher-view .activities-manage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.activities-teacher-view .activities-manage-metrics span {
  min-height: 58px;
  border: 1px solid rgba(234, 215, 189, .85);
  border-radius: 18px;
  background: rgba(255, 255, 255, .64);
  color: var(--activities-muted);
  padding: 9px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.activities-teacher-view .activities-manage-metrics strong {
  display: block;
  color: var(--activities-brown);
  font-size: 20px;
  line-height: 1;
}

.activities-teacher-view .activities-manage-foot {
  margin-top: 4px;
  color: var(--activities-orange);
  font-size: 12px;
  font-weight: 1000;
}

.activities-teacher-view .activities-course-panel {
  gap: 18px;
}

.activities-teacher-view .activities-course-hero {
  min-height: 236px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: 18px;
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(246, 196, 83, .28), transparent 30%),
    linear-gradient(135deg, rgba(255, 248, 239, .98), rgba(245, 230, 211, .88));
  box-shadow: 0 24px 48px rgba(74, 47, 29, .12);
  color: var(--activities-brown);
  padding: 26px;
}

.activities-teacher-view .activities-course-hero h2 {
  color: var(--activities-brown);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 1000;
}

.activities-teacher-view .activities-course-hero p {
  color: var(--activities-muted);
  font-size: 16px;
  font-weight: 800;
}

.activities-teacher-view .activities-hero-actions button {
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: var(--activities-brown);
  box-shadow: 0 12px 24px rgba(74, 47, 29, .08);
}

.activities-teacher-view .activities-hero-actions .primary {
  color: #fff7ea;
}

.activities-teacher-view .activities-mini-board {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, .98), rgba(255, 255, 255, .82));
  box-shadow: 0 18px 34px rgba(74, 47, 29, .11);
  color: var(--activities-brown);
  padding: 18px;
}

.activities-teacher-view .activities-mini-row {
  border-bottom: 1px solid rgba(234, 215, 189, .85);
  color: var(--activities-muted);
}

.activities-teacher-view .activities-mini-row strong {
  color: var(--activities-brown);
  font-size: 18px;
}

.activities-teacher-view .activities-course-tabs {
  gap: 10px;
  border: 0;
  padding: 0;
}

.activities-teacher-view .activities-course-tabs button {
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 16px;
  background: rgba(255, 248, 239, .86);
  color: var(--activities-brown);
  box-shadow: 0 12px 24px rgba(74, 47, 29, .08);
  padding: 12px 18px;
}

.activities-teacher-view .activities-course-tabs button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #f59e0b, var(--activities-orange));
  color: #fff7ea;
  box-shadow: 0 16px 30px rgba(217, 119, 6, .22);
}

.activities-teacher-view .activities-course-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .78fr);
  gap: 18px;
}

.activities-teacher-view .activities-panel {
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 24px;
  background: rgba(255, 248, 239, .9);
  box-shadow: 0 20px 42px rgba(74, 47, 29, .11);
  padding: 18px;
}

.activities-teacher-view .activities-course-checklist .resource-dashboard-single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activities-teacher-view .activities-course-checklist .activities-summary-card {
  min-height: 112px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  border-radius: 18px;
  padding: 12px;
}

.activities-teacher-view .activities-course-checklist .activities-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  font-size: 12px;
}

.activities-teacher-view .activities-course-checklist .activities-summary-card strong {
  font-size: 27px;
}

.activities-teacher-view .activities-panel-title {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.activities-teacher-view .activities-panel-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, #f59e0b, var(--activities-orange));
  color: #fff7ea;
  font-weight: 1000;
  box-shadow: 0 14px 26px rgba(217, 119, 6, .18);
}

.activities-teacher-view .activities-panel h3,
.activities-teacher-view .activities-task-dashboard-head h3,
.activities-teacher-view .activities-task-dashboard-card h4,
.activities-teacher-view .activities-task-dashboard-card h5 {
  margin: 0;
  color: var(--activities-brown);
  font-weight: 1000;
}

.activities-teacher-view .activities-panel-title p,
.activities-teacher-view .activities-task-dashboard-head p,
.activities-teacher-view .activities-task-dashboard-card p,
.activities-teacher-view .activities-folder-card span,
.activities-teacher-view .activities-task-file-row span,
.activities-teacher-view .activities-task-recipient-row span {
  color: var(--activities-muted);
  font-weight: 800;
}

.activities-teacher-view .activities-feed-item,
.activities-teacher-view .activities-student-row,
.activities-teacher-view .activities-student-detail,
.activities-teacher-view .activities-task-dashboard-card,
.activities-teacher-view .activities-folder-card,
.activities-teacher-view .activities-task-file-row,
.activities-teacher-view .activities-task-recipient-row,
.activities-teacher-view .activities-task-response,
.activities-teacher-view .activities-subject-stat {
  border: 1px solid rgba(234, 215, 189, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 24px rgba(74, 47, 29, .07);
}

.activities-teacher-view .activities-feed-item,
.activities-teacher-view .activities-student-row {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.activities-teacher-view .activities-feed-item:hover,
.activities-teacher-view .activities-student-row:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 119, 6, .36);
  background: rgba(255, 248, 239, .96);
  box-shadow: 0 18px 30px rgba(74, 47, 29, .12);
}

.activities-teacher-view .activities-feed-icon {
  border-radius: 16px;
  background: #fff1d6;
  color: var(--activities-orange);
}

.activities-teacher-view .activities-chip {
  background: #fff1d6;
  color: #9a3412;
  border: 1px solid rgba(217, 119, 6, .16);
}

.activities-teacher-view .activities-chip.submitted {
  background: #e6f4de;
  color: var(--activities-green);
}

.activities-teacher-view .activities-focus-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.activities-teacher-view .activities-focus-list div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(234, 215, 189, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .64);
  padding: 12px;
}

.activities-teacher-view .activities-focus-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(217, 119, 6, .12);
  color: var(--activities-orange);
  font-weight: 1000;
}

.activities-teacher-view .activities-focus-list strong,
.activities-teacher-view .activities-student-row strong,
.activities-teacher-view .activities-feed-item strong {
  color: var(--activities-brown);
  font-weight: 1000;
}

.activities-teacher-view .activities-focus-list small {
  display: block;
  grid-column: 2;
  color: var(--activities-muted);
  font-size: 12px;
  font-weight: 800;
}

.activities-teacher-view .activities-task-dashboard {
  gap: 18px;
}

.activities-teacher-view .activities-task-dashboard-head {
  border: 1px solid rgba(234, 215, 189, .95);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(246, 196, 83, .22), transparent 30%),
    rgba(255, 248, 239, .92);
  box-shadow: 0 18px 34px rgba(74, 47, 29, .1);
  padding: 18px;
}

.activities-teacher-view .activities-task-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.activities-teacher-view .activities-task-summary .stats-card {
  grid-template-columns: 1fr;
  min-height: 104px;
}

.activities-teacher-view .activities-task-summary .stats-card span {
  overflow-wrap: anywhere;
}

.activities-teacher-view .activities-task-dashboard-card {
  padding: 18px;
}

.activities-teacher-view .activities-task-dashboard-card > header {
  align-items: flex-start;
}

.activities-teacher-view .activities-task-dashboard-card > header span {
  color: var(--activities-orange);
}

.activities-teacher-view .activities-task-progress {
  border: 1px solid rgba(234, 215, 189, .9);
  border-radius: 18px;
  background: #fff8ef;
}

.activities-teacher-view .activities-task-progress strong {
  color: var(--activities-brown);
}

.activities-teacher-view .activities-task-dashboard-grid > div,
.activities-teacher-view .activities-task-recipient-list {
  border: 1px solid rgba(234, 215, 189, .9);
  border-radius: 18px;
  background: rgba(255, 248, 239, .64);
}

.activities-teacher-view .activities-empty,
.activities-teacher-view .activities-task-empty-inline {
  border: 1px dashed rgba(217, 119, 6, .42);
  border-radius: 20px;
  background: rgba(255, 248, 239, .74);
  color: var(--activities-muted);
}

@keyframes activitiesTeacherPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .activities-teacher-view .resource-shell {
    grid-template-columns: 1fr;
  }

  .activities-teacher-sidebar {
    position: relative;
    min-height: auto;
    height: auto;
    max-height: none;
    border-radius: 22px;
    overflow: hidden;
  }

  .activities-teacher-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activities-teacher-main {
    height: auto;
    overflow: visible;
    padding: 16px 0 0;
  }

  .activities-teacher-view .resource-dashboard,
  .activities-teacher-view .activities-task-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activities-teacher-view .resource-hero.activities-teacher-hero,
  .activities-teacher-view .activities-course-hero,
  .activities-teacher-view .activities-course-grid,
  .activities-teacher-view .activities-teacher-games-hero {
    grid-template-columns: 1fr;
  }

  .activities-teacher-view .activities-teacher-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activities-teacher-view .activities-teacher-game-feature-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .activities-teacher-view .activities-teacher-game-feature-card button {
    width: fit-content;
  }

  .student-results-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-results-score-distribution {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .student-results-support-layout {
    grid-template-columns: 1fr;
  }

  .student-results-support-axis {
    margin-left: 230px;
  }
}

@media (max-width: 720px) {
  .activities-teacher-view {
    padding: 10px;
  }

  .activities-start-cards {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  .activities-teacher-view .grade-top,
  .activities-teacher-view .resource-hero.activities-teacher-hero,
  .activities-teacher-view .activities-course-hero,
  .activities-teacher-view .activities-panel {
    border-radius: 22px;
  }

  .activities-teacher-view .resource-dashboard,
  .activities-teacher-view .activities-task-summary,
  .activities-teacher-view .activities-course-checklist .resource-dashboard-single,
  .activities-teacher-view .activities-manage-metrics,
  .activities-teacher-view .activities-teacher-games-grid {
    grid-template-columns: 1fr;
  }

  .activities-teacher-nav {
    grid-template-columns: 1fr;
  }

  .activities-teacher-view .activities-manage-body {
    grid-template-columns: 1fr;
  }

  .activities-teacher-view .activities-manage-icon {
    display: none;
  }

  .activities-teacher-view .activities-teacher-game-feature-card h3 {
    font-size: 32px;
  }

  .student-results-head,
  .student-results-official-selector > header,
  .activities-task-dashboard-card > header {
    display: grid;
  }

  .student-results-freshness {
    width: fit-content;
    white-space: normal;
  }

  .student-results-simce-estimate > header,
  .student-results-simce-grid,
  .student-results-score-distribution {
    grid-template-columns: 1fr;
    display: grid;
  }

  .student-results-simce-estimate > header > strong {
    justify-self: start;
  }

  .student-results-metrics,
  .student-results-evidence-grid,
  .student-results-question-row,
  .student-results-student-row,
  .student-results-oa-row {
    grid-template-columns: 1fr;
  }

  .student-results-oa-chart-card > header,
  .student-results-support-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .student-results-sort-control {
    min-width: 0;
  }

  .student-results-support-axis {
    margin: 0;
  }

  .student-results-question-score {
    text-align: left;
  }

  .student-results-student-row b {
    justify-self: start;
  }
}

