/* Integrated product shell.
   This is the only final cascade layer for navigation, page rhythm and breakpoints.
   Legacy feature styles remain below it only for feature-specific modal content. */
:root {
  --product-bg: #f4f6f8;
  --product-surface: #ffffff;
  --product-surface-soft: #f8fafb;
  --product-ink: #17212b;
  --product-muted: #657383;
  --product-line: #e2e7ec;
  --product-primary: #285a78;
  --product-primary-soft: #e9f1f5;
  --product-positive: #397565;
  --product-warning: #a7652a;
  --product-danger: #b24f48;
  --product-ai: #6452a3;
  --product-radius: 14px;
  --product-shadow: 0 7px 22px rgba(31, 45, 56, 0.06);
}

html,
body,
body:not(.display-body) {
  overflow-x: hidden;
  color: var(--product-ink);
  background: var(--product-bg);
  background-image: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.teacher-access-boundary {
  max-width: 320px;
  margin: 12px auto 0;
  color: var(--product-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  gap: 14px;
  padding: 14px 24px 42px 226px;
}

.topbar {
  display: grid !important;
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 18px;
  padding: 8px 14px;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.topbar::after {
  display: none;
}

.brand-block {
  display: none !important;
}

.global-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.class-picker,
.term-picker {
  display: flex !important;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--product-line);
  border-radius: 10px;
  background: var(--product-surface-soft);
}

.class-picker > span,
.term-picker > span {
  color: var(--product-muted);
  font-size: 11px;
}

.class-tabs {
  gap: 3px;
  padding: 2px;
  border-radius: 8px;
  background: #edf1f4;
}

.class-tab {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
}

.class-tab.active {
  color: #fff;
  background: var(--product-primary);
  box-shadow: none;
}

.term-picker select {
  width: auto;
  max-width: 220px;
  min-height: 30px;
  padding: 0 22px 0 4px;
  border: 0;
  color: var(--product-ink);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  justify-self: end;
}

.mobile-settings-button {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: var(--product-primary);
  background: var(--product-primary-soft);
  cursor: pointer;
}

.cloud-button {
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--product-surface-soft) !important;
  box-shadow: none !important;
}

.main-tabs {
  position: fixed;
  z-index: 120;
  top: 14px;
  bottom: 14px;
  left: 14px;
  display: flex !important;
  width: 196px;
  margin: 0;
  padding: 16px 10px 10px;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  border: 1px solid #213d50;
  border-radius: 16px;
  background: #1f3d52;
  box-shadow: 0 10px 30px rgba(20, 42, 56, 0.16);
  backdrop-filter: none;
}

.side-brand {
  display: grid !important;
  min-height: 64px;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 0 8px 14px;
  color: #fff;
}

.side-brand > span {
  display: grid;
  width: 42px;
  height: 42px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 11px;
  color: #1f3d52;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.side-brand strong {
  align-self: end;
  font-size: 15px;
}

.side-brand small {
  align-self: start;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.side-section-label {
  display: block !important;
  margin: 8px 10px 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.main-tabs .main-tab {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.main-tabs .main-tab::before {
  display: none !important;
}

.main-tabs .main-tab > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 900;
}

.main-tabs .main-tab:hover,
.main-tabs .main-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transform: none;
}

.main-tabs .main-tab.active > span {
  color: #1f3d52;
  background: #fff;
}

.side-utility {
  display: grid;
  margin-top: auto;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.side-utility-button {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.side-utility-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.side-utility-button span {
  width: 20px;
  text-align: center;
}

#noticeButton {
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  box-shadow: none;
}

#noticeButton:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

#homeView,
#recordsView,
.workspace-page {
  order: 3;
  min-width: 0;
  margin: 0;
  animation: none;
}

.home-view {
  display: grid;
  gap: 12px;
}

.workspace-panel,
.wall-panel,
.task-queue-section,
.score-overview-card,
.score-dashboard-card,
.score-filter-card,
.score-report-summary,
.profile-switcher-bar,
.portrait-overview,
.portrait-timeline-panel,
.portrait-followup-panel,
.profile-share-builder {
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--product-surface);
  box-shadow: var(--product-shadow);
}

.workspace-panel {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compact-workspace-heading {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--product-surface);
}

.compact-workspace-heading p,
.compact-workspace-heading span {
  margin: 0;
  color: var(--product-muted);
  font-size: 11px;
}

.compact-workspace-heading h2 {
  margin: 2px 0;
  color: var(--product-ink);
  font-family: inherit;
  font-size: 22px;
  line-height: 1.2;
}

.workspace-primary-actions {
  display: flex;
  gap: 8px;
}

.button {
  min-height: 40px;
  border-radius: 9px;
  box-shadow: none !important;
}

.button-primary {
  border-color: var(--product-primary) !important;
  background: var(--product-primary) !important;
  box-shadow: none !important;
}

.button-primary:hover {
  background: #1f4963 !important;
}

.compact-status-strip,
.task-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  background: var(--product-surface);
}

.compact-status-strip > *,
.task-summary-row > * {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border: 0;
  border-right: 1px solid var(--product-line);
  color: var(--product-ink);
  background: transparent;
  text-align: left;
}

.compact-status-strip > *:last-child,
.task-summary-row > *:last-child {
  border-right: 0;
}

.compact-status-strip small,
.task-summary-row small {
  color: var(--product-muted);
  font-size: 11px;
}

.compact-status-strip strong,
.task-summary-row strong {
  font-size: 20px;
}

.unified-student-wall {
  padding: 0;
  border-radius: var(--product-radius);
  box-shadow: var(--product-shadow);
}

.unified-student-wall .section-heading {
  min-height: 58px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--product-line);
}

.unified-student-wall .section-heading h2 {
  margin: 0;
  font-size: 17px;
}

.unified-student-wall .section-heading p {
  margin: 2px 0 0;
  color: var(--product-muted);
  font-size: 11px;
}

.student-grid {
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 8px;
  padding: 12px;
}

.roster-student-card,
.student-card {
  min-height: 108px;
  padding: 10px 6px;
  border: 1px solid var(--product-line) !important;
  border-radius: 11px !important;
  background: var(--product-surface) !important;
  box-shadow: none !important;
}

.roster-student-card:hover {
  border-color: #aac0ce !important;
  background: var(--product-primary-soft) !important;
  transform: none;
}

.roster-student-card.has-pending,
.student-card.has-pending {
  border-color: #e2c5a7 !important;
  background: #fffaf5 !important;
}

.student-avatar {
  width: 46px;
  height: 46px;
  box-shadow: none;
}

.student-name {
  font-size: 13px;
}

.mini-badge {
  border-radius: 999px;
  font-size: 9px;
}

.legacy-home-data,
.legacy-record-counts {
  display: none !important;
}

.task-center {
  display: grid;
  gap: 12px;
}

.task-summary-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-queue-section {
  overflow: hidden;
}

.task-queue-section > header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-bottom: 1px solid var(--product-line);
}

.task-queue-section header small {
  color: var(--product-muted);
  font-size: 10px;
}

.task-queue-section header h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.task-queue-section header > strong {
  color: var(--product-primary);
  font-size: 20px;
}

.task-record-list {
  display: grid;
}

.task-record-row {
  display: grid;
  min-height: 76px;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--product-line);
}

.task-record-row:last-child {
  border-bottom: 0;
}

.task-record-row.is-overdue {
  background: #fff8f7;
}

.task-record-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--product-warning);
  background: #f8eee4;
  font-size: 10px;
  font-weight: 900;
}

.task-record-row.is-ai .task-record-mark {
  color: var(--product-ai);
  background: #eeeafb;
}

.task-record-row > div {
  min-width: 0;
}

