:root {
  --teal-900: #016d76;
  --teal-700: #00747b;
  --teal-500: #01b5b4;
  --text: #0c2d33;
  --muted: #648086;
  --surface: #ffffff;
  --surface-soft: #f4fcfc;
  --border: rgba(1, 109, 118, 0.12);
  --shadow: 0 25px 60px rgba(1, 109, 118, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(1, 181, 180, 0.18), transparent 24%),
    linear-gradient(135deg, #f7ffff 0%, #eef9fb 100%);
  transition: background 0.25s ease, color 0.25s ease;
}

body.theme-dark {
  color: #f4fcff;
  background:
    radial-gradient(circle at top left, rgba(1, 181, 180, 0.16), transparent 24%),
    linear-gradient(135deg, #07171b 0%, #0f2530 100%);
}

.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

body.theme-dark .topbar,
body.theme-dark .hero-card,
body.theme-dark .feature-card,
body.theme-dark .settings-panel,
body.theme-dark .settings-card,
body.theme-dark .icon-pill,
body.theme-dark .secondary-btn,
body.theme-dark .action-row a,
body.theme-dark .todo-list li {
  background: #13343d;
  color: #f4fcff;
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .hero-copy p,
body.theme-dark .feature-card p,
body.theme-dark .brand-subtitle,
body.theme-dark .panel-header p,
body.theme-dark .todo-count,
body.theme-dark .stats-list li,
body.theme-dark .hero-highlights span,
body.theme-dark .stats-list span,
body.theme-dark .brand-name,
body.theme-dark .hero-copy h1,
body.theme-dark .feature-card h3,
body.theme-dark .settings-card h3,
body.theme-dark .settings-header h2,
body.theme-dark .theme-option p,
body.theme-dark .eyebrow,
body.theme-dark .page-hero p,
body.theme-dark .message-card p,
body.theme-dark .profile-card p,
body.theme-dark .message-card h3,
body.theme-dark .profile-card h3,
body.theme-dark .settings-card h3,
body.theme-dark .page-hero h1,
body.theme-dark .action-row a,
body.theme-dark .settings-actions button,
body.theme-dark .theme-option strong {
  color: #ffffff;
}

body.theme-dark .privacy-copy,
body.theme-dark .chip-list li,
body.theme-dark .message-accent,
body.theme-dark .message-card .message-accent {
  color: #016d76 !important;
}

body.theme-dark .hero-highlights strong {
  color: #016d76;
}

body.theme-dark .hero-highlights span {
  color: #016d76;
}

body.theme-dark .primary-btn {
  box-shadow: 0 12px 24px rgba(1, 181, 180, 0.25);
}

body.theme-dark .secondary-btn,
body.theme-dark .action-row a,
body.theme-dark .settings-actions button,
body.theme-dark .theme-option,
body.theme-dark .hero-highlights div,
body.theme-dark .settings-card,
body.theme-dark .profile-card,
body.theme-dark .message-card,
body.theme-dark .page-hero {
  background: #ffffff;
  color: #016d76;
}

body.theme-dark .theme-option strong,
body.theme-dark .theme-option p,
body.theme-dark .message-card h3,
body.theme-dark .profile-card h3,
body.theme-dark .settings-card h3,
body.theme-dark .page-hero h1,
body.theme-dark .page-hero p {
  color: #016d76;
}

body.theme-dark .hero-highlights div {
  background: #f4fcfc;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 20px rgba(1, 109, 118, 0.16);
}

.brand-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--teal-900);
}

.brand-subtitle {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 10px;
}

.icon-pill {
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: var(--surface-soft);
  color: var(--teal-900);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(1, 109, 118, 0.08);
}

.dashboard-grid {
  margin-top: 24px;
  display: grid;
  gap: 22px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 24px;
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,252,252,0.96));
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(1, 181, 180, 0.12);
  color: var(--teal-900);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
  color: var(--text);
}

.hero-copy p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.secondary-btn,
.card-link {
  text-decoration: none;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-900));
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(1, 181, 180, 0.25);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--teal-900);
  background: white;
  border: 1px solid rgba(1, 109, 118, 0.16);
  font-weight: 700;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hero-highlights div {
  min-width: 112px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.hero-highlights strong {
  display: block;
  font-size: 1rem;
  color: var(--teal-900);
}

.hero-highlights span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-panel {
  display: flex;
  align-items: stretch;
}

.panel-card {
  width: 100%;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--teal-900), var(--teal-700));
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255,255,255,0.16);
}

