.talk-chat-section .privacy-note.is-secondary,
.talk-chat-section .chat-data-route:empty {
  display: none;
}

.talk-chat-section .chat-room-lead {
  display: none;
}

.talk-chat-section {
  scroll-margin-top: 5.5rem;
}

.home-talk-primary {
  width: fit-content;
  margin-top: 1.1rem;
  padding-inline: 1.2rem;
}

.orientation-chat-section .chat-data-route,
.orientation-chat-section .chat-ai-disclosure,
.orientation-chat-section .chat-bridge-notice {
  display: none;
}

.orientation-chat-section + .sentence-details-section {
  margin-top: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(183, 255, 106, 0.28);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(183, 255, 106, 0.15), transparent 25rem),
    #123f48;
  color: #f8f5ed;
}

.orientation-chat-section + .sentence-details-section .route-intro-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.orientation-chat-section + .sentence-details-section .route-intro-points article {
  min-height: 10rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: #dff1ec;
  color: #082f37;
}

.orientation-chat-section + .sentence-details-section .route-intro-points strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #082f37 !important;
  font-size: 1.02rem;
}

.orientation-chat-section + .sentence-details-section .route-intro-points p {
  color: #173f47 !important;
}

.orientation-chat-section + .sentence-details-section .route-intro-links {
  margin-top: 1rem;
}

.orientation-chat-section .orientation-examples {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(8, 47, 55, 0.18);
}

.orientation-chat-section .orientation-examples strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #c9ff6a;
}

.orientation-chat-section .orientation-examples ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.orientation-chat-section .orientation-examples li {
  position: relative;
  padding-left: 1.05rem;
  color: #f8f5ed;
  line-height: 1.42;
}

.orientation-chat-section .orientation-examples li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #c9ff6a;
  content: "";
}

.orientation-chat-section .orientation-examples p {
  margin-top: 0.75rem;
  color: rgba(248, 245, 237, 0.86);
  font-size: 0.9rem;
}

.readable-route-page > .route-intro-section:first-child {
  margin-top: 1rem;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border: 1px solid rgba(183, 255, 106, 0.26);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(183, 255, 106, 0.13), transparent 28rem),
    #123f48;
  color: #f8f5ed;
}

.readable-route-page > .route-intro-section:first-child .route-intro-copy .eyebrow {
  color: #c9ff6a;
}

.readable-route-page > .route-intro-section:first-child .route-intro-copy h1 {
  color: #ffffff;
}

.readable-route-page > .route-intro-section:first-child .route-intro-copy p:not(.eyebrow) {
  color: rgba(248, 245, 237, 0.9);
}

.readable-route-page > .route-intro-section:first-child .route-intro-points article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #dff1ec;
}

.readable-route-page > .route-intro-section:first-child .route-intro-points article strong,
.readable-route-page > .route-intro-section:first-child .route-intro-points article p {
  color: #ffffff !important;
}

.talk-chat-section .chat-room {
  grid-template-columns: minmax(16rem, 0.82fr) minmax(19rem, 1.18fr);
  grid-template-rows: auto auto auto;
  column-gap: 1rem;
  align-items: start;
  align-self: start;
  min-height: 0;
}

.talk-chat-section .chat-ai-disclosure {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 0.85rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(6, 31, 38, 0.04), rgba(6, 31, 38, 0.18)),
    url('/assets/topic-real-hesitation-v2.webp') center / cover no-repeat;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  color: transparent;
  font-size: 0;
}

.talk-chat-section .chat-ai-disclosure::before {
  display: none;
}

.talk-chat-section .chat-bridge-notice {
  display: none;
}

.talk-chat-section .chat-bridge-notice p {
  font-size: 0.92rem;
}

.talk-chat-section .chat-bridge-notice div {
  justify-content: flex-start;
}

.talk-chat-section .chat-bridge-notice a:first-child {
  border-color: #9f332c;
  background: #d55349;
  color: #fff;
  padding: 0.58rem 0.82rem;
  box-shadow: 0 0 0 0 rgba(213, 83, 73, 0.48);
  animation: help-chat-attention 1.5s ease-out 3;
}

