:root {
  --bg: #f8f4ef;
  --panel: #ffffff;
  --text: #2f251f;
  --muted: #6f6258;
  --line: #ddcec0;
  --brand: #c30000;
  --brand-soft: #f9dddd;
  --accent: #7a6f60;
  --danger: #b33632;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #fff8f3, var(--bg) 50%);
}

h1, h2, h3, p {
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fcf8f3);
  box-shadow: 0 4px 20px rgba(90, 52, 38, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.master-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  user-select: none;
  -webkit-user-drag: none;
}

.topbar h1 {
  font-size: 1.4rem;
}

.topbar h1 span {
  font-weight: 500;
  color: var(--brand);
}

.topbar h1 span em {
  color: inherit;
  font-size: 0.86em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

.topbar p {
  color: var(--muted);
  margin-top: 4px;
}

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

.school-header-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
}

.layout {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 85px);
}

.layout.app-background-bg {
  isolation: isolate;
}

.layout.app-background-bg::before {
  content: "";
  position: fixed;
  top: 85px;
  right: 0;
  bottom: 0;
  left: 280px;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(255, 253, 251, 0.78) 0%, rgba(255, 247, 241, 0.58) 48%, rgba(255, 247, 241, 0.36) 100%),
    url("./Background Images/Teacher Classroom Image.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.layout.app-background-bg .sidebar,
.layout.app-background-bg .content {
  position: relative;
  z-index: 1;
}

.auth-screen {
  min-height: calc(100vh - 85px);
  display: grid;
  place-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(195, 0, 0, 0.1), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(122, 111, 96, 0.14), transparent 45%),
    linear-gradient(160deg, #fff8f5 0%, #f8f1ea 55%, #f5ece3 100%);
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("./SKAL-crest.png"),
    repeating-linear-gradient(
      -35deg,
      rgba(122, 111, 96, 0.24) 0px,
      rgba(122, 111, 96, 0.24) 2px,
      transparent 2px,
      transparent 20px
    ),
    repeating-linear-gradient(
      35deg,
      rgba(195, 0, 0, 0.2) 0px,
      rgba(195, 0, 0, 0.2) 2px,
      transparent 2px,
      transparent 24px
    );
  background-size: min(74vw, 770px);
  background-position: center 57%;
  background-repeat: no-repeat;
  opacity: 0.11;
}

.auth-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.14) 58%, transparent 80%);
}

.auth-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 25px rgba(73, 43, 31, 0.1);
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-tab {
  background: #fffdfa;
  color: #3f2a1d;
  border: 1px solid #bca996;
  font-weight: 700;
}

.auth-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: #7f100f;
}

.auth-body {
  display: grid;
  gap: 10px;
}

.auth-card h2 {
  font-size: 1.2rem;
}

.auth-card .small {
  margin-bottom: 4px;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fdf8f4);
}

.sidebar-logo {
  width: 100%;
  max-width: 130px;
  height: 84px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  background: #fff;
}

.sidebar label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.sidebar select {
  width: 100%;
}

#roleHint {
  display: block;
  color: var(--muted);
  margin: 6px 0 12px;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab {
  text-align: left;
  border: 1px solid #bca996;
  background: #fffdfa;
  color: #3f2a1d;
  font-weight: 700;
  transition: 120ms ease;
}

.tab.active {
  border-color: #7f100f;
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.tab:hover {
  transform: translateX(2px);
  border-color: #8a6f5e;
  background: #fff7ef;
}

.tab.active:hover {
  background: var(--brand);
  color: #fff;
  border-color: #7f100f;
}

.content {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  align-content: start;
}

.layout.app-background-bg .content .card {
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 26px 44px rgba(49, 31, 22, 0.26),
    0 8px 16px rgba(120, 61, 38, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.95) inset;
}

.content.owner-console-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1100px;
}

.owner-overview-top-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .owner-overview-top-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.content.reports-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1200px;
}

.report-filter-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 14px;
  background: #fffaf6;
}

.report-panel-title {
  color: #4d2d21;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  align-items: end;
}

.searchable-filter-wrap input {
  width: 100%;
  box-sizing: border-box;
}

.report-action-row {
  padding-top: 2px;
}

.report-collapsible-panel {
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 14px;
  background: #fffaf6;
}

.report-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.report-snapshot-tile {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(195, 0, 0, 0.08), transparent 36%),
    #fffaf6;
  box-shadow: 0 6px 14px rgba(120, 20, 20, 0.06);
}

.report-snapshot-tile span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-snapshot-tile strong {
  color: #4d2d21;
  font-size: 1.7rem;
  line-height: 1;
}

.report-snapshot-visual {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 14px;
  background: #fffdfb;
}

.content.data-dashboard-layout {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1180px;
  align-items: start;
}

.lens-summary-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.lens-intro {
  grid-column: 1 / -1;
  color: #6f5e52;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 9px 12px;
  border: 1px solid rgba(234, 219, 204, 0.72);
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.82);
  box-shadow: 0 7px 16px rgba(73, 43, 31, 0.06);
  backdrop-filter: blur(3px);
}

.lens-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(234, 219, 204, 0.84);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.86);
  box-shadow: 0 10px 24px rgba(73, 43, 31, 0.08);
  backdrop-filter: blur(3px);
}

.lens-section-header {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  padding: 0 2px 2px;
}

.lens-section-header h3 {
  color: #3d2a22;
  font-size: 1.1rem;
  line-height: 1.1;
}

.lens-section-header p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.lens-instructional-section {
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
}

.lens-summary-row .card {
  height: 100%;
}

.lens-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.lens-metric-card {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #eadbcc;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(195, 0, 0, 0.035), transparent 44%),
    #fffaf6;
  box-shadow: 0 10px 20px rgba(80, 35, 20, 0.07);
}

.lens-metric-card span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.lens-metric-card strong {
  align-self: end;
  color: #4d2d21;
  font-size: 1.35rem;
  line-height: 1;
}

.lens-priority-card {
  border-color: rgba(195, 0, 0, 0.24);
  background:
    radial-gradient(circle at top right, rgba(195, 0, 0, 0.1), transparent 38%),
    rgba(255, 253, 251, 0.96);
}

.lens-priority-note {
  color: #6f5e52;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.data-dashboard-layout .chart-row {
  grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1.8fr) minmax(30px, auto);
}

.data-dashboard-layout .chart-track {
  min-width: 0;
}

.content.permissions-layout {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  max-width: 1280px;
}

.content.permissions-layout .wide-card {
  grid-column: 1 / -1;
}

.content.resources-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
}

.content.resources-layout .card-head {
  margin-bottom: 6px;
}

.content.teacher-workspace-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
}

.content.users-layout {
  grid-template-columns: minmax(260px, 0.75fr) minmax(520px, 1.75fr);
  max-width: 1180px;
}

