@font-face {
  font-family:serif;
  src:local('Georgia')
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:#f8f9f5;
  color:#243b30;
  font-family:Arial,Helvetica,sans-serif;
  font-size:15px;
  line-height:1.6
}
button,input,textarea,select {
  font:inherit
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.6
}
a {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #718f60;
  outline-offset:4px
}
button {
  border:0
}
button svg {
  width:20px;
  height:20px
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2 {
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  letter-spacing:-.035em
}
h1 {
  font-size:47px;
  line-height:1.1;
  margin-bottom:13px
}
h2 {
  font-size:30px;
  line-height:1.18
}
h3 {
  font-size:17px;
  line-height:1.35;
  font-weight:600
}
small {
  font-size:11px
}
.app-shell {
  display:flex;
  min-height:100vh
}
.sidebar {
  position:fixed;
  width:250px;
  height:100vh;
  padding:32px 24px 24px;
  background:#fbfcf8;
  border-right:1px solid #e4e7df;
  display:flex;
  flex-direction:column;
  z-index:10
}
.brand {
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color:#355444;
  font-family:Georgia,serif;
  font-size:27px;
  letter-spacing:-1px;
  line-height:1.15;
  margin-bottom:53px
}
.brand-sub {
  display:block;
  font-family:Arial,sans-serif;
  font-size:8px;
  letter-spacing:1.55px;
  margin-top:8px
}
.nav-caption,.eyebrow {
  font-size:10px;
  letter-spacing:1.7px;
  font-weight:600;
  color:#768477
}
.nav-caption {
  padding-left:14px;
  margin-bottom:14px
}
.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:7px
}
.nav-button {
  display:flex;
  align-items:center;
  gap:13px;
  width:100%;
  padding:12px 14px;
  background:transparent;
  text-align:left;
  color:#677269;
  border-radius:9px;
  font-size:13px;
  font-weight:500;
  transition:background .15s,color .15s
}
.nav-button.active {
  background:#e8eee2;
  color:#315343;
  font-weight:600
}
.nav-button:hover {
  background:#eff2e9
}
.nav-button svg {
  width:18px;
  height:18px;
  flex:none
}
.sidebar-note {
  margin-top:auto;
  padding:32px 12px 23px;
  color:#6c7b63
}
.sidebar-note p {
  font-family:Georgia,serif;
  font-size:23px;
  color:#526348;
  line-height:1.3;
  margin:10px 0
}
.sidebar-note>span:last-child {
  font-size:11px
}
.small-leaf {
  font-family:Georgia,serif;
  font-size:31px;
  color:#759067
}
.sidebar-footer {
  padding:20px 10px 0;
  border-top:1px solid #e5e9df
}
.sidebar-footer small {
  display:block;
  color:#8a9187;
  font-size:9px;
  margin-top:8px
}
.text-button {
  background:none;
  color:#68786d;
  padding:0;
  font-size:11px;
  text-align:left
}
.workspace {
  margin-left:250px;
  width:calc(100% - 250px)
}
.topbar {
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #e7e9e2;
  padding:0 43px;
  background:#fbfcf8
}
.header-label {
  font-size:12px;
  color:#778278
}
.topbar-actions {
  display:flex;
  gap:25px;
  align-items:center
}
.help-link {
  background:none;
  color:#4e6555;
  font-size:11px
}
.exit-button {
  display:flex;
  align-items:center;
  gap:9px;
  background:#f4f3ee;
  border:1px solid #e4e4db;
  padding:8px 13px;
  border-radius:7px;
  color:#5e675d;
  font-size:11px
}
kbd {
  border:1px solid #dfe0d8;
  border-radius:3px;
  font-size:9px;
  padding:0 3px;
  color:#93998d
}
main {
  max-width:1260px;
  margin:auto;
  padding:37px 43px 25px;
  outline:none
}
.welcome-label {
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:15px
}
.welcome-label::before {
  content:'';
  display:block;
  width:21px;
  height:1px;
  background:#769064
}
.intro-copy {
  color:#7a8378;
  font-size:13px;
  margin-bottom:30px;
  max-width:650px
}
.content-columns {
  display:flex;
  gap:25px;
  align-items:flex-start
}
.primary-column {
  flex:1;
  min-width:0
}
.side-column {
  width:245px;
  flex-shrink:0
}
.hero-card {
  position:relative;
  border-radius:15px;
  background:#e8eddc;
  overflow:hidden;
  min-height:244px;
  display:flex;
  align-items:center;
  margin-bottom:29px;
  border:1px solid #e3e9d6
}
.hero-copy {
  position:relative;
  z-index:1;
  width:63%;
  padding:30px;
  max-width:430px
}
.hero-card h2 {
  font-size:29px;
  margin-bottom:13px
}
.hero-card p {
  color:#687660;
  font-size:12px;
  max-width:285px;
  margin-bottom:22px
}
.hero-art {
  position:absolute;
  right:0;
  top:0;
  height:100%;
  width:55%;
  object-fit:cover;
  opacity:.88;
  mask-image:linear-gradient(to right,transparent 0%,#000 25%)
}
.primary-button,.secondary-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  border-radius:7px;
  padding:11px 18px;
  font-weight:500;
  font-size:12px;
  min-height:42px;
  text-decoration:none;
  transition:background .16s,transform .16s
}
.primary-button {
  background:#335744;
  color:#fff
}
.primary-button:hover {
  background:#254835;
  transform:translateY(-1px)
}
.secondary-button {
  background:#f5f6ee;
  border:1px solid #dde3d5;
  color:#47604d
}
.secondary-button:hover {
  background:#eaf0e3
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
  gap:10px
}
.section-heading h2 {
  font-family:Arial,sans-serif;
  letter-spacing:0;
  font-weight:500;
  font-size:15px;
  margin:0
}
.section-heading span {
  font-size:10px;
  color:#9bA291
}
.path-list {
  display:flex;
  flex-direction:column;
  gap:12px
}
.path-card {
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid #e4e7dd;
  background:#fffefb;
  border-radius:11px;
  padding:19px 20px;
  text-align:left;
  width:100%;
  transition:border-color .15s,transform .15s
}
.path-card:hover {
  border-color:#a4b395;
  transform:translateX(3px)
}
.icon-tile {
  width:43px;
  height:43px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  flex:none;
  background:#eff3e7;
  color:#73855e
}
.icon-tile svg {
  width:22px;
  height:22px
}
.icon-tile.peach {
  background:#f7eee6;
  color:#a8896d
}
.icon-tile.blue {
  background:#eaf0ed;
  color:#709181
}
.path-copy {
  flex:1;
  min-width:0
}
.path-copy h3 {
  font-size:13px;
  color:#3b4b3a;
  margin:0 0 5px
}
.path-copy p {
  font-size:11px;
  color:#849080;
  margin:0
}
.card-time {
  font-size:9px;
  color:#99a28f;
  white-space:nowrap;
  margin-left:10px
}
.arrow {
  font-size:18px;
  color:#869476
}
.quiet-card {
  border:1px solid #e2e8d9;
  border-radius:11px;
  padding:23px;
  background:#f4f7ee;
  margin-bottom:17px
}
.quiet-card h3 {
  font-family:Georgia,serif;
  font-size:19px;
  font-weight:400;
  margin:13px 0 10px
}
.quiet-card p {
  font-size:12px;
  color:#7c8872;
  line-height:1.8;
  margin:0 0 17px
}
.quiet-card .text-button {
  font-size:11px;
  color:#506b47
}
.mini-heading {
  font-size:9px;
  letter-spacing:1.1px;
  color:#839276;
  display:flex;
  align-items:center;
  gap:7px
}
.today-card {
  border-radius:11px;
  border:1px solid #e6e8df;
  background:#fffefb;
  padding:22px
}
.today-card h3 {
  font-size:12px;
  font-weight:500;
  margin:0 0 10px
}
.today-card p {
  font-size:11px;
  color:#8b9385;
  margin:0 0 14px
}
.check-in {
  display:flex;
  gap:7px;
  justify-content:space-between
}
.mood-button {
  background:#f5f6ef;
  border:1px solid #e5e9dc;
  border-radius:20px;
  font-size:11px;
  color:#6c7f5e;
  padding:7px 9px
}
.mood-button.active {
  background:#e6eddd;
  border-color:#88a274
}
.mood-response {
  font-size:11px;
  color:#677a5b;
  display:block;
  padding-top:13px;
  min-height:30px
}
.safety-footnote {
  margin-top:24px;
  display:flex;
  gap:9px;
  color:#8f9987;
  font-size:10px;
  align-items:flex-start
}
.safety-footnote svg {
  width:15px;
  height:15px;
  flex:none;
  margin-top:2px
}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:15px 43px 23px;
  border-top:1px solid #e9ece2;
  color:#919a8b;
  font-size:10px;
  max-width:1260px;
  margin:auto
}
.skip-link {
  position:absolute;
  left:0;
  top:-60px;
  z-index:99;
  padding:10px;
  background:white
}
.skip-link:focus {
  top:0
}
.view-heading {
  margin-bottom:25px
}
.view-heading .eyebrow {
  display:block;
  margin-bottom:15px
}
.view-heading h1 {
  font-size:40px
}
.view-heading p {
  color:#76816f;
  max-width:670px;
  font-size:13px
}
.back-link {
  background:none;
  font-size:11px;
  color:#7f8e76;
  margin:0 0 20px;
  padding:0
}
.panel {
  padding:27px;
  border:1px solid #e2e6dc;
  background:#fffefb;
  border-radius:13px;
  margin-bottom:17px
}
.panel h2 {
  font-size:25px;
  margin-bottom:12px
}
.panel p {
  font-size:13px;
  color:#76816f
}
.notice {
  padding:15px 18px;
  border-radius:9px;
  background:#f3efe5;
  border:1px solid #e7dfce;
  color:#7f704e;
  font-size:12px;
  margin-bottom:20px
}
.notice.safe {
  background:#ecf2e5;
  color:#627953;
  border-color:#dce6d0
}
.optional {
  font-size:10px;
  color:#92998b
}
.choice-set {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px
}
.choice-button {
  border:1px solid #dfe5d6;
  background:#f7f8f2;
  color:#687c5a;
  border-radius:7px;
  padding:9px 14px;
  font-size:12px
}
.choice-button.selected {
  background:#e7eedf;
  border-color:#6c8958;
  color:#304f26
}
.reflection-question {
  padding:18px 0;
  border-bottom:1px solid #eceee5
}
.reflection-question:last-child {
  border:0
}
.reflection-question h3 {
  font-size:14px;
  margin-bottom:5px
}
.actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px
}
.form-label {
  font-size:12px;
  color:#4f6447;
  display:block;
  margin-bottom:8px
}
.field,textarea {
  width:100%;
  padding:13px 14px;
  color:#3c5234;
  border:1px solid #dce3d3;
  border-radius:8px;
  background:#fcfdf8;
  resize:vertical
}
textarea {
  min-height:145px
}
textarea::placeholder,.field::placeholder {
  color:#9aa38f
}
.checklist {
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:20px 0
}
.check-row {
  display:flex;
  align-items:flex-start;
  gap:12px;
  border-bottom:1px solid #edf0e5;
  padding-bottom:13px
}
.check-row input {
  margin-top:5px;
  accent-color:#577449;
  width:17px;
  height:17px;
  flex:none
}
.check-row strong {
  font-size:13px;
  font-weight:500;
  color:#456038
}
.check-row span {
  display:block;
  font-size:11px;
  color:#87947b;
  margin-top:4px
}
.progress-label {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#859676;
  margin-bottom:9px
}
.progress-track {
  height:5px;
  background:#e8eddf;
  border-radius:4px;
  overflow:hidden
}
.progress-track span {
  height:100%;
  background:#89a373;
  display:block;
  transition:width .2s
}
.step-chip {
  font-size:10px;
  color:#758c60;
  background:#eff3e7;
  padding:4px 9px;
  border-radius:20px
}
.library-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:16px 0 20px
}
.message-example {
  font-family:Georgia,serif;
  font-size:20px;
  line-height:1.6;
  background:#f6f7f0;
  border-left:3px solid #9aac84;
  padding:20px;
  margin:17px 0;
  color:#536645
}
.field-note {
  font-size:10px;
  color:#8f9a83;
  display:block;
  margin-top:7px
}
.calm-layout {
  max-width:680px
}
.breath-visual {
  width:165px;
  height:165px;
  border-radius:50%;
  margin:30px auto;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#e8eedf;
  position:relative;
  color:#6d8555;
  font-family:Georgia,serif;
  font-size:25px
}
.breath-visual::before {
  content:'';
  position:absolute;
  inset:-16px;
  border:1px solid #d9e3cd;
  border-radius:50%
}
.breath-visual.running {
  animation:breathe 8s ease-in-out infinite
}
.breath-caption {
  text-align:center;
  color:#829371;
  font-size:12px;
  min-height:25px
}
.resource-link {
  display:flex;
  justify-content:space-between;
  gap:15px;
  border-top:1px solid #e8edde;
  padding:14px 0;
  text-decoration:none;
  color:#576e46;
  font-size:12px
}
.resource-link small {
  display:block;
  font-size:10px;
  color:#8c9b7d
}
.resource-country {
  max-width:270px;
  margin-bottom:20px
}
.empty-resources {
  color:#8b957d;
  font-size:12px
}
.dialog-close {
  float:right;
  background:transparent;
  color:#6a7d59;
  font-size:28px;
  padding:0 4px;
  line-height:1
}
dialog {
  max-width:600px;
  width:calc(100% - 30px);
  border:1px solid #dbe2d0;
  border-radius:17px;
  padding:30px;
  color:#455d37;
  background:#fffef9
}
dialog::backdrop {
  background:#2438247a;
  backdrop-filter:blur(4px)
}
dialog h2 {
  margin:20px 0 16px
}
dialog p {
  font-size:12px;
  color:#7b8b6b
}
#toast {
  position:fixed;
  bottom:25px;
  right:30px;
  padding:11px 18px;
  border-radius:8px;
  background:#335343;
  color:#fff;
  font-size:12px;
  box-shadow:0 3px 20px #27432b22;
  z-index:50;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s
}
#toast.visible {
  opacity:1
}
.neutral-screen {
  min-height:100vh;
  background:#fff;
  color:#555;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center
}
.neutral-screen h1 {
  font-family:Arial,sans-serif;
  font-size:43px;
  letter-spacing:0;
  color:#4a5b65
}
.neutral-screen p {
  color:#8a969c;
  font-size:13px
}
.neutral-screen a {
  font-size:13px;
  text-decoration:none;
  border:1px solid #ddd;
  border-radius:8px;
  padding:10px 24px
}
.response-box {
  padding:18px;
  border-radius:9px;
  background:#edf2e6;
  margin-top:20px;
  color:#657e50;
  font-size:12px
}
.answer-plan {
  border-top:1px solid #e5e9df;
  margin-top:24px;
  padding-top:22px
}
.answer-plan h2 {
  font-size:25px;
  margin:8px 0 10px
}
.answer-plan-intro {
  max-width:760px
}
.plan-guardrail {
  border-left:3px solid #93a77e;
  padding:10px 13px;
  background:#f5f7f1;
  color:#4d6048!important;
  font-size:11px!important
}
.answer-plan>h3 {
  font-size:14px;
  margin:22px 0 10px
}
.answer-options {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px
}
.answer-option {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  width:100%;
  min-height:145px;
  padding:15px;
  border:1px solid #dfe5d7;
  border-radius:9px;
  background:#fbfcf8;
  color:#405442;
  text-align:left
}
.answer-option:hover,.answer-option.selected {
  border-color:#80966e;
  background:#eef3e8
}
.answer-option strong {
  font-size:12px;
  line-height:1.4
}
.answer-option>span:not(.option-index) {
  color:#566651;
  font-size:11px;
  line-height:1.5
}
.answer-option .option-index {
  color:#536d4d;
  font-size:10px;
  font-weight:600;
  letter-spacing:.04em
}
.answer-option small {
  margin-top:auto;
  color:#496143;
  font-size:10px
}
.plan-select-hint {
  margin:13px 0 18px;
  font-size:11px!important
}
.answer-steps {
  margin:18px 0;
  padding:18px;
  border-radius:9px;
  background:#f4f6ef
}
.answer-steps h3 {
  font-size:15px;
  margin-bottom:12px
}
.answer-steps ol {
  padding-left:21px;
  margin:0 0 13px;
  color:#3f5341;
  font-size:12px
}
.answer-steps li+li {
  margin-top:8px
}
.answer-steps p {
  margin:0;
  font-size:11px!important
}
@media(max-width:900px) {
  .answer-options { grid-template-columns:1fr; }
  .answer-option { min-height:0; }
}
.quote-card {
  padding:19px;
  border-left:2px solid #b2c19e;
  font-family:Georgia,serif;
  font-size:23px;
  color:#758960;
  margin:23px 0;
  line-height:1.4
}
.resource-review {
  font-size:10px;
  color:#8d9b80;
  margin-top:20px
}
.footer-warning {
  font-size:10px;
  color:#9aa58e;
  margin-top:20px
}
@keyframes breathe {
  0%,100% {
    transform:scale(.88)
  }
  50% {
    transform:scale(1.08)
  }
}
@media(min-width:1500px) {
  main {
    padding-top:47px
  }
  .hero-card {
    min-height:270px
  }
  .side-column {
    width:280px
  }
}
@media(max-width:1200px) {
  .sidebar {
    width:215px;
    padding-left:17px;
    padding-right:17px
  }
  .workspace {
    margin-left:215px;
    width:calc(100% - 215px)
  }
  .topbar,main,.page-footer {
    padding-left:30px;
    padding-right:30px
  }
  .side-column {
    width:210px
  }
  .content-columns {
    gap:18px
  }
  .hero-copy {
    padding:25px;
    width:65%
  }
  .card-time {
    display:none
  }
  .path-card {
    padding:16px
  }
  .hero-card h2 {
    font-size:25px
  }
}
@media(max-width:1000px) {
  .side-column {
    width:100%;
    display:flex;
    gap:15px
  }
  .side-column>div {
    flex:1
  }
  .content-columns {
    flex-direction:column
  }
  .hero-card {
    min-height:240px
  }
  .hero-copy {
    width:60%
  }
  .quiet-card,.today-card {
    margin-bottom:0
  }
  .sidebar-note {
    padding-top:20px
  }
  .hero-art {
    width:48%
  }
}
@media(max-width:700px) {
  body {
    font-size:14px
  }
  .sidebar {
    position:fixed;
    width:100%;
    height:70px;
    bottom:0;
    top:auto;
    padding:6px 8px;
    background:#fbfcf8;
    border-top:1px solid #e1e7d8;
    border-right:0
  }
  .sidebar .brand,.sidebar .nav-caption,.sidebar-note,.sidebar-footer {
    display:none
  }
  .sidebar nav {
    display:flex;
    flex-direction:row;
    justify-content:space-around;
    gap:0
  }
  .nav-button {
    padding:7px 4px;
    justify-content:center;
    flex-direction:column;
    gap:4px;
    font-size:8px;
    width:auto;
    flex:1;
    line-height:1.2;
    border-radius:6px
  }
  .nav-button svg {
    width:18px;
    height:18px
  }
  .workspace {
    margin-left:0;
    width:100%;
    padding-bottom:70px
  }
  .topbar {
    height:66px;
    padding:0 20px
  }
  .topbar-actions {
    gap:12px
  }
  .topbar .header-label {
    font-family:Georgia,serif;
    font-size:19px;
    color:#456036
  }
  .help-link {
    font-size:10px
  }
  .exit-button {
    padding:7px 9px;
    font-size:10px;
    gap:4px
  }
  kbd {
    display:none
  }
  main {
    padding:27px 20px 25px
  }
  h1 {
    font-size:36px
  }
  .intro-copy {
    font-size:12px;
    margin-bottom:24px
  }
  .welcome-label {
    font-size:9px;
    margin-bottom:13px
  }
  .hero-card {
    min-height:270px
  }
  .hero-copy {
    width:73%;
    padding:24px;
    align-self:flex-start
  }
  .hero-card h2 {
    font-size:25px;
    max-width:195px
  }
  .hero-card p {
    font-size:11px;
    max-width:200px
  }
  .hero-art {
    width:55%;
    opacity:.65;
    mask-image:linear-gradient(to right,transparent,#000 50%)
  }
  .hero-copy .primary-button {
    margin-top:4px
  }
  .section-heading h2 {
    font-size:14px
  }
  .section-heading span {
    font-size:9px
  }
  .path-card {
    padding:16px 13px;
    gap:12px
  }
  .icon-tile {
    width:37px;
    height:37px
  }
  .path-copy h3 {
    font-size:12px
  }
  .path-copy p {
    font-size:10px
  }
  .side-column {
    display:flex;
    flex-direction:column;
    gap:15px
  }
  .quiet-card {
    padding:20px
  }
  .today-card {
    padding:20px
  }
  .mood-button {
    padding:8px 19px
  }
  .page-footer {
    padding:16px 20px;
    font-size:9px;
    align-items:flex-start
  }
  .page-footer>span {
    max-width:220px
  }
  .panel {
    padding:22px 20px
  }
  .view-heading h1 {
    font-size:34px
  }
  .panel h2 {
    font-size:23px
  }
  .choice-button {
    padding:9px 10px;
    font-size:11px
  }
  .form-label {
    font-size:11px
  }
  .header-label {
    white-space:nowrap
  }
  #toast {
    left:20px;
    right:20px;
    bottom:88px
  }
  .neutral-screen {
    padding:25px
  }
  .neutral-screen h1 {
    font-size:35px
  }
  .hero-card .primary-button {
    font-size:11px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

/* Contraste de textos secundarios: tonos oscuros sobre fondos claros. */
.nav-caption,
.eyebrow,
.header-label,
.intro-copy,
.path-copy p,
.section-heading span,
.card-time,
.mini-heading,
.quiet-card p,
.today-card p,
.safety-footnote,
.page-footer,
.sidebar-footer small,
.optional,
.field-note,
.progress-label,
.check-row span,
.breath-caption,
.empty-resources,
.resource-review,
.resource-link small,
.footer-warning,
.view-heading p,
.panel p,
.sidebar-note > span:last-child {
  color: #5b6954;
}
.field::placeholder,
textarea::placeholder {
  color: #69745f;
}
.exit-warning {
  font-size: 10px;
  color: #5b6954;
  background: #f1f4eb;
  margin: 0;
  padding: 8px 43px;
  border-bottom: 1px solid #e4e9dc;
}
@media (max-width: 700px) {
  .exit-warning { padding: 8px 20px; font-size: 10px; }
}

/* Carrusel de mensajes y límites */
.message-variant-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-top: 19px;
}
.message-variant-head .form-label { margin-bottom: 8px; }
.variant-count {
  font-size: 11px;
  color: #405d45;
  font-weight: 600;
  white-space: nowrap;
}
.variant-tone {
  font-size: 12px;
  color: #405d45;
  margin: 0 0 9px;
}
.variant-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}
.variant-controls .secondary-button { min-width: 135px; }
.variant-controls button:disabled {
  color: #596452;
  border-color: #d9ded2;
  background: #f1f3ed;
  opacity: .75;
}
.variant-note { margin-top: 17px; }
@media (max-width: 700px) {
  .message-variant-head { align-items: flex-start; flex-direction: column; gap: 0; }
  .variant-controls .secondary-button { min-width: 0; flex: 1; }
}


