:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #64717d;
  --line: #dce3e8;
  --surface: #ffffff;
  --soft: #f5f8f9;
  --deep: #183642;
  --teal: #16847c;
  --gold: #b87913;
  --red: #b94b42;
  --blue: #315f9a;
  --violet: #7657a8;
  --shadow: 0 18px 42px rgba(23, 32, 38, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4f7f8;
  color: var(--ink);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  background: #15313a;
  color: white;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f4b44d;
  color: #1e2d26;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 4px;
  color: #bdd0d5;
  font-size: 13px;
}

.nav-tabs {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.nav-tab {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #eaf3f5;
  text-align: left;
  cursor: pointer;
}

.nav-tab.is-active,
.nav-tab:hover {
  background: #e9f4f2;
  color: #14313a;
}

.profile-panel,
.side-filter-panel {
  display: grid;
  gap: 11px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-panel h2,
.side-filter-panel h2,
.panel h2,
.table-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.panel-subtitle {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

label {
  display: grid;
  gap: 7px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: white;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 132, 124, 0.15);
}

.sidebar input,
.sidebar select {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.principle {
  margin: 4px 0 0;
  color: #d6e8e9;
  font-size: 13px;
  line-height: 1.55;
}

.side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.advanced-filter {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 0;
}

.advanced-filter summary {
  cursor: pointer;
  color: #eaf3f5;
  font-size: 13px;
  font-weight: 800;
}

.advanced-filter-fields {
  display: grid;
  gap: 11px;
  padding-top: 12px;
}

.side-discovery {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.side-discovery strong {
  color: #eaf3f5;
  font-size: 13px;
}

.sidebar .filter-chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf3f5;
}

.sidebar .filter-chip:hover,
.sidebar .filter-chip.is-soft {
  border-color: rgba(255, 255, 255, 0.35);
  background: #e9f4f2;
  color: #14313a;
}

.sidebar .filter-chip span {
  color: #bdd0d5;
}

.sidebar-check {
  color: #eaf3f5;
}

.workspace {
  min-width: 0;
  padding: 24px 30px 44px;
}

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

.top-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.mypage-button {
  min-width: 150px;
}

h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.topbar p {
  margin: 0;
  color: var(--muted);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compact-status {
  max-width: 470px;
}

.data-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.04);
  cursor: pointer;
}

.data-status-pill strong {
  font-size: 15px;
}

.data-status-pill span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.data-status-pill.is-muted {
  background: #f8fafb;
}

.metric {
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.05);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 19px;
}

.metric span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) minmax(120px, 0.7fr) minmax(130px, 0.8fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toolbar .primary-button,
.toolbar .secondary-button {
  width: 100%;
}

.discovery-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 1.6fr) minmax(280px, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.discovery-strip > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.05);
}

.discovery-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

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

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: white;
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-soft {
  border-color: rgba(22, 132, 124, 0.35);
  background: #eaf6f4;
  color: #14654f;
}

.filter-chip span {
  color: var(--muted);
  font-weight: 700;
}

.soft-note {
  color: var(--muted);
  font-size: 12px;
}

.subject-results {
  margin-bottom: 16px;
}

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

.insight-board {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.insight-ribbon {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: none;
}

.insight-ribbon strong,
.insight-ribbon span {
  display: block;
}

.insight-ribbon strong {
  font-size: 16px;
  line-height: 1.35;
}

.insight-ribbon span,
.subtle-line {
  color: var(--muted);
  font-size: 12px;
}

.insight-ribbon dl {
  display: flex;
  gap: 8px;
  margin: 0;
}

.insight-ribbon dl div {
  min-width: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #f8fafb;
}

.insight-ribbon dt {
  font-weight: 900;
  font-size: 17px;
}

.insight-ribbon dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.subject-change-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 13px;
  background: white;
}

.subject-change-panel header strong,
.subject-change-panel header span {
  display: block;
}

.subject-change-panel header strong {
  font-size: 15px;
}

.subject-change-panel header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.subject-change-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.change-bucket {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfb;
}

.change-bucket.gained {
  border-top: 4px solid var(--teal);
}

.change-bucket.lost {
  border-top: 4px solid #b47b23;
}

.change-bucket.review {
  border-top: 4px solid #6b7c86;
}

.change-bucket strong,
.change-bucket p,
.change-bucket b,
.change-bucket span,
.change-row {
  display: block;
}

.change-bucket strong {
  margin-bottom: 8px;
  font-size: 12px;
}

.change-bucket p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.change-bucket p:last-child,
.change-row:last-child {
  margin-bottom: 0;
}

.change-bucket b {
  color: var(--ink);
}

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

.change-row {
  width: 100%;
  margin: 0 0 7px;
  border: 0;
  border-radius: 7px;
  padding: 6px 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.change-row:hover,
.change-row:focus-visible {
  outline: 2px solid rgba(22, 132, 124, 0.22);
  background: white;
}

.major-result-card.is-focus-pulse {
  outline: 3px solid rgba(22, 132, 124, 0.36);
  box-shadow: 0 0 0 6px rgba(22, 132, 124, 0.08), var(--shadow);
}

.major-result-card.is-selected {
  border-color: rgba(22, 132, 124, 0.72);
  box-shadow: 0 0 0 3px rgba(22, 132, 124, 0.1), var(--shadow);
}

.primary-small-button {
  border: 0;
  border-radius: 8px;
  padding: 7px 11px;
  background: var(--teal);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.primary-small-button:hover {
  background: #116c65;
}

.subject-change-panel.is-compact {
  padding: 10px;
  background: #fbfcfc;
}

.subject-change-panel.is-compact .subject-change-grid {
  grid-template-columns: 1fr;
}

.subtle-line {
  margin: -2px 0 0;
}

.insight-card {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.insight-card strong,
.insight-card span {
  display: block;
}

.insight-card strong {
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.3;
}

.insight-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.insight-card.good {
  border-left: 4px solid var(--teal);
}

.insight-card.warn {
  border-left: 4px solid var(--gold);
}

.quick-card {
  display: grid;
  gap: 8px;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.quick-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.quick-card .quick-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.overview-explorer {
  margin-bottom: 14px;
}

.overview-focus-panel {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}

.overview-focus-empty {
  display: grid;
  gap: 4px;
  min-height: 90px;
  align-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

.overview-focus-empty strong {
  color: var(--ink);
  font-size: 18px;
}

.overview-focus-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.overview-focus-head h2,
.overview-focus-head p {
  margin: 0;
}

.overview-focus-head h2 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.25;
}

.overview-focus-head p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.section-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--teal-soft);
  color: #116c65;
  font-size: 12px;
  font-weight: 900;
}

.overview-focus-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 360px;
}

.overview-focus-badges .recent-enhancement-box {
  flex-basis: 100%;
}

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

.overview-focus-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfc;
}

.overview-focus-metrics strong,
.overview-focus-metrics span {
  display: block;
}

.overview-focus-metrics strong {
  font-size: 17px;
  line-height: 1.3;
}

.overview-focus-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.capacity-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(202, 129, 21, 0.2);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fffaf0;
  color: #6f4b12;
  font-size: 12px;
  font-weight: 800;
}

.overview-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overview-focus-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfc;
}

.overview-focus-box.required {
  border-left: 4px solid var(--teal);
}

.overview-focus-box.prep {
  border-left: 4px solid var(--gold);
  background: #fffaf0;
}

.overview-focus-box.wide {
  grid-column: 1 / -1;
}

.overview-focus-box strong,
.overview-focus-box p,
.overview-focus-box small {
  display: block;
}

.overview-focus-box strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
}

.overview-focus-box p {
  margin: 0;
  color: #33454c;
  font-size: 14px;
  line-height: 1.55;
}

.overview-focus-box small {
  margin-top: 7px;
  color: #7a551b;
  font-size: 12px;
  font-weight: 800;
}

.sibling-route-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sibling-route-list button {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.sibling-route-list button:hover,
.sibling-route-list button.is-active {
  border-color: rgba(22, 132, 124, 0.48);
  background: var(--teal-soft);
}

.sibling-route-list b,
.sibling-route-list span {
  display: block;
}

.sibling-route-list b {
  font-size: 12px;
}

.sibling-route-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.overview-focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin: 12px 0 14px;
}

.overview-filter-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

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

.overview-result-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
  box-shadow: 0 8px 20px rgba(23, 32, 38, 0.045);
}

.overview-result-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.overview-result-card header strong,
.overview-result-card header span {
  display: block;
}

.overview-result-card header strong {
  font-size: 16px;
  line-height: 1.35;
}

.overview-result-card header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.overview-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.overview-card-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef4f5;
  color: #374950;
  font-size: 12px;
  font-weight: 800;
}

.overview-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.table-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-details summary {
  padding: 14px 16px;
  color: var(--deep);
  font-weight: 900;
  cursor: pointer;
}

.table-details .data-table-wrap {
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  color: var(--ink);
}

.checkbox-label input,
.subject-checks input {
  width: auto;
}

.subject-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.subject-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d6e8e9;
  font-size: 12px;
  font-weight: 600;
}

.subject-picker {
  max-height: 430px;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.subject-drawer-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.subject-drawer-tools input {
  min-width: 0;
}

.selected-subject-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 38px;
  align-items: center;
}

.selected-subject,
.subject-option {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--deep);
  font-weight: 800;
}

.selected-subject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.selected-subject span {
  color: var(--muted);
}

.empty-inline {
  color: var(--muted);
  font-size: 13px;
}

.subject-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.subject-group:last-child {
  border-bottom: 0;
}

.subject-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}

.subject-group-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.subject-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 13px;
}

.subject-option.is-selected {
  border-color: rgba(25, 145, 134, 0.42);
  background: var(--teal-soft);
  color: #116c65;
}

.sr-only-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  background: var(--teal);
  color: white;
}

.secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--deep);
}

.notice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.notice-row div {
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff8eb;
  color: #59442a;
  font-size: 13px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

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

.table-header span {
  color: var(--muted);
  font-size: 13px;
}

.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4f5;
  color: #374950;
  font-size: 12px;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #f9fbfb;
}

.data-table tbody tr.is-pinned-compare {
  background: #f5fbfa;
}

.compare-context {
  margin: 10px 0 12px;
}

.compare-summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
}

.compare-summary-line strong {
  color: #111a20;
  font-size: 16px;
}

.compare-summary-line span {
  color: var(--muted);
  font-size: 12px;
}

.compare-summary-line span:last-child {
  margin-left: auto;
}

.compare-pin {
  display: inline-flex;
  margin-left: 5px;
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--teal-soft);
  color: #116c65;
  font-size: 11px;
  vertical-align: middle;
}

