:root {
  color-scheme: light;
  --bg: #f2efe8;
  --panel: rgba(255, 252, 247, 0.92);
  --panel-border: #d9cfbd;
  --text: #1d2420;
  --muted: #5f6d64;
  --accent: #0e6b57;
  --accent-soft: #dcefe7;
  --shadow: 0 24px 60px rgba(49, 56, 45, 0.12);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(239, 212, 170, 0.45), transparent 32%),
    linear-gradient(160deg, #efe8dc 0%, #f7f4ee 48%, #e7efe7 100%);
  background-repeat: no-repeat;
  background-size: 100% 100vh, 100% 100%;
  background-attachment: fixed, fixed;
  color: var(--text);
}

.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  display: grid;
  gap: 20px;
}

.class-detail-page {
  max-width: 1600px;
  padding: 8px 12px 24px;
  gap: 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.spotlight-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 34px 36px 36px;
  border-radius: 24px;
  border-color: rgba(122, 110, 84, 0.3);
  box-shadow:
    0 26px 70px rgba(49, 56, 45, 0.14),
    0 8px 24px rgba(49, 56, 45, 0.08);
  background: rgba(255, 252, 247, 0.96);
}

.spotlight-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
}

.spotlight-card .muted {
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 34rem;
}

.muted {
  color: var(--muted);
}

.hero h1,
.card h2 {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.route-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.route-group {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(14, 107, 87, 0.14);
  border-radius: 16px;
  padding: 16px;
}

.route-group h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.route-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.route-group-heading h2 {
  margin: 0;
}

.migration-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.migration-status-in_progress {
  background: rgba(255, 241, 191, 0.8);
  color: #866300;
}

.migration-status-complete {
  background: rgba(220, 239, 231, 0.9);
  color: #0e6b57;
}

.migration-status-planned {
  background: rgba(230, 234, 241, 0.9);
  color: #506171;
}

a {
  color: var(--accent);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.spotlight-card .button-link {
  padding: 0.9rem 1.2rem;
  font-weight: 700;
}

.button-link[type="submit"],
button.button-link {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.button-link-danger {
  background: #9f2f2a;
}

code {
  font-family: "SFMono-Regular", "SF Mono", Consolas, monospace;
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 0.15rem 0.35rem;
}

.page-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.page-topline h1,
.page-topline p {
  margin: 0;
}

.page-top-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: var(--accent);
  border: 1px solid rgba(14, 107, 87, 0.18);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 500;
  flex-shrink: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.workspace-grid,
.dashboard-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.dashboard-list {
  display: grid;
  gap: 12px;
}

.class-page-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.class-page-title-pill {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
}

.workspace-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(14, 107, 87, 0.14);
  border-radius: 18px;
  padding: 18px;
}

.admin-page-grid {
  display: grid;
  gap: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 22px;
}

.admin-form-grid h2 {
  margin-top: 0;
}

.admin-accounts-card {
  min-width: 0;
}

.admin-accounts-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.admin-accounts-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-accounts-table th,
.admin-accounts-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(14, 107, 87, 0.1);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  vertical-align: middle;
}

.admin-accounts-table th:nth-child(1),
.admin-accounts-table td:nth-child(1) {
  width: 22%;
}

.admin-accounts-table th:nth-child(2),
.admin-accounts-table td:nth-child(2) {
  width: 15%;
}

.admin-accounts-table th:nth-child(3),
.admin-accounts-table td:nth-child(3) {
  width: 28%;
}

.admin-accounts-table th:nth-child(4),
.admin-accounts-table td:nth-child(4),
.admin-accounts-table th:nth-child(5),
.admin-accounts-table td:nth-child(5) {
  width: 9%;
}

.admin-accounts-table th:nth-child(6),
.admin-accounts-table td:nth-child(6) {
  width: 12%;
}

.admin-accounts-table th:nth-child(7),
.admin-accounts-table td:nth-child(7) {
  width: 5%;
}

.admin-accounts-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 244, 238, 0.98);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-accounts-table td {
  overflow-wrap: anywhere;
}

.admin-account-subtext {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.hub-match-page .card {
  display: grid;
  gap: 18px;
}

.hub-match-warning {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(159, 47, 42, 0.18);
  background: rgba(247, 217, 215, 0.42);
  color: #7d2d28;
}

.hub-match-warning code {
  justify-self: start;
  background: rgba(255, 255, 255, 0.64);
}

.hub-match-guidance {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(134, 99, 0, 0.18);
  background: rgba(255, 241, 191, 0.34);
  color: var(--text);
}

.hub-match-guidance span {
  color: var(--muted);
}

.hub-match-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.hub-match-metric-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.13);
  background: rgba(255, 255, 255, 0.72);
}

.hub-match-metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-match-metric-card strong {
  font-size: 1.75rem;
  line-height: 1;
}

.hub-match-mini-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-match-mini-counts span {
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: rgba(220, 239, 231, 0.58);
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.hub-match-identity-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.13);
  background: rgba(220, 239, 231, 0.32);
}

.hub-match-identity-note div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 107, 87, 0.1);
}

.hub-match-identity-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-match-identity-note strong {
  font-size: 1.55rem;
  line-height: 1;
}

.hub-match-identity-note p {
  margin: 0;
  color: var(--muted);
}

.hub-match-identity-note > p {
  grid-column: 1 / -1;
}

.hub-match-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-match-filter-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 107, 87, 0.13);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.hub-match-filter-button span {
  min-width: 1.35rem;
  padding: 0.08rem 0.36rem;
  border-radius: 999px;
  background: rgba(220, 239, 231, 0.72);
  color: var(--muted);
  font-size: 0.76rem;
}

.hub-match-filter-button.is-active {
  border-color: rgba(14, 107, 87, 0.34);
  background: #dff3e6;
  color: #175f35;
}

.hub-match-filter-button.is-active span {
  background: rgba(255, 255, 255, 0.78);
  color: #175f35;
}

.hub-match-section {
  display: grid;
  gap: 14px;
}

.hub-match-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.hub-match-section-heading h2,
.hub-match-section-heading p {
  margin: 0;
}

.hub-match-section-heading p {
  margin-top: 4px;
}

.hub-match-table-wrap,
.hub-match-student-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.hub-match-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.hub-match-student-table {
  min-width: 780px;
}

.hub-match-identity-table {
  min-width: 980px;
}

.hub-match-identity-table th:nth-child(1),
.hub-match-identity-table td:nth-child(1) {
  width: 11%;
}

.hub-match-identity-table th:nth-child(2),
.hub-match-identity-table td:nth-child(2) {
  width: 8%;
}

.hub-match-identity-table th:nth-child(3),
.hub-match-identity-table td:nth-child(3),
.hub-match-identity-table th:nth-child(4),
.hub-match-identity-table td:nth-child(4) {
  width: 23%;
}

.hub-match-identity-table th:nth-child(5),
.hub-match-identity-table td:nth-child(5) {
  width: 22%;
}

.hub-match-identity-table th:nth-child(6),
.hub-match-identity-table td:nth-child(6) {
  width: 13%;
}

.hub-match-table th,
.hub-match-table td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(14, 107, 87, 0.1);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.hub-match-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 244, 238, 0.98);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-match-table tr[id] {
  scroll-margin-top: 92px;
}

.hub-match-table tr:target td {
  background: rgba(220, 239, 231, 0.92);
}

.hub-match-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hub-match-status-matched {
  background: #dff3e6;
  color: #175f35;
}

.hub-match-status-ambiguous {
  background: #fff1bf;
  color: #866300;
}

.hub-match-status-unmatched {
  background: #e6eaf1;
  color: #506171;
}

.hub-match-status-blocked {
  background: #f7d9d7;
  color: #8f2f2a;
}

.hub-match-review-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

.hub-match-identity-stack,
.hub-match-review-stack {
  display: grid;
  gap: 8px;
}

.hub-match-identity-entry {
  display: grid;
  gap: 2px;
}

.hub-match-identity-entry + .hub-match-identity-entry,
.hub-match-review-cell + .hub-match-review-cell {
  padding-top: 8px;
  border-top: 1px solid rgba(14, 107, 87, 0.1);
}

.hub-match-review-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
}

.hub-match-review-action span {
  color: #175f35;
  font-size: 0.78rem;
  font-weight: 800;
}

.hub-match-review-action button {
  border: 1px solid rgba(14, 107, 87, 0.18);
  border-radius: 999px;
  background: #dff3e6;
  color: #175f35;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.62rem;
}

.hub-match-review-action form {
  margin: 0;
}

.hub-match-review-confirmed {
  padding: 0.2rem 0.25rem 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(220, 239, 231, 0.62);
}

.hub-match-review-confirmed button {
  background: rgba(247, 217, 215, 0.58);
  border-color: rgba(159, 47, 42, 0.18);
  color: #7d2d28;
}

.hub-match-review-error {
  display: inline-flex;
  color: #8f2f2a;
  font-size: 0.75rem;
  font-weight: 800;
}

.hub-match-apply-result {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.16);
  background: rgba(220, 239, 231, 0.68);
}

.hub-match-apply-result.is-error {
  border-color: rgba(159, 47, 42, 0.22);
  background: rgba(247, 217, 215, 0.64);
}

.hub-match-apply-result span {
  color: var(--muted);
}

.hub-match-apply-result code {
  overflow-wrap: anywhere;
}

.hub-match-enrollment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hub-match-enrollment-summary article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.hub-match-enrollment-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-match-enrollment-summary strong {
  font-size: 1.5rem;
}

.hub-match-enrollment-apply-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  border-radius: 12px;
  background: rgba(242, 247, 244, 0.78);
}

.hub-match-enrollment-apply-form button {
  border: 1px solid rgba(14, 107, 87, 0.2);
  border-radius: 999px;
  background: #0e6b57;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.48rem 0.8rem;
}

.hub-match-enrollment-apply-form span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hub-match-enrollment-table td {
  vertical-align: top;
}

.hub-match-enrollment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hub-match-enrollment-list span,
.hub-match-enrollment-list em {
  display: inline-grid;
  gap: 1px;
  max-width: 220px;
  padding: 0.32rem 0.5rem;
  border-radius: 10px;
  background: rgba(220, 239, 231, 0.58);
  color: var(--text);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.2;
}

