:root {
  --cothera-ink: #18181b;
  --cothera-muted: #6b7280;
  --cothera-line: #e6e7eb;
  --cothera-soft: #f5f4ef;
  --cothera-panel: #fcfbf8;
  --cothera-accent: #111111;
  --cothera-good: #2f7d4c;
  --cothera-bad: #b63f3f;
  --cothera-shadow: 0 24px 60px rgba(24, 24, 27, 0.08);
}

.question-typeahead {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.question-typeahead-title {
  margin: 0;
  padding: 0.75rem 1rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.question-typeahead-list {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem;
}

.question-typeahead-option {
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  padding: 0.7rem 0.8rem;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  width: 100%;
  -webkit-text-fill-color: currentColor;
}

.question-typeahead-option:hover,
.question-typeahead-option:focus {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--cothera-ink);
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.06);
  outline: none;
  -webkit-text-fill-color: currentColor;
}

html {
  scroll-behavior: smooth;
}

body.cothera-app {
  margin: 0;
  background: #ffffff;
  color: var(--cothera-ink);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.site-nav,
.site-footer {
  background: #ffffff;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid var(--cothera-line);
}

.site-footer {
  border-top: 1px solid var(--cothera-line);
}

.site-nav-inner,
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav-inner {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.site-nav-inner.is-authenticated {
  justify-content: flex-start;
  gap: 0.7rem;
}

.site-nav-inner.is-guest {
  justify-content: flex-start;
}

.site-nav-inner.is-guest .site-nav-home-link {
  margin-right: auto;
}

.site-footer-inner {
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer-copy {
  flex-basis: 100%;
  color: var(--cothera-muted);
  font-size: 0.86rem;
  text-align: center;
}

.site-nav a,
.site-footer a {
  color: var(--cothera-ink);
  text-decoration: none;
  font-size: 0.96rem;
}

.site-footer-inner > a {
  color: #7a808b;
}

.site-footer-copy a {
  color: #606773;
  text-decoration: underline;
  text-decoration-color: rgba(96, 103, 115, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-nav a {
  font-weight: 600;
}

.site-nav a.active {
  color: #000000;
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, 0.38);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
}

.site-nav-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 999px;
  background: #ffffff;
}

.site-nav-home-link:hover {
  background: var(--cothera-soft);
  text-decoration: none;
}

.site-nav-home-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.site-nav-greeting {
  color: var(--cothera-muted);
  font-size: 0.96rem;
  font-weight: 400;
  max-width: min(15rem, 24vw);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.site-nav .site-nav-feedback-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid rgba(243, 179, 29, 0.32);
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.78);
  color: #8a5d00;
  padding: 0.3rem 0.54rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.site-nav .site-nav-feedback-trigger svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.site-nav .site-nav-feedback-trigger:hover,
.site-nav .site-nav-feedback-trigger:focus-visible {
  border-color: rgba(217, 154, 0, 0.44);
  background: rgba(255, 241, 204, 0.96);
  color: #6e4a00;
  text-decoration: none;
}

.site-nav-desktop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-left: auto;
}

.site-nav .site-nav-refresh-pill {
  margin-left: auto;
  padding: 0.42rem 0.68rem;
  gap: 0.42rem;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.site-nav-refresh-pill + .site-nav-desktop-links {
  margin-left: 0;
}

.site-nav .site-nav-refresh-pill svg {
  width: 1.22rem;
  height: 1.22rem;
  color: #f3b31d;
  transform: scale(1.18);
  transform-origin: center;
}

.site-nav .site-nav-refresh-pill [data-dashboard-refresh-text] {
  color: var(--cothera-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.site-nav .site-nav-refresh-pill:hover,
.site-nav .site-nav-refresh-pill:focus-visible {
  border-color: rgba(243, 179, 29, 0.42);
  background: rgba(255, 248, 232, 0.92);
}

.site-nav .site-nav-refresh-pill:hover svg,
.site-nav .site-nav-refresh-pill:focus-visible svg {
  color: #d99a00;
}

.site-nav-inner.is-authenticated > .site-nav-home-link,
.site-nav-identity,
.site-nav-greeting,
.site-nav-desktop-links > a,
.site-nav-desktop-links > span {
  display: inline-flex;
  align-items: center;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(24, 24, 27, 0.14);
  background: #ffffff;
  color: var(--cothera-ink);
  border-radius: 999px;
  padding: 0.48rem 0.8rem;
  font-weight: 700;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus {
  background: var(--cothera-soft);
  color: var(--cothera-ink);
}

.site-nav-toggle-icon {
  display: inline-grid;
  gap: 0.18rem;
}

.site-nav-toggle-icon span {
  display: block;
  width: 0.95rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav-collapse {
  flex-basis: 100%;
}

.site-nav-menu {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.85rem;
  border: 1px solid var(--cothera-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--cothera-panel) 100%);
  padding: 0.65rem;
  box-shadow: 0 16px 36px rgba(24, 24, 27, 0.08);
}

.site-nav-menu a,
.site-nav-menu span {
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
}

.site-nav-menu a:hover {
  background: rgba(24, 24, 27, 0.04);
  text-decoration: none;
}

.site-nav-menu a.active {
  background: rgba(24, 24, 27, 0.06);
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover,
.step-link:hover,
.question-chip:hover {
  color: #000000;
}

.site-nav .muted,
.site-footer .muted,
.text-muted,
.muted {
  color: var(--cothera-muted) !important;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

h1,
h2,
h3,
.display-4,
.display-5,
.step-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
  color: #111111;
}

.start-hero {
  margin: 0 auto 2rem;
  max-width: 760px;
}

.start-hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 0 0.9rem;
}

.start-hero-logo {
  width: 3.4rem;
  height: auto;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cothera-muted);
}

.eyebrow a {
  color: #4f565f;
  text-decoration: underline;
  text-decoration-color: rgba(79, 86, 95, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.eyebrow a:hover {
  color: var(--cothera-ink);
  text-decoration-color: rgba(24, 24, 27, 0.5);
}

.start-hero-copy {
  max-width: 40rem;
}

.start-progress {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}

.start-progress-item {
  border: 1px solid var(--cothera-line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #ffffff;
  color: var(--cothera-muted);
  font-size: 0.92rem;
}

.start-progress-item.is-active {
  border-color: #111111;
  background: #111111; /* logo's color: #29CCBE */
  color: #ffffff;
}

.cothera-start-flow {
  display: grid;
  gap: 1.5rem;
}

.cothera-step-card {
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, var(--cothera-panel) 100%);
  box-shadow: var(--cothera-shadow);
}

.cothera-step-card.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.step-header {
  margin-bottom: 1.5rem;
}

.step-kicker {
  margin: 0 0 0.45rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cothera-muted);
}

.step-title {
  margin-bottom: 0.65rem;
  font-size: clamp(1.65rem, 2vw, 2.2rem);
}

.prompt-stack {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.prompt-stack p {
  margin: 0;
  font-size: 1.08rem;
}

.prompt-stack-hero {
  gap: 1rem;
  margin-top: 0;
}

.prompt-stack-hero p {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.3;
}

.coach-card {
  padding: 1rem;
  /*border-radius: 24px;
  background: var(--cothera-soft);*/
}

.coach-image {
  max-height: 280px;
  object-fit: contain;
}

.coach-caption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cothera-muted);
}

.age-note {
  margin: -2.25rem 0 0;
  color: var(--cothera-muted);
  font-size: 0.9rem;
}

.how-it-works-panel {
  max-width: 820px;
  margin: 1.25rem auto 0;
  padding: 1.4rem;
  border: 1px solid var(--cothera-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.how-it-works-title {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.how-it-works-intro {
  max-width: 42rem;
  margin: 0 auto 1rem;
  color: var(--cothera-muted);
}

.how-it-works-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 44rem;
  margin: 0 auto 1.1rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.how-it-works-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(230, 231, 235, 0.9);
}

.how-it-works-list li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: #cfa642;
  flex: 0 0 auto;
}

.how-it-works-beta {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--cothera-ink);
}

.start-faq-panel {
  max-width: 820px;
  margin: 1rem auto 0;
  padding: 1.4rem;
  border: 1px solid var(--cothera-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.start-faq-title {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.start-faq-accordion {
  text-align: left;
}

.start-faq-accordion .accordion-item {
  overflow: hidden;
  border: 1px solid rgba(230, 231, 235, 0.9);
  border-radius: 16px;
  background: #ffffff;
}

.start-faq-accordion .accordion-item + .accordion-item {
  margin-top: 0.65rem;
}

.start-faq-accordion .accordion-button {
  border: 0;
  background: #ffffff;
  color: var(--cothera-ink);
  font-weight: 700;
  box-shadow: none;
}

.start-faq-accordion .accordion-button:not(.collapsed) {
  background: var(--cothera-soft);
  color: var(--cothera-ink);
}

.start-faq-accordion .accordion-button:focus {
  box-shadow: inset 0 0 0 0.18rem rgba(17, 17, 17, 0.08);
}

.start-faq-accordion .accordion-body {
  color: var(--cothera-muted);
}

.start-faq-accordion .accordion-body a {
  color: #3f474f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(63, 71, 79, 0.28);
  text-underline-offset: 0.18em;
}

.start-faq-accordion .accordion-body a:hover {
  color: var(--cothera-ink);
}

.question-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.question-chip-list {
  display: block;
  border: 1px solid var(--cothera-line);
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
}

.question-chip-list .question-chip-option {
  display: block;
}

.question-chip-list .question-chip-option + .question-chip-option {
  border-top: 1px solid var(--cothera-line);
}

.question-chip-option {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.question-chip {
  display: block;
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--cothera-line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--cothera-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

button.question-chip {
  appearance: none;
  min-height: 0;
  cursor: pointer;
  background-image: none;
  color: var(--cothera-ink);
  -webkit-text-fill-color: currentColor;
}

.question-chip-text {
  display: block;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.question-chip .badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.65rem;
  white-space: nowrap;
}

.question-chip:hover {
  transform: translateY(-1px);
  border-color: #cfd3d9;
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.06);
}

.question-chip-list .question-chip {
  border: 0;
  border-radius: 0;
  padding: 1rem 1.15rem;
  background: transparent;
}

.question-chip-list .question-chip:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  background: rgba(24, 24, 27, 0.03);
}

.question-chip.is-used {
  border-color: rgba(168, 134, 51, 0.24);
  background: linear-gradient(180deg, #fffdf6 0%, #fff9ea 100%);
}

.question-chip.is-used .question-chip-text {
  color: #5c5034;
  -webkit-text-fill-color: #5c5034;
}

.question-chip.is-selected {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.18);
}

button.question-chip.is-selected,
button.question-chip.is-selected .question-chip-text {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

a.question-chip.is-selected,
a.question-chip.is-selected .question-chip-text {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.question-chip-list .question-chip.is-selected {
  border-radius: 0;
}

.question-chip-option .step-link {
  margin-left: 0.15rem;
}

.question-chip-link {
  color: #525a65;
  font-size: 0.92rem;
  text-decoration: underline;
  text-decoration-color: rgba(82, 90, 101, 0.26);
  text-underline-offset: 0.16em;
}

.question-chip-link:hover,
.question-chip-link:focus-visible {
  color: var(--cothera-ink);
  text-decoration-color: rgba(24, 24, 27, 0.28);
}

.repeat-featured-link {
  color: #5c5034;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(92, 80, 52, 0.28);
  text-underline-offset: 0.16em;
}

.repeat-featured-link:hover,
.repeat-featured-link:focus-visible {
  color: #3f3621;
  text-decoration-color: rgba(63, 54, 33, 0.34);
}

.question-panel {
  max-width: 760px;
}

.question-panel .form-control-lg {
  min-height: 4.15rem;
  border: 1.5px solid rgba(183, 135, 29, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.72), transparent 46%),
    #ffffff;
  box-shadow:
    0 18px 44px rgba(183, 135, 29, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.74);
  color: var(--cothera-ink);
  font-size: clamp(1.1rem, 1.3vw, 1.28rem);
  font-weight: 650;
  line-height: 1.35;
  padding: 1.05rem 1.2rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.question-panel .form-control-lg::placeholder {
  color: rgba(107, 114, 128, 0.78);
  font-weight: 500;
}

.question-panel .form-control-lg:focus {
  border-color: #f3b31d;
  background: #ffffff;
  box-shadow:
    0 18px 48px rgba(183, 135, 29, 0.15),
    0 0 0 0.22rem rgba(243, 179, 29, 0.2);
}

.question-panel-label {
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--cothera-muted);
}

.question-suggestions-shell {
  max-width: 860px;
  margin: 1.75rem auto 0;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.52), transparent 48%),
    rgba(255, 255, 255, 0.82);
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(24, 24, 27, 0.045);
}

.question-suggestions-shell-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.question-suggestions-toggle {
  flex: 0 0 auto;
  border-radius: 999px;
  padding-inline: 1rem;
  white-space: nowrap;
}

.question-suggestions-toggle .when-expanded,
.question-suggestions-toggle:not(.collapsed) .when-collapsed {
  display: none;
}

.question-suggestions-toggle:not(.collapsed) .when-expanded {
  display: inline;
}

.question-suggestions-panel {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.question-suggestions-shell .question-suggestions-panel {
  margin-top: 1rem;
}

.question-source-panel {
  border: 1px solid var(--cothera-line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  padding: 1.1rem 1.15rem;
}

.question-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.question-source-title {
  margin: 0;
  font-size: 1.12rem;
}

.question-source-pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.question-source-empty {
  color: var(--cothera-muted);
}

.question-library-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.question-library-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #525a65;
  font-weight: 600;
}

.instruction-copy {
  margin-top: 1rem;
  color: var(--cothera-muted);
}

.new-question-mode-fieldset {
  max-width: 760px;
  margin: 1.25rem auto 0;
  padding: 0;
  border: 0;
}

.new-question-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--cothera-line);
  border-radius: 999px;
  background: linear-gradient(180deg, #faf9f6 0%, #f2f1eb 100%);
}

.new-question-mode-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.new-question-mode-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #616875;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.new-question-mode-option:hover {
  color: var(--cothera-ink);
}

.new-question-mode-input:checked + .new-question-mode-option {
  background: #ffffff;
  color: var(--cothera-ink);
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.08);
}

.new-question-mode-input:focus-visible + .new-question-mode-option {
  outline: 2px solid rgba(17, 17, 17, 0.24);
  outline-offset: 2px;
}

.example-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem;
  border-radius: 18px;
  background: #ffffff;
}

.example-box-good {
  border: 1px solid rgba(47, 125, 76, 0.25);
}

.example-box-avoid {
  border: 1px solid rgba(182, 63, 63, 0.22);
}

.example-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-box-good .example-label {
  color: var(--cothera-good);
}

.example-box-avoid .example-label {
  color: var(--cothera-bad);
}

.start-warning {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  border: 0;
  border-radius: 18px;
}

.category-select-warning {
  position: sticky;
  top: 0.85rem;
  z-index: 5;
  box-shadow: 0 14px 36px rgba(143, 92, 6, 0.12);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.step-actions-secondary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.step-clear-action {
  color: var(--cothera-muted);
}

.step-clear-action:hover,
.step-clear-action:focus-visible {
  color: var(--cothera-ink);
}

.step-link {
  color: var(--cothera-ink);
  font-weight: 600;
}

.btn.is-category-over-limit,
.btn.is-category-over-limit:disabled {
  border-color: #b96f00;
  background: #fff4d8;
  color: #6f4600;
  opacity: 1;
}

.guess-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.current-question-reminder {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--cothera-line);
  border-radius: 18px;
  background: #ffffff;
  text-align: left;
}

.current-question-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cothera-muted);
}

.current-question-text {
  margin: 0;
  font-size: 1.04rem;
}

.guess-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.guess-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.guess-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.guess-option-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
  padding: 1.05rem 0.9rem;
  border: 1px solid var(--cothera-line);
  border-radius: 20px;
  background: #ffffff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.guess-option:hover .guess-option-card {
  transform: translateY(-1px);
  border-color: #cfd3d9;
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.06);
}