.compare-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.compare-source-links .source-link {
  border: 1px solid rgba(44, 102, 163, 0.18);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f3f7fc;
  font-size: 12px;
}

.compare-board {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
  overflow-x: auto;
}

.school-compare-section {
  display: grid;
  gap: 14px;
}

.school-compare-board {
  overflow-x: auto;
  padding-bottom: 8px;
}

.school-compare-matrix {
  min-width: var(--school-compare-width);
  overflow: hidden;
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: white;
}

.school-compare-row {
  display: grid;
  grid-template-columns: 150px repeat(var(--school-compare-count), minmax(280px, 1fr));
  border-bottom: 1px solid #d7dddf;
}

.school-compare-row:last-child {
  border-bottom: 0;
}

.school-compare-row > strong,
.school-compare-row > div,
.school-compare-head > article {
  min-width: 0;
  border-right: 1px solid #d7dddf;
  padding: 11px 12px;
  overflow-wrap: anywhere;
}

.school-compare-row > :last-child {
  border-right: 0;
}

.school-compare-row > strong:first-child {
  display: flex;
  align-items: center;
  background: #f4f7f7;
  color: #26343a;
  font-size: 12px;
}

.school-compare-row > div {
  color: #435159;
  font-size: 12px;
  line-height: 1.55;
}

.school-compare-head {
  min-height: 70px;
  background: #fbfcfc;
}

.school-compare-head > article {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  padding-right: 44px;
}

.school-compare-head article > strong,
.school-compare-head article > span {
  display: block;
}

.school-compare-head article > strong {
  color: #18242a;
  font-size: 15px;
}

.school-compare-head article > span {
  color: var(--muted);
  font-size: 11px;
}

.route-compare-details {
  margin-top: 22px;
  border-top: 1px solid #d7dddf;
  padding-top: 4px;
}

.route-compare-details > summary {
  cursor: pointer;
  padding: 14px 2px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
}

.route-compare-details > summary span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}

.compare-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-toolbar .checkbox-label {
  margin: 0;
  white-space: nowrap;
}

.compare-matrix {
  min-width: var(--compare-width);
  overflow: hidden;
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: white;
}

.compare-matrix-row {
  display: grid;
  grid-template-columns: 150px repeat(var(--compare-count), minmax(250px, 1fr));
  border-bottom: 1px solid #d7dddf;
}

.compare-matrix-row:last-child {
  border-bottom: 0;
}

.compare-matrix-row > strong,
.compare-matrix-row > div,
.compare-matrix-head > article {
  min-width: 0;
  border-right: 1px solid #d7dddf;
  padding: 12px;
  overflow-wrap: anywhere;
}

.compare-matrix-row > :last-child {
  border-right: 0;
}

.compare-matrix-row > strong:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f7f9f9;
  color: #26343a;
  font-size: 12px;
}

.compare-matrix-row > div {
  color: #405158;
  font-size: 13px;
  line-height: 1.5;
}

.compare-matrix-row.is-different > strong:first-child {
  box-shadow: inset 4px 0 0 #c58a1a;
}

.compare-matrix-row.is-different > div {
  background: #fffaf0;
  color: #26343a;
}

.compare-matrix-head {
  min-height: 94px;
  background: #fbfcfc;
}

.compare-matrix-head > strong:first-child {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.compare-matrix-head > article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.compare-matrix-head article > strong,
.compare-matrix-head article > span {
  display: block;
}

.compare-matrix-head article > strong {
  padding-right: 24px;
  color: #111a20;
  font-size: 14px;
}

.compare-matrix-head article > span {
  color: var(--muted);
  font-size: 12px;
}

.compare-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: #5c6970;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.compare-remove:hover {
  border-color: #a84f46;
  color: #a84f46;
}

.compare-matrix .compare-source-links {
  margin-top: 0;
}

.compare-matrix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-matrix-actions .secondary-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 11px;
}

.admission-board {
  overflow: hidden;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  border-bottom: 1px solid #cfd6d8;
  background: white;
}

.admission-board-head,
.admission-board-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(110px, 0.55fr) minmax(180px, 0.8fr) minmax(420px, 2.6fr);
}

.admission-board-head {
  min-height: 58px;
  border-bottom: 1px solid #c6ced1;
  background: #fbfcfc;
}

.admission-board-head strong {
  display: grid;
  align-items: center;
  justify-items: center;
  border-right: 1px solid #c6ced1;
  color: #111a20;
  font-size: 15px;
}

.admission-board-head strong:last-child {
  border-right: 0;
}

.admission-board-row {
  border-bottom: 1px solid #cfd6d8;
}

.admission-board-row:last-child {
  border-bottom: 0;
}

.admission-board-row > div {
  min-width: 0;
  border-right: 1px solid #cfd6d8;
  padding: 18px 14px;
}

.admission-board-row > div:last-child {
  border-right: 0;
}

.board-university,
.board-group,
.board-major {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.board-university strong,
.board-major strong {
  color: #111a20;
  font-size: 15px;
  line-height: 1.35;
}

.board-group {
  color: #405158;
  font-weight: 800;
  line-height: 1.45;
}

.board-group strong,
.board-group span {
  display: block;
}

.board-group strong {
  color: #27383f;
  font-size: 13px;
}

.board-group span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.board-major span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.board-content {
  display: grid;
  gap: 7px;
  color: #2f3a40;
  line-height: 1.55;
}

.board-content p {
  margin: 0;
}

.board-content b {
  color: #111a20;
}

.overview-explorer.panel {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.overview-subject-context {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: white;
}

.overview-context-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-right: 1px solid #d7dddf;
  padding: 11px 13px;
}

.overview-context-label strong {
  font-size: 13px;
}

.overview-context-label span {
  color: var(--muted);
  font-size: 12px;
}

.overview-subject-context .insight-board {
  margin: 0;
}

.overview-subject-context .insight-ribbon {
  min-height: 68px;
  border: 0;
  border-radius: 0;
  padding: 10px 13px;
  background: white;
}

.overview-subject-context .insight-ribbon strong {
  font-size: 14px;
}

.overview-subject-context .insight-ribbon dl div {
  min-width: 62px;
  border: 0;
  border-left: 1px solid #d7dddf;
  border-radius: 0;
  padding: 4px 10px;
  background: transparent;
}

.overview-admission-board {
  overflow-x: auto;
  border-right: 1px solid #cfd6d8;
  border-left: 1px solid #cfd6d8;
}

.overview-admission-board .admission-board-head,
.overview-admission-board .admission-board-row {
  min-width: 1120px;
  grid-template-columns: minmax(135px, 0.7fr) minmax(210px, 1.08fr) minmax(175px, 0.9fr) minmax(140px, 0.72fr) minmax(210px, 1.08fr) minmax(250px, 1.3fr);
}

.overview-board-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  padding: 13px 11px;
}

.overview-board-row > div::before {
  display: none;
  content: attr(data-label);
}

.overview-board-row .board-university,
.overview-board-row .board-major {
  align-content: start;
  justify-items: start;
  text-align: left;
}

.overview-board-row .board-university span,
.overview-board-row .board-major span,
.overview-board-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.overview-major-cell strong {
  font-size: 12px;
}

.overview-major-cell span {
  color: #111a20 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.overview-board-cell strong {
  display: block;
  color: #1b282e;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.overview-board-cell.subject-cell strong {
  font-size: 12px;
}

.board-route-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.board-route-line > strong {
  color: #111a20;
  font-size: 14px;
}

.board-route-line > span:not(.badge) {
  color: var(--muted);
  font-size: 12px;
}

.overview-route-details {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid #d7dddf;
  background: #fbfcfc;
}

.overview-route-details > summary {
  cursor: pointer;
  padding: 9px 12px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
}

.overview-route-details[open] > summary {
  border-bottom: 1px solid #d7dddf;
  background: #f3f8f7;
}

.overview-route-list-head,
.overview-route-list > article {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(100px, 0.5fr) minmax(170px, 0.9fr) minmax(250px, 1.4fr) minmax(180px, 0.9fr);
}

.overview-route-list-head {
  border-bottom: 1px solid #d7dddf;
  background: #f7f9f9;
}

.overview-route-list-head strong {
  border-right: 1px solid #e0e5e6;
  padding: 8px 10px;
  color: #3c4b51;
  font-size: 11px;
}

.overview-route-list {
  display: grid;
  gap: 0;
  margin: 0;
  background: white;
}

.overview-route-list > article {
  align-items: stretch;
  border-bottom: 1px solid #e0e5e6;
}

.overview-route-list > article:last-child {
  border-bottom: 0;
}

.overview-route-list strong,
.overview-route-list span {
  display: block;
}

.overview-route-list > article > div,
.overview-route-list > article > strong,
.overview-route-list > article > p {
  min-width: 0;
  margin: 0;
  border-right: 1px solid #e0e5e6;
  padding: 10px;
  overflow-wrap: anywhere;
}

.overview-route-list > article > [data-label]::before {
  display: none;
  content: attr(data-label);
}

.overview-route-list strong {
  font-size: 12px;
}

.overview-route-list span,
.overview-route-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
}

.route-source-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.overview-route-list .route-source-line {
  align-content: flex-start;
  justify-content: flex-start;
  border-right: 0;
}

.overview-route-list .route-source-line .secondary-button {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 11px;
}

.route-source-line .compare-source-links {
  margin-top: 0;
}

.board-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.overview-route-details > .board-row-actions {
  border-top: 1px solid #d7dddf;
  padding: 9px 12px;
  background: #f7f9f9;
}

.board-row-actions .secondary-button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

.board-limit-note {
  margin: 0;
  padding: 13px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.board-prep-line {
  color: #315b54;
}

.board-more {
  margin-top: 4px;
  border-top: 1px solid #e4e9ea;
  padding-top: 7px;
}

.board-more summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.board-more > div {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.admission-board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compare-difference-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.compare-route-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
}

.compare-route-card strong,
.compare-route-card span,
.compare-route-card p {
  display: block;
}

.compare-route-card strong {
  font-size: 14px;
}

.compare-route-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compare-route-card p {
  margin: 8px 0 0;
  color: #405158;
  font-size: 12px;
  line-height: 1.45;
}

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

.compare-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.compare-card.is-pinned-compare {
  border-color: rgba(22, 132, 124, 0.42);
  background: #f8fcfb;
}

.compare-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.compare-card h3,
.compare-card header span {
  display: block;
  margin: 0;
}

.compare-card h3 {
  font-size: 17px;
  line-height: 1.3;
}

.compare-card header span,
.compare-route-line span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.compare-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.compare-route-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fbfcfc;
}

.compare-route-line strong,
.compare-route-line span {
  display: block;
}