.content.users-layout .wide-card {
  grid-column: 1 / -1;
}

.content.users-layout .user-seats-wrap,
.content.users-layout .add-user-wrap {
  display: grid;
  min-width: 0;
}

.content.users-layout .user-seats-wrap > .card,
.content.users-layout .add-user-wrap > .card {
  height: 100%;
}

.content.users-layout .user-seats-wrap .card-body {
  align-content: space-between;
  gap: 12px;
}

.content.users-layout .user-seats-wrap .pill {
  width: fit-content;
}

.content.observations-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
}

.content.checklists-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
}

.content.schedule-layout {
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.25fr);
  max-width: 1180px;
  align-items: start;
}

.schedule-workflow-card {
  padding: 10px 14px;
  height: auto;
}

.schedule-workflow-card .card-head {
  margin-bottom: 6px;
}

.schedule-side-column {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.content.schools-layout {
  grid-template-columns: minmax(280px, 318px) minmax(0, 1fr);
  max-width: 1180px;
}

.schools-layout .school-settings-panel,
.schools-layout .my-school-panel {
  min-width: 0;
}

.owner-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-subtab {
  background: #fffdfa;
  color: #3f2a1d;
  border: 1px solid #bca996;
  font-weight: 700;
}

.owner-subtab.active {
  background: var(--brand);
  color: #fff;
  border-color: #7f100f;
}

.inquiry-action-btn {
  font-size: 0.8em;
  padding: 8px 11px;
}

.inquiry-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.inquiry-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(122, 111, 96, 0.25);
}

.inquiry-status-pill.new {
  background: #fff1d6;
  color: #8a4f00;
}

.inquiry-status-pill.contacted {
  background: #e6f6e9;
  color: #246b36;
}

.inquiry-status-pill.converted {
  background: #dff3ec;
  color: #0f674b;
}

.inquiry-status-pill.archived {
  background: #ece8e2;
  color: #6f6258;
}

.checklist-subtabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.checklist-subtabs .owner-subtab {
  width: 100%;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(73, 43, 31, 0.08);
  overflow: hidden;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.05rem;
}

.card-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.card-body > * {
  max-width: 100%;
  min-width: 0;
}

input, select, textarea, button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  max-width: 100%;
}

input[type="color"] {
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(122, 111, 96, 0.45);
  border-radius: 6px;
}

input[type="color"]::-moz-color-swatch {
  border: 1px solid rgba(122, 111, 96, 0.45);
  border-radius: 6px;
}

input[type="file"] {
  width: 100%;
  min-width: 0;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button {
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  border: 1px solid #7f100f;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(120, 20, 20, 0.2);
  transition: 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button.ghost {
  background: #fffdfa;
  color: var(--brand);
  border: 2px solid #b23a36;
  font-weight: 700;
}

button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

tbody tr.selected-row td {
  background: #fff4ef;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap table {
  min-width: 680px;
}

.table-wrap.checklist-table {
  overflow-x: visible;
}

.table-wrap.checklist-table table {
  min-width: 0;
  table-layout: fixed;
}

.table-wrap.checklist-table th:first-child,
.table-wrap.checklist-table td:first-child {
  width: 220px;
}

.table-wrap.checklist-table th,
.table-wrap.checklist-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.checklist-library {
  display: grid;
  gap: 10px;
}

.checklist-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.checklist-overview-item {
  border: 1px solid #eadbcc;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #fffdfb, #f9f1e8);
}

.checklist-overview-item strong {
  color: #6f4536;
}

.checklist-overview-item p {
  margin: 6px 0 0;
  color: #6c6259;
  font-size: 0.9rem;
  line-height: 1.35;
}

.checklist-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: end;
}

.checklist-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.checklist-library-row {
  display: grid;
  gap: 8px;
  border: 1px solid #eadbcc;
  border-radius: 8px;
  padding: 10px;
  background: #fffdfb;
}

.pre-question-row,
.lookfor-row {
  padding: 12px;
}

.pre-question-row {
  gap: 6px;
  padding: 9px 10px;
  position: relative;
}

.pre-question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pre-question-left-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pre-question-row.dragging {
  opacity: 0.6;
}

.pre-question-row.drop-before {
  box-shadow: inset 0 4px 0 var(--brand);
}

.pre-question-row.drop-after {
  box-shadow: inset 0 -4px 0 var(--brand);
}

.drag-handle.pre-question-drag {
  border: 1px solid #cdb9a7;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff8f0;
  color: #6f4536;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: grab;
}

.drag-handle.pre-question-drag:active {
  cursor: grabbing;
}

.question-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.pre-question-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
}

.pre-question-fields .stack {
  min-width: 0;
}

.pre-question-fields textarea {
  width: 100%;
  min-height: 48px;
}

.pre-question-hint {
  color: #7b6d60;
  font-size: 0.78rem;
}

.lookfor-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lookfor-category-group {
  display: grid;
  gap: 8px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(135deg, #fffdfb, #fbf4ed);
}

.lookfor-category-heading {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 11px;
  background: #6f4536;
  color: #fffaf4;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.checklist-count {
  padding: 4px 2px;
}

.checklist-library-row button {
  width: fit-content;
}

.pre-observation-panel {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fffdfb;
}

.feedback-reference-panel {
  gap: 10px;
}

.feedback-reference-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #4d2d21;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.feedback-reference-summary::-webkit-details-marker {
  display: none;
}

