/* BeeHill Intelligence — stable light design system */
:root {
  color-scheme: light;
  --ink: #123b28;
  --green: #08783b;
  --green-hover: #06632f;
  --gold: #e6b83f;
  --gold-pale: #fff7df;
  --bg: #ffffff;
  --soft: #f5f9f6;
  --text: #1c2b22;
  --muted: #52645a;
  --line: #dbe5de;
  --head: 'Sora', 'Segoe UI', Arial, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(18, 59, 40, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; padding-top: env(safe-area-inset-top, 0px); background: var(--bg); color: var(--text); font: 18px/1.65 var(--body); }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-hover); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a77700; outline-offset: 3px; }
.skip { position: absolute; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: var(--ink); border: 2px solid var(--green); border-radius: 8px; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 24px; }
h1, h2, h3 { margin: 0 0 14px; color: var(--ink); font-family: var(--head); line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { max-width: 66ch; color: var(--muted); }
section { padding-block: clamp(60px, 8vw, 96px); scroll-margin-top: 78px; }
.soft { background: var(--soft); }
header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.05rem/1.2 var(--head); white-space: nowrap; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 6px; }
.brand b { color: var(--green); }
nav ul { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); list-style: none; padding: 0; margin: 0; }
nav a { color: var(--ink); font-size: .91rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--green); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 8px; padding: 11px 20px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; font: 600 .94rem/1.25 var(--head); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.btn:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--green); background: var(--soft); color: var(--green); }
nav .btn { min-height: 40px; padding: 9px 16px; color: #fff; }
.hero { position: relative; overflow: hidden; background: radial-gradient(700px 380px at 3% 0%, #e3f3e9, transparent 70%), radial-gradient(650px 380px at 100% 45%, #fff4d2, transparent 68%), #fbfdfb; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: radial-gradient(rgba(18,59,40,.08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 0%, transparent 90%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: clamp(30px, 5vw, 64px); min-height: 560px; padding-block: 68px; }
.hero h1 { margin-bottom: 22px; font-size: clamp(3.2rem, 7.4vw, 6rem); }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--green); font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
.hero p { max-width: 48ch; margin-bottom: 24px; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.25rem); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0 0 28px; list-style: none; }
.chips li { padding: 6px 12px; border: 1px solid #d5e5da; border-radius: 999px; background: rgba(255,255,255,.82); color: var(--ink); font-size: .88rem; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mock { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 64px rgba(18,59,40,.12); }
.mh { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: .78rem; }
.mh i { width: 9px; height: 9px; border-radius: 50%; background: #cbd8cf; }
.mh span { margin-left: 7px; }
.mb { padding: 20px; }
.mk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk div { min-width: 0; padding: 12px; border-radius: 12px; background: var(--soft); }
.mk small { display: block; color: var(--muted); font-size: .75rem; }
.mk b { display: block; margin-top: 3px; color: var(--ink); font: 700 clamp(.85rem, 1.5vw, 1.15rem)/1.3 var(--head); overflow-wrap: anywhere; }
.mc { display: flex; align-items: end; gap: 7px; height: 170px; padding: 22px 8px 0; border-bottom: 1px solid var(--line); }
.mc i { flex: 1; min-width: 3px; height: var(--h); border-radius: 4px 4px 0 0; background: var(--green); transform-origin: bottom; animation: grow .65s ease-out both; animation-delay: var(--d); }
.mc i.f { border: 1px dashed #b88911; border-bottom: 0; background: #fff0bd; }
.mn { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
@keyframes grow { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 42px 0 0; padding: 0; list-style: none; }
.flow li { position: relative; padding: 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.flow svg { display: block; width: 46px; height: 46px; margin-bottom: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow h3 { font-size: 1rem; }
.flow p { margin: 0; color: var(--muted); font-size: .92rem; }
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.svc { grid-column: span 2; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 18px rgba(18,59,40,.035); }
.svc:nth-child(1) { grid-column: span 2; background: #fff; color: var(--text); border-color: var(--line); }
.svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
.svc svg { width: 32px; height: 32px; margin-bottom: 16px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1.08rem; }
.svc p { margin: 0; color: var(--muted); font-size: .98rem; }
.about { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(34px, 6vw, 72px); }
.about img { width: min(100%, 400px); margin-inline: auto; border-radius: 16px; }
.about ul { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.about li { position: relative; padding-left: 30px; }
.about li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { padding: 20px 18px 0 0; border-top: 3px solid var(--green); counter-increment: steps; }
.steps li::before { content: "0" counter(steps); display: block; margin-bottom: 14px; color: #9a740c; font: 700 1.8rem/1 var(--head); }
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
.demo-note { display: flex; align-items: flex-start; gap: 12px; margin: 26px 0 20px; padding: 15px 18px; border: 1px solid #e7d18b; border-radius: 14px; background: var(--gold-pale); color: var(--text); font-size: .96rem; }
.demo-note b { color: var(--ink); }
.panel { padding: clamp(16px, 3vw, 26px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.ctrls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 22px; }
.ctrls label { flex: 1 1 145px; color: var(--muted); font-size: .88rem; }
.ctrls select { margin-top: 5px; }
.ctrls .btn { flex: 0 0 auto; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.kpi { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.kl { color: var(--muted); font-size: .85rem; }
.kv { margin: 5px 0; color: var(--ink); font: 700 clamp(1rem, 2vw, 1.45rem)/1.3 var(--head); overflow-wrap: anywhere; }
.kd { font-size: .82rem; font-weight: 600; }
.kd.up { color: #08743a; } .kd.down { color: #a82d2d; } .kd.flat { color: var(--muted); }
.chart-title { margin: 0 0 8px; font-size: 1.05rem; }
.dashboard-cta-note { margin-top: 16px; }
.dashboard-cta { margin-top: 14px; }
.chartbox { position: relative; overflow-x: auto; margin-bottom: 8px; }
.chartbox svg { display: block; width: 100%; min-width: 600px; height: auto; }
.chartbox text { fill: var(--muted); font: 12px var(--body); }
.chartbox .grid { stroke: var(--line); stroke-width: 1; }
.chartbox .bar { fill: var(--green); }
.chartbox .fc { fill: #fff0bd; stroke: #a77700; stroke-dasharray: 4 3; stroke-width: 1.5; }
.chartbox .ml { fill: none; stroke: #a77700; stroke-width: 2.5; }
.chartbox .md { fill: #fff; stroke: #a77700; stroke-width: 2; }
.chartbox .hit { fill: transparent; }
.chartbox .hit:hover { fill: rgba(18,59,40,.07); }
#tip { position: absolute; z-index: 2; display: none; max-width: min(300px, 85%); padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); box-shadow: var(--shadow); font-size: .82rem; line-height: 1.5; pointer-events: none; white-space: normal; }
.tbl { margin: 14px 0 18px; }
.tbl summary { width: fit-content; color: var(--green); font-weight: 600; cursor: pointer; }
.tw { max-width: 100%; overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--soft); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 10px 0 26px; color: var(--muted); font-size: .86rem; }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.cols { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 22px; }
.cols h3 { font-size: 1rem; }
.row { display: grid; width: 100%; gap: 5px; margin: 0 0 5px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.row:hover, .row.on { background: var(--soft); }
.row:focus-visible { outline: 3px solid #a77700; outline-offset: 1px; }
.rl { font-weight: 600; font-size: .94rem; }
.rb { display: block; height: 8px; overflow: hidden; border-radius: 6px; background: var(--line); }
.rb i { display: block; height: 100%; border-radius: 6px; background: var(--green); }
.row.on .rb i { background: #bd8b0a; }
.rv { color: var(--muted); font-size: .85rem; }
.ins { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ins li { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; background: var(--soft); font-size: .92rem; }
.hint { color: var(--muted); font-size: .86rem; }
.contact { background: linear-gradient(135deg, #f1f8f3, #fff9e8); }
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.contact dl { display: grid; gap: 15px; margin-top: 28px; }
.contact dt { color: var(--green); font: 600 .9rem var(--head); }
.contact dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.contact form { display: grid; gap: 15px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.contact label { display: grid; gap: 6px; color: var(--ink); font-size: .93rem; font-weight: 600; }
input, textarea, select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #cbd8cf; border-radius: 10px; background: #fff; color: var(--text); }
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #68786e; }
input:focus, textarea:focus, select:focus { border-color: var(--green); outline: 3px solid rgba(8,120,59,.14); }
form .btn { justify-self: start; }
#fs { margin: 0; font-size: .9rem; }
#fs.ok { color: #08743a; } #fs.err { color: #a82d2d; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.prose { max-width: 820px; }
.prose h1 { margin-bottom: 24px; }
.prose h2 { margin-top: 30px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.prose p, .prose li { max-width: 75ch; }
.prose ul { padding-left: 1.35rem; margin: 0 0 20px; }
.prose li { padding-left: 4px; margin-bottom: 8px; }
.msg { display: grid; min-height: 100svh; place-items: center; padding: 24px; background: linear-gradient(135deg, #f1f8f3, #fff9e8); }
.msg > div { width: min(620px, 100%); padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.msg p { color: var(--muted); }
footer { padding: 30px 0; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
footer .brand { font-size: 1rem; }
footer .brand img { width: 34px; height: 34px; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
dialog { width: min(560px, calc(100% - 28px)); max-height: min(80vh, 700px); overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,.18); }
dialog::backdrop { background: rgba(18, 35, 25, .35); }
dialog h2 { font-size: 1.5rem; }
dialog p { font-size: .98rem; }
.wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid #b7e7c6; border-radius: 999px; background: #e8f8ed; color: #075c2e; box-shadow: 0 8px 24px rgba(18,59,40,.13); font: 600 .9rem var(--head); text-decoration: none; }
.wa:hover { background: #d7f2e0; color: #064a26; }
.wa svg { width: 21px; height: 21px; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.fcr { background: var(--soft); color: var(--muted); font-style: italic; }
.fcr td:first-child { font-weight: 600; }
@media (max-width: 1000px) {
  .hero .wrap { min-height: 0; }
  nav ul { gap: 12px; }
  nav a { font-size: .84rem; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow li:nth-child(n+4) { grid-column: span 1; }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .nav { min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
  body.js .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  nav { display: block; flex: 1 0 100%; width: 100%; }
  body.js nav { display: none; }
  body.js nav.open { display: block; }
  nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 8px 0 12px; }
  nav li { display: block !important; }
  nav a:not(.btn) { display: block; padding: 10px 8px; font-size: .96rem; }
  nav li:last-child { grid-column: 1 / -1; padding: 8px; }
  nav .btn { width: 100%; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-block: 54px; }
  .hero h1 { font-size: clamp(3.2rem, 13vw, 5.2rem); }
  .mock { width: min(100%, 600px); margin-inline: auto; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc, .svc:nth-child(1), .svc:nth-child(4), .svc:nth-child(5) { grid-column: auto; }
  .about, .contact .grid { grid-template-columns: 1fr; }
  .about img { max-width: 320px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding-block: 62px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 18px; }
  .brand { font-size: .98rem; }
  .brand img { width: 36px; height: 36px; }
  .cta { align-items: stretch; }
  .cta .btn { flex: 1 1 100%; }
  .mk { gap: 6px; }
  .mk div { padding: 9px 7px; }
  .mk small { font-size: .7rem; }
  .mk b { font-size: .84rem; }
  .flow, .services, .steps, .cols { grid-template-columns: 1fr; }
  .cols > :last-child { grid-column: auto; }
  .svc { padding: 22px; }
  .kpis { gap: 8px; }
  .kpi { padding: 12px; }
  .kv { font-size: 1rem; }
  .ctrls .btn { width: 100%; }
  .wa { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 12px; }
  .wa span { display: none; }
  footer .wrap { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ——— Richer interaction layer ——— */
.svc, .steps li, .flow li, .kpi, .panel {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc:hover, .steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(18,59,40,.1);
  border-color: #c5d9cb;
}
.svc:focus-within, .steps li:focus-within {
  outline: 3px solid #a77700;
  outline-offset: 2px;
}
.flow li:hover {
  transform: translateY(-3px);
}
.kpi:hover {
  border-color: #c5d9cb;
  box-shadow: 0 8px 22px rgba(18,59,40,.07);
}
.btn {
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  box-shadow: 0 8px 20px rgba(8,120,59,.22);
}
.mock {
  transition: transform .35s ease, box-shadow .35s ease;
}
.hero .mock:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(18,59,40,.16);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Active nav link */
nav a.is-active {
  color: var(--green);
}

/* ——— Site assistant (chatbot) ——— */
.assistant-toggle {
  position: fixed;
  right: 18px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 600 .9rem var(--head);
  box-shadow: 0 10px 28px rgba(8,120,59,.28);
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.assistant-toggle:hover {
  background: var(--green-hover);
  box-shadow: 0 12px 32px rgba(8,120,59,.34);
}
.assistant-toggle:active { transform: translateY(1px); }
.assistant-toggle[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
}
.assistant-panel {
  position: fixed;
  right: 18px;
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: min(380px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 180px));
  display: none;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(18,59,40,.18);
  overflow: hidden;
}
.assistant-panel.open {
  display: flex;
}
.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.assistant-header strong {
  color: var(--ink);
  font: 700 .95rem var(--head);
}
.assistant-header span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
}
.assistant-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.assistant-close:hover { background: #e8efe9; color: var(--ink); }
.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #fafcfb;
}
.assistant-msg {
  max-width: 92%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.5;
}
.assistant-msg.bot {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  justify-self: start;
  border-bottom-left-radius: 4px;
}
.assistant-msg.user {
  background: var(--green);
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 4px;
}
.assistant-msg a { color: inherit; text-decoration: underline; }
.assistant-msg.bot a { color: var(--green); }
.assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: #fafcfb;
}
.assistant-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 .8rem var(--head);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.assistant-chips button:hover {
  border-color: var(--green);
  background: var(--soft);
  color: var(--green);
}
.assistant-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.assistant-input input {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  padding-inline: 14px;
}
.assistant-input .btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}
@media (max-width: 520px) {
  .assistant-toggle {
    right: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    padding: 12px 14px;
  }
  .assistant-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: calc(130px + env(safe-area-inset-bottom, 0px));
  }
}