.compare-card-gridlet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compare-card-gridlet div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fbfcfc;
}

.compare-card-gridlet div.is-watch {
  border-left: 4px solid var(--gold);
  background: #fffaf0;
}

.compare-card-gridlet div.is-prep {
  border-left: 4px solid var(--teal);
}

.compare-card-gridlet strong,
.compare-card-gridlet p {
  display: block;
}

.compare-card-gridlet strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}

.compare-card-gridlet p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.compare-card-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.main-cell strong,
.stacked strong {
  display: block;
  margin-bottom: 4px;
}

.muted,
.stacked span {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #edf2f3;
  color: #405158;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.confirmed {
  background: #e5f5ef;
  color: #14654f;
}

.badge.reviewed {
  background: #eaf0fb;
  color: var(--blue);
}

.badge.needs {
  background: #fff0d8;
  color: #8c5b0f;
}

.badge.risk {
  background: #fae7e4;
  color: var(--red);
}

.badge.green {
  background: #e7f3ee;
  color: #14654f;
}

.badge.yellow {
  background: #fff0d8;
  color: #8c5b0f;
}

.badge.gray {
  background: #edf2f3;
  color: #405158;
}

.badge.red {
  background: #fae7e4;
  color: var(--red);
}

.badge.fit {
  background: #e7f3ee;
  color: #14654f;
}

.badge.conditional {
  background: #fff0d8;
  color: #8c5b0f;
}

.recent-enhancement-box {
  display: grid;
  gap: 6px;
}

.recent-enhancement-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
  list-style: none;
  cursor: pointer;
}

.recent-enhancement-row::-webkit-details-marker {
  display: none;
}

.enhancement-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(22, 132, 124, 0.24);
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef9f6;
  color: #116c65;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.enhancement-help {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(22, 132, 124, 0.16);
  border-radius: 8px;
  padding: 8px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.enhancement-help p {
  margin: 0;
}

.enhancement-help strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.header-badge-stack {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.header-badge-stack .recent-enhancement-row {
  justify-content: flex-end;
  margin-top: 0;
}

.header-badge-stack .enhancement-help {
  max-width: 260px;
  text-align: left;
}

.data-audit-box {
  width: 100%;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.data-audit-box summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.data-audit-content {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fbfcfc;
}

.data-audit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.data-audit-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.data-audit-content .recent-enhancement-row {
  margin-top: 0;
}

.source-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.evidence {
  display: -webkit-box;
  max-width: 320px;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.evidence.wide {
  max-width: none;
}

.row-action {
  white-space: nowrap;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.university-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.university-browser-panel {
  margin-bottom: 16px;
}

.initial-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.initial-button {
  min-width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--deep);
  font-weight: 900;
  cursor: pointer;
}

.initial-button:hover,
.initial-button.is-active {
  border-color: rgba(22, 132, 124, 0.5);
  background: #eaf6f4;
  color: #14654f;
}

.university-search {
  max-width: 620px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.school-browser {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.university-directory-board,
.university-unit-board {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: white;
}

.university-directory-head,
.school-item {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) minmax(100px, 0.65fr) minmax(125px, 0.8fr) minmax(110px, 0.75fr) minmax(110px, 0.75fr) 64px;
  align-items: stretch;
}

.school-row-wrap {
  position: relative;
}

.university-directory-head {
  min-height: 48px;
  border-bottom: 1px solid #c6ced1;
  background: #f7f9f9;
}

.university-directory-head strong {
  display: flex;
  align-items: center;
  border-right: 1px solid #d7dddf;
  padding: 10px 12px;
  color: #26343a;
  font-size: 12px;
}

.university-directory-head strong:last-child {
  border-right: 0;
}

.school-item {
  width: 100%;
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid #d7dddf;
  border-radius: 0;
  padding: 0;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

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

.school-item > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-right: 1px solid #e0e5e6;
  padding: 11px 12px;
}

.school-item:hover,
.school-item.is-active {
  background: #edf7f5;
}

.school-item.is-active {
  box-shadow: inset 4px 0 0 #16847c;
}

.school-item strong,
.school-item small {
  display: block;
}

.school-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.school-item .school-name strong {
  color: #111a20;
  font-size: 15px;
}

.school-item .school-open {
  align-items: center;
  border-right: 0;
  padding: 0;
  color: #547078;
  font-size: 24px;
  text-align: center;
}

.school-compare-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  min-width: 48px;
  min-height: 32px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--deep);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.school-compare-toggle:hover,
.school-compare-toggle.is-active {
  border-color: rgba(22, 132, 124, 0.6);
  background: #dff2ee;
  color: #14654f;
}

.school-compare-tray {
  position: sticky;
  bottom: 12px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  border: 1px solid rgba(22, 132, 124, 0.45);
  border-radius: 8px;
  padding: 11px 12px;
  background: #f0f8f6;
  box-shadow: 0 8px 24px rgba(21, 48, 54, 0.14);
}

.school-compare-tray strong,
.school-compare-tray span {
  display: block;
}

.school-compare-tray strong {
  color: #174b43;
  font-size: 13px;
}

.school-compare-tray span {
  margin-top: 3px;
  color: #526168;
  font-size: 11px;
}

.school-compare-tray-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.university-overview {
  display: block;
  margin-bottom: 12px;
}

.university-detail-panel {
  display: none;
}

.university-detail-panel.is-open {
  display: grid;
  gap: 12px;
}

#overviewView.is-university-detail > .overview-explorer {
  display: none;
}

#overviewView.is-university-detail > .university-detail-panel {
  margin: 0;
  box-shadow: none;
}

.compact-source-list {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d7dddf;
}

.compact-source-list .source-card {
  border: 0;
  border-bottom: 1px solid #d7dddf;
  border-radius: 0;
  background: white;
}

.compact-source-list .source-card:last-child {
  border-bottom: 0;
}

.compact-source-list .source-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(22, 132, 124, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  background: #eaf6f4;
  color: #14654f;
}

.hidden {
  display: none !important;
}

.university-summary-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: white;
}

.university-summary-row div {
  min-width: 0;
  border-right: 1px solid #d7dddf;
  padding: 11px 12px;
}

.university-summary-row div:last-child {
  border-right: 0;
}

.university-summary-row strong,
.university-summary-row span {
  display: block;
}

.university-summary-row span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.university-summary-row strong {
  color: #1b282e;
  font-size: 14px;
  line-height: 1.4;
}

.university-readout-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d7dddf;
  border-top: 0;
  background: #f8faf9;
}

.university-readout-row p {
  min-width: 0;
  margin: 0;
  border-right: 1px solid #e0e5e6;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.university-readout-row p strong {
  display: block;
  margin-bottom: 3px;
  color: #26343a;
}

.university-readout-row > small {
  grid-column: 1 / -1;
  border-top: 1px solid #e0e5e6;
  padding: 8px 12px;
  color: var(--muted);
}

.university-route-board {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.university-major-board {
  overflow: hidden;
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: white;
}

.university-major-head,
.university-major-summary {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) minmax(190px, 1fr) minmax(120px, 0.65fr) minmax(260px, 1.35fr) 58px;
  align-items: stretch;
}

.university-major-head {
  min-height: 46px;
  border-bottom: 1px solid #c6ced1;
  background: #f7f9f9;
}

.university-major-head strong {
  display: flex;
  align-items: center;
  border-right: 1px solid #d7dddf;
  padding: 9px 11px;
  color: #26343a;
  font-size: 12px;
}

.university-major-row {
  border-bottom: 1px solid #d7dddf;
  background: white;
}

.university-major-row:last-child {
  border-bottom: 0;
}

.university-major-summary {
  min-height: 72px;
  cursor: pointer;
  list-style: none;
}

.university-major-summary::-webkit-details-marker {
  display: none;
}

.university-major-summary:hover,
.university-major-row[open] > .university-major-summary {
  background: #edf7f5;
}

.university-major-summary > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-right: 1px solid #e0e5e6;
  padding: 10px 11px;
}

.university-major-summary strong,
.university-major-summary small {
  display: block;
  overflow-wrap: anywhere;
}

.university-major-summary strong {
  color: #18242a;
  font-size: 13px;
  line-height: 1.4;
}

.university-major-summary small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.university-major-summary .university-major-name strong {
  font-size: 15px;
}

.university-major-summary .university-major-open {
  align-items: center;
  border-right: 0;
  color: #14654f;
  font-size: 11px;
  font-weight: 900;
}

.university-major-row[open] .university-major-open::before {
  content: "닫기";
}

.university-major-row[open] .university-major-open {
  font-size: 0;
}

.university-major-row[open] .university-major-open::before {
  font-size: 11px;
}

.university-major-subjects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #d7dddf;
  background: #f8faf9;
}

.university-major-subjects p {
  margin: 0;
  border-right: 1px solid #e0e5e6;
  padding: 9px 11px;
  color: #526168;
  font-size: 12px;
  line-height: 1.5;
}

.university-major-subjects p:last-child {
  border-right: 0;
}

.university-major-subjects strong {
  margin-right: 8px;
  color: #26343a;
}

.university-major-route-head,
.university-major-routes > article {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(90px, 0.45fr) minmax(170px, 0.9fr) minmax(260px, 1.35fr) minmax(180px, 0.9fr);
}

.university-major-route-head {
  border-top: 1px solid #d7dddf;
  border-bottom: 1px solid #d7dddf;
  background: #f3f6f6;
}

.university-major-route-head strong {
  border-right: 1px solid #e0e5e6;
  padding: 7px 10px;
  color: #536168;
  font-size: 11px;
}

.university-major-routes > article {
  border-bottom: 1px solid #e0e5e6;
}

.university-major-routes > article:last-child {
  border-bottom: 0;
}

.university-major-routes > article > div,
.university-major-routes > article > strong,
.university-major-routes > article > p {
  min-width: 0;
  margin: 0;
  border-right: 1px solid #e0e5e6;
  padding: 10px;
  overflow-wrap: anywhere;
}

.university-major-routes strong,
.university-major-routes span {
  display: block;
}

.university-major-routes strong {
  color: #1b282e;
  font-size: 12px;
}

.university-major-routes span,
.university-major-routes p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.route-card {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.route-card:hover {
  border-color: rgba(22, 132, 124, 0.45);
  background: #eaf6f4;
}

.route-card.is-active {
  border-color: rgba(22, 132, 124, 0.75);
  background: #dff2ee;
  box-shadow: inset 0 0 0 1px rgba(22, 132, 124, 0.18);
}

.route-card strong,
.route-card span {
  display: inline;
}

.route-card strong {
  font-size: 13px;
}

.route-card span {
  min-width: 22px;
  border-radius: 999px;
  padding: 2px 6px;
  background: #edf2f2;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.unit-list {
  display: grid;
  gap: 9px;
}

.university-focus-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.university-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.competition-source-card {
  border-left: 3px solid var(--teal);
}

.competition-source-card header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.competition-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}