.feedback-reference-summary > span {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #eadbcc;
  border-radius: 999px;
  background: #fffaf6;
  color: var(--brand);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feedback-reference-summary .feedback-reference-title {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

.feedback-reference-title strong {
  color: #4d2d21;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.feedback-reference-title em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 400;
}

.feedback-reference-panel[open] .feedback-reference-summary span {
  color: var(--brand);
}

.session-comparison-summary {
  margin-bottom: 2px;
}

.teacher-preobs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.model-classroom-preobs-layout {
  grid-template-columns: 190px minmax(0, 1fr);
}

.model-classroom-preobs-layout .teacher-preobs-request-list,
.model-classroom-preobs-layout .teacher-preobs-request {
  min-width: 0;
}

.teacher-preobs-request-list {
  display: grid;
  gap: 8px;
}

.teacher-preobs-section {
  display: grid;
  gap: 8px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  background: rgba(255, 253, 251, 0.9);
  overflow: hidden;
}

.teacher-preobs-section-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: #44271c;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.teacher-preobs-section-summary::-webkit-details-marker {
  display: none;
}

.teacher-preobs-section-summary::after {
  content: "Open";
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.teacher-preobs-section[open] .teacher-preobs-section-summary::after {
  content: "Close";
}

.teacher-preobs-section-summary strong {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2e0;
  color: #7a4b2f;
  font-size: 0.78rem;
}

.teacher-preobs-section-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.teacher-preobs-section-empty {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 2px;
}

.teacher-preobs-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border: 1px solid #eadbcc;
  border-radius: 10px;
  background: rgba(255, 253, 251, 0.94);
  color: #44271c;
  box-shadow: 0 5px 12px rgba(73, 43, 31, 0.06);
}

.teacher-preobs-request.active {
  border-color: #b54840;
  background: linear-gradient(180deg, #fff4ef 0%, #fffaf6 100%);
  box-shadow: 0 8px 18px rgba(120, 20, 20, 0.12);
}

.teacher-preobs-request-date {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.teacher-preobs-request-meta {
  grid-column: 1 / -1;
  color: #6f6258;
  font-size: 0.76rem;
  line-height: 1.25;
}

.teacher-preobs-request-date strong {
  color: #44271c;
  font-size: 0.92rem;
}

.teacher-preobs-request-date span {
  color: var(--muted);
  font-size: 0.78rem;
}

.teacher-preobs-status {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.teacher-preobs-status.pending {
  background: #fff2e0;
  color: #7a4b2f;
}

.teacher-preobs-status.submitted {
  background: #e9f6ec;
  color: #246b3a;
}

.teacher-preobs-open {
  grid-column: 1 / -1;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 900;
}

.teacher-preobs-form-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.teacher-preobs-empty-form {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed #d6b9a2;
  border-radius: 12px;
  background: rgba(255, 253, 251, 0.82);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.teacher-preobs-form-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf6, #fffdfb);
}

.teacher-preobs-form-header div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.teacher-preobs-form-header strong {
  color: #3f2a1d;
  font-size: 1.02rem;
}

.teacher-preobs-form-header span {
  color: var(--muted);
  font-size: 0.84rem;
}

.teacher-preobs-question-list {
  display: grid;
  gap: 10px;
}

.teacher-preobs-question-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  background: rgba(255, 253, 251, 0.94);
}

.teacher-preobs-question-card textarea {
  min-height: 88px;
}

.teacher-preobs-submit {
  justify-self: end;
}

.feedback-session-summary {
  display: grid;
  gap: 10px;
}

.feedback-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf6 0%, #fffdfb 100%);
}

.session-detail-summary {
  grid-template-columns: 1fr;
}

.session-detail-facts {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.feedback-session-identity {
  display: grid;
  gap: 4px;
}

.feedback-session-identity strong {
  font-size: 1.02rem;
  color: #4b2a1b;
}

.feedback-session-meta,
.feedback-session-fact span {
  color: var(--muted);
  font-size: 0.82rem;
}

.feedback-session-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feedback-session-fact {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid #eadbcc;
  border-radius: 10px;
  background: #fff;
}

.teacher-feedback-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf6, #fffdfb);
}

.teacher-feedback-intro strong {
  color: #3f2a1d;
  font-size: 1.08rem;
}

.teacher-feedback-intro p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.teacher-feedback-history {
  display: grid;
  gap: 6px;
}

.teacher-feedback-list-head {
  display: grid;
  grid-template-columns: 130px minmax(280px, 1fr) 88px 76px;
  gap: 12px;
  align-items: center;
  padding: 0 10px 2px;
  color: #7b6d60;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.teacher-feedback-card {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid #eadbcc;
  border-radius: 10px;
  background: rgba(255, 253, 251, 0.94);
  box-shadow: 0 6px 14px rgba(73, 43, 31, 0.07);
  overflow: hidden;
}

.teacher-feedback-card-header {
  display: grid;
  grid-template-columns: 130px minmax(280px, 1fr) 88px 76px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
}

.teacher-feedback-date-cell,
.teacher-feedback-observer-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.teacher-feedback-date-cell strong,
.teacher-feedback-observer-cell strong {
  color: #44271c;
  font-size: 0.92rem;
  line-height: 1.1;
}

.teacher-feedback-date-cell span,
.teacher-feedback-observer-cell span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.1;
}

.teacher-feedback-score {
  width: fit-content;
  justify-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff2e8;
  border: 1px solid #e8cbb3;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
}

.teacher-feedback-notes span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teacher-feedback-view-btn {
  justify-self: end;
  padding: 6px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.teacher-feedback-details {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.teacher-feedback-lookfors {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 10px;
  background: #fffdfb;
}

.teacher-feedback-lookfors-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.teacher-feedback-lookfors-header span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teacher-feedback-lookfors-header strong {
  color: #44271c;
  font-size: 0.9rem;
}

.teacher-feedback-lookfor-group {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #eadbcc;
}

.teacher-feedback-lookfor-category {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #6f4536;
  color: #fffaf4;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.teacher-feedback-lookfor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 8px;
  border: 1px solid #f0e4d8;
  border-radius: 8px;
  background: #fffaf6;
}

.teacher-feedback-lookfor-prompt {
  color: #4b2f22;
  font-size: 0.88rem;
  line-height: 1.3;
}

.teacher-feedback-response-pill {
  min-width: 112px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f5eadf;
  color: #6f4536;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.teacher-feedback-lookfor-note {
  grid-column: 1 / -1;
  color: #6f6258;
  font-size: 0.82rem;
  line-height: 1.3;
}

.teacher-feedback-notes {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  background: #fff8f2;
}

.teacher-feedback-notes p {
  margin: 0;
  color: #4b2f22;
  line-height: 1.42;
}

.teacher-feedback-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.teacher-feedback-empty {
  padding: 14px;
  border: 1px dashed #d6b9a2;
  border-radius: 12px;
  background: rgba(255, 253, 251, 0.88);
  color: var(--muted);
  font-weight: 700;
}

.teacher-feedback-actions {
  justify-content: flex-end;
}

.feedback-forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.teacher-profile-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbc9ba;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(195, 0, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #fff7f1 0%, #fffdfb 100%);
  box-shadow: 0 10px 22px rgba(94, 63, 44, 0.08);
}

.teacher-profile-hero {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.teacher-profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #c30000 0%, #7a6f60 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 20px rgba(94, 28, 22, 0.2);
}

.teacher-profile-text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.teacher-profile-eyebrow {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.teacher-profile-name {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
  color: #44271c;
}

.teacher-profile-role {
  color: #694635;
  font-size: 1rem;
  font-weight: 700;
}

.teacher-profile-meta {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.teacher-profile-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.teacher-profile-fact {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.teacher-profile-fact span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.teacher-profile-fact strong {
  color: #4b2f22;
  font-size: 1.05rem;
}

.teacher-profile-nav {
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 12px rgba(120, 20, 20, 0.06);
  position: relative;
}

.teacher-profile-nav:hover {
  transform: translateY(-1px);
}

.teacher-profile-nav.active {
  border-color: #b54840;
  background: linear-gradient(180deg, #fff4ef 0%, #fffaf6 100%);
  box-shadow: 0 8px 18px rgba(120, 20, 20, 0.12);
}

.teacher-profile-nav.active span {
  color: var(--brand);
}

.teacher-profile-nav em {
  margin-top: 4px;
  color: #7b3527;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.my-profile-card {
  margin-top: 2px;
}

.my-profile-activity-grid {
  margin-top: 4px;
}

.my-profile-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  background: rgba(255, 250, 246, 0.86);
}

.model-assignment-pill strong {
  font-size: 0.94rem;
  line-height: 1.1;
  white-space: nowrap;
}

.model-assignment-pill em {
  color: var(--brand);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-weight: 500;
}

.model-assignment-pill {
  padding-right: 34px;
}

.model-overview-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(195, 0, 0, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(195, 0, 0, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 249, 0.96), rgba(255, 244, 238, 0.9));
  box-shadow: 0 14px 28px rgba(74, 36, 25, 0.1);
}

.model-overview-hero h2 {
  max-width: 760px;
  margin: 6px 0 8px;
  color: #3b2119;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.model-overview-hero p {
  max-width: 840px;
  color: #66554a;
  line-height: 1.5;
}

.model-overview-badge {
  display: grid;
  place-items: center;
  min-width: 160px;
  padding: 14px;
  border-radius: 16px;
  background: #7f100f;
  color: #fff;
  text-align: center;
  box-shadow: inset 0 -10px 18px rgba(48, 12, 9, 0.2), 0 10px 22px rgba(127, 16, 15, 0.2);
}

.model-overview-badge span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

.model-overview-badge strong {
  margin-top: 3px;
  font-size: 1.1rem;
}

.model-workflow-grid,
.model-snapshot-grid,
.model-next-grid {
  display: grid;
  gap: 12px;
}

.model-workflow-grid {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.model-workflow-step,
.model-snapshot-item,
.model-next-item {
  border: 1px solid rgba(122, 111, 96, 0.22);
  border-radius: 16px;
  background: rgba(255, 252, 249, 0.92);
  box-shadow: 0 10px 20px rgba(73, 43, 31, 0.08);
}

.model-workflow-step {
  position: relative;
  min-height: 178px;
  padding: 16px;
  overflow: hidden;
}

.model-workflow-step::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(195, 0, 0, 0.08);
}

.model-workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(195, 0, 0, 0.22);
}

.model-workflow-step strong {
  display: block;
  margin: 12px 0 7px;
  color: #3b2119;
  font-size: 1rem;
}

.model-workflow-step p,
.model-next-item span {
  color: #66554a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.model-snapshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.model-snapshot-item {
  padding: 14px;
}

.model-snapshot-item span {
  display: block;
  color: #735f52;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-snapshot-item strong {
  display: block;
  margin-top: 6px;
  color: #7f100f;
  font-size: 1.45rem;
}

.model-next-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.model-next-item {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.model-next-item strong {
  color: #3b2119;
}

.model-prep-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.model-prep-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border: 2px solid rgba(195, 0, 0, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff4ef 100%);
  color: #3b2119;
  text-align: left;
  box-shadow: 0 8px 16px rgba(73, 43, 31, 0.1);
  cursor: pointer;
}

.model-prep-tool:hover,
.model-prep-tool.active {
  border-color: #a91513;
  background: linear-gradient(180deg, #fff8f4 0%, #fffdfb 100%);
  color: #3b2119;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(127, 16, 15, 0.14);
}

.model-prep-tool.active .model-prep-tool-arrow {
  background: #7f100f;
  color: #fff;
  border-color: #7f100f;
}

.model-prep-tool-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.model-prep-tool strong {
  font-size: 1rem;
}

.model-prep-tool em {
  color: #66554a;
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.4;
}

.model-prep-tool-arrow {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(195, 0, 0, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #8f1714;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.model-prep-preview {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(122, 111, 96, 0.24);
}

.model-prep-preview-head {
  display: grid;
  gap: 4px;
}

.model-prep-preview-head strong {
  color: #3b2119;
  font-size: 1.05rem;
}

.model-prep-preview-head span,
.model-rubric-scale {
  color: #66554a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.model-preview-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(122, 111, 96, 0.22);
  border-radius: 16px;
  background: rgba(255, 252, 249, 0.88);
}

.model-preview-section ul {
  margin: 0;
  padding-left: 20px;
  color: #4a3a31;
  line-height: 1.45;
}

.model-rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.model-rubric-item {
  padding: 14px;
  border: 1px solid rgba(122, 111, 96, 0.22);
  border-radius: 16px;
  background: rgba(255, 252, 249, 0.9);
  box-shadow: 0 10px 20px rgba(73, 43, 31, 0.07);
}

.model-rubric-item strong {
  color: #7f100f;
}

.model-rubric-item p {
  margin-top: 7px;
  color: #66554a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.model-inline-reference {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(195, 0, 0, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.95), rgba(255, 253, 251, 0.92));
}

.model-inline-reference-head {
  display: grid;
  gap: 3px;
}

.model-inline-reference-head strong {
  color: #3b2119;
  font-size: 0.98rem;
}

.model-inline-reference-head span {
  color: #66554a;
  font-size: 0.84rem;
  line-height: 1.35;
}

.model-inline-reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-inline-reference-btn {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(195, 0, 0, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #8f1714;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.model-inline-reference-btn:hover,
.model-inline-reference-btn.active {
  border-color: #7f100f;
  background: #7f100f;
  color: #fff;
}

.model-inline-reference .model-prep-preview {
  margin-top: 4px;
  padding-top: 12px;
}

.model-inline-reference .model-preview-section {
  padding: 10px;
}

.model-inline-reference-compact {
  margin-top: 14px;
}

.model-formal-teacher-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(195, 0, 0, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(195, 0, 0, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 249, 0.96), rgba(255, 244, 238, 0.88));
  box-shadow: 0 10px 20px rgba(74, 36, 25, 0.08);
}

.model-formal-teacher-hero h2 {
  margin: 4px 0 6px;
  color: #3b2119;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.model-formal-teacher-hero p {
  max-width: 760px;
  color: #66554a;
  line-height: 1.45;
}

.model-formal-teacher-hero + .model-snapshot-grid .model-snapshot-item strong {
  color: #3b2119;
  font-size: 1rem;
  line-height: 1.25;
}

.model-formal-progress {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.model-formal-progress-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(122, 111, 96, 0.2);
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.92);
}

.model-formal-progress-step > span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-weight: 900;
}

.model-formal-progress-step.complete > span {
  background: #e9f6ec;
  color: #246b3a;
}

.model-formal-progress-step.pending > span {
  background: #fff2e0;
  color: #7a4b2f;
}

.model-formal-progress-step strong {
  display: block;
  color: #3b2119;
  font-size: 0.94rem;
}

.model-formal-progress-step em {
  display: block;
  margin-top: 2px;
  color: #66554a;
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.35;
}

.model-outcome-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(122, 111, 96, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf6 0%, #fffdfb 100%);
}

.model-outcome-preview strong {
  display: block;
  color: #3b2119;
}

.model-outcome-preview span {
  display: block;
  margin-top: 3px;
  color: #66554a;
  font-size: 0.86rem;
  line-height: 1.35;
}

.model-outcome-preview em {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.model-outcome-preview.pending em {
  background: #fff2e0;
  color: #7a4b2f;
}

.model-outcome-preview.meets em {
  background: #e9f6ec;
  color: #246b3a;
}

.model-reflection-review {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(122, 111, 96, 0.2);
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.94);
}

.model-reflection-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.model-reflection-review-head strong {
  display: block;
  color: #3b2119;
}

.model-reflection-review-head span {
  display: block;
  margin-top: 3px;
  color: #66554a;
  font-size: 0.86rem;
  line-height: 1.35;
}

.model-reflection-response-list {
  display: grid;
  gap: 10px;
}

.model-reflection-response {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf6 0%, #fffdfb 100%);
}

.model-reflection-response strong {
  color: #44271c;
  font-size: 0.92rem;
}

.model-reflection-response p {
  color: #3f2a1d;
  line-height: 1.45;
}

.model-final-reflection-summary {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(195, 0, 0, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.95), rgba(255, 253, 251, 0.94));
}

.teacher-profile-nav::after {
  content: ">";
  position: absolute;
  right: 12px;
  top: 12px;
  color: #9d4a3e;
  font-weight: 900;
  font-size: 0.9rem;
}

.session-detail-shell {
  display: grid;
  gap: 16px;
}

.session-detail-intro {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #dbc9ba;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8f3 0%, #fffdfb 100%);
  box-shadow: 0 8px 18px rgba(94, 63, 44, 0.08);
}

.session-detail-title {
  margin: 0;
  font-size: 1.45rem;
  color: #44271c;
  line-height: 1.08;
}

.session-detail-meta {
  color: #6f6258;
  font-size: 0.92rem;
  font-weight: 600;
}

.session-detail-section {
  display: grid;
  gap: 10px;
}

.session-detail-section-title {
  color: #4d2d21;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.session-detail-nav-row {
  gap: 6px;
}

.session-detail-nav-btn {
  padding: 5px 9px;
  border-width: 1px;
  font-size: 0.76rem;
  line-height: 1.15;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(120, 20, 20, 0.08);
  width: fit-content;
  align-self: flex-start;
  flex: 0 0 auto;
}

.observation-start-guide {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #eadbcc;
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(195, 0, 0, 0.08), transparent 38%),
    #fffaf6;
}

.observation-start-guide strong {
  color: #4b2f22;
  font-size: 0.95rem;
}

.observation-start-guide span {
  color: var(--muted);
  font-size: 0.86rem;
}

.collaboration-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}

.collaboration-list,
.collaboration-detail {
  display: grid;
  gap: 10px;
}

.collaboration-list {
  align-content: start;
}

.collaboration-row {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d9c6b7;
  background: linear-gradient(180deg, #fff 0%, #fff9f4 100%);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(122, 67, 44, 0.08);
}

.collaboration-row:hover {
  border-color: #b94b43;
  box-shadow: 0 6px 16px rgba(122, 67, 44, 0.14);
}

.collaboration-row.active {
  border-color: #9f1f1c;
  background: linear-gradient(180deg, #fff6f5 0%, #fffaf6 100%);
  box-shadow: 0 8px 18px rgba(122, 32, 24, 0.16);
}

.collaboration-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.collaboration-row-top strong {
  font-size: 0.98rem;
  color: #5a2d1a;
}

.collaboration-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c9b4a2;
  background: #fff;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(120, 20, 20, 0.1);
}

.collaboration-detail {
  min-width: 0;
}

.collaboration-feedback-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9c8bb;
  border-left: 6px solid var(--observer-accent, var(--brand));
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  box-shadow: 0 8px 18px rgba(94, 63, 44, 0.08);
}

.collaboration-feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.collaboration-feedback-header::-webkit-details-marker {
  display: none;
}

.collaboration-feedback-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.collaboration-observer-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff4ef;
  border: 1px solid #e4c6b8;
  color: #7b3527;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.collaboration-feedback-body {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.collaboration-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.collaboration-category-stack {
  display: grid;
  gap: 12px;
}

.collaboration-category-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9c8bb;
  border-left: 6px solid var(--brand);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  box-shadow: 0 8px 18px rgba(94, 63, 44, 0.08);
}