.hub-match-enrollment-list small {
  color: var(--muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.hub-match-class-list {
  display: grid;
  gap: 10px;
}

.hub-match-class-detail {
  border: 1px solid rgba(14, 107, 87, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.hub-match-class-detail summary {
  display: grid;
  grid-template-columns: auto minmax(160px, 1.2fr) minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
}

.hub-match-class-counts {
  justify-self: end;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.hub-match-class-body {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.hub-match-class-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hub-match-class-meta div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 107, 87, 0.1);
}

.hub-match-class-meta strong,
.hub-match-class-meta span {
  overflow-wrap: anywhere;
}

.hub-match-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-match-candidates span,
.hub-match-candidate-action {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(220, 239, 231, 0.56);
  color: var(--text);
  font-size: 0.85rem;
}

.hub-match-candidate-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 0;
  margin: 0;
}

.hub-match-candidate-action.is-unavailable {
  opacity: 0.62;
  background: rgba(230, 234, 241, 0.72);
}

.hub-match-candidate-action.is-selected {
  background: rgba(179, 224, 213, 0.72);
  box-shadow: inset 0 0 0 1px rgba(14, 107, 87, 0.16);
}

.hub-match-candidate-action span,
.hub-match-candidate-label {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.hub-match-candidate-label {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.hub-match-candidate-label small {
  color: var(--muted);
  font-size: 0.75rem;
}

.hub-match-candidate-action button,
.hub-match-clear-form button {
  border: 1px solid rgba(14, 107, 87, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
}

.hub-match-candidate-action button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.hub-match-clear-form {
  justify-self: start;
}

.hub-match-clear-form button {
  background: rgba(247, 217, 215, 0.58);
  border-color: rgba(159, 47, 42, 0.18);
  color: #7d2d28;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(14, 107, 87, 0.14);
}

.dashboard-row-main {
  min-width: 0;
}

.dashboard-row-title {
  margin: 0;
  font-size: 1.08rem;
}

.dashboard-row-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-owner-line {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.hub-linked-class-summary {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(14, 107, 87, 0.13);
  border-radius: 12px;
  background: rgba(220, 239, 231, 0.5);
}

.hub-linked-class-summary span {
  color: #175f35;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-linked-class-summary strong {
  font-size: 0.95rem;
}

.hub-linked-class-summary small {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.dashboard-row-actions {
  justify-content: flex-end;
  white-space: nowrap;
}

.workspace-link-row,
.drawer-link-row,
.form-action-links,
.assignment-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.assignment-card-actions form {
  margin: 0;
}

.icon-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  background: rgba(220, 239, 231, 0.55);
  border: 1px solid rgba(14, 107, 87, 0.12);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  font: inherit;
}

.icon-action-link svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  stroke-width: 1.45;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-action-delete {
  color: #b04e1c;
  background: rgba(252, 236, 229, 0.9);
  border-color: rgba(176, 78, 28, 0.18);
}

.drawer-link-row {
  margin: 12px 0 0;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.stat-chip,
.metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--text);
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.student-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(14, 107, 87, 0.12);
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 72px;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.status-green {
  background: #dff3e6;
  color: #175f35;
}

.status-yellow {
  background: #fff1bf;
  color: #866300;
}

.status-red {
  background: #f7d9d7;
  color: #8f2f2a;
}

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

.seat-tile {
  min-height: 90px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(220, 239, 231, 0.75));
  border: 1px solid rgba(14, 107, 87, 0.18);
}

.stacked-form {
  display: grid;
  gap: 14px;
}

.form-error {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(184, 62, 62, 0.08);
  border: 1px solid rgba(184, 62, 62, 0.18);
  color: #8a2d2d;
  font-weight: 600;
}

.stacked-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stacked-form input,
.stacked-form select,
.stacked-form textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

.stacked-form textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.35;
}

.stacked-form input::placeholder,
.stacked-form textarea::placeholder {
  color: rgba(96, 108, 100, 0.52);
  opacity: 1;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid rgba(14, 107, 87, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.filter-chip-active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.view-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 107, 87, 0.12);
}

.view-toggle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  position: relative;
}

.view-toggle-link-active {
  background: var(--accent-soft);
  color: var(--text);
}

.view-toggle-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.view-toggle-glyph svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.assignment-class-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.class-page-frame {
  display: grid;
  gap: 12px;
}

.class-page-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.class-page-navigation.class-page-navigation-three {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
  align-items: center;
}

.class-page-navigation-main {
  min-width: 0;
}

.class-page-navigation-center {
  min-width: 0;
  width: 100%;
}

.class-page-navigation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.assignment-card-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.assignments-page-screen {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.assignments-page-screen .class-page-surface {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.assignments-page-screen [data-assignments-page] {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.assignments-browser-scroll-frame {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.assignments-browser-scroll-content {
  display: grid;
  gap: 0;
  width: max(100%, 900px);
  min-width: 900px;
  box-sizing: border-box;
}

.assignments-browser-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.assignments-browser-toolbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.assignments-browser-grouping-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.assignments-browser-grouping-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.assignments-browser-grouping-select {
  min-width: 9rem;
  height: 2.05rem;
  padding: 0 1.9rem 0 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(14, 107, 87, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  box-shadow: 0 2px 8px rgba(26, 41, 35, 0.04);
}

.assignments-browser-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 22px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.assignments-browser-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.assignments-browser-col-category {
  width: 15%;
}

.assignments-browser-col-topic {
  width: 15%;
}

.assignments-browser-col-focus {
  width: 13%;
}

.assignments-browser-col-date {
  width: 7%;
}

.assignments-browser-col-progress {
  width: 8%;
}

.assignments-browser-col-status {
  width: 5.2%;
}

.assignments-browser-col-actions {
  width: 16%;
}

.assignments-browser-head {
  background: rgba(248, 250, 247, 0.96);
}

.assignments-browser-header-cell {
  padding: 0;
  border-bottom: 1px solid rgba(14, 107, 87, 0.1);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.assignments-browser-header-cell-progress,
.assignments-browser-header-cell-status {
  text-align: center;
}

.assignments-browser-header-cell-actions {
  text-align: center;
}

.assignments-browser-header-title {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.assignments-browser-sort-button {
  appearance: none;
  display: block;
  position: relative;
  width: 100%;
  min-height: 2.25rem;
  padding: 8px 9px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}

.assignments-browser-header-cell-date .assignments-browser-sort-button,
.assignments-browser-header-cell-progress .assignments-browser-sort-button,
.assignments-browser-header-cell-status .assignments-browser-sort-button {
  text-align: center;
}

.assignments-browser-header-cell-actions .assignments-browser-header-title {
  display: block;
  padding: 8px 9px;
  text-align: center;
}

.assignments-browser-sort-button:hover .assignments-browser-header-title,
.assignments-browser-sort-button-active .assignments-browser-header-title {
  color: var(--accent);
}

.assignments-browser-sort-button:disabled {
  cursor: default;
  opacity: 0.56;
}

.assignments-browser-sort-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.12);
  border-radius: 10px;
}

.assignments-browser-row {
  background: rgba(255, 255, 255, 0.6);
  transition: background 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.assignments-browser-row:hover,
.assignments-browser-row:focus-within {
  background: rgba(236, 247, 240, 0.9);
}

.assignments-browser-row:focus-visible {
  outline: 2px solid rgba(14, 107, 87, 0.2);
  outline-offset: -2px;
}

.assignments-browser-cell {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(14, 107, 87, 0.08);
  vertical-align: middle;
}

.assignments-browser-cell-progress,
.assignments-browser-cell-status {
  text-align: center;
  white-space: nowrap;
}

.assignments-browser-cell-date,
.assignments-browser-cell-actions {
  text-align: center;
}

.assignments-browser-dimension {
  display: block;
  max-width: 100%;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignments-browser-date {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assignments-browser-progress {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}

.assignments-browser-metric {
  display: inline-block;
  min-width: 1.85rem;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.assignments-browser-metric-high {
  color: #2f7d34;
}

.assignments-browser-metric-medium {
  color: #ab6a00;
}

.assignments-browser-metric-low {
  color: #c83d3d;
}

.assignments-browser-metric-excused {
  color: #6d49ff;
}

.assignments-browser-metric-absent {
  color: #49566b;
}

.assignments-browser-actions {
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  gap: 0.25rem;
}

.assignments-browser-actions .icon-action-link {
  width: 1.7rem;
  height: 1.7rem;
}

.assignments-browser-actions .icon-action-link svg {
  width: 0.8rem;
  height: 0.8rem;
}

.assignments-page-screen .top-nav-pill {
  height: 2rem;
  padding: 0 0.78rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.assignments-page-screen .top-nav-pill-meta {
  font-size: 0.74rem;
  font-weight: 400;
}

.assignments-page-screen .top-nav-pill-trigger .top-nav-pill {
  padding-right: 1.75rem;
}

.assignments-page-screen .top-nav-pill-trigger .top-nav-pill::after {
  right: 0.68rem;
  font-size: 0.74rem;
}

.assignments-page-screen .assignment-class-add {
  width: 2rem;
  height: 2rem;
  font-size: 1.05rem;
}

.assignment-class-picker {
  position: relative;
  display: inline-block;
}

.assignment-class-picker summary {
  list-style: none;
}

.assignment-class-picker summary::-webkit-details-marker {
  display: none;
}

.assignment-class-picker-trigger {
  cursor: pointer;
}

.top-nav-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: 100%;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(14, 107, 87, 0.2);
  background: var(--accent-soft);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.top-nav-pill-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.top-nav-pill-meta {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
}

.top-nav-pill-trigger {
  display: inline-flex;
  align-items: center;
}

.top-nav-pill-trigger .top-nav-pill {
  position: relative;
  padding-right: 2rem;
}

.top-nav-pill-trigger .top-nav-pill::after {
  content: "▾";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: var(--muted);
}

.assignment-class-picker[open] .top-nav-pill::after {
  content: "▴";
}

.assignment-class-picker summary:focus-visible {
  outline: none;
}

.assignment-class-picker summary:focus-visible .top-nav-pill {
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.18);
}

.assignment-class-picker-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(14, 107, 87, 0.12);
  box-shadow: 0 16px 32px rgba(26, 41, 35, 0.12);
  backdrop-filter: blur(12px);
}

.assignment-class-picker-item {
  display: block;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.assignment-class-picker-item:hover {
  background: rgba(220, 239, 231, 0.45);
}

.assignment-class-picker-item-active {
  background: var(--accent-soft);
  font-weight: 600;
}

.assignment-picker-entry {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.42rem;
}

.assignment-picker-edit-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.assignment-picker-edit-link svg {
  width: 0.82rem;
  height: 0.82rem;
  stroke: currentColor;
  stroke-width: 1.35;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assignment-picker-edit-link:hover {
  background: rgba(220, 239, 231, 0.55);
}

.assignment-class-add {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: var(--accent);
  border: 1px solid rgba(14, 107, 87, 0.18);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 500;
  flex-shrink: 0;
}

.assignment-library-list-with-switcher {
  margin-top: 18px;
}

.assignment-library-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(14, 107, 87, 0.14);
}

.assignment-row-main {
  min-width: 0;
}

.assignment-row-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.assignment-row-title {
  margin: 0;
  font-size: 1.08rem;
  white-space: nowrap;
}

.assignment-row-meta {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.assignment-row-topic {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(220, 239, 231, 0.55);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25rem;
  white-space: nowrap;
}

.assignment-row-meta-date {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.assignment-row-progress-text {
  white-space: nowrap;
  font-weight: 600;
}

.assignment-card {
  display: grid;
  gap: 14px;
}

.assignment-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.assignment-card-eyebrow {
  margin-bottom: 8px;
}

.assignment-card h2 {
  margin-bottom: 0;
}

.assignment-card-meta {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.assignment-chip-row {
  justify-content: flex-end;
  margin: 0;
}

.muted-metric {
  background: rgba(239, 236, 229, 0.9);
  color: var(--muted);
}

.assignment-level-summary {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  min-width: max-content;
}

.assignment-points-grid {
  display: grid;
  gap: 6px;
}

.assignment-card-actions {
  padding-top: 2px;
}

.assignment-row-actions {
  display: flex;
  justify-content: flex-end;
  white-space: nowrap;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: max-content;
  flex-shrink: 0;
  align-items: center;
  align-self: center;
}

.assignment-row-actions > a:first-child {
  flex-shrink: 0;
}

.assignment-row-actions form,
.assignment-row-actions a,
.assignment-row-actions button {
  flex-shrink: 0;
}

@media (max-width: 440px) {
  .assignment-library-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .assignment-row-heading {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .assignment-row-actions {
    justify-self: start;
  }
}

@media (max-width: 920px) {
  .assignments-browser-toolbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .assignments-browser-toolbar-main {
    flex: 1 1 auto;
    width: 100%;
  }

  .assignments-browser-grouping-control {
    width: auto;
    justify-content: flex-start;
  }

  .assignments-browser-grouping-select {
    min-width: 0;
    width: min(100%, 12rem);
    max-width: 12rem;
  }

  .assignments-browser-header-cell,
  .assignments-browser-cell,
  .assignments-browser-group-row td {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 380px) {
  .assignment-row-actions {
    flex-wrap: wrap;
  }
}

.assignment-form-layout {
  gap: 18px;
}

.form-grid-two,
.form-grid-three,
.form-grid-hero {
  display: grid;
  gap: 14px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  align-items: start;
}

.form-grid-hero-topline {
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.68fr) minmax(180px, 0.68fr) minmax(240px, 0.88fr);
  align-items: start;
}

.form-grid-hero-class {
  grid-template-columns: minmax(0, 1.5fr) minmax(140px, 0.5fr) minmax(220px, 0.72fr);
  align-items: start;
}

.grading-focus-control-row {
  display: flex;
  justify-content: flex-start;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.stacked-form .grading-focus-control {
  width: auto;
  min-width: 0;
}

.stacked-form .grading-focus-control select {
  width: auto;
  min-width: 220px;
}

.grading-focus-custom-name {
  display: grid;
  gap: 6px;
  min-width: min(280px, 100%);
}

.grading-focus-custom-name input {
  min-width: 0;
}

.class-name-field {
  min-width: 0;
}

.form-grid-tight {
  display: grid;
  gap: 12px;
}

.form-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(14, 107, 87, 0.12);
}

.form-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.form-block-header-inline {
  align-items: center;
  flex-wrap: wrap;
}

.form-block-title {
  margin: 0;
  font-weight: 600;
}

.form-block-copy {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.danger-zone {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(252, 236, 229, 0.72);
  border: 1px solid rgba(159, 47, 42, 0.2);
}

.danger-zone .form-block-title {
  color: #8a2d2d;
}

.danger-zone .muted {
  max-width: 52rem;
}

.form-subsection {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.co-teacher-checklist {
  display: grid;
  gap: 8px;
}

.co-teacher-checklist .checkbox-row {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.co-teacher-picker {
  display: grid;
  gap: 10px;
}

.co-teacher-search-field {
  display: grid !important;
  gap: 6px;
}

.co-teacher-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.co-teacher-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  background: rgba(228, 245, 240, 0.85);
}

.co-teacher-chip-copy {
  display: grid;
  min-width: 0;
}

.co-teacher-chip-name {
  font-weight: 600;
  line-height: 1.15;
}

.co-teacher-chip-email {
  color: #5b6f69;
  font-size: 0.82rem;
  line-height: 1.15;
}

.co-teacher-chip-remove {
  border: 0;
  background: transparent;
  color: #0e6b57;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.co-teacher-results {
  display: grid;
  gap: 8px;
}

.co-teacher-result {
  display: grid;
  justify-items: start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  text-align: left;
}

.co-teacher-result:hover {
  background: rgba(228, 245, 240, 0.85);
  border-color: rgba(14, 107, 87, 0.2);
}

.co-teacher-result-name {
  font-weight: 600;
  color: #22302b;
}

.co-teacher-result-email {
  color: #5b6f69;
  font-size: 0.84rem;
}

.form-block-inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.form-block-inline-summary {
  margin: 0;
  font-size: 0.88rem;
  white-space: nowrap;
}

.compact-instructions-input {
  min-height: 76px !important;
}

.layout-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.layout-option-choice {
  display: block !important;
}

.layout-option-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.layout-option-card {
  display: grid;
  gap: 10px;
  min-height: 144px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.84);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, transform 120ms ease;
}

.layout-option-choice input:checked + .layout-option-card {
  border-color: rgba(14, 107, 87, 0.35);
  background: rgba(220, 239, 231, 0.56);
  box-shadow: 0 8px 18px rgba(49, 56, 45, 0.08);
}

.layout-option-choice:hover .layout-option-card {
  transform: translateY(-1px);
  border-color: rgba(14, 107, 87, 0.22);
}

.layout-option-preview {
  display: grid;
  min-height: 72px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(242, 247, 244, 0.92);
  border: 1px solid rgba(14, 107, 87, 0.08);
}

.layout-option-preview span {
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(14, 107, 87, 0.12);
  min-height: 12px;
}

.layout-preview-pods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.layout-preview-horseshoe {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.layout-preview-horseshoe span:nth-child(4) {
  grid-column: 1;
}

.layout-preview-horseshoe span:nth-child(5) {
  grid-column: 3;
}

.layout-preview-horseshoe span:nth-child(6) {
  grid-column: 2;
}

.layout-preview-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.layout-preview-rows span:nth-child(odd),
.layout-preview-rows span:nth-child(even) {
  min-height: 10px;
}

.layout-preview-intervention {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.layout-preview-intervention span:nth-child(2),
.layout-preview-intervention span:nth-child(5) {
  grid-column: 2;
  min-height: 16px;
}

.layout-preview-intervention span:nth-child(1),
.layout-preview-intervention span:nth-child(3),
.layout-preview-intervention span:nth-child(4),
.layout-preview-intervention span:nth-child(6) {
  min-height: 10px;
  align-self: center;
}

.layout-option-copy {
  display: grid;
  gap: 2px;
}

.layout-option-title {
  font-weight: 600;
}

.layout-option-hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
}

.roster-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.roster-search-wrap {
  min-width: 0;
}

.roster-toolbar-side {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.roster-search-input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
  font: inherit;
}

.roster-status {
  font-size: 0.92rem;
  color: var(--muted);
  white-space: nowrap;
}

.roster-quick-add {
  margin-top: 4px;
}

.roster-entry-panel {
  margin-top: 4px;
  margin-bottom: 18px;
}

.roster-entry-title {
  margin: 0;
  font-weight: 600;
}

.roster-quick-add-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.roster-quick-add .stacked-form {
  gap: 12px;
}

.roster-quick-add-action {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}

.roster-bulk-panel {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(14, 107, 87, 0.1);
}

.roster-search-create-stack {
  display: grid;
  gap: 14px;
}

.roster-lookup-card,
.roster-create-card,
.roster-bulk-review-row,
.profile-review-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(14, 107, 87, 0.12);
  border-radius: 18px;
  padding: 16px;
}

.roster-existing-results,
.roster-bulk-review-list,
.profile-review-grid {
  display: grid;
  gap: 12px;
}

.roster-inline-note {
  margin: 0;
}

.roster-existing-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 247, 0.9);
  border: 1px solid rgba(14, 107, 87, 0.1);
}

.roster-existing-result-name,
.roster-bulk-review-name {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.roster-existing-result-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.roster-existing-result-action {
  min-width: 82px;
  padding-inline: 0.9rem;
}

.roster-bulk-review {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 107, 87, 0.1);
}

.roster-bulk-review-row {
  display: grid;
  gap: 10px;
}

.roster-bulk-review-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.roster-bulk-match-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roster-bulk-match-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(220, 239, 231, 0.72);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.1;
}

.roster-bulk-match-pill-disabled {
  background: rgba(231, 236, 243, 0.9);
  color: #4b5563;
}

.roster-bulk-decision-control,
.profile-review-merge-control {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.roster-bulk-decision-control select,
.profile-review-merge-control select {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(14, 107, 87, 0.16);
  background: white;
  font: inherit;
  padding: 0.55rem 0.7rem;
}

.button-link-compact {
  padding: 0.6rem 0.9rem;
  font-size: 0.94rem;
}

.table-wrap {
  overflow: auto;
}

.roster-table-wrap {
  margin-top: 8px;
  border-radius: 18px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
}

.gradebook-page-screen {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.gradebook-page-screen .class-page-surface {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.gradebook-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.class-screen-picker .assignment-class-picker-menu {
  left: auto;
  right: 0;
  transform: none;
  min-width: 180px;
}

.gradebook-page-screen [data-gradebook-page] {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gradebook-scroll-frame {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  background: rgba(255, 255, 255, 0.68);
}

.gradebook-scroll-content {
  display: grid;
  gap: 0;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}

.gradebook-table-wrap {
  overflow: visible;
  background: transparent;
  min-width: 100%;
}

.gradebook-table {
  --gradebook-name-col-width: 136px;
  --gradebook-summary-col-width: 90px;
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.gradebook-table th,
.gradebook-table td {
  padding: 10px 12px;
  border-right: 1px solid rgba(14, 107, 87, 0.08);
  border-bottom: 1px solid rgba(14, 107, 87, 0.08);
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
  vertical-align: middle;
}

.gradebook-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(247, 244, 238, 0.98);
  vertical-align: middle;
  box-shadow: inset 0 -1px 0 rgba(14, 107, 87, 0.08);
}

.gradebook-corner {
  position: sticky;
  left: 0;
  z-index: 3 !important;
  width: var(--gradebook-name-col-width);
  min-width: var(--gradebook-name-col-width);
  text-align: left !important;
  vertical-align: middle !important;
}

.gradebook-corner-second {
  position: sticky;
  left: var(--gradebook-name-col-width);
  z-index: 3 !important;
  width: var(--gradebook-name-col-width);
  min-width: var(--gradebook-name-col-width);
  text-align: left !important;
  vertical-align: middle !important;
}

.gradebook-student-name-first {
  position: sticky;
  left: 0;
  z-index: 1;
  width: var(--gradebook-name-col-width);
  min-width: var(--gradebook-name-col-width);
  text-align: left !important;
  font-weight: 500;
  background: rgba(255, 252, 247, 0.98) !important;
}

.gradebook-student-name-last {
  position: sticky;
  left: var(--gradebook-name-col-width);
  z-index: 1;
  width: var(--gradebook-name-col-width);
  min-width: var(--gradebook-name-col-width);
  text-align: left !important;
  font-weight: 500;
  background: rgba(255, 252, 247, 0.98) !important;
}

.gradebook-summary-col {
  width: var(--gradebook-summary-col-width);
  min-width: var(--gradebook-summary-col-width);
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.gradebook-summary-col-total {
  position: sticky;
  left: calc(var(--gradebook-name-col-width) * 2);
  z-index: 3 !important;
}

.gradebook-summary-col-percent {
  position: sticky;
  left: calc((var(--gradebook-name-col-width) * 2) + var(--gradebook-summary-col-width));
  z-index: 3 !important;
}

.gradebook-assignment-col {
  min-width: 142px;
  padding: 0 !important;
}

.gradebook-assignment-body {
  padding: 10px 10px 10px;
  text-align: left;
}

.gradebook-assignment-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gradebook-assignment-title-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  line-height: 1.2;
}

.gradebook-assignment-title-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
}

.gradebook-assignment-title-stack {
  display: grid;
  gap: 0.08rem;
  width: 100%;
}

.gradebook-assignment-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
}

.gradebook-assignment-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.32rem;
  line-height: 1.1;
}

.gradebook-assignment-title {
  display: inline;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}

.gradebook-assignment-date-inline {
  display: block;
  margin-left: 0;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.1;
  white-space: nowrap;
}

.gradebook-assignment-date-inline::after {
  content: "•";
  margin-left: 0.45rem;
  color: rgba(96, 108, 100, 0.55);
}

.gradebook-assignment-graded {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.1;
  color: #5f6a63;
  white-space: nowrap;
}

.gradebook-assignment-graded-complete {
  color: #175f35;
}

.gradebook-assignment-stat {
  display: inline;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.gradebook-assignment-stat-green {
  color: #175f35;
}

.gradebook-assignment-stat-yellow {
  color: #866300;
}

.gradebook-assignment-stat-red {
  color: #9f2f2a;
}

.gradebook-assignment-stat-excused {
  color: #6d55b5;
}

.gradebook-assignment-stat-absent {
  color: #5b6676;
}

.gradebook-assignment-sort-indicator {
  flex: 0 0 auto;
  min-width: 0.7rem;
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1;
  text-align: right;
}

.gradebook-sort-indicator {
  margin: 0 0 4px;
  min-height: 0.7rem;
  color: var(--accent);
  font-size: 0.68rem;
  text-align: center;
}

.gradebook-corner .header-label,
.gradebook-corner-second .header-label,
.gradebook-summary-col .header-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  color: #24322e;
}

.gradebook-corner,
.gradebook-corner-second {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.gradebook-corner .sort-indicator,
.gradebook-corner-second .sort-indicator,
.gradebook-summary-col .sort-indicator {
  min-width: 0.7rem;
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1;
  text-align: right;
}

.gradebook-student-total,
.gradebook-student-percent {
  font-weight: 500;
  color: #20443b;
  background: rgba(250, 248, 243, 0.98) !important;
}

.gradebook-student-summary-total {
  position: sticky;
  left: calc(var(--gradebook-name-col-width) * 2);
  z-index: 1;
}

.gradebook-student-summary-percent {
  position: sticky;
  left: calc((var(--gradebook-name-col-width) * 2) + var(--gradebook-summary-col-width));
  z-index: 1;
}

.gradebook-cell {
  font-weight: 500;
  min-width: 64px;
}

.gradebook-cell-green {
  background: rgba(223, 243, 230, 0.9) !important;
  color: #175f35;
}

.gradebook-cell-yellow {
  background: rgba(255, 241, 191, 0.92) !important;
  color: #866300;
}

.gradebook-cell-red {
  background: rgba(247, 217, 215, 0.92) !important;
  color: #8f2f2a;
}

.gradebook-cell-excused {
  background: rgba(232, 224, 255, 0.95) !important;
  color: #5d40bb;
}

.gradebook-cell-absent {
  background: rgba(231, 236, 243, 0.95) !important;
  color: #4b5563;
}

.roster-bulk-input {
  min-height: 140px !important;
}

.roster-table {
  width: 100%;
  min-width: 560px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.roster-table th,
.roster-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(14, 107, 87, 0.1);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  vertical-align: middle;
}

.roster-table th:nth-child(1),
.roster-table td:nth-child(1) {
  width: 46%;
}

.roster-table th:nth-child(2),
.roster-table td:nth-child(2) {
  width: 46%;
}

.roster-table th:nth-child(3),
.roster-table td:nth-child(3) {
  width: 120px;
}

.roster-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 244, 238, 0.98);
  font-size: 0.84rem;
}

.sortable-header {
  cursor: pointer;
  user-select: none;
}

.header-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.sort-indicator {
  color: var(--accent);
  font-size: 0.75rem;
  min-width: 10px;
}

.table-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(14, 107, 87, 0.16);
  background: white;
  box-sizing: border-box;
  font: inherit;
}

.roster-row-dirty td {
  background: rgba(255, 247, 219, 0.82);
}

.roster-action-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  text-align: center;
}

.roster-action-placeholder {
  cursor: default;
  pointer-events: none;
  color: rgba(95, 109, 100, 0.45);
  background: rgba(231, 236, 243, 0.7);
}

.student-profile-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.student-profile-link:hover {
  text-decoration: underline;
}

.profiles-page-screen .class-page-surface {
  display: grid;
  gap: 20px;
}

.profiles-directory-shell,
.profile-detail-shell {
  display: grid;
  gap: 20px;
}

.profile-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-page-actions-nav {
  justify-content: flex-end;
}

.profile-header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.profile-review-link {
  white-space: nowrap;
}

.profile-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(14, 107, 87, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.profile-view-toggle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: #44524a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.profile-view-toggle-link:hover,
.profile-view-toggle-link:focus-visible {
  background: rgba(220, 239, 231, 0.42);
  color: var(--accent);
  outline: none;
}

.profile-view-toggle-link-active {
  background: rgba(220, 239, 231, 0.92);
  color: var(--accent);
  box-shadow: 0 8px 16px rgba(49, 56, 45, 0.08);
}

.profiles-page-screen .profiles-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px;
}

.profiles-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  background: rgba(255, 255, 255, 0.62);
}

.profiles-summary-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: rgba(220, 239, 231, 0.54);
  color: #516158;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.profiles-summary-item strong {
  color: #24483f;
  font-weight: 650;
}

.profiles-summary-item-open {
  background: rgba(222, 226, 221, 0.82);
}

.profiles-summary-item-low {
  background: rgba(247, 217, 215, 0.86);
  color: #824441;
}

.profiles-summary-item-low strong {
  color: #824441;
}

.profiles-summary-item-absent {
  background: rgba(226, 232, 238, 0.92);
  color: #5a6877;
}

.profiles-summary-item-absent strong {
  color: #5a6877;
}

.profiles-directory-list-shell {
  display: block;
}

.profiles-directory-list {
  display: grid;
  gap: 12px;
}

.profile-directory-list-head {
  display: grid;
  grid-template-columns: minmax(190px, 240px) max-content max-content minmax(300px, 1fr);
  gap: 16px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-directory-list-body {
  display: grid;
  gap: 12px;
}

.profile-directory-card,
.profile-directory-row,
.profile-section-card,
.profile-metric-card,
.profile-class-section {
  border-radius: 18px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 30px rgba(49, 56, 45, 0.06);
}

.profile-directory-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.profile-directory-card:hover,
.profile-directory-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(14, 107, 87, 0.22);
  box-shadow: 0 18px 34px rgba(49, 56, 45, 0.09);
  outline: none;
}

.profile-directory-row {
  display: grid;
  grid-template-columns: minmax(190px, 240px) max-content max-content minmax(300px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.profile-directory-row:hover,
.profile-directory-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(14, 107, 87, 0.22);
  box-shadow: 0 18px 34px rgba(49, 56, 45, 0.09);
  outline: none;
}

.profile-directory-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-directory-name,
.profile-metric-value {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1d2420;
}

.profile-directory-meta,
.profile-metric-meta,
.profile-metric-label {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-directory-percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  background: rgba(220, 239, 231, 0.82);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.profile-directory-points {
  font-size: 0.95rem;
  font-weight: 600;
  color: #20443b;
}

.profile-directory-row-main {
  min-width: 0;
}

.profile-directory-row-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-directory-row-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-directory-row-metric strong {
  color: #1d2420;
  font-size: 0.98rem;
}

.profile-directory-row-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.profile-directory-row-status .profile-status-pill {
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
}

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

.profile-directory-card .profile-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  column-gap: 5px;
  row-gap: 6px;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.profile-status-pill {
  min-width: 4.15rem;
}

.profile-directory-card .profile-status-pill {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0.24rem 0.18rem;
  font-size: 0.68rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.profile-status-pill-green {
  background: rgba(223, 243, 230, 0.9);
  color: #175f35;
}

.profile-status-pill-yellow {
  background: rgba(255, 241, 191, 0.92);
  color: #866300;
}

.profile-status-pill-red {
  background: rgba(247, 217, 215, 0.92);
  color: #8f2f2a;
}

.profile-status-pill-excused {
  background: rgba(232, 224, 255, 0.95);
  color: #5d40bb;
}

.profile-status-pill-absent {
  background: rgba(231, 236, 243, 0.95);
  color: #4b5563;
}

.profile-status-pill-none {
  background: rgba(242, 239, 232, 0.95);
  color: #51605a;
}

.profile-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.profile-metric-card {
  padding: 16px 18px;
}

.profile-back-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.profile-back-link:hover {
  text-decoration: underline;
}

.profile-class-sections {
  display: grid;
  gap: 18px;
}

.profile-class-section {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.profile-section-card {
  padding: 16px;
}

.profile-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-ungraded-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(242, 239, 232, 0.95);
  color: #51605a;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.profile-section-heading h2,
.profile-section-heading h3 {
  margin: 0;
}

.profile-trends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-table-scroll {
  overflow-x: auto;
}

.profile-history-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.profile-trend-table {
  width: auto;
  min-width: 0;
  max-width: 100%;
  display: inline-table;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.profile-trend-col-label {
  width: clamp(9rem, 32%, 14rem);
}

.profile-trend-col-assignments,
.profile-trend-col-points,
.profile-trend-col-percent {
  width: 1%;
}

.profile-history-table th,
.profile-history-table td,
.profile-trend-table th,
.profile-trend-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(14, 107, 87, 0.08);
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
}

.profile-history-table thead th,
.profile-trend-table thead th {
  background: rgba(247, 244, 238, 0.98);
  font-size: 0.84rem;
}

.profile-trend-cell-label {
  max-width: 14rem;
  white-space: normal;
}

.profile-trend-cell-assignments,
.profile-trend-cell-points,
.profile-trend-cell-percent {
  width: 1%;
  white-space: nowrap;
}

.profiles-review-page {
  max-width: 1180px;
}

.profile-review-card {
  display: grid;
  gap: 14px;
}

.profile-review-enrollments {
  display: grid;
  gap: 8px;
}

.profile-review-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(248, 250, 247, 0.95);
  border: 1px solid rgba(14, 107, 87, 0.08);
  font-size: 0.95rem;
}

.profile-review-actions {
  display: grid;
  gap: 12px;
}

.profile-review-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.profile-review-secondary {
  background: rgba(220, 239, 231, 0.18);
  color: var(--accent);
  border: 1px solid rgba(14, 107, 87, 0.16);
}

.profile-review-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.empty-state {
  text-align: center !important;
  color: var(--muted);
  padding: 26px 16px !important;
}

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

.scoring-band-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

.scoring-band-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.scoring-band-card label {
  display: grid;
  gap: 6px;
}

.inline-form-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px !important;
}

.inline-form-row span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.special-state-row {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.1);
}

.special-state-row-excused {
  background: rgba(139, 92, 246, 0.08);
}

.special-state-row-absent {
  background: rgba(100, 116, 139, 0.1);
}

.scoring-band-card-green {
  background: rgba(223, 243, 230, 0.55);
}

.scoring-band-card-yellow {
  background: rgba(255, 241, 191, 0.45);
}

.scoring-band-card-red {
  background: rgba(247, 217, 215, 0.46);
}

.assignment-window-field {
  overflow: visible;
}

.assignment-window-picker {
  position: relative;
  display: grid;
  gap: 0;
}

.assignment-window-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.95);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1.2;
}

.assignment-window-summary {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assignment-window-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 12;
  width: min(100%, 360px);
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 16px 36px rgba(49, 56, 45, 0.12);
}

.assignment-window-calendar {
  display: grid;
  gap: 10px;
}

.assignment-window-step {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.range-calendar-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.range-month-label {
  text-align: center;
  font-weight: 700;
}

.range-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 0;
  background: rgba(220, 239, 231, 0.72);
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.range-day-labels,
.range-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.range-day-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.2rem 0;
}

.range-day-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.range-day-button:hover {
  background: rgba(220, 239, 231, 0.72);
}

.range-day-outside {
  color: #9ca8a1;
}

.range-day-today {
  outline: 1px solid rgba(14, 107, 87, 0.22);
}

.range-day-between {
  background: rgba(220, 239, 231, 0.72);
  border-radius: 10px;
}

.range-day-start,
.range-day-end {
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.assignment-window-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

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

.stacked-form .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  padding: 0.45rem 0.65rem;
  min-height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 107, 87, 0.12);
  font-size: 0.92rem;
  line-height: 1.25;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.inline-action-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quick-create-page {
  min-height: 100vh;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 0;
  align-content: start;
}

.quick-create-card {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 16px 18px 14px;
  display: grid;
  gap: 0;
}

.quick-create-card h1 {
  margin: 0;
}

.assignment-quick-create-layout {
  gap: 8px;
}

.assignment-quick-create-layout .form-actions {
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 0;
}

.quick-create-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 2px;
}

.quick-create-top-actions {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 0;
}

.quick-create-top-actions .form-action-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.quick-create-bottom-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.quick-create-header-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 107, 87, 0.2);
  background: var(--accent-soft);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(26, 41, 35, 0.04);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.quick-create-header-pill:hover {
  background: rgba(228, 244, 237, 0.96);
  border-color: rgba(14, 107, 87, 0.24);
}

.quick-create-header-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.18);
}

.quick-create-close-link {
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.quick-create-details-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 240px);
  gap: 8px;
  align-items: start;
}

.quick-create-title-shell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quick-create-title-field {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
}

.quick-create-inline-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(91, 111, 105, 0.92);
}

.quick-create-title-pill {
  min-height: 52px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 0.72rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.quick-create-title-pill-manual {
  border-color: rgba(14, 107, 87, 0.24);
  background: rgba(247, 252, 249, 0.96);
}

.quick-create-title-pill:hover {
  border-color: rgba(14, 107, 87, 0.18);
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.05);
}

.quick-create-title-pill-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

.quick-create-title-pill-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.quick-create-title-edit-button {
  appearance: none;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: #5b6f69;
  width: 52px;
  min-height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.quick-create-title-edit-button:hover {
  background: rgba(245, 250, 247, 0.98);
  border-color: rgba(14, 107, 87, 0.16);
  color: var(--accent);
}

.quick-create-title-edit-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.14);
}

.quick-create-title-field.is-editing .quick-create-title-edit-button {
  pointer-events: none;
  background: rgba(245, 250, 247, 0.98);
  border-color: rgba(14, 107, 87, 0.18);
  color: var(--accent);
}

.quick-create-title-meta {
  margin: 0;
  padding-left: 59px;
  font-size: 0.77rem;
  color: rgba(91, 111, 105, 0.92);
  line-height: 1.2;
}

.quick-create-title-inline-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  padding: 0;
  outline: none;
}

.quick-create-title-inline-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.quick-create-date-field {
  gap: 5px !important;
  max-width: none;
}

.quick-create-date-field .assignment-window-trigger {
  min-height: 52px;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.quick-create-date-field .assignment-window-trigger:hover {
  border-color: rgba(14, 107, 87, 0.18);
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.05);
}

.quick-create-date-field .assignment-window-summary {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.quick-create-choice-grid,
.quick-create-pill-grid,
.quick-create-pill-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible;
  padding-bottom: 0;
}

.quick-create-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.quick-create-choice-pill {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.quick-create-choice-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}

.quick-create-choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 107, 87, 0.1);
  background: rgba(255, 255, 255, 0.74);
  color: rgba(37, 56, 50, 0.94);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  box-sizing: border-box;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.quick-create-choice-pill:hover span {
  border-color: rgba(14, 107, 87, 0.16);
  background: rgba(247, 251, 249, 0.9);
}

.quick-create-choice-pill-active span {
  background: rgba(220, 239, 231, 0.84);
  border-color: rgba(14, 107, 87, 0.22);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(26, 41, 35, 0.04);
}

.quick-create-choice-pill.quick-create-choice-pill-active:hover span {
  background: rgba(220, 239, 231, 0.84);
  border-color: rgba(14, 107, 87, 0.22);
  color: var(--text);
}

.quick-create-choice-pill input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.14);
}