.task-record-row strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-record-row p {
  overflow: hidden;
  margin: 4px 0;
  color: var(--product-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-record-row small {
  color: #84909c;
  font-size: 10px;
}

.status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-pending {
  color: #915822;
  background: #f8eee4;
}

.status-pill.is-review {
  color: #51418e;
  background: #eeeafb;
}

.product-empty {
  padding: 34px 20px;
  color: var(--product-muted);
  text-align: center;
}

.product-empty p {
  margin: 6px 0 0;
  font-size: 12px;
}

.score-native-page {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.score-native-page > *,
.score-dashboard-card,
.score-table-wrap {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.score-page-tabs {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--product-line);
  border-radius: 11px;
  background: var(--product-surface);
  scrollbar-width: thin;
}

.score-page-tabs button {
  min-width: max-content;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--product-muted);
  background: transparent;
}

.score-page-tabs button.active {
  color: #fff;
  background: var(--product-primary);
}

.score-filter-card,
.score-overview-card,
.score-dashboard-card,
.score-report-summary {
  border-radius: var(--product-radius);
  box-shadow: none;
}

.score-dashboard-grid,
.score-import-export-grid {
  gap: 12px;
}

.score-table-wrap {
  overflow-x: auto;
}

.score-table {
  min-width: 620px;
}

.ai-family-draft-editor {
  display: grid;
  gap: 7px;
}

.ai-family-draft-editor > span {
  color: var(--product-text);
  font-size: 13px;
  font-weight: 800;
}

.ai-family-draft-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--product-line);
  border-radius: 10px;
  padding: 12px;
  color: var(--product-text);
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.65;
}

.ai-family-draft-editor textarea:focus {
  border-color: var(--product-primary);
  outline: 3px solid rgba(37, 99, 235, 0.12);
}

.ai-family-draft-editor small {
  color: var(--product-muted);
  font-size: 11px;
}

.improve-record-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.7fr);
  gap: 14px;
}

.improve-record-groups {
  display: grid;
  gap: 12px;
}

.improve-record-groups > section {
  padding: 12px;
  border: 1px solid var(--product-line);
  border-radius: 11px;
}

.improve-record-groups h3 {
  margin: 0 0 9px;
  font-size: 13px;
}

.improve-record-groups .choice-card {
  min-height: 70px;
  border-radius: 10px;
}

.improve-save-preview {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 180px;
  padding: 14px;
  border: 1px solid #cbd8df;
  border-radius: 11px;
  background: var(--product-primary-soft);
}

.improve-save-preview > div {
  display: grid;
  gap: 3px;
}

.improve-save-preview small,
.improve-save-preview p {
  color: var(--product-muted);
  font-size: 11px;
}

.settings-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.settings-chip-list > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--product-primary-soft);
  font-size: 11px;
}

.settings-chip-list button {
  border: 0;
  color: var(--product-danger);
  background: transparent;
  cursor: pointer;
}

.modal,
.modal.modal-wide,
.modal.modal-small {
  border-radius: var(--product-radius);
  box-shadow: 0 20px 60px rgba(24, 36, 46, 0.18);
}

.modal.modal-drawer {
  border-radius: 16px 0 0 16px;
}

@media (max-width: 1199px) {
  .app-shell {
    padding: 12px 16px 34px;
  }

  .main-tabs {
    position: sticky;
    top: 8px;
    bottom: auto;
    left: auto;
    display: flex !important;
    width: 100%;
    overflow-x: auto;
    padding: 5px;
    flex-direction: row;
    border-color: var(--product-line);
    border-radius: 12px;
    background: var(--product-surface);
    box-shadow: var(--product-shadow);
  }

  .side-brand,
  .side-section-label,
  .side-utility {
    display: none !important;
  }

  .main-tabs .main-tab {
    min-width: 120px;
    justify-content: center;
    color: var(--product-muted);
  }

  .main-tabs .main-tab > span {
    color: var(--product-muted);
    background: #edf1f4;
  }

  .main-tabs .main-tab.active {
    color: #fff;
    background: var(--product-primary);
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
    padding: 6px 8px 82px;
  }

  .topbar {
    position: sticky;
    z-index: 90;
    top: 0;
    min-height: 50px;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px;
    padding: 5px 7px;
    border-radius: 10px;
  }

  .global-context {
    min-width: 0;
    gap: 5px;
  }

  .class-picker {
    min-width: 0;
    padding: 3px;
  }

  .class-picker > span,
  .term-picker > span {
    display: none;
  }

  .class-tab {
    min-height: 28px;
    padding: 0 7px;
    font-size: 10px;
  }

  .term-picker {
    min-width: 0;
    padding: 3px 4px;
  }

  .term-picker select {
    max-width: 126px;
    min-height: 28px;
    padding-right: 14px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .cloud-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px !important;
    padding: 0 !important;
  }

  .cloud-button #cloudLabel {
    display: none;
  }

  .mobile-settings-button {
    display: grid;
    place-items: center;
  }

  .app-shell.is-home-view .topbar .header-actions,
  .topbar .header-actions {
    display: flex !important;
    align-items: center;
    gap: 4px;
  }

  .main-tabs {
    position: fixed !important;
    z-index: 140;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: none !important;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid var(--product-line);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
  }

  .main-tabs .main-tab {
    display: grid;
    min-width: 0;
    min-height: 52px;
    grid-template-rows: 22px auto;
    justify-items: center;
    gap: 2px;
    padding: 3px 2px;
    color: var(--product-muted);
    font-size: 10px;
  }

  .main-tabs .main-tab > span {
    width: 22px;
    height: 22px;
  }

  .main-tabs .main-tab.active {
    color: var(--product-primary);
    background: var(--product-primary-soft);
  }

  .main-tabs .main-tab.active > span {
    color: #fff;
    background: var(--product-primary);
  }

  #homeView,
  #recordsView,
  .workspace-page {
    margin-top: 7px;
  }

  .compact-workspace-heading {
    min-height: 58px;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
  }

  .compact-workspace-heading h2 {
    font-size: 18px;
  }

  .compact-workspace-heading span {
    display: block;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workspace-primary-actions {
    align-self: center;
    align-items: center;
    gap: 4px;
  }

  .workspace-primary-actions .button {
    height: 36px;
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }

  .compact-status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compact-status-strip > *,
  .task-summary-row > * {
    min-height: 44px;
    display: grid;
    justify-content: center;
    gap: 2px;
    padding: 5px 3px;
    text-align: center;
  }

  .compact-status-strip strong,
  .task-summary-row strong {
    font-size: 17px;
  }

  .unified-student-wall .section-heading {
    min-height: 48px;
    padding: 7px 9px;
  }

  .student-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
  }

  .roster-student-card,
  .student-card {
    min-height: 88px;
    padding: 7px 2px;
  }

  .student-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .student-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mini-badge {
    padding: 2px 4px;
    font-size: 8px;
  }

  .task-record-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .task-record-row .status-pill {
    display: none;
  }

  .task-record-row .button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }

  .score-page-tabs {
    position: sticky;
    z-index: 60;
    top: 57px;
  }

  .score-page-tabs button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  .score-filter-card,
  .score-student-detail-card > header,
  .profile-switcher-bar {
    grid-template-columns: 1fr !important;
  }

  .score-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-dashboard-grid,
  .score-import-export-grid,
.profile-evidence-grid {
    grid-template-columns: 1fr;
  }

  .improve-record-flow {
    grid-template-columns: 1fr;
  }

  .improve-save-preview {
    position: static;
    min-height: 0;
  }

  .improve-record-groups .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal.modal-drawer {
    width: 100%;
    border-radius: 0;
  }

  .modal-actions {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .side-utility {
    display: none !important;
  }

  .mobile-settings-trigger {
    display: block;
  }
}

/* Final product pass: faster lookup, visible daily priorities and class-level decisions. */
.teacher-access-username,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.daily-capture-hero { grid-template-columns: 1fr; }

.student-wall-search input,
.followup-search input {
  width: 176px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(86, 111, 153, 0.22);
  border-radius: 10px;
  color: var(--product-ink);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
  font-size: 11px;
  outline: none;
}

.student-wall-search input:focus,
.followup-search input:focus {
  border-color: var(--product-primary-bright);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.student-search-empty {
  margin: 0 12px 12px;
  padding: 28px 16px;
  border: 1px dashed rgba(86, 111, 153, 0.28);
  border-radius: 12px;
  color: var(--product-muted);
  text-align: center;
}

.student-search-empty strong,
.student-search-empty p { display: block; margin: 0; }
.student-search-empty strong { color: var(--product-ink); font-size: 13px; }
.student-search-empty p { margin-top: 5px; font-size: 11px; }

.home-action-panel .home-action-list { display: grid; }
.home-action-panel .home-action-row { background: transparent; }
.home-action-panel .home-action-row:hover { background: var(--product-primary-soft); }
.home-priority-empty {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--product-muted);
}
.home-priority-empty > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--product-positive);
  background: var(--product-positive-soft);
  font-weight: 900;
}
.home-priority-empty strong,
.home-priority-empty p { display: block; margin: 0; }
.home-priority-empty strong { color: var(--product-ink); font-size: 12px; }
.home-priority-empty p { margin-top: 3px; font-size: 10px; line-height: 1.5; }

