/* Icopower ESCO — design tokens and components adapted from the Home template */

/* Self-hosted variable fonts (SIL Open Font License, see /assets/fonts/OFL-*.txt) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #15202B;
  --navy: #13212C;
  --navy-2: #1E3140;
  --line-dark: #344B5C;
  --footer: #0D171F;
  --footer-line: #22323E;
  --accent: #E8A13A;
  --accent-text: #9A5A0A;
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --line: #D9DDD8;
  --body: #2E3A44;
  --muted: #4A5662;
  --on-dark: #C9D2D9;
  --on-dark-muted: #9FB0BD;
  --font-display: Archivo, "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.on-dark .eyebrow, .eyebrow--accent { color: var(--accent); }
.h2 { font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.lead { font-size: 17px; line-height: 1.6; color: var(--body); }
.on-dark .lead { color: var(--on-dark); font-size: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 4px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #22303d; color: #fff; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #f0b155; color: var(--ink); }
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn--ghost-dark { border: 2px solid var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: rgba(21,32,43,.06); color: var(--ink); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 44px; width: auto; }
@media (max-width: 380px) { .logo img { height: 36px; } }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .btn { min-height: 44px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]:not(.btn) { box-shadow: none; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* Sections */
.section { padding: 96px 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark, .on-dark { background: var(--navy); color: #fff; }
.section--accent { background: var(--accent); padding: 72px 0; }
.section--accent .h2, .section--accent p { color: var(--ink); }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.stack { display: flex; flex-direction: column; gap: 44px; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

/* Hero */
.hero { padding: 88px 0; background: radial-gradient(50% 70% at 82% 45%, rgba(232,161,58,.09), transparent 70%), var(--navy); }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-weight: 400; font-size: clamp(32px, 5vw, 44px); line-height: 1.15; }
.hero h1 strong { font-weight: 800; }
.hero h1 .hl { font-weight: 600; color: var(--accent); }
.hero h1 .aside { font-size: .6em; color: #AEBBC6; }
.hero p { font-size: 19px; line-height: 1.6; color: var(--on-dark); max-width: 580px; }

/* Home hero slideshow. Without JS only the first slide shows; main.js adds the controls. */
.hero-slides { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-slides__stage { position: relative; }
.hero-slides__stage::before { content: ""; position: absolute; inset: 22px -14px -14px 22px; border: 2px solid rgba(232,161,58,.45); border-radius: 22px; pointer-events: none; }
.hero-slides__track { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--navy-2); box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.06); touch-action: pan-y; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.hero-slide__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-slide__img { transform: scale(1); }
.hero-slide__img--left { object-position: 35% 50%; }
.hero-slide__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 56px 24px 22px; background: linear-gradient(transparent, rgba(13,23,31,.88)); }
.hero-slide__tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero-slide__cap a { color: #fff; font: 600 18px/1.35 var(--font-display); text-decoration: none; }
.hero-slide__cap a::after { content: " →"; color: var(--accent); }
.hero-slide__cap a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-slides__controls { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.hero-slides__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer; }
.hero-slides__btn:hover { border-color: var(--accent); color: var(--accent); }
.hero-slides__dots { display: flex; gap: 8px; flex: 1; }
.hero-dot { position: relative; flex: 1; max-width: 64px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot::before, .hero-dot span { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; }
.hero-dot::before { background: var(--line-dark); }
.hero-dot span { background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero-dot[aria-current="true"] span { animation: hero-progress 6s linear forwards; }
.hero-slides.is-hover .hero-dot span, .hero-slides.is-stopped .hero-dot span { animation-play-state: paused; }
.hero-slides.is-stopped .hero-dot[aria-current="true"] span { animation: none; transform: scaleX(1); }
@keyframes hero-progress { to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .hero-slides__stage::before { inset: 14px -8px -8px 14px; border-radius: 18px; }
  .hero-slides__track { border-radius: 16px; }
  .hero-slide__cap { padding: 44px 18px 16px; }
  .hero-slide__cap a { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active, .hero-slide__img { transition: none; }
  .hero-slide__img { transform: none; }
}
.page-hero { padding: 72px 0 64px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; max-width: 900px; }
.page-hero p { font-size: 19px; line-height: 1.6; color: var(--on-dark); max-width: 760px; }
.placeholder-img { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--navy-2); border: 1px dashed #4A6274; display: flex; align-items: center; justify-content: center; color: var(--on-dark-muted); font-size: 15px; text-align: center; padding: 16px; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 14px; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.breadcrumbs a { color: var(--on-dark); }

/* Stats band */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 0; padding-top: 28px; padding-bottom: 28px; }
.stat { padding: 8px 20px; border-left: 3px solid var(--accent); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.stat__label { font-size: 14px; color: var(--muted); }

/* Grids and cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--narrow { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 21px; line-height: 1.25; }
.card p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.card--link { text-decoration: none; padding: 20px; gap: 4px; }
.card--link:hover { border-color: var(--accent-text); }
.card--link small, .card small { font-size: 14px; color: var(--muted); }

.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.pillar--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.pillar h3 { font-size: 28px; line-height: 1.15; }
.pillar__brand { font-size: 15px; font-weight: 600; color: var(--body); }
.pillar p { font-size: 16px; line-height: 1.6; color: var(--body); }
.pillar--dark .pillar__brand, .pillar--dark p, .pillar--dark .checklist { color: var(--on-dark); }
.pillar--dark .eyebrow { color: var(--accent); }
.pillar__link { font-weight: 600; margin-top: auto; }
.pillar--dark .pillar__link { color: #fff; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--body); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 3px; color: var(--accent-text); }
.pillar--dark .checklist svg, .on-dark .checklist svg { color: var(--accent); }
.on-dark .checklist { color: var(--on-dark); }

.tile { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px; }
.tile strong { display: block; font-size: 17px; }
.tile span { display: block; font-size: 15px; color: var(--on-dark); margin-top: 6px; line-height: 1.5; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--ink); padding-top: 16px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent-text); }
.steps strong { font-size: 18px; }
.steps span { font-size: 15px; line-height: 1.5; color: var(--muted); }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; color: var(--body); }
.prose h2 { font-size: 26px; margin-top: 16px; color: var(--ink); }
.prose h3 { font-size: 20px; margin-top: 8px; color: var(--ink); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
.tbl th { text-align: left; padding: 14px 16px; background: var(--ink); color: #fff; font-weight: 600; }
.tbl td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }

.formula { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 16px 18px; border-radius: 4px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--body); line-height: 1.6; }

/* CTA band */
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta__copy { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.cta__copy p { font-size: 18px; line-height: 1.55; }

/* Forms */
.form { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid #B9C0BA; border-radius: 4px; background: #fff; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 4px; font-size: 15px; }
.notice--ok { background: #E6F2E8; border: 1px solid #9CC7A4; }
.notice--err { background: #FBEAEA; border: 1px solid #E2A7A7; }
.form-note { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--footer); color: var(--on-dark); }
.site-footer a { color: #E7EBEE; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { padding-top: 64px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; font-size: 15px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h2 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 0; }
.footer-logo { height: 40px; width: auto; max-width: 100%; }
/* Extra bottom/right space keeps the last footer row clear of the floating WhatsApp and chat buttons. */
.footer-bottom { border-top: 1px solid var(--footer-line); padding-top: 20px; padding-bottom: 88px; font-size: 13px; color: var(--on-dark-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 1320px) { .footer-bottom { padding-right: 92px; } }

/* Images */
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.page-hero--media .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.page-hero__copy { display: flex; flex-direction: column; gap: 18px; }
.page-hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.page-hero__img--contain { object-fit: contain; background: #fff; padding: 24px; }
.pillar__img { width: calc(100% + 72px); max-width: none; margin: -36px -36px 4px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.pillar__img--contain { object-fit: contain; background: #fff; padding: 16px; }
.figs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.figs--2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.fig { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.fig img { width: 100%; height: 240px; object-fit: contain; background: #fff; padding: 12px; }
.figs--2 .fig img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; padding: 0; }
.figs--2 > .fig:only-child { max-width: 560px; }
.figs--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .figs--3 { grid-template-columns: 1fr; } }
.figs--2 .fig--contain img, .prose .fig img { object-fit: contain; padding: 16px; }
.prose .fig img { height: auto; aspect-ratio: auto; }
.fig figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.brand-logo { height: 64px; width: auto; margin-top: 8px; align-self: flex-start; }

/* Partner logos */
.partners { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none; text-align: center; min-height: 168px; }
.partner:hover { border-color: var(--accent-text); }
.partner img { max-height: 72px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.partner span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.partner strong { display: block; font-size: 15px; color: var(--ink); }

/* ---------- Chat assistant ---------- */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 600 15px/1 var(--font-body); box-shadow: 0 6px 24px rgba(13,23,31,.28); cursor: pointer; }
.chat-launcher:hover { background: #22303d; }
.chat-launcher svg { color: var(--accent); }
.chat-launcher[aria-expanded="true"] { display: none; }

/* Floating WhatsApp button, stacked above the chat launcher (the open chat panel covers it). */
.whatsapp-float { position: fixed; right: 20px; bottom: 84px; z-index: 60; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 6px 24px rgba(13,23,31,.28); }
.whatsapp-float:hover { background: #1EBE5B; color: #fff; }
@media print { .whatsapp-float, .chat-launcher { display: none; } }

.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 48px rgba(13,23,31,.3); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
@media (max-width: 480px) { .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; } }
.chat-head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-head__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.chat-head__sub { font-size: 13px; color: var(--on-dark); }
.chat-head__actions { margin-left: auto; display: flex; gap: 4px; }
.chat-icon-btn { background: none; border: 0; color: var(--on-dark); width: 36px; height: 36px; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 8px; }
.msg ul { margin: 6px 0 0; padding-left: 20px; }
.msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--bot a { color: var(--accent-text); }
.msg--error { border-color: #E2A7A7; background: #FBEAEA; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: .6; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-suggest button { font: 500 14px/1.3 var(--font-body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.chat-suggest button:hover { border-color: var(--accent-text); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; font: 16px/1.4 var(--font-body); padding: 10px 12px; border: 1px solid #B9C0BA; border-radius: 6px; max-height: 120px; min-height: 44px; color: var(--ink); }
.chat-form button { flex: none; width: 44px; height: 44px; border-radius: 6px; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-foot { font-size: 12px; color: var(--muted); padding: 0 12px 10px; background: var(--surface); }