.quick-create-choice-pill-class {
  width: 100%;
}

.quick-create-choice-pill-class span {
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
  background: rgba(252, 252, 250, 0.72);
  color: rgba(67, 82, 76, 0.92);
}

.quick-create-choice-pill-class.quick-create-choice-pill-active span {
  background: rgba(220, 239, 231, 0.84);
  border-color: rgba(14, 107, 87, 0.22);
  color: var(--text);
}

.quick-create-choice-pill-class.quick-create-choice-pill-active:hover span {
  background: rgba(220, 239, 231, 0.84);
  border-color: rgba(14, 107, 87, 0.22);
  color: var(--text);
}

.quick-create-choice-pill-add span {
  border-style: dashed;
  color: rgba(91, 111, 105, 0.94);
  background: rgba(255, 255, 255, 0.56);
}

.quick-create-choice-pill-manage span {
  border-style: dashed;
  color: var(--accent);
  background: rgba(244, 251, 248, 0.9);
}

.quick-create-focus-pill span {
  justify-content: flex-start;
  text-align: left;
}

.quick-create-item-browser-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 40, 34, 0.18);
  backdrop-filter: blur(6px);
  z-index: 90;
}

.quick-create-item-browser-dialog {
  width: min(92vw, 640px);
  max-height: min(74vh, 38rem);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 22px 64px rgba(49, 56, 45, 0.18);
  box-sizing: border-box;
}

