/* Intake wizard. Every selector is scoped under .ix; every color comes from
   tokens.css (no literal colors here). One authored motion moment: the dot
   field while we read a description (one dot turns gold). */

.ix {
  --ix-max: 1120px;
  --ix-ring: 0 0 0 3px color-mix(in srgb, var(--brand) 32%, transparent);
  --ix-on-brand: var(--bg);
  --ix-line: color-mix(in srgb, var(--border) 85%, transparent);
  font-family: var(--font-sans);
  color: var(--text);
  max-width: var(--ix-max);
  margin: 0 auto;
  padding: 0 20px 72px;
  scroll-margin-top: 16px;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--brand);
  accent-color: var(--brand);
}
.ix *, .ix *::before, .ix *::after { box-sizing: border-box; }
.ix ::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--text); }
.ix button { font: inherit; color: inherit; }
.ix-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ix-icon { flex: none; display: block; }
.ix-num-t { font-variant-numeric: tabular-nums; }
.ix * { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* ---- header ---------------------------------------------------------------- */
.ix-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0 12px;
}
.ix-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.005em; }
.ix-brand-mark {
  position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--gold);
  box-shadow: inset 0 0 0 6px var(--gold), inset 0 0 0 11px var(--ground);
}

/* Stage rail: the eight stages, always visible. A thin line joins the dots;
   the part already walked is teal. */