.collaboration-category-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.collaboration-category-summary::-webkit-details-marker {
  display: none;
}

.collaboration-category-body {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.collaboration-note-row td {
  background: #fff8f1;
  color: #6f6258;
  font-size: 0.84rem;
}

.collaboration-compare-table th:first-child,
.collaboration-compare-table td:first-child {
  min-width: 240px;
  max-width: 240px;
  white-space: normal;
}

.collaboration-score {
  font-weight: 800;
  text-align: center;
  border-radius: 8px;
}

.score-met {
  background: #e8f3ea;
  color: #2f6a43;
}

.score-partial {
  background: #fff1d9;
  color: #8b5a12;
}

.score-not-observed {
  background: #f7e5e4;
  color: #8d2d28;
}

.pre-observation-summary {
  display: grid;
  gap: 8px;
}

.pre-observation-item {
  display: grid;
  gap: 4px;
  border-top: 1px solid #eadbcc;
  padding-top: 8px;
}

.table-wrap.compact-table {
  overflow-x: visible;
}

.table-wrap.compact-table table {
  min-width: 0;
  table-layout: auto;
}

.table-wrap.compact-table th,
.table-wrap.compact-table td {
  overflow-wrap: anywhere;
  padding: 6px 4px;
  font-size: 0.88rem;
}

.table-wrap.sticky-first-col th:first-child,
.table-wrap.sticky-first-col td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.table-wrap.sticky-first-col th:first-child {
  z-index: 2;
}

.table-wrap.permissions-matrix th,
.table-wrap.permissions-matrix td {
  padding: 6px 4px;
}

.table-wrap.permissions-matrix tbody tr:nth-child(even) td {
  background: #fcf8f3;
}

.table-wrap.permissions-matrix tbody td.perm-yes,
.table-wrap.permissions-matrix tbody td.perm-no,
.table-wrap.permissions-matrix tbody td.perm-conditional {
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  background-clip: padding-box;
}

.table-wrap.permissions-matrix tbody td.perm-yes {
  color: #1f6a3a;
  background: #e6f4ea;
}

.table-wrap.permissions-matrix tbody td.perm-no {
  color: #8a2222;
  background: #fdeaea;
}

.table-wrap.permissions-matrix tbody td.perm-conditional {
  color: #6a4b29;
  background: transparent;
  box-shadow: inset 0 0 0 1px #d9c8b3;
}

.table-wrap.permissions-matrix tbody tr:nth-child(even) td.perm-yes {
  background: #dbefdf;
}

.table-wrap.permissions-matrix tbody tr:nth-child(even) td.perm-no {
  background: #f9dfdf;
}

.table-wrap.permissions-matrix tbody tr:nth-child(even) td.perm-conditional {
  background: transparent;
}

.permission-matrix-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf6;
  overflow: hidden;
}

