:root {
  color-scheme: light;
  --ink: #292a2d;
  --muted: #62666e;
  --line: #e5e5e7;
  --paper: #fff;
  --sidebar: #f8f8f8;
  --accent: #4a6454;
  font-family: var(--hub-font-body);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
select,
summary {
  cursor: pointer;
}
button,
.button {
  border: 1px solid #dcdcdf;
  background: white;
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #f4f4f5;
  border-color: #bfc0c3;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button.primary,
.login .primary {
  background: #303133;
  color: white;
  border-color: #303133;
}
button.primary:hover {
  background: #48494c;
}
button.link {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  text-decoration: underline;
}
button.quiet {
  border: 0;
  background: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #668573;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 218px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  padding: 17px 16px;
  height: 57px;
  border-bottom: 1px solid var(--line);
}
.brand strong {
  font-size: 14px;
  font-weight: 650;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #ead479;
  color: #3e3520;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}
.brand-chevron {
  margin-left: auto;
  color: var(--muted);
}
.workspace-name {
  padding: 16px 16px 22px;
  font-size: 11px;
  color: var(--muted);
}
#workspace-nav {
  padding: 0 9px 20px;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: none;
  text-align: left;
  padding: 8px 10px;
  margin: 2px 0;
  font-size: 12px;
  min-height: 34px;
}
.nav-item > span:first-child {
  width: 18px;
  color: var(--muted);
  text-align: center;
  flex-shrink: 0;
}
.nav-item small {
  margin-left: auto;
}
.nav-item:hover {
  background: #efeff0;
}
.nav-item.selected {
  background: #e9e9eb;
  color: #202124;
}
.nav-label {
  margin: 23px 10px 8px;
  color: var(--muted);
  font-size: 11px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #dedee0;
  border-radius: 5px;
  background: #f7f7f7;
  font-size: 11px;
  font-weight: 600;
  color: #62656a;
  flex-shrink: 0;
}
.nav-item .avatar {
  width: 18px;
  height: 18px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
}
.sidebar-bottom > a {
  display: block;
  text-decoration: none;
  margin: 5px 0 13px;
}
.sidebar-bottom > a span {
  margin-left: 7px;
}
#logout {
  border: 0;
  padding: 0;
  background: none;
  font-size: 11px;
  color: var(--muted);
}
#pilot {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 11px;
}
#pilot summary {
  font-size: 11px;
  font-weight: 400;
  margin: 0;
}
#pilot p {
  font-size: 10px;
}
#pilot a {
  display: inline-block;
  margin: 3px 9px 3px 0;
}
#pilot details[open] > summary {
  margin-bottom: 8px;
}
.app-content {
  margin-left: 218px;
  min-height: 100dvh;
}
.topbar {
  height: 57px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 27px;
  font-size: 11px;
}
#breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}
#breadcrumb strong {
  color: #505257;
  font-weight: 500;
}
#breadcrumb a {
  color: inherit;
  text-decoration: none;
}
#breadcrumb a:hover,
#breadcrumb a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crumb-divider {
  color: #c7c8ca;
}
.account {
  font-size: 11px;
  color: #62666e;
}
main {
  padding: 28px 28px 36px;
  min-width: 0;
}
h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.85px;
  line-height: 1.25;
  margin: 0 0 7px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.25px;
  margin: 0 0 10px;
}
h3 {
  font-size: 13px;
  margin: 0 0 12px;
  font-weight: 500;
}
p {
  line-height: 1.6;
  margin: 8px 0 14px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 11px;
}
.page-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.page-top > .primary {
  margin-top: 2px;
}
.teacher-summary,
.project-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.teacher-summary span,
.project-subtitle span {
  padding: 0 5px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.actions a {
  font-size: 12px;
}
.board-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line);
}
.view-toggle {
  display: flex;
  gap: 3px;
  align-items: center;
}
.view-toggle button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 10px;
}
.view-toggle [aria-pressed="true"] {
  background: #f1f1f2;
  color: var(--ink);
}
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(245px, 1fr));
  gap: 20px;
  margin: 20px 0 25px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: start;
}
.master-board {
  grid-template-columns: repeat(4, minmax(255px, 1fr));
  min-height: calc(100dvh - 290px);
  margin-top: 18px;
}
.board-column {
  min-width: 0;
}
.board-column > h2,
.board-column > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 22px;
  margin: 0 0 15px;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 500;
}
.board-column h2 > small,
.board-column h3 > small {
  color: #62666e;
  font-weight: 400;
}
.column-label {
  background: #eeeef0;
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 11px;
}
.column-label.doing {
  background: #e9edf1;
  color: #536571;
}
.column-label.review {
  background: #f3ebd8;
  color: #765e2a;
}
.column-label.done {
  background: #e4eee6;
  color: #4a6653;
}
.empty-column {
  font-size: 11px;
  color: #62666e;
  border: 1px dashed #e5e5e7;
  border-radius: 4px;
  padding: 16px 12px;
  margin: 0;
}
.project-card {
  border: 1px solid #d9dadd;
  border-radius: 5px;
  background: white;
  margin: 0 0 12px;
  overflow: hidden;
  box-shadow: none;
}
.project-card:hover {
  border-color: #adafb4;
  box-shadow: none;
}
.project-card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
}
.project-card-heading > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.project-card-heading strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.project-card-heading small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
}
.card-arrow {
  color: #62666e;
  font-size: 13px;
}
.project-card-body {
  padding: 12px;
}
.card-milestone {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #62656a;
  line-height: 1.5;
}
.card-milestone > span:first-child {
  font-size: 14px;
  color: #62666e;
}
.card-milestone small {
  display: block;
  font-size: 10px;
  color: #62666e;
}
.card-task-list {
  list-style: none;
  padding: 10px 0 0;
  margin: 10px 0 0;
  border-top: 1px solid #f0f0f1;
}
.card-task-list li {
  display: flex;
  gap: 7px;
  font-size: 11px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.card-task-list li:last-child {
  margin-bottom: 0;
}
.card-task-list small {
  display: block;
  font-size: 10px;
  color: #62666e;
  margin-top: 2px;
}
.task-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border: 1px solid #c8c9cc;
  border-radius: 50%;
  margin-top: 5px;
}
.task-dot.doing {
  background: #a6b7c5;
  border-color: #a6b7c5;
}
.task-dot.done {
  background: #89a18e;
  border-color: #89a18e;
}
.project-card-footer {
  border-top: 1px solid var(--line);
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #62666e;
  gap: 8px;
}
.tag {
  display: inline-block;
  background: #f0f0f1;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 6px;
  border-radius: 3px;
  white-space: nowrap;
  color: #62666e;
}
.tag.help {
  background: #f7ebdb;
  color: #795932;
}
.tag.accepted {
  background: #e8f0e9;
  color: #4a6653;
}
.plan-prompt {
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 5px;
  background: #fafafa;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 22px;
  font-size: 11px;
}
.plan-prompt p {
  margin: 0;
}
.plan-prompt strong {
  font-weight: 500;
}
.plan-prompt .muted {
  margin-left: 4px;
}
.plan-prompt button {
  font-size: 11px;
  white-space: nowrap;
}
.workspace {
  margin: 0;
}
.milestone-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 20px;
}
.milestone-picker select {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  max-width: 75%;
}
.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.workspace-header > div:first-child {
  max-width: 680px;
}
.workspace-header h2 {
  font-size: 18px;
  margin: 5px 0 8px;
}
.eyebrow {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 5px;
}
.expectation {
  font-size: 12px;
  color: #62666e;
  margin: 0;
  max-width: 650px;
}
.workspace-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workspace-tools > button {
  white-space: nowrap;
}
.workspace > .actions {
  margin-top: 18px;
}
.task {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.task input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #5f7968;
  margin: 2px 0;
  flex-shrink: 0;
  cursor: pointer;
}
.task-name {
  border: 0;
  background: none !important;
  padding: 0;
  text-align: left;
  line-height: 1.5;
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.task-name:hover {
  text-decoration: underline;
}
.task.done .task-name {
  color: #62666e;
}
.task-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #62666e;
  margin: 6px 0;
}
.task select {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 6px;
  background: white;
  max-width: 95px;
  color: #73757a;
}
.board .task {
  display: block;
  border: 1px solid #d9dadd;
  border-radius: 5px;
  margin: 0 0 12px;
  padding: 12px;
  background: white;
}
.board .task > input {
  float: left;
  margin: 2px 8px 0 0;
}
.board .task-name {
  max-width: calc(100% - 25px);
}
.board .task select {
  margin-top: 12px;
}
.task-steps {
  padding: 10px 0 0;
  margin: 10px 0 0;
  list-style: none;
  border-top: 1px solid #efeff0;
}
.task-steps li + li {
  margin-top: 9px;
}
.task-steps label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 400;
  color: #65686e;
  cursor: pointer;
}
.task-steps input:checked + span {
  color: #62666e;
  text-decoration: line-through;
}
.task-steps input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin-top: 3px;
}
.task-list {
  max-width: 1100px;
}
.task-list .task-name {
  font-size: 13px;
}
.task-list .task-steps label {
  font-size: 12px;
}
.task-list .task-steps {
  border: 0;
  padding-top: 3px;
}
.blog {
  max-width: 900px;
}
.blog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin: 15px 0;
}
.blog-heading h2 {
  margin-bottom: 5px;
}
.section-details {
  padding-top: 12px;
  max-width: 1100px;
}
.section-details > summary {
  display: none;
}
.scope-copy {
  white-space: pre-wrap;
  color: var(--muted);
  max-width: 780px;
}
.milestone-row {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  align-items: start;
}
.milestone-row p {
  font-size: 12px;
  color: var(--muted);
}
summary {
  font-size: 12px;
  font-weight: 500;
  list-style-position: inside;
}
.milestone-tasks {
  margin-top: 12px;
}
details[open] > summary {
  margin-bottom: 14px;
}
.note {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.workspace > .review {
  padding: 16px 0;
  margin-top: 15px;
  border-top: 1px solid var(--line);
}
.workspace > .review p {
  font-size: 12px;
}
.project-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #62666e;
}
.project-footer .link {
  font-size: 10px;
}
.teacher-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.teacher-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 12px;
}
.teacher-table td {
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 12px;
}
.teacher-table .student-link {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  text-decoration: none;
}
.teacher-table ul {
  padding-left: 15px;
  margin: 0;
}
.teacher-task-progress {
  display: block;
  margin: 2px 0 8px;
  font-size: 10px;
}
.login {
  max-width: 600px;
  margin: 70px auto;
}
.login .primary {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
}
.empty {
  padding: 20px;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 20px;
  left: calc(50% + 109px);
  transform: translateX(-50%);
  max-width: 80vw;
  margin: 0;
  padding: 9px 16px;
  background: #303133;
  color: white;
  border-radius: 6px;
  font-size: 12px;
  z-index: 9;
  box-shadow: none;
}
#notice:empty {
  display: none;
}
dialog {
  background: white;
  color: var(--ink);
  border: 1px solid #d9dadd;
  border-radius: 9px;
  width: min(680px, calc(100vw - 28px));
  max-height: 90dvh;
  padding: 26px;
  box-shadow: none;
}
dialog::backdrop {
  background: #20212445;
}
dialog h2 {
  font-size: 20px;
  margin: 0 0 24px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 15px 0 7px;
}
input:not([type="checkbox"]),
textarea,
select.field {
  width: 100%;
  padding: 9px 10px;
  background: white;
  border: 1px solid #d2d3d6;
  border-radius: 4px;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
label.inline {
  display: flex;
  gap: 9px;
  align-items: start;
  line-height: 1.6;
}
label.inline input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: -26px;
  background: white;
  padding-bottom: 12px;
}
#form-error,
.danger {
  color: #a14f48;
}
#form-error {
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.plan-version {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.plan-version ol {
  padding-left: 20px;
}
.plan-version li {
  margin: 12px 0;
}
.plan-version .scope {
  white-space: pre-wrap;
}
.history-entry {
  font-size: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.history-entry pre {
  font: inherit;
  white-space: pre-wrap;
  max-height: 350px;
  overflow: auto;
  background: #f6f6f7;
  padding: 12px;
}
.no-wrap {
  white-space: nowrap;
}
@media (min-width: 1550px) {
  .master-board {
    grid-template-columns: repeat(4, minmax(280px, 1fr));
  }
  main {
    padding: 32px 36px;
  }
  .topbar {
    padding: 0 36px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 185px;
  }
  .app-content {
    margin-left: 185px;
  }
  .brand {
    padding: 17px 12px;
  }
  .brand strong {
    font-size: 13px;
  }
  .workspace-name {
    font-size: 10px;
    padding: 14px 12px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .account {
    display: none;
  }
  main {
    padding: 24px 20px;
  }
  .workspace-header {
    display: block;
  }
  .workspace-tools {
    justify-content: flex-start;
    margin-top: 16px;
  }
  #notice {
    left: calc(50% + 92px);
  }
}
@media (max-width: 600px) {
  .sidebar {
    position: relative;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    height: 48px;
  }
  .workspace-name,
  .sidebar-bottom > a {
    display: none;
  }
  #workspace-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 5px 10px;
    gap: 3px;
  }
  #workspace-nav .nav-label {
    width: 100%;
    margin: 8px 5px 2px;
  }
  .nav-item {
    width: auto;
    font-size: 11px;
    min-height: 30px;
    padding: 6px 8px;
  }
  .sidebar-bottom {
    padding: 0 14px;
    border: 0;
  }
  #pilot {
    margin: 0;
    border: 0;
    padding: 7px 0;
  }
  .app-content {
    margin-left: 0;
  }
  .topbar {
    height: 40px;
    padding: 0 16px;
    font-size: 10px;
  }
  main {
    padding: 22px 16px;
  }
  .page-top {
    gap: 10px;
  }
  h1 {
    font-size: 23px;
  }
  .page-top > .primary {
    font-size: 11px;
    white-space: nowrap;
  }
  .board-toolbar {
    gap: 8px;
  }
  .board-toolbar .actions {
    gap: 5px;
  }
  .board-toolbar button,
  .board-toolbar .button {
    font-size: 10px;
    padding: 6px 7px;
  }
  .board,
  .master-board {
    grid-template-columns: repeat(3, 265px);
    gap: 14px;
  }
  .master-board {
    grid-template-columns: repeat(4, 265px);
    min-height: 350px;
  }
  .plan-prompt {
    align-items: start;
  }
  .plan-prompt .muted {
    display: none;
  }
  .milestone-row {
    grid-template-columns: 75px 1fr;
    gap: 12px;
  }
  .milestone-row > .tag {
    grid-column: 2;
  }
  .teacher-table {
    min-width: 700px;
  }
  main[data-panel="master"] {
    overflow-x: auto;
  }
  .project-footer {
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  #notice {
    left: 50%;
    max-width: 90vw;
  }
  .blog-heading {
    flex-wrap: wrap;
  }
  .task {
    grid-template-columns: 18px minmax(0, 1fr);
  }
  .task > select {
    grid-column: 2;
  }
  .topbar #breadcrumb {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a,
  .project-card {
    transition:
      background 0.14s ease,
      border-color 0.14s ease;
  }
  .board,
  .blog,
  .section-details {
    animation: reveal 0.17s ease-out;
  }
  dialog[open] {
    animation: reveal 0.16s ease-out;
  }
  @keyframes reveal {
    from {
      opacity: 0.5;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.project-card {
  cursor: pointer;
}

/* Stress-test fixes: full rosters, legible small text, and bounded board scrolling. */
.student-nav {
  margin-top: 18px;
}
.student-nav > summary {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}
.student-nav .nav-item > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
#workspace-nav {
  min-height: 0;
}
.master-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.master-controls input[type="search"] {
  width: min(300px, 100%);
  font-size: 12px;
  padding: 8px 10px;
}
.master-controls select {
  border: 1px solid var(--line);
  background: white;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
}
.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.result-count {
  color: var(--muted);
  font-size: 11px;
}
.master-board {
  max-height: calc(100dvh - 290px);
  min-height: 300px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.master-board .board-column > h2 {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  padding: 5px 0;
  margin-top: 0;
}
.master-board:focus-visible,
.workspace .board:focus-visible {
  outline: 2px solid #668573;
  outline-offset: 3px;
}
.project-card-heading small,
.card-task-list li,
.card-milestone {
  font-size: 12px;
}
.card-task-list small,
.card-milestone small,
.project-card-footer,
.task-meta {
  font-size: 11px;
}
.task-name {
  font-size: 13px;
}
.task-steps label {
  font-size: 12px;
  min-height: 24px;
  align-items: flex-start;
}
.task-steps label span,
.card-task-list li > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.task-steps input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.task select {
  min-height: 28px;
  font-size: 11px;
}
.draft-recovery {
  background: #f5f7f5;
  border: 1px solid #d5dfd7;
  border-radius: 5px;
  padding: 14px;
  margin-bottom: 20px;
}
.draft-recovery h3 {
  font-size: 14px;
}
.draft-recovery dt {
  font-weight: 600;
  margin-top: 12px;
}
.draft-recovery dd {
  margin: 4px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#form-error button {
  margin: 4px 0;
}
#breadcrumb {
  min-width: 0;
}
#breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  #workspace-nav {
    max-height: 240px;
    overflow: auto;
  }
  .student-nav {
    width: 100%;
    margin: 0;
  }
  .student-nav .nav-item {
    width: 100%;
  }
  .master-board {
    max-height: 65dvh;
    min-height: 300px;
  }
  .master-controls input[type="search"] {
    width: 100%;
  }
  .master-controls select {
    flex: 1;
  }
  .topbar #breadcrumb > :first-child {
    display: none;
  }
  .topbar .crumb-divider {
    display: none;
  }
}

