/* theintern.my visual layer (v0.4). Loaded after app.css. Plain CSS, no build step.
 * Look: bold navy and blue surfaces, big quarter-circle shapes, yellow highlights, white pill chips
 * (the same language as the promo videos). Motion is CSS-first and switched off for
 * people who ask for reduced motion. Nothing here is required for the app to work. */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow-lift: 0 2px 4px rgb(11 18 64 / .06), 0 14px 32px rgb(11 18 64 / .12);
  --grad-hero: linear-gradient(160deg, #0B1240 0%, #101a6e 55%, #16249A 100%);
  --wrap: 1180px;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: #F7F8FF; }
body.guest.home { background: #fff; }
::selection { background: var(--brand-yellow); color: var(--brand-navy); }

/* ---------- Motion primitives ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.8) translateY(8px); } 70% { transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes drift-a { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(-18px, 22px, 0) rotate(4deg); } }
@keyframes drift-b { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(20px, -16px, 0) rotate(-5deg); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dot-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-.28em); } 60% { transform: translateY(0); } 75% { transform: translateY(-.1em); } }
@keyframes mark-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.rise { animation: rise .8s var(--ease-out) both; }
.pop { animation: pop .6s var(--ease-out) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .5s; } .d6 { animation-delay: .62s; } .d7 { animation-delay: .74s; }

/* Scroll reveal: only hidden when JS is running, so the page is always readable without it. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.d2 { transition-delay: .12s; } .js .reveal.d3 { transition-delay: .24s; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Pages inside the app fade in */
.content > * { animation: page-in .45s var(--ease-out) both; }
.content > *:nth-child(2) { animation-delay: .05s; }
.content > *:nth-child(3) { animation-delay: .1s; }
.content > *:nth-child(n+4) { animation-delay: .15s; }

/* ---------- Wordmark ---------- */
.wordmark .i::after { animation: dot-bounce 3.2s ease-in-out 1.2s infinite; transform-origin: center; }
.wordmark-lg { font-size: clamp(2.25rem, 6vw, 3rem); }

/* ---------- Shapes (quarter circles, as in the promo videos) ---------- */
.shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; display: block; background: rgb(255 255 255 / .07); }
.shape-a { width: clamp(220px, 34vw, 520px); aspect-ratio: 1; border-radius: 0 0 0 100%; top: 0; right: 0; background: rgb(93 110 255 / .28); animation: drift-a 16s ease-in-out infinite; }
.shape-b { width: clamp(120px, 18vw, 260px); aspect-ratio: 1; border-radius: 100% 0 0 0; bottom: -2px; left: 0; background: rgb(255 194 14 / .16); animation: drift-b 20s ease-in-out infinite; }
.shape-c { width: clamp(80px, 12vw, 180px); aspect-ratio: 1; border-radius: 0 100% 0 0; bottom: 14%; right: 28%; background: rgb(204 0 1 / .28); animation: drift-a 24s ease-in-out infinite reverse; }
.shape-d { width: clamp(60px, 9vw, 120px); aspect-ratio: 1; border-radius: 100% 0 0 0; top: 18%; left: 46%; background: rgb(255 255 255 / .06); animation: drift-b 18s ease-in-out infinite; }

/* ---------- Top bar ---------- */
.topbar { background: rgb(255 255 255 / .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgb(11 18 64 / .08); box-shadow: 0 1px 0 rgb(255 255 255), 0 6px 20px rgb(11 18 64 / .04); }
.topbar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand-blue) 0 55%, var(--brand-yellow) 55% 80%, var(--brand-red) 80%); }
.topbar-inner { padding-block: 14px; }
.topbar-dark { background: rgb(11 18 64 / .86); border-bottom-color: rgb(255 255 255 / .08); transition: box-shadow .3s, background-color .3s; }
.topbar-dark.is-stuck { background: rgb(11 18 64 / .96); box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.topnav { display: none; gap: 4px; margin-inline: auto 12px; }
.topnav a { color: #C9CFFF; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: var(--radius-pill); transition: background-color .2s, color .2s; }
.topnav a:hover { background: rgb(255 255 255 / .1); color: #fff; }
.topbar-actions { gap: 8px; }
@media (min-width: 860px) { .topnav { display: flex; } }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .12); color: #fff; }
.user-chip .btn-ghost:hover { background: var(--color-surface-alt); color: var(--color-text); }
.avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand-yellow); }

