:root {
  --black: #111111;
  --muted: #727272;
  --soft-muted: #a4a4a4;
  --line: #dedede;
  --soft: #f5f5f4;
  --white: #ffffff;
  --danger: #a6342e;
  --phone-width: 390px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--black);
  background: #dadada;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.participant-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

.phone {
  width: min(var(--phone-width), 100%);
  height: min(820px, calc(100vh - 84px));
  min-height: 650px;
  display: grid;
  grid-template-rows: 49px minmax(0, 1fr) auto;
  border: 1px solid #d3d3d3;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.phone.chat-mode {
  grid-template-rows: minmax(0, 1fr);
}

.phone.chat-mode .screen-region {
  grid-row: 1;
}

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}


.primary-action:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.22);
  outline-offset: 2px;
}

.progress-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d3d3d3;
  transition: width 180ms ease, background-color 180ms ease;
}

.progress-dot.complete {
  background: #6f6f6f;
}

.progress-dot.current {
  width: 15px;
  background: var(--black);
}

.screen-region {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6d6d6 transparent;
}

.screen {
  min-height: 100%;
  padding: 17px 24px 26px;
  animation: screen-in 180ms ease both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateX(5px);
  }
}

.screen.centered-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
  text-align: center;
}

.screen.chat-screen {
  padding: 0;
}

.screen-kicker {
  margin: 0 0 7px;
  color: var(--soft-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.screen-intro {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.48;
}

.centered-screen .screen-intro {
  max-width: 260px;
}

.field {
  display: block;
  margin-bottom: 17px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #484848;
  font-size: 10px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--black);
  background: #fff;
  outline: 0;
}

.field input {
  height: 41px;
  padding: 0 12px;
}

.field textarea {
  min-height: 78px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.4;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.06);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b2b2b2;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--soft-muted);
  font-size: 9px;
  line-height: 1.4;
}

.error-message {
  min-height: 16px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 9px;
  line-height: 1.35;
}

