/* קרוב אליי ("Close to me") — the Hearthlight constellation surface.
   Warm day-sunset PLACE (not night). Every color from tokens.css vars.
   Reduced-motion is globally disabled in base.css; we add nothing that breaks
   when transitions/animations are off (all motion is decorative). */

/* ---- Shared warm sunset stage ---- */
.karov {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  /* Warm sunset gradient placeholder: deep-purple top -> coral/apricot mid -> warm glow. */
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(74, 63, 99, .78) 0%, rgba(74, 63, 99, 0) 60%),
    radial-gradient(140% 90% at 50% 118%, rgba(255, 196, 122, .55) 0%, rgba(255, 196, 122, 0) 60%),
    linear-gradient(180deg, var(--deep-purple) 0%, var(--coral) 62%, var(--apricot) 100%);
  color: var(--cream);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 18px 24px;
  overflow: hidden;
}

/* ---- Karov top bar (bell + members) ---- */
.karov-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.karov-top__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255, 248, 242, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.karov-top__btn svg { width: 20px; height: 20px; }

/* ---- Heading ---- */
.karov-head { text-align: center; margin: 4px 0 8px; }
.karov-head__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.9rem; letter-spacing: -.01em; }
.karov-head__sub { font-size: .92rem; opacity: .88; margin-top: 2px; }
.karov-head__sub b { color: var(--apricot); font-weight: 800; }

/* ---- Constellation stage ---- */
.constellation {
  position: relative;
  flex: 1;
  min-height: 360px;
  display: grid;
  place-items: center;
}
/* Faint dotted orbit rings behind everything. */
.constellation__orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(255, 248, 242, .22);
  border-radius: 999px;
  pointer-events: none;
}
.constellation__orbit--1 { width: 64%; aspect-ratio: 1; }
.constellation__orbit--2 { width: 96%; aspect-ratio: 1; }

/* The central "you" node. */
.karov-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.karov-center__label { font-weight: 800; font-size: 1rem; }
.karov-center__status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; opacity: .92; }

/* Orbiting people — absolutely positioned via inline --x / --y (percent of stage).
   left/top take the percent (resolved against the stage); translate(-50%,-50%)
   self-centers the node on that point. */
.orbit-person {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 96px;
  text-align: center;
}
.orbit-person__name { font-weight: 700; font-size: .82rem; }
.orbit-person__status { font-size: .68rem; opacity: .85; line-height: 1.2; }
.orbit-person--off { opacity: .5; }

/* ---- Glowing avatar node (the signature ring around an avatar) ---- */
.glow-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 4px;
}
.glow-avatar--available { background: linear-gradient(135deg, var(--coral), var(--apricot)); box-shadow: var(--glow-coral); }
.glow-avatar--quiet { background: linear-gradient(135deg, var(--soft-purple), var(--soft-pink)); box-shadow: var(--glow-purple); }
.glow-avatar--off { background: rgba(255, 248, 242, .28); box-shadow: none; }
.glow-avatar__inner {
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--cream);
  font-weight: 800;
  overflow: hidden;
}
/* Sizes */
.glow-avatar--sm { width: 56px; height: 56px; }
.glow-avatar--sm .glow-avatar__inner { width: 100%; height: 100%; font-size: 1.1rem; }
.glow-avatar--md { width: 84px; height: 84px; }
.glow-avatar--md .glow-avatar__inner { width: 100%; height: 100%; font-size: 1.6rem; }
.glow-avatar--lg { width: 132px; height: 132px; }
.glow-avatar--lg .glow-avatar__inner { width: 100%; height: 100%; font-size: 2.4rem; }
.glow-avatar--xl { width: 150px; height: 150px; }
.glow-avatar--xl .glow-avatar__inner { width: 100%; height: 100%; font-size: 2.8rem; }
.glow-avatar__img { width: 100%; height: 100%; object-fit: cover; }
/* Gentle breathing/float (disabled under reduced-motion via base.css). */
.glow-avatar--breathe { animation: karov-breathe 5.2s var(--ease-warm) infinite; }
.orbit-person:nth-child(odd) .glow-avatar--breathe { animation-delay: -2.4s; }
@keyframes karov-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.025); }
}

