/**
 * Vibrant Innovations — Chat assistant
 * Launcher, nudge bubble and chat window. Uses the theme tokens from
 * theme.css, so light and dark mode follow the rest of the site.
 */

.vic {
  --vic-accent: var(--vi-accent, #a0cba9);
  --vic-accent-strong: var(--vi-accent-strong, #7fb28b);
  --vic-on-accent: #10231a;
  --vic-surface: var(--vi-surface, #fff);
  --vic-raised: var(--vi-raised, #f6f8f6);
  --vic-line: var(--vi-line, rgba(16,24,20,.1));
  --vic-text: var(--vi-text, #3d4a42);
  --vic-heading: var(--vi-heading, #1c2620);
  --vic-muted: var(--vi-muted, #6b7a71);
  --vic-user: #cfe6d4;
  --vic-spring: cubic-bezier(.34, 1.56, .64, 1);
  --vic-ease: cubic-bezier(.4, 0, .2, 1);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--vic-text);
  -webkit-tap-highlight-color: transparent;
}
:root[data-theme="dark"] .vic { --vic-user: #2f4a38; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vic { --vic-user: #2f4a38; } }

.vic *, .vic *::before, .vic *::after { box-sizing: border-box; }
.vic button { font: inherit; color: inherit; }
.vic-haptic { display: none; }

/* Keep the site's scroll-to-top button clear of the launcher */
html.vic-on .scroll-top { right: 26px; }
html.vic-on .scroll-top.active { bottom: 96px; }

/* ── Launcher ─────────────────────────────────────────────────────── */
.vic-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vic-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 100000;
  width: 66px; height: 66px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  /* a lit celadon sphere: highlight top-left, deeper tone bottom-right */
  background: radial-gradient(115% 115% at 28% 18%, #e2f4e7 0%, #a8d4b2 34%, #74aa84 70%, #4a825c 100%);
  color: #fff;
  box-shadow:
    inset 0 3px 2px rgba(255, 255, 255, .6),
    inset 0 -7px 12px rgba(20, 62, 36, .38),
    0 16px 26px -8px rgba(22, 60, 38, .55),
    0 5px 10px rgba(16, 36, 24, .18);
  transition: transform .45s var(--vic-spring), box-shadow .3s var(--vic-ease);
  will-change: transform;
}
.vic-launcher::before {        /* glossy reflection */
  content: ""; position: absolute; top: 6px; left: 12px; width: 32px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0));
  transform: rotate(-22deg); pointer-events: none;
}
.vic-launcher:hover {
  transform: perspective(360px) translateY(-4px) rotateX(12deg) rotateY(-12deg) scale(1.05);
  box-shadow:
    inset 0 3px 2px rgba(255, 255, 255, .65),
    inset 0 -7px 12px rgba(20, 62, 36, .38),
    6px 22px 30px -8px rgba(22, 60, 38, .55),
    0 6px 12px rgba(16, 36, 24, .2);
}
.vic-launcher:active { transform: perspective(360px) translateY(1px) scale(.9); transition-duration: .12s; }
.vic-launcher:focus-visible { outline: 3px solid var(--vic-accent-strong); outline-offset: 4px; }
.vic-launcher .vic-mark, .vic-launcher i { grid-area: 1 / 1; transition: transform .45s var(--vic-spring), opacity .2s; }
.vic-launcher .vic-mark { width: 42px; height: 42px; margin-top: 2px; filter: drop-shadow(0 3px 2.5px rgba(18, 52, 32, .38)); animation: vic-float 4.6s ease-in-out infinite; }
.vic-launcher:hover .vic-mark { transform: translate(-1px, -2px) scale(1.06); }
.vic-launcher .vic-spark { transform-origin: 39.5px 8.5px; animation: vic-twinkle 3.2s ease-in-out infinite; }
.vic-launcher .vic-i-close { opacity: 0; transform: rotate(-90deg) scale(.6); font-size: 24px; line-height: 1; text-shadow: 0 2px 3px rgba(18, 52, 32, .45); }
.vic.is-open .vic-launcher .vic-i-open { opacity: 0; transform: rotate(90deg) scale(.5); animation: none; }
.vic.is-open .vic-launcher .vic-i-close { opacity: 1; transform: none; }
.vic-launcher::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(127, 178, 139, .55); pointer-events: none;
}
.vic.is-nudging .vic-launcher { animation: vic-wiggle 1.2s var(--vic-ease) 2; }
.vic.is-nudging .vic-launcher::after { animation: vic-ring 1.8s var(--vic-ease) infinite; }
.vic-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: #d64553; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--vic-surface);
  animation: vic-pop .4s var(--vic-spring);
}
.vic-badge[hidden] { display: none; }

/* ── Nudge bubble ─────────────────────────────────────────────────── */
.vic-nudge {
  position: fixed; right: 18px; bottom: 92px; z-index: 100000;
  width: min(330px, calc(100vw - 36px));
  background: var(--vic-surface); color: var(--vic-text);
  border: 1px solid var(--vic-line); border-radius: 18px 18px 6px 18px;
  box-shadow: 0 18px 44px rgba(16, 24, 20, .18);
  padding: 14px 14px 12px; transform-origin: bottom right;
  animation: vic-rise .45s var(--vic-spring);
}
.vic-nudge[hidden] { display: none; }
.vic-nudge-head { display: flex; align-items: center; gap: 10px; margin: 0 26px 8px 0; }
.vic-nudge-head strong { font-family: "Raleway", sans-serif; font-size: .92rem; color: var(--vic-heading); }
.vic-nudge p { margin: 0 0 10px; font-size: .92rem; line-height: 1.5; }
.vic-nudge-close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; color: var(--vic-muted); cursor: pointer; display: grid; place-items: center;
}
.vic-nudge-close:hover { background: var(--vic-raised); color: var(--vic-heading); }

/* ── Window ───────────────────────────────────────────────────────── */
.vic-panel {
  position: fixed; right: 18px; bottom: 92px; z-index: 100001;
  width: 392px; height: min(660px, calc(100vh - 116px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--vic-surface); border: 1px solid var(--vic-line); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(16, 24, 20, .22), 0 4px 12px rgba(16, 24, 20, .08);
  transform-origin: bottom right;
  animation: vic-open .42s var(--vic-spring);
  padding: 0; margin: 0; scroll-margin: 0;   /* the site template pads every <section> */
}
.vic-panel[hidden] { display: none; }
.vic-panel.is-closing { animation: vic-close .2s var(--vic-ease) forwards; }

.vic-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--vic-accent) 30%, var(--vic-surface)), var(--vic-surface));
  border-bottom: 1px solid var(--vic-line);
}
.vic-head-text { flex: 1; min-width: 0; }
.vic-head-text strong { display: block; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 1rem; color: var(--vic-heading); }
.vic-status { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--vic-muted); }
.vic-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9e5f; box-shadow: 0 0 0 0 rgba(47, 158, 95, .5); animation: vic-live 2.4s infinite; }
.vic-icon-btn {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--vic-muted); font-size: 1.05rem;
  transition: background .15s, color .15s, transform .25s var(--vic-spring);
}
.vic-icon-btn:hover { background: var(--vic-raised); color: var(--vic-heading); }
.vic-icon-btn:active { transform: scale(.88); }

