/* Guided intake, onboarding, profile and version-history rules. Built on app.css tokens and classes. */

/* ---------- Service picker ---------- */
.ix-ind-tabs { margin-top: 4px; }
.ix-ind-blurb { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; }
.ix-svc-grid { margin-top: 18px; }
.ix-chip-pro { background: var(--brand-soft); color: var(--brand-ink); margin-right: auto; }

/* ---------- Guided intake ---------- */
.ix-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ix-head { margin: 0 0 18px; }
.ix-head h1 { margin: 0; font-size: clamp(1.4rem, 3.6vw, 2rem); }
.ix-head p { margin: 2px 0 0; }
.ix-progress { margin-bottom: 18px; display: grid; gap: 8px; }
.ix-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 0; }
.ix-steps button { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: var(--r-pill); padding: 5px 12px; font: inherit; font-size: .78rem; cursor: pointer; }
.ix-steps li.done button { color: var(--ink-2); border-color: var(--brand-soft); background: var(--brand-soft); }
.ix-steps li.now button { color: #fff; background: var(--brand); border-color: var(--brand); font-weight: 600; }
.ix-steps button:disabled { cursor: default; opacity: .7; }
.ix-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ix-side { position: sticky; top: 84px; }
.ix-card { display: grid; gap: 22px; }
.ix-q { gap: 8px; }
.ix-q-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ix-q-head > label, .ix-q-head > .label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.ix-q-title { margin: 0; font-size: 1.35rem; line-height: 1.3; }
.ix-q-title label, .ix-q-title .label { font-size: inherit !important; font-weight: 600; color: var(--ink); }
.ix-example { font-style: italic; }
.ix-prefilled { background: var(--green-soft); color: var(--green); font-size: .7rem; }
.ix-file-row { align-items: center; }
.ix-count { text-align: right; }
.ix-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ix-choice { position: relative; cursor: pointer; }
.ix-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ix-choice span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--input); color: var(--ink-2); font-size: .9rem; transition: border-color .15s, background .15s, color .15s; }
.ix-choice span em { font-style: normal; font-size: .72rem; color: var(--muted); }
.ix-choice:hover span { border-color: var(--brand-2); }
.ix-choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.ix-choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-soft); border-color: var(--brand); }
.ix-tone .ix-choice span { border-radius: var(--r-pill); }
.ix-yesno .ix-choice span { min-width: 96px; justify-content: center; }
.ix-q.invalid .ix-choice span { border-color: var(--red); }
.ix-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.ix-keys { flex: 1; text-align: center; }
.ix-short { color: var(--amber); }

/* Review */
.ix-review { display: grid; gap: 16px; }
.ix-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ix-answers { grid-template-columns: minmax(140px, 36%) 1fr; }
.ix-answers dd { overflow-wrap: anywhere; word-break: normal; }
.ix-answers dd a { margin-left: 6px; }
.ix-errlist { margin: 6px 0 0; padding-left: 18px; }
.ix-approve { margin: 14px 0; }
.ix-disclaimer p { margin: 0 0 4px; font-size: .82rem; }

/* ---------- Onboarding & profile ---------- */
.ix-industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ix-industry { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.ix-industry input { position: absolute; opacity: 0; pointer-events: none; }
.ix-industry b { display: block; }
.ix-industry.on { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ix-industry:focus-within { border-color: var(--brand); }
.ix-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ix-profile .card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.ix-person { display: grid; gap: 10px; margin-bottom: 10px; background: var(--card-2); box-shadow: none; }
.ix-person .btn { justify-self: start; }
.ix-logo { width: 120px; height: 56px; border: 1px dashed var(--line); border-radius: var(--r-xs); display: grid; place-items: center; background: #fff; overflow: hidden; }
.ix-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ix-audit { overflow-x: auto; }
.ix-audit table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.ix-audit th, .ix-audit td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* ---------- Project: versions & files ---------- */
.ix-versions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ix-versions li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.ix-versions li.on { border-color: var(--brand); background: var(--brand-soft); }
.ix-vfiles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.ix-kind { font-size: .68rem; padding: 2px 8px; margin-right: 4px; }
.ix-workspace .btn { flex: 0 0 auto; }

@media (max-width: 960px) {
  .ix-layout, .ix-review-grid { grid-template-columns: 1fr; }
  .ix-side { position: static; }
}
@media (max-width: 720px) {
  .ix-grid2 { grid-template-columns: 1fr; }
  .ix-card { padding: 18px; }
  .ix-keys { display: none; }
  .ix-nav .btn { flex: 1; justify-content: center; }
  .ix-choice { flex: 1 1 100%; }
  .ix-choice span { width: 100%; }
  .ix-tone .ix-choice, .ix-yesno .ix-choice { flex: 1 1 calc(50% - 8px); }
  .ix-versions li { grid-template-columns: 1fr; }
  .ix-answers { grid-template-columns: 1fr; gap: 2px; }
  .ix-answers dt { margin-top: 10px; font-size: .78rem; }
}