/* Tiny live dot. */
.live-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--apricot); display: inline-block; }
.live-dot--green { background: #4ED17F; } /* status "available now" green per design — semantic, not the forbidden red */

/* ---- Bottom CTA + reassurance ---- */
.karov-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.karov-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(24, 18, 28, .32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: .78rem;
  line-height: 1.4;
}

/* ---- Generic frosted sub-screen card ---- */
.karov-sub {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 18px 24px;
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(74, 63, 99, .72) 0%, rgba(74, 63, 99, 0) 60%),
    linear-gradient(180deg, var(--deep-purple) 0%, var(--coral) 70%, var(--apricot) 100%);
  color: var(--cream);
  overflow-y: auto;
}
.karov-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(24, 18, 28, .34);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 248, 242, .12);
}
.karov-card__title { font-weight: 800; font-size: 1rem; margin-bottom: 12px; }
.karov-sub__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.6rem; text-align: center; }
.karov-sub__sub { font-size: .9rem; opacity: .88; text-align: center; margin-top: -8px; }
.karov-footer { text-align: center; font-size: .78rem; opacity: .82; }

/* Section back button. */
.karov-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  font-weight: 600;
  font-size: .9rem;
}
.karov-back svg { width: 20px; height: 20px; }

/* ---- Crew row (gather) ---- */
.crew-row { display: flex; gap: 14px; flex-wrap: wrap; }
.crew-member { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; text-align: center; position: relative; }
.crew-member__check {
  position: absolute; top: -2px; inset-inline-end: 4px;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--coral); color: var(--cream);
  display: grid; place-items: center; font-size: .7rem; font-weight: 800;
  box-shadow: var(--glow-coral);
}
.crew-member__name { font-size: .72rem; font-weight: 600; }
.crew-member__on { font-size: .64rem; opacity: .85; display: inline-flex; align-items: center; gap: 4px; }
.crew-add {
  width: 56px; height: 56px; border-radius: 999px;
  border: 1.5px dashed rgba(255, 248, 242, .4);
  color: var(--cream); display: grid; place-items: center; font-size: 1.4rem;
}
.crew-count { font-size: .82rem; opacity: .85; margin-top: 10px; }

/* ---- Vibe selector ---- */
.vibe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vibe-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: var(--radius-md);
  background: rgba(255, 248, 242, .1);
  border: 1.5px solid transparent;
  color: var(--cream); font-weight: 600; font-size: .84rem;
  transition: border-color var(--dur-fast) var(--ease-warm), background var(--dur-fast) var(--ease-warm);
}
.vibe-card svg { width: 28px; height: 28px; }
.vibe-card[aria-pressed="true"] {
  border-color: var(--coral);
  background: rgba(255, 111, 97, .22);
  box-shadow: var(--glow-coral);
}

/* ---- Note input ---- */
.karov-field { display: flex; flex-direction: column; gap: 6px; }
.karov-field__label { font-size: .8rem; opacity: .85; }
.karov-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(24, 18, 28, .3);
  border: 1px solid rgba(255, 248, 242, .16);
  color: var(--cream);
  font-size: .92rem;
}
.karov-input::placeholder { color: rgba(255, 248, 242, .55); }

/* ---- Person card actions (2x2) ---- */
.person-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.person-hero__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.7rem; }
.person-hero__avail { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; opacity: .9; }
.person-hero__pill {
  margin-top: 4px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 248, 242, .14); font-size: .85rem; font-weight: 600;
}
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 22px 12px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--coral), var(--apricot));
  color: var(--cream); font-weight: 700; font-size: .92rem;
  box-shadow: var(--glow-coral);
}
.action-card svg { width: 26px; height: 26px; }

/* ---- Person card actions — high-fidelity 2x2 (design #3) ---- */
.karov-person { gap: 22px; }
.karov-person .person-hero { margin-top: 6px; }
.karov-person__footer { margin-top: auto; }
.karov-person-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.karov-person-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 22px 14px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--coral), var(--apricot));
  color: var(--cream); text-align: center;
  box-shadow: var(--glow-coral);
  border: 1px solid rgba(255, 248, 242, .18);
  transition: transform .16s ease, box-shadow .16s ease;
}
.karov-person-action:active { transform: scale(.97); }
.karov-person-action__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255, 248, 242, .22);
}
.karov-person-action__icon svg { width: 24px; height: 24px; }
.karov-person-action__label { font-weight: 800; font-size: .98rem; }
.karov-person-action__hint { font-size: .72rem; opacity: .85; line-height: 1.25; }