.competition-summary-grid span {
  border: 1px solid var(--border);
  padding: 8px;
}

.competition-summary-grid strong,
.competition-summary-grid small {
  display: block;
}

.competition-summary-grid strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.competition-summary-grid small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.competition-track-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

.competition-track-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.competition-track-table th,
.competition-track-table td {
  border-top: 1px solid var(--border);
  padding: 7px 6px;
  text-align: right;
  white-space: nowrap;
}

.competition-track-table th:first-child,
.competition-track-table td:first-child {
  max-width: 220px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.university-focus-board {
  background: white;
}

.university-focus-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #d7dddf;
  padding: 2px 0 12px;
}

.university-focus-head h3 {
  margin: 0;
  font-size: 18px;
}

.university-unit-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 4px 0 10px;
  border: 1px solid rgba(22, 132, 124, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  background: #f7fbfa;
}

.university-unit-head,
.university-unit-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 0.95fr) minmax(105px, 0.58fr) minmax(210px, 1.25fr) minmax(250px, 1.55fr) minmax(112px, 0.65fr);
}

.university-unit-head {
  min-height: 48px;
  border-bottom: 1px solid #c6ced1;
  background: #f7f9f9;
}

.university-unit-head strong {
  display: flex;
  align-items: center;
  border-right: 1px solid #d7dddf;
  padding: 10px;
  color: #26343a;
  font-size: 12px;
}

.university-unit-head strong:last-child {
  border-right: 0;
}

.university-unit-row {
  border-bottom: 1px solid #d7dddf;
}

.university-unit-row:last-child {
  border-bottom: 0;
}

.university-unit-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  border-right: 1px solid #e0e5e6;
  padding: 12px 10px;
  color: #26343a;
  font-size: 12px;
  line-height: 1.45;
}

.university-unit-row > div strong,
.university-unit-row > div span {
  display: block;
  overflow-wrap: anywhere;
}

.university-unit-row > div > span {
  color: var(--muted);
}

.university-unit-row .unit-primary strong {
  color: #111a20;
  font-size: 14px;
}

.university-unit-row .badge {
  width: fit-content;
}

.unit-row-actions {
  border-right: 0 !important;
  flex-flow: row wrap !important;
  align-content: flex-start;
}

.unit-row-actions .secondary-button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 11px;
}

.university-unit-row > .unit-details {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid #e0e5e6;
  padding: 9px 12px 11px;
  background: #fbfcfc;
}

.university-unit-row > .unit-details summary {
  width: fit-content;
  font-size: 12px;
}

.university-unit-row > .unit-details .source-link {
  display: inline-flex;
  margin-top: 10px;
}

.university-unit-heading strong,
.university-unit-heading span {
  display: block;
}

.university-unit-heading strong {
  font-size: 14px;
}

.university-unit-heading span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.university-unit-heading > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: white;
  color: #24505d;
  font-weight: 800;
}

.unit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.unit-card header,
.unit-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.unit-card header strong,
.unit-card header span {
  display: block;
}

.unit-card header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.unit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.unit-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef4f5;
  color: #374950;
  font-size: 12px;
  font-weight: 700;
}

.unit-prep {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.unit-details {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.unit-details summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
}

.unit-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.unit-detail-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfb;
}

.unit-detail-grid strong,
.unit-detail-grid p {
  display: block;
}

.unit-detail-grid strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 12px;
}

.unit-detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.major-card-details .unit-detail-grid {
  grid-template-columns: 1fr;
}

.unit-prep strong {
  color: var(--ink);
}

.unit-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

.unit-actions .secondary-button {
  padding: 7px 10px;
  font-size: 12px;
}

.detail-stack,
.source-list,
.matrix-list,
.summary-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-card,
.source-card,
.matrix-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfc;
}

.detail-card header,
.source-card header,
.matrix-card header,
.summary-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.detail-card h3,
.source-card h3,
.matrix-card h3,
.summary-card h3 {
  margin: 0;
  font-size: 15px;
}

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

.fact-box {
  border-radius: 8px;
  padding: 9px;
  background: white;
  color: var(--muted);
  font-size: 12px;
}

.fact-box strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
}

.subject-link-card,
.subject-fit-card {
  background: white;
}

.subject-school-card {
  background: white;
}

.subject-course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.subject-course-chips span {
  border: 1px solid rgba(22, 132, 124, 0.26);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--teal-soft);
  color: #116c65;
  font-size: 12px;
  font-weight: 900;
}

.subject-warning {
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff8e9;
  color: #5c4520;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.subject-planner-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.subject-workbench {
  grid-column: 1 / -1;
}

.subject-result-panel,
.subject-secondary-panel,
.subject-prep-panel {
  grid-column: 1 / -1;
}

.subject-secondary-panel {
  padding: 0;
}

.subject-secondary-panel > details > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 15px 16px;
  color: #1b282e;
  font-size: 15px;
  font-weight: 900;
}

.subject-secondary-panel > details[open] > summary {
  border-bottom: 1px solid #d7dddf;
}

.subject-secondary-panel > details > summary span {
  color: var(--muted);
  font-size: 12px;
}

.subject-choice-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.subject-choice {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: white;
  color: var(--deep);
  font-weight: 900;
  cursor: pointer;
}

.subject-choice:hover,
.subject-choice.is-active {
  border-color: rgba(22, 132, 124, 0.42);
  background: var(--teal-soft);
  color: #116c65;
}

.subject-inline-picker {
  display: grid;
  gap: 10px;
}

.compact-subject-picker {
  max-height: 310px;
}

.subject-plan-summary {
  margin-top: 12px;
}

.subject-summary-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(95px, 0.55fr)) minmax(260px, 1.4fr);
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: white;
}

.subject-summary-row > div {
  min-width: 0;
  border-right: 1px solid #d7dddf;
  padding: 10px 12px;
}

.subject-summary-row > div:last-child {
  border-right: 0;
}

.subject-summary-row span,
.subject-summary-row strong {
  display: block;
}

.subject-summary-row span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.subject-summary-row strong {
  color: #1b282e;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.subject-fit-board,
.subject-school-board,
.subject-prep-board {
  overflow-x: auto;
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: white;
}

.subject-board-head,
.subject-board-row {
  display: grid;
  min-width: 1120px;
  grid-template-columns: minmax(175px, 0.9fr) minmax(170px, 0.88fr) minmax(170px, 0.88fr) minmax(230px, 1.18fr) minmax(210px, 1.08fr) minmax(120px, 0.62fr);
}

.subject-school-head,
.subject-school-row {
  display: grid;
  min-width: 920px;
  grid-template-columns: minmax(170px, 0.9fr) minmax(260px, 1.4fr) minmax(270px, 1.45fr) minmax(110px, 0.58fr) minmax(120px, 0.62fr);
}

.subject-prep-head,
.subject-prep-row {
  display: grid;
  min-width: 820px;
  grid-template-columns: minmax(170px, 0.85fr) minmax(120px, 0.6fr) minmax(390px, 2fr) minmax(90px, 0.45fr);
}

.subject-board-head,
.subject-school-head,
.subject-prep-head {
  border-bottom: 1px solid #c6ced1;
  background: #f7f9f9;
}

.subject-board-head strong,
.subject-school-head strong,
.subject-prep-head strong {
  border-right: 1px solid #d7dddf;
  padding: 10px;
  color: #26343a;
  font-size: 11px;
}

.subject-board-row,
.subject-school-row,
.subject-prep-row {
  border-bottom: 1px solid #d7dddf;
}

.subject-board-row:last-child,
.subject-school-row:last-child,
.subject-prep-row:last-child {
  border-bottom: 0;
}

.subject-board-row > div,
.subject-school-row > div,
.subject-prep-row > div {
  min-width: 0;
  border-right: 1px solid #e0e5e6;
  padding: 11px 10px;
  color: #405158;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.subject-board-row > div:last-child,
.subject-school-row > div:last-child,
.subject-prep-row > div:last-child {
  border-right: 0;
}

.subject-board-row strong,
.subject-board-row span,
.subject-school-row strong,
.subject-school-row span,
.subject-prep-row strong,
.subject-prep-row span {
  display: block;
}

.subject-board-row span,
.subject-school-row span,
.subject-prep-row span {
  margin-top: 4px;
  color: var(--muted);
}

.subject-board-row > div::before,
.subject-school-row > div::before,
.subject-prep-row > div::before {
  display: none;
  content: attr(data-label);
}

.subject-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px;
}

.subject-row-actions .secondary-button,
.subject-row-actions .source-link {
  min-height: 30px;
  padding: 5px 7px;
  font-size: 11px;
}

.subject-board-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #d7dddf;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.subject-prep-panel .segmented {
  padding: 12px 16px 0;
}

.subject-prep-board {
  margin: 0 16px 16px;
}

.subject-related-panel .subject-school-board {
  margin: 0;
  border: 0;
  border-top: 0;
}

.subject-focus-card {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfc;
}

.subject-focus-card strong,
.subject-focus-card span {
  display: block;
}

.subject-focus-card strong {
  font-size: 20px;
}

.subject-focus-card span,
.subject-focus-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.subject-focus-card dl {
  display: flex;
  gap: 8px;
  margin: 0;
}

.subject-focus-card dl div {
  min-width: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
}

.subject-focus-card dt {
  font-size: 18px;
  font-weight: 900;
}

.subject-focus-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.subject-focus-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.subject-school-grid,
.subject-fit-grid {
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.subject-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fact-box.required {
  border-left: 4px solid var(--teal);
}

.fact-box.prep {
  border-left: 4px solid var(--gold);
}

.inline-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.form-grid,
.mock-grid,
.target-grid {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

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

.mock-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mock-exam-meta {
  display: grid;
  grid-template-columns: 140px minmax(220px, 320px) minmax(260px, 1fr);
  align-items: end;
  gap: 10px;
  margin: 14px 0 10px;
}

.mock-exam-meta p {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  background: #f3f8f7;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mock-score-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.mock-score-grid label {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.mock-score-grid select {
  margin-top: 7px;
}

.mock-save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mock-save-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.span-2 {
  grid-column: span 2;
}

.strategy-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.strategy-target-workbench {
  margin-bottom: 14px;
}

.strategy-explorer-panel {
  margin-bottom: 14px;
}

.strategy-explorer-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(150px, 190px);
  gap: 8px;
  margin-bottom: 10px;
}

.strategy-explorer-tabs {
  margin-bottom: 8px;
}

.strategy-explore-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.strategy-explore-summary b {
  margin-right: 3px;
  color: var(--ink);
  font-size: 15px;
}

.strategy-explore-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.strategy-explore-head,
.strategy-explore-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(165px, 1fr) minmax(155px, 0.95fr) minmax(220px, 1.3fr) minmax(175px, 1fr) auto;
}