.guess-option input:focus-visible + .guess-option-card {
  outline: 3px solid rgba(17, 17, 17, 0.18);
  outline-offset: 2px;
}

.guess-option input:checked + .guess-option-card {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.18);
}

.guess-option-number {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.guess-option-text {
  font-size: 0.94rem;
  color: var(--cothera-muted);
}

.guess-option input:checked + .guess-option-card .guess-option-text {
  color: rgba(255, 255, 255, 0.78);
}

.saved-draft-summary {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.04);
}

.saved-draft-separator {
  margin: 0 0.45rem;
  color: var(--cothera-muted);
}

.completion-list {
  max-width: 34rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  text-align: left;
}

.completion-list li {
  margin: 0.65rem 0;
}

.completion-list .is-done {
  color: var(--cothera-good);
  font-weight: 600;
}

.completion-list .is-next {
  font-weight: 700;
}

.auth-card {
  max-width: 760px;
  margin: 0 auto;
}

.auth-form {
  max-width: 34rem;
}

.settings-card {
  max-width: 860px;
  margin: 0 auto;
}

.settings-dev-banner {
  margin: 0 0 1.25rem;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.04);
  color: var(--cothera-muted);
  padding: 0.55rem 0.9rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.settings-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.settings-badge.is-verified {
  border: 1px solid rgba(47, 125, 76, 0.25);
  background: rgba(47, 125, 76, 0.07);
  color: var(--cothera-good);
}

.settings-badge.is-unverified {
  border: 1px solid rgba(182, 63, 63, 0.22);
  background: rgba(182, 63, 63, 0.07);
  color: var(--cothera-bad);
}

.settings-list {
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--cothera-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1.15rem;
}

.settings-row-copy {
  min-width: 0;
}

.settings-row h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
}

.settings-row-actions,
.settings-inline-form {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}

.settings-password-row {
  align-items: start;
}

.settings-row-value {
  justify-self: end;
  color: var(--cothera-ink);
  font-weight: 700;
  text-align: right;
}

.settings-notifications-row {
  align-items: start;
  grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 1.18fr);
}

.settings-notifications-form {
  display: grid;
  gap: 0.85rem;
  justify-self: stretch;
  min-width: 0;
}

.settings-notification-title-row {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 0.45rem;
}

.settings-info-popout {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.settings-info-popout summary {
  display: inline-grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid rgba(183, 135, 29, 0.26);
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.78);
  color: #8a6414;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  list-style: none;
}

.settings-info-popout summary::-webkit-details-marker {
  display: none;
}

.settings-info-popout summary:hover,
.settings-info-popout summary:focus-visible,
.settings-info-popout[open] summary {
  border-color: rgba(183, 135, 29, 0.44);
  background: #fff8e8;
  color: #65470c;
  outline: none;
}

.settings-info-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  z-index: 8;
  width: min(22rem, calc(100vw - 2.5rem));
  border: 1px solid rgba(183, 135, 29, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.12);
  color: #3f3f46;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.85rem 0.95rem;
  text-align: left;
  transform: translateX(-50%);
}

.settings-notifications-form > .btn {
  justify-self: start;
}

.settings-notification-note,
.settings-notifications-form [data-notification-status],
.settings-notifications-form [data-notification-success] {
  border-radius: 16px;
  background: rgba(255, 248, 232, 0.62);
  padding: 0.6rem 0.75rem;
}

.settings-notification-events {
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0.85rem;
}

.settings-notification-events-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.settings-notification-events h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 750;
}

.settings-notification-toggle {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.settings-notification-toggle .when-expanded,
.settings-notification-toggle:not(.collapsed) .when-collapsed {
  display: none;
}

.settings-notification-toggle:not(.collapsed) .when-expanded {
  display: inline;
}

.settings-notification-fieldset {
  margin: 0.85rem 0 0;
  padding: 0;
  border: 0;
}

.settings-notification-grid {
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.settings-notification-grid .checkbox-option {
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.7rem 0.78rem;
}

.settings-verification-form,
.settings-inline-form {
  margin: 0;
}

.settings-inline-form .form-control {
  min-width: 0;
}

.settings-avatar-row {
  align-items: start;
}

.settings-avatar-form {
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  width: min(100%, 22rem);
  margin: 0;
  justify-self: end;
}

.settings-avatar-current {
  display: inline-grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(183, 135, 29, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.82), transparent 54%),
    #ffffff;
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.06);
  overflow: hidden;
}

.settings-avatar-current img,
.settings-avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.settings-avatar-picker {
  width: 100%;
  text-align: right;
}

.settings-avatar-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
}

.settings-avatar-summary::-webkit-details-marker {
  display: none;
}

.settings-avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.52rem;
  margin-top: 0.72rem;
  padding: 0.8rem;
  border: 1px solid var(--cothera-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.settings-avatar-picker-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.72rem;
}

.settings-avatar-choice {
  margin: 0;
  cursor: pointer;
}

.settings-avatar-thumb {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 16px;
  background: rgba(255, 248, 232, 0.36);
  padding: 0.16rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
  overflow: hidden;
}

.settings-avatar-choice:hover .settings-avatar-thumb,
.settings-avatar-input:focus-visible + .settings-avatar-thumb {
  border-color: rgba(183, 135, 29, 0.36);
  transform: translateY(-1px);
}

.settings-avatar-input:checked + .settings-avatar-thumb {
  border-color: #d99f0e;
  background: rgba(255, 184, 28, 0.12);
  box-shadow: 0 10px 24px rgba(183, 135, 29, 0.14);
}

.settings-avatar-check {
  position: absolute;
  right: 0.16rem;
  bottom: 0.16rem;
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d99f0e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.settings-avatar-input:checked + .settings-avatar-thumb .settings-avatar-check {
  display: inline-flex;
}

.settings-password-form {
  display: grid;
  gap: 0.85rem;
  justify-self: end;
  width: min(100%, 22rem);
  margin: 0;
}

.settings-password-field {
  display: grid;
  gap: 0.35rem;
}

.settings-password-field .form-label {
  margin: 0;
  color: var(--cothera-ink);
  font-size: 0.93rem;
  font-weight: 600;
}

.settings-password-form .btn,
.settings-password-form button {
  justify-self: start;
  min-width: 11.5rem;
}

.settings-password-form .password-toggle-button {
  justify-self: auto;
  width: auto;
  min-width: 3.4rem;
}

.settings-back {
  margin-top: 1.35rem;
  text-align: center;
}

.onboarding-card {
  max-width: 820px;
}

.onboarding-form {
  text-align: left;
}

.legal-consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--cothera-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1rem;
}

.legal-consent-check input {
  margin-top: 0.35rem;
}

.legal-consent-check a,
.legal-document a {
  color: #3f474f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(63, 71, 79, 0.28);
  text-underline-offset: 0.18em;
}

.legal-consent-check a:hover,
.legal-document a:hover {
  color: var(--cothera-ink);
  text-decoration-color: rgba(24, 24, 27, 0.5);
}