.permission-matrix-panel summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 10px 14px;
  list-style: none;
}

.permission-matrix-panel summary::-webkit-details-marker {
  display: none;
}

.permission-matrix-panel summary::after {
  content: "Show";
  justify-self: end;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: #efe5dc;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.permission-matrix-panel[open] summary::after {
  content: "Hide";
}

.permission-matrix-panel summary strong,
.permission-matrix-panel summary span {
  min-width: 0;
}

.permission-matrix-panel summary span {
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-matrix-panel-body {
  padding: 0 14px 14px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 8px 4px;
  text-align: left;
  vertical-align: top;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
}

.pill.beta {
  background: #f4e4d0;
  color: #6a4b29;
}

.pill.active {
  background: #e6eee8;
  color: #355646;
}

.pill.expired {
  background: #f9e0df;
  color: #7c2925;
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 6px;
}

.seat-meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3e7dc;
  border: 1px solid #eadbcc;
}

.seat-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: #355646;
}

.seat-meter-fill.beta {
  background: #c07d2c;
}

.seat-meter-fill.expired {
  background: #9f2d28;
}

.seat-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.seat-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #eadbcc;
  border-radius: 10px;
  padding: 7px 9px;
  background: #fffaf4;
}

.seat-stat strong {
  color: #4b2f22;
  font-size: 1.05rem;
  order: 2;
}