.strategy-explore-head {
  background: #eef4f4;
  border-top: 3px solid var(--teal);
}

.strategy-explore-head > strong,
.strategy-explore-row > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}

.strategy-explore-head > strong:last-child,
.strategy-explore-row > div:last-child {
  border-right: 0;
}

.strategy-explore-head > strong {
  font-size: 12px;
}

.strategy-explore-row {
  border-top: 1px solid var(--line);
  background: white;
  box-shadow: inset 4px 0 0 #87949c;
}

.strategy-explore-row.green {
  box-shadow: inset 4px 0 0 #2f8b61;
}

.strategy-explore-row.yellow {
  box-shadow: inset 4px 0 0 var(--gold);
}

.strategy-explore-row > div > strong,
.strategy-explore-row > div > span {
  display: block;
}

.strategy-explore-row > div > strong {
  font-size: 12px;
  line-height: 1.45;
}

.strategy-explore-row > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.strategy-explore-state {
  color: var(--ink);
}

.strategy-explore-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #f8fafb;
  color: var(--muted);
  font-size: 12px;
}

.strategy-target-board,
.strategy-gap-detail,
.strategy-trend-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.strategy-target-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.strategy-target-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.strategy-target-summary b {
  color: var(--ink);
}

.strategy-target-head,
.strategy-target-row {
  display: grid;
  grid-template-columns: minmax(175px, 1.05fr) minmax(155px, 0.9fr) minmax(155px, 0.9fr) minmax(220px, 1.25fr) minmax(180px, 1fr) auto;
  min-width: 0;
}

.strategy-target-head {
  background: #eef4f4;
  border-top: 3px solid var(--teal);
}

.strategy-target-head > strong,
.strategy-target-row > div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.strategy-target-head > strong:last-child,
.strategy-target-row > div:last-child {
  border-right: 0;
}

.strategy-target-head > strong {
  font-size: 12px;
}

.strategy-target-row {
  border-top: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.strategy-target-row:hover,
.strategy-target-row.is-active {
  background: #f2f9f8;
}

.strategy-target-row.is-active {
  box-shadow: inset 4px 0 0 var(--teal);
}

.strategy-target-row.green:not(.is-active) {
  box-shadow: inset 4px 0 0 #2f8b61;
}

.strategy-target-row.yellow:not(.is-active) {
  box-shadow: inset 4px 0 0 var(--gold);
}

.strategy-target-row.red:not(.is-active) {
  box-shadow: inset 4px 0 0 #b95045;
}

.strategy-target-row > div > strong,
.strategy-target-row > div > span:not(.strategy-status) {
  display: block;
}

.strategy-target-row > div > strong {
  font-size: 13px;
  line-height: 1.4;
}

.strategy-target-row > div > span:not(.strategy-status) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.strategy-record-result {
  margin-top: 8px !important;
  border-left: 3px solid #87949c;
  padding: 5px 0 5px 8px;
  background: #f4f6f6;
}

.strategy-record-result.green {
  border-left-color: #2f8b61;
  background: #eff8f4;
}

.strategy-record-result.yellow {
  border-left-color: var(--gold);
  background: #fff8e9;
}

.strategy-record-result b,
.strategy-record-result small {
  display: block;
}

.strategy-record-result b {
  color: var(--ink);
  font-size: 11px;
}

.strategy-record-result small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.strategy-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf1f2;
  color: #536168;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.strategy-status.green {
  background: #e2f3ea;
  color: #176b4d;
}

.strategy-status.yellow {
  background: #fff2d8;
  color: #805400;
}

.strategy-status.red {
  background: #fbe4e1;
  color: #a33b32;
}

.strategy-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.strategy-row-actions .secondary-button {
  min-height: 34px;
  padding: 7px 9px;
}

.strategy-target-remove {
  min-height: 34px;
  padding: 7px 5px;
  color: #8b4b45;
  font-size: 11px;
  font-weight: 800;
}

.strategy-gap-detail {
  margin-top: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.strategy-year-compare {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  background: white;
}

.strategy-year-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7f9f9;
}

.strategy-year-heading strong,
.strategy-year-heading span {
  display: block;
}

.strategy-year-heading strong {
  font-size: 14px;
}

.strategy-year-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.strategy-year-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strategy-year-card {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.strategy-year-card:last-child {
  border-right: 0;
}

.strategy-year-card.is-current {
  box-shadow: inset 4px 0 0 var(--teal);
}

.strategy-year-card.is-empty {
  min-height: 210px;
  color: var(--muted);
  background: #fbfcfc;
}

.strategy-year-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.strategy-year-card > header strong {
  font-size: 13px;
}

.strategy-year-card > header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.strategy-year-card h3,
.strategy-year-card p {
  margin: 0;
}

.strategy-year-card h3 {
  font-size: 17px;
  line-height: 1.4;
}

.strategy-year-card > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.strategy-year-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--line);
}

.strategy-year-card.is-current .strategy-year-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strategy-year-metrics > div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.strategy-year-metrics > div:last-child {
  border-right: 0;
}

.strategy-year-metrics strong,
.strategy-year-metrics span {
  display: block;
  overflow-wrap: anywhere;
}

.strategy-year-metrics strong {
  font-size: 13px;
  line-height: 1.4;
}

.strategy-year-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.strategy-year-details {
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
}

.strategy-year-details > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.strategy-year-details dt,
.strategy-year-details dd {
  min-width: 0;
  margin: 0;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.5;
}

.strategy-year-details dt {
  background: #f7f9f9;
  font-weight: 900;
}

.strategy-year-details dd {
  overflow-wrap: anywhere;
}

.strategy-year-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.strategy-year-note {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f7f9f9;
  font-size: 11px;
}

.strategy-condition-check {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  background: white;
}

.strategy-gap-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: #f8fafb;
  cursor: pointer;
  list-style: none;
}

.strategy-gap-details > summary::-webkit-details-marker {
  display: none;
}

.strategy-gap-details > summary::before {
  content: "+";
  color: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

.strategy-gap-details[open] > summary::before {
  content: "−";
}

.strategy-gap-details > summary > span:first-of-type {
  flex: 1;
}

.strategy-gap-details > summary > span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.strategy-gap-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: #f8fafb;
}

.strategy-gap-headline strong,
.strategy-gap-headline span {
  display: block;
}

.strategy-gap-headline span {
  color: var(--muted);
  font-size: 12px;
}

.strategy-gap-head,
.strategy-gap-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(105px, 0.65fr) minmax(210px, 1.5fr) minmax(210px, 1.5fr);
}

.strategy-gap-head {
  background: #eef4f4;
}