.talk-chat-section .chat-bridge-notice a:first-child:hover,
.talk-chat-section .chat-bridge-notice a:first-child:focus-visible {
  background: #b94038;
  color: #fff;
}

.talk-chat-section .chat-log {
  grid-column: 2;
  grid-row: 1;
  min-height: 7rem;
  max-height: 22rem;
}

.talk-chat-section .chat-input-row {
  grid-column: 2;
  grid-row: 2;
}

.talk-chat-section .chat-copy > p:not(.eyebrow) {
  font-size: 1.03rem;
  line-height: 1.55;
}

@media (min-width: 761px) {
  .talk-chat-section {
    align-items: stretch;
  }

  .talk-chat-section .chat-room {
    align-self: stretch;
    height: 34rem;
    min-height: 34rem;
    max-height: 34rem;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .talk-chat-section .chat-ai-disclosure {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    aspect-ratio: auto;
    background-position: center;
  }

  .talk-chat-section .chat-log {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .talk-chat-section > .chat-external-options {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0;
  }

  .talk-chat-section > .chat-external-options .chat-external-project {
    height: 100%;
  }
}

.talk-chat-section .chat-log .bubble.intro,
.talk-chat-section .chat-log .bubble.assistant:first-child {
  max-width: min(34rem, 88%);
}

@keyframes help-chat-attention {
  0% { box-shadow: 0 0 0 0 rgba(213, 83, 73, 0.48); }
  70% { box-shadow: 0 0 0 0.65rem rgba(213, 83, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(213, 83, 73, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .talk-chat-section .chat-bridge-notice a:first-child {
    animation: none;
  }
}

@media (max-width: 760px) {
  .readable-route-page:has(> .talk-chat-section) {
    display: flex;
    flex-direction: column;
  }

  .readable-route-page:has(> .talk-chat-section) > .talk-chat-section {
    order: -1;
  }

  .readable-route-page:has(> .talk-chat-section) > .route-intro-section .route-intro-links a:first-child {
    display: none;
  }

  .home-talk-primary {
    width: 100%;
    min-height: 3.35rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 1.04rem;
  }

  .readable-route-page > .route-intro-section:first-child .route-intro-points {
    grid-template-columns: 1fr;
    grid-auto-columns: unset;
    grid-auto-flow: row;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .readable-route-page > .route-intro-section:first-child .route-intro-points article {
    width: 100%;
    min-height: 0;
  }

  .talk-chat-section .chat-room {
    order: -1;
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .talk-chat-section > .chat-external-options {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.85rem;
  }

  .talk-chat-section .chat-room-lead {
    order: 0;
    display: block;
    margin: 0.15rem 0 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.09);
    color: #f8f5ed;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.48;
  }

  .talk-chat-section .chat-room-lead strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #c9ff6a;
    font-size: 1.08rem;
    font-weight: 900;
  }

  .talk-chat-section .chat-room-lead span {
    color: #f8f5ed;
  }

  .talk-chat-section .chat-copy {
    order: 2;
  }

  .talk-chat-section .chat-ai-disclosure {
    order: 3;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
    margin: 1rem 0 0;
  }

  .talk-chat-section .chat-bridge-notice {
    order: 4;
    margin-top: 0.85rem;
  }

  .talk-chat-section .chat-log {
    order: 1;
    min-height: 6.5rem;
  }

  .talk-chat-section .chat-input-row {
    order: 2;
  }

  .orientation-chat-section {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .orientation-chat-section .chat-room {
    min-height: 15rem;
  }

  .orientation-chat-section + .sentence-details-section {
    padding: 1rem;
  }

  .orientation-chat-section + .sentence-details-section .route-intro-points {
    grid-template-columns: 1fr;
  }

  .orientation-chat-section + .sentence-details-section .route-intro-points article {
    min-height: 0;
  }

  .talk-chat-section .chat-bridge-notice {
    grid-template-columns: 1fr;
  }

  .talk-chat-section .chat-bridge-notice div {
    justify-content: flex-start;
  }

  .talk-chat-section .chat-bridge-notice a:first-child {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