.ix-rail { padding: 4px 0 14px; border-bottom: 1px solid var(--ix-line); }
.ix-rail ol { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.ix-rail li { position: relative; min-width: 0; }
.ix-rail li + li::before {
  content: ""; position: absolute; top: 17px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; border-radius: 2px; background: var(--border);
}
.ix-rail li.ix-past + li::before, .ix-rail li.ix-past + li.ix-now::before, .ix-rail li.ix-done + li::before { background: var(--teal); }
.ix-rail li.ix-fresh + li::before { transform-origin: left center; animation: ix-connect var(--dur-5) var(--ease-out) var(--dur-2) both; }
.ix-rail-fresh { animation: ix-node-settle var(--dur-5) var(--ease-out) both; }
.ix-rail-fresh .ix-rail-check path { stroke-dasharray: 1; animation: ix-draw var(--dur-4) var(--ease-out) var(--dur-2) both; }
.ix-rail-check { display: block; }
.ix-rail-endowed::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(var(--teal) 0 38%, transparent 38% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), var(--text) calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), var(--text) calc(100% - 2px));
}
@keyframes ix-node-settle {
  0% { transform: scale(.7); background: var(--gold); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 40%, transparent); }
  45% { transform: scale(1.12); background: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 22%, transparent); }
  100% { transform: none; background: var(--teal); box-shadow: 0 0 0 0 transparent; }
}
@keyframes ix-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ix-connect { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ix-rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 6px 2px; border: 0; border-radius: 10px;
  background: none; cursor: pointer; text-align: center; color: var(--text-2) !important;
}
.ix-rail-btn:disabled { cursor: default; }
.ix-rail-btn:not(:disabled):hover .ix-rail-title { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ix-rail-btn:focus-visible { outline: none; box-shadow: var(--ix-ring); }
.ix-rail-dot {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; position: relative; z-index: 1;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--bg); color: var(--text-3); box-shadow: inset 0 0 0 1.5px var(--border);
}
.ix-rail-done { background: var(--teal); color: var(--ix-on-brand); box-shadow: none; }
.ix-rail-attention { background: var(--gold); color: var(--ground); box-shadow: none; }
.ix-rail-na { color: var(--text-3); box-shadow: inset 0 0 0 1.5px var(--border); background: var(--surface-2); }
.ix-rail-cur { background: var(--ground); color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent); }
.ix-rail-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; }
.ix-rail-title { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-rail li.ix-now .ix-rail-title { color: var(--text); }
.ix-rail-meta { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ix-rail li.ix-now .ix-rail-meta { color: var(--brand); font-weight: 600; }
.ix-rail-now { display: none; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--text); }

/* End-of-stage summary */
.ix-summary { max-width: 760px; margin: 0 auto; }
.ix-sumlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ix-line); }
.ix-sumlist li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--ix-line); font-size: 15px; line-height: 1.5; animation: ix-in var(--dur-3) var(--ease-out) both; }
.ix-sumlist li:nth-child(2) { animation-delay: var(--stagger); } .ix-sumlist li:nth-child(3) { animation-delay: calc(var(--stagger) * 2); } .ix-sumlist li:nth-child(n+4) { animation-delay: calc(var(--stagger) * 3); }
.ix-sum-mark { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); transform: translateY(3px); }
.ix-sum-flag .ix-sum-mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: var(--text); }
.ix-sum-text { text-wrap: pretty; }
/* Pace, value so far, files, draft week */
.ix-pace { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 12px 0 0; font-size: 13px; color: var(--text-2); }
.ix-pace-min { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.ix-pace-actions { display: inline-flex; align-items: center; gap: 16px; }
.ix-files-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ix-files-btn:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.ix-sound[aria-pressed="true"] { color: var(--brand); }
.ix-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.ix-value-item { display: inline-flex; align-items: baseline; gap: 4px; animation: ix-fade var(--dur-4) var(--ease-out) both; }
.ix-value-item strong { color: var(--text); font-variant-numeric: tabular-nums; }
.ix-value-sep { display: inline-block; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: var(--text-3); transform: translateY(-3px); }
.ix-files-note { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--brand-soft); font-size: 14px; line-height: 1.5; color: var(--text); }
.ix-files-note p { margin: 0 0 4px; }
.ix-files-skipped { color: var(--text-2); }
.ix-unlocked { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--brand); animation: ix-in var(--dur-4) var(--ease-out) both; }
.ix-draft { max-width: 760px; margin: 28px auto 0; border-top: 1px solid var(--ix-line); }
.ix-draft-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text); }
.ix-draft-head:focus-visible { outline: none; box-shadow: var(--ix-ring); border-radius: var(--radius-sm); }
.ix-draft-title { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.ix-draft-tag { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.ix-draft-meta { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.ix-draft-grid { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); gap: 10px; }
.ix-draft-dow { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.ix-draft-ev { margin-bottom: 8px; padding: 8px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.ix-draft-ev-name { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.ix-draft-ev-time { margin: 0 0 6px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ix-draft-ev ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ix-draft-ev li { padding: 1px 7px; border-radius: 999px; font-size: 11px; background: var(--surface-2); color: var(--text); }
.ix-draft-ev li.ix-draft-step { background: color-mix(in srgb, var(--gold) 30%, transparent); }
.ix-draft-ev li.ix-draft-open-slot { background: none; box-shadow: inset 0 0 0 1px var(--border); color: var(--text-3); border-style: dashed; }
.ix-draft-role { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ix-draft-more { color: var(--text-3); background: none !important; }
@media (max-width: 640px) {
  .ix-draft-grid { grid-template-columns: 1fr; }
  .ix-draft-day { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
  .ix-pace { margin-top: 8px; }
}
/* Calendar read-back */
.ix-cal { margin: 16px 0 4px; }
.ix-cal-lede { margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.ix-cal-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.ix-cal-days li { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--brand-soft); }
.ix-cal-days li.ix-cal-plain { background: var(--surface-2); }
.ix-cal-date { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ix-cal-type { font-size: 13px; font-weight: 700; color: var(--text); }
@media (max-width: 640px) { .ix-cal-days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Example answers */
.ix-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.ix-examples-label { font-size: 13px; color: var(--text-3); margin-right: 2px; }
.ix-example { padding: 4px 11px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; background: var(--surface-2); color: var(--text); cursor: pointer; box-shadow: inset 0 0 0 1px var(--border); }
.ix-example:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.ix-example:focus-visible { outline: none; box-shadow: var(--ix-ring); }
.ix-example.ix-on { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
/* New concepts */
.ix-concept { margin: 0 0 8px; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow); animation: ix-in var(--dur-3) var(--ease-out) both; }
.ix-concept .ix-h2 { margin: 0 0 8px; font-size: 20px; }
.ix-concept-tag { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--brand); }
.ix-concept-count { font-weight: 400; color: var(--text-3); }
.ix-concept-recap { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.ix-concept-field { display: grid; gap: 6px; margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.ix-concept .ix-input, .ix-concept .ix-textarea { width: 100%; margin-top: 8px; }
.ix-concepts-lede { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.ix-concept-ex { display: block; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.ix-pill.s-build { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--text); }
/* Check against a past week (stage 8) */
.ix-history { max-width: 760px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--ix-line); }
.ix-history .ix-h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 20px; }
.ix-optional { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text-3); }
.ix-hist-lede { max-width: 64ch; margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.ix-hist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ix-hist-actions label { cursor: pointer; }
.ix-hist-actions label:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.ix-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ix-busy { opacity: .7; pointer-events: none; }
.ix-hist-error { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--warn); font-size: 14px; color: var(--text); }
.ix-hist-notes { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.ix-hist-rules { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--ix-line); }
.ix-hist-rule { padding: 16px 0; border-bottom: 1px solid var(--ix-line); animation: ix-in var(--dur-3) var(--ease-out) both; }
.ix-hist-sum { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--text); text-wrap: pretty; }
.ix-hist-ex { margin: 0 0 12px; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.ix-hist-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ix-hist-hint { margin-left: 6px; font-size: 12px; color: var(--text-3); }
.ix-hist-note { margin-top: 10px; width: 100%; }
.ix-hist-more { margin-top: 16px; font-size: 14px; color: var(--text-2); }
.ix-hist-more summary { cursor: pointer; color: var(--text); }
.ix-hist-more ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.5; }
/* Guide: stage lead-in, follow-up, recap, chat */
.ix-leadin { max-width: 62ch; margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.ix-recap { max-width: 64ch; margin: 0 0 20px; padding-left: 14px; border-left: 2px solid var(--brand); font-size: 15px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.ix-followup-card { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--ix-line); animation: ix-in var(--dur-3) var(--ease-out) both; }
.ix-followup-card .ix-h2 { margin: 0 0 12px; font-size: 18px; }
.ix-chat-open { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; }
.ix-chat { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ix-line); }
.ix-chat-log { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ix-chat-log li { max-width: 60ch; padding: 10px 14px; border-radius: var(--radius); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.ix-chat-me { justify-self: end; background: var(--brand-soft); color: var(--text); }
.ix-chat-guide { justify-self: start; background: var(--surface-2); color: var(--text); }
.ix-chat-guide .ix-btn { margin-top: 8px; }
.ix-chat-input { display: flex; gap: 8px; align-items: flex-end; }
.ix-chat-input .ix-textarea { flex: 1; min-width: 0; }
.ix-check-guide { max-width: 760px; margin: 8px auto 0; }
@media (max-width: 640px) {
  .ix-chat-input { flex-direction: column; align-items: stretch; }
  .ix-chat-log li { max-width: 100%; }
}
.ix-nav-stage { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ix-nav-blurb { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.ix-top-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.ix-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }

.ix-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 0; padding: 8px 10px 8px 16px; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--text); font-size: 14px;
}
.ix-banner-actions { display: flex; align-items: center; gap: 10px; }
.ix-body { padding-top: 32px; }

/* ---- type ------------------------------------------------------------------ */
.ix-pagehead { max-width: 680px; margin: 0 auto 28px; }
.ix-pagehead-left { margin-left: 0; }
.ix-h1 {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.12; letter-spacing: -.02em; text-wrap: balance;
}
.ix-h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.005em; }
.ix-lede { margin: 0; max-width: 64ch; font-size: 16px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.ix-files-shortcut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
.ix-files-shortcut .ix-files-btn { min-height: 36px; }
.ix-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }

/* ---- surfaces and buttons ------------------------------------------------------- */
.ix-card {
  position: relative; background: var(--surface); border: 1px solid var(--ix-line);
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: 28px;
}
.ix-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out);
  white-space: nowrap;
}
.ix-btn:focus-visible, .ix-link:focus-visible, .ix-icon-btn:focus-visible, .ix-chip:focus-visible, .ix-choice:focus-visible,
.ix-seg-btn:focus-visible, .ix-area-btn:focus-visible, .ix-area-item:focus-visible { outline: none; box-shadow: var(--ix-ring); }
.ix-btn:disabled { opacity: .45; cursor: not-allowed; }
.ix-btn-primary { background: var(--brand); color: var(--ix-on-brand) !important; box-shadow: 0 1px 2px color-mix(in srgb, var(--ground) 20%, transparent), 0 6px 14px color-mix(in srgb, var(--brand) 22%, transparent); }
.ix-btn-primary:hover:not(:disabled) { background: var(--brand-2); transform: translateY(-1px); }
.ix-btn-ghost { background: transparent; color: var(--text-2) !important; }
.ix-btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text) !important; }
.ix-btn-quiet { background: var(--surface); border-color: var(--border); color: var(--text) !important; }
.ix-btn-quiet:hover:not(:disabled) { border-color: var(--text-3); }
.ix-btn-warn { background: var(--warn-soft); border-color: var(--warn); color: var(--text) !important; }
.ix-btn-danger { background: var(--bad); color: var(--ix-on-brand) !important; }
.ix-btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.ix-btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.ix-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--brand) !important; border-radius: 4px; text-underline-offset: 3px;
}
.ix-link:hover:not(:disabled) { text-decoration: underline; }
.ix-link:disabled { opacity: .5; cursor: default; }
.ix-link-quiet { color: var(--text-2) !important; font-weight: 500; }
.ix-link-quiet:hover:not(:disabled) { color: var(--text) !important; }
.ix-link-quiet.ix-on { color: var(--warn) !important; }
.ix-icon-btn {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0;
  background: transparent; color: var(--text-3) !important; cursor: pointer;
}
.ix-icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text) !important; }
.ix-icon-btn:disabled { opacity: .3; cursor: default; }

