/* Client Brief (/tools/client-brief). Prefix cb-. body.cb-client = the client's view (questions one at a time);
   body.cb-reading = the brief that came back. */
.cb-app { margin-top: clamp(28px, 4vw, 44px); }
.cb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.cb-col { display: grid; gap: 10px; } .cb-col > .label { margin: 0 0 4px; } .cb-gap { margin: 14px 0 0; }
.cb-qs { list-style: none; margin: 0; padding: 0; display: grid; } .cb-qs li { border-top: 1px solid var(--line); }
.cb-qs label { display: flex; gap: 10px; padding: 9px 2px; cursor: pointer; font-size: 0.93rem; } .cb-qs input { accent-color: var(--ember); margin-top: 3px; }
.cb-qs li:has(input:not(:checked)) span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.cb-send { margin-top: clamp(24px, 3vw, 36px); border: 1px solid var(--ember); padding: clamp(18px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px 32px; align-items: center; }
.cb-send .label { margin: 0; } .cb-send h2 { font-family: var(--serif, inherit); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 4px 0 6px; } .cb-send .tl-help { margin: 0; }
.cb-linkrow { display: flex; flex-wrap: wrap; gap: 10px; } .cb-linkrow input { flex: 1 1 100%; min-width: 0; font: 0.8rem/1.4 var(--mono, monospace); padding: 12px; background: transparent; color: inherit; border: 1px solid var(--line); }
.cb-send [data-msg] { grid-column: 2; margin: 0; }
/* the client's view */
body.cb-client .tl-hero, body.cb-client .cb-ref, body.cb-client .mt, body.cb-client .ps-faq, body.cb-client .tl-end, body.cb-client [id="method"] { display: none; }
body.cb-client .cb-app { margin-top: clamp(20px, 6vh, 64px); min-height: 70vh; }
.cb-run { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.cb-run h2 { font-family: var(--serif, inherit); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.06; margin: 0; outline: 0; } .cb-run h2 em { font-style: italic; color: var(--ember); }
.cb-run > .label, .cb-intro > .label { margin: 0; }
.cb-intro { display: grid; gap: 16px; justify-items: start; }
.cb-note { margin: 0; padding: 16px 18px; border-left: 2px solid var(--ember); font-family: var(--serif, inherit); font-size: 1.2rem; line-height: 1.45; } .cb-note span { display: block; margin-top: 8px; font: 500 0.7rem/1 var(--mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cb-prog { height: 2px; background: var(--line); } .cb-prog span { display: block; height: 100%; background: var(--ember); transition: width 0.4s ease; }
.cb-field { display: grid; gap: 12px; margin-top: 8px; } .cb-field textarea { min-height: 140px; } .cb-date { max-width: 260px; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-chip { font: inherit; font-size: 0.95rem; padding: 10px 16px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; border-radius: 999px; }
.cb-chip:hover { border-color: var(--muted); } .cb-chip.on { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 14%, transparent); }
.cb-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; } .cb-nav [disabled] { opacity: 0.35; }
.cb-done { display: grid; gap: 14px; } .cb-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .cb-done [data-msg] { margin: 0; }
/* the brief */
.cb-sheet { border: 1px solid var(--line); padding: clamp(18px, 3vw, 34px); display: grid; gap: 22px; margin-top: 6px; }
.cb-sheet > section, .cb-sheet > header { padding: 0; margin: 0; min-height: 0; }
.cb-sheet header .label { margin: 0; } .cb-sheet h3 { font-family: var(--serif, inherit); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 6px 0 4px; line-height: 1.05; }
.cb-who { margin: 0; color: var(--muted); font-size: 0.92rem; } .cb-who a { color: inherit; }
.cb-sheet h4 { margin: 0 0 6px; font: 500 0.68rem/1 var(--mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.cb-sheet dl { margin: 0; } .cb-sheet dl > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.cb-sheet dt { color: var(--muted); font-size: 0.9rem; line-height: 1.45; } .cb-sheet dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.cb-sheet > .cb-fu { padding: 16px 18px; }
.cb-fu { border: 1px solid color-mix(in srgb, var(--ember) 45%, transparent); padding: 16px 18px; } .cb-fu ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; } .cb-fu b { font-weight: 600; margin-right: 4px; }
.cb-made { margin: 0; font-size: 0.78rem; color: var(--muted); }
body.cb-reading .tl-hero, body.cb-reading .cb-ref, body.cb-reading .ps-faq, body.cb-reading [id="method"] { display: none; }
body.cb-reading .cb-app { margin-top: clamp(20px, 5vh, 48px); } .cb-read { display: grid; gap: 12px; max-width: 900px; }
.cb-next { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .cb-next .label { margin: 0 8px 0 0; width: 100%; }
/* reference list on the page */
.cb-ref { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px clamp(24px, 4vw, 56px); margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); align-items: start; }
.cb-ref h2 { font-family: var(--serif, inherit); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; margin: 6px 0 12px; } .cb-ref h2 em { font-style: italic; color: var(--ember); }
.cb-ol { margin: 0; padding: 0; list-style: none; counter-reset: q; } .cb-ol li { counter-increment: q; display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 10px 0; border-top: 1px solid var(--line); }
.cb-ol li::before { content: counter(q, decimal-leading-zero); grid-row: span 2; font: 500 0.72rem/1.7 var(--mono, monospace); color: var(--ember); } .cb-ol b { font-weight: 500; } .cb-ol span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 900px) { .cb-setup, .cb-ref, .cb-send { grid-template-columns: minmax(0, 1fr); } .cb-send [data-msg] { grid-column: auto; } }
@media (max-width: 560px) { .cb-two, .cb-sheet dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .cb-prog span { transition: none; } }
@media print { body.cb-reading > *:not(main), body.cb-reading main > *:not(.tl), body.cb-reading .tl .wrap > *:not(.cb-app), body.cb-reading .cb-acts { display: none !important; } body.cb-reading { background: #fff; color: #111; } body.cb-reading .cb-sheet { border: 0; padding: 0; } }