.legal-version-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
}

.legal-document {
  max-width: 46rem;
  margin: 0 auto;
  text-align: left;
}

.legal-document h2 {
  margin-top: 1.65rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.legal-document h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.legal-document p,
.legal-document li,
.legal-document address {
  color: #3f3f46;
}

.legal-document ul {
  padding-left: 1.3rem;
}

.legal-document li {
  margin: 0.35rem 0;
}

.contacts-card {
  max-width: 920px;
  margin: 0 auto;
}

.contacts-notice,
.contacts-empty,
.contact-list-card {
  border: 1px solid var(--cothera-line);
  background: rgba(255, 255, 255, 0.76);
}

.contacts-notice {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  border-radius: 22px;
  padding: 1.15rem;
}

.contacts-notice-info {
  background: linear-gradient(180deg, rgba(245, 244, 239, 0.82), rgba(255, 255, 255, 0.9));
}

.contacts-notice h2,
.contacts-empty h2,
.contact-list-card h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.contacts-notice-actions,
.contacts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.contacts-notice-actions {
  justify-content: flex-end;
}

.contacts-inline-form {
  margin: 0;
}

.contacts-toolbar {
  justify-content: center;
  margin: 1rem 0 1.35rem;
}

.contacts-logout-link {
  color: var(--cothera-muted);
  font-weight: 700;
  text-decoration: none;
}

.contacts-logout-link:hover {
  color: var(--cothera-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contacts-limit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.04);
  color: var(--cothera-muted);
  padding: 0.62rem 1rem;
  font-weight: 700;
}

.contacts-helper {
  color: var(--cothera-muted);
}

.contacts-empty {
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
}

.contacts-empty p {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  color: var(--cothera-muted);
}

.contacts-list {
  display: grid;
  gap: 0.85rem;
}

.contact-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  padding: 1.15rem;
}

.contact-list-copy {
  min-width: 0;
}

.contact-list-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.contact-list-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}

.contact-list-title {
  margin: 0;
  min-width: 0;
}

.contact-list-name {
  color: var(--cothera-ink);
  text-decoration: none;
}

a.contact-list-name:hover,
a.contact-list-name:focus-visible {
  color: var(--cothera-accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-list-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contact-list-side .dashboard-secondary-action {
  min-width: 9.2rem;
  padding: 0.58rem 0.9rem;
  font-size: 0.9rem;
}

.contact-rename-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  color: var(--cothera-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.contact-rename-link:hover,
.contact-rename-link:focus-visible {
  border-color: rgba(24, 24, 27, 0.22);
  color: var(--cothera-ink);
  background: #fff;
}

.contact-rename-form {
  margin: 0.7rem 0 0;
}

.contact-rename-control {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.contact-rename-control .form-control {
  min-width: 0;
}

.contact-rename-control .btn-link {
  padding-right: 0;
  padding-left: 0;
  color: var(--cothera-muted);
  text-decoration: none;
}

.contact-rename-control .btn-link:hover,
.contact-rename-control .btn-link:focus-visible {
  color: var(--cothera-ink);
  text-decoration: underline;
}

.contact-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-status-badge.is-active {
  border: 1px solid rgba(47, 125, 76, 0.25);
  background: rgba(47, 125, 76, 0.07);
  color: var(--cothera-good);
}

.contact-status-badge.is-pending {
  border: 1px solid rgba(24, 24, 27, 0.12);
  background: rgba(24, 24, 27, 0.04);
  color: #3f3f46;
}

.contact-detail-card {
  max-width: 920px;
  margin: 0 auto;
}

.contact-detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.contact-detail-topline > span[aria-hidden="true"] {
  min-width: 2rem;
}

.contact-detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.contact-detail-title-row .step-title {
  margin-inline: 0.15rem;
}

.contact-detail-actions .thread-item-actions-trigger {
  width: 1.8rem;
  height: 1.55rem;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.contact-detail-actions .thread-item-actions-trigger.contact-followup-attention {
  position: relative;
  border-color: rgba(183, 135, 29, 0.35);
  background: rgba(255, 185, 44, 0.12);
}

.contact-detail-actions .thread-item-actions-trigger.contact-followup-attention::after {
  content: "";
  position: absolute;
  top: 0.1rem;
  right: 0.12rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--cothera-accent);
  box-shadow: 0 0 0 2px rgba(255, 185, 44, 0.18);
}

.contact-detail-actions-menu {
  min-width: min(20rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  padding: 0.55rem;
}

.contact-detail-actions-menu .thread-item-action-link {
  min-height: 3rem;
  white-space: nowrap;
}

.contact-detail-actions-menu form .thread-item-action-link {
  width: 100%;
  text-align: left;
}

.contact-followup-menu-highlight {
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--cothera-ink);
  background: rgba(255, 185, 44, 0.1);
}

.contact-followup-menu-dot {
  flex: 0 0 auto;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--cothera-accent);
  box-shadow: 0 0 0 3px rgba(255, 185, 44, 0.16);
}

.contact-detail-reward summary {
  cursor: pointer;
}

.contact-detail-reward-popover {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  width: min(18rem, calc(100vw - 3rem));
  margin-top: 0.5rem;
}

.contact-detail-subtitle {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.35;
}

.contact-detail-rename-form {
  max-width: 34rem;
  margin-right: auto;
  margin-left: auto;
}

.contact-detail-panel {
  max-width: 760px;
  margin: 1rem auto 0;
  border: 1px solid var(--cothera-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1.25rem;
  text-align: left;
}

.contact-panel-header {
  margin-bottom: 1rem;
  text-align: center;
}

.contact-panel-header h2,
.contact-subpanel h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.category-status-person-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.category-status-avatar.ct-avatar {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0;
}

.category-status-avatar.ct-avatar.is-you {
  background:
    radial-gradient(circle at top left, rgba(239, 249, 243, 0.9), transparent 50%),
    #ffffff;
}

.category-status-avatar.ct-avatar.is-partner {
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.9), transparent 50%),
    #ffffff;
}

.contact-archived-details {
  border-top: 1px solid rgba(230, 231, 235, 0.8);
  padding-top: 1rem;
}

.contact-archived-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
  border-radius: 16px;
  cursor: pointer;
  list-style: none;
  text-align: left;
}

.contact-archived-summary::-webkit-details-marker {
  display: none;
}

.contact-archived-summary-copy {
  display: grid;
  gap: 0.2rem;
}

.contact-archived-title {
  color: var(--cothera-ink);
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
}

.contact-archived-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(108, 117, 108, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--cothera-muted);
  padding: 0.45rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-archived-details .when-open {
  display: none;
}

.contact-archived-details[open] .when-closed {
  display: none;
}

.contact-archived-details[open] .when-open {
  display: inline;
}

.contact-archived-details[open] .contact-thread-list {
  margin-top: 1rem;
}

.contact-decline-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(183, 135, 29, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.72), transparent 46%),
    rgba(255, 255, 255, 0.9);
  padding: 0.9rem 1rem;
  color: var(--cothera-ink);
}

.contact-decline-notice-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  font-size: 0.94rem;
  line-height: 1.35;
}

.contact-decline-notice-kicker {
  color: var(--cothera-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-decline-notice-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--cothera-ink);
  padding: 0.46rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-decline-notice-link:hover,
.contact-decline-notice-link:focus-visible {
  border-color: rgba(24, 24, 27, 0.28);
  color: var(--cothera-ink);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(24, 24, 27, 0.06);
}

.contact-meta-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.contact-meta-list div {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(230, 231, 235, 0.9);
  border-radius: 16px;
  background: #ffffff;
  padding: 0.75rem 0.9rem;
}

.contact-meta-list dt {
  color: var(--cothera-muted);
  font-weight: 700;
}

.contact-meta-list dd {
  margin: 0;
  text-align: right;
}

.category-select-list {
  gap: 0.95rem;
}

.category-select-list .category-select-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.42rem;
  align-items: start;
  justify-content: stretch;
  border-color: rgba(183, 135, 29, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.72), transparent 46%),
    #ffffff;
  padding: 0.9rem 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-select-list .category-select-option:hover,
.category-select-list .category-select-option:focus-within {
  border-color: rgba(183, 135, 29, 0.34);
  box-shadow: 0 16px 34px rgba(24, 24, 27, 0.06);
  transform: translateY(-1px);
}

.category-select-term {
  min-width: 0;
}

.category-select-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.15rem;
  gap: 0.65rem;
  align-items: center;
  margin: 0;
  color: var(--cothera-ink);
  cursor: pointer;
  line-height: 1.25;
}

.category-select-content {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}

.category-select-checkbox {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: #d99f0e;
}

.category-select-avatar {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(183, 135, 29, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 246, 220, 0.95), transparent 58%),
    rgba(255, 255, 255, 0.9);
  color: #9a6b00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.category-outline-icon {
  display: block;
  width: 2.18rem;
  height: 2.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-select-copy {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.category-select-name {
  display: block;
  min-width: 0;
  color: var(--cothera-ink);
  font-weight: 800;
}

.category-select-list .category-select-description {
  margin: 0;
  color: var(--cothera-muted);
  text-align: left;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.38;
}

.category-select-available-panel .contact-category-chip {
  gap: 0.48rem;
  padding-left: 0.55rem;
}

.category-rating-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.15rem 0 0.55rem;
  color: var(--cothera-muted);
  font-size: 0.84rem;
  line-height: 1.2;
}

.category-rating-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.category-rating-grid .guess-option-card {
  align-items: center;
  justify-content: center;
  padding: 0.82rem 0.5rem;
  border-radius: 16px;
  text-align: center;
}

.category-rating-grid .guess-option-number {
  font-size: 1.34rem;
}

.category-chip-avatar {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.88);
  color: #9a6b00;
}

.category-chip-avatar .category-outline-icon {
  width: 1.08rem;
  height: 1.08rem;
  stroke-width: 2;
}

.contact-subpanel {
  margin-top: 1rem;
  border: 1px solid rgba(230, 231, 235, 0.9);
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem;
}

.contact-subpanel h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}

.contact-thread-list {
  margin-top: 0.25rem;
}

.contact-thread-card {
  background-clip: padding-box;
}

.contact-category-next {
  margin-bottom: 1rem;
  border: 1px solid rgba(183, 135, 29, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.82), transparent 44%),
    rgba(255, 255, 255, 0.92);
  padding: 0.9rem 1rem;
}