/* Nueva paleta: ciruela y lavanda, inspirada en la referencia con saturación moderada. */
:root {
  color-scheme: light;
  --page-bg: #FAF8FC;
  --surface: #FFFFFF;
  --surface-soft: #FCFAFE;
  --surface-lilac: #F2EDF7;
  --surface-lilac-strong: #EFE4FD;
  --ink: #281F32;
  --ink-soft: #51485B;
  --ink-muted: #5C5366;
  --plum: #5A2496;
  --plum-deep: #3D1A63;
  --plum-hover: #2C1744;
  --plum-border: #CFC3DB;
  --line: #DDD5E5;
  --warning-bg: #F7F1E8;
  --warning-ink: #5C4932;
  --safe-bg: #EDF3EE;
  --safe-ink: #355244;
}

body {
  background: var(--page-bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3 { color: var(--ink); }
a { color: var(--plum); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}
::selection { background: var(--surface-lilac-strong); color: var(--plum-deep); }

.sidebar, .topbar {
  background: var(--surface-soft);
  border-color: var(--line);
}
.brand { color: var(--plum-deep); }
.brand-sub, .nav-caption, .eyebrow, .header-label, .sidebar-note,
.sidebar-note p, .sidebar-note > span:last-child, .sidebar-footer small,
.text-button, .help-link, .nav-button, .page-footer {
  color: var(--ink-soft);
}
.nav-caption, .eyebrow, .mini-heading { color: var(--ink-muted); }
.nav-button { min-height: 44px; font-size: 14px; }
.nav-button.active {
  background: var(--surface-lilac-strong);
  color: var(--plum-deep);
}
.nav-button:hover { background: var(--surface-lilac); }
.sidebar-footer, .topbar, .page-footer { border-color: var(--line); }

.exit-button {
  background: var(--surface-lilac);
  border-color: var(--plum-border);
  color: var(--ink-soft);
  min-height: 44px;
}
kbd {
  border-color: var(--plum-border);
  color: var(--ink-soft);
  font-size: 11px;
}
.exit-warning {
  background: var(--warning-bg);
  border-color: #E5D7C4;
  color: var(--warning-ink);
  font-size: 12px;
}
main { color: var(--ink); }
.intro-copy, .view-heading p, .panel p, .path-copy p, .quiet-card p,
.today-card p, .safety-footnote, .optional, .field-note, .progress-label,
.check-row span, .breath-caption, .empty-resources, .resource-link small,
.resource-review, .footer-warning, .sidebar-footer small,
.sidebar-note > span:last-child, .page-footer, .answer-option > span:not(.option-index) {
  color: var(--ink-muted);
}
.intro-copy, .view-heading p, .panel p, .path-copy p, .quiet-card p, .today-card p {
  font-size: 14px;
}
.welcome-label::before { background: var(--plum); }
.section-heading span, .card-time { color: var(--ink-muted); }
.section-heading h2 { color: var(--ink); font-size: 16px; }

.hero-card {
  background: linear-gradient(125deg, #F2EDF7 0%, #F8F5FB 100%);
  border-color: var(--line);
}
.hero-card h2 { color: var(--ink); }
.hero-card p { color: var(--ink-soft); font-size: 14px; }
.primary-button {
  background: var(--plum-deep);
  color: #FFFFFF;
  font-size: 14px;
  min-height: 46px;
}
.primary-button:hover { background: var(--plum-hover); }
.secondary-button {
  background: var(--surface-lilac);
  border-color: var(--plum-border);
  color: var(--plum-deep);
  font-size: 14px;
  min-height: 46px;
}
.secondary-button:hover { background: var(--surface-lilac-strong); }
.path-card, .today-card, .panel, .answer-option {
  background: var(--surface);
  border-color: var(--line);
}
.path-card:hover { border-color: var(--plum); }
.path-copy h3 { color: var(--ink); font-size: 14px; }
.path-copy p { font-size: 13px; }
.icon-tile, .icon-tile.peach, .icon-tile.blue {
  background: var(--surface-lilac);
  color: var(--plum);
}
.quiet-card {
  background: var(--surface-lilac);
  border-color: var(--line);
}
.quiet-card h3 { color: var(--ink); }
.quiet-card .text-button { color: var(--plum-deep); }
.mini-heading { font-size: 11px; }
.mood-button {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  min-height: 44px;
}
.mood-button.active {
  background: var(--surface-lilac-strong);
  border-color: var(--plum);
  color: var(--plum-deep);
}
.mood-response { color: var(--ink-soft); }

.view-heading h1 { color: var(--ink); }
.back-link { color: var(--plum); font-size: 13px; }
.panel { border-color: var(--line); }
.panel h2, .panel h3 { color: var(--ink); }
.notice {
  background: var(--warning-bg);
  border-color: #E5D7C4;
  color: var(--warning-ink);
  font-size: 14px;
}
.notice.safe {
  background: var(--safe-bg);
  border-color: #CEDBD1;
  color: var(--safe-ink);
}
.choice-button {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  min-height: 44px;
}
.choice-button:hover { border-color: var(--plum); }
.choice-button.selected {
  background: var(--surface-lilac-strong);
  border-color: var(--plum);
  color: var(--plum-deep);
}
.form-label { color: var(--ink); font-size: 14px; }
.field, textarea {
  background: var(--surface);
  border-color: var(--plum-border);
  color: var(--ink);
  font-size: 16px;
  min-height: 46px;
}
.field::placeholder, textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.check-row { border-color: var(--line); }
.check-row strong { color: var(--ink); font-size: 14px; }
.check-row span { font-size: 13px; }
.check-row input { accent-color: var(--plum); }
.progress-label { color: var(--ink-muted); font-size: 12px; }
.progress-track { background: #E8DFEF; }
.progress-track span { background: #6E4B8E; }
.step-chip {
  background: var(--surface-lilac);
  color: var(--plum-deep);
  font-size: 12px;
}
.message-example {
  background: var(--surface-lilac);
  border-color: #7951A5;
  color: var(--ink);
  font-size: 21px;
}
.breath-visual {
  background: var(--surface-lilac-strong);
  color: var(--plum-deep);
}
.breath-visual::before { border-color: var(--plum-border); }
.breath-caption { font-size: 13px; }
.resource-link {
  border-color: var(--line);
  color: var(--plum-deep);
  font-size: 14px;
}
.resource-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.resource-link small { font-size: 12px; }
.resource-country { font-size: 14px; }
.empty-resources { font-size: 14px; }

.dialog-close { color: var(--plum-deep); }
dialog {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
dialog::backdrop { background: rgba(40, 31, 50, .72); }
dialog p { color: var(--ink-soft); font-size: 14px; }
#toast {
  background: var(--plum-deep);
  color: #FFFFFF;
  font-size: 14px;
}
.neutral-screen { background: var(--surface-soft); color: var(--ink); }
.neutral-screen h1 { color: var(--ink); }
.neutral-screen p { color: var(--ink-muted); font-size: 14px; }
.neutral-screen a { border-color: var(--plum-border); color: var(--plum-deep); }
.response-box, .answer-steps {
  background: var(--surface-lilac);
  color: var(--ink-soft);
}
.answer-plan { border-color: var(--line); }
.plan-guardrail {
  background: var(--surface-lilac);
  border-color: #7951A5;
  color: var(--ink) !important;
}
.answer-option { color: var(--ink); }
.answer-option:hover, .answer-option.selected {
  border-color: var(--plum);
  background: var(--surface-lilac);
}
.answer-option strong { color: var(--ink); font-size: 14px; }
.answer-option > span:not(.option-index) { color: var(--ink-soft); font-size: 13px; }
.answer-option .option-index { color: var(--plum-deep); font-size: 12px; }
.answer-option small { color: var(--plum-deep); font-size: 12px; }
.answer-steps h3 { color: var(--ink); }
.answer-steps ol { color: var(--ink); font-size: 14px; }
.plan-select-hint, .footer-warning, .resource-review { font-size: 12px !important; }
.quote-card {
  border-color: #7951A5;
  color: var(--ink-soft);
}
.variant-count, .variant-tone { color: var(--ink-soft); }
.variant-count { font-size: 12px; }
.variant-tone { font-size: 14px; }
.variant-controls button:disabled {
  background: #F2EDF7;
  border-color: var(--line);
  color: var(--ink-muted);
  opacity: 1;
}

small, .sidebar-footer small, .field-note, .optional, .resource-review,
.footer-warning, .card-time { font-size: 12px; }
.eyebrow, .nav-caption { font-size: 11px; letter-spacing: 1.2px; }
.text-button, .help-link { font-size: 13px; }

@media (max-width: 700px) {
  body { font-size: 15px; }
  .sidebar { background: var(--surface-soft); border-top-color: var(--line); }
  .nav-button { font-size: 10px; min-height: 48px; }
  .topbar .header-label { color: var(--plum-deep); }
  .help-link { font-size: 12px; }
  .exit-button { font-size: 12px; }
  main { padding-top: 28px; }
  .intro-copy, .view-heading p { font-size: 14px; }
  .hero-card p { font-size: 13px; }
  .path-copy h3 { font-size: 13px; }
  .path-copy p { font-size: 12px; }
  .section-heading h2 { font-size: 15px; }
  .section-heading span { font-size: 11px; }
  .choice-button { font-size: 13px; }
  .page-footer { font-size: 11px; }
}

@media (prefers-contrast: more) {
  :root { --line: #9B8DA9; --plum-border: #7C688E; }
  .path-card, .panel, .today-card, .answer-option, .field, textarea,
  .choice-button, .secondary-button, .mood-button, .exit-button {
    border-width: 2px;
  }
}


/* Ajustes de coherencia cromática y cabecera móvil. */
.small-leaf { color: var(--plum); }
.arrow { color: var(--plum); }
.hero-art { filter: saturate(.72); }
@media (max-width: 700px) {
  .topbar { padding-left: 14px; padding-right: 14px; }
  .topbar-actions { gap: 8px; }
  .topbar .header-label { font-size: 17px; }
  .help-link { font-size: 11px; white-space: nowrap; }
  .exit-button { font-size: 11px; padding: 7px 8px; white-space: nowrap; }
}


/* Recorrido guiado: continuidad visual, elección clara y ritmo flexible. */
.journey-shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 22px;
}
.journey-shell > .eyebrow { display: block; margin-bottom: 13px; }
.journey-shell h1 {
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 44px);
  line-height: 1.15;
  margin-bottom: 12px;
}
.journey-lead, .journey-step-heading > p {
  max-width: 690px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.7;
}
.journey-privacy-panel h2, .journey-grounding-panel h2,
.journey-next-options h2, .journey-summary h2,
.journey-emergency h2 {
  color: var(--ink);
  font-size: 21px;
  margin-bottom: 10px;
}
.journey-privacy-panel > p, .journey-grounding-panel > p,
.journey-emergency > p, .journey-summary > p,
.journey-next-options > p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}
.journey-privacy-panel .form-label {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 14px;
}
.journey-choices, .journey-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 16px 0;
}
.journey-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.journey-choice:hover {
  background: var(--surface-soft);
  border-color: var(--plum);
}
.journey-choice.selected {
  background: var(--surface-lilac-strong);
  border: 2px solid var(--plum);
  color: var(--plum-deep);
  padding: 13px 15px;
}
.journey-choice-title { color: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; }
.journey-choice-detail { color: var(--ink-muted); font-size: 13px; line-height: 1.5; }
.journey-choice.selected .journey-choice-detail { color: var(--ink-soft); }
.journey-step-heading { margin-bottom: 22px; }
.journey-step-heading .eyebrow { display: block; margin-bottom: 13px; }
.journey-progress {
  height: 8px;
  margin: 17px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #E8DFEF;
}
.journey-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6E4B8E;
  transition: width .18s ease;
}
.journey-progress-note, .journey-privacy-note {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.6;
}
.journey-feedback, .journey-grounding-prompt, .journey-summary {
  margin: 17px 0;
  padding: 17px 18px;
  border: 1px solid var(--plum-border);
  border-left: 4px solid #7951A5;
  border-radius: 9px;
  background: var(--surface-lilac);
  color: var(--ink);
}
.journey-feedback p, .journey-grounding-prompt p, .journey-summary p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}
.journey-feedback p:last-child, .journey-grounding-prompt p:last-child,
.journey-summary p:last-child { margin-bottom: 0; }
.journey-emergency {
  margin: 18px 0;
  padding: 19px;
  border: 1px solid #E5D7C4;
  border-radius: 11px;
  background: var(--warning-bg);
}
.journey-emergency .secondary-button { background: var(--surface); }
.journey-grounding-panel {
  margin: 19px 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}