.ix-input, .ix-textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; transition: border-color var(--dur-1), box-shadow var(--dur-1), background var(--dur-1);
}
.ix-input { height: 42px; padding: 0 12px; font-size: 15px; }
.ix-input:focus, .ix-textarea:focus, .ix-num-input:focus, .ix-mini input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ix-ring); background: var(--surface); }
.ix-textarea { display: block; resize: vertical; padding: 16px 18px; font-size: 16px; line-height: 1.65; min-height: 240px; }
.ix-textarea-sm { min-height: 72px; font-size: 15px; padding: 10px 12px; }
.ix-textarea::placeholder, .ix-input::placeholder { color: var(--text-3); }
.ix-notice { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--text); font-size: 13px; }
.ix-note { margin: 0 0 10px; font-size: 13px; color: var(--text-2); }

.ix-stepfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.ix-stepfoot-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ix-actions-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ix-stepfoot-sticky {
  position: sticky; bottom: 0; z-index: 2; margin: 28px -20px 0; padding: 14px 20px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--ix-line);
  backdrop-filter: saturate(1.2) blur(6px);
}

/* ---- opening: one question per screen ------------------------------------------ */
.ix-solo { max-width: 720px; margin: 0 auto; }

/* ---- describe ------------------------------------------------------------------ */
.ix-describe { max-width: 820px; margin: 0 auto; }
.ix-describe .ix-pagehead { margin-left: 0; }
.ix-compose { position: relative; }
.ix-compose .ix-textarea { min-height: 280px; background: var(--surface); box-shadow: var(--shadow); }
.ix-compose-bar { display: flex; align-items: center; gap: 16px; margin: 10px 2px 0; flex-wrap: wrap; }
.ix-count { margin-left: auto; font-size: 12px; color: var(--text-3); }
.ix-prompts { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ix-prompts-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.ix-prompts ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ix-prompts li { font-size: 13px; color: var(--text-2); padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); }

