/* Rispri water advisor: inline chat and floating panel. Self-contained tokens so it works on every page. */
.rv {
  --rv-ink: #0b2545; --rv-ink-2: #0f2e57; --rv-text: #1c3048; --rv-muted: #51647a; --rv-line: #dde6ef;
  --rv-paper: #f5f8fb; --rv-mist: #eef4f9; --rv-blue: #0b6fa4; --rv-cyan: #3cc2e6; --rv-white: #fff;
  --rv-radius: 16px; --rv-shadow: 0 1px 2px rgba(11,37,69,.05), 0 18px 48px -18px rgba(11,37,69,.28);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--rv-text);
  display: flex; flex-direction: column; background: var(--rv-white); border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius); box-shadow: var(--rv-shadow); overflow: hidden; min-height: 0; text-align: left;
}
.rv *, .rv *::before, .rv *::after { box-sizing: border-box; }
.rv button { font: inherit; cursor: pointer; }
.rv a { color: inherit; }

/* Header */
.rv-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--rv-ink); color: #fff; }
.rv-mark { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(140deg, #1680b8, var(--rv-cyan)); }
.rv-mark svg { width: 18px; height: 18px; }
.rv-head__t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rv-head__t strong { font-family: "Archivo", "Inter", sans-serif; font-size: 15.5px; font-weight: 700; letter-spacing: .01em; }
.rv-head__t span { font-size: 12.5px; color: #b6c8da; }
.rv-head__actions { margin-left: auto; display: flex; gap: 6px; }
.rv-iconbtn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; display: grid; place-items: center; }
.rv-iconbtn:hover, .rv-iconbtn:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.rv-iconbtn svg { width: 16px; height: 16px; }

.rv-mark--logo { background: #fff; box-shadow: inset 0 0 0 1px rgba(11,37,69,.08); }
.rv-mark--logo img { width: 74%; height: 74%; object-fit: contain; display: block; }
.rv-head a.rv-iconbtn { text-decoration: none; }

/* Message log */
.rv-log { flex: 1 1 auto; overflow-y: auto; padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 18px; background: var(--rv-paper); scroll-behavior: smooth; }
.rv-empty { margin: auto 0; text-align: center; padding: 8px 6px 16px; }
.rv-empty h3 { font-family: "Archivo", "Inter", sans-serif; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--rv-ink); margin: 0 0 8px; letter-spacing: -.01em; }
.rv-empty p { margin: 0 auto 18px; max-width: 46ch; color: var(--rv-muted); font-size: 14.5px; line-height: 1.6; }
.rv-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; text-align: left; }
.rv-example { text-align: left; border: 1px solid var(--rv-line); background: var(--rv-white); border-radius: 12px; padding: 12px 14px; color: var(--rv-ink); font-size: 14px; line-height: 1.45; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rv-example small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rv-blue); margin-bottom: 4px; }
.rv-example:hover, .rv-example:focus-visible { border-color: var(--rv-blue); box-shadow: 0 6px 18px -10px rgba(11,111,164,.5); transform: translateY(-1px); outline: none; }

.rv-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; }
.rv-msg--user { justify-content: flex-end; }
.rv-bubble { max-width: min(82%, 640px); padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.rv-msg--user .rv-bubble { background: var(--rv-ink); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }
.rv-msg--bot .rv-mark { width: 30px; height: 30px; border-radius: 9px; margin-top: 2px; }
.rv-msg--bot .rv-mark svg { width: 15px; height: 15px; }
.rv-botbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rv-msg--bot .rv-bubble { background: var(--rv-white); border: 1px solid var(--rv-line); color: var(--rv-text); border-top-left-radius: 5px; max-width: 100%; }
.rv-note { font-size: 12px; color: var(--rv-muted); }

/* Typing */
.rv-typing { display: inline-flex; align-items: center; gap: 10px; color: var(--rv-muted); font-size: 13.5px; }
.rv-dots { display: inline-flex; gap: 4px; }
.rv-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rv-blue); opacity: .35; animation: rv-dot 1.1s infinite ease-in-out; }
.rv-dots i:nth-child(2) { animation-delay: .15s; } .rv-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes rv-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Result cards */
.rv-label { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--rv-muted); margin: 2px 0 -4px; }
.rv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.rv-card { display: flex; flex-direction: column; background: var(--rv-white); border: 1px solid var(--rv-line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rv-card:hover, .rv-card:focus-visible { border-color: var(--rv-blue); box-shadow: 0 10px 26px -16px rgba(11,37,69,.45); transform: translateY(-1px); outline: none; }
.rv-card__img { height: 96px; background: var(--rv-mist) center / cover no-repeat; }
.rv-card__b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.rv-badge { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--rv-mist); color: var(--rv-ink-2); border: 1px solid var(--rv-line); }
.rv-badge--9 { background: var(--rv-ink); color: #fff; border-color: var(--rv-ink); }
.rv-badge--8 { background: var(--rv-blue); color: #fff; border-color: var(--rv-blue); }
.rv-badge--7 { background: #fff; color: var(--rv-blue); border-color: var(--rv-blue); }
.rv-card strong { font-family: "Archivo", "Inter", sans-serif; font-size: 15px; line-height: 1.3; color: var(--rv-ink); }
.rv-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--rv-text); }
.rv-card em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--rv-blue); margin-top: auto; }