.vic-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(115% 115% at 28% 18%, #e2f4e7 0%, #a8d4b2 36%, #74aa84 72%, #4a825c 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .55), inset 0 -4px 7px rgba(20, 62, 36, .32), 0 3px 8px rgba(16, 36, 24, .22);
}
.vic-avatar .vic-mark { width: 74%; height: 74%; margin-top: 1px; filter: drop-shadow(0 1.5px 1.5px rgba(18, 52, 32, .35)); }
.vic-avatar.sm { width: 30px; height: 30px; }

/* ── Messages ─────────────────────────────────────────────────────── */
.vic-log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth;
}
.vic-row { display: flex; gap: 8px; align-items: flex-end; animation: vic-in .34s var(--vic-spring) both; }
.vic-row.is-user { justify-content: flex-end; }
.vic-row.is-cont .vic-avatar { visibility: hidden; }
.vic-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: calc(100% - 36px); }
.vic-row.is-user .vic-stack { align-items: flex-end; max-width: 85%; }
.vic-bubble {
  padding: 10px 13px; border-radius: 16px 16px 16px 6px; background: var(--vic-raised);
  font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere;
}
.vic-row.is-user .vic-bubble { background: var(--vic-user); color: var(--vic-heading); border-radius: 16px 16px 6px 16px; }
.vic-bubble p { margin: 0; }
.vic-bubble p + p, .vic-bubble ul + p, .vic-bubble p + ul { margin-top: 6px; }
.vic-bubble ul { margin: 4px 0 0; padding-left: 18px; }
.vic-bubble strong { color: var(--vic-heading); font-weight: 600; }
.vic-bubble a { color: var(--vic-accent-strong); text-decoration: underline; }
.vic-bubble.is-error { background: rgba(214, 69, 83, .1); color: #b3303d; }

.vic-typing { display: inline-flex; gap: 4px; padding: 13px 15px; }
.vic-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--vic-muted); opacity: .5; animation: vic-dot 1.1s infinite; }
.vic-typing span:nth-child(2) { animation-delay: .15s; }
.vic-typing span:nth-child(3) { animation-delay: .3s; }