.master-board.filtered {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(255px, 320px);
  justify-content: start;
}

/* One tile per student; status, schedule, and weekly post stay distinct. */
.master-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 18px 0 28px;
}
.stage-todo {
  --status: #858c93;
  --status-border: #d6dadd;
}
.stage-doing {
  --status: #648caf;
  --status-border: #bccedc;
}
.stage-review {
  --status: #b39960;
  --status-border: #dcd0b2;
}
.stage-done {
  --status: #709983;
  --status-border: #bfd4c6;
}
.stage-help {
  --status: #be7c76;
  --status-border: #dec0bc;
}
.master-grid .project-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--status-border);
  border-left: 3px solid var(--status);
  border-radius: 7px;
  box-shadow: none;
  min-width: 0;
}
.master-grid .project-card:hover {
  border-color: var(--status);
  box-shadow: none;
}
.master-grid .project-card:focus-within {
  outline: 2px solid #526e5e;
  outline-offset: 3px;
}
.master-grid .project-card-heading {
  align-items: flex-start;
  border-bottom: 0;
  padding: 17px 15px 5px;
  background: transparent;
}
.master-grid .project-card-heading .avatar {
  width: 29px;
  height: 29px;
  background: #f2f3f2;
  color: #666d68;
  border: 1px solid #eaedea;
}
.master-grid .project-card-heading strong {
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.master-grid .project-card-heading small {
  min-height: 34px;
  line-height: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.master-grid .card-arrow {
  margin-top: 2px;
  opacity: 0.5;
}
.master-grid .project-card:hover .card-arrow {
  opacity: 1;
}
.master-grid .project-card-body {
  padding: 11px 15px 8px;
  flex: 1;
}
.card-next-label {
  margin: 0 0 4px;
  color: #747a77;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.card-next-task {
  font-size: 12px;
  line-height: 18px;
  min-height: 36px;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-signals {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: none;
  padding: 0;
  border: 0;
}
.card-signal {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 18px;
  --signal: #7c8580;
}
.card-signal > span:not(.sr-only) {
  flex-shrink: 0;
}
.schedule.track,
.schedule.complete,
.blog-signal.posted {
  --signal: #5f9675;
}
.schedule.behind,
.blog-signal.missing {
  --signal: #b56c64;
}
.schedule.due,
.blog-signal.due,
.blog-signal.link {
  --signal: #b09147;
}
.schedule.review,
.blog-signal.working {
  --signal: #648caf;
}
.battery {
  display: inline-flex;
  position: relative;
  width: 28px;
  height: 13px;
  padding: 2px;
  gap: 2px;
  border: 1px solid var(--signal);
  border-radius: 3px;
  margin-right: 2px;
}
.battery::after {
  content: "";
  width: 2px;
  height: 5px;
  position: absolute;
  right: -3px;
  top: 3px;
  background: var(--signal);
  border-radius: 0 1px 1px 0;
}
.battery i {
  flex: 1;
  border-radius: 1px;
  background: #e1e6e2;
}
.battery i.charged {
  background: var(--signal);
}
.blog-dot {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--signal);
  border-radius: 50%;
  margin: 0 0 0 3px;
}
.blog-signal.posted .blog-dot,
.blog-signal.missing .blog-dot,
.blog-signal.working .blog-dot,
.blog-signal.link .blog-dot,
.blog-signal.due .blog-dot {
  background: var(--signal);
  box-shadow: none;
}
.status-swatch {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--status);
}
.indicator-key {
  position: relative;
  margin-left: 0;
}
.indicator-key > summary {
  list-style: none;
  margin: 0;
  border: 0;
  font-size: 18px;
  line-height: 22px;
  padding: 4px 7px;
  color: #78817b;
}
.indicator-explanation {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, 75vw);
  z-index: 3;
  background: white;
  border: 1px solid #dce2dd;
  border-radius: 6px;
  box-shadow: none;
  padding: 16px 18px;
  color: var(--ink);
}
.indicator-explanation p {
  font-size: 12px;
  margin: 0 0 10px;
}
.indicator-explanation p:last-child {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.teacher-table .card-signals {
  display: flex;
  flex-wrap: wrap;
  background: none;
  padding: 0 0 10px;
  border: 0;
  gap: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  .master-grid .card-arrow {
    transition: opacity 0.14s ease;
  }
  .battery i {
    transition: background-color 0.14s ease;
  }
}
@media print {
  .master-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-card {
    break-inside: avoid;
  }
  .indicator-key {
    display: none;
  }
}

/* Quiet card faces: meanings are available on hover and in the key. */
.card-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  border-top: 1px solid #eef0ee;
  background: #fbfcfb;
  font-size: 11px;
  color: #69726c;
}
.card-due {
  margin-right: auto;
}
.card-count {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.card-count > span {
  color: #7c8580;
}
.indicator-key > summary::-webkit-details-marker {
  display: none;
}
.key-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 16px;
}
.key-stages > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
/* Student schedule access before school accounts are connected. */
#schedule-access, #teacher-access, #student-name-login { display: grid; gap: 12px; max-width: 440px; margin: 28px 0; }
#schedule-code, #teacher-password, #student-first-name { font: inherit; padding: 12px; border: 1px solid #d7dadf; border-radius: 6px; }
.teacher-entry { margin: 24px 30px; }
.schedule-students { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.schedule-student { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 8px; padding: 20px; border: 1px solid #dce3df; border-radius: 8px; background: white; }
.schedule-student strong { font-size: 18px; grid-column: 1; }
.schedule-student span:first-of-type { grid-column: 1; font-size: 13px; font-weight: normal; color: #555; }
.schedule-student span:last-of-type { grid-column: 2; grid-row: 1; }
.schedule-student:hover { background: #f6f8f6; border-color: #91aa97; }
@media (max-width: 1100px) { .schedule-students { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.schedule-view { max-width: 1320px; margin: 0 auto; padding: 30px; }
.schedule-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.schedule-heading h1 { margin-top: 6px; }
.schedule-scope { max-width: 900px; white-space: pre-line; line-height: 1.6; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.schedule-milestone { border: 1px solid #dce3df; border-top: 3px solid #b7cabb; border-radius: 8px; padding: 22px; }
.schedule-date { display: flex; justify-content: space-between; color: #53665a; font-size: 13px; }
.schedule-milestone h2 { font-size: 19px; line-height: 1.35; margin: 16px 0 10px; }
.schedule-milestone h3 { font-size: 14px; margin-top: 22px; }
.schedule-milestone p, .schedule-milestone li { line-height: 1.6; }
.schedule-milestone li + li { margin-top: 8px; }
.schedule-milestone ol { padding-left: 22px; }
.schedule-blog { border-top: 1px solid #e0e3e6; padding-top: 20px; }
.schedule-blog li { margin: 8px 0; }
@media (max-width: 1050px) { .schedule-grid { grid-template-columns: 1fr; } }
