/* Kenny's Lab – design system. Mobile first; breakpoints at 640px, 900px, 1200px. */

@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #07090f;
  --bg-2: #0b0f18;
  --surface: #10151f;
  --surface-2: #151c29;
  --line: rgba(160, 174, 200, .14);
  --line-strong: rgba(160, 174, 200, .28);
  --text: #e9edf4;
  --muted: #a1abbd;
  --dim: #8a94a8;
  --accent: #29d7a7;
  --accent-ink: #03140f;
  --accent-soft: rgba(41, 215, 167, .12);
  --violet: #8b93ff;
  --danger: #ff7a7a;
  --warn: #ffd166;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
ul { padding-left: 1.2em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }

/* ---------- buttons ---------- */
.btn { --b: var(--line-strong); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--b); background: transparent; color: var(--text); font: 600 .97rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn:hover { color: var(--text); border-color: var(--text); transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -10px rgba(41, 215, 167, .6); }
.btn--primary:hover { color: var(--accent-ink); background: #4ee6bb; border-color: #4ee6bb; box-shadow: 0 10px 36px -8px rgba(41, 215, 167, .75); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 9, 15, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo svg { width: 32px; height: 32px; }
.logo .dot { color: var(--accent); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { position: fixed; inset: 72px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; display: none; }
.site-nav.is-open { display: block; animation: drop .25s var(--ease); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-nav a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); }
.site-nav .btn { margin-top: 16px; width: 100%; color: var(--accent-ink); border-bottom: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 6px; }
  .site-nav a { border: 0; padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
  .site-nav a[aria-current='page'] { background: var(--surface-2); }
  .site-nav .btn { margin: 0 0 0 10px; width: auto; padding: 8px 18px; min-height: 40px; color: var(--accent-ink); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 10vw, 120px) clamp(64px, 10vw, 120px); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -1px 0 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%); opacity: .55; }