/* ---- Chat ---- */
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 248, 242, .14); }
.chat-head__meta { display: flex; flex-direction: column; gap: 2px; }
.chat-head__name { font-weight: 800; }
.chat-head__avail { font-size: .76rem; opacity: .88; display: inline-flex; align-items: center; gap: 5px; }
.chat-day { text-align: center; font-size: .76rem; opacity: .7; margin: 4px 0; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: var(--radius-md); font-size: .92rem; line-height: 1.4; position: relative; }
.bubble__time { display: block; font-size: .64rem; opacity: .7; margin-top: 4px; }
.bubble--mine { align-self: flex-start; background: linear-gradient(135deg, var(--coral), var(--apricot)); color: var(--cream); border-end-start-radius: 6px; }
.bubble--theirs { align-self: flex-end; background: var(--cream); color: var(--ink); border-end-end-radius: 6px; }
.chat-input {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(24, 18, 28, .34);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chat-input__icon { width: 24px; height: 24px; color: var(--cream); opacity: .85; flex: none; }
.chat-input__field { flex: 1; background: none; border: none; color: var(--cream); font-size: .92rem; }
.chat-input__field::placeholder { color: rgba(255, 248, 242, .55); }
.chat-input__send { width: 40px; height: 40px; flex: none; border-radius: 999px; background: var(--coral); color: var(--cream); display: grid; place-items: center; box-shadow: var(--glow-coral); }
.chat-input__send svg { width: 20px; height: 20px; }

/* ---- Presence state/audience cards ---- */
.state-list { display: flex; flex-direction: column; gap: 10px; }
.state-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: rgba(255, 248, 242, .1);
  border: 1.5px solid transparent; color: var(--cream); text-align: start;
  transition: border-color var(--dur-fast) var(--ease-warm), background var(--dur-fast) var(--ease-warm);
}
.state-card svg { width: 26px; height: 26px; flex: none; }
.state-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.state-card__label { font-weight: 700; }
.state-card__sub { font-size: .78rem; opacity: .82; }
.state-card__tick { width: 22px; height: 22px; border-radius: 999px; background: var(--coral); color: var(--cream); display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; opacity: 0; }
.state-card[aria-pressed="true"] { border-color: var(--coral); background: rgba(255, 111, 97, .2); box-shadow: var(--glow-coral); }
.state-card[aria-pressed="true"] .state-card__tick { opacity: 1; }
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.audience-grid .state-card { flex-direction: column; align-items: center; text-align: center; }

/* ---- Presence (design #5) screen-specific polish ---- */
.karov-presence-states .state-card svg { color: var(--apricot); transition: color var(--dur-fast) var(--ease-warm); }
.karov-presence-states .state-card[aria-pressed="true"] svg { color: var(--coral); }
.karov-presence-audience { margin-top: 2px; }
.karov-presence-audience .state-card { gap: 8px; padding: 18px 12px; position: relative; }
.karov-presence-audience .state-card svg { width: 30px; height: 30px; color: var(--soft-purple); transition: color var(--dur-fast) var(--ease-warm); }
.karov-presence-audience .state-card[aria-pressed="true"] svg { color: var(--coral); }
.karov-presence-audience .state-card .state-card__tick { position: absolute; top: 10px; inset-inline-end: 10px; }