.contact-category-label {
  margin: 0 0 0.48rem;
  color: var(--cothera-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-category-featured-link {
  color: #3f4753;
  text-decoration: none;
}

.contact-category-featured-link:hover,
.contact-category-featured-link:focus {
  color: var(--cothera-text);
  text-decoration: underline;
  text-decoration-color: rgba(183, 135, 29, 0.42);
  text-underline-offset: 0.18em;
}

.contact-category-list {
  margin-bottom: 0.25rem;
}

.contact-category-extra {
  margin-top: 0.65rem;
}

.contact-category-chip {
  gap: 0.48rem;
  color: #3f4753;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.contact-category-chip:hover,
.contact-category-chip:focus {
  border-color: rgba(183, 135, 29, 0.3);
  background: rgba(255, 248, 232, 0.92);
  color: var(--cothera-text);
  transform: translateY(-1px);
}

.contact-category-toggle-row {
  margin: 0.6rem 0 0;
  text-align: center;
}

.contact-category-toggle {
  color: var(--cothera-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration-color: rgba(183, 135, 29, 0.34);
  text-underline-offset: 0.2em;
}

.contact-category-toggle:hover,
.contact-category-toggle:focus {
  color: var(--cothera-text);
  text-decoration-color: rgba(183, 135, 29, 0.5);
}

.contact-category-toggle .when-expanded,
.contact-category-toggle:not(.collapsed) .when-collapsed {
  display: none;
}

.contact-category-toggle:not(.collapsed) .when-expanded {
  display: inline;
}

.category-question-card {
  align-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.58), transparent 42%),
    rgba(255, 255, 255, 0.88);
}

.category-question-card .dashboard-secondary-main,
.category-question-card .dashboard-secondary-copy {
  min-width: 0;
}

.category-question-card .dashboard-secondary-question {
  line-height: 1.45;
}

.category-question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.category-question-used-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem 0.58rem;
  border: 1px solid rgba(183, 135, 29, 0.2);
  border-radius: 999px;
  background: rgba(255, 184, 28, 0.12);
  color: #7a5a12;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.category-question-action {
  flex: 0 0 auto;
  min-width: 9.8rem;
  white-space: nowrap;
}

.category-question-actions {
  display: grid;
  gap: 0.42rem;
  justify-items: end;
  min-width: 10.4rem;
}

.category-question-save-form {
  margin: 0;
}

.category-question-save-action {
  min-width: 9.8rem;
  white-space: nowrap;
  border-color: rgba(24, 24, 27, 0.18);
  background: rgba(255, 255, 255, 0.84);
}

.category-question-saved-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.4rem;
  min-height: 2.25rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(47, 125, 76, 0.18);
  border-radius: 999px;
  background: rgba(47, 125, 76, 0.08);
  color: #2f7d4c;
  font-size: 0.9rem;
  font-weight: 700;
}

.category-question-save-form .step-link {
  color: #6f5a35;
  font-size: 0.9rem;
  text-decoration-color: rgba(111, 90, 53, 0.22);
}

.saved-question-list {
  border-color: rgba(183, 135, 29, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.48), transparent 48%),
    #ffffff;
}

.saved-question-list .saved-question-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.saved-question-chip {
  min-height: 100%;
}

.saved-question-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.32rem;
  padding: 0.8rem 1.05rem 0.8rem 0;
}

.saved-question-actions .step-link {
  font-size: 0.9rem;
  white-space: nowrap;
}

.saved-question-actions .text-danger {
  color: #8a5b4f !important;
  text-decoration-color: rgba(138, 91, 79, 0.24);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.1rem;
}

.contact-actions form {
  margin: 0;
}

.contact-primary-actions {
  align-items: flex-end;
}

.contact-primary-actions + .contact-thread-list {
  margin-top: 1rem;
}

.contact-checkin-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.contact-checkin-status,
.questionnaire-card-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.contact-checkin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.contact-checkin-card-copy {
  min-width: 0;
}

.contact-checkin-card-copy h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.15rem, 1.45vw, 1.45rem);
}

.contact-checkin-card-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  text-align: right;
}

.contact-future-panel {
  text-align: center;
}

.contact-back {
  margin-top: 1.25rem;
  text-align: center;
}

.draft-next-card {
  max-width: 920px;
  margin: 0 auto;
}

.draft-next-empty {
  max-width: 44rem;
  margin: 0 auto;
}

.draft-next-summary {
  margin-top: 0;
}

.draft-next-meta dd {
  max-width: 30rem;
}

.draft-next-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 1rem auto 0;
}

.draft-next-option {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 0;
}

.draft-next-option p {
  color: var(--cothera-muted);
}

.draft-next-form {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.draft-next-form .form-label {
  margin-bottom: 0;
}

.draft-next-footer {
  margin-top: 1.35rem;
  text-align: center;
}

.copy-link-control {
  max-width: 44rem;
  margin: 0 0 1rem;
}

.copy-link-control label {
  margin-bottom: 0.55rem;
}

.copy-link-control input {
  margin-top: 0.35rem;
}

.copy-link-control button {
  margin-top: 0.65rem;
}

.copy-link-status {
  min-height: 1.5rem;
  margin: 0.5rem 0 0;
}

.invite-create-card {
  max-width: 920px;
  margin: 0 auto;
}

.invite-create-form {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.invite-questionnaire-intro {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 1.15rem;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 252, 246, 0.92), rgba(247, 248, 246, 0.78));
  padding: 0.95rem 1.1rem;
}

.invite-questionnaire-figure {
  display: flex;
  justify-content: center;
  margin: 0;
}

.invite-questionnaire-figure img {
  width: min(9.5rem, 100%);
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(24, 24, 27, 0.12));
}

.invite-questionnaire-bubble {
  position: relative;
  border: 1px solid var(--cothera-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.07);
  padding: 1rem 1.15rem;
}

.invite-questionnaire-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.58rem;
  width: 1rem;
  height: 1rem;
  border-bottom: 1px solid var(--cothera-line);
  border-left: 1px solid var(--cothera-line);
  background: #ffffff;
  transform: translateY(-50%) rotate(45deg);
}

.invite-questionnaire-bubble p {
  margin: 0;
  color: var(--cothera-muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.5;
}

.invite-questionnaire-bubble p + p {
  margin-top: 0.45rem;
}

.invite-questionnaire-bubble strong {
  color: var(--cothera-ink);
}

.thread-question-panel {
  max-width: 820px;
  margin: 0 auto 1.25rem;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf7 100%);
  box-shadow: 0 20px 42px rgba(24, 24, 27, 0.06);
  padding: 1.2rem 1.3rem;
}

.thread-question-kicker,
.thread-section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cothera-muted);
}

.thread-question-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  line-height: 1.2;
}

.thread-question-timestamp {
  margin: 0.65rem 0 0;
  color: var(--cothera-muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.thread-detail-card {
  background:
    radial-gradient(circle at top left, rgba(255, 244, 209, 0.35), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%);
}

.thread-protocol-block {
  max-width: 820px;
  margin: 0 auto;
}

.thread-initial-compact-summary,
.thread-clarification-block,
.thread-closure-block {
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.055);
  padding: 1.15rem;
}

.thread-initial-compact-summary {
  background:
    radial-gradient(circle at top left, rgba(245, 247, 250, 0.92), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 250, 247, 0.98));
}

.thread-clarification-compact-summary,
.thread-closure-compact-summary {
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.6), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 251, 248, 0.98));
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.055);
  padding: 1.15rem;
}

.thread-clarification-block,
.thread-closure-block {
  margin-top: 1rem;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 246, 0.98));
}

.thread-protocol-intro {
  max-width: 820px;
  margin-bottom: 1rem;
}

.thread-compact-protocol-intro {
  margin-bottom: 1.1rem;
}

.thread-protocol-figure img {
  width: min(8.9rem, 100%);
}

.thread-protocol-intro .invite-questionnaire-bubble p {
  color: var(--cothera-ink);
}

.thread-protocol-context {
  max-width: 820px;
  margin: 0 auto 1rem;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 209, 0.34), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fcfbf7 100%);
  box-shadow: 0 16px 36px rgba(24, 24, 27, 0.05);
  padding: 1.1rem 1.2rem;
}

.thread-protocol-context .thread-question-title {
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
}

.protocol-session-title-row {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
}

.protocol-session-partner {
  margin-top: 0.32rem;
  color: var(--cothera-muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.protocol-purpose-popout {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
}

.protocol-purpose-popout summary {
  display: inline-grid;
  width: 1.72rem;
  height: 1.72rem;
  place-items: center;
  border: 1px solid rgba(183, 135, 29, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.95), transparent 58%),
    #ffffff;
  color: #9a7115;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.protocol-purpose-popout summary::-webkit-details-marker {
  display: none;
}

.protocol-purpose-popout summary:hover,
.protocol-purpose-popout summary:focus-visible,
.protocol-purpose-popout[open] summary {
  border-color: rgba(183, 135, 29, 0.42);
  background: #fff8e8;
  color: #65470c;
  outline: none;
  transform: translateY(-1px);
}

.protocol-purpose-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  z-index: 7;
  width: min(20rem, calc(100vw - 2.5rem));
  border: 1px solid rgba(183, 135, 29, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.12);
  color: #3f3f46;
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0.85rem 0.95rem;
  text-align: left;
  transform: translateX(-50%);
}

.thread-rating-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  border: 1px solid rgba(183, 135, 29, 0.22);
  border-radius: 999px;
  background: rgba(255, 249, 234, 0.86);
  color: #5c5031;
  padding: 0.48rem 0.78rem;
  font-size: 0.94rem;
}

.thread-rating-pill strong {
  color: var(--cothera-ink);
}

.thread-hub-cta {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 209, 0.56), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 246, 0.98)) !important;
  border-color: rgba(228, 205, 152, 0.62) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.055);
}

.thread-hub-cta-question {
  max-width: 680px;
  margin: 0 auto 1.15rem;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.22;
}