.strategy-gap-head > strong,
.strategy-gap-row > div {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.strategy-gap-head > strong:last-child,
.strategy-gap-row > div:last-child {
  border-right: 0;
}

.strategy-gap-head > strong {
  font-size: 12px;
}

.strategy-gap-row {
  box-shadow: inset 4px 0 0 #87949c;
}

.strategy-gap-row.green {
  box-shadow: inset 4px 0 0 #2f8b61;
}

.strategy-gap-row.yellow {
  box-shadow: inset 4px 0 0 var(--gold);
}

.strategy-gap-row.red {
  box-shadow: inset 4px 0 0 var(--red);
}

.strategy-gap-row > div {
  font-size: 12px;
  line-height: 1.5;
}

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

.strategy-input-panel {
  padding: 0;
}

.strategy-input-panel details > summary {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.strategy-input-panel details > summary::-webkit-details-marker {
  display: none;
}

.strategy-input-panel details > summary::before {
  content: "+";
  width: 22px;
  margin-right: 8px;
  color: var(--teal);
  font-size: 20px;
}

.strategy-input-panel details[open] > summary::before {
  content: "−";
}

.strategy-detail-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.strategy-settings-grid .strategy-input-panel:has(details[open]) {
  grid-column: 1 / -1;
}

.student-record-heading,
.student-record-elective-head,
.student-record-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.student-record-heading {
  padding: 16px 0;
}

.student-record-heading h2,
.student-record-heading span {
  display: block;
  margin: 0;
}

.student-record-heading span,
.student-record-elective-head span,
.student-record-rule span,
.student-record-prompt span {
  color: var(--muted);
  font-size: 12px;
}

.student-record-controls,
.student-record-browser-controls,
.student-record-elective-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.student-record-browser-controls {
  padding-bottom: 16px;
}

.student-record-comparison {
  margin-bottom: 18px;
  border-top: 2px solid var(--teal);
  border-bottom: 1px solid var(--line);
}

.student-record-comparison-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.student-record-comparison-heading h3,
.student-record-comparison-heading span {
  display: block;
  margin: 0;
}

.student-record-comparison-heading span,
.student-record-comparison-row span {
  color: var(--muted);
  font-size: 12px;
}

.student-record-comparison-head,
.student-record-comparison-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr .65fr .65fr 1.8fr;
}

.student-record-comparison-head {
  background: #f4f7f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.student-record-comparison-head span,
.student-record-comparison-row > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}

.student-record-comparison-head span:last-child,
.student-record-comparison-row > div:last-child {
  border-right: 0;
}

.student-record-comparison-row {
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.student-record-comparison-head + .student-record-comparison-row {
  border-top: 0;
}

.student-record-comparison-row:hover,
.student-record-comparison-row:focus-visible {
  background: #f5faf9;
  outline: none;
}

.student-record-comparison-row strong,
.student-record-comparison-row span {
  display: block;
}

.student-record-comparison-row span {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.student-record-comparison-rule a {
  display: inline-block;
  margin-top: 7px;
  color: var(--link);
  font-size: 12px;
  font-weight: 800;
}

.student-record-calculator-panel {
  padding-top: 16px;
  border-top: 2px solid var(--teal);
}

.student-record-calculator-panel[hidden] {
  display: none;
}

.student-record-controls > [hidden],
.student-record-electives[hidden] {
  display: none;
}

.student-record-calculator-heading,
.student-record-criteria-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.student-record-criteria-count {
  margin: 0;
  padding: 13px 14px;
  border-top: 2px solid var(--teal);
  border-bottom: 1px solid var(--line);
}

.student-record-criteria-count span {
  color: var(--muted);
  font-size: 12px;
}

.student-record-criteria-row {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 2.3fr);
  border-bottom: 1px solid var(--line);
}

.student-record-criteria-route,
.student-record-criteria-main,
.student-record-criteria-more > div {
  padding: 14px;
}

.student-record-criteria-route {
  border-right: 1px solid var(--line);
}

.student-record-criteria-route strong,
.student-record-criteria-route span {
  display: block;
}

.student-record-criteria-route span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.student-record-criteria-main p,
.student-record-criteria-more p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.student-record-criteria-main p:last-child,
.student-record-criteria-more p:last-child {
  margin-bottom: 0;
}

.student-record-criteria-main b,
.student-record-criteria-more b {
  display: inline-block;
  min-width: 74px;
  margin-right: 8px;
}

.student-record-criteria-more {
  grid-column: 1 / -1;
  border-top: 1px solid #edf0f1;
}

.student-record-criteria-more > summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.student-record-criteria-more > div {
  padding-top: 4px;
  background: #f8fafb;
}

.student-record-electives {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.student-record-course-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.student-record-course-panel[hidden] {
  display: none;
}

.student-record-course-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
}

.student-record-course-heading strong,
.student-record-course-heading span {
  display: block;
}

.student-record-course-heading span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.student-record-course-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-record-course-actions > span {
  margin: 0 4px 0 0;
  white-space: nowrap;
}

.student-record-bulk {
  margin-bottom: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.student-record-bulk summary {
  padding: 10px 2px;
  color: var(--deep);
  cursor: pointer;
  font-weight: 800;
}

.student-record-bulk-body {
  padding: 0 0 12px;
}

.student-record-bulk textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  font: inherit;
  line-height: 1.55;
}

.student-record-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.student-record-bulk-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  font-weight: 700;
}

.student-record-bulk-actions input {
  width: 16px;
  height: 16px;
}

.student-record-bulk-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.student-record-course-row {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1.2fr) 110px minmax(120px, .8fr) minmax(100px, .7fr) 90px 42px;
  align-items: end;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.student-record-course-row.is-excluded {
  background: #fffaf3;
}

.student-record-course-number {
  display: flex;
  flex-direction: column;
  align-self: center;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.student-record-course-number b {
  color: var(--ink);
}

.student-record-course-number small {
  color: #9d6d20;
  font-size: 10px;
  white-space: nowrap;
}

.student-record-course-number small.is-included {
  color: #16705a;
}

.student-record-course-remove {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.student-record-course-remove:hover {
  border-color: #b45545;
  color: #9d3427;
}

.student-record-elective-head {
  margin-bottom: 10px;
}

.student-record-elective-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-record-result {
  margin-top: 16px;
  border-top: 2px solid var(--teal);
}

.student-record-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
}

.student-record-selection-summary span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.student-record-score {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(120px, .7fr));
  border-bottom: 1px solid var(--line);
}

.student-record-score > div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.student-record-score > div:last-child {
  border-right: 0;
}

.student-record-score span,
.student-record-score strong {
  display: block;
}

.student-record-score span {
  color: var(--muted);
  font-size: 12px;
}

.student-record-score strong {
  margin-top: 4px;
  font-size: 20px;
}

.student-record-score small {
  color: var(--muted);
  font-size: 13px;
}

.student-record-attendance,
.student-record-note,
.student-record-prompt,
.student-record-rule {
  margin: 0;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.student-record-attendance {
  color: #765314;
  background: #fffaf0;
}

.student-record-prompt strong,
.student-record-prompt span {
  display: block;
}

.strategy-subject-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.strategy-subject-row span,
.strategy-subject-row strong {
  display: block;
}

.strategy-subject-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.strategy-subject-row strong {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.strategy-trend-head,
.strategy-trend-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) repeat(6, minmax(82px, 0.7fr));
}

.strategy-trend-head {
  margin-top: 14px;
  background: #eef4f4;
}

.strategy-trend-head > strong,
.strategy-trend-row > div {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.strategy-trend-head > strong {
  font-size: 12px;
}

.strategy-trend-row {
  border-top: 1px solid var(--line);
}

.strategy-trend-row.is-latest {
  box-shadow: inset 4px 0 0 var(--teal);
  background: #f7fbfa;
}

.strategy-trend-row > div {
  font-size: 12px;
}

.strategy-trend-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.strategy-score-change {
  background: white;
}

.strategy-score-change-summary,
.strategy-trend-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
}

.strategy-score-change-summary > div:first-child span,
.strategy-trend-title span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.strategy-score-change-summary > div:first-child strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.strategy-score-change-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-score-change-counts span,
.score-change-label {
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf2f2;
  color: #536168;
  font-size: 11px;
  font-weight: 800;
}

.strategy-score-change-counts .improved,
.score-change-label.improved {
  background: #e3f4ed;
  color: #11694f;
}

.strategy-score-change-counts .declined,
.score-change-label.declined {
  background: #fff1df;
  color: #8a5200;
}

.strategy-score-change-head,
.strategy-score-change-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(80px, 0.55fr) minmax(80px, 0.55fr) minmax(110px, 0.8fr) minmax(220px, 1.8fr);
}

.strategy-score-change-head {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef4f4;
}

.strategy-score-change-head strong,
.strategy-score-change-row > div {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 9px 12px;
  font-size: 12px;
}

.strategy-score-change-head strong:last-child,
.strategy-score-change-row > div:last-child {
  border-right: 0;
}

.strategy-score-change-row {
  border-bottom: 1px solid var(--line);
}

.strategy-score-change-row:last-child {
  border-bottom: 0;
}

.score-grade-sequence {
  color: var(--muted);
  white-space: nowrap;
}

.strategy-trend-title {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  padding-bottom: 0;
}

.strategy-trend-title strong {
  font-size: 13px;
}

.strategy-trend-table {
  overflow-x: auto;
}

.strategy-dashboard {
  padding: 14px 16px;
  margin-bottom: 14px;
}

.strategy-dashboard-compact {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
}

.strategy-dashboard-compact > div:first-child > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.strategy-dashboard-compact h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.3;
}

.strategy-compact-facts,
.strategy-compact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-compact-facts span {
  padding-right: 8px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.strategy-compact-facts span:last-child {
  padding-right: 0;
  border-right: 0;
}

.strategy-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.strategy-dashboard-head h2,
.strategy-dashboard-head p {
  margin: 0;
}

.strategy-dashboard-head h2 {
  margin-top: 5px;
  font-size: 26px;
  line-height: 1.25;
}

.strategy-dashboard-head p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

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

.strategy-metric-grid article {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 14px;
  background: transparent;
}

.strategy-metric-grid article:first-child {
  border-left: 0;
}

.strategy-metric-grid strong,
.strategy-metric-grid span {
  display: block;
}

.strategy-metric-grid strong {
  font-size: 20px;
  line-height: 1.25;
}

.strategy-metric-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.strategy-next-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.strategy-action {
  border-left: 5px solid #87949c;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
}

.strategy-action.green {
  border-left-color: #2f8b61;
}

.strategy-action.yellow {
  border-left-color: var(--gold);
}

.strategy-action.red {
  border-left-color: var(--red);
}

.strategy-action strong,
.strategy-action span {
  display: block;
}

.strategy-action span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trend-card {
  min-height: 128px;
}

.target-card {
  cursor: pointer;
}

.target-card.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 132, 124, 0.13);
}

.gap-board {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.gap-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfc;
}

.gap-summary header,
.gap-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.gap-summary h3,
.gap-item h3 {
  margin: 0;
  font-size: 15px;
}

.gap-item {
  border-left: 5px solid #c6d1d5;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
}

.gap-item.green {
  border-left-color: #2f8b61;
}

.gap-item.yellow {
  border-left-color: var(--gold);
}

.gap-item.red {
  border-left-color: var(--red);
}

.gap-item.gray {
  border-left-color: #87949c;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.segmented.compact {
  margin-top: 12px;
}

.segmented.compact .segment {
  padding: 7px 9px;
  font-size: 12px;
}

.segment {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  background: white;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.segment.is-active {
  border-color: var(--teal);
  background: #e5f5ef;
  color: #14654f;
}

.empty-state {
  margin-bottom: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfc;
  color: var(--muted);
  text-align: center;
}

.action-empty {
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: center;
}

.mypage-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  align-content: start;
  gap: 16px;
  width: min(460px, 100vw);
  height: 100vh;
  padding: 22px;
  overflow: auto;
  background: white;
  box-shadow: -18px 0 44px rgba(23, 32, 38, 0.18);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.mypage-drawer.is-open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  border: 0;
  background: rgba(23, 32, 38, 0.22);
}

.drawer-backdrop.is-open {
  display: block;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-header strong,
.drawer-header span {
  display: block;
}

.drawer-header strong {
  font-size: 20px;
}

.drawer-header span,
.drawer-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.drawer-section {
  display: grid;
  gap: 12px;
}

.account-section {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.account-summary {
  padding: 12px 0;
}

.account-summary strong,
.account-summary span {
  display: block;
}

.account-summary strong {
  font-size: 16px;
}

.account-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.account-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(23, 32, 38, 0.24);
}

.account-dialog::backdrop {
  background: rgba(23, 32, 38, 0.42);
}

.account-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.account-dialog-head strong,
.account-dialog-head span {
  display: block;
}

.account-dialog-head .secondary-button {
  flex: 0 0 auto;
  min-width: 64px;
  white-space: nowrap;
}

.account-dialog-head strong {
  font-size: 20px;
}

.account-dialog-head span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-dialog-body {
  display: grid;
  gap: 10px;
  max-height: min(680px, calc(100vh - 120px));
  overflow-y: auto;
  padding: 20px;
}

.account-dialog-status {
  margin-bottom: 4px;
  padding: 12px;
  border-left: 4px solid var(--teal);
  background: #f2f8f7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.kakao-login-button {
  min-height: 48px;
  border: 1px solid #f2d20a;
  border-radius: 8px;
  background: #fee500;
  color: #191600;
  font-weight: 900;
  cursor: pointer;
}

.kakao-login-button:disabled {
  border-color: #d9dfe1;
  background: #edf1f2;
  color: #89949a;
  cursor: not-allowed;
}

.account-signup-form,
.account-signup-grid {
  display: grid;
  gap: 12px;
}

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

.account-signup-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.account-signup-form input,
.account-signup-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

@media (max-width: 520px) {
  .account-signup-grid {
    grid-template-columns: 1fr;
  }
}

.drawer-section h2 {
  margin: 0;
  font-size: 16px;
}

.mypage-fit-preview {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.mypage-fit-preview strong {
  font-size: 14px;
}

.fit-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.fit-preview-grid span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: white;
  color: var(--muted);
  font-size: 11px;
}

.fit-preview-grid b {
  color: var(--ink);
  font-size: 17px;
}

.mypage-fit-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

body.is-rolling-view .side-filter-panel,
body.is-rolling-view .compact-status {
  display: none;
}

.rolling-guide-panel {
  padding: 0;
  overflow: hidden;
}

.rolling-guide-head,
.rolling-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.rolling-guide-head h2,
.rolling-detail-head h2 {
  margin: 0;
  font-size: 20px;
}

.rolling-guide-head p,
.rolling-detail-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rolling-filter-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.7fr) repeat(4, minmax(130px, 1fr));
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.rolling-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}