.hero::after { content: ''; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -260px; background: radial-gradient(circle, rgba(41, 215, 167, .16), transparent 62%), radial-gradient(circle at 30% 70%, rgba(139, 147, 255, .14), transparent 55%); filter: blur(10px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.hero h1 .hl { background: linear-gradient(100deg, var(--accent) 10%, #9ff3dc 50%, var(--violet) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 32px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font: .8rem/1.2 var(--mono); color: var(--muted); margin-bottom: 26px; background: rgba(16, 21, 31, .6); }
.status-pill .led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(41, 215, 167, 0); } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font: .82rem/1.4 var(--mono); color: var(--dim); list-style: none; padding: 0; }
.hero-meta li::before { content: '✓ '; color: var(--accent); }

/* lab console visual */
.console { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(21, 28, 41, .9), rgba(12, 16, 25, .92)); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: .75rem/1 var(--mono); color: var(--dim); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3242; }
.console-bar span { margin-left: auto; }
.console svg { width: 100%; height: auto; }
.console .node rect { fill: #121927; stroke: var(--line-strong); }
.console .node text { fill: var(--text); font: 500 13px var(--display); }
.console .node .sub { fill: var(--dim); font: 10px var(--mono); }
.console .core rect { fill: rgba(41, 215, 167, .1); stroke: var(--accent); }
.console .wire { fill: none; stroke: rgba(160, 174, 200, .28); stroke-width: 1.2; stroke-dasharray: 4 5; animation: flow 1.6s linear infinite; }
.console .pulse { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.console .pulse.v { fill: var(--violet); filter: drop-shadow(0 0 6px var(--violet)); }
@keyframes flow { to { stroke-dashoffset: -18; } }
.console-log { margin: 0; padding: 14px 18px 18px; border-top: 1px solid var(--line); font: .78rem/1.8 var(--mono); color: var(--muted); list-style: none; }
.console-log b { color: var(--accent); font-weight: 400; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .3s, transform .3s var(--ease), background .3s; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; display: flex; flex-direction: column; color: var(--text); overflow: hidden; }
.card--link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(41, 215, 167, .1), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card--link:hover { color: var(--text); border-color: rgba(41, 215, 167, .45); transform: translateY(-3px); }
.card--link:hover::after { opacity: 1; }
.card .more { margin-top: auto; padding-top: 20px; font: 500 .85rem/1 var(--mono); color: var(--accent); }
.card-num { font: .75rem/1 var(--mono); color: var(--dim); position: absolute; top: 24px; right: 24px; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; border: 1px solid rgba(41, 215, 167, .25); }
.icon svg { width: 24px; height: 24px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font: .8rem/1.4 var(--mono); color: var(--muted); }

/* ---------- service detail ---------- */
.service { display: grid; gap: 32px; padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
@media (min-width: 1000px) { .service { grid-template-columns: 5fr 7fr; gap: 64px; } .service-intro { position: sticky; top: 104px; align-self: start; } }
.service-intro .icon { width: 56px; height: 56px; }
.service-blocks { display: grid; gap: 16px; }
@media (min-width: 640px) { .service-blocks { grid-template-columns: 1fr 1fr; } .service-blocks .wide { grid-column: 1 / -1; } }
.service-blocks h3 { font-size: 1.05rem; font-family: var(--mono); font-weight: 400; letter-spacing: 0; color: var(--accent); text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 5px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2329d7a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: .8rem/1 var(--mono); color: var(--accent); margin-bottom: 16px; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border: 1px solid rgba(41, 215, 167, .3); border-radius: 28px; padding: clamp(32px, 6vw, 72px); background: radial-gradient(600px circle at 90% 0%, rgba(41, 215, 167, .18), transparent 60%), radial-gradient(500px circle at 0% 100%, rgba(139, 147, 255, .14), transparent 60%), var(--surface); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: var(--muted); margin: 0; max-width: 56ch; }

/* ---------- page header ---------- */
.page-head { padding-block: clamp(56px, 9vw, 104px) clamp(24px, 4vw, 40px); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 60% 80% at 80% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 0%, #000, transparent 70%); opacity: .5; }
.page-head h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); max-width: 18ch; }
.subnav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 4px; margin-top: 28px; list-style: none; scrollbar-width: none; }
.subnav a { white-space: nowrap; display: block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: .9rem; color: var(--muted); }
.subnav a:hover { color: var(--text); border-color: var(--text); }

/* ---------- prose (legal) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { color: #cfd5e0; }
.prose address { font-style: normal; }
.todo { display: inline; background: rgba(255, 209, 102, .14); color: var(--warn); border: 1px dashed rgba(255, 209, 102, .7); border-radius: 6px; padding: 1px 6px; font: .9em/1.6 var(--mono); }
.notice { border: 1px solid rgba(255, 209, 102, .45); background: rgba(255, 209, 102, .07); border-radius: var(--radius); padding: 18px 20px; color: #f3e3b5; margin-bottom: 32px; }
.notice strong { color: var(--warn); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 500; font-size: .95rem; }
.field .opt { color: var(--dim); font-weight: 400; font-size: .85rem; }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'], input[type='number'], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--danger); }
::placeholder { color: #6c768a; }
.field-error { color: var(--danger); font-size: .88rem; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-error { background: rgba(255, 122, 122, .1); border: 1px solid rgba(255, 122, 122, .4); color: #ffc2c2; }
.form-status.is-success { background: var(--accent-soft); border: 1px solid rgba(41, 215, 167, .4); color: #b9f5e3; }
.form-status.is-pending { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; background: var(--bg-2); font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 400 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--dim); font-size: .85rem; }

/* ---------- floating Kenny launcher ---------- */
.kenny-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid rgba(41, 215, 167, .45); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9); transition: transform .25s var(--ease), border-color .2s; }
.kenny-fab:hover { color: var(--text); transform: translateY(-2px); border-color: var(--accent); }
.kenny-fab .avatar { width: 36px; height: 36px; }
@media (min-width: 900px) { .kenny-fab { right: 28px; bottom: 28px; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .console .pulse { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- home: Kenny preview ---------- */
.chat-preview { padding: 20px; display: grid; gap: 12px; }
.cp-msg { display: flex; gap: 10px; align-items: flex-end; }
.cp-msg .avatar { width: 30px; height: 30px; flex: none; }
.cp-msg p { margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; max-width: 85%; }
.cp-msg--user { justify-content: flex-end; }
.cp-msg--user p { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 14px 14px 4px 14px; font-weight: 500; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 40px; }
.cp-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .8rem; color: var(--muted); }
.cp-chips .is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ref-empty { text-align: center; padding-block: clamp(40px, 6vw, 72px); border-style: dashed; }
.ref-empty .eyebrow::before { display: none; }
.ref-empty .lead { margin-inline: auto; }
.h3-size { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
.contact-details { margin-top: 18px; }
.icon .avatar { width: 32px; height: 32px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 4px 0 18px; }
