* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #0d1b2e;
  min-height: 100%;
}

body {
  width: 640px;
  min-height: 640px;
  margin: 0 auto;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0d1b2e;
  color: #e0eaf8;
  overflow-x: hidden;
}

#app {
  min-height: 640px;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  background: #0d1b2e;
  border-bottom: 1px solid #1e3a5f;
  padding: 14px 20px;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left {
  display: flex;
  align-items: center;
}
.header-right {
  font-size: 13px;
  color: #7ba3cc;
}

/* ── Master category + course dropdowns, matching the Suite extensions ──── */
.suite-dropdown-wrap {
  position: relative;
  border-left: 1px solid #1e3a5f;
  padding-left: 10px;
  margin-left: 10px;
}
.suite-dropdown-btn {
  background: rgba(79,195,247,0.08);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}
.suite-dropdown-btn span:first-child {
  font-size: 13px;
  color: #4fc3f7;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.suite-dropdown-btn span:last-child {
  font-size: 8px;
  color: #4fc3f7;
}
.course-dropdown {
  position: fixed;
  background: #0d1b2e;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
}
.course-dropdown.hidden { display: none; }
.course-dropdown-item {
  padding: 8px 12px;
  font-size: 12px;
  color: #7ba3cc;
  cursor: pointer;
  border-radius: 6px;
  margin: 2px;
}
.course-dropdown-item:hover { background: rgba(79,195,247,0.1); color: #4fc3f7; }
.course-dropdown-item.active { color: #4fc3f7; font-weight: 700; background: rgba(79,195,247,0.06); }

/* ── Screens ─────────────────────────────────────────────────────────────── */
.screen {
  padding: 24px 28px;
  flex: 1;
}
.screen h2 {
  font-size: 20px;
  font-weight: 800;
  color: #e0eaf8;
  margin-bottom: 6px;
}
.screen-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* ── Auth screen ─────────────────────────────────────────────────────────── */
.auth-box {
  max-width: 380px;
  margin: 40px auto 0 auto;
}
.auth-sub {
  font-size: 13px;
  color: #7ba3cc;
  margin-bottom: 20px;
}
.auth-toggle {
  margin-top: 16px;
  font-size: 13px;
  color: #7ba3cc;
  text-align: center;
}
.auth-toggle a {
  color: #39ff14;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.field-label {
  display: block;
  font-size: 12px;
  color: #7ba3cc;
  margin-bottom: 6px;
  margin-top: 14px;
}
.text-input {
  width: 100%;
  background: #132340;
  border: 1px solid #2a4f7a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #e0eaf8;
  font-family: inherit;
}
.text-input:focus {
  outline: none;
  border-color: #39ff14;
}

.btn-primary {
  width: 100%;
  background: #39ff14;
  color: #0d1b2e;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  margin-top: 20px;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.btn-small {
  width: auto;
  padding: 8px 16px;
  font-size: 13px;
  margin-top: 0;
}
.btn-smaller {
  width: auto;
  padding: 6px 10px;
  font-size: 11px;
  margin-top: 0;
}

.btn-text {
  background: none;
  border: none;
  color: #7ba3cc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  font-family: inherit;
}
.btn-text:hover { color: #e0eaf8; }

.back-link {
  background: none;
  border: none;
  color: #39ff14;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
  font-family: inherit;
  padding: 0;
}

.error-msg {
  background: #3b0000;
  border: 1px solid #ef5350;
  color: #ef5350;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.success-msg {
  background: #0a2e0a;
  border: 1px solid #66bb6a;
  color: #66bb6a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.password-field-wrap {
  position: relative;
}
.password-field-wrap .text-input {
  padding-right: 40px;
}
.password-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #7ba3cc;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  padding: 4px;
}
.password-eye-btn:hover { opacity: 1; }

/* ── Class list ──────────────────────────────────────────────────────────── */
.class-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.class-card {
  background: #132340;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.class-card:hover {
  border-color: #39ff14;
}
.class-card.dragging {
  opacity: 0.55;
  border-color: #39ff14;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.class-delete-btn {
  background: none;
  border: none;
  color: #4a6a8a;
  padding: 4px 6px;
  margin-left: 8px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.class-delete-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
.class-delete-btn:hover {
  color: #ef5350;
}
.class-drag-handle {
  background: none;
  border: none;
  color: #4a6a8a;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  margin-left: 8px;
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
  font-family: inherit;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.class-card.dragging,
.class-card.dragging * {
  -webkit-user-select: none;
  user-select: none;
}
.class-drag-handle:hover {
  color: #39ff14;
}
.class-drag-handle:active {
  cursor: grabbing;
}
.class-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #e0eaf8;
}
.class-card-meta {
  font-size: 12px;
  color: #7ba3cc;
  margin-top: 3px;
}
.class-card-code {
  font-size: 13px;
  font-weight: 800;
  color: #39ff14;
  letter-spacing: 1px;
  background: rgba(57,255,20,0.1);
  border-radius: 6px;
  padding: 4px 10px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #7ba3cc;
}
.empty-state p { margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: #4a6a8a; }

/* ── Roster ──────────────────────────────────────────────────────────────── */
.roster-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #7ba3cc;
}
.class-code {
  font-size: 15px;
  font-weight: 800;
  color: #39ff14;
  letter-spacing: 2px;
  background: rgba(57,255,20,0.1);
  border-radius: 6px;
  padding: 4px 12px;
}
.roster-view-btn {
  background: none;
  border: 1px solid #1e3a5f;
  color: #7ba3cc;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.roster-view-btn.active {
  background: rgba(79,195,247,0.12);
  border-color: #4fc3f7;
  color: #4fc3f7;
}
.roster-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roster-row {
  background: #132340;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.roster-name {
  font-size: 14px;
  font-weight: 700;
  color: #e0eaf8;
}
.roster-mastery {
  font-size: 13px;
  font-weight: 800;
}
.roster-remove-btn {
  background: none;
  border: none;
  color: #4a6a8a;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
}
.roster-remove-btn:hover {
  color: #ef5350;
  background: rgba(239,83,80,0.12);
}
.std-desc {
  font-size: 12px;
  color: #7ba3cc;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #1e3a5f;
  line-height: 1.5;
}

/* ── Course Home tabs, matching the individual extensions exactly ────────── */
.tabs {
  display: flex;
  background: #0d1b2e;
  border-bottom: 1px solid #1e3a5f;
  overflow-x: auto;
  border-radius: 8px 8px 0 0;
}
.tab {
  flex: 1;
  padding: 9px 4px;
  background: transparent;
  border: none;
  color: #7ba3cc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.tab:hover { color: #4fc3f7; }
.tab.active {
  color: #4fc3f7;
  border-bottom-color: #4fc3f7;
  background: rgba(79,195,247,0.06);
}
.tab-content {
  padding-top: 16px;
}

/* ── Grade circle + breakdown, exact copy from the individual extensions ── */
.grade-main { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.grade-circle-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.grade-circle {
  position: relative;
  width: 110px;
  height: 110px;
}
.grade-circle svg { width: 100%; height: 100%; }
.grade-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.grade-value span { font-size: 28px; font-weight: 800; color: #4fc3f7; }
.grade-pct-label { font-size: 12px; color: #7ba3cc; line-height: 1; }

.grade-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.breakdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.lab       { background: #66bb6a; }
.dot.noncontent{ background: #ffa726; }
.dot.content   { background: #4fc3f7; }
.dot.letter    { background: #ab47bc; }
.dot.ap        { background: #ffeb3b; }
.breakdown-item .label { flex: 1; color: #7ba3cc; }
.breakdown-item .val   { font-weight: 700; color: #e0eaf8; font-size: 13px; }
.weight-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  background: rgba(79,195,247,0.15);
  color: #4fc3f7;
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 2px;
  vertical-align: middle;
}
.grade-letter {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #4fc3f7 !important;
}
.total-pct {
  font-size: 11px !important;
  color: #7ba3cc !important;
  font-weight: 600 !important;
  margin-left: 2px;
}
.ap-score {
  font-size: 16px !important;
  font-weight: 900 !important;
}
.ap-pct {
  font-size: 10px !important;
  color: #7ba3cc !important;
  font-weight: 600 !important;
  margin-left: 2px;
}

/* ── Category header + progress bar (Content tab unit grouping) ──────────── */
.category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: rgba(79,195,247,0.08);
  border-left: 3px solid #4fc3f7;
  border-radius: 0 6px 6px 0;
}
.category-header .cat-name {
  font-size: 12px;
  font-weight: 700;
  color: #4fc3f7;
  flex: 1;
}
.category-header .cat-score {
  font-size: 12px;
  font-weight: 700;
  color: #e0eaf8;
}
.cat-progress {
  height: 4px;
  background: #1e3a5f;
  border-radius: 2px;
  margin: 4px 0 6px;
  overflow: hidden;
  transition: opacity 0.25s ease;
}
.cat-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ── Standard row, exact copy from the individual extensions ─────────────── */
.standard-row-wrapper { margin-bottom: 3px; }
.standard-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  margin-bottom: 3px;
  background: rgba(255,255,255,0.03);
  transition: background 0.15s;
}
.standard-row:hover { background: rgba(79,195,247,0.06); }
.standard-row.has-desc { cursor: pointer; }
.standard-row.has-desc:hover { background: rgba(79,195,247,0.08); }
.standard-code {
  font-size: 10px;
  font-weight: 700;
  color: #4fc3f7;
  width: 34px;
  flex-shrink: 0;
}
.standard-name { font-size: 11px; color: #c5d9ee; flex: 1; }
.std-info-icon {
  font-size: 10px;
  color: #7ba3cc;
  margin-left: 4px;
}

/* ── Collapsible category/unit headers, exact copy from the extensions ──── */
.category-header.collapsible {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.category-header.collapsible:hover {
  background: rgba(79,195,247,0.06);
}
.cat-arrow {
  font-size: 9px;
  color: #3a5070;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  display: inline-block;
}
.cat-arrow.open {
  transform: rotate(90deg);
}
.cat-body {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 2000px;
  opacity: 1;
}
.cat-body.collapsed {
  max-height: 0;
  opacity: 0;
}
.cat-topic-count {
  font-size: 9px;
  opacity: 0.5;
  margin-left: 6px;
  font-weight: 400;
  color: inherit;
}

/* ── AP Score panel ────────────────────────────────────────────────────── */
.ap-score-panel {
  position: fixed;
  background: #0d1b2e;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 10px 12px;
  width: 195px;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  cursor: default;
}
.ap-score-panel.hidden { display: none; }
.ap-score-panel-title {
  font-size: 10px;
  font-weight: 700;
  color: #7ba3cc;
  margin-bottom: 5px;
}
.ap-score-range-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 11px;
}
.ap-score-range-row.current {
  font-weight: 800;
}
.ap-range-score {
  width: 14px;
  text-align: center;
  font-weight: 800;
  flex-shrink: 0;
}
.ap-range-bar-wrap {
  width: 32px;
  flex-shrink: 0;
  height: 5px;
  background: #1e3a5f;
  border-radius: 2px;
  overflow: hidden;
}
.ap-range-bar {
  height: 100%;
  border-radius: 2px;
}
.ap-range-label {
  font-size: 9px;
  color: #7ba3cc;
  flex: 1;
  text-align: left;
}
.ap-range-label.current-label {
  color: #e0eaf8;
  font-weight: 700;
}
.ap-score-panel-note {
  font-size: 9px;
  color: #7ba3cc;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #1e3a5f;
}

/* ── Settings panel (weights), exact copy from the extensions ────────────── */
.settings-panel {
  background: #0f1e35;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.settings-panel.hidden { display: none; }
.settings-title {
  font-size: 12px;
  font-weight: 700;
  color: #4fc3f7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.settings-hint {
  font-size: 10px;
  color: #7ba3cc;
  margin-bottom: 10px;
}
.weight-rows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.weight-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-toggle {
  accent-color: #4fc3f7;
  cursor: pointer;
  flex-shrink: 0;
}
.weight-row.disabled .weight-label { color: #3a5070; }
.weight-row.disabled .weight-input { opacity: 0.35; pointer-events: none; }
.weight-row.disabled .weight-dot   { opacity: 0.3; }
.weight-row.disabled .weight-pct   { opacity: 0.3; }
.weight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.weight-label {
  font-size: 12px;
  color: #c5d9ee;
  flex: 1;
}
.weight-input {
  width: 68px;
  background: #1a2f50;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  color: #e0eaf8;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 4px 6px;
  outline: none;
  transition: border-color 0.2s;
}
.weight-input:focus { border-color: #4fc3f7; }
.weight-pct { font-size: 12px; color: #7ba3cc; }
.weight-total-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.weight-total-label { font-size: 11px; color: #7ba3cc; }
.weight-total-val {
  font-size: 13px;
  font-weight: 700;
  color: #e0eaf8;
  flex: 1;
}
.weight-total-val.error { color: #ef5350; }
.weight-error {
  font-size: 10px;
  color: #ef5350;
}
.weight-error.hidden { display: none; }
#courseHomeScoreCardBody.hidden { display: none; }
.save-btn {
  background: #4fc3f7;
  border: none;
  border-radius: 8px;
  color: #0d1b2e;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.save-btn:hover { background: #81d4fa; }
.save-btn:disabled { background: #1e3a5f; color: #7ba3cc; cursor: not-allowed; }
.settings-divider {
  height: 1px;
  background: #1e3a5f;
  margin: 10px 0;
}
.scale-options {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}
.scale-option {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #c5d9ee;
  cursor: pointer;
}
.scale-option input[type="radio"], .scale-option input[type="checkbox"] {
  accent-color: #4fc3f7;
  cursor: pointer;
}
.custom-fn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.custom-fn-row.hidden { display: none; }
.custom-fn-input {
  flex: 1;
  background: #1a2f50;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  color: #e0eaf8;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  padding: 4px 8px;
  outline: none;
  transition: border-color 0.2s;
}
.custom-fn-input:focus { border-color: #4fc3f7; }
.custom-fn-input.error { border-color: #ef5350; }
.custom-fn-preview {
  font-size: 10px;
  color: #7ba3cc;
  white-space: nowrap;
  min-width: 60px;
}
.score-btns { display: flex; gap: 3px; }
.score-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid #1e3a5f;
  background: #0d1b2e;
  color: #7ba3cc;
  font-size: 11px;
  font-weight: 700;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
/* Read-only for now — override the browser's default disabled dimming so
   the selected score's color coding still reads clearly. */
.score-btn:disabled { opacity: 1; }
.score-btn.selected-0 { background: #b71c1c; border-color: #ef5350; color: #fff; }
.score-btn.selected-1 { background: #e65100; border-color: #ff9800; color: #fff; }
.score-btn.selected-2 { background: #1565c0; border-color: #42a5f5; color: #fff; }
.score-btn.selected-3 { background: #1b5e20; border-color: #66bb6a; color: #fff; }
.score-btn.selected-4 { background: #00695c; border-color: #26a69a; color: #fff; }
.score-btn.selected-5 { background: #01579b; border-color: #29b6f6; color: #fff; }
.score-btn.selected-6 { background: #4a148c; border-color: #ab47bc; color: #fff; }
.score-btn.selected-7 { background: #283593; border-color: #5c6bc0; color: #fff; }
.score-btn.selected-8 { background: #880e4f; border-color: #ec407a; color: #fff; }
.score-btn.selected-9 { background: #bf360c; border-color: #ff7043; color: #fff; }
.score-btn.selected-10 { background: #f57f17; border-color: #ffd54f; color: #fff; }

/* ── Customize Standards ─────────────────────────────────────────────────── */
.customize-form {
  background: #132340;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: #7ba3cc;
  cursor: pointer;
}
.checkbox-row input {
  width: 16px;
  height: 16px;
}
.section-subhead {
  font-size: 14px;
  font-weight: 700;
  color: #7ba3cc;
  margin-top: 28px;
  margin-bottom: 12px;
}
.customize-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.customize-row {
  background: #132340;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.customize-row-info {
  font-size: 13px;
}
.customize-row-id {
  color: #39ff14;
  font-weight: 800;
  margin-right: 8px;
}
.customize-row-name {
  color: #e0eaf8;
  font-weight: 600;
}
.customize-row-hidden {
  color: #7ba3cc;
  font-size: 11px;
  margin-left: 8px;
}

/* ── Co-Teacher / Student TA — role and scope pickers on My Plan ────────── */
.cot-toggle-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.cot-toggle-btn {
  flex: 1;
  background: #132340;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cot-toggle-btn.active {
  border-color: #39ff14;
  background: rgba(57, 255, 20, 0.08);
}
.cot-toggle-btn-label {
  font-size: 12px;
  font-weight: 700;
  color: #39ff14;
}
.cot-toggle-btn-sub {
  font-size: 9px;
  color: #7ba3cc;
}
.cot-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cot-leave-btn, .cot-revoke-btn {
  background: #2a1a1a;
  border: 1px solid #6b3a3a;
  color: #c97b7b;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.class-shared-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #4fc3f7;
  background: rgba(79, 195, 247, 0.12);
  border: 1px solid rgba(79, 195, 247, 0.4);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── View Standards screen (mirrors what students see) — sized down a notch
   from the shared roster/customize-row styling, since a full page of
   standards reads as much larger than a short roster or unlock list. ── */
#screen-view-standards .roster-list {
  gap: 6px;
}
#screen-view-standards .roster-row {
  padding: 9px 13px;
}
#screen-view-standards .roster-name {
  font-size: 12px;
}
#screen-view-standards .std-desc {
  font-size: 11px;
  margin-top: 6px;
  padding-top: 6px;
}
#screen-view-standards .category-header {
  padding: 5px 9px;
  margin-bottom: 6px;
}
#screen-view-standards .category-header .cat-name,
#screen-view-standards .category-header .cat-score {
  font-size: 11px;
}

/* ── Customize Standards screen — the teacher's own editing screen, bumped
   back up a bit (~5-10%) from the View Standards sizing above since it's a
   working screen the teacher reads/edits from, not a student-facing mirror. ── */
#screen-customize .customize-list {
  gap: 7px;
}
#screen-customize .customize-row {
  padding: 10px 14px;
}
#screen-customize .customize-row-info {
  font-size: 13px;
}
#screen-customize .customize-row-hidden {
  font-size: 11px;
}
#screen-customize .category-header {
  padding: 6px 10px;
  margin-bottom: 7px;
}
#screen-customize .category-header .cat-name,
#screen-customize .category-header .cat-score {
  font-size: 12px;
}
.btn-delete {
  background: none;
  border: 1px solid #ef5350;
  color: #ef5350;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ── Upgrade screen ──────────────────────────────────────────────────────── */
.upgrade-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.upgrade-card {
  background: #132340;
  border: 1.5px solid #1e3a5f;
  border-radius: 12px;
  padding: 16px 18px 18px;
  transition: border-color 0.15s, transform 0.15s;
}
.upgrade-card:hover {
  border-color: #39ff14;
  transform: translateY(-2px);
}
.upgrade-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.upgrade-tier-name {
  font-size: 16px;
  font-weight: 800;
  color: #e0eaf8;
}
.upgrade-scope-note {
  font-size: 12px;
  color: #7ba3cc;
  margin-bottom: 10px;
}
.upgrade-features {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.upgrade-features li {
  font-size: 12.5px;
  color: #b8cbe0;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}
.upgrade-features li::before {
  content: '✓';
  color: #39ff14;
  font-weight: 800;
  position: absolute;
  left: 0;
}
.upgrade-select {
  width: 100%;
  background: #0d1b2e;
  border: 1px solid #2a4f7a;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  color: #e0eaf8;
  font-family: inherit;
  margin-bottom: 12px;
}
.upgrade-select:focus { outline: none; border-color: #39ff14; }
.upgrade-duration-row {
  display: flex;
  gap: 10px;
}
.upgrade-duration-btn {
  flex: 1;
  background: #0d1b2e;
  border: 1px solid #2a4f7a;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  color: #e0eaf8;
}
.upgrade-duration-btn:hover { border-color: #39ff14; }
.upgrade-duration-btn:disabled { opacity: 0.4; cursor: default; }
.upgrade-duration-label {
  display: block;
  font-size: 11px;
  color: #7ba3cc;
  margin-bottom: 2px;
}
.upgrade-duration-price {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #39ff14;
}
.upgrade-note {
  font-size: 12px;
  color: #4a6a8a;
  margin-top: 18px;
  text-align: center;
}
