:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --paper: #fff;
  --ink: #182924;
  --muted: #67766f;
  --line: #dce3dc;
  --green: #087c5a;
  --green-dark: #065e46;
  --tint: #e8f3eb;
  --red: #ac3737;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  overflow-wrap: normal;
  -webkit-user-select: none;
  user-select: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  transition:
    background-color 140ms ease,
    color 140ms ease,
    transform 160ms var(--ease-out);
}
button:active:not(:disabled) {
  transform: scale(0.97);
}
button.is-loading {
  position: relative;
  opacity: 1;
}
.button-content {
  display: inline-flex;
  align-items: center;
  gap: inherit;
}
.is-loading .button-content {
  visibility: hidden;
}
.is-loading .button-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
}
.primary .button-spinner {
  border-color: #ffffff55;
  border-top-color: white;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.topic-search-controls select:focus-visible,
summary:focus-visible {
  outline: 3px solid #71b7a0;
  outline-offset: 4px;
}
input,
textarea {
  font-size: 16px;
}
textarea {
  resize: vertical;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 16px;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: #849087;
}
button {
  border: 0;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 550;
  letter-spacing: -1.8px;
  line-height: 1.15;
  text-wrap: balance;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  font-weight: 550;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.35px;
  font-weight: 550;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.app-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(28px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 17px;
}
.brand strong {
  font-size: 24px;
  letter-spacing: -1px;
}
.brand-mark {
  width: 24px;
  height: 24px;
  background: linear-gradient(
    135deg,
    #75bba6 0 47%,
    transparent 48% 52%,
    #147958 53%
  );
  border-radius: 2px;
}
.brand-divider {
  height: 20px;
  width: 1px;
  background: #becbc3;
  margin: 0 3px;
}
.account {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.account-name {
  min-width: 0;
  line-height: 1.4;
}
.account .quiet {
  flex-shrink: 0;
}
nav {
  display: flex;
  gap: 6px;
}
nav button {
  background: none;
  color: var(--muted);
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 14px;
}
nav button[aria-current="page"] {
  background: #e4ebe3;
  color: var(--ink);
  font-weight: 600;
}
main {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 60px 0 100px;
  outline: none;
}
main.narrow {
  max-width: 760px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.page-head p:not(.eyebrow) {
  margin-top: 13px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.primary,
.secondary,
.quiet,
.danger {
  min-height: 46px;
  padding: 12px 21px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: normal;
  flex-shrink: 0;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: white;
}
.secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
}
.danger {
  background: #f9e9e7;
  color: var(--red);
}
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 23px;
  flex-shrink: 0;
}
.manual-topic {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 44px;
}
.manual-topic textarea {
  border: 0 !important;
  background: transparent !important;
  padding: 14px !important;
  min-width: 0;
  resize: none;
  overflow-y: hidden;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 19px;
}
.topics-heading {
  flex-wrap: wrap;
}
.topic-search-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topic-search-controls select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 44px 12px 21px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2367766f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  line-height: 20px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease;
}
.topic-search-controls select:disabled {
  cursor: wait;
  opacity: 0.55;
}
.topic-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 18px;
}
.new-topics-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  cursor: pointer;
}
.new-topics-filter input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}
.segments.topic-filters {
  max-width: 100%;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}