.quick-create-launching {
  overflow: hidden;
}

.quick-create-launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(239, 212, 170, 0.42), transparent 34%),
    linear-gradient(160deg, rgba(239, 232, 220, 0.97) 0%, rgba(247, 244, 238, 0.98) 48%, rgba(231, 239, 231, 0.98) 100%);
  backdrop-filter: blur(8px);
}

.quick-create-launch-shell {
  width: min(100%, 1280px);
  display: grid;
  gap: 18px;
}

.quick-create-launch-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.quick-create-launch-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(14, 107, 87, 0.12);
  box-shadow: 0 12px 32px rgba(49, 56, 45, 0.1);
  font-weight: 700;
}

.quick-create-launch-pill-class {
  color: var(--muted);
}

.quick-create-launch-pill-assignment {
  color: var(--text);
}

.quick-create-launch-copy h2,
.quick-create-launch-copy p {
  margin: 0;
}

.quick-create-launch-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.quick-create-launch-copy p {
  margin-top: 6px;
  color: var(--muted);
}

.quick-create-launch-room {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 24px 64px rgba(49, 56, 45, 0.12);
}

.quick-create-launch-desks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-create-launch-desk {
  display: block;
  min-height: 78px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(220, 239, 231, 0.86));
  border: 1px solid rgba(14, 107, 87, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: quick-create-launch-pulse 1s ease-in-out infinite;
}