.profile-outline {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.profile-outline span {
  width: 21px;
  height: 21px;
  border: 1px solid #bbb;
  border-radius: 50%;
  box-shadow: 0 24px 0 7px #fff, 0 24px 0 8px #bbb;
}

.connection-preview .profile-outline {
  width: 92px;
  height: 92px;
  margin-bottom: 14px;
}

.connection-preview .profile-outline span {
  transform: scale(1.35);
}

.connection-preview-copy {
  max-width: 295px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.future-chip {
  margin: 2px 0 18px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #555;
  background: var(--soft);
  font-size: 9px;
  font-weight: 650;
}

.action-region {
  display: grid;
  gap: 8px;
  padding: 11px 20px 17px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.82), #fff 28%);
}

.action-region:empty {
  display: none;
}

.primary-action {
  width: 100%;
  min-height: 45px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.primary-action {
  border: 1px solid var(--black);
  color: #fff;
  background: var(--black);
}

.primary-action:hover:not(:disabled) {
  background: #303030;
}

.primary-action:disabled {
  border-color: #d7d7d7;
  color: #9e9e9e;
  background: #e8e8e8;
  cursor: not-allowed;
}

.chat-topbar {
  min-height: 63px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.chat-back {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.chat-back:hover {
  background: var(--soft);
}

.chat-identity {
  text-align: center;
}

.chat-identity strong,
.chat-identity span {
  display: block;
}

.chat-identity strong {
  font-size: 11px;
}

.chat-identity span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.chat-status {
  width: 8px;
  height: 8px;
  justify-self: center;
  border-radius: 50%;
  background: #222;
  box-shadow: 0 0 0 4px #ededed;
}

.mini-avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111;
  font-size: 10px;
  font-weight: 750;
}

@media (max-width: 520px) {
  body {
    background: #fff;
  }

  .participant-stage {
    display: block;
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 560px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone {
    grid-template-rows: 54px minmax(0, 1fr) auto;
  }

  .phone.chat-mode {
    grid-template-rows: minmax(0, 1fr);
  }

  .phone.chat-mode .screen-region {
    grid-row: 1;
  }
}

@media (max-height: 700px) and (min-width: 521px) {
  .participant-stage {
    padding-block: 20px;
  }

  .phone {
    height: calc(100vh - 40px);
    min-height: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.day0-chat-body {
  min-height: calc(100% - 63px);
  display: flex;
  flex-direction: column;
  background: #fafafa;
}

.day0-messages {
  flex: 1;
  min-height: 0;
  padding: 18px 15px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6d6d6 transparent;
}

.day0-date {
  margin: 0 0 17px;
  color: #999;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.day0-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
  animation: day0-message-in 160ms ease both;
}

.day0-message.user {
  justify-content: flex-end;
  padding-left: 38px;
}

.day0-message.future {
  padding-right: 12px;
}

.day0-message .mini-avatar {
  flex: 0 0 29px;
}

.future-chat-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.future-chat-identity .mini-avatar {
  flex: 0 0 29px;
}

.future-message-content {
  min-width: 0;
}

.message-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.message-suggestions span {
  width: 100%;
  color: #999;
  font-size: 7px;
}

.message-suggestions button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #555;
  background: #fff;
  cursor: pointer;
  font-size: 7px;
  line-height: 1.2;
}

.message-suggestions button:hover {
  border-color: #888;
  color: #111;
}

@keyframes day0-message-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.day0-bubble {
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 5px 13px 13px 13px;
  background: #fff;
  font-size: 10px;
  line-height: 1.53;
  white-space: pre-wrap;
}

.day0-message.user .day0-bubble {
  border-color: var(--black);
  border-radius: 13px 5px 13px 13px;
  color: #fff;
  background: var(--black);
}

.phase-tag {
  display: inline-block;
  margin: 7px 0 0;
  padding: 3px 7px;
  border-radius: 999px;
  color: #777;
  background: #eee;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.day0-typing {
  min-width: 46px;
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 36px;
}

.day0-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #888;
  animation: day0-typing 700ms infinite alternate;
}

.day0-typing i:nth-child(2) { animation-delay: 130ms; }
.day0-typing i:nth-child(3) { animation-delay: 260ms; }

@keyframes day0-typing {
  to { transform: translateY(-3px); opacity: 0.45; }
}

.day0-controls {
  flex: 0 0 auto;
  padding: 8px 12px 13px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.day0-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.day0-composer textarea {
  min-height: 38px;
  max-height: 95px;
  padding: 8px 7px;
  border: 0;
  outline: 0;
  resize: none;
  font-size: 10px;
  line-height: 1.35;
}

.day0-composer button {
  width: 38px;
  height: 38px;
  align-self: end;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #111;
  cursor: pointer;
}

.day0-composer button:disabled {
  color: #999;
  background: #e8e8e8;
  cursor: not-allowed;
}

.free-response-note {
  margin: 0 2px 6px;
  color: #777;
  font-size: 8px;
  line-height: 1.35;
}

.day0-error,
.crisis-resources {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 8px;
  line-height: 1.4;
}

.day0-error {
  color: #7e2825;
  background: #f8e9e8;
}

.crisis-resources {
  border: 1px solid #bdbdbd;
  color: #292929;
  background: #fff;
}

.screen.chat-screen {
  position: relative;
}

.day0-power-modal {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(17 17 17 / 48%);
  backdrop-filter: blur(2px);
}

.day0-power-dialog {
  width: 100%;
  max-width: 310px;
  padding: 24px 20px 18px;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgb(0 0 0 / 22%);
  text-align: center;
  animation: day0-dialog-in 180ms ease both;
}

@keyframes day0-dialog-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }
}

.power-modal-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #f0f0f0;
}

.power-modal-icon i {
  width: 20px;
  height: 20px;
  border: 2px solid #888;
  border-top-color: #111;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.day0-power-dialog .screen-kicker {
  margin-bottom: 8px;
}

.day0-power-dialog h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

.day0-power-dialog > p:not(.screen-kicker) {
  margin: 0 0 20px;
  color: #666;
  font-size: 9px;
  line-height: 1.5;
}



























.portal-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 27px 22px;
  overflow-y: auto;
  color: #222;
  background: #fff;
  text-align: center;
}

.portal-screen .screen-kicker {
  margin-bottom: 18px;
}

.portal-screen h1 {
  margin: 0 0 13px;
  font-size: 25px;
  line-height: 1.08;
}

.portal-screen > p:not(.screen-kicker, .portal-footnote) {
  max-width: 285px;
  margin: 0 0 13px;
  color: #666;
  font-size: 10px;
  line-height: 1.55;
}

.portal-symbol {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 14px 0 25px;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: #f5f5f4;
}

.portal-symbol span {
  width: 27px;
  height: 27px;
  border: 2px solid #111;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #e1e1e1;
}

.portal-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
}