.seat-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-form-grid,
.user-directory-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  padding: 10px;
  background: #fffaf4;
}

.user-sort-button {
  border: 1px solid #cdb9a7;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fffdfb;
  color: #6f4536;
  font-size: 0.8rem;
  font-weight: 800;
}

.user-sort-button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.user-permission-options {
  display: grid;
  gap: 8px;
  border: 1px solid #eadbcc;
  border-radius: 10px;
  padding: 10px;
  background: #fffdfb;
}

.user-directory-list,
.guest-access-list {
  display: grid;
  gap: 10px;
}

.user-directory-card,
.guest-access-card {
  display: grid;
  gap: 10px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #fffdfb, #fbf4ed);
}

.user-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.user-card-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.user-pill-action {
  border: 1px solid #d1a29f;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff8f8;
  color: #7c2925;
  font-size: 0.78rem;
  font-weight: 800;
}

.user-pill-action:hover:not(:disabled) {
  background: #f9e0df;
  border-color: #b65b55;
}

.user-card-identity {
  display: grid;
  gap: 2px;
}

.user-card-identity strong {
  font-size: 1.02rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 10px;
  background: #fff6ef;
  border: 1px solid #cfa985;
  color: #6a3422;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(106, 52, 34, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.user-card-identity span {
  color: var(--muted);
  font-size: 0.84rem;
}

.user-card-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-card-email-link {
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.user-profile-link {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #c9b4a2;
  background: #fff;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(120, 20, 20, 0.08);
}

.user-profile-link:hover {
  transform: translateY(-1px);
}

.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.user-detail-grid div {
  display: grid;
  gap: 2px;
  border-top: 1px solid #eadbcc;
  padding-top: 6px;
}

.user-detail-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-detail-grid strong {
  color: #3f2a1d;
  font-size: 0.88rem;
}

.user-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #eadbcc;
  padding-top: 10px;
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subscription-actions {
  display: grid;
  justify-items: start;
  align-items: flex-start;
  margin-top: 4px;
}

.subscription-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-align: center;
  transition: 120ms ease;
}

.subscription-action-primary {
  padding: 8px 14px;
  font-size: 0.88rem;
  line-height: 1.15;
  min-height: auto;
  min-width: 230px;
  border: 1px solid #7f100f;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 10px rgba(120, 20, 20, 0.2);
}

.subscription-action-addon {
  margin-top: 4px;
  padding: 5px 10px;
  font-size: 0.76rem;
  line-height: 1.1;
  min-height: auto;
  min-width: 230px;
  width: 230px;
  max-width: 230px;
  border: 1px solid #7f100f;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 10px rgba(120, 20, 20, 0.2);
}

.subscription-action-addon.is-purchased {
  background: var(--brand);
  color: #fff;
  border-color: #7f100f;
  box-shadow: 0 3px 10px rgba(120, 20, 20, 0.2);
}

.mini-bar {
  display: grid;
  gap: 4px;
}

.mini-bar > span {
  font-size: 0.85rem;
  color: var(--muted);
}

.mini-bar > div {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #efe5dc;
  border: 1px solid var(--line);
  overflow: hidden;
}

.mini-bar > div > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #de655b);
}

.chart-block {
  display: grid;
  gap: 10px;
}

.chart-title {
  font-weight: 700;
  color: #6f4536;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(120px, 2fr) 36px;
  gap: 8px;
  align-items: center;
}

.chart-label {
  font-size: 0.85rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.chart-track {
  height: 14px;
  border-radius: 999px;
  background: #efe5dc;
  border: 1px solid var(--line);
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #de655b);
}

.chart-value {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

.permission-row {
  display: grid;
  gap: 10px;
}

.permission-row label {
  line-height: 1.35;
}

.permission-row button {
  width: fit-content;
  min-width: 92px;
  margin-top: 2px;
}

.permission-access-list {
  display: grid;
  gap: 6px;
}

.permission-access-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf6;
  overflow: hidden;
}

.permission-access-panel + .permission-access-panel {
  margin-top: 10px;
}

.permission-access-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 12px 14px;
  list-style: none;
}

.permission-access-panel summary::-webkit-details-marker {
  display: none;
}

.permission-access-panel summary::after {
  content: "Show";
  justify-self: start;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: #efe5dc;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.permission-access-panel[open] summary::after {
  content: "Hide";
}

.permission-panel-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.permission-panel-title span {
  color: var(--muted);
  font-size: 0.86rem;
}

.permission-panel-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.permission-access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.permission-access-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.permission-access-identity strong,
.permission-access-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-access-identity span {
  color: var(--muted);
  font-size: 0.84rem;
}