.rolling-summary > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 15px 20px;
  border-right: 1px solid var(--line);
}

.rolling-summary > div:last-child {
  border-right: 0;
}

.rolling-summary strong {
  font-size: 20px;
}

.rolling-summary span {
  color: var(--muted);
  font-size: 12px;
}

.rolling-compare-tray {
  position: sticky;
  bottom: 12px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(22, 132, 124, 0.38);
  padding: 10px 24px;
  background: #edf7f5;
  box-shadow: 0 8px 22px rgba(21, 48, 54, 0.12);
}

.rolling-compare-selection {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.rolling-compare-selection strong {
  flex: 0 0 auto;
  color: #14654f;
  font-size: 13px;
}

.rolling-compare-selection span {
  overflow: hidden;
  color: #4d6168;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rolling-compare-selection i {
  margin: 0 7px;
  color: #91a3a8;
  font-style: normal;
}

.rolling-compare-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.rolling-school-head,
.rolling-school-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.15fr) minmax(220px, 1.7fr) minmax(110px, .75fr) minmax(140px, 1fr) minmax(170px, 1.2fr) 28px;
  align-items: stretch;
}

.rolling-school-head {
  border-top: 3px solid #5aa69f;
  border-bottom: 1px solid var(--line);
  background: #f5f8f8;
}

.rolling-school-head strong {
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  font-size: 12px;
}

.rolling-school-row {
  width: 100%;
  min-height: 82px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.rolling-school-row:hover {
  background: #f4faf9;
}

.rolling-school-row > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.rolling-school-row strong {
  line-height: 1.35;
}

.rolling-school-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rolling-school-row .rolling-row-arrow {
  align-items: center;
  padding: 0;
  border-right: 0;
  color: #54707a;
  font-size: 27px;
}

.rolling-more-button {
  display: block;
  margin: 16px auto;
}

.rolling-guide-note,
.rolling-science-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.rolling-detail-head .text-button {
  margin: 0 0 8px;
  padding: 0;
}

.rolling-insight {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(300px, 2fr) auto;
  align-items: start;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #eef7f5;
}

.rolling-insight p {
  margin: 0;
  color: #40515a;
  font-size: 13px;
  line-height: 1.65;
}

.rolling-insight a,
.rolling-science-note a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.rolling-science-note {
  justify-content: flex-start;
  background: #f8f5ed;
}

.rolling-science-note span {
  flex: 1;
}

.rolling-route-head,
.rolling-route-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(140px, 1fr) minmax(155px, 1fr) minmax(155px, 1fr) minmax(150px, 1fr) minmax(210px, 1.45fr);
}

.rolling-route-head {
  border-top: 3px solid #5aa69f;
  border-bottom: 1px solid var(--line);
  background: #f5f8f8;
}

.rolling-route-head strong {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  font-size: 12px;
}

.rolling-route-row {
  border-bottom: 1px solid var(--line);
}

.rolling-route-row > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.rolling-route-row > div strong {
  font-size: 13px;
  line-height: 1.45;
}

.rolling-route-row > div span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rolling-compare-toggle {
  width: fit-content;
  min-height: 28px;
  margin-top: 3px;
  border: 1px solid #cbd7d8;
  border-radius: 5px;
  padding: 4px 9px;
  background: white;
  color: #31545b;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.rolling-compare-toggle:hover,
.rolling-compare-toggle.is-active {
  border-color: rgba(22, 132, 124, 0.55);
  background: #dff2ee;
  color: #14654f;
}

.rolling-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.rolling-compare-head h2,
.rolling-compare-head p {
  margin: 0;
}

.rolling-compare-head h2 {
  font-size: 18px;
}

.rolling-compare-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.rolling-compare-scroll {
  overflow-x: auto;
}

.rolling-compare-matrix {
  min-width: var(--rolling-compare-width);
  border-top: 3px solid #5aa69f;
  background: white;
}

.rolling-compare-row {
  display: grid;
  grid-template-columns: 150px repeat(var(--rolling-compare-count), minmax(260px, 1fr));
  border-bottom: 1px solid var(--line);
}

.rolling-compare-row > strong,
.rolling-compare-row > div,
.rolling-compare-column-head > article {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  overflow-wrap: anywhere;
}

.rolling-compare-row > :last-child {
  border-right: 0;
}

.rolling-compare-row > strong:first-child {
  background: #f5f8f8;
  color: #405159;
  font-size: 12px;
}

.rolling-compare-row > div {
  color: #26343a;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.rolling-compare-row > div small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.rolling-match-cell {
  display: grid;
  gap: 7px;
}

.rolling-match-cell > span {
  color: var(--muted);
  font-size: 11px;
}

.rolling-match-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.rolling-match-option:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rolling-match-option div {
  min-width: 0;
}

.rolling-match-option strong,
.rolling-match-option span {
  display: block;
}

.rolling-match-option strong {
  font-size: 12px;
}

.rolling-match-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.rolling-match-option .secondary-button {
  min-height: 30px;
  padding: 5px 8px;
}

.rolling-compare-column-head {
  background: #f8faf9;
}

.rolling-compare-column-head > article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 36px;
}

.rolling-compare-column-head article > strong {
  color: #17252b;
  font-size: 14px;
}

.rolling-compare-column-head article > span {
  font-size: 13px;
  font-weight: 800;
}

.rolling-compare-column-head article > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.rolling-change.new,
.rolling-change.up {
  color: #127267;
}

.rolling-change.down {
  color: #9a4c43;
}

.rolling-route-more {
  grid-column: 1 / -1;
  background: #fafcfc;
}

.rolling-route-more summary {
  padding: 10px 14px;
  color: #3e5b65;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.rolling-route-more > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  padding: 0 14px 14px;
}

.rolling-route-more p {
  margin: 0;
  color: #40515a;
  font-size: 13px;
  line-height: 1.6;
}