.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-tool { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--rv-line); background: var(--rv-white); text-decoration: none; color: var(--rv-ink); font-size: 14px; line-height: 1.35; max-width: 100%; }
.rv-tool svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--rv-blue); }
.rv-tool span small { display: block; font-size: 12.5px; color: var(--rv-muted); }
.rv-tool:hover, .rv-tool:focus-visible { border-color: var(--rv-blue); outline: none; }
.rv-guide { font-size: 14px; color: var(--rv-blue); font-weight: 600; text-decoration: none; }
.rv-guide:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-follow { border: 1px solid var(--rv-line); background: var(--rv-mist); color: var(--rv-ink); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; }
.rv-follow:hover, .rv-follow:focus-visible { border-color: var(--rv-blue); background: #fff; outline: none; }
.rv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; color: var(--rv-muted); }
.rv-cta a { color: var(--rv-blue); font-weight: 600; text-decoration: none; }
.rv-cta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Composer */
.rv-composer { padding: 12px 14px 10px; background: var(--rv-white); border-top: 1px solid var(--rv-line); }
.rv-inputwrap { display: flex; align-items: flex-end; gap: 8px; border: 1.5px solid var(--rv-line); border-radius: 14px; padding: 6px 6px 6px 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.rv-inputwrap:focus-within { border-color: var(--rv-blue); box-shadow: 0 0 0 4px rgba(11,111,164,.12); }
.rv-input { flex: 1 1 auto; border: 0; outline: none; resize: none; font: inherit; font-size: 15px; line-height: 1.5; color: var(--rv-ink); padding: 7px 0; max-height: 140px; min-height: 24px; background: transparent; }
.rv-input::placeholder { color: #8193a8; }
.rv-send { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--rv-ink); color: #fff; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.rv-send:hover:not(:disabled) { background: var(--rv-blue); }
.rv-send:disabled { opacity: .35; cursor: not-allowed; }
.rv-send svg { width: 18px; height: 18px; }
.rv-foot { margin: 8px 2px 0; font-size: 12px; color: var(--rv-muted); line-height: 1.45; }

/* Inline (homepage, technologies hub) */
.rv-section { padding: clamp(48px, 6vw, 88px) 0; background: linear-gradient(180deg, #f5f8fb 0%, #fff 100%); }
.rv-section__in { width: min(1080px, calc(100% - 2 * clamp(16px, 4vw, 56px))); margin: 0 auto; }
.rv-section__head { text-align: center; margin: 0 auto 22px; max-width: 760px; }
.rv-section__head p.rv-eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #0b6fa4; margin: 0 0 10px; }
.rv-section__head h2 { font-family: "Archivo", "Inter", sans-serif; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; color: #0b2545; margin: 0 0 10px; }
.rv-section__head p { color: #51647a; font-size: 16px; line-height: 1.6; margin: 0; }
.rv--inline { height: clamp(520px, 72vh, 700px); }

/* Floating launcher and panel */
.rv-launcher { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 990; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px 11px 12px; border-radius: 999px; border: 0; background: #0b2545; color: #fff; font: 600 14.5px/1 "Inter", system-ui, sans-serif; box-shadow: 0 12px 30px -10px rgba(11,37,69,.6); cursor: pointer; transition: transform .2s, background .2s; }
.rv-launcher:hover, .rv-launcher:focus-visible { background: #0f2e57; transform: translateY(-1px); outline: 3px solid rgba(60,194,230,.5); outline-offset: 2px; }
.rv-launcher .rv-mark { width: 26px; height: 26px; border-radius: 8px; }
.rv-launcher .rv-mark svg { width: 14px; height: 14px; }
.rv-launcher[aria-expanded="true"] { display: none; }
.rv-panel { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 10050; width: min(440px, calc(100vw - 32px)); height: min(680px, calc(100vh - 40px)); display: none; }
.rv-panel.is-open { display: flex; animation: rv-in .22s ease-out; }
.rv-panel .rv { width: 100%; height: 100%; }
@keyframes rv-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .rv-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; }
  .rv-panel .rv { border-radius: 0; border: 0; }
  .rv-launcher span.rv-launcher__t { display: none; }
  .rv-launcher { padding: 11px; }
  .rv--inline { height: 640px; }
  .rv-bubble { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) { .rv *, .rv-panel, .rv-launcher { animation: none !important; transition: none !important; } }

/* Keep other floating buttons out of the way while the panel is open. */
body.rv-open .whatsapp-float-btn, body.rv-open .rx-whatsapp, body.rv-open [class*="whatsapp-float"] { display: none !important; }
.rv .rv-input:focus, .rv .rv-input:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; }

/* EnviroSaathi dedicated page */
.es-page { background: #fff; }
.es-shell { width: min(1180px, calc(100% - 2 * clamp(16px, 4vw, 56px))); margin: 0 auto; }
.es-hero { padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, #eef4f9 0%, #fff 70%); }
.es-hero .sol-breadcrumb { margin-bottom: 18px; }
.es-hero__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.es-hero__logo { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; background: #fff; padding: 8px; box-shadow: 0 8px 24px -12px rgba(11,37,69,.35); object-fit: contain; }
.es-eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #0b6fa4; margin: 0 0 8px; }
.es-hero h1 { font-family: "Archivo", "Inter", sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; color: #0b2545; margin: 0 0 10px; max-width: 24ch; }
.es-lede { font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.6; color: #1c3048; margin: 0; max-width: 64ch; }
.es-chat .rv { height: clamp(560px, 76vh, 760px); }
.es-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 16px 0 0; font-size: 13.5px; color: #51647a; }
.es-trust span::before { content: "✓ "; color: #0b6fa4; font-weight: 700; }
.es-section { padding: clamp(48px, 6vw, 84px) 0; }
.es-section--tint { background: #f5f8fb; }
.es-section h2 { font-family: "Archivo", "Inter", sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; color: #0b2545; margin: 0 0 24px; }
.es-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.es-topic { border: 1px solid #dde6ef; border-radius: 14px; padding: 18px 18px 14px; background: #fff; }
.es-topic h3 { font-family: "Archivo", "Inter", sans-serif; font-size: 1.1rem; color: #0b2545; margin: 0 0 4px; }
.es-topic p { margin: 0 0 10px; font-size: 14px; color: #51647a; }
.es-topic ul { list-style: none; margin: 0; padding: 0; }
.es-topic li button { width: 100%; text-align: left; border: 0; border-top: 1px solid #eef4f9; background: none; padding: 10px 0; font: inherit; font-size: 14.5px; color: #0b2545; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.es-topic li button:hover, .es-topic li button:focus-visible { color: #0b6fa4; outline: none; }
.es-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.es-steps li { background: #fff; border: 1px solid #dde6ef; border-radius: 14px; padding: 18px; }
.es-steps b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #0b2545; color: #fff; font-size: 14px; margin-bottom: 10px; }
.es-steps h3 { font-size: 1.05rem; color: #0b2545; margin: 0 0 6px; }
.es-steps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #1c3048; }
.es-rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.es-rules > div p:last-child { color: #1c3048; line-height: 1.6; }
.es-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.es-rules li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid #dde6ef; }
.es-rules li strong { color: #0b2545; font-size: 15.5px; }
.es-rules li span { color: #51647a; font-size: 14.5px; }
@media (max-width: 860px) { .es-rules { grid-template-columns: 1fr; } .es-hero__head { gap: 12px; } .es-hero__logo { width: 48px; height: 48px; } }
.rv .rv-input { border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; padding-left: 0 !important; }

/* Coin and sign-in notices inside answers */
.rv-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px; background: #fff8e8; border: 1px solid #f1d9a6; color: #5b4310; font-size: 14px; line-height: 1.5; }
.rv-notice > span { flex: 1 1 260px; }
.rv-notice__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-nbtn { border: 1px solid #d9bf86; background: #fff; color: #5b4310; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; }
.rv-nbtn--primary { background: #0b2545; border-color: #0b2545; color: #fff; }

/* ---------- EnviroSaathi full-page app ---------- */
.es-app {
  --rv-ink: #0b2545; --rv-ink-2: #0f2e57; --rv-text: #1c3048; --rv-muted: #51647a; --rv-line: #dde6ef;
  --rv-paper: #f5f8fb; --rv-mist: #eef4f9; --rv-blue: #0b6fa4; --rv-cyan: #3cc2e6; --rv-white: #fff;
  --es-ink: #0b2545; --es-text: #1c3048; --es-muted: #51647a; --es-line: #dde6ef; --es-paper: #f5f8fb; --es-blue: #0b6fa4;
  position: relative; display: grid; grid-template-columns: 288px minmax(0, 1fr);
  height: calc(100dvh - var(--es-top-offset, 0px)); min-height: 520px; background: #fff; color: var(--es-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; border-bottom: 1px solid var(--es-line);
}
.es-app *, .es-app *::before, .es-app *::after { box-sizing: border-box; }
.es-app button { font: inherit; cursor: pointer; }
.es-icon { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--es-muted); display: inline-grid; place-items: center; flex: 0 0 auto; }
.es-icon:hover, .es-icon:focus-visible { background: #e8eef5; color: var(--es-ink); outline: none; }
.es-icon svg { width: 18px; height: 18px; }

/* Sidebar */
.es-side { display: flex; flex-direction: column; min-height: 0; background: var(--es-paper); border-right: 1px solid var(--es-line); padding: 14px 12px 12px; gap: 10px; }
.es-side__brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 6px; }
.es-side__brand strong { display: block; font-family: "Archivo", "Inter", sans-serif; font-size: 16px; color: var(--es-ink); }
.es-side__brand small { display: block; font-size: 12px; color: var(--es-muted); }
.es-side__logo { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(11,37,69,.08); }
.es-side__logo img { width: 26px; height: 26px; object-fit: contain; }
.es-side__close { margin-left: auto; display: none; }
.es-new { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--es-line); background: #fff; color: var(--es-ink); font-weight: 600; font-size: 14.5px; }
.es-new svg { width: 18px; height: 18px; }
.es-new:hover, .es-new:focus-visible { border-color: var(--es-blue); outline: none; }
.es-sessions { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.es-sessions__group { margin: 14px 8px 6px; font-size: 12px; font-weight: 650; color: var(--es-muted); }
.es-sessions__empty { margin: 14px 8px; font-size: 13.5px; line-height: 1.5; color: var(--es-muted); }
.es-chatrow { display: flex; align-items: center; border-radius: 10px; }
.es-chatrow:hover, .es-chatrow.is-active { background: #e6edf5; }
.es-chatrow__open { flex: 1 1 auto; min-width: 0; text-align: left; border: 0; background: none; padding: 9px 10px; font-size: 14px; color: var(--es-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 10px; }
.es-chatrow.is-active .es-chatrow__open { color: var(--es-ink); font-weight: 600; }
.es-chatrow__open:focus-visible { outline: 2px solid var(--es-blue); outline-offset: -2px; }
.es-chatrow__del { width: 30px; height: 30px; opacity: 0; }
.es-chatrow:hover .es-chatrow__del, .es-chatrow__del:focus-visible, .es-chatrow.is-active .es-chatrow__del { opacity: 1; }
.es-chatrow__del svg { width: 16px; height: 16px; }
.es-side__foot { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--es-line); }
.es-wallet { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--es-line); }
.es-wallet__head { display: flex; align-items: center; gap: 8px; }
.es-wallet__head strong { font-size: 15px; color: var(--es-ink); }
.es-wallet__icon { color: #b07d12; display: inline-grid; } .es-wallet__icon svg { width: 20px; height: 20px; }
.es-wallet__bar { height: 6px; border-radius: 999px; background: #e6edf5; overflow: hidden; }
.es-wallet__bar i { display: block; height: 100%; background: linear-gradient(90deg, #0b6fa4, #3cc2e6); border-radius: inherit; }
.es-wallet small { font-size: 12.5px; color: var(--es-muted); }
.es-btn { width: 100%; border: 1px solid var(--es-ink); background: var(--es-ink); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.es-btn:hover, .es-btn:focus-visible { background: #133a6b; outline: none; }
.es-btn:disabled { opacity: .6; cursor: default; }
.es-btn--soft { background: #fff; color: var(--es-ink); border-color: var(--es-line); }
.es-btn--soft:hover, .es-btn--soft:focus-visible { background: #eef4f9; }
.es-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.es-who > div { min-width: 0; }
.es-who strong, .es-who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-who strong { font-size: 14px; color: var(--es-ink); } .es-who small { font-size: 12.5px; color: var(--es-muted); }
.es-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--es-ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.es-account { display: grid; gap: 6px; }
.es-link { border: 0; background: none; padding: 2px 0; color: var(--es-blue); font-size: 13.5px; font-weight: 600; text-align: left; }
.es-link:hover, .es-link:focus-visible { text-decoration: underline; outline: none; }

/* Main column */
.es-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.es-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #eef2f6; }
.es-top__menu { display: none; }
.es-modelpick { position: relative; }
.es-model { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; font-family: "Archivo", "Inter", sans-serif; font-size: 16px; font-weight: 700; color: var(--es-ink); }
.es-model svg { width: 16px; height: 16px; color: var(--es-muted); }
.es-model:hover, .es-model:focus-visible, .es-model[aria-expanded="true"] { background: #eef4f9; outline: none; }
.es-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: min(340px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--es-line); border-radius: 14px; box-shadow: 0 18px 48px -18px rgba(11,37,69,.35); padding: 6px; }
.es-menu__item { display: flex; align-items: flex-start; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 10px; }
.es-menu__item:hover, .es-menu__item:focus-visible { background: #eef4f9; outline: none; }
.es-menu__t { flex: 1 1 auto; } .es-menu__t strong { display: block; font-size: 14.5px; color: var(--es-ink); } .es-menu__t small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--es-muted); }
.es-menu__tick { width: 18px; color: var(--es-blue); } .es-menu__tick svg { width: 18px; height: 18px; }
.es-top__about { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--es-blue); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.es-top__about:hover, .es-top__about:focus-visible { background: #eef4f9; outline: none; }

.es-log.rv-log { flex: 1 1 auto; background: #fff; padding: 28px max(20px, calc((100% - 780px) / 2)) 12px; gap: 22px; }
.es-log .rv-bubble { font-size: 15.5px; }
.es-log .rv-msg--bot .rv-bubble { border: 0; padding: 4px 0 0; background: none; }
.es-log .rv-msg--user .rv-bubble { background: #eef4f9; color: var(--es-ink); border-radius: 18px; border-bottom-right-radius: 6px; }
.es-empty { margin: auto 0; text-align: center; padding: 12px 0 24px; }
.es-empty__logo { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px -14px rgba(11,37,69,.45), inset 0 0 0 1px rgba(11,37,69,.06); margin-bottom: 16px; }
.es-empty__logo img { width: 44px; height: 44px; object-fit: contain; }
.es-empty h2 { font-family: "Archivo", "Inter", sans-serif; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; color: var(--es-ink); margin: 0 0 10px; }
.es-empty p { margin: 0 auto 24px; max-width: 58ch; color: var(--es-muted); font-size: 15px; line-height: 1.6; }
.es-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }

.es-composer { padding: 8px max(20px, calc((100% - 780px) / 2)) 14px; background: #fff; }
.es-inputwrap { display: flex; align-items: flex-end; gap: 8px; border: 1px solid #cfdae6; border-radius: 22px; padding: 8px 8px 8px 18px; background: #fff; box-shadow: 0 6px 24px -16px rgba(11,37,69,.4); }
.es-inputwrap:focus-within { border-color: var(--es-blue); }
.es-input.rv-input { flex: 1 1 auto; border: 0; outline: none; resize: none; font: inherit; font-size: 15.5px; line-height: 1.5; padding: 8px 0; max-height: 200px; background: none; color: var(--es-text); }
.es-send.rv-send { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.es-hint { margin: 8px 4px 0; text-align: center; font-size: 12.5px; color: var(--es-muted); }

/* Dialogs */
.es-dialog { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(11,37,69,.45); font-family: "Inter", system-ui, sans-serif; }
.es-dialog__card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 26px 24px 22px; box-shadow: 0 30px 80px -30px rgba(11,37,69,.6); color: #1c3048; }
.es-dialog__card h2 { font-family: "Archivo", "Inter", sans-serif; font-size: 1.35rem; color: #0b2545; margin: 0 36px 8px 0; }
.es-dialog__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; background: none; border-radius: 10px; color: #51647a; display: grid; place-items: center; cursor: pointer; }
.es-dialog__x:hover, .es-dialog__x:focus-visible { background: #eef4f9; outline: none; }
.es-dialog__x svg { width: 18px; height: 18px; }
.es-dialog__lede { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: #51647a; }
.es-dialog__fine { margin: 12px 0 0; font-size: 13px; color: #51647a; line-height: 1.5; }
.es-form { display: grid; gap: 12px; }
.es-form__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.es-field { display: grid; gap: 6px; }
.es-field span { font-size: 13.5px; font-weight: 600; color: #0b2545; }
.es-field input { font: inherit; font-size: 15.5px; padding: 11px 13px; border: 1px solid #cfdae6; border-radius: 10px; color: #0b2545; width: 100%; }
.es-field input:focus { outline: 2px solid #0b6fa4; outline-offset: 0; border-color: transparent; }
.es-field small { font-size: 12.5px; color: #51647a; }
.es-error { margin: 0; min-height: 0; font-size: 13.5px; color: #a3241b; }
.es-error:empty { display: none; }
.es-dialog .es-btn { cursor: pointer; font: inherit; font-weight: 600; }
.es-dialog .es-link { cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; }
.es-packs { display: grid; gap: 8px; }
.es-pack { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #dde6ef; border-radius: 12px; cursor: pointer; }
.es-pack:has(input:checked) { border-color: #0b6fa4; background: #f2f8fc; }
.es-pack span { flex: 1 1 auto; } .es-pack strong { display: block; color: #0b2545; font-size: 15px; } .es-pack small { display: block; font-size: 12.5px; color: #51647a; }
.es-pack b { color: #0b2545; font-size: 15px; }

/* Page below the app */
.es-scrim { display: none; }
@media (max-width: 900px) {
  .es-app { grid-template-columns: minmax(0, 1fr); }
  .es-side { position: absolute; inset: 0 auto 0 0; z-index: 40; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(11,37,69,.25); }
  .es-app.is-side-open .es-side { transform: none; }
  .es-scrim:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 35; background: rgba(11,37,69,.35); }
  .es-side__close, .es-top__menu { display: inline-grid; }
  .es-top { padding: 8px 10px; }
  .es-log.rv-log { padding: 20px 16px 10px; }
  .es-composer { padding: 6px 12px 10px; }
  .es-examples { grid-template-columns: minmax(0, 1fr); }
  .es-hint { font-size: 11.5px; }
}
@media (max-width: 520px) { .es-top__about { display: none; } }
@media (prefers-reduced-motion: reduce) { .es-side { transition: none; } }

.es-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.es-apphost { display: block; }
.es-noscript { padding: 48px 20px; text-align: center; font-size: 16px; }
.es-intro { background: linear-gradient(180deg, #eef4f9 0%, #fff 80%); }
.es-intro .sol-breadcrumb { margin-bottom: 18px; }
.es-intro h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 26ch; margin-bottom: 10px; }
.es-intro .es-trust { justify-content: flex-start; }
.es-app .es-input.rv-input, .es-app .es-input.rv-input:focus { border: 0 !important; box-shadow: none !important; background: none !important; outline: none !important; border-radius: 0; }
/* The chat composer sits where the floating WhatsApp button would; the page footer still links to WhatsApp. */
body:has(.es-app) .whatsapp-float-btn { display: none !important; }

/* Solutions explained inside the answer */
.rv-bubble .rv-intro, .rv-bubble .rv-next { margin: 0; }
.rv-bubble .rv-next { margin-top: 12px; }
.rv-explain { list-style: none; counter-reset: rv-sol; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.rv-explain li { counter-increment: rv-sol; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.rv-explain li::before { content: counter(rv-sol); grid-row: span 2; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: #e3eef7; color: var(--rv-blue); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.rv-explain__name { font-weight: 650; color: var(--rv-ink); text-decoration: none; }
.rv-explain__name:hover, .rv-explain__name:focus-visible { color: var(--rv-blue); text-decoration: underline; outline: none; }
.rv-explain__why { display: block; color: var(--rv-text); }
.rv-bubble p.rv-intro, .rv-bubble p.rv-next { color: inherit; font-size: inherit; line-height: inherit; max-width: none; }