@keyframes quick-create-launch-pulse {
  0%, 100% {
    opacity: 0.9;
    transform: translateY(0);
  }

  50% {
    opacity: 0.62;
    transform: translateY(1px);
  }
}

.quick-create-item-browser-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.quick-create-item-browser-header h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.quick-create-item-browser-close {
  flex: 0 0 auto;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.quick-create-item-browser-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.quick-create-item-browser-add {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.quick-create-item-browser-add input {
  width: 100%;
  height: 2.7rem;
  padding: 0 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.16);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--text);
  box-sizing: border-box;
}

.quick-create-item-browser-add input:focus {
  outline: none;
  border-color: rgba(14, 107, 87, 0.32);
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.12);
}

.quick-create-item-browser-add-button {
  flex: 0 0 auto;
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.18);
  background: rgba(244, 251, 248, 0.94);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  box-sizing: border-box;
}

.quick-create-item-browser-add-button:hover,
.quick-create-item-browser-add-button:focus-visible {
  outline: none;
  background: rgba(232, 245, 237, 0.96);
  border-color: rgba(14, 107, 87, 0.28);
  transform: translateY(-1px);
}

.quick-create-item-browser-add-button:disabled {
  opacity: 0.56;
  cursor: wait;
  transform: none;
}

.quick-create-item-browser-list {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  min-width: 0;
}