.rolling-source-line {
  padding: 14px 24px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .university-card-grid,
  .compact-source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar,
  .discovery-strip,
  .overview-filter-row,
  .compare-context,
  .compare-difference-strip,
  .compare-card-grid,
  .insight-board,
  .insight-ribbon,
  .notice-row,
  .split-layout,
  .subject-planner-layout,
  .subject-focus-card,
  .strategy-dashboard-compact,
  .strategy-dashboard-head,
  .strategy-metric-grid,
  .strategy-next-actions,
  .university-layout,
  .subject-card-grid,
  .compare-card-gridlet,
  .mock-grid,
  .mock-exam-meta {
    grid-template-columns: 1fr;
  }

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

  .strategy-compact-actions {
    justify-content: flex-start;
  }

  .topbar,
  .top-actions,
  .status-strip,
  .compact-status,
  .overview-focus-head,
  .overview-focus-badges {
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
  }

  .data-status-pill {
    justify-content: space-between;
  }

  .school-browser {
    position: static;
    max-height: none;
  }

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

  .subject-summary-selection,
  .subject-summary-groups {
    grid-column: 1 / -1;
  }

  .subject-board-head,
  .subject-school-head,
  .subject-prep-head,
  .strategy-explore-head,
  .strategy-target-head,
  .strategy-gap-head,
  .strategy-trend-head {
    display: none;
  }

  .strategy-settings-grid {
    grid-template-columns: 1fr;
  }

  .student-record-controls,
  .student-record-browser-controls,
  .student-record-elective-grid,
  .student-record-score {
    grid-template-columns: 1fr;
  }

  .student-record-comparison-head {
    display: none;
  }

  .student-record-comparison-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .student-record-comparison-row > div {
    border-right: 0;
  }

  .student-record-comparison-rule {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .student-record-criteria-row {
    grid-template-columns: 1fr;
  }

  .student-record-criteria-route {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .student-record-score > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .student-record-course-row {
    grid-template-columns: 28px repeat(2, minmax(0, 1fr)) 40px;
  }

  .student-record-course-number {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .student-record-course-name {
    grid-column: 2 / 4;
  }

  .student-record-course-term {
    grid-column: 2 / 4;
  }

  .student-record-course-row > label:nth-of-type(3) {
    grid-column: 2;
  }

  .student-record-course-row > label:nth-of-type(4) {
    grid-column: 3;
  }

  .student-record-course-remove {
    grid-column: 4;
    grid-row: 1;
  }

  .student-record-course-row > label:last-of-type {
    grid-column: 2 / 4;
  }

  .student-record-course-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .student-record-course-actions > span {
    flex-basis: 100%;
    text-align: right;
  }

  .student-record-bulk-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .student-record-bulk-actions label {
    flex-basis: 100%;
  }

  .student-record-bulk-actions span {
    align-self: center;
  }

  .student-record-selection-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-record-selection-summary span {
    text-align: left;
  }

  .strategy-year-grid {
    grid-template-columns: 1fr;
  }

  .strategy-year-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .strategy-year-card:last-child {
    border-bottom: 0;
  }

  .strategy-explorer-toolbar {
    grid-template-columns: 1fr;
  }

  .strategy-settings-grid .strategy-input-panel:has(details[open]) {
    grid-column: auto;
  }

  .strategy-explore-row,
  .strategy-target-row,
  .strategy-gap-row,
  .strategy-trend-row,
  .strategy-score-change-row {
    grid-template-columns: 1fr;
  }

  .strategy-explore-row > div,
  .strategy-target-row > div,
  .strategy-gap-row > div,
  .strategy-trend-row > div,
  .strategy-score-change-row > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid #e0e5e6;
  }

  .strategy-explore-row > div::before,
  .strategy-target-row > div::before,
  .strategy-gap-row > div::before,
  .strategy-trend-row > div::before,
  .strategy-score-change-row > div::before {
    content: attr(data-label);
    display: block;
    grid-row: 1 / span 2;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  .strategy-score-change-head {
    display: none;
  }

  .strategy-score-change-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .strategy-row-actions {
    display: flex !important;
    flex-wrap: wrap;
  }

  .strategy-row-actions::before {
    flex: 0 0 100%;
  }

  .subject-board-row,
  .subject-school-row,
  .subject-prep-row {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .subject-board-row > div,
  .subject-school-row > div,
  .subject-prep-row > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid #e0e5e6;
  }

  .subject-board-row > div::before,
  .subject-school-row > div::before,
  .subject-prep-row > div::before {
    display: block;
    grid-row: 1 / span 2;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  .subject-row-actions {
    display: flex !important;
  }

  .subject-row-actions::before {
    flex: 0 0 100%;
  }

  .overview-subject-context {
    grid-template-columns: 1fr;
  }

  .overview-context-label {
    flex-direction: row;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid #d7dddf;
  }

  .overview-admission-board .admission-board-head {
    display: none;
  }

  .overview-admission-board .overview-board-row {
    min-width: 0;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .overview-admission-board .overview-board-row > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid #e0e5e6;
    padding: 10px 12px;
  }

  .overview-admission-board .overview-board-row > div::before {
    display: block;
    grid-row: 1 / span 2;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .overview-route-list-head {
    display: none;
  }

  .overview-route-list > article {
    grid-template-columns: 1fr;
  }

  .overview-route-list > article > div,
  .overview-route-list > article > strong,
  .overview-route-list > article > p {
    border-right: 0;
    border-bottom: 1px solid #e0e5e6;
  }

  .overview-route-list > article > [data-label]::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  .overview-route-list .route-source-line::before {
    flex-basis: 100%;
  }

  .university-directory-head,
  .university-unit-head {
    display: none;
  }

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

  .school-item .school-name {
    grid-column: 1 / -1;
  }

  .school-item .school-open {
    display: none;
  }

  .school-row-wrap {
    padding-bottom: 42px;
    border-bottom: 1px solid #d7dddf;
  }

  .school-row-wrap .school-item {
    border-bottom: 0;
  }

  .school-compare-toggle {
    top: auto;
    right: 10px;
    bottom: 6px;
    transform: none;
  }

  .university-summary-row,
  .university-readout-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .university-summary-row div:nth-child(2n),
  .university-readout-row p:nth-child(2n) {
    border-right: 0;
  }

  .university-focus-head {
    align-items: flex-start;
  }

  .university-unit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .university-unit-row .unit-primary,
  .university-unit-row > div:nth-child(5),
  .university-unit-row > .unit-details {
    grid-column: 1 / -1;
  }

  .university-major-head,
  .university-major-route-head {
    display: none;
  }

  .university-major-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .university-major-summary .university-major-name {
    grid-column: 1 / -1;
  }

  .university-major-summary .university-major-open {
    grid-column: 1 / -1;
    min-height: 34px;
    border-top: 1px solid #e0e5e6;
  }

  .university-major-subjects,
  .university-major-routes > article {
    grid-template-columns: 1fr;
  }

  .university-major-subjects p,
  .university-major-routes > article > div,
  .university-major-routes > article > strong,
  .university-major-routes > article > p {
    border-right: 0;
    border-bottom: 1px solid #e0e5e6;
  }

  .university-major-routes > article > [data-label]::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
  }

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

  .readout-grid,
  .university-route-board,
  .unit-detail-grid,
  .subject-change-grid,
  .overview-focus-metrics,
  .overview-focus-grid,
  .sibling-route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subject-workbench,
  .subject-prep-panel,
  .subject-focus-card p {
    grid-column: auto;
  }

  .topbar {
    display: grid;
  }

  .status-strip {
    justify-content: stretch;
  }

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

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

  .admission-board-head {
    display: none;
  }

  .admission-board-row {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .admission-board-row > div {
    border-right: 0;
    border-bottom: 1px solid #e4e9ea;
    padding: 9px 0;
  }

  .admission-board-row > div:last-child {
    border-bottom: 0;
  }

  .overview-route-list > article {
    grid-template-columns: 1fr;
  }

  .route-source-line {
    justify-content: flex-start;
  }

  .board-university,
  .board-group,
  .board-major {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .workspace,
  .sidebar {
    padding: 18px;
  }

  .nav-tabs {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 24px;
  }

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

  .mock-save-row {
    align-items: stretch;
    flex-direction: column;
  }

  .strategy-target-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .strategy-target-toolbar .segmented {
    overflow-x: auto;
  }

  .strategy-target-summary {
    justify-content: flex-start;
  }

  .compare-matrix-row {
    grid-template-columns: 104px repeat(var(--compare-count), minmax(220px, 1fr));
  }

  .school-compare-row {
    grid-template-columns: 104px repeat(var(--school-compare-count), minmax(220px, 1fr));
  }

  .school-compare-tray {
    align-items: stretch;
    flex-direction: column;
  }

  .school-compare-tray-actions .secondary-button,
  .school-compare-tray-actions .primary-button {
    flex: 1;
  }

  .compare-matrix-row > strong,
  .compare-matrix-row > div,
  .compare-matrix-head > article {
    padding: 10px;
  }

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

  .subject-summary-selection,
  .subject-summary-groups {
    grid-column: auto;
  }

  .subject-summary-row > div {
    border-right: 0;
    border-bottom: 1px solid #d7dddf;
  }

  .subject-board-row > div,
  .subject-school-row > div,
  .subject-prep-row > div,
  .strategy-explore-row > div,
  .strategy-target-row > div,
  .strategy-gap-row > div,
  .strategy-trend-row > div,
  .strategy-score-change-row > div {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .strategy-score-change-row {
    grid-template-columns: 64px 56px 56px minmax(88px, 1fr);
  }

  .strategy-score-change-row > div {
    display: block;
    padding: 8px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .strategy-score-change-row > div::before {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
  }

  .strategy-score-change-row > div:nth-child(5) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .strategy-trend-head {
    display: none;
  }

  .strategy-trend-row {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-trend-row > div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .strategy-trend-row > div::before {
    display: block;
  }

  .strategy-trend-row > div:first-child {
    grid-column: 1 / -1;
  }

  .strategy-trend-row > div:nth-child(2n + 1) {
    border-right: 0;
  }

  .strategy-trend-row > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .strategy-gap-headline,
  .strategy-year-heading,
  .strategy-subject-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .strategy-year-card {
    padding: 14px;
  }

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

  .strategy-year-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .strategy-year-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .strategy-year-card.is-current .strategy-year-metrics > div {
    border-bottom: 0;
  }

  .strategy-year-details > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .overview-admission-board .overview-board-row > div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .card-grid,
  .quick-grid,
  .overview-result-grid,
  .university-card-grid,
  .compact-source-list {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .target-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .university-overview {
    grid-template-columns: 1fr;
  }

  .school-item,
  .university-summary-row,
  .university-readout-row,
  .university-unit-row {
    grid-template-columns: 1fr;
  }

  .school-item .school-name,
  .university-unit-row .unit-primary,
  .university-unit-row > div:nth-child(5),
  .university-unit-row > .unit-details,
  .university-readout-row > small {
    grid-column: auto;
  }

  .school-item > span,
  .university-summary-row div,
  .university-readout-row p,
  .university-unit-row > div {
    border-right: 0;
    border-bottom: 1px solid #e0e5e6;
  }

  .university-focus-head {
    flex-direction: column;
  }

  .university-source-actions {
    justify-content: flex-start;
  }

  .readout-grid,
  .university-route-board,
  .unit-detail-grid,
  .subject-change-grid,
  .overview-focus-metrics,
  .overview-focus-grid,
  .sibling-route-list {
    grid-template-columns: 1fr;
  }

  .university-stat.wide {
    grid-column: auto;
  }
}

.public-data-panel {
  display: grid;
  gap: 14px;
}

.table-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.public-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: #fff;
}

.public-summary-row > div {
  min-width: 0;
  border-right: 1px solid #d7dddf;
  padding: 14px;
}

.public-summary-row > div:last-child {
  border-right: 0;
}

.public-summary-row span,
.public-summary-row strong {
  display: block;
}

.public-summary-row span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.public-summary-row strong {
  color: #17262c;
  font-size: 20px;
}

.public-search {
  max-width: 520px;
}

.public-data-board {
  overflow-x: auto;
  border: 1px solid #cfd6d8;
  border-top: 3px solid rgba(22, 132, 124, 0.72);
  background: white;
}

.public-data-head,
.public-data-row {
  display: grid;
  min-width: 980px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(210px, 0.95fr) minmax(320px, 1.4fr) minmax(240px, 1.05fr);
}

.public-data-head {
  border-bottom: 1px solid #c6ced1;
  background: #f7f9f9;
}

.public-data-row {
  border-bottom: 1px solid #d7dddf;
}

.public-data-row:last-child {
  border-bottom: 0;
}

.public-data-head strong,
.public-data-row > div {
  min-width: 0;
  border-right: 1px solid #e0e5e6;
  padding: 12px;
  overflow-wrap: anywhere;
}

.public-data-head strong:last-child,
.public-data-row > div:last-child {
  border-right: 0;
}

.public-data-head strong {
  color: #26343a;
  font-size: 12px;
}

.public-data-row strong,
.public-data-row span {
  display: block;
}

.public-data-row strong {
  color: #17262c;
  font-size: 13px;
  line-height: 1.45;
}

.public-data-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .public-summary-row {
    grid-template-columns: 1fr;
  }

  .public-summary-row > div {
    border-right: 0;
    border-bottom: 1px solid #d7dddf;
  }

  .public-summary-row > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 1180px) {
  .rolling-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rolling-school-head,
  .rolling-route-head {
    display: none;
  }

  .rolling-school-row,
  .rolling-route-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rolling-school-row > span,
  .rolling-route-row > div {
    border-bottom: 1px solid var(--line);
  }

  .rolling-school-row > span::before,
  .rolling-route-row > div::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  .rolling-school-row .rolling-row-arrow {
    display: none;
  }
}

@media (max-width: 700px) {
  .rolling-guide-head,
  .rolling-detail-head,
  .rolling-guide-note,
  .rolling-science-note {
    align-items: stretch;
    flex-direction: column;
  }

  .rolling-filter-grid,
  .rolling-summary,
  .rolling-school-row,
  .rolling-route-row,
  .rolling-insight,
  .rolling-route-more > div {
    grid-template-columns: 1fr;
  }

  .rolling-summary > div,
  .rolling-school-row > span,
  .rolling-route-row > div {
    border-right: 0;
  }

  .rolling-compare-tray,
  .rolling-compare-head {
    align-items: stretch;
    flex-direction: column;
  }

  .rolling-compare-selection {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .rolling-compare-selection span {
    width: 100%;
  }

  .rolling-compare-actions .secondary-button,
  .rolling-compare-actions .primary-button {
    flex: 1;
  }

  .rolling-compare-row {
    grid-template-columns: 90px repeat(var(--rolling-compare-count), minmax(190px, 1fr));
  }

  .rolling-compare-matrix {
    min-width: var(--rolling-compare-mobile-width);
  }
}