.ix-voice { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ix-voice-btn.ix-on { border-color: var(--coral); color: var(--text) !important; }
.ix-voice-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.ix-voice-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: ix-blink var(--dur-loop) var(--ease-in-out) infinite; }
.ix-voice-err { font-size: 12px; color: var(--warn); }

.ix-ai { position: relative; max-width: 460px; }
.ix-ai-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--text-2) !important; cursor: pointer;
}
.ix-ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.ix-ai-dot.proxy, .ix-ai-dot.dev { background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.ix-ai-panel { position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 0; width: min(420px, 80vw); padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px; line-height: 1.55; color: var(--text-2); }
.ix-ai-panel p { margin: 0 0 8px; }
.ix-ai-panel p:last-child { margin-bottom: 0; }
.ix-dev { margin-top: 10px; padding: 12px; border-radius: var(--radius-sm); border: 1px dashed var(--border); background: var(--bg); }
.ix-dev-title { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text) !important; }
.ix-dev-warn { color: var(--warn) !important; }
.ix-dev-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ix-dev-row .ix-input { flex: 1; min-width: 180px; height: 36px; font-size: 13px; font-family: var(--font-mono); }
.ix-dev-on { color: var(--ok); font-weight: 500; }

/* The authored moment: a field of dots settles, and one turns gold. */
.ix-busy {
  position: absolute; inset: -8px; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  border-radius: calc(var(--radius) + 6px); background: color-mix(in srgb, var(--ground) 94%, transparent); color: var(--on-ground);
  animation: ix-fade var(--dur-4) var(--ease-out) both;
}
.ix-dots { display: grid; grid-template-columns: repeat(12, 10px); gap: 12px; }
.ix-dotf {
  width: 10px; height: 10px; border-radius: 50%; background: var(--on-ground-3);
  animation: ix-settle calc(var(--dur-5) * 3) var(--ease-out) both; animation-delay: calc(var(--i) * var(--stagger) * .75);
}
.ix-dotf.ix-gold { animation: ix-settle calc(var(--dur-5) * 3) var(--ease-out) both, ix-found calc(var(--dur-5) * 3.5) var(--ease-out) calc(var(--dur-5) * 1.5) forwards; }
.ix-busy-text { margin: 0; font-size: 15px; font-weight: 600; color: var(--on-ground-2); min-height: 1.5em; }
@keyframes ix-settle { 0% { opacity: 0; transform: translateY(-10px) scale(.6); } 60% { opacity: .9; } 100% { opacity: .35; transform: none; } }
@keyframes ix-found { 0% { background: var(--on-ground-3); } 40% { opacity: 1; background: var(--gold); transform: scale(1.9); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 22%, transparent); } 100% { opacity: 1; background: var(--gold); transform: scale(1.6); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 18%, transparent); } }
@keyframes ix-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ix-blink { 50% { opacity: .25; } }
@keyframes ix-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- heard ------------------------------------------------------------------- */
.ix-heard .ix-pagehead { margin-left: 0; }
.ix-heard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.ix-words { position: sticky; top: 16px; }
.ix-words-text { white-space: pre-wrap; font-size: 15px; line-height: 1.8; color: var(--text-2); max-height: 72vh; overflow: auto; padding-right: 8px; }
.ix-words-text mark {
  color: var(--text); background: color-mix(in srgb, var(--gold) 26%, transparent); border-radius: 3px; padding: 1px 2px;
  transition: background var(--dur-1);
}
.ix-words-text mark.ix-hot { background: color-mix(in srgb, var(--gold) 60%, transparent); }
.ix-findings { min-width: 0; }
.ix-fgroup { padding: 4px 0 14px; }
.ix-fgroup + .ix-fgroup { border-top: 1px solid var(--ix-line); padding-top: 14px; }
.ix-fgroup-head { margin: 0 0 6px; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text-2); }
.ix-finding { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; transition: background var(--dur-1); }
.ix-finding.ix-hot { background: var(--surface-2); }
.ix-finding-icon { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-top: 1px; }
.ix-finding.ix-soft .ix-finding-icon { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--text); }
.ix-finding-body { flex: 1; min-width: 0; }
.ix-finding-meaning { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; }
.ix-finding-quote {
  display: block; margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-3); quotes: "\201C" "\201D";
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ix-finding.ix-hot .ix-finding-quote { white-space: normal; }
.ix-finding-adjust { flex: none; margin-top: 2px; }
.ix-clars { margin: 0 0 28px; padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--border)); }
.ix-clars ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.ix-clar p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.ix-clar-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ix-followups { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ix-line); max-width: 760px; }
.ix-followups .ix-q-help { margin: 6px 0 14px; }
.ix-followup { display: grid; gap: 8px; margin-bottom: 14px; font-size: 15px; font-weight: 500; }
.ix-followups-foot { display: flex; justify-content: flex-end; }

