[hidden] { display: none !important; }
.mode-screen, .psy-screen { min-height: 100vh; background: #f7f7f1; }
.mode-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 5vw, 5rem); min-height: 4.5rem; border-bottom: 1px solid var(--line); background: white; }
.mode-header > span { font-weight: 600; }
.mode-body, .psy-main { max-width: 72rem; margin: auto; padding: clamp(2rem, 5vw, 5rem) 1.25rem; }
.mode-body { max-width: 60rem; padding-top: clamp(3rem, 10vh, 8rem); }
.mode-body h1, .psy-main h1 { font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 4.8rem); margin-bottom: 1.8rem; }
.mode-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.mode-card { position: relative; display: grid; align-content: end; gap: .55rem; min-height: 16rem; padding: 2rem; text-align: left; border: 1px solid #d5e0d8; border-radius: 1.15rem; color: #204c44; background: #e8f1eb; }
.mode-card:hover { border-color: currentColor; }
.mode-card strong { font-family: Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 500; }
.mode-mark { color: inherit; margin-bottom: 1rem; font-family: Georgia, serif; font-size: 3rem; }
.mode-card b { position: absolute; right: 1.6rem; top: 1.5rem; font-size: 1.6rem; }
.psychology-choice { color: #50415d; background: #eee8f0; border-color: #dfd6e2; }
.psy-layout { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); gap: 1rem; align-items: start; }
.psy-topics, .psy-chat { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 2.5vw, 2rem); }
.psy-topics nav { display: grid; gap: .3rem; margin-top: 1rem; max-height: 55vh; overflow: auto; }
.psy-topic { border: 0; border-radius: .5rem; padding: .8rem; text-align: left; background: transparent; color: inherit; overflow-wrap: anywhere; }
.psy-topic[aria-current], .psy-topic:hover { background: #eee8f0; color: #50415d; }
.psy-chat header { border-bottom: 1px solid var(--line); padding-bottom: 1rem; overflow-wrap: anywhere; }
.psy-chat h2 { margin-bottom: .35rem; }
#psy-status { color: #5d675d; font-size: .88rem; }
.psy-message { max-width: 92%; width: fit-content; margin: 1rem 0; padding: .9rem 1rem; border-radius: .75rem; background: #eeedf4; }
.psy-message.user { margin-left: auto; background: #edf3ee; }
.psy-message p { white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0 0; line-height: 1.6; }
.psy-message a { display: block; color: var(--green-dark); text-decoration: underline; padding-top: .5rem; overflow-wrap: anywhere; }
.psy-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; }
.psy-actions small { line-height: 1.45; color: #5d675d; }
@media(max-width: 650px) {
  .mode-cards, .psy-layout { grid-template-columns: 1fr; }
  .mode-card { min-height: 11rem; padding: 1.25rem; }
  .mode-mark { margin-bottom: 0; }
  .psy-topics nav { max-height: 9rem; }
  .psy-actions { flex-wrap: wrap; }
}