.thread-waiting-checkin-prompt {
  max-width: 620px;
  margin: 1rem auto 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.thread-waiting-checkin-kicker {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thread-waiting-checkin-copy {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.thread-clarification-form,
.thread-clarification-responses {
  max-width: 720px;
  margin: 0 auto;
}

.thread-clarification-form textarea {
  border-radius: 18px;
  border-color: rgba(24, 24, 27, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.thread-clarification-responses {
  display: grid;
  gap: 0.85rem;
}

.thread-response-heading {
  margin: 0;
  color: var(--cothera-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.thread-response-card {
  border: 1px solid var(--cothera-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.1rem;
}

.thread-response-name {
  margin: 0 0 0.35rem;
  color: var(--cothera-ink);
  font-weight: 700;
}

.thread-response-text {
  margin: 0;
  color: #34343a;
}

.thread-closure-summary-list {
  display: grid;
  gap: 0.78rem;
}

.thread-closure-summary-item {
  border-top: 1px solid rgba(24, 24, 27, 0.07);
  padding-top: 0.72rem;
}

.thread-closure-summary-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.thread-closure-summary-label {
  margin: 0 0 0.28rem;
  color: var(--cothera-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.thread-paraphrasing-history-list {
  display: grid;
  gap: 0.72rem;
}

.thread-paraphrasing-history-card {
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.55), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 247, 0.96));
  padding: 0.82rem 0.95rem;
}

.thread-paraphrasing-history-card.is-rating {
  background:
    radial-gradient(circle at top left, rgba(239, 249, 243, 0.74), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 251, 0.96));
}

.thread-paraphrasing-history-card.is-decision {
  background:
    radial-gradient(circle at top left, rgba(245, 247, 250, 0.82), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 247, 0.96));
}

.thread-paraphrasing-history-label {
  margin: 0 0 0.28rem;
  color: var(--cothera-ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.28;
}

.thread-paraphrasing-history-value {
  margin: 0;
  color: #34343a;
  font-size: 0.95rem;
  line-height: 1.45;
}

.thread-reveal-panel {
  display: grid;
  gap: 0.95rem;
  max-width: 820px;
  margin: 0 auto 1rem;
}

.thread-initial-exchange {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  max-width: none;
  padding: 0.25rem 0;
}

.thread-initial-exchange::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243, 179, 29, 0.24), rgba(47, 125, 76, 0.22));
  transform: translateX(-50%);
}

.thread-initial-entry {
  position: relative;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  min-width: 0;
}

.thread-initial-entry.is-partner {
  flex-direction: row-reverse;
}

.thread-initial-entry.is-you {
  justify-content: flex-start;
}

.thread-initial-dot {
  position: relative;
  z-index: 1;
  margin-top: 1.05rem;
  width: 0.56rem;
  height: 0.56rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f3b31d;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.94);
}

.thread-initial-entry.is-you .thread-initial-dot {
  background: var(--cothera-good);
}

.thread-initial-entry-body {
  display: flex;
  gap: 0.58rem;
  align-items: flex-start;
  min-width: 0;
  width: min(100%, 23rem);
}

.thread-initial-entry.is-you .thread-initial-entry-body {
  flex-direction: row-reverse;
}

.thread-reveal-row {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--cothera-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(24, 24, 27, 0.05);
  padding: 1rem 1.15rem 1.1rem;
}

.thread-initial-entry .thread-reveal-row::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  width: 0.8rem;
  height: 0.8rem;
  border-bottom: 1px solid rgba(183, 135, 29, 0.18);
  border-left: 1px solid rgba(183, 135, 29, 0.18);
  background: #ffffff;
  transform: rotate(45deg);
}

.thread-initial-entry.is-partner .thread-reveal-row::before {
  left: -0.43rem;
}

.thread-initial-entry.is-you .thread-reveal-row::before {
  right: -0.43rem;
  border-color: rgba(47, 125, 76, 0.18);
  border-top: 1px solid rgba(47, 125, 76, 0.18);
  border-right: 1px solid rgba(47, 125, 76, 0.18);
  border-bottom: 0;
  border-left: 0;
}

.thread-reveal-row.is-partner {
  background: linear-gradient(180deg, #fffdf6 0%, #fff9ea 100%);
  border-color: rgba(168, 134, 51, 0.22);
}

.thread-reveal-row-header {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.thread-reveal-meta {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  align-items: center;
}

.thread-reveal-line {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0;
}

.thread-reveal-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cothera-ink);
}

.thread-reveal-separator {
  color: var(--cothera-muted);
  font-weight: 700;
}

.thread-reveal-label {
  font-weight: 700;
  color: var(--cothera-ink);
}

.thread-reveal-value {
  font-size: 0.84rem;
  color: var(--cothera-muted);
}

.thread-scale-graphic {
  position: relative;
}

.thread-scale-rail {
  position: absolute;
  top: 0.55rem;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  background: rgba(24, 24, 27, 0.12);
}

.thread-scale-points {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.thread-scale-point {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.thread-scale-dot {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(24, 24, 27, 0.24);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92);
}

.thread-scale-point.is-active .thread-scale-dot {
  border-color: #111111;
  background: #111111;
}

.thread-message-turn.is-you-turn .thread-scale-point.is-active .thread-scale-dot {
  border-color: var(--cothera-good);
  background: var(--cothera-good);
}

.thread-reveal-row.is-partner .thread-scale-point.is-active .thread-scale-dot {
  border-color: #b7871d;
  background: #f3b31d;
}

.thread-scale-number {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cothera-muted);
}

.thread-status-note {
  max-width: 760px;
  margin: 0 auto 0.9rem;
}

.thread-initial-form {
  max-width: 820px;
  margin: 0 auto 1rem;
}

.thread-form-label {
  display: block;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.thread-conversation-shell {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin: 1.15rem auto 0;
}

.thread-conversation-shell > .thread-question-panel,
.thread-conversation-shell > .thread-protocol-block,
.thread-conversation-shell > .thread-hub-cta,
.thread-conversation-shell > .thread-status-note,
.thread-conversation-shell > .thread-initial-waiting-panel {
  max-width: none;
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.thread-question-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(228, 205, 152, 0.62);
  background:
    radial-gradient(circle at top left, rgba(255, 244, 209, 0.66), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fcfbf7 100%);
}

.thread-question-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  background: linear-gradient(180deg, #f3b31d, rgba(243, 179, 29, 0.18));
}

.thread-conversation-chapter {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(245, 247, 250, 0.8), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 251, 248, 0.98));
  box-shadow: 0 22px 52px rgba(24, 24, 27, 0.06);
  padding: 1rem;
}

.thread-free-chat-section {
  background:
    radial-gradient(circle at top left, rgba(239, 249, 243, 0.72), transparent 42%),
    radial-gradient(circle at bottom right, rgba(255, 248, 232, 0.5), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 251, 0.98));
}

.thread-chapter-header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.thread-chapter-marker {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cothera-ink);
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.06);
}

.thread-chapter-subtitle {
  max-width: 36rem;
  margin: 0;
  color: var(--cothera-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.thread-conversation-chapter .thread-protocol-intro {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  border-color: rgba(24, 24, 27, 0.06);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.68), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(250, 250, 247, 0.72));
  box-shadow: none;
}

.thread-conversation-chapter .thread-protocol-figure img {
  width: min(7.4rem, 100%);
}

.thread-conversation-chapter .invite-questionnaire-bubble {
  box-shadow: 0 14px 30px rgba(24, 24, 27, 0.06);
}

.thread-dialogue-panel {
  border-color: rgba(24, 24, 27, 0.08) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 252, 246, 0.82), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 247, 0.96)) !important;
  box-shadow: none !important;
}

.thread-dialogue-card {
  display: grid;
  gap: 0.65rem;
  border-color: rgba(24, 24, 27, 0.08) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.045);
}

.thread-dialogue-card.is-you {
  border-color: rgba(47, 125, 76, 0.18) !important;
  background:
    radial-gradient(circle at top left, rgba(239, 249, 243, 0.82), transparent 45%),
    #ffffff !important;
}

.thread-dialogue-card.is-partner {
  border-color: rgba(183, 135, 29, 0.2) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.88), transparent 45%),
    #ffffff !important;
}

.thread-dialogue-speaker {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.thread-speaker-avatar {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--cothera-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.thread-speaker-avatar.is-you {
  background: rgba(47, 125, 76, 0.12);
  color: var(--cothera-good);
}

.thread-speaker-avatar.is-partner {
  background: rgba(243, 179, 29, 0.18);
  color: #9a6a0f;
}

.thread-clarification-exchange {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  padding: 0.25rem 0;
}

.thread-clarification-exchange::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243, 179, 29, 0.22), rgba(47, 125, 76, 0.2));
  transform: translateX(-50%);
}

.thread-clarification-entry {
  position: relative;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  min-width: 0;
}

.thread-clarification-entry.is-partner {
  flex-direction: row-reverse;
}

.thread-clarification-entry.is-you {
  justify-content: flex-start;
}

.thread-clarification-dot {
  position: relative;
  z-index: 1;
  margin-top: 1.05rem;
  width: 0.56rem;
  height: 0.56rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f3b31d;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.94);
}

.thread-clarification-entry.is-you .thread-clarification-dot {
  background: var(--cothera-good);
}

.thread-clarification-entry-body {
  display: flex;
  gap: 0.58rem;
  align-items: flex-start;
  min-width: 0;
  width: min(100%, 23rem);
}

.thread-clarification-entry.is-you .thread-clarification-entry-body {
  flex-direction: row-reverse;
}

.thread-clarification-entry .thread-dialogue-card {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.thread-clarification-entry .thread-dialogue-card::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  width: 0.8rem;
  height: 0.8rem;
  border-bottom: 1px solid rgba(183, 135, 29, 0.18);
  border-left: 1px solid rgba(183, 135, 29, 0.18);
  background: #ffffff;
  transform: rotate(45deg);
}

.thread-clarification-entry.is-partner .thread-dialogue-card::before {
  left: -0.43rem;
}

.thread-clarification-entry.is-you .thread-dialogue-card::before {
  right: -0.43rem;
  border-color: rgba(47, 125, 76, 0.18);
  border-top: 1px solid rgba(47, 125, 76, 0.18);
  border-right: 1px solid rgba(47, 125, 76, 0.18);
  border-bottom: 0;
  border-left: 0;
}

.thread-clarification-entry .thread-dialogue-speaker {
  justify-content: space-between;
}

.thread-entry-time {
  flex: 0 0 auto;
  color: var(--cothera-muted);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.86;
  white-space: nowrap;
}

.thread-message-turn {
  box-shadow: 0 12px 30px rgba(24, 24, 27, 0.045);
}

.thread-message-turn.is-you-turn {
  border-color: rgba(47, 125, 76, 0.18);
  background:
    radial-gradient(circle at top left, rgba(239, 249, 243, 0.76), transparent 44%),
    #ffffff;
}

.thread-message-turn.is-partner-turn {
  border-color: rgba(183, 135, 29, 0.2);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.86), transparent 44%),
    #ffffff;
}

.thread-paraphrasing-history-list {
  position: relative;
  gap: 0.62rem;
  padding: 0.35rem 0;
}

.thread-paraphrasing-history-list::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  bottom: 0.65rem;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243, 179, 29, 0.28), rgba(47, 125, 76, 0.24));
  transform: translateX(-50%);
}

.thread-paraphrasing-history-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
  min-height: 2.75rem;
}

.thread-paraphrasing-timeline-dot {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin-top: 0.95rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: #f3b31d;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.94);
}

.thread-paraphrasing-history-row.is-you .thread-paraphrasing-timeline-dot {
  background: var(--cothera-good);
}

.thread-paraphrasing-history-row.is-decision .thread-paraphrasing-timeline-dot {
  background: #b9bfca;
}

.thread-paraphrasing-history-body {
  display: flex;
  gap: 0.58rem;
  align-items: flex-start;
  min-width: 0;
  width: min(100%, 23rem);
}

.thread-paraphrasing-history-row.is-partner .thread-paraphrasing-history-body {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.thread-paraphrasing-history-row.is-you .thread-paraphrasing-history-body {
  grid-column: 3;
  grid-row: 1;
  flex-direction: row-reverse;
  justify-self: start;
}

.thread-paraphrasing-avatar {
  width: 2.05rem;
  height: 2.05rem;
  font-size: 0.76rem;
}

.thread-paraphrasing-history-card {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.72rem 0.82rem;
  border-radius: 16px;
}

.thread-paraphrasing-history-card::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  width: 0.72rem;
  height: 0.72rem;
  background: #ffffff;
  transform: rotate(45deg);
}

.thread-paraphrasing-history-row.is-partner .thread-paraphrasing-history-card::before {
  left: -0.39rem;
  border-bottom: 1px solid rgba(183, 135, 29, 0.18);
  border-left: 1px solid rgba(183, 135, 29, 0.18);
}

.thread-paraphrasing-history-row.is-you .thread-paraphrasing-history-card::before {
  right: -0.39rem;
  border-top: 1px solid rgba(47, 125, 76, 0.18);
  border-right: 1px solid rgba(47, 125, 76, 0.18);
}

.thread-paraphrasing-history-row.is-decision .thread-paraphrasing-history-card::before {
  border-color: rgba(107, 114, 128, 0.14);
}

.thread-paraphrasing-history-row.is-you .thread-paraphrasing-history-card {
  border-color: rgba(47, 125, 76, 0.18);
  background:
    radial-gradient(circle at top left, rgba(239, 249, 243, 0.82), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 251, 0.96));
}

.thread-paraphrasing-history-row.is-partner .thread-paraphrasing-history-card {
  border-color: rgba(183, 135, 29, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.74), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 247, 0.96));
}

.thread-paraphrasing-history-row.is-decision .thread-paraphrasing-history-card {
  border-color: rgba(107, 114, 128, 0.14);
  background:
    radial-gradient(circle at top left, rgba(245, 247, 250, 0.82), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 247, 0.96));
}

.thread-paraphrasing-history-label {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  justify-content: space-between;
}

.thread-paraphrasing-history-label time {
  flex: 0 0 auto;
  color: var(--cothera-muted);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.86;
  white-space: nowrap;
}

