: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: 300px minmax(0, 1fr);
  min-height: 100vh;
}

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

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

.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: 28px;
}

.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: 14px;
  padding-top: 20px;
  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;
}

.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: 26px 28px 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: 18px;
}

.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: 0 10px 24px rgba(23, 32, 38, 0.05);
}

.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 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.compare-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.04);
}

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

.compare-summary-card strong {
  font-size: 18px;
}

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

.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: 12px;
  margin: 12px 0 16px;
}

.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;
}

.school-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.school-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  min-height: 118px;
}

.school-item:hover,
.school-item.is-active {
  border-color: rgba(22, 132, 124, 0.45);
  background: #eaf6f4;
}

.school-item.is-active {
  box-shadow: inset 0 0 0 2px rgba(22, 132, 124, 0.18);
}

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

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

.university-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

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

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

.compact-source-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-source-list .source-card {
  background: white;
}

.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-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
}

.university-stat.wide {
  grid-column: span 2;
}

.university-stat.status-note {
  background: #f6f8f8;
}

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

.university-stat strong {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.university-stat span {
  color: var(--muted);
  font-size: 12px;
}

.university-stat.status-note strong {
  font-size: 14px;
}

.university-readout {
  grid-column: 1 / -1;
  border: 1px solid rgba(22, 132, 124, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: #f7fbfa;
}

.university-readout h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

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

.readout-grid div {
  min-width: 0;
  border-left: 3px solid rgba(22, 132, 124, 0.28);
  padding-left: 10px;
}

.readout-grid strong,
.readout-grid span {
  display: block;
}

.readout-grid strong {
  margin-bottom: 3px;
  font-size: 12px;
}

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

.university-route-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.route-card {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 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: block;
}

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

.route-card span {
  color: var(--muted);
  font-size: 12px;
}

.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;
  margin: 2px 0 12px;
}

.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-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-prep-panel {
  grid-column: 1 / -1;
}

.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-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));
}

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

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

.strategy-dashboard {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.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: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfc;
}

.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;
}

.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;
}

@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-head,
  .strategy-metric-grid,
  .strategy-next-actions,
  .university-layout,
  .subject-card-grid,
  .compare-card-gridlet,
  .mock-grid {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .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));
  }
}

@media (max-width: 640px) {
  .workspace,
  .sidebar {
    padding: 18px;
  }

  .nav-tabs {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 24px;
  }

  .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;
  }

  .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;
  }
}
