:root {
  --bg: #34a853;
  --bg-soft: #c9f5d8;
  --ink: #243447;
  --muted: #526273;
  --panel: #fffdf5;
  --paper: #ffffff;
  --line: #84d8a0;
  --primary: #111111;
  --primary-hover: #2f2f2f;
  --blue: #2563eb;
  --green: #1f9d55;
  --green-soft: #e9f8ef;
  --red: #d92d20;
  --red-soft: #fff0ed;
  --amber: #b7791f;
  --amber-soft: #fff7df;
  --shadow: 0 16px 42px rgba(29, 33, 41, 0.12);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0 12%, transparent 12% 100%),
    linear-gradient(135deg, var(--bg-soft), var(--bg));
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(1320px, 96vw);
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  color: #111111;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-status,
.assignment-count {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #111111;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.62rem 0.78rem;
}

.directory-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.directory-select,
.directory-arrow {
  min-height: 40px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #111111;
  font-weight: 900;
}

.directory-select {
  max-width: 220px;
  padding: 0 0.72rem;
}

.directory-arrow {
  min-width: 42px;
}

.directory-arrow:not(:disabled):hover,
.directory-arrow:not(:disabled):focus-visible,
.directory-select:not(:disabled):hover,
.directory-select:not(:disabled):focus-visible {
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.12);
}

.primary,
.secondary {
  min-height: 42px;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 900;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.primary {
  background: var(--primary);
  color: #ffffff;
}

.primary:hover,
.primary:focus-visible {
  background: var(--primary-hover);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18);
  transform: translateY(-1px);
}

.secondary {
  background: rgba(255, 255, 255, 0.74);
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.1);
}

.secondary:hover,
.secondary:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
}

.large {
  min-height: 58px;
  padding: 0.95rem 1.35rem;
  font-size: 1.05rem;
}

.workspace {
  width: min(1320px, 96vw);
  margin: 0 auto 30px;
}

.legal-page .workspace {
  width: min(920px, 92vw);
  margin-bottom: 40px;
}

.legal-footer {
  width: min(1320px, 96vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 24px;
  color: rgba(17, 17, 17, 0.76);
  font-size: 0.84rem;
  font-weight: 800;
}

.legal-footer button,
.legal-footer a {
  border: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer button:hover,
.legal-footer button:focus-visible,
.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--green);
}

.legal-page {
  color: #111111;
}

.legal-page-workspace {
  display: flex;
  justify-content: center;
}

.legal-page-panel {
  width: 100%;
  max-width: 760px;
  margin: 10px auto 0;
  padding: 0 0 12px;
  text-align: center;
}

.legal-page-logo {
  width: min(180px, 38vw);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto 22px;
}

.legal-page-panel h1 {
  max-width: 100%;
  margin: 0 0 14px;
  color: #111111;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.legal-page-lead {
  max-width: 100%;
  margin: 0 0 18px;
  color: #111111;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.legal-page-copy {
  max-width: 100%;
  color: #111111;
  line-height: 1.7;
  text-align: left;
}

.legal-page-copy h3,
.legal-page-copy p,
.legal-page-copy li,
.legal-page-copy a {
  color: #111111;
}

.legal-page-copy h3 {
  margin: 22px 0 10px;
}

.legal-page-copy p,
.legal-page-copy li {
  font-weight: 400;
}

.legal-page-copy ul {
  padding-left: 1.2rem;
}

.legal-page-copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-panel {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px 18px 18px;
  text-align: center;
}

.hero-logo {
  width: min(260px, 58vw);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  max-width: 780px;
  margin: 0;
  color: #111111;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-panel p {
  max-width: 660px;
  margin: 0 0 8px;
  color: #34495e;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

.subscribe-button {
  min-width: min(320px, 80vw);
}

.subscribe-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
  font-weight: 800;
  color: #243447;
}

.subscribe-field input {
  min-height: 46px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: #ffffff;
  color: #111111;
}

.subscribe-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

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