/* ── Live chat with a team member ──────────────────────────────────── */
.vic-sys { align-self: center; max-width: 88%; text-align: center; animation: vic-in .34s var(--vic-spring) both; }
.vic-sys span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--vic-accent) 16%, var(--vic-raised)); color: var(--vic-muted); font-size: .76rem; line-height: 1.45; }
.vic-author { font-size: .7rem; font-weight: 600; color: var(--vic-muted); margin: 0 0 -4px 4px; }
.vic-avatar.is-person {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: .8rem; color: #fff;
  background: radial-gradient(115% 115% at 28% 18%, #9fb8e8 0%, #5b7fc7 45%, #34569a 100%);
}
.vic-row.is-agent .vic-bubble { background: color-mix(in srgb, #5b7fc7 12%, var(--vic-surface)); border: 1px solid color-mix(in srgb, #5b7fc7 22%, transparent); }
.vic.is-live .vic-status::before { background: #3d7fc4; box-shadow: 0 0 0 0 rgba(61, 127, 196, .5); }
.vic.is-waiting .vic-status::before { background: #c98a12; animation: vic-live 1.4s infinite; }

/* ── Chips ────────────────────────────────────────────────────────── */
.vic-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; animation: vic-in .34s var(--vic-spring) both; }
.vic-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--vic-accent-strong) 45%, var(--vic-line)); border-radius: 999px;
  background: var(--vic-surface); color: var(--vic-heading); font-size: .84rem; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, transform .28s var(--vic-spring), box-shadow .2s;
}
.vic-chip i { color: var(--vic-accent-strong); font-size: .9rem; }
.vic-chip:hover { background: color-mix(in srgb, var(--vic-accent) 18%, var(--vic-surface)); border-color: var(--vic-accent-strong); }
.vic-chip:active, .vic-press { transform: scale(.94); transition-duration: .08s; }
.vic-chip:focus-visible, .vic-btn:focus-visible, .vic-option:focus-visible { outline: 2px solid var(--vic-accent-strong); outline-offset: 2px; }

/* ── Cards ────────────────────────────────────────────────────────── */
.vic-card { border: 1px solid var(--vic-line); border-radius: 14px; background: var(--vic-surface); overflow: hidden; animation: vic-in .38s var(--vic-spring) both; }
.vic-card-pad { padding: 12px 13px; }
.vic-card h4 { margin: 0 0 6px; font-family: "Raleway", sans-serif; font-size: .92rem; font-weight: 700; color: var(--vic-heading); }
.vic-note { margin: 8px 0 0; font-size: .76rem; color: var(--vic-muted); line-height: 1.45; }

.vic-scroller { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; border: 0; background: none; border-radius: 0; scrollbar-width: thin; }
.vic-pcard {
  flex: 0 0 188px; scroll-snap-align: start; display: flex; flex-direction: column;
  border: 1px solid var(--vic-line); border-radius: 14px; overflow: hidden; background: var(--vic-surface);
  color: inherit; text-decoration: none; transition: transform .3s var(--vic-spring), box-shadow .2s;
}
.vic-pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16, 24, 20, .12); color: inherit; }
.vic-pcard:active { transform: scale(.97); }
.vic-pimg { aspect-ratio: 16 / 10; background: var(--vic-raised); overflow: hidden; }
.vic-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vic-pbody { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 3px; }
.vic-pbody strong { font-size: .88rem; color: var(--vic-heading); line-height: 1.3; }
.vic-meta { font-size: .74rem; color: var(--vic-muted); }
.vic-tag {
  align-self: flex-start; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--vic-accent) 26%, transparent); color: var(--vic-heading);
}
.vic-project .vic-pimg { aspect-ratio: 16 / 9; }
.vic-project p { margin: 6px 0 0; font-size: .86rem; line-height: 1.5; }
.vic-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.vic-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--vic-line); background: var(--vic-surface); color: var(--vic-heading);
  font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .28s var(--vic-spring), background .15s, box-shadow .2s;
}
.vic-btn:hover { background: var(--vic-raised); color: var(--vic-heading); }
.vic-btn:active { transform: scale(.94); transition-duration: .08s; }
.vic-btn.is-primary { background: linear-gradient(135deg, var(--vic-accent), var(--vic-accent-strong)); border-color: transparent; color: var(--vic-on-accent); box-shadow: 0 4px 12px rgba(95, 159, 115, .3); }
.vic-btn.is-primary:hover { filter: brightness(1.04); }
.vic-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.vic-btn.is-block { width: 100%; }