.permission-access-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
}

.permission-access-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.library-maintenance-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #d9c8b3;
  border-radius: 14px;
  background: #fffaf6;
}

.schedule-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.schedule-guide-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf6;
}

.schedule-guide-step > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.schedule-guide-step p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.schedule-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 20px;
}

.schedule-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  align-items: end;
}

.schedule-details-grid .stack {
  min-width: 0;
}

.schedule-details-grid .stack:nth-child(1) {
  flex: 0 1 240px;
  max-width: 240px;
}

.schedule-details-grid .stack:nth-child(2) {
  flex: 0 1 165px;
  max-width: 165px;
}

.schedule-details-grid .stack:nth-child(3) {
  flex: 0 1 125px;
  max-width: 125px;
}

.schedule-details-grid input,
.schedule-details-grid select {
  box-sizing: border-box;
  width: 100%;
}

.schedule-observer-groups {
  display: grid;
  gap: 10px;
}

.schedule-observer-group {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf6;
}

.schedule-observer-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  color: #6f4536;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  list-style: none;
}

.schedule-observer-heading::-webkit-details-marker {
  display: none;
}

.schedule-observer-heading::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 2px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

.schedule-observer-group[open] .schedule-observer-heading::before {
  content: "-";
}

.schedule-observer-heading span:first-child {
  min-width: 0;
}

.schedule-observer-count,
.schedule-observer-selected-count {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #eadbcc;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.schedule-observer-selected-count {
  color: var(--brand);
}

.schedule-observer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0e2d5;
}

.schedule-observer-row:has(input:disabled) {
  opacity: 0.62;
}

.schedule-observer-info {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.schedule-observer-info strong,
.schedule-observer-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-observer-info span {
  color: var(--muted);
  font-size: 0.84rem;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-extra-list {
  margin-top: 10px;
}

.schedule-header-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 4px 8px;
  border: 1px solid #eadbcc;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(120, 20, 20, 0.08);
}

.schedule-header-expand strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.76rem;
}

.schedule-header-expand span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf6;
}

.schedule-date-block,
.schedule-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.schedule-date-block {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.schedule-date-block span,
.schedule-detail span {
  color: var(--muted);
  font-size: 0.86rem;
}

.schedule-detail strong,
.schedule-detail span {
  overflow-wrap: anywhere;
}

.schedule-status-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.schedule-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.schedule-actions button {
  min-width: 88px;
  width: auto;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.schedule-reschedule-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.notification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid #eadbcc;
}

.notification-row .small {
  overflow-wrap: anywhere;
}

.notification-row button,
.notification-actions button {
  padding: 5px 8px;
  font-size: 0.78rem;
  min-height: auto;
}

.teacher-dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(122, 111, 96, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 239, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(195, 0, 0, 0.11), transparent 34%);
  box-shadow: 0 14px 30px rgba(59, 36, 28, 0.1);
}

.teacher-dashboard-hero h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  color: #2f241f;
}

.teacher-dashboard-hero .teacher-profile-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.teacher-dashboard-hero p {
  margin: 0;
  max-width: 620px;
  color: #6a5548;
}

.teacher-dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.teacher-dashboard-stat {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(122, 111, 96, 0.18);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 20px rgba(59, 36, 28, 0.08);
}

.teacher-dashboard-stat span {
  display: block;
  font-size: 0.76rem;
  color: #7a6f60;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.teacher-dashboard-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.22rem;
  color: #3a2720;
}

.coach-overview-card {
  align-self: start;
}

.coach-overview-card .card-body {
  gap: 8px;
}

.coach-overview-card .teacher-dashboard-hero {
  padding: 12px;
  gap: 10px;
}

.coach-overview-card .teacher-dashboard-hero h2 {
  margin: 2px 0 4px;
}

.coach-overview-card .teacher-dashboard-stat-grid {
  gap: 8px;
  margin-top: 8px;
}

.coach-overview-card .teacher-dashboard-stat {
  padding: 9px 10px;
  border-radius: 14px;
}

.coach-overview-card .teacher-dashboard-stat strong {
  font-size: 1.08rem;
}

.teacher-dashboard-notifications-card {
  align-self: start;
}

.teacher-dashboard-side-stack {
  display: grid;
  gap: 10px;
  align-self: start;
}

.teacher-dashboard-notifications-card .card-body {
  gap: 5px;
}

.teacher-dashboard-notifications-card .notification-row {
  padding: 5px 0;
}

.guest-assigned-tasks-card {
  align-self: start;
}

.guest-assigned-tasks-card .card-body {
  gap: 6px;
}

.coach-snapshot-card {
  align-self: start;
}

.coach-snapshot-card .card-body {
  gap: 6px;
}

.coach-snapshot-card .pill {
  margin-bottom: 2px;
}

.coach-snapshot-card table td {
  padding-top: 5px;
  padding-bottom: 5px;
}

.tech-compact-card {
  align-self: start;
  padding: 11px 12px;
}

.tech-compact-card .card-head {
  margin-bottom: 6px;
}

.tech-compact-card .card-body {
  gap: 6px;
}

.tech-branding-card .checklist-form-grid {
  gap: 8px;
}

.tech-branding-card input[type="file"] {
  padding: 7px;
}

.tech-notifications-card .notification-row {
  padding: 4px 0;
}

.tech-school-snapshot-card .teacher-dashboard-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  margin-top: 0;
}

.tech-school-snapshot-card .teacher-dashboard-stat {
  padding: 9px 10px;
}

.tech-school-snapshot-card .teacher-dashboard-stat strong {
  font-size: 1.02rem;
}

.tech-beta-card .small {
  line-height: 1.35;
}

.guest-task-actions button {
  padding: 7px 10px;
  font-size: 0.82rem;
  border-radius: 999px;
}

.survey-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 8px;
  border: 1px solid #eadbcc;
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.9);
  box-shadow: 0 6px 14px rgba(73, 43, 31, 0.06);
}

.survey-section-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.resources-controls {
  display: block;
  padding: 0 0 12px;
}

.resource-library-intro {
  padding: 0 0 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eadbcc;
  background: transparent;
}

.resource-library-intro strong {
  display: block;
  color: #3f2a1d;
  font-size: 1.08rem;
}

.resource-library-intro p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.resources-library-shell {
  display: grid;
  grid-template-columns: minmax(185px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.resource-sidebar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.95), rgba(255, 248, 242, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.resource-sidebar-title {
  color: #3f2a1d;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.resource-main-panel {
  min-width: 0;
}

.resource-folder-grid {
  display: grid;
  gap: 8px;
}

.resource-folder-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.92);
  color: #3f2a1d;
  border: 1px solid rgba(205, 185, 167, 0.86);
  box-shadow: 0 3px 9px rgba(73, 43, 31, 0.055);
}