.followup-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--product-line);
  background: #fbfcff;
}
.followup-filter-chips { display: flex; min-width: 0; align-items: center; gap: 7px; flex-wrap: wrap; }
.followup-filter-chips button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(86, 111, 153, 0.18);
  border-radius: 9px;
  color: var(--product-muted);
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.followup-filter-chips button b { margin-left: 4px; color: inherit; }
.followup-filter-chips button:hover,
.followup-filter-chips button.active {
  border-color: var(--product-primary-bright);
  color: #fff;
  background: linear-gradient(135deg, var(--product-primary), var(--product-primary-bright));
}

.growth-class-snapshot {
  overflow: hidden;
  border: 1px solid rgba(86, 111, 153, 0.18);
  border-radius: var(--product-radius);
  background: var(--product-surface);
  box-shadow: var(--product-shadow);
}
.growth-class-snapshot > header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--product-line);
}
.growth-class-snapshot > header small,
.growth-class-snapshot > header h3,
.growth-class-snapshot > header span { display: block; margin: 0; }
.growth-class-snapshot > header small { color: var(--product-primary); font-size: 9px; font-weight: 900; }
.growth-class-snapshot > header h3 { margin-top: 2px; color: var(--product-ink); font-size: 16px; }
.growth-class-snapshot > header span { color: var(--product-muted); font-size: 10px; }
.growth-class-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.growth-class-metrics > * {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--product-line);
  color: var(--product-text);
  background: transparent;
  font: inherit;
  text-align: left;
}
.growth-class-metrics > *:last-child { border-right: 0; }
.growth-class-metrics button { cursor: pointer; }
.growth-class-metrics button:hover { background: var(--product-primary-soft); }
.growth-class-metrics small,
.growth-class-metrics strong,
.growth-class-metrics em { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.growth-class-metrics small,
.growth-class-metrics em { color: var(--product-muted); font-size: 9px; font-style: normal; }
.growth-class-metrics strong { color: var(--product-ink); font-size: 19px; }
.growth-class-snapshot > p {
  margin: 0;
  padding: 10px 15px;
  border-top: 1px solid var(--product-line);
  color: var(--product-text);
  background: linear-gradient(90deg, var(--product-primary-soft), #fff);
  font-size: 10px;
  line-height: 1.5;
}
.growth-class-snapshot > p b { margin-right: 8px; color: var(--product-primary-deep); }

.praise-record-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(44, 168, 121, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--product-positive-soft), #fff);
}
.praise-record-mark > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  font-size: 22px;
  box-shadow: 0 7px 16px rgba(44, 168, 121, 0.12);
}
.praise-record-mark small,
.praise-record-mark strong { display: block; }
.praise-record-mark small { color: var(--product-positive); font-size: 10px; font-weight: 900; }
.praise-record-mark strong { margin-top: 3px; color: var(--product-ink); font-size: 18px; }

@media (max-width: 767px) {
  .student-wall-search,
  .student-wall-search input,
  .followup-search,
  .followup-search input { width: 100%; }
  .followup-filterbar { align-items: stretch; flex-direction: column; }
  .followup-filter-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .followup-filter-chips button { width: 100%; }
  .growth-class-snapshot > header { align-items: flex-start; flex-direction: column; }
  .growth-class-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .growth-class-metrics > *:nth-child(2) { border-right: 0; }
  .growth-class-metrics > *:nth-child(-n + 2) { border-bottom: 1px solid var(--product-line); }
}

.profile-status-stack {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.profile-ai-actions-card {
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 16px;
  background: var(--product-surface);
  box-shadow: var(--product-shadow);
}

.profile-ai-actions-card > header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--product-line);
}

.profile-ai-actions-card header small {
  color: var(--product-ai);
  font-weight: 800;
}

.profile-ai-actions-card header h3 {
  margin: 3px 0 0;
  color: var(--product-ink);
  font-size: 18px;
}

.profile-ai-actions-card header > span,
.profile-ai-actions-card header > button {
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--product-ai);
  background: #f0edf9;
  font-size: 11px;
  font-weight: 800;
}

.profile-ai-actions-card header > button {
  cursor: pointer;
}

.profile-ai-actions-summary {
  margin: 0;
  padding: 14px 17px;
  color: #556273;
  background: #faf9fd;
  font-size: 13px;
  line-height: 1.65;
}

.profile-ai-actions-list {
  display: grid;
}

.profile-ai-actions-list article {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 17px;
  border-top: 1px solid var(--product-line);
}

.profile-ai-actions-list article > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: var(--product-ai);
  background: #f0edf9;
  font-size: 11px;
  font-weight: 900;
}

.profile-ai-actions-list article > div {
  min-width: 0;
}

.profile-ai-actions-list strong {
  color: var(--product-ink);
  font-size: 13px;
}

.profile-ai-actions-list p {
  margin: 5px 0;
  color: #4d5c6b;
  font-size: 12px;
  line-height: 1.6;
}

.profile-ai-actions-list small,
.profile-ai-actions-list em {
  display: block;
  color: var(--product-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
}

.profile-ai-actions-list em {
  margin-top: 3px;
  color: var(--product-positive);
}

.profile-ai-actions-card > footer {
  display: grid;
  gap: 4px;
  padding: 11px 17px;
  border-top: 1px solid var(--product-line);
  color: #4d6574;
  background: var(--product-surface-soft);
  font-size: 11px;
}

.profile-ai-actions-card > footer small {
  color: var(--product-muted);
}

.profile-ai-actions-loading,
.profile-ai-actions-empty,
.profile-ai-actions-error {
  display: flex;
  min-height: 116px;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.profile-ai-actions-loading i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--product-ai);
  box-shadow: 0 0 0 7px #f0edf9;
  animation: aiActionPulse 1.2s ease-in-out infinite;
}

.profile-ai-actions-loading strong,
.profile-ai-actions-empty strong,
.profile-ai-actions-error strong {
  color: var(--product-ink);
}

.profile-ai-actions-loading p,
.profile-ai-actions-empty p,
.profile-ai-actions-error p {
  margin: 4px 0 0;
  color: var(--product-muted);
  font-size: 12px;
  line-height: 1.55;
}

.profile-ai-actions-empty,
.profile-ai-actions-error {
  display: grid;
  align-content: center;
}

.profile-ai-actions-error button {
  width: fit-content;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--product-ai);
  background: #f0edf9;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* Teacher record -> AI split -> shared student-wall record flow */
.roster-student-card,
.student-card {
  min-width: 0;
  min-height: 126px;
}

.student-recent-tags {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 3px;
}

.student-recent-tags em {
  display: block;
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 6px;
  color: #6e4a25;
  background: #f8eee4;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.student-recent-tags em:hover {
  filter: brightness(.96);
  text-decoration: underline;
}

.student-recent-tags em.is-praise {
  color: #2f695b;
  background: #e9f4ef;
}

.task-candidate-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.task-student-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  background: var(--product-surface);
}

.task-student-card.is-overdue {
  border-color: #e7b8b1;
  background: #fffafa;
}

.task-student-card > header {
  display: grid;
  min-height: 58px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--product-line);
}

.task-student-card > header > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--product-primary);
  font-size: 12px;
  font-weight: 900;
}

.task-student-card > header div {
  min-width: 0;
}

.task-student-card > header strong,
.task-student-card > header small {
  display: block;
}

.task-student-card > header strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-student-card > header small {
  margin-top: 2px;
  color: var(--product-muted);
  font-size: 10px;
}

.task-student-card > header em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #915822;
  background: #f8eee4;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.task-student-items {
  display: grid;
}