/* ---- interview ----------------------------------------------------------------- */
.ix-interview { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 40px; align-items: start; }
.ix-main { min-width: 0; max-width: 760px; }
.ix-nav { position: sticky; top: 16px; }
.ix-nav-progress { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.ix-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ix-bar span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transform-origin: left center; transition: transform var(--dur-4) var(--ease-out); }
.ix-nav-pct { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ix-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ix-area-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px;
  background: none; text-align: left; font-size: 14px; color: var(--text-2) !important; cursor: pointer;
}
.ix-area-btn:hover { background: var(--surface-2); color: var(--text) !important; }
.ix-area.ix-cur > .ix-area-btn { color: var(--text) !important; font-weight: 600; }
.ix-area-title { flex: 1; min-width: 0; }
.ix-area-n { flex: none; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ix-area-body { margin: 2px 0 10px 17px; padding-left: 14px; border-left: 1px solid var(--border); }
.ix-area-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ix-area-item {
  display: flex; align-items: flex-start; gap: 6px; width: 100%; padding: 5px 6px; border: 0; border-radius: 6px; background: none;
  text-align: left; font-size: 13px; line-height: 1.35; color: var(--text-3) !important; cursor: pointer;
}
.ix-area-item:hover { background: var(--surface-2); color: var(--text) !important; }
.ix-area-item.ix-done { color: var(--text-2) !important; }
.ix-area-item.ix-cur { background: var(--brand-soft); color: var(--text) !important; font-weight: 600; }
.ix-area-item-mark { display: grid; place-items: center; flex: none; width: 13px; height: 18px; color: var(--teal); }
.ix-area-item-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ix-area-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 4px 6px; }
.ix-nav-finish { width: 100%; margin-top: 16px; }
.ix-mobile-progress { display: none; }

/* Status dots: the brand's dot motif doubles as the coverage legend. */
.ix-dot { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border); color: var(--ix-on-brand); }
.ix-dot-covered { background: var(--teal); box-shadow: none; }
.ix-dot-flagged { background: var(--gold); box-shadow: none; }
.ix-dot-na { box-shadow: inset 0 0 0 1.5px var(--border); color: var(--text-3); }
.ix-dot-cur.ix-dot-open { box-shadow: inset 0 0 0 1.5px var(--brand), inset 0 0 0 4px var(--surface), inset 0 0 0 8px var(--brand); }

.ix-said { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); font-size: 13px; color: var(--text); animation: ix-in var(--dur-4) var(--ease-out); }
.ix-said > span { flex: 1; min-width: 0; }
.ix-said .ix-icon { color: var(--brand); }