.panel-header h2 {
  margin: 0 0 2px;
  font-size: 1.2rem;
}

.panel-header p {
  margin: 0;
  color: rgba(255,255,255,0.78);
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.mini-stat {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
}

.mini-stat span {
  display: block;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.8);
}

.mini-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
}

.progress-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  width: 86%;
  height: 100%;
  background: linear-gradient(90deg, #7cf0db, white);
  border-radius: inherit;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 35px rgba(1, 109, 118, 0.09);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 1.15rem;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.planner-card {
  display: grid;
  gap: 16px;
}

.planner-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.planner-header-row h3 {
  margin: 0;
}

.planner-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(1, 181, 180, 0.12);
  color: var(--teal-900);
  font-size: 0.72rem;
  font-weight: 700;
}

.planner-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.planner-cta-row {
  display: flex;
  align-items: center;
}

.planner-page-btn {
  margin-top: 0;
}

.college-search-page {
  display: grid;
  gap: 18px;
}

.college-search-panel {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.college-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(140px, 180px) auto;
  gap: 10px;
}

.large-grid {
  grid-template-columns: minmax(0, 2.4fr) minmax(160px, 200px) auto;
}

.college-search-grid input,
.college-search-grid select,
.college-search-grid button {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(1, 109, 118, 0.16);
  font: inherit;
}

.college-search-grid input,
.college-search-grid select {
  padding: 0 14px;
  background: rgba(255,255,255,0.9);
  color: var(--text);
}

.college-search-grid button {
  padding: 0 18px;
  border: none;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-900));
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.college-results,
.college-results-page {
  display: grid;
  gap: 14px;
}

.college-result-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(1, 109, 118, 0.12);
  box-shadow: 0 16px 30px rgba(1, 109, 118, 0.07);
}

.college-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.college-result-header h4 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.college-result-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.college-tag {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(1, 181, 180, 0.12);
  color: var(--teal-900);
  font-size: 0.7rem;
  font-weight: 700;
}

.college-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.college-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.college-stat-grid div {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.college-stat-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.college-stat-grid span {
  color: var(--text);
  font-weight: 700;
}

.college-result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.college-result-card a,
.save-college-btn {
  color: var(--teal-900);
  text-decoration: none;
  font-weight: 700;
}

.save-college-btn {
  border: 1px solid rgba(1, 109, 118, 0.2);
  background: white;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.college-empty-state {
  border: 1px dashed rgba(1, 109, 118, 0.22);
  background: rgba(255,255,255,0.65);
  border-radius: 14px;
  padding: 16px;
}

.college-empty-state strong {
  display: block;
  color: var(--teal-900);
  margin-bottom: 4px;
}

.college-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal-900);
  font-weight: 700;
}

.accent-blue {
  background: linear-gradient(135deg, rgba(1, 181, 180, 0.14), rgba(255,255,255,0.95));
}

.accent-teal {
  background: linear-gradient(135deg, rgba(0, 116, 123, 0.12), rgba(255,255,255,0.95));
}

.accent-cyan {
  background: linear-gradient(135deg, rgba(1, 109, 118, 0.12), rgba(255,255,255,0.95));
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(1, 109, 118, 0.1);
  color: var(--text);
}

.todo-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.todo-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.todo-list input {
  accent-color: var(--teal-500);
  margin-right: 10px;
}

.todo-count {
  margin-top: 12px;
  color: var(--teal-900);
  font-weight: 700;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.action-row a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--teal-900);
  font-weight: 600;
}

.settings-view {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 15, 20, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 30;
}

.settings-view.show {
  opacity: 1;
  pointer-events: auto;
}

.settings-panel {
  width: min(640px, 100%);
  padding: 24px;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.settings-header h2 {
  margin: 6px 0 0;
  font-size: 1.45rem;
}

.close-btn {
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--teal-900);
  font-size: 1rem;
  cursor: pointer;
}

.settings-content {
  display: grid;
  gap: 16px;
}