/* ---- Incoming invite (full-screen) ---- */
.invite {
  position: relative; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; text-align: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 22px calc(24px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(110% 60% at 50% 14%, rgba(255, 181, 200, .5) 0%, rgba(255, 181, 200, 0) 60%),
    linear-gradient(180deg, var(--deep-purple) 0%, var(--coral) 64%, var(--apricot) 100%);
  color: var(--cream);
}
/* Hero: host avatar wrapped in a soft pulsing halo for the cinematic Hearthlight moment. */
.invite__hero { position: relative; display: grid; place-items: center; }
.invite__halo {
  position: absolute; inset: -34px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 111, 97, .55) 0%, rgba(255, 196, 122, .28) 42%, rgba(255, 181, 200, 0) 72%);
  filter: blur(4px);
  animation: invite-halo 4.4s var(--ease-warm) infinite;
}
@keyframes invite-halo {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.12); opacity: 1; }
}
.invite__kicker { letter-spacing: .12em; font-size: .76rem; font-weight: 700; opacity: .85; }
.invite__title { font-family: var(--font-serif); font-weight: 700; font-size: 2.1rem; line-height: 1.1; }
.invite__namepill { padding: 7px 18px; border-radius: 999px; background: rgba(255, 248, 242, .16); font-weight: 700; }
.invite__crew { display: flex; align-items: center; gap: -6px; }
.invite__mini { display: flex; }
.invite__mini .glow-avatar { margin-inline-start: -12px; border: 2px solid var(--deep-purple); border-radius: 999px; }
.invite__crewtext { font-size: .82rem; opacity: .9; }
.invite__line { font-size: 1.02rem; opacity: .95; }
.invite__line b { color: var(--apricot); font-weight: 800; }
.invite__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
/* Ghost button sits on a dark warm background here — make it readable (cream, not deep-purple). */
.invite__actions .btn--ghost { color: var(--cream); opacity: .9; }

/* ---- Empty / quiet ---- */
.empty { align-items: center; justify-content: flex-start; gap: 18px; text-align: center; }
.empty__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.8rem; }
.empty__sub { font-size: .92rem; opacity: .85; }
.empty-stage { position: relative; width: 100%; height: 240px; display: grid; place-items: center; }
.empty-stage .orbit-person { opacity: .42; }
.empty-paths { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.path-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius-md);
  background: rgba(255, 248, 242, .1);
  border: 1px solid rgba(255, 248, 242, .14);
  color: var(--cream); text-align: start;
}
.path-card svg { width: 28px; height: 28px; flex: none; color: var(--apricot); }
.path-card__body { display: flex; flex-direction: column; gap: 2px; }
.path-card__label { font-weight: 700; }
.path-card__sub { font-size: .78rem; opacity: .82; }

/* ---- Gather composer (design #2) polish — namespaced .karov-gather-* ---- */
/* The composer is a vertical flow that pushes the send CTA toward the bottom. */
.karov-gather { gap: 18px; }
.karov-gather__head { display: flex; flex-direction: column; gap: 10px; }
/* Accent the count inside the "החבורה שלך (N נבחרו)" title. */
.karov-gather .karov-card__title { display: flex; align-items: baseline; gap: 6px; }
/* Crew row breathes a touch more on the gather screen. */
.karov-gather__crew { gap: 16px 14px; row-gap: 16px; }
/* Make the live "● פנוי" status read as the warm available state. */
.karov-gather__crew .crew-member__on { color: var(--apricot); opacity: .95; }
/* The "N מתוך N פנויים" count, gently emphasized. */
.karov-gather__count { font-weight: 600; opacity: .9; }
/* Vibe selector — give the cards a little more presence + an icon halo. */
.karov-gather__vibes { gap: 12px; }
.karov-gather__vibes .vibe-card { padding: 18px 8px; gap: 10px; }
.karov-gather__vibes .vibe-card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255, 248, 242, .1);
  transition: background var(--dur-fast) var(--ease-warm), box-shadow var(--dur-fast) var(--ease-warm);
}
.karov-gather__vibes .vibe-card__icon svg { width: 26px; height: 26px; }
.karov-gather__vibes .vibe-card[aria-pressed="true"] .vibe-card__icon {
  background: linear-gradient(135deg, var(--coral), var(--apricot));
  box-shadow: var(--glow-coral);
}
.karov-gather__vibes .vibe-card__label { font-size: .84rem; }
/* Note field sits above the send block. */
.karov-gather__note { margin-top: 2px; }
/* Send block: CTA + lock footer pinned toward the bottom of the scroll area. */
.karov-gather__send { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.karov-gather__footer { margin: 0; }

/* ---- Empty / quiet — high-fidelity (design #7), namespaced .karov-empty-* ---- */
.karov-empty { align-items: center; }
/* Stage leads, headline follows — the resting orbs are the emotional anchor. */
.karov-empty-stage { height: 260px; width: 100%; margin-top: 4px; }
/* Soft warm glow at center so the resting state reads warm, never cold/empty. */
.karov-empty-glow {
  position: absolute; top: 50%; left: 50%;
  width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 196, 122, .26) 0%, rgba(255, 111, 97, .12) 42%, rgba(255, 111, 97, 0) 70%);
  filter: blur(8px);
  animation: karov-empty-pulse 6s ease-in-out infinite;
}
.karov-empty-stage .constellation__orbit { opacity: .5; }
/* Resting orbs sit a touch dimmer and stop floating. */
.karov-empty-stage .orbit-person { opacity: .4; }
.karov-empty-head { text-align: center; display: flex; flex-direction: column; gap: 6px; }