.task-student-item {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid var(--product-line);
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.task-student-item:last-child {
  border-bottom: 0;
}

.task-student-item:hover,
.task-student-item:focus-visible {
  background: var(--product-primary-soft);
}

.task-student-item > div {
  min-width: 0;
}

.task-student-item strong,
.task-student-item p {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-student-item strong {
  font-size: 12px;
}

.task-student-item p,
.task-student-item small {
  color: var(--product-muted);
  font-size: 10px;
}

.task-student-item small {
  max-width: 110px;
  text-align: right;
}

.ai-topic-field > small {
  color: var(--product-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.ai-topic-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ai-topic-suggestions button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d8d0ee;
  border-radius: 999px;
  color: var(--product-ai);
  background: #f6f3fc;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ai-topic-suggestions button.selected,
.ai-topic-suggestions button:hover {
  border-color: var(--product-ai);
  color: #fff;
  background: var(--product-ai);
}

.operation-log-panel > summary.recent-evaluations-heading {
  margin: 0;
  border-bottom: 0;
}

@keyframes aiActionPulse {
  50% { opacity: 0.45; transform: scale(0.82); }
}

@media (max-width: 760px) {
  .student-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
  }

  .roster-student-card,
  .student-card {
    display: flex;
    min-width: 0;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 3px;
    overflow: hidden;
    text-align: center;
  }

  .roster-student-card .student-avatar,
  .student-card .student-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-size: 13px;
  }

  .roster-student-card .student-name,
  .student-card .student-name {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 10px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .roster-student-card .student-badges,
  .student-card .student-badges {
    position: absolute;
    top: 5px;
    right: 4px;
    margin: 0;
  }

  .roster-student-card::after,
  .student-card::after {
    display: none !important;
    content: none !important;
  }

  .student-recent-tags {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .student-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .roster-student-card,
  .student-card {
    min-height: 112px;
  }

  .student-recent-tags em {
    padding: 2px 3px;
    font-size: 8px;
  }

  .task-student-grid {
    grid-template-columns: 1fr;
    padding: 7px;
  }

  .task-candidate-actions {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }

  .task-student-item {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .task-student-item small {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }

  .compact-workspace-heading p {
    display: none;
  }

  .workspace-primary-actions #undoButton {
    width: 36px;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .workspace-primary-actions #undoButton::before {
    color: var(--product-ink);
    content: "↶";
    font-size: 17px;
  }
}

/* Online-shell integration: V2 record lifecycle, original deployed visual language. */
.home-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 12px;
  min-width: 0;
}

.home-evidence-grid .home-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--product-surface);
  box-shadow: var(--product-shadow);
}

.home-evidence-grid .home-panel-heading {
  min-height: 62px;
  padding: 10px 15px;
}

.home-evidence-grid .home-panel-heading h3 {
  margin-top: 2px;
  color: var(--product-ink);
  font-family: inherit;
  font-size: 17px;
}

.home-evidence-grid .home-panel-heading small {
  color: var(--product-muted);
  font-size: 10px;
}

.home-evidence-grid .home-empty {
  min-height: 150px;
}

.task-history-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--product-line);
  color: var(--product-text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.task-history-row:last-child { border-bottom: 0; }
.task-history-row:hover { background: var(--product-primary-soft); }
.task-history-row > span,
.score-followup-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--product-primary);
  font-size: 11px;
  font-weight: 900;
}
.task-history-row > div { min-width: 0; }
.task-history-row strong,
.task-history-row p { display: block; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.task-history-row strong { font-size: 12px; }
.task-history-row p { margin-top: 3px; color: var(--product-muted); font-size: 10px; }
.task-history-row em { color: var(--product-primary); font-size: 10px; font-style: normal; font-weight: 800; }

.followup-history > div { display: grid; gap: 7px; margin-top: 8px; }
.followup-history p { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--product-primary-soft); }
.followup-history p strong { font-size: 11px; }
.followup-history p span { color: var(--product-muted); font-size: 10px; text-align: right; }
.followup-history p em { grid-column: 1 / -1; color: var(--product-text); font-size: 11px; font-style: normal; }

.score-followup-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--product-surface);
}

.score-followup-metrics > * {
  appearance: none;
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--product-line);
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}
.score-followup-metrics button { cursor: pointer; }
.score-followup-metrics button:hover,
.score-followup-metrics button:focus-visible { background: var(--product-primary-soft); outline: none; }
.score-followup-metrics > *:last-child { border-right: 0; }
.score-followup-metrics span,
.score-followup-metrics small { color: var(--product-muted); font-size: 10px; }
.score-followup-metrics strong { color: var(--product-ink); font-size: 20px; }

.score-followup-card {
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--product-surface);
}
.score-followup-card > header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--product-line);
}
.score-followup-card > header small { color: var(--product-muted); font-size: 10px; }
.score-followup-card > header h3 { margin: 2px 0 0; font-size: 17px; }
.score-followup-card > header > span { color: var(--product-primary); font-size: 13px; font-weight: 900; }
.score-suggestion-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--product-line);
  background: #fbfcfd;
  font-size: 11px;
}
.score-suggestion-list,
.score-followup-list { display: grid; }
.score-suggestion-row,
.score-followup-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--product-line);
  color: var(--product-text);
  background: transparent;
  text-align: left;
}
.score-suggestion-row { grid-template-columns: auto minmax(0, 1fr) auto; cursor: pointer; }
.score-followup-row { width: 100%; grid-template-columns: 36px minmax(0, 1fr) auto auto; cursor: pointer; }
.score-suggestion-row:last-child,
.score-followup-row:last-child { border-bottom: 0; }
.score-followup-row:hover { background: var(--product-primary-soft); }
.score-suggestion-row > span,
.score-followup-row > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.score-suggestion-row strong,
.score-suggestion-row small,
.score-followup-row strong,
.score-followup-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-suggestion-row strong,
.score-followup-row strong { font-size: 12px; }
.score-suggestion-row small,
.score-followup-row small { color: var(--product-muted); font-size: 10px; }
.score-suggestion-row em,
.score-followup-row em { color: #a95e2a; font-size: 11px; font-style: normal; font-weight: 900; }
.score-followup-row b { padding: 4px 8px; border-radius: 999px; color: var(--product-primary); background: var(--product-primary-soft); font-size: 10px; white-space: nowrap; }
.score-followup-row.is-completed { opacity: .72; }
.product-empty.compact { min-height: 140px; }

@media (max-width: 767px) {
  .home-evidence-grid { grid-template-columns: 1fr; }
  .home-recent-list { grid-template-columns: 1fr; }
  .score-followup-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-followup-metrics > *:nth-child(2) { border-right: 0; }
  .score-followup-metrics > *:nth-child(-n + 2) { border-bottom: 1px solid var(--product-line); }
  .score-followup-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .score-followup-row em { display: none; }
  .score-suggestion-row { grid-template-columns: auto minmax(0, 1fr); }
  .score-suggestion-row > em { grid-column: 2; }
}

/* V2 page logic inside the retained online visual shell */
.daily-page-heading {
  display: flex;
  min-height: 112px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background:
    radial-gradient(circle at 16% 0%, rgba(45, 92, 120, .11), transparent 34%),
    var(--product-surface);
  box-shadow: var(--product-shadow);
}
.daily-page-heading p,
.daily-page-heading span {
  margin: 0;
  color: var(--product-muted);
  font-size: 12px;
}
.daily-page-heading p {
  color: var(--product-primary);
  font-weight: 900;
  letter-spacing: .04em;
}
.daily-page-heading h2 {
  margin: 5px 0 4px;
  color: var(--product-ink);
  font-family: inherit;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.daily-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.daily-metric-grid > * {
  appearance: none;
  display: grid;
  min-width: 0;
  min-height: 118px;
  align-content: center;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  color: var(--product-text);
  background:
    radial-gradient(circle at 100% 100%, rgba(45, 92, 120, .08) 0 28px, transparent 29px),
    var(--product-surface);
  box-shadow: var(--product-shadow);
  font: inherit;
  text-align: left;
}
.daily-metric-grid button { cursor: pointer; }
.daily-metric-grid button:hover,
.daily-metric-grid button:focus-visible { border-color: rgba(53, 111, 200, .35); background-color: var(--product-primary-soft); outline: none; }
.daily-metric-grid small,
.daily-metric-grid em {
  overflow: hidden;
  color: var(--product-muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-metric-grid strong {
  color: var(--product-ink);
  font-size: 30px;
  line-height: 1;
}

.daily-capture-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, .8fr);
  gap: 12px;
}
.daily-capture-main,
.daily-capture-flow,
.daily-panel {
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--product-surface);
  box-shadow: var(--product-shadow);
}
.daily-capture-main { padding: 20px; }
.daily-capture-main > header,
.daily-capture-flow > header,
.daily-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.daily-capture-main > header h2,
.daily-capture-flow > header h2,
.daily-panel > header h2 {
  margin: 0;
  color: var(--product-ink);
  font-size: 18px;
}
.daily-capture-main > header p {
  margin: 5px 0 0;
  color: var(--product-muted);
  font-size: 12px;
}
.daily-capture-main > header > span,
.daily-capture-flow > header > span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--product-primary);
  background: var(--product-primary-soft);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.daily-capture-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.daily-capture-buttons button {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #b8cbd6;
  border-radius: 13px;
  color: var(--product-text);
  background: var(--product-primary-soft);
  text-align: left;
  cursor: pointer;
}
.daily-capture-buttons button:last-child {
  border-color: var(--product-line);
  background: #f8fafb;
}
.daily-capture-buttons b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--product-primary);
  font-size: 16px;
}
.daily-capture-buttons span,
.daily-capture-buttons strong,
.daily-capture-buttons small { display: block; min-width: 0; }
.daily-capture-buttons strong { font-size: 14px; }
.daily-capture-buttons small { margin-top: 4px; color: var(--product-muted); font-size: 10px; line-height: 1.4; }