.vic-rows { list-style: none; margin: 0; padding: 0; }
.vic-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--vic-line); font-size: .84rem; }
.vic-rows li:first-child { border-top: 0; }
.vic-rows li span:last-child { white-space: nowrap; font-weight: 600; color: var(--vic-heading); }
.vic-rows li.is-hl { margin: 0 -13px; padding: 7px 13px; background: color-mix(in srgb, var(--vic-accent) 18%, transparent); border-top-color: transparent; }
.vic-rows button { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.vic-rows button:hover span:first-child { text-decoration: underline; }

.vic-list { display: flex; flex-direction: column; }
.vic-list-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 13px; border: 0; border-top: 1px solid var(--vic-line);
  background: transparent; text-align: left; cursor: pointer; color: inherit; text-decoration: none; transition: background .15s;
}
.vic-list-item:first-child { border-top: 0; }
.vic-list-item:hover { background: var(--vic-raised); color: inherit; }
.vic-list-item:active { background: color-mix(in srgb, var(--vic-accent) 20%, transparent); }
.vic-list-item > span { flex: 1; min-width: 0; }
.vic-list-item strong { display: block; font-size: .87rem; color: var(--vic-heading); }
.vic-list-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .76rem; color: var(--vic-muted); line-height: 1.4; }
.vic-list-item em { font-style: normal; font-size: .76rem; font-weight: 600; color: var(--vic-accent-strong); white-space: nowrap; }
.vic-list-item > i { color: var(--vic-muted); }

.vic-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; }
.vic-contact a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px;
  background: var(--vic-raised); color: var(--vic-heading); font-size: .76rem; font-weight: 600; text-decoration: none;
  transition: transform .28s var(--vic-spring), background .15s;
}
.vic-contact a i { font-size: 1.25rem; color: var(--vic-accent-strong); }
.vic-contact a.is-wa i { color: #25d366; }
.vic-contact a:hover { background: color-mix(in srgb, var(--vic-accent) 22%, var(--vic-raised)); }
.vic-contact a:active { transform: scale(.93); }

.vic-steps { margin: 0; padding: 12px 13px 12px 34px; font-size: .84rem; line-height: 1.45; }
.vic-steps li + li { margin-top: 7px; }
.vic-steps strong { color: var(--vic-heading); }

/* ── Step widgets ─────────────────────────────────────────────────── */
.vic-widget { padding: 12px; }
.vic-options { display: flex; flex-wrap: wrap; gap: 6px; }
.vic-option {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 38px; border-radius: 12px;
  border: 1px solid var(--vic-line); background: var(--vic-surface); color: var(--vic-heading);
  font-size: .84rem; text-align: left; cursor: pointer;
  transition: background .15s, border-color .15s, transform .28s var(--vic-spring);
}
.vic-option small { color: var(--vic-muted); font-size: .74rem; }
.vic-options.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.vic-options.is-grid .vic-option { text-align: left; }
.vic-options.is-grid .vic-option small { display: block; margin-top: 1px; }
.vic-option::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid color-mix(in srgb, var(--vic-muted) 70%, transparent);
  transition: background .15s, border-color .15s, transform .3s var(--vic-spring);
}
.vic-options.is-single .vic-option::before { display: none; }
.vic-option:hover { border-color: var(--vic-accent-strong); }
.vic-option:active { transform: scale(.95); }
.vic-option[aria-pressed="true"] { background: color-mix(in srgb, var(--vic-accent) 24%, var(--vic-surface)); border-color: var(--vic-accent-strong); }
.vic-option[aria-pressed="true"]::before {
  background: var(--vic-accent-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2310231a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--vic-accent-strong); transform: scale(1.08);
}
.vic-widget-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.vic-widget-foot small { color: var(--vic-muted); font-size: .76rem; }
.vic-link { border: 0; background: none; padding: 4px 2px; color: var(--vic-muted); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.vic-link:hover { color: var(--vic-heading); }

.vic-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.vic-field label { font-size: .76rem; font-weight: 600; color: var(--vic-heading); }
.vic-field label small { font-weight: 400; color: var(--vic-muted); }
.vic-input {
  width: 100%; min-height: 40px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--vic-line);
  background: var(--vic-surface); color: var(--vic-heading); font: inherit; font-size: 16px;   /* 16px stops iOS zooming in */
  transition: border-color .15s, box-shadow .15s;
}
.vic-input:focus { outline: none; border-color: var(--vic-accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vic-accent) 35%, transparent); }
.vic-input.is-invalid { border-color: #d64553; box-shadow: 0 0 0 3px rgba(214, 69, 83, .15); }
.vic-err { font-size: .74rem; color: #c43a48; min-height: 0; }
.vic-shake { animation: vic-shake .42s var(--vic-ease); }

.vic-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .82rem; }
.vic-summary dt { color: var(--vic-muted); }
.vic-summary dd { margin: 0; color: var(--vic-heading); overflow-wrap: anywhere; }
.vic-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--vic-line); font-size: .82rem; }
.vic-total strong { font-size: 1.05rem; color: var(--vic-heading); }