.search-band,
.profile-strip,
.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.search-band {
  padding: 18px 0 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-band h1,
.profile-strip h2,
.timeline-head h2 {
  margin: 0;
  color: #111111;
  letter-spacing: 0;
}

.search-band h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.search-box {
  position: relative;
  z-index: 12;
}

.search-box input {
  width: 100%;
  min-height: 72px;
  padding: 0 20px;
  border: 3px solid #111111;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.12);
  color: #111111;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 900;
  outline: 0;
}

.search-box input:disabled {
  border-color: rgba(17, 17, 17, 0.2);
  color: var(--muted);
  box-shadow: none;
}

.suggestions {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  z-index: 18;
  max-height: 330px;
  overflow-y: auto;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

.suggestion:hover,
.suggestion:focus-visible,
.suggestion.active {
  background: #e8f7ed;
}

.suggestion strong {
  display: block;
  color: #111111;
  font-size: 1rem;
}

.suggestion span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.empty-state,
.student-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
  font-weight: 700;
}

.student-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.profile-strip {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.profile-strip h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.student-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.profile-copy {
  min-width: 0;
}

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

.reliability-badge {
  width: 70px;
  height: 70px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 8px solid currentColor;
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.78), 0 10px 24px rgba(17, 17, 17, 0.1);
}

.reliability-green { color: var(--green); }
.reliability-amber { color: var(--amber); }
.reliability-risk { color: var(--red); }
.reliability-muted { color: var(--muted); }

.overall-average {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 900;
}

.trend-up { color: var(--green); }
.trend-stable { color: var(--muted); }
.trend-down { color: var(--red); }
.trend-muted { color: var(--muted); }

.blank-warning {
  width: 100%;
  border: 2px solid rgba(217, 45, 32, 0.36);
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
}

.blank-warning:hover,
.blank-warning:focus-visible {
  border-color: rgba(217, 45, 32, 0.72);
  box-shadow: 0 12px 26px rgba(217, 45, 32, 0.13);
}

.blank-warning::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.analytics-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-left: 7px solid var(--muted);
  border-radius: 8px;
  background: #ffffff;
}

.analytics-card strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analytics-card span {
  color: #111111;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
}

.analytics-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
}

.analytics-card.clickable-card {
  cursor: pointer;
}

.analytics-card.clickable-card:hover,
.analytics-card.clickable-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
}

.analytics-card[data-tooltip],
.stalled-draft[data-tooltip],
.reliability-badge,
.overall-average {
  position: relative;
}

.analytics-card[data-tooltip]::after,
.stalled-draft[data-tooltip]::after,
.reliability-badge[data-tooltip]::after,
.overall-average[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 14px;
  bottom: calc(100% + 10px);
  z-index: 40;
  width: min(340px, 82vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.22);
}

