/* Logic Talk AI client portal, v0.5.
   Layout borrowed from the portals clients rate highest: a calm sidebar with progress + phases, one wide reading column,
   generous type. Fonts: Manrope for headings, Inter for text (loaded from portal.html with preconnect). */
:root {
  --purple: #7C4DFF;
  --violet: #6C3CE0;
  --blue: #4A90D9;
  --dark: #151829;
  --ink: #1F2237;
  --text: #33364D;
  --muted: #6B7085;
  --faint: #9DA1B4;
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #F1F2F8;
  --line: #E6E8F0;
  --line-strong: #D6D9E4;
  --ok: #1F9D6A;
  --ok-text: #0F6B45;
  --ok-bg: #E8F7F0;
  --red: #B42318;
  --red-bg: #FDECEC;
  --amber: #E0A100;
  --amber-text: #7A4B00;
  --amber-bg: #FFF4DF;
  --purple-bg: #F3EEFF;
  --white: #FFFFFF;
  --dark-old: #1A1A2E;
  --gradient: linear-gradient(90deg, #7C4DFF, #6C3CE0, #4A90D9);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 24, 41, 0.05), 0 8px 24px rgba(21, 24, 41, 0.05);
  --shadow-sm: 0 1px 2px rgba(21, 24, 41, 0.05);
  --ring: 0 0 0 3px rgba(124, 77, 255, 0.35);
  --font-head: 'Manrope', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0 0 8px 0; font-family: var(--font-head); letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; color: var(--purple); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.card.narrow { max-width: 460px; width: 100%; text-align: center; padding: 34px 30px; box-shadow: var(--shadow); }
.card.narrow .brand { margin-bottom: 18px; }
.card.narrow form { margin-top: 8px; }

/* ---------- shell: sidebar + reading column ---------- */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.side { background: var(--dark); color: #E6E7F2; padding: 22px 20px 24px; background-image: radial-gradient(900px 500px at 100% -40%, rgba(124, 77, 255, 0.35), transparent 60%); }
.side-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.side .brand { color: #C7B3FF; }
.side h1 { color: #fff; font-size: 28px; margin: 0 0 6px; word-break: break-word; }
.side .sub { color: #B9BCD3; font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.signout { background: none; border: 1px solid rgba(255,255,255,0.22); color: #E4E6F5; border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 40px; }
.signout:hover { border-color: rgba(255,255,255,0.5); }

/* progress ring */
.ring-wrap { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.ring { width: 96px; height: 96px; flex: 0 0 96px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-bg { stroke: rgba(255,255,255,0.12); }
.ring-fill { stroke: url(#ringGrad); stroke: #9E7BFF; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 0.8s var(--ease); }
.ring-text { display: flex; flex-direction: column; }
.ring-text .pct { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
.ring-text .lbl { color: #B9BCD3; font-size: 14px; margin-top: 4px; }

/* phase list */
ol.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
ol.stepper li { display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 6px; align-items: center; padding: 10px 12px; border-radius: 12px; color: #C9CBE0; cursor: pointer; transition: background 0.15s; }
ol.stepper li:hover { background: rgba(255,255,255,0.06); }
ol.stepper li.current { background: rgba(255,255,255,0.08); color: #fff; }
ol.stepper li.done { color: #9DA1BD; }
ol.stepper .k { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: rgba(255,255,255,0.10); color: #fff; }
ol.stepper li.current .k { background: var(--purple); }
ol.stepper li.done .k { background: var(--ok); }
ol.stepper .pn { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
ol.stepper .pc { font-size: 13px; color: #9DA1BD; white-space: nowrap; }
ol.stepper .pb { grid-column: 2 / 4; height: 5px; background: rgba(255,255,255,0.10); border-radius: 3px; overflow: hidden; }
ol.stepper .pb i { display: block; height: 100%; background: linear-gradient(90deg, #9E7BFF, #4A90D9); border-radius: 3px; transition: width 0.6s var(--ease); }
ol.stepper li.done .pb i { background: var(--ok); }

/* mobile mini progress (hidden on desktop) */
.mini { display: none; align-items: center; gap: 10px; margin: 2px 0 10px; font-size: 13px; color: #C9CBE0; flex-wrap: wrap; }
.mini b { flex: 1 1 120px; height: 8px; background: rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; display: block; }
.mini b i { display: block; height: 100%; background: linear-gradient(90deg, #9E7BFF, #4A90D9); border-radius: 4px; transition: width 0.6s var(--ease); }
.mini span { white-space: nowrap; }
.mini .linkbtn { color: #C7B3FF; font-size: 14px; padding: 6px 0; min-height: 0; }
ol.stepper li.later { opacity: 0.7; }
.helpcard-main { display: none; margin-top: 24px; font-size: 15px; }
.footsign { display: none; }

/* payments summary */
.money { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.money h3 { color: #fff; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 6px; }
.money button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; color: #E6E7F2; font: inherit; font-size: 14px; padding: 7px 0; cursor: pointer; text-align: left; border-top: 1px solid rgba(255,255,255,0.08); }
.money button:first-of-type { border-top: 0; }
.money .amt { font-family: var(--font-head); font-weight: 700; }
.money .st { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.money .st.ok { background: rgba(31,157,106,0.35); color: #D7F5E7; }
.money .st.due { background: rgba(224,161,0,0.35); color: #FFE8B8; }
.helpcard { font-size: 14px; color: #B9BCD3; line-height: 1.55; }
.helpcard strong { color: #fff; }
.helpcard a { color: #C7B3FF; }
/* every link a finger can hit: 24 px minimum (WCAG 2.2 AA 2.5.8) */
.helpcard a, .helpcard-main a, footer.foot a { display: inline-block; min-height: 24px; line-height: 24px; padding: 2px 0; }

/* money card on the main column: what is due now, what is paid, and who confirms it */
.card.moneycard { margin: 0 0 14px; padding: 22px 22px 18px; }
.card.moneycard h2 { font-size: 20px; margin-bottom: 4px; }
.card.moneycard > p { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
ul.moneylist { list-style: none; margin: 0; padding: 0; }
ul.moneylist li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
ul.moneylist li:first-child { border-top: 0; }
ul.moneylist .what { flex: 1 1 160px; min-width: 0; font-weight: 600; color: var(--ink); }
ul.moneylist .what small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
ul.moneylist .amt { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--ink); }
ul.moneylist .btn.small { flex: 0 0 auto; }
.card.moneycard .fine { margin-top: 12px; }

main.wrap { max-width: 820px; margin: 0 auto; padding: 22px 16px 80px; width: 100%; }

.banner { background: var(--ok-bg); border: 1px solid #BFE8D3; color: var(--ok-text); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 14px; font-size: 16px; }
.banner.info { background: #EEF6FF; border-color: #BFD8F5; color: #14406B; }
.banner.error { background: var(--red-bg); border-color: #F3C2C2; color: #7A1F1F; }

.card.status { margin: 0 0 14px; border-left: 4px solid var(--ok); padding: 18px 22px; }
.card.status h2 { font-size: 19px; margin-bottom: 4px; }
.card.status p { margin: 0; color: var(--muted); font-size: 16px; }

/* next up */
.card.nextup { margin: 0 0 14px; padding: 26px 24px 14px; box-shadow: var(--shadow); }
.card.nextup h2 { margin-bottom: 4px; font-size: 24px; }
.card.nextup > p { margin-bottom: 10px; color: var(--muted); }
ul.nextlist { list-style: none; margin: 0; padding: 0; counter-reset: n; }
ul.nextlist li { counter-increment: n; }
ul.nextlist button { display: flex; width: 100%; align-items: center; gap: 14px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 16px 6px; font: inherit; color: var(--ink); cursor: pointer; min-height: 60px; border-radius: 0; transition: background 0.15s; }
ul.nextlist li:first-child button { border-top: 0; }
ul.nextlist button:hover { background: #FAFAFE; }
ul.nextlist button::before { content: counter(n); flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--purple); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
ul.nextlist .t { font-family: var(--font-head); font-weight: 700; font-size: 18px; flex: 1; min-width: 0; line-height: 1.3; }
ul.nextlist .chip { flex: 0 0 auto; }

/* connections */
.card.connections { margin: 0 0 14px; padding: 22px 22px 16px; }
.card.connections h2 { font-size: 20px; }
.card.connections > p { font-size: 15px; color: var(--muted); }
ul.connlist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
ul.connlist li { min-width: 0; }
ul.connlist button { display: flex; width: 100%; max-width: 100%; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-align: left; min-height: 50px; transition: border-color 0.15s, background 0.15s; }
ul.connlist button:hover { border-color: #C7B3FF; background: #FBFAFF; }
ul.connlist .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: 0 0 10px; }
ul.connlist .dot.ok { background: var(--ok); }
ul.connlist .dot.wait { background: var(--amber); }
ul.connlist .n { font-weight: 600; flex: 1; font-size: 15px; min-width: 0; white-space: normal; line-height: 1.3; }
ul.connlist .s { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (min-width: 640px) { ul.connlist { grid-template-columns: 1fr 1fr; } }

/* ---------- phases ---------- */
section.group { margin-top: 34px; scroll-margin-top: 16px; }
/* flex-wrap + min-width 0: on a 390 px phone "3 Launch" + "0 of 20 done, 1 with Franco" used to force the whole page 19 px wide (v0.6.3 fix) */
section.group > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 0 4px 10px; }
section.group > header h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; min-width: 0; }
section.group > header .count { font-size: 14px; color: var(--muted); }
section.group .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 14px; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 30px; }
section.group .num.ok { background: var(--ok); }
.phasenote { color: var(--muted); border-left: 3px solid #E4DDFB; padding-left: 12px; margin: 0 4px 14px; font-size: 15px; }
.confirm-all { margin: 12px 0 6px; }

/* item rows */
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--line-strong); transition: box-shadow 0.25s var(--ease), border-color 0.2s; }
.item.open { box-shadow: var(--shadow); }
.item.blocking { border-left-color: var(--purple); }
.item.done, .item.received, .item.paid { border-left-color: var(--ok); }
.item.done:not(.open), .item.received:not(.open), .item.paid:not(.open) { background: #FBFBFD; }
.item.changes, .item.waiting { border-left-color: var(--amber); }
.item.flash { animation: flash 1.6s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px #C7B3FF; } 100% { box-shadow: var(--shadow); } }
.rowhead { display: flex; width: 100%; align-items: center; gap: 14px; padding: 18px 18px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-height: 64px; border-radius: var(--radius); }
.rowhead:hover { background: #FAFAFE; }
.rowhead .main { flex: 1; min-width: 0; }
.rowhead .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 5px; }
.rowhead .kind { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.rowhead .title { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.3; }
.rowhead .pill { flex: 0 0 auto; }
.rowhead .chev { flex: 0 0 24px; width: 24px; height: 24px; color: var(--faint); transition: transform 0.25s var(--ease); }
.item.open .rowhead .chev { transform: rotate(180deg); }
/* smooth open/close without measuring heights */
.item .body { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 0.28s var(--ease), opacity 0.2s ease, visibility 0s linear 0.28s; }
.item.open .body { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows 0.28s var(--ease), opacity 0.25s ease 0.05s, visibility 0s; }
.item .body > .inner { overflow: hidden; min-height: 0; padding: 0 22px 0; }
.item.open .body > .inner { padding-bottom: 22px; }
.item .why { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.item .done-note { color: var(--ok-text); font-size: 15px; margin: 0 0 10px; }

.pill { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 5px 11px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok-text); }
.pill.purple { background: var(--purple-bg); color: var(--violet); }
.pill.amber { background: var(--amber-bg); color: var(--amber-text); }
.chip { font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.red { background: var(--red-bg); color: #8A1C1C; }
.chip.amber { background: var(--amber-bg); color: var(--amber-text); }
.chip.purple { background: var(--purple-bg); color: var(--violet); }
.chip.new { background: var(--purple); color: #fff; }

/* controls */
.btn { font: inherit; font-weight: 600; font-size: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 12px 18px; cursor: pointer; min-height: 48px; transition: background 0.15s, border-color 0.15s, transform 0.08s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { border-color: var(--faint); background: #FCFCFE; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn.primary:hover { background: var(--violet); border-color: var(--violet); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.wide { width: 100%; }
.btn.small { min-height: 42px; padding: 8px 14px; font-size: 15px; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn.choice { text-align: left; width: 100%; margin-bottom: 10px; justify-content: flex-start; flex-wrap: wrap; padding: 14px 18px; }
.btn.choice.selected { border-color: var(--purple); background: var(--purple-bg); color: var(--violet); }
.btn.choice.selected::before { content: '\2713'; font-weight: 800; margin-right: 4px; }
.btn.choice .tag { font-size: 13px; color: var(--purple); font-weight: 600; margin-left: 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.linkbtn { background: none; border: 0; padding: 10px 0; font: inherit; font-size: 15px; color: var(--blue); cursor: pointer; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }

textarea, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"] {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 15px; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 120px; resize: vertical; }
textarea:focus, input:focus { outline: none; box-shadow: var(--ring); border-color: var(--purple); }
label.lbl { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.status-line { font-size: 15px; color: var(--muted); margin-top: 10px; }
.status-line.error { color: var(--red); }
.status-line.ok { color: var(--ok-text); }
.saved { font-size: 14px; color: var(--ok-text); }
.keynote { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* upload */
.drop { display: block; border: 2px dashed #CFC4F5; border-radius: 14px; padding: 24px; text-align: center; color: var(--muted); background: #FAF8FF; cursor: pointer; transition: background 0.15s, border-color 0.15s; font-size: 16px; }
.drop.over, .drop:focus-within { background: var(--purple-bg); border-color: var(--purple); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop strong { color: var(--violet); }
.files { list-style: none; padding: 0; margin: 12px 0 0; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.files li .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--ink); flex: 1; }
.files li .size { color: var(--muted); white-space: nowrap; font-size: 13px; }
.files li .rm { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 8px 4px; min-height: 40px; }
.files.docs a.name { color: var(--blue); font-weight: 600; }

/* account guide */
ol.guide { margin: 4px 0 14px; padding-left: 24px; }
ol.guide li { margin: 10px 0; padding-left: 6px; }
ol.guide li::marker { font-weight: 700; color: var(--purple); }
ol.guide a { word-break: break-all; }
.trust { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; color: var(--text); margin: 14px 0 8px; }
.keyrow { display: flex; gap: 8px; align-items: center; }
.keyrow input { flex: 1; min-width: 0; }
.btn.video { color: var(--violet); border-color: #E4DDFB; background: #FAF8FF; margin-bottom: 12px; }
.helpbox { margin-top: 8px; }
.noteform { margin-top: 8px; }
.noteform textarea { min-height: 70px; }
.noteform input { margin-top: 6px; }
.reviewform textarea { min-height: 80px; margin-bottom: 10px; }
.notes { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 4px; }
.note { font-size: 15px; color: var(--text); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; }
.note .who { font-weight: 600; color: var(--ink); }

/* payment */
.amount { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--ink); margin: 4px 0 12px; letter-spacing: -0.02em; }
.payways { display: grid; gap: 8px; margin: 8px 0; }
.payways .btn { justify-content: space-between; }
.invno { font-family: var(--font-body); color: var(--muted); font-size: 15px; font-weight: 500; }

/* new-since-last-visit list, upload progress, inline remove, payment report row, help button */
ul.newlist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.newlist button { font: inherit; font-size: 14px; font-weight: 600; background: var(--purple-bg); color: var(--violet); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.upprog { width: 100%; height: 8px; margin: 10px 0 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--surface-2); accent-color: var(--purple); }
.upprog::-webkit-progress-bar { background: var(--surface-2); border-radius: 4px; }
.upprog::-webkit-progress-value { background: var(--purple); border-radius: 4px; }
.rmwrap { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.files li .rm.yes { color: var(--red); font-weight: 600; }
.linkrow { margin-top: 12px; }
.reportrow { display: grid; gap: 8px; margin: 12px 0 4px; }
.helpbtn { margin-bottom: 12px; }
.guidehead { margin: 6px 0 2px; }
section.group.later > header { opacity: 0.75; }
.sendbtn { }

/* completion */
.card.complete { margin: 0 0 14px; text-align: center; padding: 34px 24px; box-shadow: var(--shadow); }
.card.complete h2 { font-size: 26px; }

footer.foot { text-align: center; color: var(--faint); font-size: 13px; padding: 30px 16px 10px; }

/* ---------- desktop: sidebar sticks, reading column widens ---------- */
@media (min-width: 960px) {
  .shell { grid-template-columns: 320px minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 28px 24px; }
  main.wrap { padding: 34px 40px 100px; max-width: 900px; margin: 0; }
  .card { padding: 28px 28px; }
  .rowhead { padding: 20px 22px; }
  .item .body > .inner { padding: 0 26px 0; }
  .item.open .body > .inner { padding-bottom: 26px; }
  .btn.choice { width: auto; margin-right: 8px; }
}
@media (min-width: 1280px) {
  .shell { grid-template-columns: 340px minmax(0, 1fr); }
  main.wrap { padding: 40px 56px 120px; }
}
@media (max-width: 959px) {
  /* Compact header: name, one line of progress, a phases toggle. Next up is on the first screen. */
  .side { padding: 14px 16px 12px; }
  .side-top { margin-bottom: 8px; }
  .side h1 { font-size: 24px; margin-bottom: 4px; }
  .side .sub { display: none; }
  .ring-wrap, .helpcard { display: none; }
  .money { padding: 8px 12px; margin: 0 0 6px; }
  .money h3 { display: none; }
  .money button { padding: 5px 0; font-size: 13px; }
  .mini { display: flex; }
  ol.stepper { display: none; gap: 4px; margin-bottom: 6px; }
  .side.expanded ol.stepper { display: grid; }
  .side.expanded .sub { display: block; }
  ol.stepper li { padding: 8px 10px; grid-template-rows: auto; }
  ol.stepper .pn { font-size: 15px; }
  ol.stepper .pc { white-space: nowrap; }
  ol.stepper .pb { display: none; }
  ol.stepper li.current .pb { display: block; }
  .signout { padding: 6px 10px; min-height: 34px; font-size: 13px; border-color: transparent; color: #B9BCD3; }
  .helpcard-main { display: block; }
  .footsign { display: inline; margin-left: 10px; }
  .footsign .linkbtn { font-size: 13px; color: var(--faint); min-height: 28px; padding: 2px 6px; }
  .sendbtn { width: 100%; }
}
@media (max-width: 639px) {
  .rowhead .kind { font-size: 11px; }
  .rowhead { padding: 16px 14px; }
  .item .body > .inner { padding: 0 16px 0; }
  .item.open .body > .inner { padding-bottom: 18px; }
  .card { padding: 20px 16px; }
  .card.nextup { padding: 22px 16px 10px; }
  ul.nextlist .t { font-size: 17px; }
}