.journey-plan-options { grid-template-columns: 1fr; }
.journey-plan-choice { min-height: 82px; }
.journey-no-step { border-style: dashed; background: #F7F4F9; }
.journey-plan-options .journey-no-step.selected { border-style: solid; }
.journey-intro-actions, .journey-controls, .journey-controls-next,
.journey-end-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}
.journey-intro-actions { margin-top: 20px; }
.journey-controls {
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.journey-controls-next { justify-content: flex-end; }
.journey-leave { margin-left: auto; }
.journey-summary { margin-top: 0; }
.journey-summary h2 { margin-bottom: 9px; }
.journey-next-options {
  margin: 21px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.journey-end-links { margin-top: 12px; }
.journey-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.journey-resume p { flex: 1 1 240px; margin: 0; color: var(--ink-muted); font-size: 13px; }
.journey-resume .text-button { color: var(--plum-deep); }

@media (max-width: 700px) {
  .journey-shell { margin-bottom: 14px; }
  .journey-shell h1 { font-size: 34px; }
  .journey-lead, .journey-step-heading > p { font-size: 14px; }
  .journey-choices { grid-template-columns: 1fr; gap: 9px; }
  .journey-choice { min-height: 60px; }
  .journey-privacy-panel, .journey-emergency, .journey-grounding-panel,
  .journey-next-options { padding: 16px; }
  .journey-controls { align-items: stretch; }
  .journey-controls > button, .journey-controls-next { flex: 1 1 100%; }
  .journey-controls-next { justify-content: stretch; }
  .journey-controls-next .primary-button { flex: 1; }
  .journey-leave { margin-left: 0; }
  .journey-intro-actions, .journey-end-links { align-items: stretch; flex-direction: column; }
  .journey-intro-actions > button, .journey-end-links > button { width: 100%; }
}
