/* 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); }
/* 2.48.0: choices with pictures (the CV design picker): radio cards, keyboard and touch friendly */
.ix-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ix-pic { position: relative; cursor: pointer; }
.ix-pic input { position: absolute; opacity: 0; pointer-events: none; }
.ix-pic-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 8px 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--input); transition: border-color .15s, background .15s, box-shadow .15s; }
.ix-pic-card img { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.ix-pic-name { font-size: .9rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
.ix-pic-hint { font-size: .76rem; line-height: 1.35; color: var(--muted); }
.ix-pic:hover .ix-pic-card { border-color: var(--brand-2); }
.ix-pic input:checked + .ix-pic-card { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.ix-pic input:checked + .ix-pic-card .ix-pic-name { color: var(--brand-ink); }
.ix-pic input:focus-visible + .ix-pic-card { box-shadow: 0 0 0 4px var(--brand-soft); border-color: var(--brand); }
.ix-q.invalid .ix-pic-card { border-color: var(--red); }
@media (max-width: 480px) { .ix-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ix-pic-hint { display: none; } }
.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; }
}

/* ---------- Home 2.2: outcomes, "Describe it", guarantee band, execution layer ---------- */
.hero-x .hero-copy h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-x .hero-tagline { font-size: 1.2rem; font-weight: 600; color: var(--muted); margin: -4px 0 18px; animation: fadeUp .8s .3s var(--ease-out) both; }
.outcomes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; animation: fadeUp .8s .36s var(--ease-out) both; }
.outcome { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); color: #eef3ff; border-radius: var(--r-pill); padding: 8px 14px; font: inherit; font-size: .86rem; cursor: pointer; transition: background .2s, border-color .2s, transform .15s var(--ease); }
.outcome .ic { color: var(--teal); }
.outcome:hover { background: rgba(255, 255, 255, .14); border-color: rgba(46, 230, 200, .6); }
.outcome:active { transform: scale(.97); }
.describe { border-radius: var(--r-xl); padding: 22px; color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.describe-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.describe-head h2 { font-size: 1.15rem; margin: 0 0 4px; color: #fff; }
.describe-head p { margin: 0; color: rgba(222, 231, 255, .75); font-size: .88rem; }
.describe-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.describe textarea { width: 100%; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .2); background: rgba(5, 11, 28, .55); color: #fff; padding: 12px 14px; font: inherit; font-size: .95rem; resize: vertical; min-height: 110px; line-height: 1.5; }
.describe textarea::placeholder { color: rgba(222, 231, 255, .45); }
.describe textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(46, 230, 200, .18); }
.describe-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.upload-lite { display: inline-flex; gap: 6px; align-items: center; color: rgba(222, 231, 255, .8); font-size: .85rem; cursor: pointer; padding: 8px 4px; }
.upload-lite input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-lite:hover { color: #fff; }
.upload-lite:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.describe-err { color: #ffb4bc; font-size: .85rem; margin-top: 6px; }
.describe-err:empty { display: none; }
.describe-results:empty { display: none; }
.describe-lead { margin: 16px 0 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(222, 231, 255, .65); }
.describe-picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.describe-picks li { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: 10px 12px; animation: fadeUp .35s var(--ease-out) both; }
.describe-picks li.best { border-color: rgba(46, 230, 200, .55); background: rgba(46, 230, 200, .08); }
.describe-picks .t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .84rem; }
.describe-picks .t b { color: #fff; font-size: .95rem; }
.describe-picks .t span { color: rgba(222, 231, 255, .75); }
.describe-picks .t em { font-style: normal; color: var(--teal); font-size: .78rem; margin-top: 2px; }
.describe-picks .chip { background: rgba(46, 230, 200, .18); color: var(--teal); font-size: .68rem; padding: 2px 8px; vertical-align: middle; }
.describe-picks .svc-ic { background: rgba(255, 255, 255, .1); color: #fff; }
.describe-picks .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.guarantee-band { padding: 0; margin-top: clamp(32px, 5vw, 56px); }
.gb-in { display: flex; align-items: center; gap: 22px; padding: 26px 30px; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--green-soft), var(--brand-soft)); border: 1px solid var(--line); }
.gb-in h2 { margin: 0 0 4px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.gb-in p { margin: 0; color: var(--ink-2); }
.gb-in > div { flex: 1; }
.gb-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.outcome-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.outcome-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); color: inherit; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.outcome-card h3 { margin: 4px 0 0; font-size: 1.05rem; }
.outcome-card p { margin: 0; color: var(--muted); font-size: .86rem; flex: 1; }
.outcome-card .from { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: .85rem; }
@media (hover: hover) { .outcome-card:hover { transform: translateY(-3px); box-shadow: var(--e3); border-color: var(--brand); } }
.layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.layer-card { padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.layer-card h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.layer-card p { margin: 0; color: var(--muted); }
.layer-card .layer-lead { display: block; color: var(--ink); font-weight: 600; margin: 0 0 6px; }
.layer-card.on .layer-lead { color: #fff; }
.layer-points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.layer-points li { position: relative; padding-left: 22px; font-weight: 600; color: var(--ink); }
.layer-points li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2, #c7cfe3); }
.layer-card.on .layer-points li { color: #fff; }
.layer-card.on .layer-points li::before { background: var(--grad); }
.layer.compact .layer-points { margin: 0; gap: 4px; }
.layer.compact .layer-points li { font-size: .92rem; }
.hero-x .hero-intro { color: #e3e9ff; margin-bottom: 6px; }
.layer-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); }
.layer-card.on { background: var(--night); color: #fff; border-color: transparent; box-shadow: var(--e3); }
.layer-card.on p { color: rgba(222, 231, 255, .78); }
.layer-card.on .layer-ic { background: var(--grad); color: #fff; }
.dfy-art { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.dfy-row { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--card-2); border: 1px solid var(--line-2); }
.dfy-row > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .84rem; }
.dfy-row span { color: var(--muted); }
.pack .pack-tagline { color: var(--brand); font-weight: 600; font-size: .95rem; margin: 2px 0 12px; }
@media (max-width: 1080px) {
  .outcomes { justify-content: center; }
  .hero-x .describe { max-width: 640px; margin: 0 auto; text-align: left; }
}
@media (max-width: 960px) {
  .layer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gb-in { flex-direction: column; text-align: center; padding: 22px; }
  .describe { padding: 16px; }
  .describe-picks li { flex-wrap: wrap; }
  .describe-picks li .btn { width: 100%; }
}

/* Job page: top-up or bundle options when a job needs more credits */
.ix-bundle-opts { display: grid; gap: 8px; margin-top: 10px; }
.ix-bundle-opts .btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; flex-wrap: wrap; }
.ix-bundle-opts .btn small { color: var(--muted); font-weight: 500; }

/* Rewards: coupons and referral credits on the way */
.rewards-card { margin-bottom: 18px; }
.reward-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line-2); }
.reward-line:first-of-type { border-top: 0; }
.reward-line.pending b { color: var(--ink-2); }
.coupon-form { margin-top: 12px; }
.coupon-form input { flex: 1 1 220px; min-width: 0; border: 1px solid var(--line); background: var(--input); color: var(--ink); border-radius: var(--r-sm); padding: 10px 14px; min-height: 44px; font: inherit; text-transform: uppercase; }
/* Date inputs (free-trial form) match the other fields */
.field input[type=date] { width: 100%; border: 1px solid var(--line); background: var(--input); color: var(--ink); border-radius: var(--r-sm); padding: 11px 14px; min-height: 46px; font: inherit; font-size: .95rem; }
.field input[type=date]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ---------- Website assistant (chat bubble) ---------- */
#assistant .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.as-launch { position: fixed; right: 18px; bottom: 74px; z-index: 41; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--r-pill);
  padding: 12px 18px; background: linear-gradient(135deg, var(--teal, #2ee6c8), var(--brand) 60%, var(--violet, #9b7bff)); color: #fff; font: inherit; font-weight: 700; font-size: .9rem;
  box-shadow: var(--e3); cursor: pointer; transition: transform .15s; }
.as-launch:hover { transform: translateY(-1px); }
#assistant.open .as-launch { opacity: 0; pointer-events: none; }
.as-panel { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e4); overflow: hidden; animation: pop .18s var(--ease-out); }
.as-panel[hidden] { display: none; }
.as-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(135deg, var(--brand-soft), transparent); }
.as-head b { display: block; }
.as-head .tiny { color: var(--muted); }
.as-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.as-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.as-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 88%; }
.as-msg.me { align-self: flex-end; align-items: flex-end; }
.as-bubble { padding: 10px 13px; border-radius: 16px; background: var(--line-2); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.as-msg.me .as-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.as-msg.bot .as-bubble { border-bottom-left-radius: 4px; }
.as-bubble a { color: var(--brand); font-weight: 600; }
.as-person { border: 1px solid var(--line); background: var(--card); color: var(--brand); border-radius: var(--r-pill); padding: 6px 12px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.as-typing { display: inline-flex; gap: 4px; }
.as-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: as-dot 1s infinite ease-in-out; }
.as-typing span:nth-child(2) { animation-delay: .15s; } .as-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes as-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.as-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.as-suggest[hidden] { display: none; }
.as-chip { border: 1px solid var(--line); background: var(--card-2, var(--card)); color: var(--ink); border-radius: var(--r-pill); padding: 7px 12px; font: inherit; font-size: .8rem; cursor: pointer; }
.as-chip:hover { border-color: var(--brand); color: var(--brand); }
/* Assistant avatar and topics (2.25.0). */
.as-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: block; box-shadow: 0 2px 6px rgba(15, 23, 42, .15); }
.as-avatar.lg { width: 40px; height: 40px; }
.as-launch .as-avatar { width: 30px; height: 30px; margin: -4px 0 -4px -6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.as-who { display: flex; align-items: center; gap: 10px; }
.as-row { display: flex; align-items: flex-end; gap: 8px; }
.as-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.as-msg.bot { max-width: 94%; }
.as-topics-title { padding: 2px 2px 6px; }
.as-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.as-topic { display: flex; align-items: center; gap: 7px; text-align: left; border: 1px solid var(--line); background: var(--card-2, var(--card)); color: var(--ink); border-radius: 12px; padding: 9px 10px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; line-height: 1.25; }
.as-topic .ic { color: var(--brand); flex: none; }
.as-topic:hover { border-color: var(--brand); color: var(--brand); }
.as-topic-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 8px; }
.as-qs { display: flex; flex-wrap: wrap; gap: 6px; }
.as-chip-person { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.as-suggest { max-height: 46%; overflow-y: auto; }
.as-head-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.as-end { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: var(--r-pill); padding: 5px 11px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.as-end:hover { border-color: #dc2626; color: #dc2626; }
.as-end[hidden] { display: none; }
.as-restart { text-align: center; padding: 4px 0 2px; }
.as-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-2); }
.as-input input, .as-form input, .as-form textarea { flex: 1; min-width: 0; width: 100%; border: 1px solid var(--line); background: var(--input); color: var(--ink); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; font-size: 16px; }
.as-form { padding: 14px; display: grid; gap: 8px; overflow-y: auto; }
body.on-auth #assistant, body.intro-on #assistant { display: none; }
@media (max-width: 720px) {
  .as-launch { right: 12px; bottom: calc(136px + env(safe-area-inset-bottom)); padding: 12px; }
  .as-launch span { display: none; }
  .as-panel { right: 8px; left: 8px; width: auto; bottom: calc(72px + env(safe-area-inset-bottom)); height: min(560px, calc(100vh - 150px)); }
}
@media print { #assistant { display: none !important; } }
/* The chat panel is always solid (some pages use see-through cards) and hides the Feedback button while open. */
.as-panel { background: #ffffff; }
:root[data-theme="dark"] .as-panel { background: #0c1530; }
body.as-open .feedback-fab { display: none; }

/* Voice messages ("Describe it") */
.voice-btn { gap: 6px; }
.voice-btn.recording { color: #fff; background: #e5484d; border-color: #e5484d; }
.voice-btn.recording svg { animation: voice-pulse 1.1s ease-in-out infinite; }
@keyframes voice-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .voice-btn.recording svg { animation: none; } }

/* Compact outcomes: one row per card (icon, question, starting price), no description. */
.outcome-grid.compact { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.outcome-grid.compact .outcome-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border-radius: var(--r); }
.outcome-grid.compact .svc-ic { grid-row: 1 / span 2; width: 40px; height: 40px; }
.outcome-grid.compact h3 { margin: 0; font-size: .95rem; line-height: 1.3; }
.outcome-grid.compact p { display: none; }
.outcome-grid.compact .from { font-size: .8rem; }
#outcomes .section-title { margin-bottom: 22px; }
.outcome-card[hidden] { display: none; }

/* Compact execution layer: icon beside the text, tighter cards and section. */
.layer.compact { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(32px, 5vw, 64px); }
.layer.compact .section-title { margin-bottom: 20px; }
.layer.compact .section-title h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.layer.compact .layer-grid { gap: 12px; }
.layer.compact .layer-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--r); }
.layer.compact .layer-ic { width: 38px; height: 38px; border-radius: 11px; grid-row: 1 / span 2; }
.layer.compact .layer-card h3 { font-size: 1rem; margin: 0 0 3px; }
.layer.compact .layer-card p { font-size: .87rem; line-height: 1.45; }
/* Four outcomes first: one row of 4 on desktop, 2 × 2 on tablets, a single column on phones. */
.outcome-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .outcome-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .outcome-grid.compact { grid-template-columns: minmax(0, 1fr); } }
#outcomes { padding-bottom: clamp(12px, 2vw, 24px); }
.layer.compact { padding-top: clamp(16px, 3vw, 32px); }

/* ---------- Teams, client workspaces, job messages, review links (views/team.js, views/jobthread.js) ---------- */
.team-list { list-style: none; padding: 0; margin: 10px 0 0; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.team-row:last-child { border-bottom: 0; }
.team-who { flex: 1; min-width: 180px; }
.avatar.sm { width: 34px; height: 34px; font-size: .78rem; flex: 0 0 34px; }
.ws-bar select, .team-row select, .ws-for select { max-width: 100%; }
.ws-opts { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.ws-for { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 0 16px; }
.ws-for select { padding: 6px 10px; border-radius: var(--r-xs); }
.ws-for-pick select { border: 2px solid var(--warn, #d97706); font-weight: 600; } /* 2.47.24: no workspace chosen yet */
.btn.icon-only { padding-left: 9px; padding-right: 9px; } /* 2.47.26: trash-can delete on the All workspaces list */
.ws-current { display: inline-flex; align-items: baseline; gap: 4px; margin-left: 16px; }
.ix-top .ws-current + .ws-for { margin-left: 12px; }
.msgs { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; max-height: 460px; overflow-y: auto; }
.msg { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--card); max-width: 92%; }
.msg.mine { margin-left: auto; background: var(--line-2); }
.msg.by-client { border-color: #fde68a; }
.msg-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.msg-h .tiny { margin-left: auto; }
.msg-b { white-space: normal; overflow-wrap: anywhere; }
.msg-file { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.msg-form textarea { width: 100%; }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.admin-list li a:hover { background: var(--line-2); }
@media (max-width: 560px) { .ws-for { margin: 8px 0 0; width: 100%; } .msg { max-width: 100%; } }

/* 2.12.2: credits shown second, after the price */
.cr-sub { font-weight: 400; opacity: .75; }
.plan-unlocks li { margin: 2px 0; }