.portal-back {
  align-self: flex-start;
  margin-bottom: 12px;
}

.power-status {
  width: 100%;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 9px 0 23px;
  padding: 11px 12px;
  border: 1px solid #dedede;
  border-radius: 7px;
  background: #fafafa;
  text-align: left;
}

.power-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
}

.power-status span {
  color: #777;
  font-size: 8px;
}

.power-status strong {
  font-size: 9px;
  text-transform: uppercase;
}

.power-status.restored i {
  box-shadow: 0 0 0 4px #e0e0e0;
}

.power-status.depleted i {
  background: #aaa;
}

.power-status.depleted strong {
  color: #888;
}

.future-portal-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0 22px;
  text-align: left;
}

.future-portal-avatar span,
.future-portal-avatar strong {
  display: block;
}

.future-portal-avatar span {
  margin-bottom: 3px;
  color: #999;
  font-size: 8px;
}

.future-portal-avatar strong {
  font-size: 13px;
}

.portal-avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111;
  font-size: 20px;
  font-weight: 750;
}

.portal-avatar.large {
  width: 105px;
  height: 105px;
  margin: 23px 0 17px;
  font-size: 30px;
  box-shadow: 0 0 0 8px #f1f1f1;
}

.depleted-screen h1 {
  font-size: 18px;
}

.depleted-screen .portal-footnote {
  margin-top: auto;
  padding: 12px;
  border-radius: 7px;
  color: #888;
  background: #f4f4f4;
  font-size: 8px;
  line-height: 1.45;
}

.survey-screen {
  --survey-blue: #2563eb;
  --survey-blue-dark: #1d4ed8;
  --survey-blue-soft: #eff6ff;
  --survey-blue-line: #bfdbfe;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.survey-header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid #ededed;
}

.survey-header .standalone-back {
  margin-bottom: 14px;
}

.survey-header .screen-kicker {
  margin-bottom: 6px;
}

.survey-header h1 {
  margin: 0 0 7px;
  font-size: 22px;
}

.survey-header > p:last-child {
  margin: 0;
  color: #777;
  font-size: 9px;
  line-height: 1.45;
}

.survey-scroll {
  min-height: 0;
  padding: 14px 18px 20px;
  overflow-y: auto;
}

.survey-footer {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}

.daily-topbar {
  grid-template-columns: 34px 1fr 34px;
}

.daily-future-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.daily-future-identity .mini-avatar {
  flex: 0 0 29px;
}

.daily-future-identity strong,
.daily-future-identity span {
  display: block;
}

.daily-future-identity strong {
  font-size: 11px;
}

.daily-future-identity span {
  margin-top: 2px;
  color: #999;
  font-size: 7px;
}