.quick-create-item-browser-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-sizing: border-box;
  min-width: 0;
}

.quick-create-item-browser-row + .quick-create-item-browser-row {
  margin-top: 10px;
}

.quick-create-item-browser-row:hover,
.quick-create-item-browser-row:focus-within {
  border-color: rgba(14, 107, 87, 0.24);
  box-shadow: 0 10px 24px rgba(26, 41, 35, 0.08);
  background: rgba(232, 245, 237, 0.96);
}

.quick-create-item-browser-row-active {
  border-color: rgba(14, 107, 87, 0.28);
  box-shadow: 0 10px 24px rgba(26, 41, 35, 0.08);
  background: rgba(240, 248, 243, 0.92);
}

.quick-create-item-browser-row-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.quick-create-item-browser-row-main:focus-visible {
  outline: none;
}

.quick-create-item-browser-delete {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(184, 62, 62, 0.18);
  background: rgba(255, 245, 245, 0.96);
  color: #b83e3e;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  box-sizing: border-box;
}

.quick-create-item-browser-delete:hover,
.quick-create-item-browser-delete:focus-visible {
  outline: none;
  background: rgba(252, 224, 224, 0.96);
  border-color: rgba(184, 62, 62, 0.28);
  transform: translateY(-1px);
}

.quick-create-item-browser-delete:disabled {
  opacity: 0.56;
  cursor: wait;
  transform: none;
}

.quick-create-item-browser-row-title {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.quick-create-shared-box {
  display: grid;
  gap: 0;
  padding: 4px 0;
  border-radius: 18px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(26, 41, 35, 0.06);
  backdrop-filter: blur(10px);
}

.quick-create-shared-section {
  display: grid;
  gap: 7px;
  padding: 10px 14px;
}

.quick-create-shared-section + .quick-create-shared-section {
  border-top: 1px solid rgba(14, 107, 87, 0.08);
}

.quick-create-section-header {
  margin-bottom: 0;
  min-height: 0;
}

.quick-create-shared-section .form-block-title {
  margin-bottom: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(91, 111, 105, 0.92);
}

.quick-create-custom-panel {
  margin-top: 1px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.09);
  background: rgba(249, 251, 249, 0.76);
}

.quick-create-custom-panel label {
  gap: 3px;
}

.quick-create-custom-panel label span {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(72, 88, 82, 0.94);
}

.quick-create-custom-panel input {
  min-height: 42px;
  padding: 0.6rem 0.72rem;
  border-radius: 11px;
  font-size: 0.96rem;
}

.quick-create-custom-focus-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(140px, 0.9fr) minmax(170px, 1fr) minmax(170px, 1fr);
  gap: 7px 9px;
  align-items: end;
}

.quick-create-focus-field-name {
  grid-column: 1;
  grid-row: 1;
}

.quick-create-focus-field-green-label {
  grid-column: 2;
  grid-row: 1;
}

.quick-create-focus-field-yellow-label {
  grid-column: 3;
  grid-row: 1;
}

.quick-create-focus-field-red-label {
  grid-column: 4;
  grid-row: 1;
}

.quick-create-focus-spacer {
  grid-column: 1;
  grid-row: 2;
  min-height: 1px;
  display: flex;
  align-items: center;
}

.quick-create-focus-field {
  min-width: 0;
}

.quick-create-focus-inline-action {
  min-height: 42px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.6rem 0.72rem;
  border-radius: 11px;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: rgba(91, 111, 105, 0.96);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.quick-create-focus-inline-action:hover {
  background: rgba(247, 251, 249, 0.96);
  border-color: rgba(14, 107, 87, 0.18);
  color: var(--accent);
}

.quick-create-focus-inline-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.14);
}

.quick-create-focus-field-green-points {
  grid-column: 2;
  grid-row: 2;
}

.quick-create-focus-field-yellow-points {
  grid-column: 3;
  grid-row: 2;
}

.quick-create-focus-field-red-points {
  grid-column: 4;
  grid-row: 2;
}

@media (max-width: 980px) {
  .quick-create-custom-focus-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .quick-create-focus-field-name,
  .quick-create-focus-field-green-label,
  .quick-create-focus-field-yellow-label,
  .quick-create-focus-field-red-label,
  .quick-create-focus-field-green-points,
  .quick-create-focus-field-yellow-points,
  .quick-create-focus-field-red-points {
    grid-column: auto;
    grid-row: auto;
  }

  .quick-create-focus-spacer {
    display: none;
  }
}

@media (max-width: 760px) {
  .quick-create-page {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .quick-create-card {
    padding: 15px 14px;
    max-height: none;
    overflow: visible;
  }

  .quick-create-details-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .assignment-quick-create-layout {
    grid-template-rows: none;
  }

  .quick-create-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .quick-create-top-actions .form-action-links {
    justify-content: flex-start;
  }

  .quick-create-shared-box {
    overflow: visible;
  }

  .quick-create-title-pill-value {
    white-space: normal;
  }

  .quick-create-title-meta {
    padding-left: 2px;
  }

  .quick-create-launch-overlay {
    padding: 14px;
  }

  .quick-create-launch-room {
    padding: 14px;
    border-radius: 22px;
  }

  .quick-create-launch-desks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-create-launch-desk {
    min-height: 64px;
  }
}

.button-link-secondary {
  background: white;
  color: var(--accent);
  border: 1px solid rgba(14, 107, 87, 0.28);
}

.button-link-ghost {
  background: transparent;
  color: #b04e1c;
  border: 1px solid rgba(176, 78, 28, 0.35);
}

.grader-shell {
  padding: 0;
}

.assignment-picker-line {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  width: 100%;
  min-width: 0;
}

.grader-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: min(100%, 32rem);
  min-width: 0;
}

.profile-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  width: min(100%, 58rem);
  min-width: 0;
}

.profile-nav-pill {
  min-width: 0;
}

.profile-nav-pill-arrow {
  min-width: 2.1rem;
}

.profile-nav-pill-current {
  max-width: min(100%, 40rem);
}

.profile-nav-pill-current .top-nav-pill-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-search-picker {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.profile-search-picker-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(26rem, calc(100vw - 2rem));
  min-width: min(18rem, calc(100vw - 2rem));
  gap: 0.55rem;
}

.profile-search-picker-menu[hidden] {
  display: none !important;
}

.profile-search-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 2.25rem;
  min-height: 2.25rem;
  width: min(100%, 40rem);
  max-width: min(100%, 40rem);
  padding: 0 0.95rem;
  cursor: text;
}

.profile-search-pill:focus-within {
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.14);
  border-color: rgba(14, 107, 87, 0.32);
}

.profile-search-pill-input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  text-align: center;
}

.profile-search-pill-input:focus {
  outline: none;
}

.profile-search-pill-input::-webkit-search-cancel-button {
  display: none;
}

.profile-search-picker-open .profile-search-pill {
  border-color: rgba(14, 107, 87, 0.32);
}

.profile-search-picker-open .profile-search-picker-menu {
  display: grid;
}

.profile-search-pill-input:focus-visible {
  outline: none;
}

.profile-search-results {
  display: grid;
  gap: 0.35rem;
  max-height: min(20rem, 52vh);
  overflow: auto;
}

.profile-search-result {
  display: block;
}

.profile-search-result-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.profile-search-result-row,
.profile-search-result-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.profile-search-result-highlighted {
  background: rgba(220, 239, 231, 0.75);
  font-weight: 600;
}

.profile-search-result-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-search-result-percent {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

.profile-search-result-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
}

.profile-search-result-current {
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.profile-search-empty {
  margin: 0;
  padding: 0.25rem 0.2rem 0.1rem;
}

.top-nav-pill-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: inherit;
  text-decoration: none;
}

.top-nav-pill-button:hover,
.top-nav-pill-button:active,
.top-nav-pill-button:visited {
  text-decoration: none;
}

.top-nav-pill-button:focus-visible {
  outline: none;
}

.top-nav-pill-button:focus-visible .top-nav-pill {
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.18);
}

.assignment-picker-wrap {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.assignment-picker-wrap .top-nav-pill-trigger {
  display: flex;
  width: 100%;
}

.assignment-picker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: min(48vw, 620px);
}