.segments.topic-filters span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
}
@media (max-width: 380px) {
  .segments.topic-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.topic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 285px;
}
.topic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.topic-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.topic-new {
  background: #e6edff;
  color: #315fa1;
}
.topic-card h3 {
  line-height: 1.35;
}
.topic-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.topic-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.source {
  color: var(--muted);
  font-size: 12px;
  max-width: 65%;
  overflow-wrap: anywhere;
}
.arrow-button {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green);
  font-size: 20px;
}
.topic-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.topic-actions .arrow-button,
.remove-topic {
  width: 44px;
  height: 44px;
}
.remove-topic {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fce8e6;
  color: #b42318;
}
.remove-topic svg {
  width: 20px;
  height: 20px;
}
.empty {
  border: 1px dashed #c7d3c9;
  border-radius: 16px;
  padding: 42px 28px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  font-size: 15px;
}
.empty h2 {
  color: var(--ink);
  margin-bottom: 10px;
}
.list {
  border-top: 1px solid var(--line);
}
.interview-sort {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}
.row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.decline-link {
  font-size: 13px;
}
.list-row {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-main h3 {
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.row-main p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 6px;
  background: #e9ede7;
  color: #5a6a5f;
  white-space: nowrap;
}
.badge.green {
  background: #e0efe5;
  color: #26714c;
}
.badge.amber {
  background: #f1ebdb;
  color: #826a32;
}
.campaign-progress,
.campaign-article-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.campaign-article-state {
  margin-top: 6px;
}
.campaign-progress .badge,
.campaign-article-state .campaign-article-link {
  white-space: normal;
  font-size: 12px;
  line-height: 1.5;
}
.campaign-article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back {
  display: inline-flex;
  background: none;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  padding: 0;
  margin-bottom: 30px;
  min-height: 30px;
}
.step-label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.step-label span {
  color: var(--green);
}
.topic-input {
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 550;
  letter-spacing: -1px;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 8px 0 20px !important;
  min-height: 100px;
  margin-bottom: 24px;
}
.topic-input,
.question-row textarea {
  resize: none;
  overflow-y: hidden;
}
.generator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 20px;
}
.segments {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eaf0e8;
}
.segments label {
  position: relative;
  cursor: pointer;
}
.segments input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.segments span {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 7px;
}
.segments input:checked + span {
  background: white;
  box-shadow: 0 1px 4px #2038290c;
}
.segments input:focus-visible + span {
  outline: 3px solid #71b7a0;
}
.interview-setup .topic-input { margin-bottom: 12px; }
.depth-settings { margin: 16px 0 30px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 3px 16px #18292404; }
.depth-tabs { min-width: 0; margin: 0; padding: 0; border: 0; }
.depth-tabs legend { padding: 0; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.depth-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.depth-option { position: relative; min-width: 0; cursor: pointer; }
.depth-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.depth-option-content { position: relative; display: flex; flex-direction: column; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fafbf9; }
.depth-option-content::before { content: ""; position: absolute; top: 21px; right: 18px; box-sizing: border-box; width: 18px; height: 18px; border: 1.5px solid #aebbb3; border-radius: 50%; background: white; }
.depth-option-content strong { padding-right: 26px; font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.depth-option-description { display: block; margin: 8px 0 18px; font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--muted); }
.depth-status { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 11px; font-weight: 500; color: var(--muted); }
.depth-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #b2bdb6; }
.depth-status.is-ready { color: var(--green); }
.depth-status.is-ready::before { background: currentColor; }
.depth-option input:checked + .depth-option-content { border-color: var(--green); background: #f0f7f2; box-shadow: 0 0 0 1px var(--green); }
.depth-option input:checked + .depth-option-content::before { border: 5px solid var(--green); }
.depth-option input:focus-visible + .depth-option-content { outline: 3px solid #71b7a0; outline-offset: 4px; }
.depth-generator { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e8ede7; }
.depth-count { min-width: 0; }
.depth-count label { margin-bottom: 9px; font-size: 12px; color: var(--muted); font-weight: 500; }
.depth-count-control { display: flex; align-items: center; gap: 12px; }
.depth-select { position: relative; display: inline-flex; flex-shrink: 0; }
.depth-select::after { content: ""; position: absolute; right: 16px; top: 19px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.depth-generator select { appearance: none; -webkit-appearance: none; width: 92px; height: 48px; padding: 0 36px 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; cursor: pointer; }
.depth-generator select:focus-visible, .recipient-depth select:focus-visible { outline: 3px solid #71b7a0; outline-offset: 3px; }
.depth-count-note { font-size: 12px; line-height: 1.4; color: var(--muted); }
.depth-generator .primary { min-height: 48px; }
.depth-hint { margin-top: 18px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.question-empty { display: flex; align-items: center; gap: 15px; padding: 8px 0; }
.question-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 12px; color: #6a8c7b; background: #eef2ec; }
.question-empty-icon svg { width: 23px; height: 23px; }
.question-empty h2 { font-size: 16px; letter-spacing: -0.2px; }
.question-empty p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.interview-setup .bottom-actions.is-empty { border-top: 0; margin-top: 16px; padding-top: 0; }
.recipient-depth select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: inherit; font: inherit; }
.recipient-depth { display: flex; flex-direction: column; gap: 6px; flex: 0 0 225px; padding: 12px 0; min-width: 0; }
.recipient-depth label, .recipient-depth small { font-size: 12px; color: var(--muted); }
.recipient-depth select { max-width: 100%; font-size: 13px; }
.match-evidence { font-style: italic; }
@media (max-width: 600px) {
  .depth-settings { padding: 18px; border-radius: 16px; }
  .depth-options { grid-template-columns: 1fr; gap: 10px; }
  .depth-option-content { padding: 15px 16px; }
  .depth-option-content::before { top: 18px; right: 16px; }
  .depth-option-content strong { font-size: 16px; }
  .depth-option-description { margin: 6px 0 12px; }
  .depth-generator { align-items: stretch; flex-direction: column; }
  .depth-count-control { justify-content: space-between; }
  .depth-count-note { text-align: right; }
  .depth-hint { font-size: 12px; }
  .question-empty { align-items: flex-start; }
  .question-empty-icon { width: 38px; height: 38px; }
  .recipient-row .recipient-depth { flex-basis: calc(100% - 31px); margin-left: 31px; padding: 4px 0 8px; }
}
@media (hover: hover) and (pointer: fine) {
  .depth-option:hover .depth-option-content { border-color: #8cab9c; }
  .depth-option:hover input:checked + .depth-option-content { border-color: var(--green); }
}
.question-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: question;
}
.question-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.question-number {
  padding-top: 18px;
  min-width: 20px;
  color: #799383;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.question-row textarea {
  min-width: 0;
  min-height: 56px;
  line-height: 1.6;
}
.question-row .icon-button {
  margin-top: 10px;
}
.bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.selection-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 20px;
  margin-top: 14px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  cursor: pointer;
  line-height: 1.4;
}
.check-row + .check-row {
  border-top: 1px solid #edf0ec;
}
.check-row input {
  accent-color: var(--green);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.check-row span {
  min-width: 0;
}
.check-row small {
  color: var(--muted);
  margin-left: auto;
  font-weight: 400;
}
.recipient-section {
  margin-top: 30px;
}
.recipient-section h2 {
  font-size: 17px;
}
.recipient-section h2 .muted { margin-left: 5px; }
.recipient-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.directory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 54px;
}
.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  margin-bottom: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.profile-card > div { flex: 1; min-width: 0; }
.profile-card h2 { font-size: 18px; margin-bottom: 10px; }
.profile-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  line-height: 1.6;
  max-height: 190px;
  overflow: auto;
}
.profile-card button { flex-shrink: 0; }
.selection-description { margin: 18px 0 24px; color: var(--muted); line-height: 1.6; }
.selection-warning { margin: 18px 0; padding: 14px 16px; border-radius: 10px; background: #fff4db; color: #715420; line-height: 1.55; font-size: 14px; }
.recipient-row { display: flex; align-items: flex-start; gap: 14px; }
.recipient-row + .recipient-row { border-top: 1px solid #edf0ec; }
.recipient-row .check-row { flex: 1; align-items: flex-start; min-width: 0; }
.recipient-row .check-row input { margin-top: 3px; }
.recipient-row strong { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.recipient-row .check-row small { display: block; margin: 5px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.recipient-row > button { flex-shrink: 0; margin-top: 8px; }
.selection-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.selection-save-status { font-size: 12px; color: var(--muted); margin-top: 6px; }
#profile-resume { margin-top: 14px; min-height: 200px; max-height: 50vh; overflow: auto; }
.profile-limit { color: var(--muted); font-size: 12px; text-align: right; margin-top: 6px; }
.profile-current { margin: 16px 0; }
.profile-current p { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 14px; line-height: 1.6; }
.person-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #e5ede4;
  color: #4f705a;
  border-radius: 50%;
  font-size: 15px;
}
.directory-grid .list-row {
  padding: 18px 0;
  gap: 14px;
}
.directory-grid h3 {
  font-size: 15px;
}
.directory-grid .quiet {
  font-size: 12px;
  padding: 8px;
}
.delete-account-link,
.delete-group-link {
  color: var(--red);
}
.recipient-count {
  font-size: 13px;
  color: var(--muted);
}
.busy-line {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tint);
  border-radius: 12px;
  padding: 18px;
  color: var(--green-dark);
  font-size: 14px;
  margin-bottom: 24px;
}
.activity {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(600px, calc(100% - 32px));
  margin: 0;
  padding: 16px 20px;
  border: 1px solid #c7ddce;
  box-shadow: 0 8px 32px #122c201a;
  line-height: 1.45;
  pointer-events: none;
}
.activity-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.spinner {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2px solid #a7cfb7;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  padding: 80px 0;
}
.notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 15px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 40px #122c2018;
  font-size: 14px;
  line-height: 1.5;
}
.notice.error {
  border-color: #eac4bc;
  color: #973828;
}
.activity,
.notice {
  opacity: 1;
  transform: translate(-50%, 0);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    display 180ms allow-discrete;
}
.activity[hidden],
.notice[hidden] {
  display: none;
  opacity: 0;
  transform: translate(-50%, 8px);
}
@starting-style {
  .activity:not([hidden]),
  .notice:not([hidden]) {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}
.interview-top {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 26px;
}
.interview-top p {
  font-size: 12px;
  color: var(--muted);
}
progress {
  width: 150px;
  height: 5px;
  appearance: none;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #dce7dd;
}
progress::-webkit-progress-bar {
  background: #dce7dd;
}
progress::-webkit-progress-value {
  background: var(--green);
}
progress::-moz-progress-bar {
  background: var(--green);
}
.question-panel {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 26px;
}
.question-panel .eyebrow {
  color: var(--green);
  margin-bottom: 15px;
}
.question-panel h2 {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  text-wrap: pretty;
}
.answer-form {
  margin-top: 24px;
}
.answer-form textarea {
  min-height: 170px;
  padding: 20px;
  line-height: 1.7;
}
.answer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.voice-button {
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
}
.voice-button svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.voice-button.recording {
  color: var(--red);
}
.voice-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.article {
  padding: 44px 50px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.article h1 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 25px;
}
.article .lead {
  font-size: 19px;
  line-height: 1.7;
  color: #52665a;
  margin-bottom: 30px;
}
.article h2 {
  font-size: 23px;
  margin: 30px 0 15px;
  line-height: 1.35;
}
.article p:not(.lead) {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 18px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.article-footer {
  flex-wrap: wrap;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.restart-link { margin-top: 18px; }
.saved-answer {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.saved-answer summary {
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.saved-answer p {
  margin: 16px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#edit-answer-form label { line-height: 1.5; }
#edited-answer {
  resize: none;
  overflow-y: hidden;
  min-height: 150px;
}
#edit-answer-form .modal-description { margin-top: 12px; }
.success-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 14px;
  margin-bottom: 24px;
}
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.article-toolbar .success-label {
  margin-bottom: 0;
  min-width: 0;
}
.success-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-label {
  margin-bottom: 24px;
}
.review-label h1 {
  font-size: 30px;
}
.review-label p {
  margin-top: 10px;
}
.read-questions {
  margin: 25px 0;
  padding-left: 24px;
}
.read-questions li {
  padding: 10px 0;
  line-height: 1.6;
}
.minor-space {
  margin-top: 40px;
}
dialog {
  --dialog-time: 180ms;
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  max-height: 85dvh;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 100px #122c2020;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity var(--dialog-time) var(--ease-out),
    transform var(--dialog-time) var(--ease-out),
    overlay var(--dialog-time) allow-discrete,
    display var(--dialog-time) allow-discrete;
}
dialog[open] {
  --dialog-time: 220ms;
  opacity: 1;
  transform: scale(1);
}
dialog::backdrop {
  --dialog-time: 180ms;
  background: #10271b55;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition:
    opacity var(--dialog-time) var(--ease-out),
    overlay var(--dialog-time) allow-discrete,
    display var(--dialog-time) allow-discrete;
}
dialog[open]::backdrop {
  --dialog-time: 220ms;
  opacity: 1;
}
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.96);
  }
  dialog[open]::backdrop {
    opacity: 0;
  }
}
body:has(dialog[open]) .activity {
  opacity: 0;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.modal-head h2 {
  font-size: 23px;
}
.modal-form > label {
  margin-bottom: 9px;
}
.login-page {
  max-width: 460px;
  padding-top: clamp(40px, 10vh, 100px);
}
.login-card h1 {
  font-size: clamp(28px, 6vw, 36px);
  margin-bottom: 12px;
}
.login-description {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.login-options {
  display: grid;
  gap: 16px;
}
.login-option {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.login-option strong {
  font-size: 20px;
}
.login-option span {
  color: var(--muted);
  line-height: 1.5;
}
.login-option:focus-visible {
  outline: 3px solid #71b7a0;
  outline-offset: 4px;
}
.login-switch {
  margin-top: 24px;
  text-align: center;
}
.login-switch a {
  display: inline-block;
  padding: 12px 4px;
}
.account-form {
  display: grid;
  gap: 20px;
}
.account-form label {
  margin-bottom: 8px;
}
.account-form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.account-form select:focus-visible {
  outline: 3px solid #71b7a0;
  outline-offset: 4px;
}
.account-form .modal-actions,
.account-form .modal-error {
  margin-top: 0;
}
.account-form .modal-error:empty {
  display: none;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.modal-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.invite-link {
  font-size: 16px !important;
  resize: none;
  overflow-y: hidden;
}
.modal-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.5;
}
.group-members {
  margin-top: 16px;
  max-height: 260px;
  overflow: auto;
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -80px;
  padding: 12px;
  background: white;
  z-index: 50;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.inline-error {
  background: #fff1ec;
  border: 1px solid #efd3c7;
  padding: 16px 20px;
  border-radius: 12px;
  color: #9b4632;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.auto-save {
  font-size: 12px;
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .primary:hover {
    background: var(--green-dark);
  }
  .secondary:hover {
    background: #edf3eb;
  }
  .topic-search-controls select:hover:not(:disabled) {
    background-color: #edf3eb;
  }
  .quiet:hover,
  .icon-button:hover,
  nav button:hover {
    background: #e6ede4;
    color: var(--ink);
  }
  .topic-card:hover {
    border-color: #b6cebd;
  }
  .arrow-button:hover {
    background: #d3e7d9;
  }
  .remove-topic:hover {
    background: #f9d4d0;
  }
}
@media (max-width: 900px) {
  .app-header {
    padding: 16px max(24px, env(safe-area-inset-left)) 16px max(24px, env(safe-area-inset-right));
    gap: 14px;
  }
  .account {
    max-width: 160px;
  }
  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .directory-grid {
    gap: 30px;
  }
  .brand-divider,
  .brand > span:last-child {
    display: none;
  }
  main {
    padding-top: 40px;
  }
}
@media (max-width: 600px) {
  .profile-card { flex-direction: column; padding: 20px; gap: 16px; }
  .recipient-row { flex-wrap: wrap; gap: 0; padding-bottom: 8px; }
  .recipient-row .check-row { flex-basis: 100%; padding-bottom: 4px; }
  .recipient-row > button { margin: 0 0 0 31px; font-size: 13px; }
  .selection-actions { width: 100%; justify-content: stretch; }
  .selection-actions button { flex: 1; }
  #profile-resume { font-size: 16px; }
  .topic-search-controls select {
    font-size: 16px;
  }
  .app-header {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 16px max(20px, env(safe-area-inset-left));
    gap: 16px;
  }
  .brand {
    gap: 8px;
  }
  .brand strong {
    font-size: 22px;
  }
  .brand-mark {
    width: 22px;
    height: 22px;
  }
  .account {
    margin-left: auto;
    font-size: 12px;
    flex: 1;
    max-width: none;
    justify-content: flex-end;
  }
  .account .quiet {
    font-size: 12px;
    min-height: 36px;
    padding: 6px;
  }
  nav {
    order: 3;
    width: 100%;
    gap: 4px;
  }
  nav:empty {
    display: none;
  }
  nav button {
    flex: 1;
    padding: 11px 8px;
  }
  main {
    width: auto;
    margin-left: max(20px, env(safe-area-inset-left));
    margin-right: max(20px, env(safe-area-inset-right));
    padding: 32px 0 max(55px, env(safe-area-inset-bottom));
  }
  h1 {
    font-size: clamp(26px, 7vw, 30px);
    letter-spacing: -1.1px;
  }
  .page-head {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
  }
  .page-head .primary {
    font-size: 12px;
    padding: 12px;
  }
  .topics-grid {
    grid-template-columns: 1fr;
  }
  .topic-card {
    min-height: 235px;
    padding: 23px;
  }
  .manual-topic {
    margin-bottom: 32px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .manual-topic .primary {
    padding: 13px;
    min-width: 44px;
    align-self: flex-end;
  }
  .manual-topic textarea {
    font-size: 16px;
  }
  .directory-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .check-row {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    gap: 6px 12px;
    align-items: start;
  }
  .check-row input {
    margin-top: 2px;
  }
  .check-row small {
    grid-column: 2;
    margin-left: 0;
  }
  .list-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .list-row .row-main {
    min-width: 55%;
  }
  .list-row > .primary,
  .list-row > .secondary {
    font-size: 12px;
    min-height: 40px;
    padding: 9px 12px;
  }
  .row-main h3 {
    font-size: 16px;
  }
  .badge {
    font-size: 10px;
  }
  .generator {
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .segments span {
    padding: 10px 12px;
  }
  .generator .primary {
    flex: 1;
    padding: 12px;
  }
  .topic-input {
    min-height: 115px;
  }
  .question-row {
    gap: 8px;
  }
  .question-row .icon-button {
    width: 28px;
  }
  .question-row textarea {
    padding: 13px;
  }
  .bottom-actions {
    gap: 10px;
    flex-wrap: wrap;
  }
  .bottom-actions .primary,
  .bottom-actions .secondary {
    padding: 12px 14px;
    font-size: 13px;
    flex: 1 1 160px;
  }
  .recipient-count {
    flex: 1 1 100%;
  }
  .answer-actions {
    flex-wrap: wrap;
  }
  .answer-actions > button {
    flex: 1 1 130px;
  }
  .voice-button {
    justify-content: center;
  }
  .modal-actions > button {
    flex: 1 1 150px;
  }
  dialog {
    padding: 24px 20px;
  }
  .question-panel {
    padding: 25px 22px;
    margin-top: 20px;
  }
  .question-panel h2 {
    font-size: 22px;
  }
  .answer-form textarea {
    min-height: 180px;
  }
  .interview-top {
    margin: 18px 0;
    gap: 14px;
  }
  progress {
    width: 100px;
  }
  .article {
    padding: 27px 23px;
  }
  .article h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
  }
  .article .lead {
    font-size: 17px;
  }
  .article p:not(.lead) {
    font-size: 16px;
  }
  .article-footer {
    flex-direction: column-reverse;
  }
  .article-footer button {
    width: 100%;
  }
  .question-panel .eyebrow {
    font-size: 10px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .recipient-toolbar {
    align-items: flex-start;
  }
  .recipient-toolbar .quiet {
    font-size: 12px;
    padding: 5px;
    min-height: 32px;
  }
  .notice {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  .step-label {
    font-size: 11px;
  }
  .back {
    margin-bottom: 22px;
  }
}
/* Keyboard actions respond immediately; loading indicators still show work. */
html[data-input="keyboard"] :is(button, dialog, .activity, .notice),
html[data-input="keyboard"] dialog::backdrop {
  transition: none;
}
html[data-input="keyboard"] button:active:not(:disabled) {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  button:active:not(:disabled) {
    transform: none;
  }
  dialog,
  dialog[open] {
    transform: none;
  }
  .activity,
  .notice,
  .activity[hidden],
  .notice[hidden] {
    transform: translateX(-50%);
  }
  .activity,
  .notice,
  dialog,
  dialog::backdrop {
    transition: opacity 120ms ease, display 120ms allow-discrete, overlay 120ms allow-discrete !important;
  }
  .spinner {
    animation: waiting-pulse 1.2s ease-in-out infinite !important;
  }
  html[data-input="keyboard"] :is(dialog, .activity, .notice),
  html[data-input="keyboard"] dialog::backdrop {
    transition: none !important;
  }
  @keyframes waiting-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }
}
.collective-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid #dce5df;
  border-radius: 16px;
  background: #edf4ee;
}
.collective-card h2 { margin-bottom: 8px; }
.collective-card p { color: #586b62; line-height: 1.6; }
.collective-card button { flex-shrink: 0; }
.collective-count { margin: 16px 0 24px; color: #586b62; }
.collective-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.collective-article section { margin: 28px 0; }
.collective-article textarea { width: 100%; min-height: 56px; margin: 8px 0 16px; }
.collective-article label { font-size: 14px; color: #586b62; }
.collective-sources { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.collective-sources summary { color: #087f5b; cursor: pointer; }
.collective-sources > div { margin-top: 16px; padding: 16px; background: #f0f4f0; border-radius: 10px; }
.collective-sources p { font-size: 14px; margin: 8px 0; }
.collective-sources blockquote { white-space: pre-wrap; margin: 8px 0 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .collective-card { align-items: stretch; flex-direction: column; padding: 20px; }
  .collective-actions { width: 100%; }
  .collective-actions button { flex: 1; }
}
/* Interview checks reuse the existing paper-like article layout. */
.review-panel { margin: 24px 0; padding: 24px; border: 1px solid #d9dfdc; border-radius: 16px; background: #f8faf9; overflow-wrap: anywhere; }
.review-panel h2 { margin: 0 0 12px; }
.review-panel h3 { margin: 24px 0 12px; }
.review-panel p { margin: 10px 0; line-height: 1.6; }
.fact-answer { margin-top: 16px; border-top: 1px solid #d9dfdc; padding-top: 16px; }
.fact-answer summary { cursor: pointer; font-weight: 600; line-height: 1.5; }
.review-finding { margin: 16px 0; padding-left: 16px; border-left: 3px solid #c9d5ce; }
.review-finding blockquote { margin: 10px 0; white-space: pre-wrap; line-height: 1.6; }
.review-status { font-size: 14px; font-weight: 600; color: #286147; }
.review-status.needs-attention { color: #86500e; }
.source-evidence { color: #526358; font-size: 14px; }
.match-score { display: inline-block; margin-left: 8px; color: #286147; font-variant-numeric: tabular-nums; }
.match-evidence { font-style: italic; }
@media (max-width: 600px) { .review-panel { padding: 16px; } }

/* Saving and recovery stay close to the content they describe. */
[hidden] { display: none !important; }
.draft-save-bar, .list-tools, .block-actions, .voice-recovery {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.draft-save-bar { margin: 8px 0 24px; color: var(--muted, #687a73); font-size: 14px; }
.draft-save-bar p { margin: 0; }
.draft-save-bar button { font-size: 14px; }
.draft-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.draft-comparison section { min-width: 0; padding: 16px; border: 1px solid var(--line, #dce4df); border-radius: 12px; }
.draft-comparison li { margin-top: 8px; overflow-wrap: anywhere; }
.list-tools { justify-content: space-between; margin-bottom: 20px; }
.list-search { display: block; flex: 1; min-width: 180px; max-width: 480px; margin: 8px 0 20px; }
.list-search input { width: 100%; box-sizing: border-box; min-height: 44px; }
.list-tools .list-search { margin: 0; }
.block-actions { margin: 12px 0; }
.block-actions button { font-size: 14px; min-height: 40px; }
.profile-collapsed { display: block; }
.profile-collapsed summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.profile-collapsed p { white-space: pre-wrap; margin: 20px 0; }
.question-panel { scroll-margin-top: 24px; }
.question-panel:focus { outline: none; }
.question-panel:focus-visible { outline: 2px solid var(--green, #078363); outline-offset: 6px; }
.login-help { color: var(--muted, #687a73); font-size: 14px; line-height: 1.6; margin-top: 24px; }
.publish-summary { max-height: 220px; overflow: auto; padding-left: 24px; }
.publish-summary li { margin: 6px 0; }
#article-edit-form textarea, #access-message, .draft-comparison textarea { width: 100%; box-sizing: border-box; }
#article-edit-form textarea[data-article-field="body"] { min-height: 160px; }
.voice-recovery { margin-bottom: 12px; }
.inline-error .secondary { margin: 10px 0 0 12px; }
@media (max-width: 600px) {
  .draft-comparison { grid-template-columns: 1fr; }
  .list-tools { align-items: stretch; }
  .list-tools .list-search { min-width: 100%; }
  .block-actions, .voice-recovery { gap: 8px; }
  .block-actions button { flex: 1 1 auto; }
  .draft-save-bar { align-items: flex-start; }
  .draft-save-bar p { flex-basis: 100%; }
  .question-panel { scroll-margin-top: 16px; }
}

/* Compact editorial lists and participant selection. */
.interviews-toolbar { display: flex; align-items: center; gap: 16px; margin: 24px 0; flex-wrap: wrap; }
.interviews-toolbar .list-search { flex: 1 1 280px; max-width: none; margin: 0; }
.interviews-toolbar .interview-sort { margin: 0; gap: 8px; }
.interviews-toolbar .interview-sort label { display: none; }
.interview-filters { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #edf1ec; }
.interview-filters button { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 15px; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; }
.interview-filters button span { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; }
.interview-filters button[aria-pressed="true"] { background: white; color: var(--green-dark); box-shadow: 0 1px 4px #193b2810; }
.interview-cards { display: grid; gap: 12px; }
.interview-card.list-row { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); gap: 24px; }
.interview-card .row-main h3 { margin-top: 10px; font-size: 18px; line-height: 1.4; }
.interview-card .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.card-meta .badge { padding: 4px 9px; }
.interview-card .card-facts { margin-top: 10px; }
.card-facts > span { margin: 0 5px; }
.interview-card .row-actions { flex-shrink: 0; }
.interview-card .campaign-article-state { margin-top: 12px; }
.campaign-article-link { min-height: 36px; text-decoration: none; }
.compact-details { margin-top: 12px; font-size: 13px; color: var(--muted); }
.compact-details summary { cursor: pointer; width: fit-content; min-height: 30px; display: list-item; padding: 5px 0; color: var(--green-dark); }
.compact-details summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.disclosure-body { padding: 8px 0 4px; line-height: 1.6; overflow-wrap: anywhere; }
.recipient-head h1 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.recipient-head > p { max-width: 680px; color: var(--muted); line-height: 1.5; font-size: 16px; }
.setup-context { display: inline-flex; align-items: center; gap: 9px; background: var(--tint); color: var(--green-dark); border-radius: 8px; padding: 7px 11px; font-size: 13px; margin-top: 16px; }
.recipient-tools { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.recipient-tools .list-search { max-width: none; margin: 18px 0 0; }
.recipient-tools .list-search input { background: #f8faf7; }
.picker-hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 12px; }
.recipient-toolbar .spinner { width: 15px; height: 15px; flex-shrink: 0; }
.recipient-toolbar .secondary { display: inline-flex; align-items: center; gap: 9px; }
.recipient-section { margin-top: 24px; }
.recipient-section h2 { font-size: 14px; font-weight: 550; }
.recipient-section h2 .muted { display: inline-block; font-size: 12px; padding: 3px 7px; background: #e9ede7; border-radius: 5px; margin-left: 8px; }
.recipient-section .selection-box { padding: 0 16px; margin-top: 10px; overflow: hidden; }
.recipient-row { gap: 12px; align-items: center; padding: 0 8px; margin: 0 -8px; border-radius: 8px; transition: background-color 160ms ease; }
.recipient-row:has(input:checked) { background: #eef7f1; }
.recipient-person { min-width: 0; flex: 1; }
.recipient-person .check-row { align-items: center; gap: 12px; padding: 15px 0; }
.recipient-person .check-row input { margin: 0; }
.recipient-row > button { margin: 0; font-size: 13px; padding: 12px 8px; }
.person-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; background: #e8eeea; color: #537566; font-size: 11px; font-weight: 600; }
.recipient-row:has(input:checked) .person-avatar { background: #d8ecdf; color: var(--green-dark); }
.match-details { margin: -5px 0 12px 31px; }
.match-details .disclosure-body p { margin: 0; }
.match-details .match-evidence { margin-top: 8px !important; font-size: 12px; }
.recipient-bottom { position: sticky; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 12; padding: 18px 22px; margin-top: 28px; border: 1px solid #d0e1d5; border-radius: 16px; background: #fcfefa; box-shadow: 0 6px 28px #12382812; }
.recipient-bottom .recipient-count { font-size: 15px; }
.recipient-bottom .selection-save-status { margin-top: 5px; }
.topic-card { transition: transform 200ms var(--ease-out), border-color 160ms ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-input="keyboard"]) .topic-card:hover { transform: translateY(-2px); }
  .interview-filters button:hover { color: var(--ink); }
  .recipient-row:hover { background: #f1f6ef; }
  .recipient-row:has(input:checked):hover { background: #e8f3ec; }
}
@media (max-width: 600px) {
  .interviews-toolbar { gap: 10px; }
  .interviews-toolbar .list-search { flex-basis: 100%; }
  .interviews-toolbar .interview-sort { flex: 1; min-width: 0; }
  .interviews-toolbar select { width: 100%; max-width: 100%; }
  .interview-filters { width: 100%; gap: 2px; }
  .interview-filters button { flex: 1 1 auto; justify-content: center; padding: 9px 10px; font-size: 13px; }
  .interview-card.list-row { padding: 18px; gap: 16px; }
  .interview-card .row-main { flex-basis: 100%; }
  .interview-card .row-main h3 { font-size: 17px; }
  .recipient-tools { padding: 16px; }
  .recipient-section .selection-box { padding: 0 12px; }
  .recipient-row { flex-wrap: nowrap; gap: 8px; padding-bottom: 0; }
  .recipient-row > button { margin: 0; padding: 12px 5px; }
  .recipient-person .check-row { flex-basis: auto; padding: 16px 0; }
  .recipient-person .person-avatar { display: none; }
  .recipient-row strong { font-size: 14px; }
  .recipient-bottom { padding: 14px 16px; bottom: max(8px, env(safe-area-inset-bottom)); gap: 12px; }
  .recipient-bottom .selection-actions { width: auto; }
}
@media (max-width: 380px) {
  .recipient-bottom .selection-actions { width: 100%; }
}

/* Editorial workspace */
.app-header {
  background: var(--paper);
  min-height: 72px;
}
#navigation button { min-height: 44px; }
#navigation button[aria-current="page"] {
  color: var(--green-dark);
  background: transparent;
}
.topic-workbench {
  --workbench: #103e33;
  background: var(--workbench);
  color: white;
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 4vw, 52px);
  margin-bottom: 40px;
}
.topic-workbench h1 { max-width: 13ch; line-height: 1.08; }
.topic-workbench p {
  color: #d3e5dc;
  max-width: 38ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
}
.topic-workbench .manual-topic {
  display: grid;
  gap: 8px;
  align-items: stretch;
  padding: 0;
  border: none;
  background: transparent;
  margin: 0;
}
.topic-entry {
  background: var(--paper);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.topic-entry .primary { padding-inline: 16px; }
.topic-workbench :focus-visible { outline-color: #9ce2c8; }
.topic-workbench textarea:focus-visible { outline: 2px solid var(--green-dark); outline-offset: -2px; }
.topic-entry textarea { color: var(--ink); }
.topic-actions .arrow-button {
  width: auto;
  padding-inline: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  color: var(--green-dark);
}
.topic-footer { flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.topic-footer .source { max-width: 100%; }
.topic-actions { margin-left: auto; }
.topic-actions .remove-topic { background: transparent; color: var(--muted); }
@media (hover: hover) {
  .topic-actions .remove-topic:hover { background: #fce8e6; color: var(--red); }
}
.interview-browser {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(16px, 2.4vw, 32px);
}
.interview-tools {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(9rem, .5fr) minmax(14rem, .7fr);
  gap: 16px;
  align-items: end;
}
.list-options-toggle { display: none; }
#interview-options { display: contents; }
.interview-tools label { min-width: 0; line-height: 1.4; }
.interview-tools input[type="search"], .interview-tools select {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #83968e;
  padding-block: 8px;
}
.interview-tools select { padding-left: 12px; }
.interview-tools input::placeholder, .topic-entry textarea::placeholder { color: #5d6e65; }
.interview-tools :focus-visible { outline-color: var(--green-dark); }
#interview-count { margin-block: 20px 10px; font-size: 13px; color: var(--muted); }
#interview-results .list-row:last-child { border-bottom: none; padding-bottom: 4px; }
#interview-results .badge { font-size: 12px; }
.list-no-results { padding: 32px 12px 12px; text-align: center; }
.list-no-results p { font-weight: 600; margin-bottom: 14px; }
.participant-profile { margin: 24px 0 0; }
@media (max-width: 780px) {
  .topic-workbench { grid-template-columns: 1fr; gap: 24px; }
  .topic-workbench h1, .topic-workbench p { max-width: none; }
  .interview-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interview-tools > label { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .topic-workbench { padding: 22px; border-radius: 14px; margin-bottom: 28px; }
  .topic-entry { flex-direction: column; align-items: stretch; }
  .topic-entry .primary { align-self: stretch; }
  .interview-tools { gap: 10px; }
  #interview-results .list-row { align-items: flex-start; gap: 10px; padding: 18px 0; }
  #interview-results .row-main { flex-basis: 100%; }
  #interview-results .row-actions { flex-basis: 100%; }
  #interview-results .list-row > button { margin-left: auto; min-height: 44px; }
  #interview-results .row-actions button { min-height: 44px; }
}
@media (max-width: 600px) {
  .interview-tools { grid-template-columns: 1fr; }
  .list-options-toggle {
    display: inline-flex;
    justify-self: start;
    padding: 8px 4px;
    border: none;
    color: var(--green-dark);
  }
  .list-options-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin: -4px 4px 0;
  }
  .list-options-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 4px; }
  .list-options-toggle[aria-expanded="false"] + #interview-options { display: none; }
  #interview-options { display: grid; gap: 12px; }
  #interview-count { margin-top: 8px; }
}

/* The highlight belongs to the selected button, so its final bounds also work after wrapping or zooming. */
#navigation button { position: relative; isolation: isolate; }
#navigation .nav-mark {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--tint);
  box-shadow: inset 0 -2px var(--green);
  transform-origin: top left;
  pointer-events: none;
  visibility: hidden;
}
#navigation [aria-current="page"] .nav-mark { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-input="keyboard"]) .segments span,
  html:not([data-input="keyboard"]) .topic-card {
    transition: background-color 160ms ease, border-color 160ms ease;
  }
  html:not([data-input="keyboard"]) details::details-content {
    opacity: 0;
    transition: opacity 180ms var(--ease-out), content-visibility 180ms allow-discrete;
  }
  html:not([data-input="keyboard"]) details[open]::details-content { opacity: 1; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  html:not([data-input="keyboard"]) .list-options-toggle::after {
    transition: transform 180ms var(--ease-out);
  }
  html:not([data-input="keyboard"]) #interview-options {
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
  }
  @starting-style {
    html:not([data-input="keyboard"]) .list-options-toggle[aria-expanded="true"] + #interview-options {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
}

/* The participant's review keeps the next action beside the marked passages. */
main.narrow:has(.answer-check h1) { max-width: 1040px; }
.review-panel.answer-check {
  --tone-text: #853843; --tone-fill: #f8e9e9;
  --fact-text: #775018; --fact-fill: #f7eddb;
  margin: 0 0 28px; padding: 0; border: 0; background: transparent;
}
.check-header { padding: 0 0 22px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.check-header :is(h1,h2) { margin: 0; letter-spacing: -.045em; }
.check-header p { color: var(--muted); font-size: 16px; margin: 6px 0 0; }
.check-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 30%); gap: clamp(20px, 3vw, 40px); align-items: start; }
.check-overview { grid-column: 2; grid-row: 1; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.check-overview p.check-total { margin: 0; font-size: .875rem; font-weight: 600; }
.check-overview p.check-number { margin: 5px 0 14px; font-size: 2.75rem; line-height: 1.1; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.check-number span { font-size: 1rem; color: var(--muted); letter-spacing: 0; font-weight: 450; }
.check-overview .check-guidance { border-top: 1px solid var(--line); padding-top: 14px; font-size: .9375rem; }
.review-bulk { margin-top: 16px; }
.review-bulk button { width: 100%; }
.answer-check details > summary { min-height: 44px; padding-block: 11px; font-size: .875rem; font-weight: 550; }
.check-findings { grid-column: 1; grid-row: 1; min-width: 0; }
.issue-group { margin-bottom: 24px; }
.issue-group h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 9px; font-size: 1.25rem; }
.issue-count { padding: 3px 8px; border-radius: 6px; color: var(--ink); background: var(--line); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.check-card { margin: 0 0 12px; padding: clamp(16px, 2.25vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.check-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .8125rem; font-weight: 550; }
.check-status { padding: 5px 10px; border-radius: 5px; line-height: 1.4; }
.tone-status { background: var(--tone-fill); color: var(--tone-text); }
.fact-status { background: var(--fact-fill); color: var(--fact-text); }
.check-card h4 { margin: 16px 0 12px; font-size: 1.05rem; line-height: 1.45; font-weight: 600; }
.check-card blockquote.check-quote { border-left: 3px solid var(--ink); margin: 12px 0; padding: 2px 0 2px 14px; font-size: 1.125rem; font-weight: 500; }
.check-card p, .review-bulk blockquote { white-space: pre-wrap; }
.review-bulk blockquote { margin-inline: 0; line-height: 1.5; }
.check-replacement { margin: 15px 0 0; padding: 12px 16px; border-radius: 8px; background: var(--tint); }
.check-replacement strong { font-size: .8125rem; color: var(--green-dark); }
.check-replacement p { margin: 4px 0 0; }
.check-source { padding-left: 14px; border-left: 2px solid var(--line); }
.check-source a { color: var(--green-dark); text-underline-offset: 3px; }
.check-source blockquote { color: var(--muted); }
.check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.check-actions button { min-height: 44px; }
.full-review { border-block: 1px solid var(--line); }
.full-review .review-panel { margin: 8px 0 16px; }
@media (max-width: 800px) {
  .check-layout { grid-template-columns: 1fr; gap: 20px; }
  .check-overview, .check-findings { grid-area: auto; }
  .check-overview { padding: 16px; }
  .check-overview p.check-total, .check-overview p.check-number { display: inline-block; vertical-align: baseline; margin: 0 8px 4px 0; }
  .check-overview p.check-number { font-size: 1.5rem; }
  .check-overview .check-guidance { padding-top: 10px; }
  .review-bulk { margin-top: 10px; }
  .review-bulk summary { margin-bottom: -6px; }
}
