/* Dream Education landing-page art direction.
   Presentation-only overrides for the existing landing page; all controls and handlers remain untouched. */
.app-shell > main {
  background: #fbfcf8;
  color: #123d35;
}
.app-shell > main .hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(500px, 67vw, 690px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 35%, rgba(139, 205, 153, .32), transparent 34%),
    radial-gradient(ellipse at 66% 86%, rgba(214, 239, 211, .82), transparent 38%),
    linear-gradient(115deg, #fbfcf7 0%, #f3f9f0 53%, #e4f4e5 100%);
  border-bottom: 1px solid #e1eee3;
}
.app-shell > main .hero-background {
  inset: 0 0 0 45%;
  opacity: .85;
  pointer-events: none;
}
.app-shell > main .orb {
  border: 1px solid rgba(21, 133, 83, .12);
  background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(120,195,145,.08));
  box-shadow: 0 24px 80px rgba(25, 110, 72, .08);
}
.app-shell > main .orb-a { width: min(38vw, 490px); height: min(38vw, 490px); }
.app-shell > main .orb-b { width: min(25vw, 320px); height: min(25vw, 320px); }
.app-shell > main .orb-c { width: min(15vw, 190px); height: min(15vw, 190px); }
.app-shell > main .grid-floor {
  opacity: .13;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.app-shell > main .hero-content {
  width: min(100% - 56px, 1240px);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 105px) 0;
}
.app-shell > main .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #08784a;
  background: #e8f7e9;
  border: 1px solid #cdebd2;
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}
.app-shell > main .status-dot { background: #15945a; box-shadow: 0 0 0 4px rgba(21,148,90,.12); }
.app-shell > main .hero h1 {
  max-width: 780px;
  margin: 25px 0 18px;
  color: #103f36;
  font-size: clamp(3rem, 7.4vw, 6.3rem);
  line-height: .99;
  font-weight: 850;
  letter-spacing: -.065em;
}
.app-shell > main .hero h1 span {
  display: block;
  color: #0a8a50;
  background: linear-gradient(100deg, #07864e, #39a66a);
  -webkit-background-clip: text;
  background-clip: text;
}
.app-shell > main .hero-copy {
  max-width: 570px;
  color: #46665d;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.75;
}
.app-shell > main .hero-primary {
  min-height: 50px;
  padding: 0 23px;
  color: #fff;
  border: 1px solid #0b8a50;
  background: linear-gradient(110deg, #079653, #087647);
  box-shadow: 0 10px 24px rgba(8, 125, 71, .18);
}
.app-shell > main .hero-secondary {
  min-height: 50px;
  padding: 0 22px;
  color: #11634a;
  background: rgba(255,255,255,.78);
  border: 1px solid #b9dfc5;
}
.app-shell > main .hero-secondary:hover {
  color: #075d3b;
  background: #fff;
  border-color: #68b98a;
}
.app-shell > main .hero-note {
  color: #41675b;
  font-size: 12px;
}
.app-shell > main .hero-note i { background: #8dbca0; }
.app-shell > main .dream-search-section {
  padding: clamp(42px, 6vw, 76px) 24px;
  background: linear-gradient(180deg, #fbfcf8, #f1f7ef);
}
.app-shell > main .dream-search-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(25px, 5vw, 54px);
  border: 1px solid #dfebdf;
  border-radius: 28px;
  color: #153f35;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(207,239,211,.55), transparent 45%),
    linear-gradient(145deg, #fff, #f6faf3);
  box-shadow: 0 22px 60px rgba(29, 76, 47, .07);
}
.app-shell > main .dream-search-kicker {
  display: inline-block;
  color: #0b8650;
  font-weight: 800;
  letter-spacing: .13em;
}
.app-shell > main .dream-search-title {
  color: #123f35;
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -.055em;
}
.app-shell > main .dream-search-title em {
  color: #0a8c50;
  font-style: normal;
}
.app-shell > main .dream-search-copy { color: #577168; line-height: 1.7; }
.app-shell > main .dream-search-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid #d4e5d7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(29,76,47,.07);
}
.app-shell > main .dream-search-box input {
  color: #163f35;
  background: transparent;
}
.app-shell > main .dream-search-box input::placeholder { color: #82998c; }
.app-shell > main .dream-search-button {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(110deg, #079653, #087647);
  border-radius: 12px;
  box-shadow: none;
}
.app-shell > main .dream-search-modes { margin-top: 14px; }
.app-shell > main .dream-search-modes button {
  color: #176c4c;
  border: 1px solid #c8e4cf;
  background: #edf8ed;
}
.app-shell > main .dream-search-status { color: #587367; }
.app-shell > main .dream-search-result {
  color: #153f35;
  background: #fff;
  border-color: #dfebdf;
}
@media (min-width: 900px) {
  .app-shell > main .hero-content { padding-right: 38%; }
  .app-shell > main .hero-background { inset-left: 42%; }
}
@media (max-width: 760px) {
  .app-shell > main .hero { min-height: 0; }
  .app-shell > main .hero-content {
    width: calc(100% - 36px);
    padding: 56px 0 48px;
  }
  .app-shell > main .hero-background { inset: 0; opacity: .45; }
  .app-shell > main .hero h1 { font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .app-shell > main .hero-copy { font-size: 1rem; }
  .app-shell > main .hero-actions { align-items: stretch; }
  .app-shell > main .hero-actions button { min-height: 48px; }
  .app-shell > main .dream-search-section { padding: 30px 16px; }
  .app-shell > main .dream-search-shell { padding: 24px 18px; border-radius: 22px; }
  .app-shell > main .dream-search-box { align-items: stretch; }
  .app-shell > main .dream-search-button { padding: 0 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell > main .hero *, .app-shell > main .dream-search-section * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Visibility and touch-target correction: keep every existing landing action obvious. */
.app-shell > header.navbar {
  z-index: 30;
}
.app-shell > header.navbar .nav-center button,
.app-shell > header.navbar .nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  color: #eaf6ee;
  opacity: 1;
  visibility: visible;
  font-weight: 650;
}
.app-shell > header.navbar .nav-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: #fff;
  background: #087647;
  border: 2px solid #087647;
  opacity: 1;
  visibility: visible;
}
.app-shell > main .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 4;
}
.app-shell > main .hero-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  opacity: 1;
  visibility: visible;
  cursor: pointer;
  white-space: normal;
  box-shadow: 0 5px 16px rgba(10, 55, 35, .12);
}
.app-shell > main .hero-actions > .hero-primary {
  color: #fff;
  background: #087647;
  border: 2px solid #087647;
}
.app-shell > main .hero-actions > .hero-secondary {
  color: #075b3c;
  background: #fff;
  border: 2px solid #75b98d;
}
.app-shell > main .hero-actions > button:focus-visible,
.app-shell > main .dream-search-box button:focus-visible,
.app-shell > header.navbar button:focus-visible {
  outline: 3px solid #a15c00;
  outline-offset: 3px;
}
.app-shell > main .dream-search-box {
  align-items: stretch;
}
.app-shell > main .dream-search-box input {
  flex: 1 1 220px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  color: #163f35;
  background: #fff;
}
.app-shell > main .dream-search-box > button,
.app-shell > main .dream-search-modes > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: #fff;
  background: #087647;
  border: 2px solid #087647;
  border-radius: 12px;
  font-weight: 750;
  opacity: 1;
  visibility: visible;
}
.app-shell > main .dream-search-modes > button {
  color: #075b3c;
  background: #fff;
  border-color: #75b98d;
}
@media (max-width: 760px) {
  .app-shell > header.navbar {
    min-height: 70px;
    height: auto;
    padding: 12px 18px;
    gap: 10px;
  }
  .app-shell > header.navbar .nav-center,
  .app-shell > header.navbar .nav-right {
    display: none;
  }
  .app-shell > header.navbar .mobile-menu {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(140, 224, 180, .55);
    background: #123d35;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 35;
  }
  .app-shell > main .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
  .app-shell > main .hero-actions > button {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    padding: 14px 18px;
    text-align: left;
  }
  .app-shell > main .dream-search-box {
    flex-direction: column;
  }
  .app-shell > main .dream-search-box > button {
    width: 100%;
  }
}


/* Primary product destinations: visible, named entry points on desktop and mobile. */
.app-shell > main .dream-destinations {
  padding: clamp(38px, 6vw, 76px) 20px;
  background: #fff;
  color: #123d35;
  border-bottom: 1px solid #e1eee3;
}
.app-shell > main .dream-destinations-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}
.app-shell > main .dream-destinations-kicker {
  margin: 0 0 10px;
  color: #087647;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
}
.app-shell > main .dream-destinations h2 {
  margin: 0 0 10px;
  color: #123d35;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.app-shell > main .dream-destinations-copy {
  max-width: 650px;
  margin: 0 0 26px;
  color: #49675d;
  line-height: 1.65;
}
.app-shell > main .dream-destinations-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.app-shell > main .dream-destination-card {
  display: flex;
  min-width: 0;
  min-height: 184px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 17px;
  border: 1px solid #cfe3d2;
  border-radius: 18px;
  color: #123d35;
  background: #f7fbf5;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(18, 61, 53, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.app-shell > main .dream-destination-card:hover {
  transform: translateY(-3px);
  border-color: #4baf78;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 61, 53, .12);
}
.app-shell > main .dream-destination-card:focus-visible {
  outline: 3px solid #a15c00;
  outline-offset: 3px;
}
.app-shell > main .dream-destination-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #087647;
  font-size: 21px;
  font-weight: 800;
}
.app-shell > main .dream-destination-label {
  color: #123d35;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}
.app-shell > main .dream-destination-description {
  color: #49675d;
  font-size: 13px;
  line-height: 1.45;
}
.app-shell > main .dream-destination-arrow {
  margin-top: auto;
  align-self: flex-end;
  color: #087647;
  font-size: 20px;
  font-weight: 800;
}
@media (max-width: 980px) {
  .app-shell > main .dream-destinations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .app-shell > main .dream-destinations { padding: 34px 16px; }
  .app-shell > main .dream-destinations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-shell > main .dream-destination-card { min-height: 172px; padding: 15px 13px; border-radius: 15px; }
  .app-shell > main .dream-destination-label { font-size: 16px; }
  .app-shell > main .dream-destination-description { font-size: 12px; }
}
@media (max-width: 360px) {
  .app-shell > main .dream-destinations-grid { grid-template-columns: 1fr; }
  .app-shell > main .dream-destination-card { min-height: 140px; }
}


/* Landing page usability correction: clear destination buttons, restrained search. */
.app-shell > main { display: flex; flex-direction: column; }
.app-shell > main > .dream-search-section { order: 0; }
.app-shell > main > .hero { order: 1; }
.app-shell > main > .dream-destinations { order: 2; }
.app-shell > main .dream-destinations { padding: 18px 20px; }
.app-shell > main .dream-destinations-kicker { display: block; margin: 0 0 5px; font-size: 11px; }
.app-shell > main .dream-destinations h2 { display: block; margin: 0 0 6px; font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.2; }
.app-shell > main .dream-destinations-copy { display: block; margin: 0 0 12px; font-size: 13px; line-height: 1.45; }
.app-shell > main .dream-destinations-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.app-shell > main .dream-destination-card { min-height: 72px; padding: 11px 12px; flex-direction: row; align-items: center; gap: 9px; border-radius: 12px; box-shadow: none; }
.app-shell > main .dream-destination-icon { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }
.app-shell > main .dream-destination-label { font-size: 14px; line-height: 1.2; }
.app-shell > main .dream-destination-description { display: none; }
.app-shell > main .dream-destination-arrow { display: inline; margin-left: auto; }
.app-shell > main .dream-search-section { padding: 22px 16px; }
.app-shell > main .dream-search-shell { width: min(100%, 720px); padding: 20px 22px; border-radius: 16px; }
.app-shell > main .dream-search-kicker { font-size: 10px; letter-spacing: .1em; }
.app-shell > main .dream-search-title { font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.12; margin: 6px 0 8px; }
.app-shell > main .dream-search-copy { margin: 0 0 10px; font-size: 13px; line-height: 1.45; }
.app-shell > main .dream-search-box { padding: 4px; gap: 7px; border-radius: 12px; }
.app-shell > main .dream-search-box input, .app-shell > main .dream-search-box > button { min-height: 42px; }
.app-shell > main .dream-search-modes { margin-top: 8px; }
.app-shell > main .dream-search-status { margin-top: 5px; font-size: 12px; }
@media (max-width: 760px) {
  .app-shell > main .dream-destinations { padding: 14px 12px; }
  .app-shell > main .dream-destinations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-shell > main .dream-destination-card { min-height: 50px; padding: 8px 10px; }
  .app-shell > main .dream-destination-label { font-size: 13px; }
  .app-shell > main .dream-destination-arrow { display: none; }
  .app-shell > main .dream-search-section { padding: 14px 12px; }
  .app-shell > main .dream-search-shell { padding: 16px 14px; }
}
@media (max-width: 360px) {
  .app-shell > main .dream-destinations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell > main .dream-destination-card { min-height: 48px; }
}


/* Mobile-first landing repair: compact search at top, actions in middle, destinations at bottom. */
@media (max-width: 760px) {
  .app-shell > main {
    display: flex !important;
    flex-direction: column !important;
  }
  .app-shell > main > .dream-search-section { order: 0 !important; padding: 10px 12px 14px !important; }
  .app-shell > main > .hero { order: 1 !important; min-height: 0 !important; }
  .app-shell > main > .dream-destinations { order: 2 !important; padding: 14px 12px 22px !important; }
  .app-shell > main .dream-search-shell {
    width: 100% !important;
    padding: 12px !important;
    border-radius: 14px !important;
    box-shadow: none !important;
  }
  .app-shell > main .dream-search-title { display: none !important; }
  .app-shell > main .dream-search-copy { margin: 3px 0 9px !important; font-size: 12px !important; line-height: 1.35 !important; }
  .app-shell > main .dream-search-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 5px !important;
    border-radius: 12px !important;
  }
  .app-shell > main .dream-search-box input {
    display: block !important;
    flex: 1 1 auto !important;
    width: 1% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .app-shell > main .dream-search-box > button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 76px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
  }
  .app-shell > main .dream-search-modes,
  .app-shell > main .dream-search-status { display: none !important; }
  .app-shell > main .hero-content {
    width: calc(100% - 32px) !important;
    padding: 24px 0 22px !important;
  }
  .app-shell > main .status-pill,
  .app-shell > main .hero-note { display: none !important; }
  .app-shell > main .hero h1 {
    margin: 0 0 10px !important;
    font-size: clamp(2.1rem, 9vw, 3rem) !important;
    line-height: 1.02 !important;
  }
  .app-shell > main .hero-copy { margin: 0 0 14px !important; font-size: 14px !important; line-height: 1.45 !important; }
  .app-shell > main .hero-actions { gap: 8px !important; }
  .app-shell > main .hero-actions > button {
    min-height: 44px !important;
    height: auto !important;
    padding: 11px 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }
  .app-shell > main .dream-destinations-kicker,
  .app-shell > main .dream-destinations h2,
  .app-shell > main .dream-destinations-copy { display: none !important; }
  .app-shell > main .dream-destinations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .app-shell > main .dream-destination-card {
    display: flex !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 8px 10px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 10px !important;
  }
  .app-shell > main .dream-destination-icon { flex: 0 0 28px !important; width: 28px !important; height: 28px !important; }
  .app-shell > main .dream-destination-label { font-size: 13px !important; }
}


/* Make all landing-page action and destination buttons consistently green. */
.app-shell > main .hero-actions > .hero-primary,
.app-shell > main .hero-actions > .hero-secondary,
.app-shell > main .dream-search-box > button,
.app-shell > main .dream-search-modes > button,
.app-shell > main .dream-destination-card {
  color: #fff !important;
  background: #087647 !important;
  border-color: #087647 !important;
}
.app-shell > main .hero-actions > .hero-secondary:hover,
.app-shell > main .dream-search-modes > button:hover,
.app-shell > main .dream-destination-card:hover {
  color: #fff !important;
  background: #06613a !important;
  border-color: #06613a !important;
}
.app-shell > main .dream-destination-label,
.app-shell > main .dream-destination-description,
.app-shell > main .dream-destination-arrow {
  color: #fff !important;
}
.app-shell > main .dream-destination-icon {
  color: #087647 !important;
  background: #fff !important;
}
.app-shell > main .hero-actions > button:focus-visible,
.app-shell > main .dream-search-box button:focus-visible,
.app-shell > main .dream-search-modes > button:focus-visible,
.app-shell > main .dream-destination-card:focus-visible {
  outline: 3px solid #9ee6ba !important;
  outline-offset: 3px !important;
}


/* Rainbow-purple accent for Learn, Teach, AI Lab, Connect and About Dream. */
.app-shell > main .dream-destination-card[data-panel="learn"],
.app-shell > main .dream-destination-card[data-panel="teach"],
.app-shell > main .dream-destination-card[data-panel="tools"],
.app-shell > main .dream-destination-card[data-panel="connect"],
.app-shell > main .dream-destination-card[data-panel="about"] {
  color: #fff !important;
  background: linear-gradient(120deg, #6d28d9 0%, #9333ea 28%, #c026d3 55%, #7c3aed 78%, #4f46e5 100%) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: 0 5px 16px rgba(124,58,237,.22) !important;
}
.app-shell > main .dream-destination-card[data-panel="learn"] .dream-destination-label,
.app-shell > main .dream-destination-card[data-panel="teach"] .dream-destination-label,
.app-shell > main .dream-destination-card[data-panel="tools"] .dream-destination-label,
.app-shell > main .dream-destination-card[data-panel="connect"] .dream-destination-label,
.app-shell > main .dream-destination-card[data-panel="about"] .dream-destination-label,
.app-shell > main .dream-destination-card[data-panel="learn"] .dream-destination-description,
.app-shell > main .dream-destination-card[data-panel="teach"] .dream-destination-description,
.app-shell > main .dream-destination-card[data-panel="tools"] .dream-destination-description,
.app-shell > main .dream-destination-card[data-panel="connect"] .dream-destination-description,
.app-shell > main .dream-destination-card[data-panel="about"] .dream-destination-description,
.app-shell > main .dream-destination-card[data-panel="learn"] .dream-destination-arrow,
.app-shell > main .dream-destination-card[data-panel="teach"] .dream-destination-arrow,
.app-shell > main .dream-destination-card[data-panel="tools"] .dream-destination-arrow,
.app-shell > main .dream-destination-card[data-panel="connect"] .dream-destination-arrow,
.app-shell > main .dream-destination-card[data-panel="about"] .dream-destination-arrow {
  color: #fff !important;
}
.app-shell > main .dream-destination-card[data-panel="learn"] .dream-destination-icon,
.app-shell > main .dream-destination-card[data-panel="teach"] .dream-destination-icon,
.app-shell > main .dream-destination-card[data-panel="tools"] .dream-destination-icon,
.app-shell > main .dream-destination-card[data-panel="connect"] .dream-destination-icon,
.app-shell > main .dream-destination-card[data-panel="about"] .dream-destination-icon {
  color: #7c3aed !important;
  background: #fff !important;
}
.app-shell > main .dream-destination-card[data-panel="learn"]:hover,
.app-shell > main .dream-destination-card[data-panel="teach"]:hover,
.app-shell > main .dream-destination-card[data-panel="tools"]:hover,
.app-shell > main .dream-destination-card[data-panel="connect"]:hover,
.app-shell > main .dream-destination-card[data-panel="about"]:hover {
  filter: brightness(1.08);
}


/* Visibility-first repair for the five purple landing navigation buttons. */
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="learn"],
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="teach"],
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="tools"],
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="connect"],
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="about"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  color: #ffffff !important;
  background: linear-gradient(115deg, #6d28d9 0%, #9333ea 30%, #c026d3 58%, #7c3aed 80%, #4f46e5 100%) !important;
  border: 2px solid #a78bfa !important;
  box-shadow: 0 4px 14px rgba(109,40,217,.32) !important;
}
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="learn"] *,
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="teach"] *,
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="tools"] *,
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="connect"] *,
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="about"] * {
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
}
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="learn"] .dream-destination-icon,
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="teach"] .dream-destination-icon,
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="tools"] .dream-destination-icon,
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="connect"] .dream-destination-icon,
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="about"] .dream-destination-icon {
  color: #7c3aed !important;
  background: #ffffff !important;
}