.vic-result { text-align: center; padding: 16px 14px 14px; }
.vic-result h4 { font-size: 1rem; margin-top: 8px; }
.vic-result .vic-big { display: block; margin: 4px 0; font-family: "Raleway", sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--vic-heading); }
.vic-check {
  position: relative; width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--vic-accent), var(--vic-accent-strong)); color: var(--vic-on-accent); font-size: 1.6rem;
  animation: vic-pop .55s var(--vic-spring) both;
}
.vic-check::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--vic-accent-strong); animation: vic-burst .9s var(--vic-ease) .1s both; }
.vic-ref { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--vic-raised); font-family: ui-monospace, Menlo, monospace; font-size: .8rem; color: var(--vic-heading); }

/* ── Composer ─────────────────────────────────────────────────────── */
.vic-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--vic-line); background: var(--vic-surface); }
.vic-compose textarea {
  flex: 1; resize: none; max-height: 120px; min-height: 42px; padding: 10px 14px; border-radius: 21px;
  border: 1px solid var(--vic-line); background: var(--vic-raised); color: var(--vic-heading);
  font: inherit; font-size: 16px; line-height: 1.35;
}
.vic-compose textarea:focus { outline: none; border-color: var(--vic-accent-strong); background: var(--vic-surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vic-accent) 30%, transparent); }
.vic-send {
  flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--vic-accent), var(--vic-accent-strong)); color: var(--vic-on-accent); font-size: 1rem;
  transition: transform .3s var(--vic-spring), opacity .2s;
}
.vic-send:active { transform: scale(.86); }
.vic-send[disabled] { opacity: .45; cursor: default; transform: none; }
.vic-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 14px 8px; font-size: .7rem; color: var(--vic-muted); background: var(--vic-surface); }
.vic-foot button { border: 0; background: none; padding: 2px 0; color: var(--vic-muted); font-size: .7rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.vic-foot button:hover { color: var(--vic-heading); }

/* ── Phones: full screen ──────────────────────────────────────────── */
@media (max-width: 575px) {
  .vic-panel {
    inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0;
    transform-origin: bottom center;
  }
  .vic-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .vic-foot { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .vic.is-open .vic-launcher, .vic.is-open .vic-nudge { display: none; }
  html.vic-lock, html.vic-lock body { overflow: hidden; }
  .vic-launcher { right: 14px; bottom: 14px; width: 60px; height: 60px; }
  .vic-launcher .vic-mark { width: 38px; height: 38px; }
  .vic-nudge { right: 14px; bottom: 82px; }
  html.vic-on .scroll-top { right: 20px; }
  html.vic-on .scroll-top.active { bottom: 86px; }
}

/* ── Motion ───────────────────────────────────────────────────────── */
@keyframes vic-open  { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes vic-close { to { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes vic-rise  { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes vic-in    { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vic-pop   { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes vic-burst { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes vic-dot   { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes vic-ring  { 0% { box-shadow: 0 0 0 0 rgba(127, 178, 139, .55); } 100% { box-shadow: 0 0 0 18px rgba(127, 178, 139, 0); } }
@keyframes vic-live  { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 95, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(47, 158, 95, 0); } }
@keyframes vic-wiggle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-12deg) scale(1.06); } 30% { transform: rotate(10deg) scale(1.06); } 45% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } }
@keyframes vic-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes vic-twinkle { 0%, 70%, 100% { transform: scale(1) rotate(0); opacity: 1; } 80% { transform: scale(1.35) rotate(25deg); opacity: .85; } 90% { transform: scale(.85) rotate(45deg); } }
@keyframes vic-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (prefers-reduced-motion: reduce) {
  .vic *, .vic *::before, .vic *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