.resource-folder-btn strong {
  min-width: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.resource-folder-btn span {
  width: fit-content;
  justify-self: end;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f3e6d8;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.resource-folder-btn.active {
  background:
    linear-gradient(90deg, rgba(195, 0, 0, 0.12), rgba(255, 253, 250, 0.98) 42%);
  border-color: rgba(195, 0, 0, 0.4);
  color: #3f2a1d;
  box-shadow: 0 5px 14px rgba(120, 20, 20, 0.1);
}

.resource-folder-btn.active span {
  background: var(--brand);
  color: #fff;
}

.resource-folder-detail {
  min-width: 0;
}

.resource-result-count {
  align-self: start;
  justify-self: end;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f5eadf;
  color: #6b3d1b;
  font-size: 0.78rem;
  font-weight: 700;
}

.resource-folder-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 2px 2px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid #eadbcc;
  background: transparent;
}

.resource-folder-summary-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.resource-folder-summary-copy strong {
  color: #3f2a1d;
  font-size: 1.08rem;
}

.resource-folder-eyebrow {
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.resource-folder-list {
  display: grid;
  gap: 8px;
}

.resource-folder-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 0;
  padding: 12px;
  border: 1px solid #eadbcc;
  border-radius: 10px;
  background: #fffdfb;
  box-shadow: 0 5px 12px rgba(73, 43, 31, 0.06);
}

.resource-folder-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.resource-open-btn {
  width: fit-content;
  white-space: nowrap;
}

.resource-open-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.resource-coming-soon {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px dashed #d6b9a2;
  border-radius: 12px;
  background: rgba(255, 253, 251, 0.86);
  color: var(--muted);
}

.resource-coming-soon strong {
  color: #44271c;
  font-size: 1rem;
}

.resource-coming-soon-list {
  margin-top: 12px;
  border: 1px solid #eadbcc;
  border-radius: 10px;
  background: #fffaf6;
  overflow: hidden;
}

.resource-coming-soon-list summary {
  padding: 10px 12px;
  color: #6f4536;
  cursor: pointer;
  font-weight: 900;
}

.resource-planned-list {
  display: grid;
  gap: 6px;
  padding: 0 12px 12px;
}

.resource-planned-item {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid #eadbcc;
  border-radius: 8px;
  background: #fffdfb;
}

.resource-planned-item strong {
  color: #44271c;
  font-size: 0.9rem;
}

.resource-planned-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.resources-holder {
  padding-top: 4px;
}

.resources-list {
  display: grid;
  gap: 14px;
}

.resources-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.resource-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fffdfb;
}

.resource-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #6f4536;
  letter-spacing: 0.02em;
}

.resource-item {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.resource-title {
  font-weight: 700;
}

.resource-meta {
  font-weight: 600;
}

.resource-desc {
  line-height: 1.4;
}

.resource-empty {
  padding: 4px 0;
}

.check-grid {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 12px;
  align-items: start;
}

.check-item select {
  width: 100%;
}

.check-category {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfb;
  padding: 10px;
}

.check-category-title {
  font-weight: 700;
  color: #6f4536;
  margin-bottom: 8px;
}

.check-category-body {
  display: grid;
  gap: 10px;
}

.check-item-wrap {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #eadbcc;
  border-radius: 8px;
  background: #ffffff;
}

.status-banner {
  grid-column: 1 / -1;
  border: 1px solid #e0cdb7;
  background: #f9f1e8;
  border-radius: 10px;
  padding: 10px 12px;
  color: #6a4b29;
}

.status-banner.expired {
  border-color: #f0b4b1;
  background: #fff0ef;
  color: #7e2824;
}

.hidden {
  display: none;
}

.logo-missing {
  border: 1px dashed #cda993;
  background: #fff8f0;
  color: #7a4b2f;
  border-radius: 8px;
  padding: 8px 10px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .layout.app-background-bg::before {
    left: 0;
  }

  .content.users-layout {
    grid-template-columns: 1fr;
  }

  .content.schools-layout {
    grid-template-columns: 1fr;
  }

  .content.schedule-layout {
    grid-template-columns: 1fr;
  }

  .content.schedule-layout .schedule-form-grid {
    grid-template-columns: 1fr;
  }

  .lens-instructional-section {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1120px) {
  .lens-summary-row,
  .lens-section,
  .lens-instructional-section {
    grid-template-columns: 1fr;
  }

  .content.data-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .data-dashboard-layout .chart-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .data-dashboard-layout .chart-label {
    grid-column: 1 / -1;
  }

  .lens-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  }

  .lens-metric-card {
    padding: 9px 10px;
  }
}

@media (max-width: 640px) {
  .content {
    padding: 12px;
  }

  .content.data-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .content.teacher-workspace-layout {
    grid-template-columns: 1fr;
  }

  .checklist-add-row,
  .user-form-grid,
  .schedule-form-grid,
  .user-directory-controls,
  .pre-question-fields {
    grid-template-columns: 1fr;
  }

  .feedback-session-card,
  .feedback-session-facts,
  .teacher-feedback-intro,
  .teacher-preobs-layout,
  .teacher-preobs-form-header,
  .teacher-profile-hero,
  .collaboration-layout {
    grid-template-columns: 1fr;
  }

  .model-overview-hero {
    flex-direction: column;
  }

  .model-overview-badge {
    min-width: 0;
  }

  .teacher-feedback-list-head {
    display: none;
  }

  .teacher-feedback-card-header {
    grid-template-columns: 1fr auto;
  }

  .teacher-feedback-observer-cell {
    grid-column: 1 / -1;
  }

  .teacher-feedback-score {
    justify-self: start;
  }

  .teacher-feedback-lookfor-row {
    grid-template-columns: 1fr;
  }

  .teacher-feedback-response-pill {
    width: fit-content;
    min-width: 0;
  }

  .resources-library-shell,
  .resource-folder-summary,
  .resource-folder-item {
    grid-template-columns: 1fr;
  }

  .resource-result-count {
    justify-self: start;
  }

  .permission-access-row {
    grid-template-columns: 1fr;
  }

  .permission-access-footer {
    justify-content: stretch;
  }

  .permission-access-footer button {
    width: 100%;
  }

  .schedule-card {
    grid-template-columns: 1fr;
  }

  .schedule-reschedule-panel {
    grid-template-columns: 1fr;
  }

  .schedule-date-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
  }

  .lookfor-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .pre-question-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-row {
    grid-template-columns: 1fr 44px;
  }

  .chart-label {
    grid-column: 1 / -1;
  }

  .check-item {
    grid-template-columns: 1fr;
  }

  .check-category {
    padding: 8px;
  }
}