.assignment-picker-pill .top-nav-pill-label {
  font-size: 1rem;
  font-weight: 700;
}

.assignment-picker-pill .top-nav-pill-meta {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grader-quick-create-button {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  background: rgba(220, 239, 231, 0.82);
  border-color: rgba(14, 107, 87, 0.18);
  box-shadow: 0 6px 16px rgba(26, 41, 35, 0.04);
}

.grader-quick-create-button:hover {
  background: rgba(228, 244, 237, 0.96);
  border-color: rgba(14, 107, 87, 0.24);
}

.assignment-picker-menu {
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(88vw, 720px);
  min-width: min(88vw, 560px);
  max-width: min(88vw, 720px);
  max-height: min(70vh, 34rem);
  overflow: auto;
  padding: 12px;
}

.assignment-picker-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  background: rgba(220, 239, 231, 0.45);
  border: 1px solid rgba(14, 107, 87, 0.12);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.assignment-picker-action-link:hover {
  background: rgba(220, 239, 231, 0.72);
}

.assignment-picker-action-link-disabled {
  color: var(--muted);
  background: rgba(244, 247, 245, 0.9);
  border-color: rgba(14, 107, 87, 0.08);
  cursor: default;
  pointer-events: none;
}

.assignment-picker-filter-group {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.assignment-picker-filter-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.assignment-picker-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 10px;
  margin-top: 10px;
}

.assignment-picker-filters::-webkit-scrollbar {
  display: none;
}

.assignment-picker-filter-pill {
  appearance: none;
  border: 1px solid rgba(14, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  border-radius: 999px;
  min-height: 1.9rem;
  padding: 0 0.8rem;
  white-space: nowrap;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.assignment-picker-filter-pill:hover {
  background: rgba(240, 248, 243, 0.92);
  color: var(--accent);
}

.assignment-picker-filter-pill-active {
  background: rgba(220, 239, 231, 0.9);
  border-color: rgba(14, 107, 87, 0.2);
  color: var(--accent);
}

.assignment-picker-filter-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.14);
}

.assignment-picker-browser-row {
  position: relative;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.assignment-picker-browser-row + .assignment-picker-browser-row {
  margin-top: 10px;
}

.assignment-picker-browser-row:hover,
.assignment-picker-browser-row:focus-within {
  border-color: rgba(14, 107, 87, 0.24);
  box-shadow: 0 10px 24px rgba(26, 41, 35, 0.08);
  background: rgba(232, 245, 237, 0.96);
}

.assignment-picker-browser-row-active {
  border-color: rgba(14, 107, 87, 0.28);
  box-shadow: 0 10px 24px rgba(26, 41, 35, 0.08);
  background: rgba(240, 248, 243, 0.92);
}

.assignment-picker-browser-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.assignment-picker-browser-link:focus-visible {
  outline: none;
}

.assignment-picker-browser-link:focus-visible .assignment-row-main {
  outline: 2px solid rgba(14, 107, 87, 0.24);
  outline-offset: 4px;
  border-radius: 12px;
}

.assignment-picker-browser-row .assignment-row-title {
  color: var(--text);
}

.assignment-picker-browser-row .assignment-row-meta,
.assignment-picker-browser-row .assignment-row-meta-date {
  font-size: 0.86rem;
}

.assignment-picker-browser-row .assignment-row-meta {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.assignment-picker-browser-row .assignment-row-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.assignment-picker-browser-row .assignment-row-meta-separator {
  width: 1px;
  height: 1.1rem;
  margin: 0 4px;
  background: rgba(96, 108, 100, 0.22);
  border-radius: 999px;
  flex: 0 0 auto;
}

.assignment-picker-browser-row .assignment-level-summary {
  gap: 5px;
}

.assignment-picker-browser-row .assignment-level-chip {
  min-width: 38px;
  height: 1.2rem;
  padding: 0 0.36rem;
}

.assignment-picker-browser-row .assignment-level-chip-text {
  font-size: 0.64rem;
  line-height: 1.2rem;
}

.assignment-picker-row-actions {
  gap: 8px;
}

.assignment-picker-row-actions .icon-action-link {
  width: 2rem;
  height: 2rem;
}

.assignment-picker-row-actions .icon-action-link span {
  line-height: 1;
}

.assignment-picker-empty {
  padding: 1rem 0.25rem 0.4rem;
  color: var(--muted);
  text-align: left;
}

.assignment-level-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 1.35rem;
  padding: 0 0.42rem;
  box-sizing: border-box;
  border-radius: 999px;
}

.assignment-level-chip-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.assignment-level-chip-green {
  background: rgba(47, 143, 47, 0.14);
  color: #206b20;
}

.assignment-level-chip-yellow {
  background: rgba(245, 158, 11, 0.16);
  color: #9a6100;
}

.assignment-level-chip-red {
  background: rgba(239, 68, 68, 0.14);
  color: #b33030;
}

.assignment-level-chip-excused {
  background: rgba(139, 92, 246, 0.14);
  color: #6d3fd1;
}

.assignment-level-chip-absent {
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
}

.assignment-nav-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  padding: 0.15rem 0.25rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
}

.assignment-nav-button:hover:not(:disabled) {
  background: rgba(220, 239, 231, 0.72);
}

.assignment-nav-button:disabled {
  color: #9fa8a2;
  cursor: default;
}

.inline-meta {
  color: var(--muted);
  white-space: nowrap;
  font: inherit;
  font-weight: 500;
}

.grader-mode-help {
  margin: 0 0 14px;
  line-height: 1.45;
}

.grader-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.grader-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(14, 107, 87, 0.12);
  color: var(--text);
  font-size: 0.84rem;
  white-space: nowrap;
}

.grader-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.grader-legend-dot-none { background: rgba(168, 176, 180, 0.72); }
.grader-legend-dot-green { background: rgba(47, 143, 70, 0.82); }
.grader-legend-dot-yellow { background: rgba(228, 162, 0, 0.82); }
.grader-legend-dot-red { background: rgba(211, 72, 64, 0.82); }
.grader-legend-dot-excused { background: rgba(124, 92, 224, 0.82); }
.grader-legend-dot-absent { background: rgba(97, 116, 141, 0.82); }