.thread-hub-cta {
  text-align: center;
}

.thread-bottom-anchor {
  scroll-margin-top: 5.75rem;
}

[data-thread-item-source] {
  border-radius: 18px;
  scroll-margin-top: 6.25rem;
}

[data-thread-item-source].is-thread-source-highlight {
  animation: threadSourcePulse 2.8s ease-out;
  box-shadow:
    0 0 0 4px rgba(255, 185, 44, 0.22),
    0 14px 34px rgba(183, 135, 29, 0.15);
}

@keyframes threadSourcePulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 185, 44, 0.38),
      0 14px 34px rgba(183, 135, 29, 0.18);
  }

  65% {
    box-shadow:
      0 0 0 8px rgba(255, 185, 44, 0.12),
      0 14px 34px rgba(183, 135, 29, 0.15);
  }

  100% {
    box-shadow:
      0 0 0 4px rgba(255, 185, 44, 0.22),
      0 14px 34px rgba(183, 135, 29, 0.15);
  }
}

.thread-free-chat-composer-anchor {
  min-height: 1px;
}

.thread-free-chat-form {
  max-width: 720px;
  margin: 0 auto;
}

.thread-history-actions,
.thread-free-chat-actions {
  display: flex;
  justify-content: flex-end;
}

.thread-item-actions {
  display: inline-flex;
  line-height: 1;
}

.thread-item-actions-trigger {
  display: inline-flex;
  width: 2rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(107, 114, 128, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 56%),
    rgba(255, 255, 255, 0.82);
  color: var(--cothera-muted);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.thread-item-actions-trigger::after {
  display: none;
}

.thread-item-actions-trigger:hover,
.thread-item-actions-trigger:focus,
.thread-item-actions-trigger[aria-expanded="true"] {
  border-color: rgba(183, 135, 29, 0.28);
  background: #fff;
  color: var(--cothera-text);
  transform: translateY(-1px);
}

.thread-item-actions-menu {
  min-width: 10.5rem;
  padding: 0.45rem;
  border: 1px solid rgba(107, 114, 128, 0.14);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(31, 37, 51, 0.13);
}

.thread-item-action-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  color: var(--cothera-text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.thread-item-actions-menu form .thread-item-action-link {
  width: 100%;
  text-align: left;
}

.thread-item-action-link:hover,
.thread-item-action-link:focus {
  background: rgba(255, 185, 44, 0.14);
  color: var(--cothera-text);
}

.thread-quote-source-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.thread-quote-source-link:hover,
.thread-quote-source-link:focus {
  color: var(--cothera-text);
  text-decoration: underline;
  text-decoration-color: rgba(183, 135, 29, 0.42);
  text-underline-offset: 0.18em;
}

.thread-jump-to-bottom {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 1080;
  appearance: none;
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(183, 135, 29, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.85), transparent 50%),
    #fff;
  box-shadow: 0 16px 36px rgba(31, 37, 51, 0.16);
  color: var(--cothera-text);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transform: translateY(0.45rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.thread-jump-to-bottom.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.thread-jump-to-bottom:hover,
.thread-jump-to-bottom:focus {
  border-color: rgba(183, 135, 29, 0.38);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.95), transparent 50%),
    #ffffff;
  box-shadow: 0 18px 38px rgba(31, 37, 51, 0.18);
  color: var(--cothera-text);
}

.thread-free-chat-composer-quote {
  position: relative;
}

.thread-free-chat-cancel-reply {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  opacity: 0.58;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.thread-free-chat-cancel-reply:hover,
.thread-free-chat-cancel-reply:focus {
  opacity: 0.92;
  transform: scale(1.05);
}

.thread-local-form-error {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  border: 1px solid rgba(182, 63, 63, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.9), transparent 42%),
    #fffaf0;
  color: #6f3f1f;
  font-weight: 650;
}

.thread-initial-waiting-panel {
  border-color: rgba(228, 205, 152, 0.62) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 209, 0.52), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 251, 248, 0.98)) !important;
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.055);
}

.invite-form-panel {
  border: 1px solid var(--cothera-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1.25rem;
}

.invite-form-panel legend,
.invite-form-panel h2 {
  margin-bottom: 0.4rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.14rem, 1.45vw, 1.48rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cothera-ink);
}

.invite-form-panel legend {
  float: none;
  width: auto;
}

.invite-form-panel .settings-panel-header {
  margin-bottom: 1rem;
}

.required-note {
  margin-top: 0.55rem;
  color: var(--cothera-muted);
  font-size: 0.9rem;
}

.required-marker {
  color: #a5533f;
  font-weight: 800;
}

.invite-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.invite-form-actions .btn-link {
  color: var(--cothera-muted);
  font-weight: 700;
  text-decoration: none;
}