/* Path cards become tappable choices: full-width buttons + a trailing chevron. */
.karov-empty-path {
  width: 100%; cursor: pointer; font: inherit;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.karov-empty-path:hover,
.karov-empty-path:focus-visible {
  background: rgba(255, 248, 242, .16);
  border-color: rgba(255, 196, 122, .5);
  transform: translateY(-1px);
}
.karov-empty-path:active { transform: translateY(0); }
.karov-empty-path__icon { display: inline-flex; }
.karov-empty-path__chev {
  margin-inline-start: auto; display: inline-flex;
  opacity: .55; transform: scaleX(-1); /* point toward the start edge in RTL */
}
.karov-empty-path__chev svg { width: 18px; height: 18px; color: var(--cream); }
/* First path = the warm "spark" — tint its icon coral so it leads the eye. */
.empty-paths .karov-empty-path:first-child .karov-empty-path__icon svg { color: var(--coral); }
.karov-empty-footer { margin-top: 4px; color: var(--apricot); opacity: .9; }

@keyframes karov-empty-pulse {
  0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* ---- Chat (design #4, namespaced .karov-chat-*) ---- */
.karov-chat { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

.karov-chat-head {
  display: flex; align-items: center; gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 248, 242, .14);
}
.karov-chat-head__meta { display: flex; flex-direction: column; gap: 3px; }
.karov-chat-head__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.22rem; }
.karov-chat-head__avail {
  font-size: .76rem; opacity: .9;
  display: inline-flex; align-items: center; gap: 6px;
}

.karov-chat-thread {
  display: flex; flex-direction: column; gap: 9px;
  flex: 1; overflow-y: auto;
  padding: 4px 0 8px;
}
.karov-chat-day { text-align: center; margin: 2px 0 8px; }
.karov-chat-day span {
  font-size: .72rem; opacity: .85; letter-spacing: .04em;
  padding: 4px 14px; border-radius: 999px;
  background: rgba(24, 18, 28, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.karov-chat-row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.karov-chat-row--mine { justify-content: flex-start; }
.karov-chat-row--theirs { justify-content: flex-end; }

.karov-chat-bubble__avatar { flex: none; }
.karov-chat-bubble__avatar--spacer { width: 30px; }

.karov-chat-bubble {
  max-width: 76%;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  font-size: .93rem; line-height: 1.45;
}
.karov-chat-bubble__text { display: block; }
.karov-chat-bubble__time { display: block; font-size: .62rem; opacity: .72; margin-top: 5px; }

.karov-chat-bubble--mine {
  background: linear-gradient(135deg, var(--coral), var(--apricot));
  color: var(--cream);
  border-end-start-radius: 6px;
  box-shadow: 0 6px 18px rgba(255, 111, 97, .22);
}
.karov-chat-bubble--theirs {
  background: var(--cream);
  color: var(--deep-purple);
  border-end-end-radius: 6px;
}

.karov-chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(24, 18, 28, .4);
  border: 1px solid rgba(255, 248, 242, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  margin-top: 6px;
}
.karov-chat-input__icon {
  width: 24px; height: 24px; flex: none;
  color: var(--cream); opacity: .82;
  background: none; border: none; padding: 0;
  display: grid; place-items: center;
}
.karov-chat-input__icon svg { width: 22px; height: 22px; }
.karov-chat-input__field {
  flex: 1; min-width: 0;
  background: none; border: none; color: var(--cream);
  font-size: .93rem; font-family: inherit;
}
.karov-chat-input__field::placeholder { color: rgba(255, 248, 242, .55); }
.karov-chat-input__field:focus { outline: none; }
.karov-chat-input__send {
  width: 42px; height: 42px; flex: none;
  border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--apricot));
  color: var(--cream);
  display: grid; place-items: center;
  box-shadow: var(--glow-coral);
}
.karov-chat-input__send svg { width: 20px; height: 20px; }