.ix-qcard, .ix-probe { padding: 32px 36px 22px; animation: ix-in var(--dur-3) var(--ease-out); }
.ix-q-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; outline: none; }
.ix-q-sub { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.ix-q-help { margin: 0; max-width: 64ch; font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.ix-q-child .ix-q-help { font-size: 14px; }
.ix-q-example { margin: 8px 0 0; font-size: 14px; color: var(--text-3); }
.ix-q-field { margin-top: 18px; }
.ix-q-child .ix-q-field { margin-top: 10px; }
.ix-children { display: grid; gap: 22px; margin-top: 26px; padding: 20px 0 2px 20px; border-left: 2px solid var(--brand-soft); }
.ix-heard-line { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.ix-heard-line .ix-icon { margin-top: 2px; color: var(--brand); }
.ix-heard-line q { quotes: "\201C" "\201D"; color: var(--text); }
.ix-escape { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; }
.ix-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ix-line); }
.ix-foot-hint { display: flex; gap: 10px; font-size: 12px; color: var(--text-3); text-align: center; }

/* Probe: the situation reads like a note from the floor, then the question. */
.ix-situation {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: var(--text);
}
.ix-situation .ix-icon { margin-top: 4px; color: var(--coral); }
.ix-probe .ix-q-title { margin-bottom: 16px; }
.ix-key {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px;
  font-size: 12px; font-weight: 700; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--border); font-variant-numeric: tabular-nums;
}
.ix-choice.ix-on .ix-key { background: var(--brand); color: var(--ix-on-brand); box-shadow: none; }
.ix-choice-label { flex: 1; }
.ix-choice-other { border-style: dashed; color: var(--text-2) !important; }
.ix-consequence { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; line-height: 1.5; animation: ix-in var(--dur-3) var(--ease-out); }
.ix-consequence-head { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.ix-consequence ul { margin: 0; padding-left: 18px; }
.ix-consequence li + li { margin-top: 4px; }
.ix-consequence-none { color: var(--text-2); }
.ix-other { margin-top: 12px; }
.ix-other-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.ix-understood { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.ix-understood ul { margin: 4px 0 0; padding-left: 18px; color: var(--text); }
.ix-probe-compact { padding: 18px 20px; box-shadow: none; animation: none; }
.ix-probe-compact .ix-situation { display: none; }
.ix-probe-compact .ix-q-title { font-size: 18px; }

/* ---- fields ------------------------------------------------------------------ */
.ix-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); }
.ix-seg-btn {
  min-width: 96px; height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--text-2) !important; transition: background var(--dur-1), color var(--dur-1), box-shadow var(--dur-1);
}
.ix-seg-btn.ix-on { background: var(--surface); color: var(--text) !important; box-shadow: 0 1px 2px color-mix(in srgb, var(--ground) 12%, transparent), 0 2px 8px color-mix(in srgb, var(--ground) 8%, transparent); }

.ix-num { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ix-num-btn {
  display: grid; place-items: center; width: 40px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2) !important; cursor: pointer;
}
.ix-num-btn:hover { border-color: var(--text-3); color: var(--text) !important; }
.ix-num-input {
  width: 96px; height: 44px; text-align: center; font: inherit; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; -moz-appearance: textfield;
}
.ix-num-input::-webkit-outer-spin-button, .ix-num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ix-num-unit { margin-left: 4px; font-size: 14px; color: var(--text-2); }
.ix-num-none { font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--surface-2); padding: 3px 8px; border-radius: 6px; }

.ix-choices { display: grid; gap: 8px; }
.ix-choice {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; text-align: left; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; line-height: 1.4;
  transition: border-color var(--dur-1), background var(--dur-1);
}
.ix-choice:hover { border-color: var(--text-3); }
.ix-choice.ix-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 70%, var(--surface)); }
.ix-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-3); transition: box-shadow var(--dur-1), border-color var(--dur-1); }
.ix-choice.ix-on .ix-radio { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 9px var(--brand); }

.ix-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ix-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; transition: border-color var(--dur-1), background var(--dur-1);
}
.ix-chip:hover { border-color: var(--text-3); }
.ix-chip.ix-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 70%, var(--surface)); }
.ix-chip-box { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--text-3); color: var(--ix-on-brand); }
.ix-chip.ix-on .ix-chip-box { background: var(--brand); border-color: var(--brand); }