.invite-form-actions .btn-link:hover {
  color: var(--cothera-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.invite-success-panel,
.invite-status-panel {
  max-width: 44rem;
  margin-right: auto;
  margin-left: auto;
}

.invite-notification-optin {
  max-width: 44rem;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.invite-notification-optin .settings-panel-header {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.invite-notification-optin h2 {
  max-width: 34rem;
  margin-bottom: 0;
}

.invite-notification-optin .settings-panel-header p {
  max-width: 35rem;
}

.questionnaire-form {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.questionnaire-option-list {
  display: grid;
  gap: 0.7rem;
}

.questionnaire-option-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(230, 231, 235, 0.9);
  border-radius: 16px;
  background: #ffffff;
  line-height: 1.45;
}

.questionnaire-option-list input[type="radio"] {
  margin-top: 0.18rem;
  flex: 0 0 auto;
}

.questionnaire-inline-input {
  max-width: 26rem;
}

.questionnaire-specify {
  margin-top: -0.15rem;
  padding-left: 2rem;
}

.questionnaire-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.questionnaire-option-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.questionnaire-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.questionnaire-card-status {
  margin-top: 0.75rem;
}

.questionnaire-section-intro {
  margin-bottom: 1.25rem;
}

.questionnaire-section-intro h2 {
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.relationship-checkin-item {
  display: grid;
  gap: 0.9rem;
}

.relationship-checkin-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.relationship-checkin-scale label {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.relationship-checkin-scale input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.relationship-checkin-scale span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.relationship-checkin-scale input:checked + span {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.relationship-checkin-scale input:focus-visible + span {
  outline: 3px solid rgba(245, 181, 0, 0.35);
  outline-offset: 2px;
}

.relationship-checkin-anchors {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

.relationship-checkin-clear {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.relationship-checkin-clear:hover,
.relationship-checkin-clear:focus-visible {
  color: var(--ink);
}

.questionnaire-contact-select-list {
  margin-top: 1rem;
}

.dashboard-shell {
  display: grid;
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}

.dashboard-hero {
  max-width: 760px;
  margin: 0 auto;
}

.dashboard-hero-logo {
  width: 3rem;
}

.dashboard-hero-copy {
  max-width: 34rem;
  margin-bottom: 1rem;
}

.dashboard-refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(24, 24, 27, 0.05);
  padding: 0.6rem 0.95rem;
  color: var(--cothera-muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-refresh-pill svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.dashboard-refresh-pill:hover,
.dashboard-refresh-pill:focus-visible {
  color: var(--cothera-ink);
  border-color: rgba(24, 24, 27, 0.16);
  box-shadow: 0 14px 26px rgba(24, 24, 27, 0.08);
}

.dashboard-refresh-pill:active {
  transform: translateY(1px);
}

.dashboard-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgba(228, 205, 152, 0.6);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 209, 0.52), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 251, 248, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(24, 24, 27, 0.06);
  padding: 1.45rem 1.5rem;
}

.dashboard-feature-stack {
  display: grid;
  gap: 1rem;
}

.dashboard-feature-card.dashboard-priority-extra-high {
  border-color: #f2c86b;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 214, 0.82), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 250, 240, 0.98) 100%);
}

.dashboard-feature-card.dashboard-priority-high {
  border-color: #e7d08a;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.88), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 252, 244, 0.98) 100%);
}

.dashboard-feature-card.dashboard-priority-medium {
  border-color: #d6dee8;
  background:
    radial-gradient(circle at top left, rgba(245, 247, 250, 0.92), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.dashboard-feature-card.dashboard-priority-low {
  border-color: #d9ded9;
  background:
    radial-gradient(circle at top left, rgba(247, 248, 247, 0.92), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 250, 249, 0.98) 100%);
}

.dashboard-feature-card-empty {
  border-color: rgba(230, 231, 235, 0.9);
  background:
    radial-gradient(circle at top left, rgba(245, 244, 239, 0.78), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 251, 248, 0.98) 100%);
}

.dashboard-feature-main {
  min-width: 0;
}

.dashboard-feature-side {
  display: grid;
  gap: 0.9rem;
  justify-items: end;
}

.dashboard-person-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 1.05rem;
}

.dashboard-person-copy {
  min-width: 0;
}

.dashboard-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff2c2 0%, #ffe7a0 100%);
  color: #c68d00;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dashboard-person-label {
  color: #5d6781;
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dashboard-feature-question {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 3vw, 2.55rem);
  line-height: 1.14;
}

.dashboard-thread-updated {
  margin: -0.15rem 0 0.45rem;
  color: #7a8190;
  font-size: 0.79rem;
  line-height: 1.25;
}

.dashboard-feature-note {
  margin: 0;
  color: #5d6781;
  font-size: 1.04rem;
}

.dashboard-attention-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  border: 1px solid rgba(228, 205, 152, 0.72);
  border-radius: 999px;
  background: rgba(255, 243, 214, 0.9);
  color: #5c5031;
  padding: 0.42rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.dashboard-attention-pill svg {
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 auto;
}

.dashboard-attention-pill-extra-high {
  border-color: #f2c86b;
  background: #fff4d6;
  color: #9a6700;
}

.dashboard-attention-pill-high {
  border-color: #e7d08a;
  background: #fff8e8;
  color: #8a6a14;
}

.dashboard-attention-pill-medium {
  border-color: #d6dee8;
  background: #f5f7fa;
  color: #5b6b7d;
}

.dashboard-attention-pill-low {
  border-color: #d9ded9;
  background: #f7f8f7;
  color: #6c756c;
}

.dashboard-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 15rem;
  justify-content: center;
  border: 0;
  border-radius: 22px;
  background: #111111;
  color: #ffffff;
  padding: 1rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.18);
}

.dashboard-primary-action:hover {
  background: #222222;
  color: #ffffff;
}

.dashboard-primary-action-warning {
  background: #ffc107;
  color: #2b2111;
  box-shadow: 0 14px 28px rgba(255, 193, 7, 0.28);
}

.dashboard-primary-action-warning:hover,
.dashboard-primary-action-warning:focus-visible {
  background: #ffca2c;
  color: #2b2111;
}

.dashboard-primary-action svg,
.dashboard-open-pill svg,
.dashboard-checkin-pill svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.dashboard-secondary-threads {
  display: grid;
  gap: 0.8rem;
}

.dashboard-secondary-thread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--cothera-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1rem 1.15rem;
  color: inherit;
  text-decoration: none;
}

.dashboard-secondary-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.dashboard-secondary-side {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.dashboard-secondary-copy {
  min-width: 0;
}

.dashboard-shell .dashboard-secondary-copy {
  width: 100%;
}

.dashboard-secondary-thread.dashboard-priority-extra-high {
  border-color: #f2c86b;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 214, 0.88), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 249, 236, 0.98) 100%);
}

.dashboard-secondary-thread.dashboard-priority-high {
  border-color: #e7d08a;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.9), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 252, 243, 0.98) 100%);
}

.dashboard-secondary-thread.dashboard-priority-medium {
  border-color: #d6dee8;
  background:
    radial-gradient(circle at top left, rgba(245, 247, 250, 0.94), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 249, 252, 0.98) 100%);
}

.dashboard-secondary-thread.dashboard-priority-low {
  border-color: #d9ded9;
  background:
    radial-gradient(circle at top left, rgba(247, 248, 247, 0.94), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 249, 248, 0.98) 100%);
}

.dashboard-secondary-thread:hover {
  border-color: #d7d9df;
  box-shadow: 0 14px 32px rgba(24, 24, 27, 0.05);
}

.dashboard-secondary-partner,
.dashboard-secondary-question,
.dashboard-contact-name,
.dashboard-contact-status {
  margin: 0;
}

.dashboard-secondary-partner {
  color: var(--cothera-muted);
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dashboard-secondary-question {
  margin-top: 0.2rem;
  color: var(--cothera-ink);
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-thread-updated-secondary {
  margin: 0.22rem 0 0;
}

.dashboard-shell .dashboard-thread-updated-secondary {
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dashboard-secondary-status-extra-high {
  color: #9a6700;
}

.dashboard-secondary-status-high {
  color: #8a6a14;
}

.dashboard-secondary-status-medium {
  color: #5b6b7d;
}

.dashboard-secondary-status-low {
  color: #6c756c;
}

.dashboard-secondary-status {
  color: var(--cothera-muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-secondary-status-new {
  display: inline-grid;
  width: 1.45rem;
  height: 1.45rem;
  margin-left: 0.35rem;
  place-items: center;
  vertical-align: middle;
  border: 1px solid rgba(220, 53, 69, 0.72);
  border-radius: 999px;
  background: #dc3545;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(220, 53, 69, 0.24);
}

.dashboard-secondary-status-new svg {
  width: 0.78rem;
  height: 0.78rem;
  fill: currentColor;
}

.dashboard-attention-pill .dashboard-secondary-status-new {
  margin-left: 0.16rem;
}

.dashboard-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 10.5rem;
  justify-content: center;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cothera-ink);
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(24, 24, 27, 0.05);
  white-space: nowrap;
}

.dashboard-secondary-action:hover,
.dashboard-secondary-action:focus-visible {
  color: #000000;
  border-color: rgba(24, 24, 27, 0.2);
  box-shadow: 0 14px 24px rgba(24, 24, 27, 0.08);
}

.dashboard-secondary-action svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.dashboard-secondary-action-warning {
  background: #ffc107;
  border-color: rgba(242, 200, 107, 0.95);
  color: #2b2111;
  box-shadow: 0 12px 22px rgba(255, 193, 7, 0.22);
}

.dashboard-secondary-action-warning:hover,
.dashboard-secondary-action-warning:focus-visible {
  background: #ffca2c;
  border-color: rgba(242, 200, 107, 1);
  color: #2b2111;
}

.dashboard-secondary-action-outline {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(91, 107, 125, 0.22);
  color: #5b6b7d;
}

.dashboard-secondary-action-outline:hover,
.dashboard-secondary-action-outline:focus-visible {
  border-color: rgba(91, 107, 125, 0.34);
  color: #435162;
}

.dashboard-secondary-action-outline-low {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(108, 117, 108, 0.28);
  color: #6c756c;
  box-shadow: none;
}

.dashboard-secondary-action-outline-low:hover,
.dashboard-secondary-action-outline-low:focus-visible {
  border-color: rgba(108, 117, 108, 0.4);
  color: #596259;
  box-shadow: 0 10px 18px rgba(108, 117, 108, 0.08);
}

.dashboard-secondary-thread.contact-thread-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  text-decoration: none;
}

.contact-thread-card .dashboard-secondary-main {
  gap: 0;
  min-width: 0;
}

.contact-thread-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.contact-thread-label-row .dashboard-secondary-partner {
  margin: 0;
}

.contact-thread-label-row .contact-thread-actions {
  flex: 0 0 auto;
}

.contact-thread-label-row .thread-item-actions-trigger {
  width: 1.8rem;
  height: 1.55rem;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.contact-thread-side {
  display: flex;
  min-width: max-content;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.7rem;
}

.contact-thread-side .dashboard-secondary-action {
  min-width: 8.75rem;
  max-width: 14rem;
  padding: 0.58rem 0.9rem;
  font-size: 0.9rem;
}

.contact-thread-side .dashboard-secondary-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-thread-side .dashboard-secondary-status {
  max-width: 14rem;
  text-align: right;
  white-space: normal;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-panel {
  border: 1px solid rgba(230, 231, 235, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 249, 232, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 251, 248, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(24, 24, 27, 0.05);
  padding: 1.35rem;
}

.dashboard-panel-header {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dashboard-panel-icon {
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #d19a00;
  background: rgba(255, 242, 194, 0.72);
  flex: 0 0 auto;
}

.dashboard-panel-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.dashboard-panel-header h2 {
  margin-bottom: 0.28rem;
  font-size: clamp(1.32rem, 1.7vw, 1.65rem);
}

.dashboard-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dashboard-topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.55rem 0.9rem;
  color: #3f4753;
  font-size: 0.93rem;
  font-weight: 500;
}

.dashboard-panel-footer {
  margin-top: 1.15rem;
  text-align: center;
}

.dashboard-panel-note {
  max-width: 26rem;
  margin-right: auto;
  margin-left: auto;
  font-size: 0.93rem;
  line-height: 1.45;
}

.dashboard-link-action {
  color: #2563eb;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.dashboard-link-action:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.dashboard-contacts-list {
  display: grid;
  gap: 0.95rem;
}

.dashboard-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(230, 231, 235, 0.88);
}

.dashboard-contact-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.dashboard-contact-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.dashboard-contact-name {
  color: var(--cothera-ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.dashboard-contact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.18rem;
  color: var(--cothera-muted);
  font-size: 0.94rem;
}

.dashboard-contact-status.is-connected {
  color: #4d596d;
}

.dashboard-contact-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: #d1d5db;
  flex: 0 0 auto;
}

.dashboard-contact-status.is-connected .dashboard-contact-dot {
  background: #22c55e;
}

.dashboard-open-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cothera-ink);
  padding: 0.6rem 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-open-pill:hover {
  background: var(--cothera-soft);
}

.dashboard-checkin-row {
  display: flex;
  justify-content: center;
  margin-top: 0.15rem;
}

.dashboard-checkin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.04);
  padding: 0.72rem 1.1rem;
  color: var(--cothera-ink);
  text-decoration: none;
}

.dashboard-checkin-pill:hover {
  background: #ffffff;
}

.dashboard-checkin-meta {
  color: var(--cothera-muted);
}

.dashboard-checkin-action {
  color: #2563eb;
  font-weight: 500;
}

.dashboard-checkin-pill:hover .dashboard-checkin-action {
  color: #1d4ed8;
}

.invite-success-panel .copy-link-control {
  margin-right: auto;
  margin-left: auto;
}

.invite-inline-form {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.link-result-panel {
  max-width: 34rem;
  margin-right: auto;
  margin-left: auto;
}

.invite-empty-card {
  max-width: 720px;
  margin: 1rem auto 0;
  border: 1px solid var(--cothera-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  padding: 2rem;
  text-align: center;
}

.invite-empty-card h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.invite-empty-card p {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  color: var(--cothera-muted);
}

.invite-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.invite-empty-card-inline {
  max-width: 44rem;
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
}

.invite-empty-card-inline h2 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.invite-empty-card-inline p {
  max-width: none;
  margin: 0;
}

.invite-empty-card-inline .invite-empty-secondary {
  margin-top: 0.65rem;
}

.invite-create-card .invite-empty-card-inline {
  max-width: 760px;
  margin: 0 auto 1.25rem;
}

.relationship-length-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.relationship-length-field {
  width: 5.75rem;
}

.relationship-length-field .compact-number-input {
  margin-top: 0.4rem;
}

.compact-number-input {
  width: 5.75rem !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.satisfaction-scale {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 44rem;
}

.satisfaction-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.satisfaction-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.satisfaction-option-card {
  display: flex;
  min-height: 4.7rem;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--cothera-line);
  border-radius: 16px;
  background: #ffffff;
  padding: 0.7rem 0.45rem;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.satisfaction-option:hover .satisfaction-option-card {
  transform: translateY(-1px);
  border-color: #cfd3d9;
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.06);
}

.satisfaction-option input:focus-visible + .satisfaction-option-card {
  outline: 3px solid rgba(17, 17, 17, 0.18);
  outline-offset: 2px;
}

.satisfaction-option input:checked + .satisfaction-option-card {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.18);
}

.satisfaction-number {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.satisfaction-label {
  font-size: 0.78rem;
  line-height: 1.15;
  color: var(--cothera-muted);
}

.satisfaction-option input:checked + .satisfaction-option-card .satisfaction-label {
  color: rgba(255, 255, 255, 0.78);
}

form {
  text-align: left;
}

label {
  display: block;
}

button,
.button-link {
  display: inline-block;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: #2a2a2a;
  color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d4d7de;
  border-radius: 16px;
  padding: 0.8rem 0.95rem;
  background: #ffffff;
}

.password-toggle-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.password-toggle-wrap input[type="password"],
.password-toggle-wrap input[type="text"] {
  padding-right: 4.8rem;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: inline-flex;
  width: auto;
  min-width: 3.4rem;
  max-width: max-content;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f6675;
  box-shadow: none;
  min-height: 1.8rem;
  padding: 0.32rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.password-toggle-button:hover,
.password-toggle-button:focus {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
  box-shadow: none;
  transform: translateY(-50%);
}

.question-list {
  padding-left: 1.1rem;
}

.question-list li {
  margin: 0.3rem 0;
}

.ct-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.82), transparent 48%),
    #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(24, 24, 27, 0.08),
    0 8px 20px rgba(24, 24, 27, 0.055);
}

.ct-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.ct-avatar--sm {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 10px;
}

.ct-avatar--md {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 14px;
}

.ct-avatar--lg {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 22px;
}

.ct-avatar-fallback {
  color: #a86f04;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dashboard-avatar.ct-avatar {
  font-size: 0;
}

.contact-list-avatar,
.contact-detail-avatar,
.thread-header-avatar {
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.86), transparent 48%),
    #ffffff;
}

.contact-list-avatar {
  margin-right: 0.05rem;
}

.thread-header-avatar-row {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 0.55rem;
}

.thread-speaker-avatar.ct-avatar,
.thread-paraphrasing-avatar.ct-avatar {
  padding: 0;
  font-size: 0;
}

.thread-speaker-avatar.ct-avatar.is-you {
  background:
    radial-gradient(circle at top left, rgba(239, 249, 243, 0.9), transparent 50%),
    #ffffff;
}

.thread-speaker-avatar.ct-avatar.is-partner {
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, 0.9), transparent 50%),
    #ffffff;
}