.daily-capture-flow { padding: 17px; }
.daily-capture-flow > div {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.daily-capture-flow article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.daily-capture-flow article > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: var(--product-primary);
  background: var(--product-primary-soft);
  font-size: 11px;
  font-weight: 900;
}
.daily-capture-flow strong,
.daily-capture-flow small { display: block; }
.daily-capture-flow strong { font-size: 12px; }
.daily-capture-flow small { margin-top: 2px; color: var(--product-muted); font-size: 10px; }

.daily-panel > header {
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--product-line);
}
.daily-panel > header small,
.daily-panel > header > span {
  color: var(--product-muted);
  font-size: 10px;
}
.daily-panel > header > span {
  color: var(--product-primary);
  font-weight: 900;
}
.daily-panel-body { min-width: 0; padding: 12px; }
.daily-panel-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--product-primary);
  font-size: 10px;
  font-weight: 900;
}
.home-candidate-panel > #homeCandidateList { display: grid; }
.home-recent-panel .daily-panel-body { padding: 0; }
.home-recent-panel .home-recent-list { padding: 0; }
.task-queue-section.daily-panel > header h2 { margin: 2px 0 0; font-size: 17px; }
.task-queue-section.daily-panel .task-student-grid { padding: 0; }

.daily-priority-list { display: grid; gap: 8px; }
.daily-priority-list button {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--product-line);
  border-radius: 11px;
  color: var(--product-text);
  background: var(--product-surface);
  text-align: left;
  cursor: pointer;
}
.daily-priority-list button > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--product-primary);
  font-weight: 900;
}
.daily-priority-list strong,
.daily-priority-list p,
.daily-priority-list small { display: block; margin: 0; }
.daily-priority-list p { margin-top: 3px; font-size: 11px; }
.daily-priority-list small { margin-top: 3px; color: var(--product-muted); font-size: 10px; }
.daily-priority-list em { color: var(--product-primary); font-size: 10px; font-style: normal; font-weight: 900; }
.daily-ai-boundary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--product-primary);
  background: var(--product-primary-soft);
  font-size: 11px;
  line-height: 1.55;
}