/* ---------- Buttons ---------- */
.btn { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(180deg, #1d2fc0, var(--color-primary)); box-shadow: 0 6px 16px rgb(22 36 154 / .28); }
.btn-primary:hover { box-shadow: 0 10px 22px rgb(22 36 154 / .36); }
.btn-cta, .btn-hero { background: linear-gradient(180deg, #e50f10, var(--color-cta)); box-shadow: 0 8px 20px rgb(204 0 1 / .35); color: #fff; }
.btn-cta:hover, .btn-hero:hover { box-shadow: 0 12px 26px rgb(204 0 1 / .45); color: #fff; }
.btn-accent { box-shadow: 0 6px 16px rgb(255 194 14 / .35); }
.btn-accent:hover { background: #ffd04d; color: var(--color-on-accent); }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.0625rem; }
.btn .nav-icon { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.btn:hover .nav-icon { transform: translateX(4px); }
.btn-outline:hover { border-color: var(--color-primary); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); }
.hero-xl .hero-inner { padding: 56px 16px 72px; position: relative; max-width: var(--wrap); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(2.25rem, 7.2vw, 4rem); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.hero .lead { font-size: clamp(1.0625rem, 2.4vw, 1.25rem); color: #D5DAFF; max-width: 46ch; }
.hero mark { background: linear-gradient(var(--brand-yellow), var(--brand-yellow)) no-repeat left / 100% 100%; animation: mark-sweep 1s var(--ease-out) .7s both; padding: 0 .18em; border-radius: .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.eyebrow-pill { display: inline-block; background: rgb(255 255 255 / .1); color: var(--brand-yellow); border: 1px solid rgb(255 194 14 / .4); border-radius: var(--radius-pill); padding: 6px 14px; font-size: .8125rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.btn-hero-outline { border-color: rgb(255 255 255 / .5); }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand-navy); font-weight: 700; font-size: .9375rem; padding: 8px 16px 8px 8px; border-radius: var(--radius-pill); box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
.chip-tick { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-yellow); display: grid; place-items: center; flex: none; }
.chip-tick .nav-icon { width: 14px; height: 14px; stroke-width: 3.2; color: var(--brand-navy); }

.hero-media { position: relative; display: grid; place-items: center; min-height: 440px; }
.phone { position: relative; width: min(250px, 58vw); aspect-ratio: 9 / 16; border-radius: 34px; padding: 8px; background: #0a0f33; box-shadow: 0 30px 60px rgb(0 0 0 / .45), inset 0 0 0 2px rgb(255 255 255 / .12); overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: rgb(255 255 255 / .18); z-index: 2; }
.promo { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; display: block; background: var(--brand-navy); }
.phone-main { z-index: 2; animation: float-y 7s ease-in-out infinite; }
.phone-back { position: absolute; width: min(210px, 48vw); right: 2%; top: 38px; opacity: .92; transform: rotate(8deg) translateX(30%); }
@media (max-width: 520px) { .phone-back { display: none; } .hero-media { min-height: 0; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero-xl .hero-inner { padding-block: 88px 104px; }
  .phone { width: 290px; }
  .phone-back { width: 244px; }
}

/* ---------- Bands, tiles, sections ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.band { padding: 56px 0; }
.band-mist { background: var(--brand-mist); }
.band-slim { padding-block: 24px 40px; display: grid; gap: 16px; }
.display { font-size: clamp(1.75rem, 4.6vw, 2.75rem); font-weight: 900; letter-spacing: -.015em; line-height: 1.1; }
.section-head { display: grid; gap: 10px; }
.lead-sm { font-size: 1.125rem; max-width: 52ch; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.tile, .feature { padding: 26px; gap: 12px; border-radius: 24px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s; }
.tile:hover, .feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--color-primary); }
.tile h2, .feature h3 { font-size: 1.3125rem; font-weight: 900; }
.tile-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); transition: transform .35s var(--ease-out); }
.tile-icon .nav-icon { width: 26px; height: 26px; }
.tile-icon-yellow { background: #FFF1C2; color: #7A4B00; }
.tile-icon-red { background: #FFE0E0; color: var(--color-danger); }
.tile:hover .tile-icon, .feature:hover .tile-icon { transform: rotate(-8deg) scale(1.1); }

.how-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.how-col { background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }
.how-title { font-size: 1.25rem; font-weight: 900; margin-bottom: 18px; display: inline-block; background: var(--brand-yellow); padding: 2px 14px; border-radius: var(--radius-pill); }
.timeline { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { counter-increment: s; position: relative; display: grid; gap: 2px; padding: 0 0 22px 56px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--brand-mist); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; width: 3px; background: linear-gradient(var(--color-primary), var(--brand-mist)); }
.timeline li:last-child::after { display: none; }
.timeline strong { font-size: 1.0625rem; }

.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy)); color: #fff; padding: 72px 0; text-align: center; }
.cta-inner { position: relative; display: grid; gap: 18px; justify-items: center; }
.cta-band .lead { color: #D5DAFF; font-size: 1.1875rem; max-width: 40ch; }
.row-center { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-navy); border-top: 0; color: #B9C0F0; }
.site-footer a { color: #D5DAFF; }
.site-footer a:hover { color: var(--brand-yellow); }
.site-footer-inner { padding-top: 28px; color: #B9C0F0; }
.site-footer p:first-child { color: #fff; }

/* ---------- Auth pages ---------- */
.auth-split { display: grid; grid-template-columns: 1fr; min-height: 0; }
.auth-art { display: none; position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; }
.auth-art-inner { position: relative; display: grid; gap: 18px; align-content: center; justify-items: start; padding: 64px 48px; height: 100%; }
.auth-tag { font-size: 1.5rem; font-weight: 900; line-height: 1.2; max-width: 18ch; color: #fff; }
.guest-main { background: radial-gradient(900px 400px at 100% 0%, #EEF1FF, transparent 70%), #F7F8FF; padding-block: 40px; }
.guest-card { background: #fff; border: 1px solid var(--color-border); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-lift); animation: rise .6s var(--ease-out) both; }
@media (min-width: 900px) {
  .auth-split { grid-template-columns: minmax(340px, 5fr) 6fr; min-height: calc(100vh - 140px); }
  .auth-art { display: block; }
  .guest-brand { display: none; }
  .guest-main { padding: 48px 32px; }
  .guest-card { padding: 36px; }
}

/* ---------- App shell ---------- */
.sidenav a { transition: background-color .2s, color .2s, transform .2s var(--ease-out); position: relative; }
.sidenav a:hover { transform: translateX(3px); }
.sidenav a[aria-current="page"] { background: var(--color-primary-soft); color: var(--color-primary); }
.sidenav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-yellow); }
.sidenav a .nav-icon { transition: transform .25s var(--ease-out); }
.sidenav a:hover .nav-icon { transform: scale(1.12); }
.bottomnav { box-shadow: 0 -8px 24px rgb(11 18 64 / .08); }
.bottomnav a[aria-current="page"] .nav-icon { transform: translateY(-2px); }
.bottomnav a[aria-current="page"]::after { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-yellow); }

.content h1 { font-size: clamp(1.625rem, 4vw, 2.25rem); letter-spacing: -.015em; position: relative; padding-bottom: 12px; }
.content h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--brand-yellow) 0 60%, var(--brand-red) 60%); transform-origin: left; animation: mark-grow .7s var(--ease-out) .2s both; }
@keyframes mark-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.card { border-radius: 22px; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s; }
a.card:hover, .thread-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--color-primary); }
.stat { background: linear-gradient(135deg, var(--brand-blue), #4a5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { letter-spacing: .01em; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: var(--brand-mist); }
.table-wrap { border-radius: 18px; box-shadow: var(--shadow-card); }
.alert { border-radius: 16px; border-left: 5px solid currentColor; animation: rise .4s var(--ease-out) both; }
.input, .select, .textarea { border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 4px rgb(22 36 154 / .14); }
.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--brand-blue), #4a5cff); }
.msg { animation: pop .3s var(--ease-out) both; }
.install-banner { border: 1px solid #D9DDF2; border-radius: 18px; }
.fee-rule { border-radius: 16px; }

/* ---------- Reduced motion: no movement, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .tile:hover, .feature:hover, a.card:hover { transform: none; }
}

/* The auth screens put their own .card inside .guest-card: flatten it so there is one surface. */
.guest-card .card { box-shadow: none; border: 0; padding: 0; background: transparent; border-radius: 0; }
.guest-card .card:hover { transform: none; }

/* ---------- Institutions band ---------- */
.how-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.inst { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; padding: 72px 0; }
.inst-inner { position: relative; }
.inst .display { color: #fff; }
.inst .lead-sm { color: #D5DAFF; }
.inst-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.inst-card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 24px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(6px); transition: transform .3s var(--ease-out), background-color .3s, border-color .3s; }
.inst-card:hover { transform: translateY(-6px); background: rgb(255 255 255 / .14); border-color: var(--brand-yellow); }
.inst-card h3 { font-size: 1.25rem; font-weight: 900; color: #fff; }
.inst-card p { color: #D5DAFF; }
.inst-card:hover .tile-icon { transform: rotate(-8deg) scale(1.1); }
@media (prefers-reduced-motion: reduce) { .inst-card:hover { transform: none; } }
@media (min-width: 640px) { .inst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .inst-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Admin > Marketing ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--color-border); }
.tabs a { padding: 10px 18px; font-weight: 900; text-decoration: none; color: var(--color-text-muted); border-radius: 12px 12px 0 0; margin-bottom: -2px; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--brand-yellow); background: var(--color-primary-soft); }
.tpl-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tpl-card { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 2px solid var(--color-border); border-radius: 16px; cursor: pointer; background: var(--color-surface); transition: border-color .2s, background-color .2s, transform .2s var(--ease-out); }
.tpl-card:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.tpl-card input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-card:has(input:checked) { border-color: var(--brand-yellow); background: #FFF8DD; box-shadow: 0 0 0 3px rgb(255 194 14 / .35); }
.tpl-card:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.saved-row { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 14px; text-decoration: none; color: inherit; transition: background-color .15s, border-color .15s; }
.saved-row:hover { background: var(--brand-mist); border-color: var(--color-primary); }
.mk-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .mk-layout { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); } .mk-stage { position: sticky; top: 88px; } .mk-layout > form:last-child { grid-column: 2; } }
.mk-canvas { width: 100%; max-width: 360px; height: auto; border-radius: 20px; background: var(--brand-navy); box-shadow: var(--shadow-lift); justify-self: center; display: block; margin-inline: auto; }
.mk-canvas.mk-1x1 { max-width: 420px; }
.mk-video { width: 100%; max-width: 360px; border-radius: 16px; display: block; margin-inline: auto; }
.mk-controls { display: grid; gap: 4px; }
.mk-controls input[type=range] { width: 100%; accent-color: var(--color-primary); }
.scene-card { padding: 14px 18px; gap: 8px; }
.scene-card summary { display: flex; align-items: center; gap: 10px; }
.scene-card .form { margin-top: 12px; }
.mk-form .eyebrow { margin-bottom: 4px; }

.badge-warning { background: var(--color-warning-soft); color: var(--color-warning); }
.video-frame { width: 100%; aspect-ratio: 16 / 10; min-height: 420px; border: 0; border-radius: var(--radius-md); background: #0B1240; display: block; }

/* Help chatbot */
.helpbot { position: fixed; right: 16px; bottom: 16px; z-index: 60; font-size: 15px; }
.helpbot-fab { display: inline-flex; gap: 8px; align-items: center; border-radius: 999px; box-shadow: 0 6px 20px rgba(11, 18, 64, .25); }
.helpbot-panel { width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--surface, #fff); color: var(--text, #0B1240); border: 1px solid var(--border, #d9deff); border-radius: 16px; box-shadow: 0 12px 40px rgba(11, 18, 64, .3); overflow: hidden; }
.helpbot-panel[hidden], .helpbot-person[hidden], .helpbot-form[hidden] { display: none; }
.helpbot-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--brand, #16249A); color: #fff; }
.helpbot-head .muted { color: rgba(255, 255, 255, .8); flex: 1; }
.helpbot-close { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.helpbot-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.hb-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; white-space: normal; overflow-wrap: anywhere; background: var(--mist, #EEF1FF); }
.hb-user { align-self: flex-end; background: var(--brand, #16249A); color: #fff; }
.hb-human { background: #fff3cf; border: 1px solid #ffc20e; }
.hb-cards { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.hb-card { font-size: 13px; text-decoration: underline; }
.hb-rate { margin-top: 4px; }
.hb-rate-btn { background: none; border: 1px solid var(--border, #d9deff); border-radius: 8px; cursor: pointer; margin-right: 4px; padding: 0 6px; }
.hb-typing { letter-spacing: 2px; animation: hbpulse 1s infinite; }
@keyframes hbpulse { 50% { opacity: .35; } }
.helpbot-form, .helpbot-person { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border, #d9deff); }
.helpbot-person { flex-direction: column; }
.helpbot-form input, .helpbot-person input { flex: 1; min-width: 0; }
.helpbot-foot { display: flex; justify-content: space-between; padding: 0 12px 6px; }
.helpbot-note { padding: 0 12px 10px; margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 760px) { .helpbot { bottom: 76px; right: 12px; } }
@media (prefers-reduced-motion: reduce) { .hb-typing { animation: none; } }