.settings-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.settings-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.theme-options {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.theme-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.theme-option.active {
  border-color: var(--teal-500);
  box-shadow: 0 8px 20px rgba(1, 181, 180, 0.12);
}

.theme-option span {
  font-size: 1.15rem;
}

.theme-option strong {
  display: block;
  margin-bottom: 2px;
}

.theme-option p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.settings-actions button {
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  color: var(--teal-900);
  font-weight: 700;
  cursor: pointer;
}

 .subpage-shell {
  display: grid;
  gap: 24px;
}

.subpage-stack {
  display: grid;
  gap: 22px;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,252,252,0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.settings-grid,
.profile-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-card,
.profile-card,
.message-card,
.about-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(1, 109, 118, 0.08);
}

.toggle-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.toggle-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.chip-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--teal-900);
  font-weight: 600;
}

.message-board {
  display: grid;
  gap: 14px;
}

.message-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.message-card.active {
  border-color: rgba(1, 181, 180, 0.38);
  background: linear-gradient(135deg, rgba(1, 181, 180, 0.15), rgba(255,255,255,0.95));
}

.message-card h3 {
  margin: 0 0 6px;
}

.message-card p {
  margin: 0;
  color: var(--muted);
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar.large {
  width: 68px;
  height: 68px;
  font-size: 1.25rem;
}

.about-card-featured,
.about-founder-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 250px;
  background: rgba(255,255,255,0.94);
  border-top: 3px solid var(--teal-500);
}

.about-founder-card h2 {
  margin-bottom: 12px;
  line-height: 1.25;
}

.about-founder-card .about-placeholder {
  max-width: 58ch;
}

.about-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  grid-column: 1 / -1;
  padding: 18px 22px;
  background: var(--surface-soft);
  box-shadow: none;
}

.about-contact-card h2 {
  margin-bottom: 0;
}

.about-contact-card .about-placeholder {
  margin: 0;
}

.about-instagram-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal-900);
  font-weight: 800;
  text-decoration: none;
}

.about-instagram-link:hover,
.about-instagram-link:focus-visible {
  text-decoration: underline;
}

.about-avatar {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-900));
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
}

.about-label {
  margin: 0 0 6px;
  color: var(--teal-900);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.about-card p {
  color: var(--muted);
  line-height: 1.65;
}

.about-placeholder {
  margin: 0;
}

.about-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-grid,
  .profile-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px 14px 32px;
  }

  .topbar {
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
  }

  .brand-block {
    min-width: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .brand-name,
  .brand-subtitle {
    overflow-wrap: anywhere;
  }

  .top-actions {
    flex-shrink: 0;
    gap: 6px;
  }

  .icon-pill {
    width: 40px;
    height: 40px;
  }

  .hero-card,
  .feature-card,
  .college-search-panel,
  .college-result-card,
  .settings-card,
  .profile-card,
  .message-card,
  .about-card {
    padding: 16px;
  }

  .hero-card {
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-copy p {
    line-height: 1.6;
  }

  .hero-actions,
  .hero-actions a,
  .planner-cta-row,
  .planner-cta-row a,
  .page-hero > a,
  .college-result-actions {
    width: 100%;
  }

  .hero-actions,
  .college-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .save-college-btn {
    min-height: 46px;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-highlights div {
    min-width: 0;
    padding: 10px;
  }

  .hero-highlights strong {
    font-size: 0.95rem;
  }

  .hero-highlights span {
    display: block;
    overflow-wrap: anywhere;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
    border-radius: 22px;
  }

  .page-hero h1 {
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .about-card-featured,
  .about-founder-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-founder-card {
    min-height: 0;
  }

  .about-contact-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

  .college-search-grid,
  .large-grid {
    grid-template-columns: 1fr;
  }

  .college-search-grid input,
  .college-search-grid select,
  .college-search-grid button {
    width: 100%;
  }

  .college-result-header,
  .message-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .college-tag {
    align-self: flex-start;
  }

  .college-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .college-result-actions {
    gap: 10px;
  }

  .college-result-actions a,
  .save-college-btn {
    text-align: center;
    width: 100%;
  }

  .stats-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .settings-view {
    padding: 12px;
  }

  .settings-panel {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 22px;
  }
}

@media (max-width: 400px) {
  .topbar {
    flex-direction: column;
  }

  .top-actions {
    align-self: flex-end;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .college-stat-grid {
    grid-template-columns: 1fr;
  }
}
