:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #142d3d;
  background: #10303c;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  /* Honghub brand artwork, page 5. */
  --brand-jade: #3dd3ae;
  --brand-green: #4fa782;
  --brand-blue: #166a94;
  --brand-lime: #bfe3a6;
  --brand-lilac: #ecc3ec;
  --ink: #142d3d;
  --chat: #eaf2f0;
  --green: color-mix(in srgb, var(--brand-jade) 29%, white);
  --action: #185e56;
  --muted: #50676e;
  --border: #d5e3df;
  --accent: var(--brand-lilac);
  --accent-ink: #43254c;
  --accent-soft: color-mix(in srgb, var(--brand-lilac) 54%, white);
  --accent-hover: color-mix(in srgb, var(--brand-lilac) 89%, #824780);
  --answer-surface: #fff;
  --answer-tint: #f1f7f5;
  --answer-hover: #e3efeb;
  --answer-border-strong: #8ca9a2;
  --answer-accent-border: #bd92be;
  --answer-accent-strong: #784778;
  --answer-radius: 17px;
  --answer-control-radius: 10px;
  --answer-panel-pad: 16px;
  --answer-panel-width: 660px;
  --answer-title-size: 15px;
  --answer-meta-size: 12px;
  --answer-gap: 8px;
  --answer-target: 44px;
  --focus-ring: #376e68;
  --honghub-background:
    radial-gradient(ellipse at 6% 22%, color-mix(in srgb, var(--brand-green) 70%, #10323e), transparent 54%),
    radial-gradient(ellipse at 100% 5%, color-mix(in srgb, var(--brand-blue) 61%, #172738), transparent 54%),
    radial-gradient(ellipse at 94% -20%, color-mix(in srgb, var(--brand-lilac) 45%, #182840), transparent 46%),
    #10323e;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow: hidden; }
body { background: var(--honghub-background); }
@media (min-width: 701px) {
  body {
    background: linear-gradient(#10323e1a, #10323e1a),
      url('/honghub-desktop-background.webp') center / cover no-repeat,
      var(--honghub-background);
  }
}
button, input, textarea { font: inherit; }
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .18s ease, opacity .18s ease, box-shadow .18s ease;
}
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .38; cursor: default; }
button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
input, textarea { min-width: 0; }
#app {
  height: 100vh;
  height: var(--app-height, 100dvh);
  max-width: 984px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.window {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: linear-gradient(135deg, #e9f1ef, #edf4f3);
  border: 1px solid #ffffff9c;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 84px #07202c4d, 0 3px 16px #07202c20;
}
.header {
  flex: none;
  border-bottom: 1px solid var(--border);
  background: #fcfdfd;
}
.chat-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 25px;
}
.contact { min-width: 0; }
.contact-person, .mobile-page-title, .send svg { display: none; }
.avatar {
  flex: none;
  width: 36px;
  height: 36px;
  display: block;
  object-fit: cover;
  border-radius: 11px;
  background: #d9e6e1;
}
.avatar.research-avatar {
  border-radius: 50%;
  background: #b7d6cd url('/research-bot-avatar') center / cover no-repeat;
}
.header .avatar { width: 44px; height: 44px; border-radius: 50%; }
.contact-name { font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: .1px; }
.contact-description { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.survey-home {
  margin-left: auto;
  border: 1px solid #9ebfb5;
  border-radius: 99px;
  padding: 7px 13px;
  color: #245653;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.survey-home:focus-visible, .survey-home:hover { background: #e0f3ee; }
.restart-survey, .skip-current { flex: none; color: #245653; font-size: 12px; white-space: nowrap; }
.restart-survey { min-height: 44px; padding: 0 7px; font-weight: 600; }
.skip-current { min-height: 44px; padding: 0 6px 0 11px; border-left: 1px solid var(--border); font-weight: 550; }
@media (max-width: 480px) {
  .header:has(.restart-survey:not([hidden])) .survey-home { display: none; }
  .restart-survey { margin-left: auto; }
}
.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 25px 25px 20px;
  scrollbar-width: thin;
  scrollbar-color: #c8dad5 transparent;
  overflow-anchor: none;
}
.time-divider {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 25px;
  line-height: 1.6;
  letter-spacing: .2px;
}
.message { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.message-content { max-width: min(76%, 650px); min-width: 0; }
.bubble {
  position: relative;
  padding: 12px 17px;
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  border-radius: 17px;
  min-height: 44px;
  letter-spacing: .05px;
  box-shadow: 0 1px 2px #22494c0a;
}
.message.user { flex-direction: row-reverse; }
.message.user .bubble {
  background: var(--green);
  color: #153638;
  border-radius: 17px;
  box-shadow: 0 1px 2px #244c3b0a;
}
.delivery-status {
  text-align: right;
  color: #959e90;
  font-size: 11px;
  line-height: 1.8;
  margin: 7px 3px 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.delivery-status button { color: var(--action); font-size: 12px; min-height: 28px; padding: 0 3px 0 8px; }
.failed .delivery-status { color: #9f7e6c; }
.pending .bubble { opacity: .85; }
.message-enter { animation: message-in .26s cubic-bezier(.22,.7,.2,1) both; }
.composer-area {
  flex: none;
  background: #f9fcfb;
  border-top: 1px solid var(--border);
  padding: 12px 25px 11px;
}
.composer {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: none;
  padding: 0;
}
.composer textarea {
  border: 1px solid var(--border);
  outline: 0;
  background: #f0f7f5;
  border-radius: 11px;
  resize: none;
  width: 100%;
  font-size: 15px;
  line-height: 1.75;
  padding: 9px 13px;
  min-height: 44px;
  max-height: 130px;
  display: block;
  overflow-y: auto;
  color: var(--ink);
}
.composer textarea:focus { border-color: #6e978e; box-shadow: 0 0 0 2px #91bcb22e; }
.composer textarea::placeholder { color: #596e73; }
.send {
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 650;
  height: 44px;
  min-width: 64px;
  padding: 0 17px;
  flex: none;
  letter-spacing: .3px;
}
.send:hover:not(:disabled) { background: var(--accent-hover); }
.send:disabled { opacity: 1; background: var(--accent-soft); color: #675574; }
.typing-row .bubble { min-width: 60px; min-height: 40px; padding: 12px 16px; }
.typing-dots { display: flex; gap: 5px; height: 15px; align-items: center; }
.typing-dots i { height: 5px; width: 5px; background: #a8b2a0; border-radius: 50%; animation: typing-pulse 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
.latest {
  position: absolute;
  right: 28px;
  bottom: 112px;
  border: 1px solid #e0e8d9;
  background: #fff;
  color: #627b5f;
  font-size: 11px;
  line-height: 1.7;
  padding: 7px 13px;
  border-radius: 18px;
  box-shadow: 0 3px 12px #29432309;
}
.primary { padding: 10px 19px; font-size: 13px; line-height: 1.7; }
:is(.primary, .inline-submit, .en-primary) {
  min-height: var(--answer-target);
  border-radius: var(--answer-control-radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}
:is(.primary, .inline-submit, .en-primary):hover:not(:disabled) { background: var(--accent-hover); }
:is(.primary, .inline-submit, .en-primary):disabled { background: #efebf2; color: #64576c; opacity: 1; }
:is(.answer-panel, .en-card, .finish-inline) {
  background: var(--answer-surface);
  border: 1px solid var(--border);
  border-radius: var(--answer-radius);
}
.finish-inline { margin: 10px 0 23px 48px; }
.finish-inline .primary { font-size: 12px; padding: 9px 19px; }
.conversation-meta {display:flex;justify-content:center;align-items:center;margin-top:6px;}
.powered-by {color:var(--muted);font-size:12px;line-height:1.6;padding:4px 10px;text-decoration:none;white-space:nowrap;}
.powered-by:hover,.powered-by:focus-visible {text-decoration:underline;text-underline-offset:3px;}
.load-error { font-size: 12px; color: #929c8b; text-align: center; line-height: 1.8; margin: 25px auto; }
.retry-link { font-size: 12px; color: #627b5f; padding: 4px; }
#toast {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%,5px);
  background: #2c382eeF;
  color: #fff;
  border-radius: 10px;
  padding: 10px 17px;
  font-size: 12px;
  line-height: 1.8;
  max-width: 90vw;
  z-index: 20;
  transition: opacity .16s ease, transform .16s ease;
}
#toast.visible { opacity: 1; transform: translate(-50%,0); }
[hidden] { display: none !important; }
@keyframes message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typing-pulse { 0%,60%,100% { opacity: .4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 700px) {
  html, body { background: var(--chat); }
  .window { border: 0; border-radius: 0; box-shadow: none; }
  .mobile-page-title { display: block; text-align: center; padding: max(12px, env(safe-area-inset-top)) 16px 12px; color: var(--ink); font-size: 17px; line-height: 1.4; font-weight: 650; }
  .survey-mobile-wechat .mobile-page-title { display: none; }
  .chat-identity { padding: 6px 16px; min-height: 54px; gap: 10px; color: #f2fcf9; background: linear-gradient(101deg, color-mix(in srgb, var(--brand-blue) 28%, #102c38), color-mix(in srgb, var(--brand-green) 34%, #132f3b)); }
  .header .avatar { width: 34px; height: 34px; }
  .header .contact { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; }
  .contact-person { display: inline; font-weight: 650; font-size: 16px; }
  .contact-name, .desktop-byline { display: none; }
  .contact-description { color: #b3ded4; font-size: 12px; margin: 0; }
  .header .restart-survey, .header .survey-home { margin-left: auto; color: #c4eee3; }
  .header .survey-home { border-color: #7eafa2; }
  .header .survey-home:is(:hover,:focus-visible) { background: #34695f; }
  .header:has(.restart-survey:not([hidden])) .survey-home { display: none; }
  .messages { padding: 22px 15px 18px; }
  .time-divider { font-size: 11px; margin-bottom: 19px; }
  .message { gap: 10px; margin-bottom: 20px; }
  .avatar { width: 32px; height: 32px; border-radius: 10px; }
  .message-content { max-width: calc(100% - 49px); }
  .bubble { font-size: 16px; line-height: 1.55; padding: 11px 14px; min-height: 42px; letter-spacing: 0; border-radius: 15px; }
  .window { --answer-radius: 15px; --answer-panel-pad: 12px; }
  .message.user .bubble { border-radius: 15px; }
  .composer-area { padding: 10px 15px max(8px,env(safe-area-inset-bottom)); }
  .composer { gap: 7px; }
  .composer textarea { font-size: 16px; min-height: 44px; padding: 9px 11px; line-height: 1.5; max-height: 130px; background: #e8f3f0; }
  .send { display: grid; place-items: center; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; background: var(--brand-jade); color: #153c45; }
  .send:hover:not(:disabled) { background: color-mix(in srgb, var(--brand-jade) 70%, white); }
  .send:disabled { background: #d3eae4; color: #567873; }
  .send span { display: none; }
  .send svg { display: block; }
  .skip-current { padding-inline: 6px 1px; }
  .latest { right: 15px; bottom: calc(98px + env(safe-area-inset-bottom)); font-size: 12px; }
  .finish-inline { margin-left: 42px; }
  .delivery-status { font-size: 11px; }
  .typing-row .bubble { min-height: 36px; padding: 10px 15px; }
  .message-enter { animation-duration: .23s; }
}
@media (max-width: 700px), (pointer: coarse) and (max-height: 550px) {
  html, body { overscroll-behavior: none; }
  #app {
    position: fixed;
    inset: var(--app-top, 0px) 0 auto;
    padding: 0;
    max-width: none;
  }
  #app :is(input:not([type="range"]), textarea) { font-size: 16px; }
  .survey-keyboard .mobile-page-title { display: none; }
  .survey-keyboard .chat-identity { min-height: 42px; padding-block: 2px; }
  .survey-keyboard .restart-survey { min-height: 38px; }
  .survey-keyboard :is(.messages, .en-main) { padding-block: 10px; }
  .survey-keyboard .composer-area { padding-block: 6px; }
  .survey-keyboard .composer textarea { max-height: clamp(39px, 22dvh, 82px); }
  .survey-keyboard #app .conversation-meta, .survey-keyboard #latest { display: none; }
  .survey-keyboard #toast {
    top: calc(var(--visible-bottom, 100dvh) - 10px);
    bottom: auto;
    transform: translate(-50%, calc(-100% + 5px));
  }
  .survey-keyboard #toast.visible { transform: translate(-50%, -100%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Answers are part of the conversation, immediately below the latest question. */
.inline-controls { margin: -7px 0 24px 48px; max-width: 760px; }
.inline-options { display: flex; flex-wrap: wrap; gap: 9px; align-items: flex-start; }
.inline-option { min-height: 44px; border: 1px solid var(--border); border-radius: var(--answer-control-radius); background: var(--answer-surface); color: var(--ink); padding: 9px 13px; font-size: 14px; line-height: 1.55; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.inline-option:hover:not(:disabled, .selected) { background: var(--answer-hover); border-color: var(--answer-border-strong); }
.inline-option.selected { background: var(--accent-soft); border-color: var(--answer-accent-border); color: var(--accent-ink); }
.inline-label { font-size: 14px; font-weight: 500; line-height: 1.8; margin: 0 0 10px; color: var(--muted); }
.inline-hint { font-size: 12px; line-height: 1.85; color: var(--muted); margin: 0 0 12px; white-space: pre-wrap; }
.inline-submit { display: inline-block; padding: 9px 16px; font-size: 13px; line-height: 1.7; margin-top: 12px; flex: none; }
.inline-other { display: block; margin-top: 13px; max-width: 440px; }
.inline-other>span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.inline-field { min-width: 0; width: 100%; border: 1px solid var(--border); border-radius: var(--answer-control-radius); background: var(--answer-tint); padding: 10px 12px; font-size: 15px; line-height: 1.6; color: var(--ink); outline: none; }
.inline-field:focus { border-color: var(--focus-ring); box-shadow: 0 0 0 2px #376e681a; }
.inline-field-form { display: flex; gap: 9px; align-items: center; max-width: 530px; }
.inline-field-form .inline-submit { margin: 0; }
.inline-unit { color: var(--muted); font-size: 12px; white-space: nowrap; }
.inline-secondary { font-size: 12px; color: var(--action); padding: 10px 0 0; }
.option-rank { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--answer-accent-strong); color: white; font-size: 10px; margin-right: 7px; }
@media (max-width:700px) {
 .inline-controls { margin: -6px 0 22px 42px; }
 .inline-options { gap: 8px; }
 .inline-option { padding-inline: 11px; }
 .inline-hint { font-size: 11px; }
 .inline-label { font-size: 13px; }
 .inline-field { font-size: 16px; padding: 9px 10px; }
 .inline-field-form { gap: 6px; }
 .inline-field-form .inline-submit { padding: 9px 12px; }
 .inline-unit { font-size: 11px; }
}
.aggregate-card { padding:18px; max-width:760px; animation:card-arrive .26s cubic-bezier(.2,.7,.25,1) both; }
.answer-card-head {display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; }
.answer-card-head h3 {font-size:16px; font-weight:650; line-height:1.45; margin:0; color:var(--ink); }
.card-count {font-size:11px; color:var(--muted); white-space:nowrap; padding-top:4px; font-variant-numeric:tabular-nums; }
.card-year-label {display:flex; align-items:center; gap:16px; color:var(--muted); font-size:12px; }
.card-input,.card-select {width:100%; min-width:0; border:1px solid var(--border); background:var(--answer-tint); color:var(--ink); border-radius:var(--answer-control-radius); font:inherit; font-size:14px; padding:11px 12px; line-height:1.65; outline:0; transition:border-color .18s,box-shadow .18s,background .18s; }
.card-input:focus,.card-select:focus {border-color:var(--answer-border-strong); background:#fff; box-shadow:0 0 0 3px #376e681a; }
.card-input::placeholder {color:var(--muted); }
.year-input {max-width:225px;font-size:18px;letter-spacing:.5px; }
.year-shortcuts {display:flex; gap:7px; flex-wrap:wrap; margin:14px 0 22px; }
.year-shortcuts button {border:1px solid var(--border); border-radius:8px; padding:8px 11px; font-size:12px; color:var(--muted); background:var(--answer-tint); }
.card-section-label {font-size:12px;color:var(--muted);margin:0 0 10px; }
.month-grid {display:grid;grid-template-columns:repeat(6,1fr);gap:8px; }
.month-grid button {background:var(--answer-tint);border:1px solid transparent;border-radius:11px;padding:12px 6px;color:var(--muted);font-size:18px;font-variant-numeric:tabular-nums; }
.month-grid button span {font-size:10px;margin-left:3px;color:var(--muted); }
.month-grid button:hover:not(:disabled),.year-shortcuts button:hover:not(:disabled) {background:var(--answer-hover);border-color:var(--answer-border-strong); }
.month-grid button.selected,.year-shortcuts button.selected {background:var(--accent-soft);border-color:var(--answer-accent-border);color:var(--accent-ink); }
.card-note {font-size:11px;line-height:1.85;color:var(--muted);margin:14px 0 0; }
.matrix-card-rows {display:flex; flex-direction:column; }
.matrix-card-row {display:grid;grid-template-columns:minmax(140px,.9fr) minmax(0,1.25fr);align-items:center;gap:20px;padding:12px 0;border-bottom:1px solid var(--border); }
.matrix-card-row:first-child {padding-top:0; }
.matrix-card-row:last-child {border-bottom:0; }
.matrix-card-row>span {font-size:12px;line-height:1.8;color:var(--muted); }
.card-select {padding:10px 9px;font-size:12px;text-overflow:ellipsis; }
.card-fields-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
.card-field {display:block;min-width:0; }
.card-field>span {display:block;font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:8px; }
.card-unit-field {display:flex;align-items:center;gap:9px; }
.card-unit-field>span {font-size:10px;color:var(--muted);white-space:nowrap; }
.card-total {display:flex;align-items:baseline;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);margin-top:20px;padding-top:16px;color:var(--muted);font-size:12px; }
.card-total strong {font-size:23px;font-weight:500;letter-spacing:-.5px;color:var(--ink); }
.card-total>span {font-size:10px; }
.paired-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
.impact-options {display:flex;gap:7px;margin-top:10px; }
.impact-options button {flex:1;background:var(--answer-tint);border:1px solid var(--border);padding:9px 5px;border-radius:8px;font-size:12px;color:var(--muted); }
.impact-options button.selected {background:var(--accent-soft);border-color:var(--answer-accent-border);color:var(--accent-ink); }
.product-card-options {display:flex;flex-wrap:wrap;gap:8px;margin-top:15px; }
.product-card-options button {border:1px solid var(--border);border-radius:10px;padding:9px 12px;color:var(--muted);background:var(--answer-tint);font-size:12px;line-height:1.7;text-align:left; }
.product-card-options button.selected {background:var(--accent-soft);border-color:var(--answer-accent-border);color:var(--accent-ink); }
.answer-card-footer {display:flex;justify-content:flex-end;border-top:1px solid var(--border);margin-top:14px;padding-top:10px; }
.answer-card-footer .inline-submit {margin-top:0; }
.card-error {font-size:12px;line-height:1.8;color:#a47b59;margin:15px 0 0; }
@keyframes card-arrive {from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.aggregate-card{padding:14px;margin-left:0;margin-top:3px;}.answer-card-head{gap:10px;margin-bottom:13px;}.answer-card-head h3{font-size:14px;}.matrix-card-row{grid-template-columns:minmax(100px,.9fr) minmax(0,1.35fr);gap:12px;padding:11px 0;}.matrix-card-row>span{font-size:11px;}.card-select{font-size:16px;padding:9px 6px;}.month-grid{grid-template-columns:repeat(4,1fr);gap:8px;}.month-grid button{padding:12px 5px;font-size:17px;}.year-shortcuts{gap:6px;margin:12px 0 18px;}.year-shortcuts button{padding:7px 9px;font-size:11px;}.card-input{font-size:16px;padding:10px;}.card-fields-grid{grid-template-columns:1fr;gap:15px;}.paired-fields{grid-template-columns:1fr;gap:12px;}.paired-field+.paired-field{border-top:1px solid var(--border);padding-top:12px;}.product-card-options{gap:7px;}.product-card-options button{font-size:12px;padding:8px 10px;}.card-field>span{font-size:11px;}.card-note{font-size:11px;}.year-input{max-width:200px;}.answer-card-footer .inline-submit{font-size:12px;}}
.matrix-card-row {display:block;padding:16px 0;}
.matrix-card-row>span {display:block;font-size:13px;line-height:1.8;margin-bottom:10px;color:var(--ink);}
.matrix-segments {display:flex;flex-wrap:wrap;gap:7px;}
.matrix-segments button {min-height:40px;padding:9px 12px;border:1px solid var(--border);border-radius:9px;background:var(--answer-tint);color:var(--muted);font-size:12px;line-height:1.65;text-align:left;transition:background .18s ease,border-color .18s ease,transform .15s ease;}
.matrix-segments button:hover:not(:disabled, .selected) {border-color:var(--answer-border-strong);background:var(--answer-hover);}
.matrix-segments button.selected {border-color:var(--answer-accent-border);background:var(--accent-soft);color:var(--accent-ink);}
@media(max-width:700px){.matrix-card-row{display:block;padding:15px 0;}.matrix-card-row>span{font-size:13px;line-height:1.8;}.matrix-segments{gap:7px;}.matrix-segments button{min-height:40px;font-size:12px;padding:9px 11px;max-width:100%;}.date-card{padding-bottom:3px;}}
.month-grid button,.year-shortcuts button,.impact-options button,.product-card-options button {transition:background .18s ease,border-color .18s ease,color .18s ease,transform .15s ease;}
.aggregate-card button:active:not(:disabled) {transform:scale(.98);}
.aggregate-card button:focus-visible {outline:2px solid var(--focus-ring);outline-offset:3px;}
.choice-head { margin-bottom: 10px; }
.choice-head > span, .choice-count { color: var(--muted); font-size: var(--answer-meta-size); white-space: nowrap; }
.choice-order {font-size:12px;color:var(--muted);margin:-6px 0 12px;}
.is-multi .inline-options {display:grid;grid-template-columns:1fr;gap:6px;}
.choice-card .inline-option {transition:background .16s ease,border-color .16s ease,color .16s ease,transform .12s ease;}
.is-multi .inline-option {display:flex;align-items:center;gap:11px;border:1px solid transparent;background:var(--answer-tint);color:var(--ink);padding:11px 12px;border-radius:10px;min-height:44px;}
.is-multi .inline-option.selected {background:var(--accent-soft);border-color:var(--answer-accent-border);color:var(--accent-ink);}
.is-multi .inline-option:hover:not(:disabled, .selected) {background:var(--answer-hover);}
.choice-mark {display:inline-grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border:1px solid var(--answer-border-strong);border-radius:5px;font-size:12px;color:transparent;background:#fff;transition:background .16s ease,border-color .16s ease,color .16s ease;}
.selected .choice-mark {background:var(--answer-accent-strong);border-color:var(--answer-accent-strong);color:#fff;}
.choice-mark.rank {border-radius:50%;font-size:10px;}
.choice-label {min-width:0;line-height:1.7;}
.choice-card .inline-option:active:not(:disabled) {transform:scale(.988);}
.choice-card .inline-option:focus-visible {outline:2px solid var(--focus-ring);outline-offset:2px;}
.choice-footer {display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:48px;margin-top:12px;padding-top:10px;border-top:1px solid var(--border);}
.choice-footer[hidden] {display:none;}
.choice-footer .inline-submit { margin-inline-start: auto; }
.other-reveal {display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .2s ease,opacity .16s ease,visibility .2s;}
.other-reveal>div {min-height:0;overflow:hidden;}
.other-reveal.expanded {grid-template-rows:1fr;opacity:1;visibility:visible;}
.other-reveal .inline-other {margin-top:12px;margin-bottom:1px;max-width:none;}
.text-choice-card {max-width:650px;padding:16px;}
.text-suggestions {display:flex;flex-wrap:wrap;gap:var(--answer-gap);margin:3px 0 12px;}
.duration-card .text-suggestions button { padding-inline: 8px; }
.text-suggestions button {min-height:39px;padding:8px 13px;background:var(--answer-tint);color:var(--muted);border:1px solid var(--border);border-radius:9px;font-size:13px;transition:background .16s,border-color .16s,transform .12s;}
.text-suggestions button.selected {background:var(--accent-soft);border-color:var(--answer-accent-border);color:var(--accent-ink);}
.duration-value {display:flex;align-items:center;gap:10px;}
.duration-value .inline-field {flex:1;min-width:0;}
.duration-value textarea {resize:vertical;}
.duration-units {display:flex;align-self:stretch;border:1px solid var(--border);border-radius:9px;padding:3px;background:var(--answer-tint);}
.duration-units button {padding:0 11px;font-size:13px;border-radius:6px;color:var(--muted);transition:background .16s,color .16s;}
.duration-units button.selected {background:var(--accent-soft);color:var(--accent-ink);}
.duration-day {font-size:13px;color:var(--muted);}
.message-edits {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px 12px;margin-top:5px;}
.message-edits button {padding:2px 0;color:var(--action);font-size:11px;line-height:1.5;text-align:right;}
.message-edits button:hover:not(:disabled) {color:var(--action);}
.cancel-edit {display:block;margin:12px auto 0;padding:8px 12px;font-size:12px;color:var(--action);}
@media(max-width:700px){.text-choice-card{margin-left:0;padding:15px;}.text-suggestions button{font-size:13px;}.duration-value .inline-field{font-size:16px;}}
.stage-choices .inline-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.stage-choices .inline-option {display:flex;align-items:flex-start;gap:12px;width:100%;min-height:95px;padding:15px;border:1px solid var(--border);background:#fff;border-radius:13px;transition:background .14s,border-color .14s,transform .12s;}
.stage-choices .inline-option:hover:not(:disabled, .selected) {background:var(--answer-hover);border-color:var(--answer-border-strong);}
.stage-choices .inline-option.selected {background:var(--accent-soft);border-color:var(--answer-accent-border);}
.stage-indicator {display:inline-block;flex:0 0 16px;width:16px;height:16px;margin-top:4px;border:1.5px solid var(--answer-border-strong);border-radius:50%;background:#fff;transition:border-color .14s,box-shadow .14s;}
.selected .stage-indicator {border-color:var(--answer-accent-strong);box-shadow:inset 0 0 0 3px #fff;background:var(--answer-accent-strong);}
.stage-copy {display:flex;flex-direction:column;gap:5px;min-width:0;}
.stage-copy strong {font-size:15px;font-weight:550;line-height:1.65;color:var(--ink);}
.stage-copy>span {font-size:13px;line-height:1.8;color:var(--muted);}
@media(max-width:700px){.stage-choices{margin-left:0;}.stage-choices .inline-options{grid-template-columns:1fr;gap:8px;}.stage-choices .inline-option{min-height:0;padding:14px;}.stage-copy strong{font-size:15px;}.stage-copy>span{font-size:13px;}}
/* Compact choice grids keep every source option directly visible. */
.is-multi .inline-options {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
.is-multi .inline-option {min-height:44px;padding:8px 9px;gap:7px;font-size:14px;line-height:1.5;}
.is-multi .inline-option.long-option {grid-column:1/-1;}
.is-multi .choice-label {line-height:1.5;}
.is-multi .choice-mark {flex-basis:15px;width:15px;height:15px;font-size:11px;}
@media (max-width: 700px) {
  .is-multi .inline-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.message-edits button {color:var(--action);font-size:12px;padding:4px 3px;min-height:26px;}
@media (pointer:coarse) {
  .message-edits button,.answer-card-footer .inline-submit {min-width:44px;min-height:44px;}
}
.matrix-radio {
  display: block;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--answer-border-strong);
  border-radius: 50%;
  background: var(--answer-surface);
  transition: background .14s, border-color .14s, box-shadow .14s;
}

.matrix-legend {
  margin: 0 0 10px;
  font-size: var(--answer-meta-size);
  line-height: 1.55;
  color: var(--muted);
}
.compact-matrix-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.compact-matrix-summary h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}
.compact-matrix-summary span {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.compact-matrix-scroll {
  max-height: clamp(168px, 31dvh, 272px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--answer-border-strong) transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.compact-matrix-scroll:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.compact-matrix-head, .compact-matrix-row {
  display: grid;
  grid-template-columns: minmax(125px, 1.5fr) repeat(var(--matrix-options), minmax(0, 1fr));
  align-items: center;
}
.compact-matrix-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 44px;
  background: var(--answer-tint);
  border-bottom: 1px solid var(--border);
}
.compact-matrix-head span {
  padding: 8px 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}
.compact-matrix-head span:first-child, .compact-matrix-label {
  padding-inline: 10px;
  text-align: left;
}
.compact-matrix-row + .compact-matrix-row { border-top: 1px solid var(--border); }
.compact-matrix-label {
  padding-block: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.compact-matrix-option {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  border-radius: 7px;
  cursor: pointer;
}
.compact-matrix-option:has(input:not(:disabled, :checked)):hover { background: var(--answer-hover); }
.compact-matrix-option:has(input:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}
.compact-matrix-option:has(input:checked) { background: var(--accent-soft); }
.compact-matrix-option:has(input:checked) .matrix-radio {
  background: var(--answer-accent-strong);
  border-color: var(--answer-accent-strong);
  box-shadow: inset 0 0 0 4px #fff;
}
.compact-matrix-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.compact-matrix-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.compact-matrix-footer .inline-submit { margin: 0; }
@media (max-width: 700px) {
  .compact-matrix-head, .compact-matrix-row {
    grid-template-columns: repeat(var(--matrix-options), minmax(0, 1fr));
  }
  .compact-matrix-head span:first-child { display: none; }
  .compact-matrix-head span { font-size: 11px; }
  .compact-matrix-label {
    grid-column: 1 / -1;
    padding: 8px 8px 0;
    font-weight: 550;
  }
}

.ordinal-card {max-width:650px;}
.ordinal-card .answer-card-head {margin-bottom:10px;}
.ordinal-subtitle {font-size:12px;line-height:1.7;color:var(--muted);margin:4px 0 0;}
.ordinal-row {padding:9px 0 14px;border-bottom:1px solid var(--border);}
.ordinal-row:last-child {border-bottom:0;}
.ordinal-row-head {display:flex;align-items:center;gap:10px;min-height:44px;}
.ordinal-row-head h4 {margin:0;color:var(--ink);font-weight:500;font-size:14px;white-space:nowrap;}
.ordinal-selection {margin-left:auto;min-width:0;color:var(--accent-ink);font-size:15px;font-variant-numeric:tabular-nums;line-height:1.7;text-align:right;}
.ordinal-row.is-unset .ordinal-selection {color:var(--muted);font-size:13px;}
.ordinal-exceptions button {min-height:44px;padding:8px 10px;background:transparent;border:1px solid transparent;border-radius:8px;font-size:12px;color:var(--muted);white-space:nowrap;transition:background .16s,border-color .16s,color .16s;}
.ordinal-exceptions button.selected {color:var(--accent-ink);background:var(--accent-soft);border-color:var(--answer-accent-border);}
.ordinal-track-hit {position:relative;min-height:64px;touch-action:pan-y;user-select:none;cursor:pointer;}
.ordinal-native {position:absolute;left:0;top:0;width:100%;height:44px;opacity:0;cursor:pointer;margin:0;z-index:2;pointer-events:none;}
.ordinal-line,.ordinal-fill {position:absolute;top:20px;left:10px;height:3px;border-radius:2px;pointer-events:none;}
.ordinal-line {right:10px;background:var(--border);}
.ordinal-fill {background:var(--answer-accent-border);}
.ordinal-marks {position:absolute;top:18px;left:8px;right:8px;display:flex;justify-content:space-between;pointer-events:none;}
.ordinal-marks span {width:6px;height:7px;background:var(--answer-border-strong);border-radius:2px;}
.ordinal-thumb {position:absolute;top:12px;width:19px;height:19px;transform:translateX(-50%);border:3px solid #fff;background:var(--answer-accent-strong);border-radius:50%;box-shadow:0 0 0 1px var(--answer-accent-border),0 2px 5px #76508b26;pointer-events:none;}
.ordinal-labels {position:absolute;inset:0;pointer-events:none;}
.ordinal-labels span {position:absolute;top:37px;transform:translateX(-50%);font-size:11px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;}
.ordinal-labels span:first-child {transform:none;}
.ordinal-labels span:last-child {transform:translateX(-100%);}
.ordinal-row.is-unset .ordinal-thumb,.ordinal-row.is-unset .ordinal-fill {visibility:hidden;}
.ordinal-track-hit:has(.ordinal-native:focus-visible) {outline:2px solid var(--focus-ring);outline-offset:1px;border-radius:8px;}
.ordinal-row.is-disabled .ordinal-track-hit {cursor:wait;}
.ordinal-definitions {margin-top:6px;padding-top:8px;border-top:1px solid var(--border);font-size:11px;line-height:1.85;color:var(--muted);}
@media (max-width: 700px) {
  .ordinal-card { display: flex; flex-direction: column; padding: 14px; }
  .ordinal-row-head { gap: 7px; }
  .ordinal-selection, .ordinal-row-head h4 { font-size: 13px; }
  .ordinal-exceptions button { font-size: 12px; padding-inline: 5px; }
  .ordinal-subtitle { font-size: 12px; }
  .ordinal-row { padding: 6px 0 9px; }
  .ordinal-track-hit { min-height: 56px; }
  .ordinal-card .answer-card-footer { margin-top: 6px; padding-top: 10px; }
  .ordinal-definitions { order: 1; margin-top: 12px; }
  .money-axis .ordinal-subtitle { display: none; }
  .money-axis .answer-card-head { margin-bottom: 4px; }
  .money-axis .ordinal-row { padding-block: 0 4px; }
  .money-axis .ordinal-track-hit { min-height: 45px; }
  .money-axis .ordinal-labels span { top: 31px; }
}

/* The answer presentation follows the scale or category structure of the question. */
.discrete-scale { width:min(100% - 48px, 580px); }
.scale-track { display:grid;grid-template-columns:repeat(var(--steps), minmax(0, 1fr));position:relative; }
.scale-track::before {
  content:"";position:absolute;top:17px;left:calc(50% / var(--steps));right:calc(50% / var(--steps));
  height:2px;border-radius:2px;background:var(--answer-border-strong);pointer-events:none;
}
.scale-tick {
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:6px;min-height:50px;padding:12px 2px 6px;color:var(--ink);background:transparent;border-radius:8px;
}
.scale-dot {width:12px;height:12px;border:2px solid var(--action);border-radius:50%;background:var(--answer-tint);transition:background .14s, transform .14s;}
.scale-label {font-size:12px;line-height:1.25;overflow-wrap:anywhere;text-align:center;font-variant-numeric:tabular-nums;}
.scale-tick:hover:not(:disabled) .scale-dot,.scale-tick:focus-visible .scale-dot,.scale-tick.selected .scale-dot {background:var(--answer-accent-strong);transform:scale(1.18);}
.scale-tick:focus-visible,.scale-exceptions button:focus-visible {outline:2px solid var(--focus-ring);outline-offset:1px;}
.scale-tick.selected .scale-label {font-weight:650;color:var(--accent-ink);}
.scale-exceptions {display:flex;gap:16px;justify-content:flex-end;margin-top:3px;flex-wrap:wrap;}
.scale-exceptions button {min-height:44px;padding:0 7px;background:transparent;color:var(--muted);font-size:13px;border-radius:7px;}
.scale-exceptions button:hover:not(:disabled, .selected) {background:var(--answer-hover);}
.scale-exceptions button.selected {background:var(--accent-soft);color:var(--accent-ink);}
.ordinal-row-head h4 {white-space:normal;}

.choice-card.single_segments .inline-options {
  gap: 8px;
  align-items: center;
}
.single_segments .inline-option {
  min-width: 52px;
  padding: 8px 13px;
  border: 0;
  border-radius: 22px;
  background: var(--answer-surface);
  color: var(--action);
  box-shadow: 0 1px 2px #22494c12;
  text-align: center;
}
.single_segments .inline-option:hover:not(:disabled, .selected) { background: var(--answer-hover); }
.single_segments .inline-option.selected {
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: none;
  opacity: 1;
}
.single_list .inline-options, .single_scroll_grid .inline-options {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: var(--answer-gap);
}
.choice-card:is(.single_list, .single_scroll_grid) .inline-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: var(--answer-target);
  padding: 8px 10px;
  border: 1px solid transparent;
  background: var(--answer-tint);
}
.choice-card:is(.single_list:not(.stage-choices), .single_scroll_grid) .inline-option::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--answer-border-strong);
  border-radius: 50%;
  background: var(--answer-surface);
}
.choice-card:is(.single_list, .single_scroll_grid) .inline-option:hover:not(:disabled, .selected) {
  background: var(--answer-hover);
}
.choice-card:is(.single_list, .single_scroll_grid) .inline-option.selected {
  background: var(--accent-soft);
  border-color: var(--answer-accent-border);
}
.choice-card:is(.single_list, .single_scroll_grid) .inline-option.selected::before {
  background: var(--answer-accent-strong);
  border-color: var(--answer-accent-strong);
  box-shadow: inset 0 0 0 3px var(--answer-surface);
}
.choice-card.stage-choices .inline-option { align-items: flex-start; padding-block: 6px; }
.stage-choices .stage-copy { gap: 2px; }
.stage-choices .stage-copy > span { line-height: 1.5; }
.choice-card.multi_chips .inline-options { display: flex; flex-wrap: wrap; gap: var(--answer-gap); }
.choice-card.multi_chips .inline-option { padding-inline: 12px; }
:is(.single_scroll_grid, .scrollable-multi) .inline-options, .product-card-options {
  max-height: clamp(160px, 28dvh, 244px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--answer-border-strong) transparent;
  scrollbar-gutter: stable;
  padding: 2px;
}
@media (max-width: 700px) {
  .discrete-scale { width: 100%; margin-left: 0; }
  .scale-label { font-size: 11px; }
}
@media(max-width:360px){.scale-label{font-size:10px;}.scale-tick{padding-inline:1px;}}

.scale-full-label {display:none;}
@media(max-width:700px){
 .discrete-scale.many-scale {width:min(100%,580px);}
 .many-scale .scale-track {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
 .many-scale .scale-track::before,.many-scale .scale-dot,.many-scale .scale-label {display:none;}
 .many-scale .scale-tick {min-height:44px;justify-content:center;align-items:flex-start;padding:9px 11px;border:1px solid var(--answer-border-strong);background:var(--answer-tint);color:var(--ink);text-align:left;}
 .many-scale .scale-full-label {display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere;}
 .many-scale .scale-tick.selected {background:var(--accent-soft);border-color:var(--answer-accent-border);}
 .money-axis .ordinal-labels span:nth-child(2),.money-axis .ordinal-labels span:nth-child(4),.money-axis .ordinal-labels span:nth-child(6),.money-axis .ordinal-labels span:nth-child(7) {display:none;}
 .ordinal-labels span {color:var(--muted);}
}

.rank-selected {display:flex;flex-wrap:wrap;gap:4px;min-width:0;flex:1;}
.rank-selected-item {min-height:44px;padding:5px 8px;border:0;border-radius:8px;background:var(--accent-soft);color:var(--accent-ink);font-size:12px;text-align:left;overflow-wrap:anywhere;}
.rank-selected-item:focus-visible {outline:2px solid var(--focus-ring);outline-offset:2px;}
.choice-footer:has(.rank-selected) {flex-wrap:wrap;}
.single_scroll_grid .inline-options { position: relative; }
.choice-list-progress {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: var(--answer-meta-size);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
@media(max-width:360px){.discrete-scale:not(.many-scale) .scale-label {font-size:10px;letter-spacing:-.03em;white-space:nowrap;}}

.window.is-intro :is(.messages, .en-main) {
  display: grid;
  grid-template-columns: minmax(0, 740px);
  justify-content: center;
  align-content: safe center;
  padding: clamp(24px, 6vw, 70px);
  background: linear-gradient(#102c384d, #102c384d), var(--honghub-background);
}
.window.is-intro :is(.messages, .en-main):has(.typing-row) { align-content: start; }
.survey-intro {
  max-width: 570px;
  padding: 8px 0;
  color: #fff;
  overflow-wrap: anywhere;
}
.survey-intro-content:focus-visible {
  outline: 2px solid #a5ead6;
  outline-offset: 1px;
}
.survey-intro h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.09;
  letter-spacing: -.04em;
  font-weight: 640;
  margin: 0 0 22px;
  text-wrap: balance;
}
.survey-intro h1 span {
  color: #c1eddf;
  background: linear-gradient(105deg, var(--brand-lime) 8%, var(--brand-lilac) 50%, #8ee2ca 96%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.survey-intro p {
  max-width: 47ch;
  color: #f1fcf9;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 15px;
}
.survey-intro .intro-note { font-size: .875rem; color: #d9f0eb; }
.survey-personas { margin: 18px 0 10px; padding: 0; border: 0; min-width: 0; }
.survey-personas:empty { display: none; }
.survey-personas legend { margin-bottom: 7px; padding: 0; color: #f1fcf9; font-size: .875rem; font-weight: 650; }
.survey-persona-options {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  max-width: 505px;
}
.survey-persona-options label {
  --persona-accent: #9be9e7;
  --persona-light: #9be9e721;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 7px;
  border-radius: 15px;
  color: #f8ffff;
  cursor: pointer;
}
.survey-persona-options label[data-style="direct"] {
  --persona-accent: #d9bbff;
  --persona-light: #d9bbff24;
}
.survey-persona-options label[data-style="warm"] {
  --persona-accent: #ffb9e4;
  --persona-light: #ffa8ca28;
}
.survey-persona-options label:has(input:checked) {
  background: linear-gradient(135deg, var(--persona-light), #ffffff0a);
}
.survey-persona-options label:has(input:checked)::before {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  border-radius: 2px;
  background: var(--persona-accent);
  box-shadow: 0 0 8px var(--persona-light);
}
.survey-persona-options label:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 4px;
  border: solid var(--persona-accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.survey-persona-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.survey-persona-copy {
  display: grid;
  gap: 3px;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.survey-persona-copy small {
  color: #cde0e4;
  font-size: .75rem;
  font-weight: 400;
}
.survey-persona-icon {
  position: relative;
  width: 31px;
  height: 29px;
}
[data-style="researcher"] .survey-persona-icon::before,
[data-style="researcher"] .survey-persona-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 65%;
  height: 65%;
  border: 1px solid #8ff4ec;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #b4fffab0, #43a9b484 51%, #0c6e7b30 73%);
  box-shadow: inset 0 0 5px #7deeeabd;
}
[data-style="researcher"] .survey-persona-icon::after {
  left: 31%;
  top: 3px;
  background: linear-gradient(145deg, #43899eaa, #14373a60 60%, #67f1e25e);
}
[data-style="direct"] .survey-persona-icon {
  background: linear-gradient(135deg, #f6d0ff, #d4a1f5 49%, #6f5cba 64%, #a882d6 78%, #5e79ac);
  clip-path: polygon(6% 95%, 38% 29%, 95% 5%, 53% 56%, 83% 40%, 96% 63%, 23% 85%, 44% 61%);
}
[data-style="warm"] .survey-persona-icon::before {
  content: "";
  position: absolute;
  inset: 7px 0;
  border-radius: 65% 35% 65% 35% / 100% 38% 80% 40%;
  background: linear-gradient(108deg, #ffcea6, #f7b5c1 49%, #ed90d7);
  transform: skewY(-12deg);
  clip-path: polygon(0 83%, 8% 48%, 22% 18%, 38% 15%, 51% 30%, 66% 48%, 81% 49%, 100% 19%, 93% 65%, 80% 92%, 64% 99%, 48% 79%, 33% 64%, 15% 66%);
}
@media (hover: hover) {
  .survey-persona-options label:not(:has(input:checked)):hover { background-color: #ffffff10; }
}
@media (max-width: 460px) {
  .survey-persona-options {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.3rem), 1fr));
    gap: 4px;
  }
  .survey-persona-options label {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    justify-items: center;
    gap: 4px;
    padding: 6px 4px 8px;
    text-align: center;
  }
  .survey-persona-icon { width: 25px; height: 22px; }
  [data-style="warm"] .survey-persona-icon::before { inset-block: 4px; }
  .survey-persona-copy { font-size: .875rem; line-height: 1.3; }
}
.survey-persona-options label:has(input:focus-visible) { outline: 2px solid #a5ead6; outline-offset: 2px; }
.survey-intro .consent-start {
  min-height: 46px;
  padding: 10px 24px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--accent);
  color: #242133;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.survey-intro .consent-start:hover:not(:disabled) { background: var(--accent-hover); }
.survey-intro .consent-start:focus-visible { outline-color: #a5ead6; }
@media (forced-colors: active) {
  .survey-intro h1 span { -webkit-text-fill-color: currentColor; }
  .survey-persona-options label:has(input:checked) { outline: 1px solid Highlight; }
  .survey-persona-options label:has(input:focus-visible) { outline: 2px solid Highlight; }
}
@media (max-width: 700px), (pointer: coarse) and (max-height: 550px) {
  .window.is-intro :is(.messages, .en-main) {
    container: survey-entry / size;
    grid-template-rows: minmax(0, 1fr);
    padding: clamp(10px, 2.5vh, 24px) clamp(12px, 4vw, 28px);
  }
  .survey-intro {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    align-self: center;
    padding: 0;
  }
  /* Large type and very short viewports can scroll the entire introduction. */
  .survey-intro-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 3px;
  }
  .survey-intro h1 { margin-bottom: 14px; }
  .survey-intro p { font-size: .9375rem; line-height: 1.55; margin-bottom: 10px; }
  .survey-intro .intro-note { line-height: 1.55; }
  .survey-intro-content p:last-child { margin-bottom: 0; }
  .survey-personas {
    margin: 12px 0 0;
  }
  .survey-intro .consent-start {
    flex: none;
    width: 100%;
    margin-top: 12px;
  }
}
/* Keep the style choices visible below the text when both fit on the screen. */
@container survey-entry (min-width: 17rem) and (min-height: 13rem) {
  .survey-intro-body { display: flex; flex-direction: column; overflow: visible; padding: 0; }
  .survey-intro-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 3px;
  }
  .survey-personas { flex: none; }
  .survey-persona-options { padding: 3px; }
}
@media (max-width: 390px) { .survey-home { padding-inline: 9px; } }

.finish-inline { max-width: 520px; padding: 18px; line-height: 1.6; }
.finish-inline p { margin: 0 0 12px; }
.finish-inline label { display: block; font-size: 14px; }
.finish-inline input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px; border: 1px solid var(--border); border-radius: var(--answer-control-radius); background: var(--answer-tint); color: var(--ink); font: inherit; }
.finish-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.finish-actions button { min-height: 44px; padding: 9px 16px; cursor: pointer; }

/* Shared spacing and action hierarchy across answer types. */
.inline-controls.answer-panel {
  max-width: var(--answer-panel-width);
  padding: var(--answer-panel-pad);
}
.answer-panel :is(.answer-card-head, .compact-matrix-summary) { margin-bottom: 10px; }
.answer-panel :is(.answer-card-head h3, .choice-head h3, .compact-matrix-summary h3) {
  margin: 0;
  font-size: var(--answer-title-size);
  font-weight: 650;
}
.answer-panel :is(.card-count, .compact-matrix-summary span) {
  font-size: var(--answer-meta-size);
}
.answer-panel :is(.answer-card-footer, .choice-footer, .compact-matrix-footer, .date-picker-actions) {
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.answer-panel :is(.answer-card-footer, .choice-footer, .compact-matrix-footer) .inline-submit {
  margin-block: 0;
  min-height: var(--answer-target);
  padding: 8px 15px;
  font-size: 13px;
}
.answer-panel :is(.text-suggestions, .duration-units, .impact-options, .product-card-options, .matrix-segments) button {
  min-height: var(--answer-target);
}
.answer-panel :is(.inline-options, .product-card-options):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .inline-controls.answer-panel:not(.date-picker) { margin: 0 0 20px; }
  .text-choice-card[data-question-id="Q22g"]:not(:has([data-cancel-edit])) .choice-head { display: none; }
}

@media (max-width: 430px) and (max-height: 660px) {
  .mobile-page-title { display: none; }
  :where(html:not(.survey-mobile-wechat)) .header .contact { display: block; }
  :where(html:not(.survey-mobile-wechat)) .header .contact-name { display: block; font-size: 14px; }
  :where(html:not(.survey-mobile-wechat)) .header .desktop-byline { display: inline; }
  :where(html:not(.survey-mobile-wechat)) .header .contact-person { display: none; }
  .messages { padding-block: 14px; }
  .choice-card.stage-choices .inline-options { gap: 5px; }
  .stage-choices .stage-copy strong { font-size: 14px; line-height: 1.45; }
  .stage-choices .stage-copy > span { font-size: 12px; }
}

/* The consent and contact steps share the same reading width on both surveys. */
.privacy-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  flex: none;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
  border: 1px solid #d0dfd9;
  border-radius: 18px;
  color: #19383b;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.privacy-sheet h1, .privacy-sheet h2 { margin: 0 0 8px; color: #163e3c; line-height: 1.28; font-size: clamp(21px, 4vw, 26px); }
.privacy-sheet p { margin: 0 0 16px; color: #445d5c; }
.privacy-sheet dl { margin: 0; }
.privacy-sheet dt { margin-top: 15px; font-weight: 700; }
.privacy-sheet dd { margin: 2px 0 0; color: #435757; }
.privacy-sheet a { color: #156852; text-decoration: underline; text-underline-offset: 3px; }
.privacy-link { display: inline-flex; align-items: center; min-height: 44px; margin: 5px 0; }
.privacy-actions { border-top: 1px solid #dfebe5; padding-top: 12px; }
.privacy-choice { display: flex; gap: 11px; min-height: 44px; padding: 10px 0; align-items: flex-start; cursor: pointer; }
.privacy-choice input { accent-color: #17654f; width: 19px; height: 19px; flex: none; margin: 3px 0 0; padding: 0; }
.privacy-choice strong,.privacy-choice small { display: block; }
.privacy-choice small { color: #526965; font-size: 14px; margin-top: 2px; }
.privacy-primary,.privacy-back { font: inherit; cursor: pointer; min-height: 44px; padding: 10px 18px; border: 0; }
.privacy-primary { color: white; background: #206b5a; border-radius: 12px; display:block; width:100%; margin-top:12px; font-weight:650; }
.privacy-primary:disabled { background: #dbe5e0; color: #52635c; cursor: default; }
.privacy-back { display: block; margin: 4px auto 0; background: transparent; color:#225f52; }
.privacy-finish .privacy-choice { border-top: 1px solid #dfe9e4; padding-block: 12px; }
.privacy-purposes { margin: -5px 0 18px; padding-left: 21px; }
.privacy-email { display:block; font-weight:600; }
.privacy-email input { font: inherit; font-weight: 400; width:100%; min-height:46px; box-sizing:border-box; padding:10px 12px; margin-top:5px; border:1px solid #adc9bd; border-radius:9px; color:#173b37; background:#fff; }
.privacy-sheet :is(button,a,input):focus-visible { outline: 3px solid #854e9f; outline-offset: 2px; }

:is(.messages, .en-main):has(.privacy-finish[data-contact-step="true"]) > :not(.privacy-finish, .en-error) {
  display: none;
}