.analytics-card[data-tooltip]:hover::after,
.analytics-card[data-tooltip]:focus-visible::after,
.stalled-draft[data-tooltip]:hover::after,
.stalled-draft[data-tooltip]:focus-visible::after,
.reliability-badge[data-tooltip]:hover::after,
.reliability-badge[data-tooltip]:focus-visible::after,
.overall-average[data-tooltip]:hover::after,
.overall-average[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.stalled-draft {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 7px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.25;
}

.analytics-green,
.analytics-growth {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.analytics-amber {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.analytics-risk {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.analytics-muted {
  border-left-color: var(--muted);
  background: #f8fafc;
}

.analytics-email {
  border-left-color: #111111;
  background: linear-gradient(135deg, #ffffff 0%, #e9f8ef 100%);
}


.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 10px;
  width: min(440px, 100%);
}

.metric {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.metric span {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1;
}

.metric strong {
  font-size: 0.84rem;
  text-transform: uppercase;
}

.metric-alert {
  background: var(--red-soft);
  color: var(--red);
}

.metric-good {
  background: var(--green-soft);
  color: var(--green);
}

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

.class-card {
  min-height: 92px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: #fffdf5;
}

.class-card h3 {
  margin: 0;
  color: #111111;
  font-size: 1rem;
}

.class-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.class-score {
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
}


.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
}

.topic-filter-label,
.toggle-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.topic-filter {
  min-height: 42px;
  min-width: min(260px, 100%);
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  padding: 0 0.75rem;
  font-weight: 800;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 0 0.75rem;
}

.toggle-label input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #111111;
}

.timeline {
  display: grid;
  gap: 8px;
}

.assignment-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(130px, 0.8fr) minmax(100px, 0.55fr) minmax(110px, 0.5fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.assignment-row:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.assignment-title {
  min-width: 0;
  position: relative;
}

.assignment-title strong,
.assignment-course strong {
  display: block;
  overflow-wrap: anywhere;
  color: #111111;
}

.assignment-title span,
.assignment-course span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.status-badge {
  justify-self: start;
  border-radius: 8px;
  padding: 0.46rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-missing,
.status-late {
  background: var(--red-soft);
  color: var(--red);
}

.status-returned,
.status-turned_in {
  background: var(--green-soft);
  color: var(--green);
}

.status-created,
.status-new {
  background: var(--amber-soft);
  color: var(--amber);
}

.grade {
  color: #111111;
  font-weight: 900;
}

.grade span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.small-button {
  min-width: 42px;
  min-height: 42px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-weight: 900;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.72rem;
}

.small-button.secondary-link {
  background: #f1f5f9;
  color: #111111;
}


.app-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.38);
}

.modal-card {
  width: min(760px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 22px 54px rgba(17, 17, 17, 0.28);
}

.subscribe-modal-card {
  width: min(560px, calc(100vw - 32px));
  height: auto;
  max-height: calc(100vh - 40px);
}

.subscribe-modal-card .modal-header,
.subscribe-modal-card .modal-help,
.subscribe-modal-card .subscribe-field,
.subscribe-modal-card .subscribe-actions {
  text-align: center;
}

.subscribe-modal-card .modal-header {
  align-items: center;
  justify-content: center;
  position: relative;
  padding-right: 46px;
}

.subscribe-modal-card .icon-button {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 28px;
  min-height: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1;
}

.subscribe-modal-card .subscribe-field {
  justify-items: center;
  width: 100%;
}

.subscribe-modal-card .subscribe-field input {
  width: min(100%, 360px);
  text-align: center;
}

.subscribe-modal-card .subscribe-field input::placeholder {
  text-align: center;
}

.legal-modal-card {
  width: min(820px, calc(100vw - 32px));
}

.legal-modal-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  color: var(--ink);
  line-height: 1.55;
}

.legal-modal-content h3 {
  margin: 18px 0 6px;
  color: #111111;
}

.legal-modal-content p,
.legal-modal-content li {
  color: var(--muted);
  font-weight: 700;
}

.legal-modal-content ul {
  padding-left: 1.2rem;
}

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

.modal-header h2 {
  margin: 0;
  color: #111111;
}

.modal-help {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.blank-modal-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: min(58vh, 640px);
  padding: 0 6px 8px 0;
}

.blank-modal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-left: 7px solid var(--red);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.blank-modal-row.ignored {
  border-left-color: var(--muted);
  background: #f8fafc;
  opacity: 0.82;
}

.blank-modal-row strong,
.blank-modal-row span {
  display: block;
}

.blank-modal-row strong {
  overflow-wrap: anywhere;
  color: #111111;
}

.blank-modal-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.blank-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(17, 17, 17, 0.34);
}

.feedback-drawer.open {
  display: flex;
}

.drawer-card {
  width: min(460px, 100vw);
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  box-shadow: -18px 0 36px rgba(17, 17, 17, 0.2);
  animation: drawer-in 150ms ease-out;
}

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

.drawer-header h2 {
  margin: 0;
  color: #111111;
}

.drawer-assignment {
  border-radius: 8px;
  background: #e8f7ed;
  padding: 12px;
  color: #111111;
  font-weight: 900;
}

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

.comment-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.comment-card strong {
  color: #111111;
}

.comment-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.comment-card time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 80;
  transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 32px));
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
  font-weight: 800;
}

@keyframes drawer-in {
  from {
    transform: translateX(18px);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .site-header,
  .search-band,
  .profile-strip,
  .timeline-head {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .status-grid {
    width: 100%;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

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

  .status-badge,
  .row-actions {
    justify-self: stretch;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .blank-modal-row {
    grid-template-columns: 1fr;
  }

  .blank-modal-actions {
    justify-content: flex-start;
  }

  .toolbar-row > button,
  .topic-filter,
  .directory-controls,
  .directory-select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .workspace {
    width: min(100% - 20px, 1320px);
  }

  .site-header {
    width: min(100% - 20px, 1320px);
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .student-panel {
    padding: 12px;
  }

  .search-box input {
    min-height: 64px;
  }
}