.ix-roles-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text-3); margin: 0 4px 8px 44px; }
.ix-roles-head span:last-child { display: none; }
.ix-roles-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ix-role { display: flex; align-items: center; gap: 10px; }
.ix-role-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.ix-role-rank { flex: none; width: 18px; font-size: 13px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ix-role-name { flex: 1; min-width: 0; }
.ix-role-actions { display: flex; gap: 2px; flex: none; }
.ix-add {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; margin-left: 38px; padding: 8px 12px; cursor: pointer;
  border: 1px dashed var(--border); border-radius: 10px; background: none; font-size: 14px; color: var(--text-2) !important;
}
.ix-add:hover { border-color: var(--brand); color: var(--brand) !important; }
.ix-warn { margin: 8px 0 0 38px; font-size: 13px; color: var(--warn); }

.ix-times { display: grid; gap: 6px; max-width: 520px; }
.ix-times-row { display: grid; grid-template-columns: 1fr 120px 120px; gap: 10px; align-items: center; }
.ix-times-head { font-size: 12px; font-weight: 600; color: var(--text-3); }
.ix-times-role { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ix-mini { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.ix-mini input {
  width: 72px; height: 36px; padding: 0 8px; text-align: right; font: inherit; font-size: 14px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}

.ix-list-rows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.ix-list-row { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.ix-list-cell { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-list-cell + .ix-list-cell::before { content: "\00b7"; margin-right: 10px; color: var(--text-3); }
.ix-list-count { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ix-list-new { display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: end; }
.ix-list-field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-3); min-width: 0; }
.ix-list-num { text-align: center; }
.ix-list-add { height: 42px; }

.ix-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ix-rank-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); cursor: grab; transition: border-color var(--dur-1);
}
.ix-rank-item:hover { border-color: var(--text-3); }
.ix-rank-grip { color: var(--text-3); }
.ix-rank-pos { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ix-rank-item:nth-child(-n+2) .ix-rank-pos { background: var(--ground); color: var(--gold); }
.ix-rank-label { flex: 1; font-size: 15px; font-weight: 500; }
.ix-rank-tier { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.ix-rank-tier.t1 { background: var(--brand-soft); color: var(--brand); }
.ix-rank-tier.t2 { background: var(--surface-2); color: var(--text-2); }
.ix-rank-tier.t3 { color: var(--text-3); box-shadow: inset 0 0 0 1px var(--border); }

/* ---- check: sample situations ------------------------------------------------------ */
.ix-check { max-width: 820px; margin: 0 auto; }
.ix-check .ix-pagehead { margin-left: 0; }
.ix-scns { display: grid; gap: 18px; }
.ix-scn { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--ix-line); transition: border-color var(--dur-2); }
.ix-scn.ix-yes { border-color: color-mix(in srgb, var(--teal) 55%, var(--border)); }
.ix-scn.ix-no { border-color: color-mix(in srgb, var(--gold) 70%, var(--border)); }
.ix-scn-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.ix-scn-setup { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.ix-crew { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ix-line); }
.ix-crew li { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, auto); gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--ix-line); font-size: 14px; }
.ix-crew-mark { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; align-self: center; }
.ix-crew .ix-in .ix-crew-mark { background: var(--teal); color: var(--ix-on-brand); }
.ix-crew .ix-out .ix-crew-mark { background: var(--surface-2); color: var(--text-3); }
.ix-crew-role { color: var(--text-2); }
.ix-crew-tags { margin-left: 8px; color: var(--text-3); font-size: 13px; }
.ix-crew-note { color: var(--text-2); font-size: 13px; text-align: right; }
.ix-crew .ix-out .ix-crew-note { color: var(--text); font-weight: 600; }
.ix-scn-outcome { margin: 12px 0 0; font-size: 15px; line-height: 1.55; font-weight: 500; }
.ix-scn-why { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.ix-scn-ask { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; font-weight: 600; }
.ix-scn-ask > span { margin-right: auto; }
.ix-scn-fix { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.ix-scn-fix-lead { margin: 0 0 10px; font-size: 14px; color: var(--text-2); }

/* ---- review -------------------------------------------------------------------- */
.ix-review { max-width: 860px; margin: 0 auto; }
.ix-review .ix-pagehead { margin-left: 0; }
.ix-cov { margin-bottom: 32px; }
.ix-cov-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ix-line); }
.ix-cov-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 46px; padding: 6px 0; border-bottom: 1px solid var(--ix-line); font-size: 14px; }
.ix-cov-title { font-weight: 600; }
.ix-cov-status { color: var(--text-3); font-size: 13px; }
.ix-cov-open .ix-cov-status { color: var(--warn); font-weight: 600; }
.ix-cov-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; min-width: 60px; }
.ix-flags { margin-bottom: 32px; padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border)); }
.ix-flags ul { margin: 10px 0 10px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.ix-flags li span { color: var(--text-2); }
.ix-rulesec { padding: 22px 0 8px; border-top: 1px solid var(--ix-line); }
.ix-role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ix-role-list li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.5; }
.ix-role-list .ix-role-dot { transform: translateY(-1px); }
.ix-role-list span:last-child { color: var(--text-2); }
.ix-rules { list-style: none; margin: 0; padding: 0; }
.ix-rule { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--ix-line); font-size: 15px; line-height: 1.5; }
.ix-rule:first-child { border-top: 0; }
.ix-rule-text { flex: 1; text-wrap: pretty; }
.ix-rule-src { margin-left: 6px; font-size: 12px; color: var(--text-3); }
.ix-pill { flex: none; margin-top: 2px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ix-pill.s-must { background: var(--ground); color: var(--on-ground); }
.ix-pill.s-high { background: var(--brand-soft); color: var(--brand); }
.ix-pill.s-medium { background: var(--surface-2); color: var(--text-2); }
.ix-pill.s-low { box-shadow: inset 0 0 0 1px var(--border); color: var(--text-3); }
.ix-fields { display: grid; gap: 14px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--ix-line); }
.ix-fields dt { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ix-fields dd { margin: 0; }
.ix-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-tag { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.ix-create { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.ix-ack { display: flex; align-items: center; gap: 8px; max-width: 360px; font-size: 13px; line-height: 1.4; color: var(--text-2); cursor: pointer; }
.ix-ack input { width: 18px; height: 18px; flex: none; }
.ix-create-why { font-size: 13px; color: var(--warn); max-width: 340px; }

/* ---- responsive ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .ix-heard-grid { grid-template-columns: 1fr; gap: 24px; }
  .ix-words { position: static; }
  .ix-words-text { max-height: 260px; }
  .ix-interview { grid-template-columns: 1fr; gap: 0; }
  .ix-nav { position: static; display: none; margin-bottom: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
  .ix-nav.ix-open { display: block; }
  .ix-nav .ix-nav-progress { display: none; }
  .ix-mobile-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
}
@media (max-width: 720px) {
  .ix { padding: 0 16px 56px; }
  .ix-top { padding: 12px 0 8px; }
  .ix-rail-text { display: none; }
  .ix-rail-btn { padding: 4px 0; }
  .ix-rail-dot { width: 22px; height: 22px; }
  .ix-rail li + li::before { top: 14px; left: calc(-50% + 13px); right: calc(50% + 13px); }
  .ix-rail-now { display: block; }
  .ix-sumlist li { grid-template-columns: 18px minmax(0, 1fr); }
  .ix-sumlist li .ix-link { grid-column: 2; justify-self: start; }
  .ix-saved { display: none; }
  .ix-body { padding-top: 20px; }
  .ix-lede { font-size: 15px; }
  .ix-card { padding: 20px; border-radius: var(--radius); }
  .ix-compose .ix-textarea { min-height: 220px; padding: 14px; }
  .ix-qcard, .ix-probe { padding: 22px 18px 14px; }
  .ix-children { padding-left: 14px; }
  .ix-foot-hint { display: none; }
  .ix-card-foot .ix-btn-primary { flex: 1; }
  .ix-times-row { grid-template-columns: 1fr 92px 92px; gap: 6px; }
  .ix-mini input { width: 56px; }
  .ix-mini span { display: none; }
  .ix-list-new { grid-template-columns: 1fr; }
  .ix-rank-tier { display: none; }
  .ix-rule { flex-direction: column; gap: 6px; }
  .ix-stepfoot { flex-direction: column-reverse; align-items: stretch; }
  .ix-stepfoot-left, .ix-actions-right { justify-content: space-between; margin-left: 0; }
  .ix-stepfoot-sticky { position: static; margin: 20px 0 0; padding: 0; background: none; border: 0; backdrop-filter: none; }
  .ix-create { justify-content: stretch; }
  .ix-create .ix-btn { flex: 1; }
  .ix-finding-quote { display: none; }
  .ix-finding.ix-hot .ix-finding-quote { display: block; }
  .ix-seg { display: flex; }
  .ix-seg-btn { flex: 1; }
  .ix-crew li { grid-template-columns: 22px minmax(0, 1fr); }
  .ix-crew-note { grid-column: 2; text-align: left; }
  .ix-cov-row { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .ix-cov-status { display: none; }
  .ix-dots { grid-template-columns: repeat(8, 10px); }
}
@media (prefers-reduced-motion: reduce) {
  .ix *, .ix *::before, .ix *::after { animation-duration: var(--dur-1) !important; animation-delay: 0ms !important; transition: none !important; }
  .ix-dotf.ix-gold { background: var(--gold); opacity: 1; }
}

/* Stage done: one line in place of a recap screen */
.ix-stagedone { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text); animation: ix-in var(--dur-3) var(--ease-out); }
.ix-stagedone > svg { color: var(--brand); flex: none; }
.ix-stagedone > span { flex: 1 1 220px; }
.ix-stagedone .ix-link { margin-left: auto; }