@media (max-width: 991px) {
  main {
    padding-top: 1.75rem;
  }

  .prompt-stack-hero p {
    font-size: 1.2rem;
  }

  .question-chip-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works-list {
    grid-template-columns: 1fr;
  }

  .guess-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-source-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .question-suggestions-shell-header {
    flex-direction: column;
    align-items: stretch;
  }

  .question-suggestions-toggle {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .site-nav-collapse {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .site-nav-inner {
    gap: 0.75rem;
  }

  .site-nav-inner.is-authenticated {
    justify-content: space-between;
  }

  .site-nav-desktop-links > * + *::before {
    content: none;
  }

  .site-nav-desktop-links {
    display: none;
  }

  .site-nav-toggle {
    display: inline-flex;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
  }

  .site-nav-greeting {
    max-width: min(10rem, calc(100vw - 14rem));
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav-identity {
    flex: 1 1 auto;
    margin-right: auto;
    min-width: 0;
  }

  .site-nav .site-nav-feedback-trigger {
    width: 2.05rem;
    height: 2.05rem;
    padding: 0;
  }

  .site-nav .site-nav-feedback-trigger svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .site-nav-feedback-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .site-nav .site-nav-refresh-pill {
    margin-left: 0;
    padding: 0.42rem 0.54rem;
  }

  .site-nav .site-nav-refresh-pill [data-dashboard-refresh-text] {
    font-size: 0.74rem;
  }

  .site-footer-inner {
    justify-content: center;
  }

  .age-note {
    margin-top: 0.25rem;
  }

  .cothera-step-card[data-step="1"] .row.g-4 {
    --bs-gutter-y: 0.7rem;
  }

  .cothera-step-card[data-step="1"] .prompt-stack-hero {
    gap: 0.55rem;
  }

  .cothera-step-card[data-step="1"] .prompt-stack-hero p {
    font-size: clamp(1.05rem, 5.25vw, 1.18rem);
    line-height: 1.18;
  }

  .cothera-step-card[data-step="1"] .coach-card {
    padding: 0.25rem 0 0;
  }

  .cothera-step-card[data-step="1"] .coach-image {
    max-height: 145px;
  }

  .cothera-step-card[data-step="1"] .coach-caption {
    margin-top: 0.25rem;
    font-size: 0.78rem;
  }

  .cothera-step-card[data-step="1"] .coach-card + .btn.d-lg-none {
    margin-top: 0.65rem !important;
    margin-bottom: 0.75rem !important;
  }

  .start-hero-brand {
    gap: 0.52rem;
    white-space: nowrap;
  }

  .start-hero-logo {
    width: 2.35rem;
  }

  .start-hero-brand .display-4 {
    font-size: clamp(2rem, 12.5vw, 2.55rem);
  }

  .dashboard-hero-logo {
    width: 2.2rem;
  }

  .start-progress {
    gap: 0.28rem;
    flex-wrap: nowrap;
    margin-bottom: 1.2rem;
  }

  .start-progress-item {
    padding: 0.36rem 0.48rem;
    font-size: clamp(0.68rem, 3.15vw, 0.82rem);
    white-space: nowrap;
  }

  .step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .step-actions .btn,
  .step-actions .btn-link,
  .step-actions .button-link {
    width: 100%;
    text-align: center;
  }

  .category-question-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .category-question-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .category-question-action,
  .category-question-save-action,
  .category-question-saved-label {
    width: 100%;
    min-width: 0;
  }

  .category-question-save-form .step-link {
    width: 100%;
    text-align: center;
  }

  .category-select-list .category-select-option {
    padding: 0.82rem;
  }

  .category-select-content {
    grid-template-columns: 2.85rem minmax(0, 1fr);
    gap: 0.68rem;
  }

  .category-select-avatar {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 16px;
  }

  .category-select-avatar .category-outline-icon {
    width: 1.92rem;
    height: 1.92rem;
  }

  .category-select-checkbox {
    margin: 0;
  }

  .contact-checkin-panel {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .contact-checkin-card-side {
    align-items: center;
    text-align: center;
  }

  .saved-question-list .saved-question-option {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .saved-question-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.15rem 0.95rem;
  }

  .guess-grid {
    grid-template-columns: 1fr;
  }

  .category-rating-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .category-rating-grid .guess-option-card {
    min-height: 3.1rem;
    padding: 0.62rem 0.2rem;
    border-radius: 13px;
  }

  .category-rating-grid .guess-option-number {
    font-size: 1.08rem;
  }

  .category-rating-scale-labels {
    font-size: 0.74rem;
  }

  .satisfaction-scale {
    gap: 0.35rem;
  }

  .satisfaction-option-card {
    min-height: 4.2rem;
    padding: 0.6rem 0.25rem;
  }

  .satisfaction-number {
    font-size: 1.05rem;
  }

  .satisfaction-label {
    font-size: 0.68rem;
  }

  .invite-questionnaire-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .invite-questionnaire-figure img {
    width: min(8.5rem, 68vw);
  }

  .invite-questionnaire-bubble::before {
    top: -0.58rem;
    left: 50%;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid var(--cothera-line);
    border-left: 1px solid var(--cothera-line);
    transform: translateX(-50%) rotate(45deg);
  }

  .thread-conversation-shell {
    gap: 0.85rem;
    margin-top: 0.9rem;
  }

  .thread-conversation-chapter {
    border-radius: 24px;
    padding: 0.85rem;
  }

  .thread-chapter-header {
    gap: 0.7rem;
  }

  .thread-chapter-marker {
    width: 1.9rem;
    height: 1.9rem;
  }

  .thread-conversation-chapter .thread-protocol-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .thread-conversation-chapter .thread-protocol-figure img {
    width: min(7rem, 62vw);
  }

  .thread-paraphrasing-history-list::before {
    left: 1rem;
  }

  .thread-paraphrasing-history-row {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.55rem;
  }

  .thread-paraphrasing-timeline-dot {
    grid-column: 1;
  }

  .thread-paraphrasing-history-row.is-partner .thread-paraphrasing-history-body,
  .thread-paraphrasing-history-row.is-you .thread-paraphrasing-history-body {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
    flex-direction: row;
  }

  .thread-paraphrasing-avatar {
    display: none;
  }

  .thread-paraphrasing-history-label {
    gap: 0.4rem;
  }

  .thread-paraphrasing-history-row.is-you .thread-paraphrasing-history-card::before {
    right: auto;
    left: -0.39rem;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(47, 125, 76, 0.18);
    border-left: 1px solid rgba(47, 125, 76, 0.18);
  }

  .thread-clarification-exchange {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .thread-clarification-exchange::before {
    content: none;
  }

  .thread-clarification-entry,
  .thread-clarification-entry.is-partner,
  .thread-clarification-entry.is-you {
    flex-direction: row;
  }

  .thread-clarification-dot {
    display: none;
  }

  .thread-clarification-entry-body,
  .thread-clarification-entry.is-you .thread-clarification-entry-body {
    width: 100%;
    flex-direction: row;
  }

  .thread-clarification-entry.is-you .thread-dialogue-card::before {
    right: auto;
    left: -0.43rem;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(47, 125, 76, 0.18);
    border-left: 1px solid rgba(47, 125, 76, 0.18);
  }

  .thread-initial-exchange {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .thread-initial-exchange::before {
    content: none;
  }

  .thread-initial-entry,
  .thread-initial-entry.is-partner,
  .thread-initial-entry.is-you {
    flex-direction: row;
  }

  .thread-initial-dot {
    display: none;
  }

  .thread-initial-entry-body,
  .thread-initial-entry.is-you .thread-initial-entry-body {
    width: 100%;
    flex-direction: row;
  }

  .thread-initial-entry.is-you .thread-reveal-row::before {
    right: auto;
    left: -0.43rem;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(47, 125, 76, 0.18);
    border-left: 1px solid rgba(47, 125, 76, 0.18);
  }

  .dashboard-feature-card,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-feature-side {
    justify-items: center;
  }

  .dashboard-primary-action,
  .dashboard-secondary-action,
  .dashboard-open-pill,
  .dashboard-checkin-pill {
    width: 100%;
    justify-content: center;
  }

  .dashboard-primary-action {
    width: auto;
    min-width: min(15rem, 100%);
    padding: 0.78rem 1.1rem;
    font-size: 0.94rem;
  }

  .dashboard-secondary-action {
    width: auto;
    min-width: 9.25rem;
    margin-inline: auto;
    padding: 0.58rem 0.9rem;
    font-size: 0.9rem;
  }

  .dashboard-secondary-thread {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-secondary-side {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .dashboard-secondary-thread.contact-thread-card {
    position: relative;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-thread-side {
    width: 100%;
    min-width: 0;
    align-items: center;
  }

  .contact-thread-side .dashboard-secondary-action {
    max-width: min(18rem, 100%);
  }

  .contact-decline-notice {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .contact-decline-notice-link {
    width: 100%;
  }

  .contact-thread-side .dashboard-secondary-status {
    max-width: 100%;
    text-align: center;
  }

  .dashboard-contact-row {
    align-items: stretch;
    flex-direction: column;
    text-align: left;
  }

  .settings-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .settings-notifications-row {
    grid-template-columns: 1fr;
  }

  .settings-row-value {
    justify-self: center;
    text-align: center;
  }

  .settings-row-actions,
  .settings-inline-form {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
  }

  .settings-notifications-form > .btn {
    justify-self: stretch;
  }

  .settings-notification-events-header {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-notification-toggle {
    width: 100%;
  }

  .settings-password-form {
    justify-self: stretch;
    width: 100%;
  }

  .settings-avatar-form {
    justify-items: center;
    justify-self: stretch;
    width: 100%;
  }

  .settings-avatar-picker {
    text-align: center;
  }

  .settings-avatar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .settings-verification-form .btn,
  .settings-verification-form button,
  .settings-inline-form .btn,
  .settings-inline-form button,
  .settings-avatar-form .btn,
  .settings-avatar-form button,
  .settings-password-form .btn,
  .settings-password-form button {
    width: 100%;
  }

  .settings-password-form .password-toggle-button {
    width: auto;
    min-width: 3.4rem;
  }

  .contacts-notice,
  .contact-list-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contacts-notice {
    flex-direction: column;
    text-align: center;
  }

  .contacts-notice-actions,
  .contacts-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-list-heading,
  .contact-rename-control {
    justify-content: flex-start;
  }

  .contact-list-status-row {
    justify-content: flex-start;
  }

  .contact-list-side {
    justify-content: center;
  }

  .contact-list-side .dashboard-secondary-action {
    max-width: min(18rem, 100%);
  }

  .contact-rename-control {
    flex-direction: column;
    align-items: stretch;
  }

  .draft-next-options {
    grid-template-columns: 1fr;
  }

  .questionnaire-card-grid {
    grid-template-columns: 1fr;
  }

  .relationship-checkin-scale {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.24rem;
    width: 100%;
  }

  .relationship-checkin-scale label {
    display: grid;
    justify-items: center;
    min-width: 0;
  }

  .relationship-checkin-scale span {
    width: clamp(1.85rem, 9.2vw, 2.1rem);
    min-width: 0;
    height: clamp(1.85rem, 9.2vw, 2.1rem);
    font-size: 0.92rem;
  }

  .relationship-checkin-anchors {
    flex-direction: row;
    gap: 0.75rem;
  }

  .relationship-checkin-anchors span {
    flex: 1 1 0;
  }

  .relationship-checkin-anchors span:last-child {
    text-align: right;
  }

  .contacts-notice-actions .btn,
  .contacts-notice-actions button,
  .contacts-toolbar .btn,
  .contact-list-card .btn,
  .contacts-empty .btn,
  .draft-next-option .btn,
  .draft-next-form .btn,
  .draft-next-form button,
  .invite-empty-actions .btn,
  .invite-form-actions .btn,
  .invite-form-actions button,
  .invite-inline-form .btn,
  .invite-inline-form button {
    width: 100%;
  }

  .contacts-logout-link,
  .contacts-limit-pill {
    text-align: center;
  }
}