.daily-screen {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.daily-scroll {
  min-height: 0;
  padding: 16px 18px 20px;
  overflow-y: auto;
  background: #fff;
}

.daily-day-label {
  margin: 0 0 12px;
  color: #999;
  font-size: 8px;
}


.daily-future-message {
  width: 82%;
  margin-bottom: 7px;
  padding: 10px 12px;
  border-radius: 5px 12px 12px 12px;
  color: #333;
  background: #f0f0f0;
  font-size: 9px;
  line-height: 1.48;
}

.daily-footer {
  padding: 9px 13px 13px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.daily-optional-chat {
  padding: 8px 13px 13px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.daily-optional-chat > p {
  margin: 0 2px 6px;
  color: #888;
  font-size: 8px;
}

.daily-optional-chat .daily-chat-composer {
  margin-bottom: 8px;
  padding: 0;
  border: 0;
}

.daily-primary,
.daily-secondary {
  width: 100%;
  min-height: 43px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.daily-primary {
  border: 1px solid #111;
  color: #fff;
  background: #111;
}

.daily-primary:disabled {
  border-color: #ddd;
  color: #aaa;
  background: #eaeaea;
  cursor: not-allowed;
}

.daily-secondary {
  border: 1px solid var(--line);
  background: #fff;
}

.daily-conversation {
  padding-top: 19px;
}

.daily-user-message {
  width: 72%;
  margin: 0 0 13px auto;
  padding: 10px 12px;
  border-radius: 12px 5px 12px 12px;
  color: #fff;
  background: #111;
  font-size: 9px;
  line-height: 1.5;
}

.daily-future-message {
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.daily-assistant-turn {
  margin-bottom: 12px;
}

.daily-assistant-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.daily-assistant-row .mini-avatar {
  flex: 0 0 29px;
}

.daily-assistant-row .daily-future-message {
  min-width: 0;
  flex: 1;
}

.daily-assistant-turn .daily-future-message {
  margin-bottom: 0;
}

.daily-suggestions {
  width: 88%;
  margin: 8px 0 0 37px;
}

.daily-replying {
  color: #888;
  font-style: italic;
}



/* Reduced Qualtrics-style daily survey */
.survey-header {
  padding: 14px 22px 16px;
  border-bottom: 1px solid #d8d8d8;
  background: #fff;
}

.survey-header .standalone-back {
  margin-bottom: 14px;
}

.survey-header .screen-kicker {
  margin-bottom: 5px;
  color: #666;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.survey-header h1 {
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0;
}

.survey-separation-notice {
  margin-top: 0 !important;
  padding: 10px 11px;
  border: 1px solid #d6d6d6;
  border-color: var(--survey-blue-line);
  border-left: 4px solid var(--survey-blue);
  color: #333 !important;
  background: var(--survey-blue-soft);
  font-size: 9px !important;
  line-height: 1.5 !important;
}

.survey-separation-notice strong {
  color: #111;
}

.qualtrics-survey {
  padding: 20px 24px 30px;
  color: #171717;
  background: #fff;
}

.qualtrics-question {
  min-width: 0;
  margin: 0 0 30px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid #dedede;
}

.qualtrics-question legend {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.qualtrics-question legend b {
  margin-right: 4px;
}

.qualtrics-product {
  margin: 0 0 25px;
}

.qualtrics-product h2 {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 650;
}

.qualtrics-product label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 9px;
  line-height: 1.4;
}

.qualtrics-product input[type="range"] {
  appearance: none;
  width: 100%;
  height: 18px;
  margin: 4px 0 6px;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.qualtrics-product input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border: 1px solid var(--survey-blue-dark);
  border-radius: 1px;
  background: linear-gradient(90deg, #dbeafe, var(--survey-blue));
}

.qualtrics-product input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 22px;
  margin-top: -9px;
  border: 1px solid #222;
  border-radius: 1px;
  background: #fff;
}

.qualtrics-product input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgb(37 99 235 / 22%);
}

.qualtrics-product input[type="range"]::-moz-range-track {
  height: 5px;
  border: 1px solid var(--survey-blue-dark);
  border-radius: 1px;
  background: linear-gradient(90deg, #dbeafe, var(--survey-blue));
}

.qualtrics-product input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 22px;
  border: 1px solid #222;
  border-radius: 1px;
  background: #fff;
}

.qualtrics-product output {
  display: block;
  color: #222;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.qualtrics-definition {
  margin: 10px 0 0;
  color: #555;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.45;
}

.relative-product {
  margin-bottom: 22px;
}

.qualtrics-options {
  display: grid;
  gap: 6px;
}

.qualtrics-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  color: #222;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.qualtrics-option i {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1px solid #555;
  background: #fff;
}

.qualtrics-option.selected i {
  border: 4px solid var(--survey-blue);
}

.survey-footer.single-action {
  display: block;
  padding: 11px 24px 15px;
  border-top: 1px solid #d8d8d8;
}

.survey-footer.single-action .daily-primary:not(:disabled) {
  border-color: var(--survey-blue);
  background: var(--survey-blue);
}

.survey-footer.single-action .daily-primary:not(:disabled):hover,
.survey-footer.single-action .daily-primary:not(:disabled):focus-visible {
  border-color: var(--survey-blue-dark);
  background: var(--survey-blue-dark);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 18%);
}

/* Ten-response connection charge */
.daily-screen {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.daily-battery {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #e8e8e8;
  color: #777;
  background: #fff;
  font-size: 7px;
}

.daily-battery strong {
  color: #555;
  font-size: 7px;
}

.battery-segments {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}

.battery-segments i {
  height: 7px;
  border-radius: 999px;
  background: #111;
  transition: background 160ms ease;
}

.battery-segments i.used {
  background: #d2d2d2;
}





/* Closed connection history */
.depleted-actions {
  display: grid;
  gap: 8px;
}

.profile-photo {
  display: block;
  padding: 0;
  object-fit: cover;
}

.history-screen {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: #222;
  background: #fff;
}

.history-header {
  display: grid;
  grid-template-columns: 32px 46px 1fr;
  align-items: center;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid #e5e5e5;
}

.history-header .standalone-back {
  align-self: center;
}

.history-header .history-avatar {
  width: 42px;
  height: 42px;
  margin: 0;
  font-size: 14px;
  box-shadow: none;
}

.history-header .screen-kicker {
  margin: 0 0 3px;
  font-size: 7px;
}

.history-header h1 {
  margin: 0;
  font-size: 16px;
}

.history-scroll {
  min-height: 0;
  padding: 17px;
  overflow-y: auto;
}

.history-session {
  margin-bottom: 24px;
}

.history-session h2 {
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e7e7e7;
  font-size: 11px;
}

.history-message {
  width: 84%;
  margin-bottom: 11px;
}

.history-message.user {
  margin-left: auto;
}

.history-message span {
  display: block;
  margin: 0 4px 4px;
  color: #888;
  font-size: 7px;
}

.history-message.user span {
  text-align: right;
}

.history-message p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 9px;
  color: #333;
  background: #f0f0f0;
  font-size: 9px;
  line-height: 1.5;
}

.history-message-body {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.history-message-body .mini-avatar {
  flex: 0 0 29px;
}

.history-message-body p {
  min-width: 0;
  flex: 1;
}

.history-message.user .history-message-body {
  justify-content: flex-end;
}

.history-message.user p {
  color: #fff;
  background: #111;
}

.empty-history {
  color: #777;
  font-size: 10px;
  text-align: center;
}

























.standalone-back {
  width: 32px;
  height: 32px;
  margin-left: -7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
}



















































.daily-chat-composer {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 7px;
  padding: 9px 12px 13px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.daily-chat-composer textarea {
  min-height: 38px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  resize: none;
  font-size: 9px;
}

.daily-chat-composer button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #111;
  cursor: pointer;
}

.daily-chat-composer button:disabled {
  color: #999;
  background: #e7e7e7;
}

.text-action {
  appearance: none;
  border: 0;
  background: transparent;
  color: #315f9c;
  cursor: pointer;
  font: inherit;
  padding: 4px 0;
  text-align: left;
  text-decoration: underline;
}

.service-retry {
  width: 100%;
  margin: 6px 0;
  padding: 9px 12px;
  border: 1px solid #777;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.service-retry:hover,
.service-retry:focus-visible {
  border-color: #111;
  background: #f5f5f4;
}

@media (max-width: 520px) {
  .day0-messages { padding-top: 16px; }
  .day0-bubble { font-size: 11px; }


}
