/*
  CoreShift launch polish, September 2026.
  --------------------------------------------------------------
  Loaded after styles.css so the original component system remains easy to
  follow. This file owns the editorial hero, company credentials, and client
  feature. Use fixed type sizes at breakpoints; spacing may remain fluid.
  The palette is charcoal, white, cyan and lime, with pale sections providing
  contrast. The certificate itself retains its official source colours.
*/
/* Locally hosted variable type avoids third-party font requests and keeps the
   same measured typography on Windows, macOS, Android, and iOS. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --bg: #080b0d;
  --bg-2: #101516;
  --panel: rgba(20, 28, 31, 0.86);
  --panel-strong: #172124;
  --muted: #adbfc5;
  --muted-2: #d2dfe1;
  --green: #c3f66a;
}
body { background: #0a1012; font-family: "Manrope", "Segoe UI", sans-serif; }
body::after { display: none; }
body::before { opacity: 0.12; }
body, button, input, textarea, select, h1, h2, h3, .eyebrow,
.founder-role, .service-index, .loader span::after { letter-spacing: 0; }
.site-header { background: rgba(8, 12, 14, 0.94); }
.site-header.is-scrolled { background: rgba(8, 12, 14, 0.98); }
.eyebrow { font-size: 1rem; }
.founder-role { font-size: 0.94rem; }
.loader { background: #090e10; }
.loader span { width: 90px; height: 90px; background-size: 66px 66px; border: 0; box-shadow: none; }
.loader span::after { font-size: 1.05rem; text-transform: none; }
body.is-loading .split-word { animation-play-state: paused; }
.hero-editorial {
  isolation: isolate;
  min-height: 660px;
  height: min(790px, calc(100svh - var(--header-height) - 58px));
  background: #07090b;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 11, 0.98) 0%, rgba(7, 9, 11, 0.91) 25%, rgba(7, 9, 11, 0.55) 46%, transparent 67%);
}
.hero-editorial-content { padding-block: 48px 70px; }
.hero-editorial .eyebrow { color: #ccdbde; font-size: 0.95rem; margin-block: 28px 17px; }
.hero-editorial h1 { max-width: 610px; font-size: 5.15rem; line-height: 1.01; font-weight: 820; text-shadow: none; }
.hero-editorial h1 .split-word:first-child { color: #fff; background: none; }
.hero-editorial h1 .split-word:last-child { color: var(--cyan); }
.hero-editorial .hero-statement { max-width: 540px; margin: 24px 0 16px; font-size: 1.85rem; line-height: 1.23; }
.hero-editorial .hero-statement span { color: #c3f66a; }
.hero-editorial .hero-statement::after { display: none; }
.hero-editorial .hero-copy { max-width: 480px; font-size: 1.08rem; line-height: 1.65; color: #ccd7db; }
.hero-editorial .hero-actions { gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-editorial .button { padding: 15px 19px; font-size: 0.94rem; }
.hero-editorial .button.primary { background: #c3f66a; color: #121b15; box-shadow: none; }
.hero-editorial .button.secondary { background: rgba(8, 13, 15, 0.72); color: #f5ffff; }
.registration-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 0.9rem; color: #daf6ce; }
.registration-link > svg:first-child { color: #c3f66a; width: 20px; height: 20px; }
.registration-link span { color: #9aafab; padding-left: 10px; border-left: 1px solid #4b5b55; }
.registration-link > svg:last-child { width: 15px; height: 15px; }
.registration-link:hover { color: #fff; }
.hero-footnote { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: space-between; gap: 16px; color: #a9b8bc; font-size: 0.82rem; }
.hero-footnote span:last-child { display: flex; align-items: center; gap: 8px; }
.hero-footnote svg { width: 14px; height: 14px; }

/* A light evidence band gives the page breathing room after the hero. */
.credentials-band { background: #eef3f1; border: 0; }
.credentials-band .stats-grid { align-items: start; }
.credentials-band .stat { padding: 30px 16px; border: 0; border-right: 1px solid #ced9d4; border-radius: 0; background: none; box-shadow: none; }
.credentials-band .stat:last-child { border-right: 0; }
.credentials-band .stat strong { font-size: 1.26rem; line-height: 1.3; color: #182b26; font-weight: 750; }
.credentials-band .stat span { display: block; margin-top: 9px; color: #53635e; font-size: 0.9rem; }
.credentials-band svg { width: 18px; height: 18px; vertical-align: -3px; }
.credentials-band a:hover strong { color: #007368; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); font-weight: 650; font-size: 0.96rem; }
.text-link svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform 180ms ease; }
.text-link:hover svg { transform: translate(3px, -3px); }
.service-card .text-link { margin-top: auto; padding-top: 20px; }
.service-card { display: flex; flex-direction: column; }
.service-card > svg { flex: 0 0 auto; }
.service-card p { flex: 1; }

/* The original client photograph is shown without filters or a face crop. */
.client-feature { background: #eef3f1; color: #24342e; }
.client-feature-layout { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 72px; align-items: center; }
.client-portrait { margin: 0; }
.client-portrait img { width: 100%; height: auto; aspect-ratio: 1035 / 1280; object-fit: contain; border-radius: 6px; }
.client-portrait figcaption { padding-top: 15px; color: #1d342b; font-size: 0.96rem; font-weight: 650; }
.client-portrait figcaption span { display: block; color: #5e6d65; font-size: 0.84rem; font-weight: 400; }
.client-perspective .eyebrow { color: #087468; }
.client-perspective h2 { color: #152a24; font-size: 2.6rem; line-height: 1.12; }
.client-perspective .quote-mark { width: 35px; height: 35px; color: #089b89; margin-top: 26px; }
.client-perspective blockquote { margin: 10px 0 24px; }
.client-perspective blockquote p { font-size: 1.24rem; line-height: 1.65; margin: 0; }
.client-attribution strong, .client-attribution span { display: block; }
.client-attribution span { margin-top: 3px; color: #5a6b61; font-size: 0.95rem; }
.client-perspective .text-link { color: #00675d; margin-top: 16px; }

/* Company registration: link to the watermarked PDF, never the private file. */
.registration-strip { border-block: 1px solid var(--line); background: #14211c; padding: 36px 0; }
.registration-strip .container { display: flex; align-items: center; gap: 22px; }
.registration-strip .registration-icon { width: 42px; height: 42px; color: var(--green); flex: 0 0 auto; }
.registration-strip h2 { font-size: 1.4rem; line-height: 1.25; }
.registration-strip p { margin: 6px 0 0; color: #b5c9bf; }
.registration-strip .text-link { margin-left: auto; white-space: nowrap; color: var(--green); }
.footer-registration { display: inline-flex; align-items: center; gap: 7px; color: #ccedbb; font-size: 0.87rem; margin-top: 12px; }
.footer-registration svg { width: 18px; height: 18px; }
.credentials-hero { padding: 72px 0 56px; }
.credentials-hero h1 { max-width: 830px; font-size: 3.7rem; line-height: 1.08; }
.credentials-hero .hero-copy { max-width: 660px; }
.certificate-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 60px; align-items: start; }
.certificate-preview { display: block; background: #fff; padding: 10px; border-radius: 6px; box-shadow: 0 20px 70px #0004; }
.certificate-preview img { width: 100%; height: auto; }
.certificate-info { position: sticky; top: 110px; }
.certificate-info h2 { font-size: 2rem; line-height: 1.2; }
.company-facts { margin: 24px 0; }
.company-facts div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.company-facts dt { color: var(--muted); font-size: 0.88rem; }
.company-facts dd { margin: 5px 0 0; font-size: 1.08rem; font-weight: 600; }
.certificate-note { color: var(--muted); font-size: 0.91rem; line-height: 1.65; }
.certificate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.certificate-actions .button { font-size: 0.95rem; padding: 14px 17px; }

/* Coarse pointers use the native cursor. Custom cursor decoration is omitted
   here so links retain familiar focus and hover behaviour on every device. */
.cursor-dot, .cursor-ring { display: none; }
.service-index { font-size: 1.08rem; }

/*
  Studio refinement.
  Hierarchy comes from scale, spacing, and contrast rather than heavy weights
  everywhere. Native controls keep their focus outlines and touch target sizes.
*/
h1, h2, h3 { font-weight: 650; line-height: 1.15; }
.brand { font-weight: 750; flex-shrink: 0; }
.brand span { font-size: 1.02rem; }
.nav-menu a, .nav-cta, .button, .eyebrow { font-weight: 650; }
.nav-menu { gap: 6px; }
.nav-cta, .button.primary { background: #c3f66a; color: #152118; box-shadow: none; }
.nav-cta:hover, .button.primary:hover { background: #d7ff91; box-shadow: 0 8px 28px #a9e34b19; }
.button { min-height: 48px; }
.hero-editorial h1 { font-size: 5.3rem; font-weight: 650; line-height: 1.01; }
.hero-editorial .hero-statement { font-weight: 550; }
.hero-editorial .eyebrow { font-size: 0.84rem; font-weight: 600; }
.hero-art img { animation: artwork-arrive 1.5s var(--ease-entrance) both; }
body.is-loading .hero-art img { animation-play-state: paused; }
@keyframes artwork-arrive { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
.loader::before { content: ""; position: absolute; width: 138px; height: 2px; top: calc(50% + 105px); background: #c3f66a; transform-origin: left; animation: intro-line 3s ease-out both; }
@keyframes intro-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.section-dots { display: none; }
.section-heading { max-width: 770px; }
.section-heading h2, .product-copy h2 { font-size: 2.8rem; line-height: 1.17; }
.section-copy { line-height: 1.8; }
.section-product { background: #101719; }
.section-product::before, .product-stage::after { display: none; }
.product-stage { background: #172226; box-shadow: 0 26px 75px #0004; }
.product-stage::before { opacity: 0.05; pointer-events: none; }
.product-stage:hover { box-shadow: 0 26px 75px #0004; }
.stage-toolbar { flex-wrap: wrap; row-gap: 8px; }
.concept-label { color: #b9c9c9; font-size: 0.7rem; margin-left: auto; }
.stage-toolbar > .concept-label { width: auto; height: auto; background: none; border-radius: 0; }
.stage-dashboard-head h3 { font-size: 1.4rem; font-weight: 650; }
.stage-metrics article { background: transparent; border: 0; border-radius: 0; border-left: 1px solid #526267; padding-left: 12px; }
.stage-metrics strong { font-weight: 600; }
.stage-status { background: #c3f66a; font-weight: 600; }
.showcase-switcher { border: 0; border-radius: 0; border-bottom: 1px solid #3a4a4e; padding: 0; background: none; gap: 0; }
.showcase-tab { border-radius: 0; font-weight: 600; min-height: 46px; }
.showcase-tab:hover, .showcase-tab.is-active { background: transparent; color: #c3f66a; border-color: transparent; border-bottom-color: #c3f66a; transform: none; }
.capability-marquee { padding-block: 19px; }
.capability-track { animation-duration: 55s; }
.capability-marquee:hover .capability-track { animation-play-state: paused; }
.service-card { background: #121c20; padding: 30px; }
.service-card h3 { font-weight: 600; line-height: 1.3; }
.premium-grid .service-card:nth-child(-n+2) h3 { font-size: 1.75rem; max-width: 400px; }
.service-card::before { pointer-events: none; background: none; }
.service-card::after { left: 0; right: 0; height: 2px; background: #3d686c; }
.service-card:nth-child(2)::after { background: #c3f66a; }
.service-card:hover, .value-card:hover, .founder-card:hover, .service-detail:hover { box-shadow: none; border-color: #568183; }
.service-card p { line-height: 1.8; }
.service-card .text-link svg { width: 18px; height: 18px; }
.service-index { color: #91aaad; font-weight: 500; }
.choice-item, .trust-item { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding-inline: 0; font-weight: 500; }
.choice-item:hover, .trust-item:hover { transform: none; background: none; }
.founder-content h3 { font-weight: 650; }
.founder-credentials li { font-weight: 450; }
.founder-role { font-weight: 600; text-transform: none; }
.page-hero h1 { font-weight: 600; line-height: 1.13; }
/* About leads with the actual team, not a large decorative placeholder. */
.about-intro { padding: 60px 0 34px; background: #102123; }
.about-intro .hero-copy { max-width: 740px; }
.founder-section { padding-top: 42px; }
.client-perspective h2 { font-weight: 600; }
.client-perspective blockquote p { font-weight: 450; }
.cta-band { background: #152a27; border-block: 1px solid #2b4641; }
.cta-band h2 { max-width: 690px; font-weight: 600; }
.cta-band .eyebrow { color: #c3f66a; }

/* A single unframed sequence makes the delivery process scannable. */
.delivery-section { background: #d8f3a9; color: #1b3228; }
.delivery-heading { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: 50px; margin-bottom: 50px; }
.delivery-section .eyebrow { color: #386249; }
.delivery-section h2 { color: #172f24; font-size: 2.85rem; font-weight: 600; }
.delivery-heading > p { font-size: 1.08rem; line-height: 1.8; margin: 0; max-width: 330px; }
.delivery-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.delivery-steps li { position: relative; border-top: 1px solid #769a5c; padding-top: 24px; display: flex; flex-direction: column; }
.step-number { color: #729250; font-size: 2.25rem; font-weight: 400; line-height: 1; }
.delivery-steps svg { position: absolute; top: 28px; right: 0; width: 25px; height: 25px; color: #365435; }
.delivery-steps h3 { color: #183329; font-size: 1.3rem; margin-top: 27px; }
.delivery-steps p { font-size: 0.95rem; line-height: 1.8; flex: 1; color: #3d573f; }
.step-output { font-size: 0.78rem; font-weight: 650; padding-top: 16px; border-top: 1px solid #a5c57f; }
.case-card { min-height: 300px; border-radius: 6px; background: #132124; display: flex; flex-direction: column; }
.case-card::before { display: none; }
.case-card strong { font-size: 1.48rem; font-weight: 600; margin-top: 35px; }
.case-card em { padding: 0; margin-block: 8px; color: #c3f66a; background: none; font-weight: 500; font-size: 0.9rem; }
.case-card small { color: #b0c1c6; font-weight: 400; font-size: 0.9rem; line-height: 1.6; }
.case-card .case-open { margin-top: auto; padding-top: 26px; font-size: 0.84rem; font-weight: 600; color: #e3f0ec; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-open svg { width: 20px; height: 20px; }
.case-card:hover { transform: translateY(-4px); box-shadow: none; }

/* Native modal: focus stays inside, Escape closes, and content scrolls within
   the viewport at high browser zoom or on a short landscape phone screen. */
body.dialog-open { overflow: hidden; }
.solution-dialog { color: #e9f2ef; background: #101b1e; border: 1px solid #44615e; border-radius: 8px; padding: 44px; width: min(720px, calc(100% - 28px)); max-height: calc(100svh - 40px); overflow: auto; box-shadow: 0 40px 130px #0008; }
.solution-dialog::backdrop { background: #020707cc; backdrop-filter: blur(6px); }
.solution-dialog[open] { animation: dialog-arrive 220ms ease both; }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.solution-dialog h2 { font-size: 2.3rem; max-width: 550px; padding-right: 24px; }
.solution-dialog > p:not(.eyebrow) { color: #b0c4c5; font-size: 1.04rem; line-height: 1.8; margin: 24px 0 32px; }
.solution-dialog h3 { font-size: 1rem; color: #d6e6dc; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; display: grid; place-items: center; background: #213033; border: 1px solid #405154; border-radius: 5px; color: #fff; }
.dialog-close:hover { background: #34494d; }
.dialog-close svg { width: 20px; height: 20px; }
.concept-scope { list-style: none; padding: 0; margin: 14px 0 30px; }
.concept-scope li { padding: 13px 0 13px 26px; border-bottom: 1px solid #2d4242; position: relative; color: #c9d9d8; font-size: 0.95rem; }
.concept-scope li::before { content: "+"; position: absolute; left: 0; color: #c3f66a; }
.dialog-bottom { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.dialog-bottom p { font-size: 0.78rem; color: #92a8a5; line-height: 1.8; }
.dialog-bottom .button { padding: 13px 16px; font-size: 0.9rem; flex: 0 0 auto; }
#contactForm { scroll-margin-top: 105px; }
@media (min-width: 1500px) {
  .hero-editorial-content, .hero-footnote { width: min(1360px, calc(100% - 96px)); }
  .hero-editorial h1 { font-size: 5.6rem; }
}
@media (max-width: 1024px) {
  .delivery-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; }
  .product-showcase-layout { grid-template-columns: 1fr; }
  .delivery-heading { grid-template-columns: 1fr 1fr; gap: 32px; }
  .delivery-section h2 { font-size: 2.2rem; }
  .hero-editorial { height: auto; min-height: 680px; }
  .hero-editorial h1 { font-size: 4.5rem; max-width: 530px; }
  .hero-art img { object-position: 60% center; }
  .hero-art::after { background: linear-gradient(90deg, #080b0deb, #080b0dba 45%, #080b0d30); }
  .client-feature-layout { gap: 40px; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
  .client-perspective h2 { font-size: 2rem; }
  .certificate-layout { gap: 32px; }
}
@media (max-width: 700px) {
  .about-intro { padding: 40px 0 28px; }
  .founder-section { padding-top: 32px; }
  .section-heading h2, .product-copy h2 { font-size: 2rem; }
  .premium-grid .service-card:nth-child(-n+2) h3 { font-size: 1.5rem; }
  .delivery-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .delivery-section h2 { font-size: 2.1rem; }
  .delivery-steps { gap: 25px 20px; }
  .delivery-steps h3 { font-size: 1.12rem; }
  .delivery-steps p { font-size: 0.88rem; }
  .step-output { font-size: 0.73rem; }
  .service-card { padding: 24px; }
  .solution-dialog { padding: 34px 24px 24px; }
  .solution-dialog h2 { font-size: 1.75rem; }
  .dialog-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .dialog-bottom .button { justify-content: center; }
  .concept-label { flex-basis: 100%; margin-left: 0; }
  .brand span { font-size: 0.94rem; }
  .hero-editorial { min-height: 740px; height: auto; justify-content: flex-start; }
  .hero-editorial-content { padding-block: 32px 160px; }
  .hero-editorial h1 { font-size: 3.6rem; max-width: 480px; }
  .hero-editorial .eyebrow { font-size: 0.82rem; margin-top: 24px; }
  .hero-editorial .hero-statement { font-size: 1.6rem; margin-top: 22px; }
  .hero-editorial .hero-copy { max-width: 420px; font-size: 1rem; }
  .hero-editorial .hero-actions { gap: 10px; }
  .hero-editorial .button { min-height: 48px; font-size: 0.86rem; padding: 12px 14px; }
  .hero-art { top: auto; bottom: 0; height: 420px; }
  .hero-art img { object-position: 72% center; }
  .hero-art::after { background: linear-gradient(180deg, #07090b 0%, #07090bd9 16%, #07090b20 65%, #07090b88 100%); }
  .hero-footnote { bottom: 15px; font-size: 0.7rem; }
  .hero-footnote span:first-child { max-width: 190px; }
  .registration-link { font-size: 0.82rem; }
  .credentials-band .stat { padding: 20px 8px; }
  .credentials-band .stat strong { font-size: 1.05rem; }
  .credentials-band .stat span { font-size: 0.83rem; }
  .client-feature-layout { grid-template-columns: 1fr; gap: 34px; }
  .client-portrait { width: min(100%, 290px); }
  .client-perspective h2 { font-size: 1.9rem; }
  .client-perspective blockquote p { font-size: 1.12rem; }
  .registration-strip .container { flex-wrap: wrap; gap: 16px; }
  .registration-strip .container > div { flex: 1; min-width: 220px; }
  .registration-strip .text-link { margin-left: 0; white-space: normal; }
  .credentials-hero { padding-top: 44px; }
  .credentials-hero h1 { font-size: 2.6rem; }
  .certificate-layout { grid-template-columns: 1fr; }
  .certificate-info { position: static; }
  .certificate-info h2 { font-size: 1.8rem; }
}
@media (max-width: 370px) {
  .hero-editorial h1 { font-size: 3rem; }
  .hero-editorial .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-editorial { min-height: 830px; }
}
@media (min-width: 701px) and (max-height: 850px) {
  .hero-editorial { min-height: 540px; height: calc(100svh - var(--header-height) - 48px); }
  .hero-editorial-content { padding-block: 24px 64px; }
  .hero-editorial h1 { font-size: 4.5rem; }
  .hero-editorial .eyebrow { margin-block: 22px 14px; }
  .hero-editorial .hero-statement { margin-block: 18px 12px; font-size: 1.6rem; }
  .hero-editorial .hero-copy { font-size: 1rem; }
  .hero-editorial .hero-actions { margin-top: 22px; }
}
@media (max-width: 700px) and (max-height: 740px) {
  .hero-editorial { min-height: 0; }
  .hero-editorial-content { padding-block: 22px 92px; }
  .hero-editorial h1 { font-size: 2.9rem; }
  .hero-editorial .eyebrow { margin-block: 18px 12px; font-size: 0.78rem; }
  .hero-editorial .hero-statement { font-size: 1.3rem; margin-block: 16px 10px; }
  .hero-editorial .hero-copy { font-size: 0.94rem; line-height: 1.5; }
  .hero-editorial .hero-actions { margin-top: 18px; }
  .hero-art { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img, .loader::before, .solution-dialog[open] { animation: none; }
  body.is-loading .split-word { animation-play-state: running; }
  .text-link svg { transition: none; }
}

/*
  Website assistant
  -----------------
  The panel deliberately resembles a focused support tool rather than a large
  marketing card. Its dimensions stay stable while messages are added.
*/
.chatbot-ready .back-to-top { right: 224px; }
.cs-assistant { position: fixed; right: 22px; bottom: 22px; z-index: 1100; font-family: "Manrope", "Segoe UI", sans-serif; }
.cs-assistant-toggle { min-height: 52px; display: inline-flex; align-items: center; gap: 10px; padding: 0 17px; margin-left: auto; border: 1px solid #d6ff8d; border-radius: 6px; background: #c3f66a; color: #142016; font: inherit; font-size: 0.9rem; font-weight: 700; box-shadow: 0 16px 44px #0007; cursor: pointer; }
.cs-assistant-toggle:hover { background: #d7ff91; transform: translateY(-2px); }
.cs-assistant-toggle svg { width: 20px; height: 20px; }
.cs-assistant.is-open .cs-assistant-toggle { visibility: hidden; }
.cs-assistant-panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 28px)); height: min(620px, calc(100svh - 34px)); overflow: hidden; border: 1px solid #3f5f61; border-radius: 8px; background: #0c1518; color: #ecf5f3; box-shadow: 0 32px 100px #000a; }
.cs-assistant-panel:not([hidden]) { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto auto; animation: assistant-in 220ms ease both; }
@keyframes assistant-in { from { opacity: 0; transform: translateY(10px); } }
.cs-assistant-head { min-height: 76px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid #2b3c3f; background: #111e21; }
.cs-assistant-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; background: #091114; }
.cs-assistant-mark img { width: 31px; height: 31px; }
.cs-assistant-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.cs-assistant-head p { display: flex; align-items: center; gap: 7px; margin: 3px 0 0; color: #9db0b3; font-size: 0.72rem; }
.cs-assistant-head p span { width: 7px; height: 7px; border-radius: 50%; background: #c3f66a; box-shadow: 0 0 10px #c3f66a; }
.cs-assistant-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #3c5053; border-radius: 5px; background: #1b292c; color: #eef7f5; cursor: pointer; }
.cs-assistant-close:hover { background: #2b3d40; }
.cs-assistant-close svg { width: 18px; height: 18px; }
.cs-assistant-messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 10px; scrollbar-width: thin; scrollbar-color: #496266 transparent; }
.cs-chat-message { width: fit-content; max-width: 88%; margin-bottom: 11px; padding: 11px 13px; border-radius: 6px; font-size: 0.84rem; line-height: 1.58; white-space: pre-wrap; }
.cs-chat-message.is-assistant { margin-right: auto; border: 1px solid #2d4346; background: #172529; color: #dce9e7; }
.cs-chat-message.is-user { margin-left: auto; background: #c3f66a; color: #152118; }
.cs-chat-message.is-thinking { min-width: 62px; display: flex; gap: 5px; padding-block: 16px; }
.cs-chat-message.is-thinking span { width: 5px; height: 5px; border-radius: 50%; background: #9ab1b4; animation: thinking-dot 900ms ease-in-out infinite alternate; }
.cs-chat-message.is-thinking span:nth-child(2) { animation-delay: 160ms; }
.cs-chat-message.is-thinking span:nth-child(3) { animation-delay: 320ms; }
@keyframes thinking-dot { to { opacity: 0.3; transform: translateY(-3px); } }
.cs-assistant-services { display: flex; gap: 7px; overflow-x: auto; padding: 8px 14px 12px; scrollbar-width: none; }
.cs-assistant-services[hidden] { display: none; }
.cs-assistant-services::-webkit-scrollbar { display: none; }
.cs-assistant-services button { flex: 0 0 auto; max-width: 205px; min-height: 36px; padding: 7px 10px; border: 1px solid #3f575a; border-radius: 5px; background: transparent; color: #cfdddb; font: inherit; font-size: 0.72rem; line-height: 1.35; text-align: left; cursor: pointer; }
.cs-assistant-services button:hover { border-color: #c3f66a; color: #fff; }
.cs-assistant-form { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: end; gap: 8px; margin: 0 14px; padding: 8px; border: 1px solid #41575a; border-radius: 6px; background: #111d20; }
.cs-assistant-form:focus-within { border-color: #84b6b9; box-shadow: 0 0 0 3px #00eaff12; }
.cs-assistant-form textarea { width: 100%; min-height: 44px; max-height: 104px; resize: none; overflow-y: auto; padding: 10px 6px; border: 0; outline: 0; background: transparent; color: #f1f7f6; font: inherit; font-size: 0.86rem; line-height: 1.45; }
.cs-assistant-form textarea::placeholder { color: #829598; }
.cs-assistant-form button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 5px; background: #c3f66a; color: #142016; cursor: pointer; }
.cs-assistant-form button:hover { background: #d7ff91; }
.cs-assistant-form.is-sending button { opacity: 0.5; cursor: wait; }
.cs-assistant-form button svg { width: 19px; height: 19px; }
.cs-assistant-actions { display: flex; gap: 18px; margin: 10px 14px 0; }
.cs-assistant-actions a { display: inline-flex; align-items: center; gap: 5px; color: #bcd1cf; font-size: 0.72rem; font-weight: 650; }
.cs-assistant-actions a:hover { color: #c3f66a; }
.cs-assistant-actions svg { width: 14px; height: 14px; }
.cs-assistant-note { margin: 9px 14px 12px; color: #829598; font-size: 0.65rem; line-height: 1.4; }
@media (max-width: 700px) {
  .chatbot-ready .back-to-top { right: 210px; }
  .cs-assistant { right: 14px; bottom: 14px; }
  .cs-assistant-toggle { min-height: 48px; padding-inline: 14px; }
  .cs-assistant-panel { position: fixed; inset: 10px; width: auto; height: auto; max-height: none; }
  .cs-assistant-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .cs-assistant-services button { max-width: none; width: 100%; }
  .cs-assistant-services button:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-assistant-panel:not([hidden]), .cs-chat-message.is-thinking span { animation: none; }
}
