.emotions-page {
  --em-ink: #213a32;
  --em-muted: #697d70;
  --em-line: #e3eae0;
  --em-paper: #fffefa;
}

.emotions-page .em-page-header { min-height: 136px; }
.emotions-page .em-page-header .page-header-inner { width: min(100%, 960px); margin-inline: auto; }
.emotions-page .em-page-header .eyebrow { color: #699579; }
.emotions-page .em-page-header h1 { color: var(--em-ink); font-size: clamp(25px, 2.6vw, 31px); line-height: 1.12; letter-spacing: -.055em; }
.emotions-page .em-page-header p { max-width: 680px; margin-top: 8px; color: #6d8173; font-size: 12px; line-height: 1.5; }
.emotions-page .em-page-body { padding-top: 25px; padding-bottom: 50px; }
.emotions-page .em-page-body > * { width: min(100%, 960px); margin-inline: auto; }
.emotions-page .em-page-body > * + * { margin-top: 18px; }
.emotions-page h2, .emotions-page h3 { color: var(--em-ink); }
.emotions-page h2 { margin: 0; font: 800 18px/1.25 var(--display); letter-spacing: -.045em; }
.emotions-page h3 { margin: 0; font: 800 15px/1.3 var(--display); letter-spacing: -.035em; }
.emotions-page p { margin: 0; }

.em-opening {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 18px;
  border: 1px solid #d8e8dc;
  border-radius: 14px;
  background: linear-gradient(105deg, #edf7ed 0%, #f7faf3 100%);
}
.em-opening > div { display: flex; align-items: center; gap: 9px; min-width: 173px; }
.em-opening .eyebrow { color: #4c8b63; font-size: 9px; white-space: nowrap; }
.em-opening-mark { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid #cfe5d3; border-radius: 9px; background: #dff0e1; color: #499460; font-size: 21px; line-height: 1; }
.em-opening p { max-width: 600px; color: #557562; font-size: 11px; line-height: 1.55; }

.em-workspace { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr)); gap: 16px; align-items: stretch; }
.em-face-card, .em-story-card, .em-influence-card, .em-how-card, .em-circle-card {
  min-width: 0;
  border: 1px solid var(--em-line);
  border-radius: 20px;
  background: var(--em-paper);
  box-shadow: 0 9px 26px rgba(33, 70, 48, .035);
}
.em-face-card, .em-story-card { padding: 22px; }
.em-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.em-card-title-row .eyebrow { display: block; margin-bottom: 5px; color: #729d7e; font-size: 9px; }
.em-demo-badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 7px; background: #f2f5ef; color: #789080; font: 700 9px/1 var(--font); }

.em-face-stage {
  display: grid;
  place-items: center;
  min-height: 278px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--em-feeling-color) 20%, white);
  border-radius: 17px;
  background: radial-gradient(circle at 50% 38%, #fffefa 0%, var(--em-feeling-wash) 65%, #f4f5ea 100%);
}
.em-face-stage > div { width: min(74%, 260px); aspect-ratio: 1; }
.em-face-svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 16px 17px rgba(112, 83, 59, .11)); transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine){.em-face-stage:hover .em-face-svg { transform: translateY(-3px) rotate(-1deg); }}
.em-stage-note { margin-top: 10px !important; color: #839486; font-size: 10px; line-height: 1.5; }
.em-face-controls { margin-top: 19px; }
.em-options { border-top: 1px solid var(--em-line); margin-top: 20px; padding-top: 13px; }
.em-options summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--em-ink); font-size: 11px; font-weight: 700; cursor: pointer; list-style: none; }
.em-options summary::-webkit-details-marker { display: none; }
.em-options summary span { color: var(--em-muted); font-size: 17px; line-height: 1; transition: transform .18s var(--ease-out); }
.em-options[open] summary span { transform: rotate(45deg); }
.em-options summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.em-options .em-feeling-picks, .em-options .em-control-heading { margin-top: 14px; }
.em-control-heading, .em-range-ends { display: flex; justify-content: space-between; gap: 12px; }
.em-control-heading label { color: var(--em-ink); font-size: 11px; font-weight: 800; }
.em-control-heading output { color: #628571; font-size: 10px; font-weight: 700; text-align: right; white-space: nowrap; }
.em-face-controls input[type="range"] { display: block; width: 100%; height: 24px; margin: 7px 0 0; accent-color: #188167; cursor: pointer; }
.em-range-ends { margin-top: -1px; color: #9aa99d; font-size: 9px; }
.em-identity { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--em-line); }
.em-identity > div:first-child { min-width: 0; }
.em-identity strong, .em-identity span { display: block; }
.em-identity strong { color: var(--em-ink); font-size: 11px; }
.em-identity > div:first-child span { margin-top: 3px; color: #86998a; font-size: 9px; line-height: 1.4; }
.em-identity-options { display: flex; flex: 0 0 auto; gap: 4px; }
.em-identity-options button, .em-feeling-picks button {
  border: 1px solid #e1e9df;
  background: #fbfcf9;
  color: #657e6d;
  font-weight: 800;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out), color .18s var(--ease-out), transform .18s var(--ease-out);
}
.em-identity-options button { min-height: 29px; padding: 5px 8px; border-radius: 8px; font-size: 9px; }
@media (hover: hover) and (pointer: fine){.em-identity-options button:hover, .em-feeling-picks button:hover { border-color: #a9cbb4; color: #2b785b; transform: translateY(-1px); }}
.em-identity-options button.active, .em-feeling-picks button.active { border-color: #cce2d0; background: #eaf5e9; color: #246c50; }

.em-story-card { display: flex; flex-direction: column; }
.em-feeling-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.em-feeling-picks button { min-height: 33px; padding: 7px 11px; border-radius: 10px; font-size: 10px; }
.em-story-detail { margin-top: 0; }
.em-story-word { display: block; margin-bottom: 5px; color: #c37c5e; font: 800 9px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.em-story-detail h3 { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.2; }
.em-story-detail p { max-width: 400px; margin-top: 6px; color: var(--em-muted); font-size: 11px; line-height: 1.55; }
.em-example-thread { position: relative; margin-top: 18px; padding: 14px; border: 1px solid #e7ece5; border-radius: 14px; background: #f8faf6; }
.em-thread-label { margin-bottom: 10px; color: #9aab9c; font: 800 9px/1.2 var(--display); letter-spacing: .12em; }
.em-chat-bubble { width: fit-content; max-width: 92%; padding: 10px 13px; border: 1px solid #d7e7d9; border-radius: 13px 13px 13px 4px; background: #eaf4e9; color: #3d604c; font: 500 12px/1.5 var(--font); }
.em-thread-reading { display: grid; grid-template-columns: 120px 1fr; gap: 7px 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #e4ebe3; font-size: 10px; }
.em-thread-reading span { color: #879a8a; }
.em-thread-reading strong { color: #3b6950; font-weight: 800; }
.em-gentle-line { margin-top: auto; padding-top: 18px; }
.em-gentle-line span { color: #bd866c; font: 800 9px/1.3 var(--display); letter-spacing: .12em; }
.em-gentle-line p { margin-top: 5px; padding: 12px 14px; border-left: 2px solid #dfaa89; border-radius: 0 9px 9px 0; background: #fff5ed; color: #7d5e50; font-size: 11px; line-height: 1.55; }

.em-influence-card, .em-how-card, .em-circle-card { padding: 24px; }
.em-section-lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.em-section-lead .eyebrow { display: block; margin-bottom: 6px; color: #729a7d; font-size: 9px; }
.em-section-lead h2 { max-width: 550px; font-size: clamp(17px, 1.8vw, 21px); }
.em-section-lead > p { max-width: 240px; color: #819586; font-size: 10px; line-height: 1.45; text-align: right; }
.em-influence-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.em-influence-picks button { display: flex; flex-direction: column; align-items: flex-start; min-height: 72px; padding: 13px 12px; border: 1px solid #e4ebe2; border-radius: 11px; background: #fbfcf9; text-align: left; transition: border-color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out); }
@media (hover: hover) and (pointer: fine){.em-influence-picks button:hover { border-color: #afd2b8; transform: translateY(-2px); }}
.em-influence-picks button.active { border-color: #cbe3d0; background: #eaf5eb; box-shadow: inset 0 0 0 1px #dcefe0; }
.em-influence-picks strong { color: #315949; font-size: 11px; line-height: 1.25; }
.em-influence-picks span { margin-top: 5px; color: #8fa091; font-size: 9px; line-height: 1.35; }
.em-influence-picks .active span { color: #659276; }
.em-influence-result { display: flex; align-items: center; gap: 13px; margin-top: 17px; padding: 15px 14px; border-radius: 11px; background: #f6f8f3; }
.em-influence-accent { flex: 0 0 auto; width: 3px; align-self: stretch; border-radius: 5px; background: #91b799; }
.em-influence-result > div { min-width: 0; flex: 1; }
.em-influence-result .eyebrow { color: #7da087; font-size: 8px; }
.em-influence-result p { margin-top: 4px; color: #536b59; font-size: 11px; line-height: 1.5; }
.em-ask-pill { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #dae9dc; border-radius: 100px; background: #fffefa; color: #598364; font-size: 9px; font-weight: 800; white-space: nowrap; }

.em-how-card { background: linear-gradient(135deg, #f9fcf7, #fffefa 48%); }
.em-how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid #e1eae0; border-bottom: 1px solid #e1eae0; }
.em-how-grid > div { padding: 18px 14px 18px 0; }
.em-how-grid > div + div { padding-left: 15px; border-left: 1px solid #e1eae0; }
.em-how-index { display: inline-grid; place-items: center; width: 29px; height: 29px; margin-bottom: 12px; border-radius: 10px; background: #e9f3e9; color: #6b9b77; font: 800 10px/1 var(--display); }
.em-how-grid h3 { font-size: 12px; }
.em-how-grid p { max-width: 180px; margin-top: 5px; color: #788a7b; font-size: 10px; line-height: 1.5; }
.em-care-risk { margin-top: 17px; color: #657d69; font-size: 11px; line-height: 1.6; }
.em-care-risk strong { color: #3a7052; }

.em-circle-card { margin-bottom: 10px; }
.em-all-people { flex: 0 0 auto; padding: 8px 0; border: 0; background: transparent; color: #23765a; font-size: 10px; font-weight: 800; white-space: nowrap; }
@media (hover: hover) and (pointer: fine){.em-all-people:hover { text-decoration: underline; }}
.em-all-people span { margin-left: 4px; font-size: 14px; }
.em-circle-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 10px; margin-top: 18px; }
.em-circle-person { display: flex; align-items: flex-start; gap: 10px; min-width: 0; min-height: 99px; padding: 13px; border: 1px solid #e2ebe1; border-radius: 12px; background: #fbfcf9; color: inherit; text-align: left; transition: border-color .17s var(--ease-out), transform .17s var(--ease-out), background .17s var(--ease-out); }
@media (hover: hover) and (pointer: fine){.em-circle-person:hover { border-color: #bed9c3; background: #f6faf5; transform: translateY(-2px); }}
.em-circle-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 10px; background: #e3efe4; color: #57946b; font: 800 12px/1 var(--display); }
.em-circle-person-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.em-circle-person-copy strong { color: #305b43; font-size: 11px; }
.em-circle-person-copy > span { display: -webkit-box; overflow: hidden; margin-top: 5px; color: #647d6b; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.em-circle-person-copy small { margin-top: 7px; color: #97a697; font-size: 9px; }
.em-circle-person > svg { flex: 0 0 auto; margin-top: 7px; color: #97b09a; }
.em-circle-empty { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; padding: 15px; border-radius: 11px; background: #f5f8f2; }
.em-circle-empty p { color: #708673; font-size: 11px; line-height: 1.5; }

@media (max-width: 900px) {
  .em-influence-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-how-grid > div { padding: 15px 12px; }
  .em-how-grid > div + div { padding-left: 12px; }
  .em-how-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid #e1eae0; }
  .em-how-grid > div:nth-child(4) { border-top: 1px solid #e1eae0; }
}
@media (max-width: 680px) {
  .emotions-page .em-page-header { min-height: 0; }
  .emotions-page .em-page-header h1 { font-size: 25px; }
  .emotions-page .em-page-header p { font-size: 11px; }
  .emotions-page .em-page-body { padding-top: 17px; }
  .em-opening { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px 15px; }
  .em-workspace { gap: 13px; }
  .em-face-card, .em-story-card, .em-influence-card, .em-how-card, .em-circle-card { padding: 18px; border-radius: 16px; }
  .em-face-stage { min-height: 243px; }
  .em-face-stage > div { width: min(73%, 220px); }
  .em-identity { align-items: flex-start; flex-direction: column; }
  .em-identity-options { width: 100%; }
  .em-identity-options button { flex: 1; }
  .em-section-lead { align-items: flex-start; flex-direction: column; gap: 7px; }
  .em-section-lead > p { max-width: none; text-align: left; }
  .em-influence-picks { gap: 7px; margin-top: 15px; }
  .em-influence-picks button { min-height: 66px; padding: 11px 10px; }
  .em-influence-result { align-items: flex-start; }
  .em-ask-pill { display: none; }
  .em-how-grid { margin-top: 17px; }
  .em-circle-card .em-section-lead { flex-direction: row; align-items: flex-end; }
}
@media (max-width: 390px) {
  .em-control-heading { flex-wrap: wrap; }
  .em-circle-card .em-section-lead { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .emotions-page *, .emotions-page *::before, .emotions-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  @media (hover: hover) and (pointer: fine){.em-face-stage:hover .em-face-svg { transform: none; }}
}

/* Compact principles: index alongside the copy, with usable line lengths. */
.emotions-page .em-how-card { padding: 16px 18px; }
.emotions-page .em-how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 12px; background: var(--line); }
.emotions-page .em-how-grid > div { display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 3px 8px; align-content: start; min-width: 0; padding: 12px 14px; border: 0; background: #fff; }
.emotions-page .em-how-index { display: block; grid-column: 1; grid-row: 1 / 3; align-self: start; width: auto; height: auto; margin: 0; padding: 1px 0 0; border: 0; border-radius: 0; background: transparent; color: #999; font: 400 9px/18px var(--mono); }
.emotions-page .em-how-grid h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 12px; line-height: 18px; }
.emotions-page .em-how-grid p { grid-column: 2; grid-row: 2; max-width: none; margin: 0; font-size: 11px; line-height: 1.5; }
.emotions-page .em-care-risk { margin-top: 12px; }
@media (max-width: 1100px) {
  .emotions-page .em-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .emotions-page .em-how-card { padding: 14px 16px; }
  .emotions-page .em-how-grid { grid-template-columns: minmax(0, 1fr); }
  .emotions-page .em-how-grid > div { padding: 10px 0; }
}

/* Keep result feedback stable while the optional examples change. */
.emotions-page .em-page-header .em-result-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.em-question-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin-top: 9px; }
.em-question-tools button { min-width: 102px; min-height: 32px; padding: 6px 9px; border: 1px solid #dededb; border-radius: 6px; background: #fff; color: #405b91; font: 500 11px/1.4 var(--font); }
@media (hover: hover) and (pointer: fine){.em-question-tools button:hover:not(:disabled) { background: #f5f6f8; }}
.em-gentle-line .em-question-tools [data-em-copy-status] { color: #555; font: 400 11px/1.5 var(--font); letter-spacing: normal; text-transform: none; }
.em-circle-person-copy small .em-evidence-date { display: block; margin-top: 3px; color: #666; font: 400 10px/1.5 var(--font); }
.em-circle-person-copy .em-sample-label { color: #555; font-weight: 500; }
@media (max-width: 680px) { .em-question-tools button { min-height: 40px; } }