.layout-actions {
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.layout-action-button {
  width: 100%;
  min-height: 2.25rem;
  padding-block: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.seating-mode-toggle {
  flex: 0 0 auto;
}

.seating-mode-pill {
  min-width: 6.75rem;
  justify-content: center;
}

.seating-mode-toggle-active .top-nav-pill {
  box-shadow: inset 0 0 0 1px rgba(14, 107, 87, 0.2);
}

.inline-action {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.inline-action-warn {
  color: #b04e1c;
}

.options-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.options-trigger::after {
  content: " ▾";
  font-size: 0.82em;
}

.options-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 16px 36px rgba(49, 56, 45, 0.12);
  z-index: 10;
}

.options-item {
  width: 100%;
  text-align: left;
  font: inherit;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.options-item:hover:not(:disabled) {
  background: rgba(220, 239, 231, 0.72);
}

.options-item:disabled {
  color: #88938d;
  cursor: not-allowed;
}

.options-item-warn {
  color: #b04e1c;
}

.is-hidden {
  display: none !important;
}

.classroom-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grader-grid-gap, 14px);
  align-items: start;
}

.layout-table {
  padding: var(--grader-table-padding, 8px);
  border-radius: var(--grader-table-radius, 15px);
  background: rgba(210, 214, 213, 0.55);
  border: 1px solid rgba(114, 191, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.table-seat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grader-seat-gap, 6px);
}

.grader-seat {
  width: 100%;
  aspect-ratio: var(--grader-seat-ratio, 0.78 / 1);
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: var(--grader-seat-padding, 1px);
  border-radius: var(--grader-seat-radius, 10px);
  transition: background 0.12s ease, outline 0.12s ease;
}

.grader-seat.drop-active {
  outline: 3px dashed rgba(14, 107, 87, 0.42);
  background: rgba(220, 239, 231, 0.46);
}

.grader-empty-seat {
  width: 100%;
  min-height: 0;
  height: 100%;
  border-radius: calc(var(--grader-seat-radius, 10px) - 1px);
  border: 2px dashed rgba(14, 107, 87, 0.22);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  padding: var(--grader-empty-padding, 8px);
  font-size: var(--grader-empty-font, 0.82rem);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.grader-empty-seat:hover {
  background: rgba(255, 255, 255, 0.78);
}

.student-desk {
  position: relative;
  width: 100%;
  border-radius: calc(var(--grader-seat-radius, 10px) - 1px);
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(88, 93, 99, 0.1);
  font: inherit;
  padding: var(--grader-desk-padding-block, 8px) var(--grader-desk-padding-inline, 6px);
  text-align: center;
  display: grid;
  place-items: center;
  gap: var(--grader-desk-gap, 4px);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.grader-seat > .student-desk {
  height: 100%;
  aspect-ratio: auto;
}

.desk-name {
  font-weight: 700;
  font-size: var(--grader-name-size, 0.88rem);
  line-height: 1.12;
}

.desk-status-text {
  font-size: var(--grader-status-size, 0.62rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.desk-none { border-color: rgba(168, 176, 180, 0.4); }

.desk-green {
  border-color: rgba(47, 143, 70, 0.72);
  background: linear-gradient(180deg, rgba(247, 255, 249, 0.98), rgba(231, 248, 237, 0.98));
  box-shadow: inset 0 0 0 999px rgba(62, 163, 94, 0.08), 0 4px 12px rgba(88, 93, 99, 0.1);
}
.desk-green .desk-status-text { color: #175f35; }

.desk-yellow {
  border-color: rgba(228, 162, 0, 0.74);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 244, 214, 0.98));
  box-shadow: inset 0 0 0 999px rgba(228, 162, 0, 0.08), 0 4px 12px rgba(88, 93, 99, 0.1);
}
.desk-yellow .desk-status-text { color: #866300; }

.desk-red {
  border-color: rgba(211, 72, 64, 0.72);
  background: linear-gradient(180deg, rgba(255, 249, 248, 0.98), rgba(255, 231, 228, 0.98));
  box-shadow: inset 0 0 0 999px rgba(211, 72, 64, 0.08), 0 4px 12px rgba(88, 93, 99, 0.1);
}
.desk-red .desk-status-text { color: #8f2f2a; }

.desk-excused {
  border-color: rgba(124, 92, 224, 0.72);
  background: linear-gradient(180deg, rgba(251, 249, 255, 0.98), rgba(239, 234, 255, 0.98));
  box-shadow: inset 0 0 0 999px rgba(124, 92, 224, 0.07), 0 4px 12px rgba(88, 93, 99, 0.1);
}
.desk-excused .desk-status-text { color: #5d40bb; }

.desk-absent {
  border-color: rgba(97, 116, 141, 0.62);
  background: linear-gradient(180deg, rgba(231, 235, 240, 0.96), rgba(207, 214, 222, 0.96));
  color: #5a6775;
  box-shadow: inset 0 0 0 999px rgba(170, 181, 193, 0.22);
  opacity: 0.8;
}

.desk-absent .desk-status-text { color: #5a6775; }

.desk-selected {
  outline: 4px solid rgba(14, 107, 87, 0.28);
  transform: translateY(-2px);
}

.student-desk.dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.grader-room-card {
  --grader-grid-gap: 14px;
  --grader-table-padding: 8px;
  --grader-table-radius: 15px;
  --grader-seat-gap: 6px;
  --grader-seat-ratio: 0.78 / 1;
  --grader-seat-padding: 1px;
  --grader-seat-radius: 10px;
  --grader-empty-padding: 8px;
  --grader-empty-font: 0.82rem;
  --grader-desk-padding-block: 8px;
  --grader-desk-padding-inline: 6px;
  --grader-desk-gap: 4px;
  --grader-name-size: 1.12rem;
  --grader-status-size: 0.82rem;
  border-radius: 20px;
  border: 1px solid rgba(14, 107, 87, 0.14);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.grader-island-wrap {
  display: none;
  margin-top: 18px;
}

.grader-island-wrap.visible {
  display: block;
}

.grader-island-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.grader-island-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.grader-island-box {
  min-height: 112px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(210, 214, 213, 0.48);
  border: 1px solid rgba(114, 191, 255, 0.42);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  transition: background 0.12s ease, outline 0.12s ease;
}

.grader-island-box .student-desk {
  width: clamp(96px, 9vw, 124px);
  aspect-ratio: var(--grader-seat-ratio, 0.78 / 1);
  flex: 0 0 auto;
}

.grader-island-box.drop-active {
  outline: 3px dashed rgba(14, 107, 87, 0.42);
  background: rgba(220, 239, 231, 0.46);
}

.grader-island-drop {
  min-width: 140px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 14px;
  border: 2px dashed rgba(14, 107, 87, 0.22);
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.assignment-picker-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

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

.room-mode-wrap {
  display: block;
  overflow: visible;
}

.room-scale-frame {
  width: 100%;
}

.compact-layout-list {
  display: none;
}

.compact-table-card {
  border: 1px solid rgba(14, 107, 87, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px 14px;
}

.compact-table-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.compact-table-header h3 {
  margin: 0;
  font-size: 0.92rem;
}

.compact-seat-list {
  gap: 8px;
}

.compact-seat-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(14, 107, 87, 0.12);
  background: transparent;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.compact-seat-name {
  font-weight: 700;
  line-height: 1.2;
}

.compact-seat-status {
  font-size: 0.76rem;
  min-width: 96px;
  text-align: right;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(221, 227, 228, 0.75);
}

.compact-seat-row:last-child {
  border-bottom: 0;
}

.compact-seat-row.desk-green .compact-seat-status {
  background: rgba(223, 243, 230, 0.96);
  color: #175f35;
}

.compact-seat-row.desk-yellow .compact-seat-status {
  background: rgba(255, 241, 191, 0.96);
  color: #866300;
}

.compact-seat-row.desk-red .compact-seat-status {
  background: rgba(247, 217, 215, 0.96);
  color: #8f2f2a;
}

.compact-seat-row.desk-excused .compact-seat-status {
  background: rgba(232, 224, 255, 0.98);
  color: #5d40bb;
}

.compact-seat-row.desk-absent {
  opacity: 0.72;
}

.compact-seat-row.desk-absent .compact-seat-status {
  background: rgba(97, 116, 141, 0.95);
  color: white;
}

.drawer-card {
  border: 1px solid rgba(14, 107, 87, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.drawer-card summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}

.drawer-card summary::-webkit-details-marker {
  display: none;
}

.drawer-body {
  padding: 0 18px 18px;
}

.compact-list .student-row {
  background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 720px) {
  .section-heading,
  .student-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
  }

}

@media (max-width: 1100px) {
  .grader-room-card {
    --grader-grid-gap: 12px;
    --grader-table-padding: 7px;
    --grader-seat-gap: 5px;
    --grader-seat-ratio: 0.82 / 1;
    --grader-empty-padding: 7px;
    --grader-empty-font: 0.78rem;
    --grader-desk-padding-block: 7px;
    --grader-desk-padding-inline: 5px;
    --grader-name-size: 1.04rem;
    --grader-status-size: 0.76rem;
  }
}

@media (max-width: 760px) {
  .section-heading-actions {
    justify-content: flex-start;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

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

  .dashboard-row-actions {
    justify-content: flex-start;
  }

  .form-grid-two,
  .form-grid-three,
  .form-grid-hero,
  .form-grid-hero-topline,
  .form-grid-hero-class,
  .form-grid-tight,
  .assignment-card-top,
  .scoring-band-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .assignment-chip-row {
    justify-content: flex-start;
  }

  .class-page-navigation.class-page-navigation-three {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .class-page-navigation-main,
  .class-page-navigation-center,
  .assignment-picker-line {
    justify-self: stretch;
  }

  .grader-topbar-center {
    justify-content: flex-start;
  }

  .assignment-picker-menu {
    left: 0;
    transform: none;
    width: min(92vw, 720px);
    min-width: min(92vw, 320px);
    max-width: min(92vw, 720px);
    max-height: min(68vh, 32rem);
  }

  .assignment-picker-browser-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .assignment-picker-row-actions {
    justify-self: start;
  }

  .class-page-navigation-center .assignment-picker-line {
    order: 2;
  }

  .class-page-navigation-center .layout-actions {
    order: 3;
    justify-self: stretch;
    justify-content: flex-start;
  }

  .class-page-navigation-actions {
    order: 4;
    justify-content: flex-start;
    white-space: normal;
    justify-self: stretch;
  }

  .grader-room-card {
    --grader-grid-gap: 10px;
    --grader-table-padding: 6px;
    --grader-table-radius: 13px;
    --grader-seat-gap: 4px;
    --grader-seat-ratio: 0.92 / 1;
    --grader-seat-radius: 9px;
    --grader-empty-padding: 6px;
    --grader-empty-font: 0.74rem;
    --grader-desk-padding-block: 6px;
    --grader-desk-padding-inline: 4px;
    --grader-desk-gap: 3px;
    --grader-name-size: 0.96rem;
    --grader-status-size: 0.72rem;
  }

  .grader-island-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .room-scale-frame,
  .grader-island-wrap {
    display: none;
  }

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

@media (max-height: 980px) {
  .grader-shell {
    gap: 8px;
  }

  .grader-room-card {
    --grader-grid-gap: 11px;
    --grader-table-padding: 6px;
    --grader-table-radius: 13px;
    --grader-seat-gap: 4px;
    --grader-seat-ratio: 0.98 / 1;
    --grader-seat-radius: 9px;
    --grader-empty-padding: 6px;
    --grader-empty-font: 0.74rem;
    --grader-desk-padding-block: 6px;
    --grader-desk-padding-inline: 4px;
    --grader-desk-gap: 3px;
    --grader-name-size: 1.02rem;
    --grader-status-size: 0.74rem;
    padding: 8px;
  }

  .grader-island-wrap {
    margin-top: 12px;
  }

  .grader-island-box {
    min-height: 92px;
    padding: 10px;
    gap: 8px;
  }
}

@media (max-height: 860px) {
  .grader-room-card {
    --grader-grid-gap: 9px;
    --grader-table-padding: 5px;
    --grader-table-radius: 12px;
    --grader-seat-gap: 3px;
    --grader-seat-ratio: 1.05 / 1;
    --grader-seat-radius: 8px;
    --grader-empty-padding: 5px;
    --grader-empty-font: 0.68rem;
    --grader-desk-padding-block: 5px;
    --grader-desk-padding-inline: 4px;
    --grader-desk-gap: 2px;
    --grader-name-size: 0.96rem;
    --grader-status-size: 0.7rem;
    padding: 7px;
  }

  .grader-island-wrap {
    margin-top: 10px;
  }

  .grader-island-box {
    min-height: 84px;
    padding: 8px;
    gap: 6px;
  }

  .grader-island-box .student-desk {
    width: clamp(82px, 8vw, 108px);
  }
}

@media (max-height: 420px) {
  .room-scale-frame,
  .grader-island-wrap {
    display: none;
  }

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

@media (max-width: 1120px) {
  .form-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-hero-class {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  }

  .class-name-field {
    grid-column: 1 / -1;
  }

  .layout-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster-quick-add-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .roster-quick-add-action {
    grid-column: 1 / -1;
  }

}

@media (max-width: 980px) {
  .form-grid-hero-class {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .class-name-field {
    grid-column: 1 / -1;
  }

  .layout-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .roster-status {
    white-space: normal;
  }

  .roster-toolbar-side {
    justify-content: flex-start;
  }

  .profile-trends-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-existing-result {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .roster-table th,
  .roster-table td {
    padding: 10px 10px;
  }

  .table-input {
    min-height: 38px;
    padding: 0.45rem 0.55rem;
  }

  .profile-view-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .profile-view-toggle-link {
    flex: 1 1 0;
  }

  .profile-directory-card-header,
  .profile-page-header {
    flex-direction: column;
  }

  .profile-directory-list-head {
    display: none;
  }

  .profile-directory-row {
    grid-template-columns: 1fr;
  }

  .profile-history-table,
  .profile-trend-table {
    min-width: 520px;
  }

  .profile-review-form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .profiles-page-screen .profiles-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hub-match-class-detail summary,
  .hub-match-identity-note,
  .hub-match-enrollment-summary,
  .hub-match-class-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-match-class-counts {
    justify-self: start;
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .profiles-page-screen .profiles-directory-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (min-width: 761px) and (max-width: 1420px) {
  .page {
    max-width: 1340px;
  }
}