.growth-profile-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 12px;
}
.growth-student-directory {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--product-surface);
  box-shadow: var(--product-shadow);
}
.growth-student-directory > label {
  display: grid;
  gap: 7px;
  padding: 13px;
  border-bottom: 1px solid var(--product-line);
  color: var(--product-muted);
  font-size: 10px;
  font-weight: 900;
}
.growth-student-directory input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--product-line);
  border-radius: 9px;
  color: var(--product-text);
  background: #fbfcfd;
}
#profileDirectory {
  display: grid;
  max-height: calc(100vh - 270px);
  overflow: auto;
  padding: 7px;
}
.growth-directory-item {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  color: var(--product-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.growth-directory-item:hover,
.growth-directory-item.active { background: var(--product-primary-soft); }
.growth-directory-item > span,
.growth-profile-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #5b8def, #426fd2);
  font-weight: 900;
}
.growth-directory-item > span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 11px;
}
.growth-directory-item strong,
.growth-directory-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.growth-directory-item strong { font-size: 12px; }
.growth-directory-item small { margin-top: 2px; color: var(--product-muted); font-size: 9px; }
.growth-profile-main { display: grid; min-width: 0; gap: 12px; }
.profile-term-scope {
  position: relative;
  z-index: 12;
  min-width: min(340px, 42vw);
}
.profile-term-scope > summary {
  display: grid;
  min-height: 54px;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(38, 56, 71, .08);
  list-style: none;
  cursor: pointer;
}
.profile-term-scope > summary::-webkit-details-marker { display: none; }
.profile-term-scope > summary span { font-size: 9px; font-weight: 900; }
.profile-term-scope > summary strong {
  overflow: hidden;
  color: var(--product-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-term-scope-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(390px, 88vw);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--product-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(38, 56, 71, .18);
}
.profile-term-scope-panel > p { color: var(--product-muted); font-size: 10px; line-height: 1.5; }
.profile-term-options { display: grid; gap: 7px; }
.profile-term-options label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f7f9fa;
  cursor: pointer;
}
.profile-term-options input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--product-primary); }
.profile-term-options span { overflow: hidden; color: var(--product-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-term-actions { display: flex; justify-content: flex-end; gap: 8px; }
.profile-term-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--product-line);
  border-radius: 9px;
  color: var(--product-primary);
  background: var(--product-primary-soft);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.growth-record-item.is-historical { cursor: default; }
.growth-record-item.is-historical:hover { border-color: var(--product-line); background: #fbfcfd; }
.growth-profile-hero,
.growth-insight-card {
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--product-surface);
  box-shadow: var(--product-shadow);
}
.growth-profile-hero { overflow: hidden; }
.growth-profile-hero > header {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--product-line);
}
.growth-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 20px;
}
.growth-profile-hero h2 { margin: 0; font-size: 24px; }
.growth-profile-hero p { margin: 4px 0 0; color: var(--product-muted); font-size: 11px; }
.growth-profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.growth-profile-metrics > * {
  appearance: none;
  min-width: 0;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--product-line);
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}
.growth-profile-metrics > *:last-child { border-right: 0; }
.growth-profile-metrics button { cursor: pointer; }
.growth-profile-metrics button:hover,
.growth-profile-metrics button:focus-visible { background: var(--product-primary-soft); outline: none; }
.growth-profile-metrics small,
.growth-profile-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.growth-profile-metrics small { color: var(--product-muted); font-size: 9px; }
.growth-profile-metrics strong { margin-top: 4px; font-size: 16px; }
.growth-insight-card { padding: 15px 17px; }
.growth-insight-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.growth-insight-card > header strong { font-size: 14px; }
.growth-insight-card > header span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--product-primary);
  background: var(--product-primary-soft);
  font-size: 9px;
  font-weight: 900;
}
.growth-insight-card > p { margin: 9px 0 0; color: var(--product-text); font-size: 12px; line-height: 1.65; }
.growth-record-list { display: grid; gap: 8px; }
.growth-record-item {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--product-line);
  border-radius: 10px;
  color: var(--product-text);
  background: #fbfcfd;
  text-align: left;
  cursor: pointer;
}
.growth-record-item:hover { border-color: #aac0ce; background: var(--product-primary-soft); }
.growth-record-item > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #8a5224;
  background: #f8e9d9;
  font-size: 10px;
  font-weight: 900;
}
.growth-record-item.is-positive > span { color: #2f695b; background: #e9f4ef; }
.growth-record-item strong,
.growth-record-item p,
.growth-record-item small { display: block; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.growth-record-item strong { font-size: 12px; }
.growth-record-item p { margin-top: 3px; font-size: 11px; }
.growth-record-item small { margin-top: 3px; color: var(--product-muted); font-size: 9px; }
.growth-record-item > em {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--product-primary);
  background: var(--product-primary-soft);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.growth-score-panel .score-table-wrap { max-height: none; }

@media (max-width: 1050px) {
  .daily-capture-hero { grid-template-columns: 1fr; }
  .growth-profile-layout { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .daily-page-heading {
    min-height: auto;
    align-items: stretch;
    padding: 15px;
  }
  .profile-term-scope { width: 100%; min-width: 0; }
  .profile-term-scope-panel { position: static; width: 100%; margin-top: 8px; }
  .daily-page-heading h2 { font-size: 28px; }
  .daily-page-heading .workspace-primary-actions { flex-wrap: wrap; justify-content: flex-start; }
  .daily-page-heading .workspace-primary-actions .button { min-height: 36px; padding: 7px 10px; font-size: 10px; }
  .daily-page-heading #undoButton:disabled { display: none; }
  .daily-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-metric-grid > * { min-height: 100px; padding: 13px; }
  .daily-metric-grid strong { font-size: 25px; }
  .daily-capture-main { padding: 15px; }
  .daily-capture-main > header { align-items: flex-start; }
  .daily-capture-buttons { grid-template-columns: 1fr; }
  .daily-capture-flow { display: none; }
  .daily-panel > header { min-height: 58px; }
  .growth-profile-layout { grid-template-columns: 1fr; }
  .growth-student-directory { position: static; }
  #profileDirectory {
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 1fr);
    max-height: none;
    overflow-x: auto;
  }
  .growth-profile-hero > header {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 14px;
  }
  .growth-profile-avatar { width: 50px; height: 50px; border-radius: 14px; font-size: 16px; }
  .growth-profile-hero > header .button { grid-column: 1 / -1; }
  .growth-profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .growth-profile-metrics > *:nth-child(2) { border-right: 0; }
  .growth-profile-metrics > *:nth-child(-n + 2) { border-bottom: 1px solid var(--product-line); }
  .growth-record-item { grid-template-columns: 32px minmax(0, 1fr); }
  .growth-record-item > em { grid-column: 2; justify-self: start; }
}

/* V2 action-level parity: pasted-name batch scoring, compact AI review and student drawer. */
.v2-step {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #dfe5ef;
  border-radius: 16px;
  background: #f7f9fc;
}
.v2-step > header { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.v2-step > header b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #4f46b8;
  font-size: 12px;
}
.v2-step.complete > header b { background: #16856a; }
.v2-step legend { padding: 0 6px; color: #4c576c; font-size: 12px; font-weight: 850; }
.v2-field { display: grid; min-width: 0; gap: 7px; margin-bottom: 14px; }
.v2-field > span { color: #4c576c; font-size: 12px; font-weight: 850; }
.v2-field small { color: #7b8497; font-size: 11px; line-height: 1.55; }
.v2-field input,
.v2-field textarea,
.v2-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dfe5ef;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: #252b3a;
  font: inherit;
}
.v2-field textarea { min-height: 116px; resize: vertical; line-height: 1.65; }
.v2-field input:focus,
.v2-field textarea:focus,
.v2-field select:focus {
  border-color: #6c63d8;
  box-shadow: 0 0 0 3px rgba(108, 99, 216, .13);
}
.v2-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.v2-choice {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #dfe5ef;
  border-radius: 11px;
  background: #fff;
  color: #343b4d;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.v2-choice.selected { border-color: #6c63d8; color: #5149b5; background: #f0efff; }
.v2-choice.negative.selected { border-color: #c95d68; color: #aa3f4c; background: #fff0f1; }
.v2-choice input { width: 16px; height: 16px; }
.v2-muted, .v2-match-empty { color: #7b8497; font-size: 11px; }
.v2-name-match-box { display: grid; min-height: 42px; gap: 8px; margin-top: 8px; }
.v2-match-group {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 9px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #fff;
}
.v2-match-group > strong { padding-top: 6px; color: #7b8497; font-size: 10px; }
.v2-match-group > div { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; }
.v2-name-chip {
  padding: 6px 9px;
  border-radius: 9px;
  color: #16745f;
  background: #eaf8f3;
  font-size: 11px;
  font-weight: 800;
}
.v2-name-chip.suggested { color: #9b6819; background: #fff6df; }
.v2-name-chip.unmatched { color: #aa3f4c; background: #fff0f1; }
.v2-followup-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 11px;
  border-radius: 11px;
  background: #fff6df;
  font-size: 12px;
}
.v2-batch-summary,
.v2-ai-boundary {
  padding: 12px 14px;
  border-radius: 11px;
  color: #5f587e;
  background: #f0efff;
  font-size: 11px;
  line-height: 1.65;
}
.v2-batch-summary { margin-top: 12px; }
.v2-composer-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.v2-composer-toolbar select { width: auto; }
.v2-ai-composer .ai-service-state { margin-top: 12px; }
.v2-candidate-card { display: grid; min-width: 0; gap: 12px; }
.v2-candidate-card .v2-step { margin: 0; }
.v2-candidate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.v2-candidate-fields .v2-field,
.v2-candidate-card > .v2-field { margin: 0; }
.v2-candidate-matched { display: grid; gap: 8px; margin-top: 6px; }
.v2-candidate-matched > small { color: #16856a; font-size: 10px; font-weight: 800; }
.v2-candidate-warning { margin: 8px 0; color: #aa3f4c; font-size: 12px; }
.v2-candidate-adjust {
  margin-top: 11px;
  padding: 11px;
  border: 1px dashed #d1cdef;
  border-radius: 12px;
  background: rgba(255,255,255,.75);
}
.v2-candidate-adjust summary,
.v2-candidate-source summary { color: #5149b5; font-size: 11px; font-weight: 850; cursor: pointer; }
.v2-candidate-adjust .v2-field { margin: 11px 0; }
.v2-candidate-choices { max-height: 220px; overflow: auto; }
.v2-candidate-source { padding: 10px 12px; border-radius: 11px; background: #f7f9fc; }
.v2-candidate-source p { margin: 9px 0 0; color: #596277; font-size: 12px; line-height: 1.65; }
.v2-candidate-actions { display: flex; justify-content: space-between; gap: 9px; }
.metric-student-wall { display: grid; gap: 16px; }
.metric-student-wall > header,
.metric-unresolved > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.metric-student-wall > header p { margin: 0; color: var(--product-muted); font-size: 12px; }
.metric-student-wall > header span,
.metric-unresolved > header span { color: var(--product-primary); font-size: 12px; font-weight: 850; }
.metric-student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 11px;
}
.metric-student-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 154px;
  place-items: center;
  gap: 7px;
  padding: 16px 10px 12px;
  border: 1px solid rgba(86, 111, 153, .2);
  border-radius: 16px;
  color: var(--product-text);
  background: linear-gradient(145deg, #fff, #f7faff);
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(53, 111, 200, .08);
}
.metric-student-card:hover { border-color: rgba(59, 130, 246, .48); transform: translateY(-2px); }
.metric-student-card > em {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #a35b12;
  background: #fff1dc;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.metric-student-card > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(50, 72, 115, .18);
}
.metric-student-card > strong { overflow: hidden; max-width: 100%; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.metric-student-card > small { color: var(--product-muted); font-size: 10px; }
.metric-unresolved { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--product-line); }
.metric-unresolved > button,
.metric-detail-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  color: var(--product-text);
  background: #fff;
  text-align: left;
}
.metric-unresolved > button,
button.metric-detail-row { cursor: pointer; }
.metric-unresolved > button:hover,
button.metric-detail-row:hover { border-color: rgba(59, 130, 246, .42); background: #f8fbff; }
.metric-unresolved > button > span,
.metric-detail-row > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--product-primary);
  background: var(--product-primary-soft);
  font-size: 11px;
  font-weight: 900;
}
.metric-detail-row.is-ai > span { color: var(--product-ai); background: var(--product-ai-soft); }
.metric-unresolved strong,
.metric-detail-row strong,
.metric-detail-row p,
.metric-detail-row small { display: block; margin: 0; }
.metric-detail-row p { margin-top: 4px; color: var(--product-text); font-size: 12px; line-height: 1.55; }
.metric-detail-row small { margin-top: 4px; color: var(--product-muted); font-size: 10px; }
.metric-unresolved em,
.metric-detail-row > em { color: var(--product-primary); font-size: 10px; font-style: normal; font-weight: 850; }
.metric-student-detail { display: grid; gap: 12px; }
.metric-wall-back {
  justify-self: start;
  padding: 6px 0;
  color: var(--product-primary);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}
.metric-detail-list { display: grid; gap: 9px; }
.growth-repeat-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.growth-repeat-summary span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--product-primary-deep);
  background: var(--product-primary-soft);
}
.growth-repeat-summary small { color: var(--product-muted); }
.metric-info-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--product-muted);
  background: var(--product-surface-soft);
  font-size: 11px;
  line-height: 1.6;
}
.score-metric-explanation { display: grid; gap: 12px; }
.score-metric-explanation > strong { color: var(--product-primary-deep); font-size: 20px; }
.score-metric-explanation > p { margin: 0; color: var(--product-text); font-size: 12px; line-height: 1.7; }
.score-metric-explanation > .button { justify-self: start; }
.v2-pending-ai-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid #dcd8ff;
  background: #f0efff;
}
.v2-pending-ai-banner strong,
.v2-pending-ai-banner small { display: block; }
.v2-pending-ai-banner small { margin-top: 3px; color: #6f6991; font-size: 11px; }
.v2-candidate-list { display: grid; }
.v2-student-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e8f0;
}
.v2-student-records { margin-top: 16px; }
.v2-student-records .record-list { display: grid; gap: 10px; }

@media (max-width: 700px) {
  .v2-candidate-fields,
  .v2-match-group { grid-template-columns: 1fr; }
  .v2-composer-toolbar,
  .v2-pending-ai-banner,
  .v2-student-actions { align-items: stretch; flex-direction: column; }
  .v2-composer-toolbar select { width: 100%; }
  .v2-candidate-actions {
    position: sticky;
    z-index: 2;
    bottom: 0;
    margin: 0 -16px -18px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #dfe5ef;
    background: #fff;
    box-shadow: 0 -8px 18px rgba(40, 63, 105, 0.08);
  }
  .v2-candidate-actions .button,
  .v2-student-actions .button { min-height: 44px; }
  .metric-student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-student-wall > header { align-items: flex-start; flex-direction: column; }
}

/* 2026-07-28 visual unification: share the Seewo display palette while
   keeping the teacher workspace calm enough for everyday use. */
:root {
  --product-bg: #f1f5ff;
  --product-surface: #ffffff;
  --product-surface-soft: #f7f9ff;
  --product-ink: #17223b;
  --product-text: #24324a;
  --product-muted: #687a96;
  --product-line: rgba(86, 111, 153, 0.19);
  --product-primary: #356fc8;
  --product-primary-deep: #1e3a8a;
  --product-primary-bright: #3b82f6;
  --product-primary-soft: #eaf2ff;
  --product-positive: #21805e;
  --product-positive-soft: #e7f7ef;
  --product-warning: #c86d18;
  --product-warning-soft: #fff1df;
  --product-danger: #d94b60;
  --product-danger-soft: #fff0f2;
  --product-ai: #6d5bd0;
  --product-ai-soft: #f1efff;
  --product-radius: 16px;
  --product-shadow: 0 10px 30px rgba(40, 63, 105, 0.08);
  --product-shadow-hover: 0 14px 34px rgba(40, 63, 105, 0.13);
}

html,
body,
body:not(.display-body) {
  background-color: var(--product-bg);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(59, 130, 246, 0.11), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(109, 91, 208, 0.08), transparent 25rem),
    linear-gradient(180deg, #f8fbff 0, var(--product-bg) 34rem);
  background-attachment: fixed;
}

.topbar {
  border-color: rgba(86, 111, 153, 0.2);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 28px rgba(40, 63, 105, 0.07);
  backdrop-filter: blur(18px);
}

.class-picker,
.term-picker,
.cloud-button {
  border-color: rgba(86, 111, 153, 0.18) !important;
  background: linear-gradient(180deg, #fbfdff, #f1f5fc) !important;
}

.class-tabs { background: #e8eef8; }

.class-tab.active,
.button-primary,
.score-page-tabs button.active {
  background: linear-gradient(135deg, var(--product-primary-deep), var(--product-primary-bright)) !important;
  box-shadow: 0 7px 16px rgba(53, 111, 200, 0.22) !important;
}

.button-primary:hover {
  background: linear-gradient(135deg, #172f73, #2f74dd) !important;
}

.main-tabs {
  border-color: rgba(37, 61, 105, 0.78);
  background:
    radial-gradient(circle at 16% 6%, rgba(125, 163, 255, 0.28), transparent 28%),
    linear-gradient(155deg, #172238 0%, #233b65 58%, #2f4d82 100%);
  box-shadow: 0 18px 44px rgba(23, 34, 56, 0.24);
}

.side-brand > span {
  color: var(--product-primary-deep);
  background: linear-gradient(145deg, #ffffff, #eaf2ff);
  box-shadow: 0 8px 20px rgba(7, 18, 42, 0.18);
}

.main-tabs .main-tab {
  color: rgba(236, 243, 255, 0.74);
}

.main-tabs .main-tab > span {
  color: rgba(236, 243, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
}

.main-tabs .main-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-tabs .main-tab.active {
  background: linear-gradient(135deg, rgba(76, 130, 212, 0.62), rgba(109, 91, 208, 0.46));
  box-shadow: inset 0 0 0 1px rgba(150, 187, 255, 0.18), 0 8px 20px rgba(7, 18, 42, 0.16);
}

.main-tabs .main-tab.active > span {
  color: var(--product-primary-deep);
  background: #ffffff;
}

.daily-page-heading {
  border-color: rgba(59, 130, 246, 0.22);
  background:
    radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.18), transparent 38%),
    radial-gradient(circle at 92% 100%, rgba(109, 91, 208, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff, #f7f9ff);
}

.daily-page-heading h2 {
  background: linear-gradient(110deg, var(--product-primary-deep), var(--product-primary), var(--product-ai));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.daily-metric-grid > *,
.score-followup-metrics > *,
.growth-profile-metrics > * {
  position: relative;
  overflow: hidden;
}

.daily-metric-grid > *::before,
.score-followup-metrics > *::before,
.growth-profile-metrics > *::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--metric-accent, var(--product-primary));
  content: "";
}

.daily-metric-grid > *:nth-child(1),
.score-followup-metrics > *:nth-child(1),
.growth-profile-metrics > *:nth-child(1) {
  --metric-accent: var(--product-primary-bright);
  --metric-glow: rgba(59, 130, 246, 0.1);
}

.daily-metric-grid > *:nth-child(2),
.score-followup-metrics > *:nth-child(2),
.growth-profile-metrics > *:nth-child(2) {
  --metric-accent: #f59e42;
  --metric-glow: rgba(245, 158, 66, 0.12);
}

.daily-metric-grid > *:nth-child(3),
.score-followup-metrics > *:nth-child(3),
.growth-profile-metrics > *:nth-child(3) {
  --metric-accent: #2ca879;
  --metric-glow: rgba(44, 168, 121, 0.11);
}

.daily-metric-grid > *:nth-child(4),
.score-followup-metrics > *:nth-child(4),
.growth-profile-metrics > *:nth-child(4) {
  --metric-accent: #8b5cf6;
  --metric-glow: rgba(139, 92, 246, 0.1);
}

.daily-metric-grid > * {
  background:
    radial-gradient(circle at 100% 100%, var(--metric-glow, rgba(59, 130, 246, 0.1)) 0 52px, transparent 53px),
    linear-gradient(145deg, #ffffff, #fbfcff);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.daily-metric-grid > *:hover {
  border-color: var(--metric-accent);
  box-shadow: var(--product-shadow-hover);
  transform: translateY(-2px);
}

.daily-metric-grid strong {
  color: var(--metric-accent, var(--product-ink));
}

.daily-capture-main,
.daily-capture-flow,
.daily-panel,
.home-evidence-grid .home-panel,
.task-queue-section,
.score-overview-card,
.score-dashboard-card,
.score-filter-card,
.score-report-summary,
.growth-student-directory,
.growth-profile-hero,
.growth-insight-card {
  border-color: rgba(86, 111, 153, 0.18);
  box-shadow: var(--product-shadow);
}

.daily-capture-main {
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent 38%),
    var(--product-surface);
}

.daily-capture-flow {
  background:
    linear-gradient(155deg, rgba(109, 91, 208, 0.08), transparent 46%),
    var(--product-surface);
}

.daily-capture-buttons button {
  border-color: rgba(59, 130, 246, 0.26);
  background: linear-gradient(145deg, #edf5ff, #f7faff);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.daily-capture-buttons button:last-child {
  border-color: rgba(109, 91, 208, 0.24);
  background: linear-gradient(145deg, #f3f0ff, #fbfaff);
}

.daily-capture-buttons button:hover {
  border-color: var(--product-primary-bright);
  box-shadow: 0 12px 26px rgba(53, 111, 200, 0.14);
  transform: translateY(-2px);
}

.daily-capture-buttons button:last-child:hover {
  border-color: var(--product-ai);
  box-shadow: 0 12px 26px rgba(109, 91, 208, 0.14);
}

.daily-capture-buttons button:last-child b {
  background: linear-gradient(145deg, #7c67df, #5f4fc1);
}

.daily-capture-buttons b,
.daily-priority-list button > span,
.task-student-card > header > span,
.task-history-row > span,
.score-followup-avatar {
  background: linear-gradient(145deg, var(--product-primary-bright), var(--product-primary));
  box-shadow: 0 7px 16px rgba(53, 111, 200, 0.2);
}

.daily-capture-flow article:nth-child(2) > span {
  color: var(--product-ai);
  background: var(--product-ai-soft);
}

.daily-capture-flow article:nth-child(3) > span {
  color: var(--product-positive);
  background: var(--product-positive-soft);
}

.unified-student-wall {
  border-color: rgba(86, 111, 153, 0.18);
  background:
    linear-gradient(180deg, rgba(234, 242, 255, 0.55), transparent 130px),
    var(--product-surface);
}

.roster-student-card,
.student-card {
  border-color: rgba(86, 111, 153, 0.18) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.roster-student-card:hover,
.student-card:hover {
  border-color: rgba(59, 130, 246, 0.42) !important;
  background: #f8fbff !important;
  box-shadow: 0 10px 24px rgba(53, 111, 200, 0.12) !important;
  transform: translateY(-2px);
}

.roster-student-card.has-pending,
.student-card.has-pending {
  border-color: rgba(245, 158, 66, 0.46) !important;
  background: linear-gradient(145deg, #fffdfa, #fff5e8) !important;
}

.student-avatar {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.84), 0 8px 18px rgba(50, 72, 115, 0.16);
}

.status-pill.is-pending,
.task-student-card > header em,
.student-recent-tags em {
  color: var(--product-warning);
  background: var(--product-warning-soft);
}

.status-pill.is-review,
.task-record-row.is-ai .task-record-mark,
.v2-ai-boundary,
.v2-batch-summary,
.v2-pending-ai-banner {
  color: #5b4bbb;
  background: var(--product-ai-soft);
}

.student-recent-tags em.is-praise,
.v2-name-chip {
  color: var(--product-positive);
  background: var(--product-positive-soft);
}

.task-record-row.is-overdue,
.task-student-card.is-overdue {
  border-color: rgba(217, 75, 96, 0.28);
  background: var(--product-danger-soft);
}

.score-page-tabs,
.profile-term-scope > summary {
  border-color: rgba(86, 111, 153, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(40, 63, 105, 0.07);
}

.growth-directory-item:hover,
.growth-directory-item.active {
  color: var(--product-primary-deep);
  background: linear-gradient(135deg, var(--product-primary-soft), #f2efff);
}

.growth-directory-item > span,
.growth-profile-avatar {
  background: linear-gradient(145deg, var(--product-primary-bright), var(--product-ai));
  box-shadow: 0 8px 18px rgba(74, 91, 190, 0.2);
}

.growth-profile-hero > header {
  background:
    radial-gradient(circle at 90% 0, rgba(109, 91, 208, 0.1), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8faff);
}

.growth-insight-card > header span,
.profile-term-actions button,
.daily-ai-boundary,
.score-followup-row b {
  color: var(--product-primary);
  background: var(--product-primary-soft);
}

.profile-ai-actions-card {
  border-color: rgba(109, 91, 208, 0.24);
  box-shadow: 0 12px 30px rgba(109, 91, 208, 0.09);
}

.profile-ai-actions-card header,
.profile-ai-actions-summary {
  background: linear-gradient(135deg, #fbfaff, var(--product-ai-soft));
}

.v2-step {
  border-color: rgba(109, 91, 208, 0.18);
  background: linear-gradient(145deg, #fafbff, #f5f3ff);
}

.v2-step > header b {
  background: linear-gradient(145deg, #7c67df, #5f4fc1);
}

.v2-step.complete > header b {
  background: linear-gradient(145deg, #2ca879, #16745f);
}

.v2-choice.selected {
  border-color: var(--product-ai);
  color: #5b4bbb;
  background: var(--product-ai-soft);
}

.v2-field input:focus,
.v2-field textarea:focus,
.v2-field select:focus {
  border-color: var(--product-ai);
  box-shadow: 0 0 0 3px rgba(109, 91, 208, 0.13);
}

@media (max-width: 1199px) {
  .main-tabs {
    border-color: rgba(86, 111, 153, 0.18);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--product-shadow);
    backdrop-filter: blur(18px);
  }

  .main-tabs .main-tab { color: var(--product-muted); }
  .main-tabs .main-tab > span {
    color: var(--product-primary);
    background: var(--product-primary-soft);
  }

  .main-tabs .main-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--product-primary-deep), var(--product-primary-bright));
  }

  .main-tabs .main-tab.active > span {
    color: var(--product-primary-deep);
    background: #fff;
  }
}

@media (max-width: 760px) {
  .main-tabs {
    border-top-color: rgba(86, 111, 153, 0.2);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 28px rgba(40, 63, 105, 0.09);
  }

  .main-tabs .main-tab.active {
    color: var(--product-primary);
    background: linear-gradient(145deg, var(--product-primary-soft), #f1efff);
    box-shadow: none;
  }

  .main-tabs .main-tab.active > span {
    color: #fff;
    background: linear-gradient(145deg, var(--product-primary-bright), var(--product-ai));
  }

  .daily-metric-grid > *:hover,
  .roster-student-card:hover,
  .student-card:hover,
  .daily-capture-buttons button:hover {
    transform: none;
  }
}

/* Final identity and student-wall polish */
@media (min-width: 1200px) {
  .side-brand strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(7, 18, 42, 0.34);
  }

  .side-brand small {
    color: rgba(242, 247, 255, 0.84);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
  }
}

.roster-student-card,
.student-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--student-a, #5b8def) 9%, #ffffff) 0, rgba(255, 255, 255, 0.98) 58px),
    #ffffff !important;
  box-shadow: 0 5px 14px rgba(41, 65, 108, 0.055) !important;
}

.roster-student-card:hover,
.student-card:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--student-a, #5b8def) 14%, #ffffff) 0, #ffffff 62px),
    #ffffff !important;
}

.student-avatar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.94);
  outline: 1px solid color-mix(in srgb, var(--student-a, #5b8def) 26%, transparent);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--student-a, #5b8def) 13%, transparent),
    0 10px 20px color-mix(in srgb, var(--student-b, #426fd2) 24%, transparent),
    inset 0 -8px 14px rgba(7, 18, 42, 0.12);
  text-shadow: 0 1px 2px rgba(15, 33, 66, 0.22);
}

.student-avatar::before {
  position: absolute;
  z-index: -1;
  top: 3px;
  right: 7px;
  left: 7px;
  height: 42%;
  border-radius: 999px 999px 60% 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  content: "";
}

.student-avatar::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: -5px 3px 0 -1px rgba(255, 255, 255, 0.34);
  content: "";
}

.student-name {
  color: #15233d;
  font-weight: 850;
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .student-avatar {
    border-width: 2px;
    outline-width: 1px;
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--student-a, #5b8def) 12%, transparent),
      0 6px 12px color-mix(in srgb, var(--student-b, #426fd2) 20%, transparent),
      inset 0 -5px 9px rgba(7, 18, 42, 0.1);
  }

  .student-avatar::after {
    right: 5px;
    bottom: 5px;
    width: 4px;
    height: 4px;
  }
}