/* Strong neutral background makes the purple navigation buttons stand out. */
.app-shell > main .dream-destinations {
  background: #f1f5f9 !important;
}
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="learn"],
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="teach"],
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="tools"],
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="connect"],
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="about"] {
  background: linear-gradient(115deg, #6d28d9 0%, #9333ea 30%, #c026d3 58%, #7c3aed 80%, #4f46e5 100%) !important;
  border-color: #6d28d9 !important;
  box-shadow: 0 5px 16px rgba(76,29,149,.28) !important;
  opacity: 1 !important;
}


/* Landing navigation contrast repair: opaque section, readable labels on phones. */
.app-shell > main .dream-destinations {
  background: #e2e8f0 !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  isolation: isolate;
}
.app-shell > main .dream-destinations-grid {
  opacity: 1 !important;
  filter: none !important;
}
.app-shell > main .dream-destinations-grid > button.dream-destination-card {
  min-height: 112px !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #fff !important;
  border-radius: 16px !important;
  text-shadow: none !important;
}
.app-shell > main .dream-destinations-grid > button.dream-destination-card .dream-destination-label {
  color: #fff !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}
.app-shell > main .dream-destinations-grid > button.dream-destination-card .dream-destination-description,
.app-shell > main .dream-destinations-grid > button.dream-destination-card .dream-destination-arrow {
  color: #fff !important;
  opacity: 1 !important;
}
.app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="school"] {
  background: #087647 !important;
  border: 2px solid #087647 !important;
  box-shadow: 0 5px 14px rgba(8,118,71,.22) !important;
}
@media (max-width: 700px) {
  .app-shell > main .dream-destinations {
    padding: 18px 14px 24px !important;
    margin-top: 18px !important;
    border-radius: 20px !important;
  }
  .app-shell > main .dream-destinations-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .app-shell > main .dream-destinations-grid > button.dream-destination-card {
    min-width: 0 !important;
    min-height: 116px !important;
    padding: 14px !important;
  }
}


/* 2026-10 mobile landing layout: actions first, compact search in the middle,
   and the six existing destination buttons in a persistent bottom navigation.
   CSS-only: preserve the original buttons, data-action handlers and app logic. */
@media (max-width: 760px) {
  body { padding-bottom: 0 !important; }
  .app-shell { overflow: visible !important; }
  .app-shell > header.navbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    min-height: 64px !important;
    background: #123d35 !important;
  }
  .app-shell > main > .hero { order: 0 !important; }
  .app-shell > main > .dream-search-section { order: 1 !important; }
  .app-shell > main > .dream-destinations {
    order: 2 !important;
    position: fixed !important;
    z-index: 60 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right)) !important;
    border: 0 !important;
    border-top: 1px solid #d3dce8 !important;
    border-radius: 16px 16px 0 0 !important;
    background: #ffffff !important;
    box-shadow: 0 -8px 28px rgba(19, 35, 55, .15) !important;
  }
  .app-shell > main { padding-bottom: 104px !important; }
  .app-shell > main .hero {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 14px 16px 18px !important;
  }
  .app-shell > main .hero-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .app-shell > main .hero-actions {
    order: -1 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 0 16px !important;
    width: 100% !important;
  }
  .app-shell > main .hero-actions > button {
    min-width: 0 !important;
    min-height: 44px !important;
    width: 100% !important;
    padding: 10px 11px !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    border-radius: 11px !important;
  }
  .app-shell > main .hero-actions > .hero-primary {
    grid-column: 1 / -1 !important;
  }
  .app-shell > main .hero h1 {
    margin: 0 0 8px !important;
    font-size: clamp(2rem, 8.5vw, 3rem) !important;
    line-height: 1.04 !important;
  }
  .app-shell > main .hero-copy {
    margin: 0 !important;
    max-width: 48rem !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .app-shell > main .dream-search-section {
    padding: 8px 12px 16px !important;
    background: #f1f5f9 !important;
  }
  .app-shell > main .dream-search-shell {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }
  .app-shell > main .dream-search-title,
  .app-shell > main .dream-search-copy,
  .app-shell > main .dream-search-modes,
  .app-shell > main .dream-search-status { display: none !important; }
  .app-shell > main .dream-search-kicker {
    display: block !important;
    margin: 0 0 7px !important;
    font-size: 10px !important;
  }
  .app-shell > main .dream-search-box {
    display: flex !important;
    flex-direction: row !important;
    gap: 7px !important;
    padding: 4px !important;
    border: 1px solid #d7e0eb !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }
  .app-shell > main .dream-search-box input {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 9px !important;
    font-size: 14px !important;
  }
  .app-shell > main .dream-search-box > button {
    width: auto !important;
    min-width: 62px !important;
    min-height: 40px !important;
    padding: 0 11px !important;
  }
  .app-shell > main .dream-destinations-inner { width: 100% !important; }
  .app-shell > main .dream-destinations-kicker,
  .app-shell > main .dream-destinations h2,
  .app-shell > main .dream-destinations-copy { display: none !important; }
  .app-shell > main .dream-destinations-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .app-shell > main .dream-destinations-grid > button.dream-destination-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 5px 1px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    text-align: center !important;
    background: #f0eaff !important;
    color: #51259a !important;
  }
  .app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="school"] {
    background: #e7f6ec !important;
    color: #075b3c !important;
    border-color: #c5e8d0 !important;
  }
  .app-shell > main .dream-destinations-grid > button.dream-destination-card .dream-destination-icon {
    display: grid !important;
    flex: 0 0 25px !important;
    width: 25px !important;
    height: 25px !important;
    font-size: 14px !important;
    border-radius: 7px !important;
    color: #7139c6 !important;
    background: #ffffff !important;
  }
  .app-shell > main .dream-destinations-grid > button.dream-destination-card[data-panel="school"] .dream-destination-icon {
    color: #087647 !important;
  }
  .app-shell > main .dream-destinations-grid > button.dream-destination-card .dream-destination-label {
    display: block !important;
    width: 100% !important;
    color: inherit !important;
    font-size: clamp(8px, 2.5vw, 10px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere !important;
  }
  .app-shell > main .dream-destinations-grid > button.dream-destination-card .dream-destination-description,
  .app-shell > main .dream-destinations-grid > button.dream-destination-card .dream-destination-arrow {
    display: none !important;
  }
  .app-shell > main .dream-destinations-grid > button.dream-destination-card:focus-visible {
    outline: 3px solid #087647 !important;
    outline-offset: 1px !important;
  }
}
@media (min-width: 761px) {
  .app-shell > main > .hero { order: 0 !important; }
  .app-shell > main > .dream-search-section { order: 1 !important; }
  .app-shell > main > .dream-destinations { order: 2 !important; }
}
