/* =====================================================================
   RetailConnect app layouts (rc-app.css) — screen-level styles.
   ===================================================================== */

/* The app is a phone-width column; on a computer it sits centred. */
.rc-root {
  min-height: 100vh; min-height: 100dvh;
  max-width: 480px; margin: 0 auto;
  background: var(--rc-bg);
  position: relative;
}
@media (min-width: 560px) {
  body { background: radial-gradient(80% 60% at 20% 0%, #f6f2cf 0%, transparent 60%), radial-gradient(70% 60% at 100% 100%, #dfe9fd 0%, transparent 60%), #eef1ec; }
  .rc-root { box-shadow: 0 30px 80px -30px rgba(20,32,51,.35); }
}
.rc-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* Boot placeholder (before JS starts) */
.rc-boot { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: var(--rc-grad-dawn); }
.rc-boot__mark { width: 84px; height: 84px; border-radius: 26px; box-shadow: var(--rc-shadow-2); }
.rc-unsupported { padding: 48px 24px; text-align: center; }
.rc-unsupported h1 { font-size: 20px; margin-bottom: 10px; }

/* ---------- Brand mark & wordmark ---------- */
.rc-mark { width: 76px; height: 76px; border-radius: 24px; box-shadow: 0 18px 34px -16px rgba(22,120,140,.55); }
.rc-mark--lg { width: 104px; height: 104px; border-radius: 32px; }
.rc-mark--logo { object-fit: contain; background: #fff; padding: 10px; }
.rc-wordmark {
  font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  background: linear-gradient(100deg, var(--rc-green-600) 0%, #129a85 45%, var(--rc-blue-600) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rc-tagline { color: var(--rc-muted); font-size: var(--rc-fs-sm); letter-spacing: .02em; }

/* ---------- Splash ---------- */
.rc-splash {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--rc-grad-glow), var(--rc-grad-dawn);
  text-align: center; padding: 24px;
  position: relative; overflow: hidden;
}
.rc-splash .rc-mark { animation: rc-pop 700ms var(--rc-ease) both; }
.rc-splash .rc-wordmark { animation: rc-rise 520ms 180ms var(--rc-ease) both; margin-top: 8px; }
.rc-splash .rc-tagline { animation: rc-rise 520ms 280ms var(--rc-ease) both; }
.rc-dots { display: flex; gap: 6px; margin-top: 22px; }
.rc-dots span { width: 8px; height: 8px; border-radius: 50%; animation: rc-dot 1.1s infinite ease-in-out; }
.rc-dots span:nth-child(1) { background: var(--rc-green-500); }
.rc-dots span:nth-child(2) { background: var(--rc-blue-500); animation-delay: .15s; }
.rc-dots span:nth-child(3) { background: var(--rc-orange-500); animation-delay: .3s; }
.rc-splash__foot { position: absolute; bottom: calc(22px + var(--rc-safe-bottom)); left: 0; right: 0; font-size: var(--rc-fs-xs); color: var(--rc-subtle); }

/* Decorative orbit rings */
.rc-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(37,99,235,.10); pointer-events: none; }
.rc-orbit--1 { width: 340px; height: 340px; top: -120px; right: -150px; }
.rc-orbit--2 { width: 260px; height: 260px; bottom: -90px; left: -120px; border-color: rgba(22,162,101,.14); }
.rc-orbit--3 { width: 520px; height: 520px; top: -200px; right: -260px; border-color: rgba(124,77,255,.07); }

/* ---------- Auth (login) ---------- */
.rc-auth {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--rc-grad-glow), var(--rc-grad-dawn);
  position: relative; overflow: hidden;
}
.rc-auth__hero { padding: calc(40px + var(--rc-safe-top)) 24px 26px; text-align: center; display: grid; justify-items: center; gap: 6px; position: relative; }
.rc-auth__hero .rc-mark { margin-bottom: 10px; }
.rc-auth__body { flex: 1; padding: 0 16px 16px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; }
.rc-auth__card { border-radius: var(--rc-r-xl); padding: 24px 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rc-auth__title { font-size: var(--rc-fs-xl); font-weight: 700; }
.rc-auth__sub { color: var(--rc-muted); font-size: var(--rc-fs-sm); margin-top: 2px; }
.rc-auth__foot { padding: 4px 16px calc(84px + var(--rc-safe-bottom)); display: grid; justify-items: center; gap: 10px; position: relative; }
.rc-lang { display: inline-flex; padding: 4px; border-radius: var(--rc-r-pill); background: rgba(255,255,255,.75); border: 1px solid var(--rc-line); }
.rc-lang button { border: 0; background: transparent; padding: 6px 14px; border-radius: var(--rc-r-pill); font-size: var(--rc-fs-sm); font-weight: 600; color: var(--rc-muted); cursor: pointer; }
.rc-lang button.is-active { background: var(--rc-ink); color: #fff; }
.rc-version { font-size: 11px; color: var(--rc-subtle); }
.rc-phase-note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--rc-fs-xs); color: var(--rc-ink-2); background: var(--rc-blue-100); border-radius: var(--rc-r-sm); padding: 10px 12px; }
.rc-phase-note .rc-icon { color: var(--rc-blue-600); width: 18px; height: 18px; margin-top: 1px; }

/* ---------- UI kit (design preview) ---------- */
.rc-kit { padding: 16px 16px calc(32px + var(--rc-safe-bottom)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.rc-kit__section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rc-kit__label { font-size: var(--rc-fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rc-subtle); }
.rc-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rc-swatch { border-radius: var(--rc-r-md); overflow: hidden; background: var(--rc-surface); box-shadow: var(--rc-shadow-1); }
.rc-swatch__chip { height: 52px; }
.rc-swatch__name { font-size: 11px; padding: 6px 8px; color: var(--rc-ink-2); font-weight: 600; }
.rc-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rc-kit .rc-list { border-radius: var(--rc-r-lg); overflow: hidden; box-shadow: var(--rc-shadow-1); }
.rc-kit .rc-bottomnav { position: static; border-radius: var(--rc-r-lg); box-shadow: var(--rc-shadow-1); }

/* =====================================================================
   Phase 2 — logged-in screens
   ===================================================================== */
.rc-app { background: var(--rc-bg); }
.rc-app__body { flex: 1; padding: 14px 16px 24px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; }
.rc-app__body--pad { padding-top: 18px; }
.rc-topbar__me { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.rc-center { text-align: center; justify-items: center; }
.rc-pad { padding: 28px 12px; display: grid; gap: 10px; justify-items: center; }
.rc-avatar--xl { --_size: 84px; }
.rc-tile__icon--red { background: var(--rc-red-100); color: var(--rc-red-600); }
.rc-tile__icon--lg { width: 56px; height: 56px; border-radius: 18px; }

/* Home */
.rc-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rc-hello {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--rc-r-xl);
  background: var(--rc-grad-glow), linear-gradient(135deg, #fffdf0 0%, #eaf7ef 60%, #e8f0fe 100%);
  border: 1px solid rgba(20,32,51,.05);
}
.rc-hello__text { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.rc-hello__greet { font-size: var(--rc-fs-sm); color: var(--rc-muted); }
.rc-hello__name { font-size: var(--rc-fs-xl); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rc-welcome { display: flex; gap: 14px; align-items: flex-start; }
.rc-welcome p { margin: 4px 0 0; }
.rc-welcome__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--rc-green-100); color: var(--rc-green-600); }

/* More / menus */
.rc-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rc-profile-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 16px; border: 1px solid rgba(20,32,51,.05); border-radius: var(--rc-r-xl);
  background: var(--rc-surface); box-shadow: var(--rc-shadow-1);
}
.rc-profile-card__text { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.rc-profile-card__name { font-weight: 700; font-size: var(--rc-fs-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rc-menu { background: var(--rc-surface); border-radius: var(--rc-r-lg); box-shadow: var(--rc-shadow-1); overflow: hidden; }
.rc-menu__item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px;
  border: 0; background: none; text-align: left; cursor: pointer; position: relative; font-size: var(--rc-fs-md);
}
.rc-menu__item:active { background: var(--rc-surface-2); }
.rc-menu__item + .rc-menu__item::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: 1px; background: var(--rc-line-2); }
.rc-menu__item .rc-tile__icon { width: 38px; height: 38px; border-radius: 12px; }
.rc-menu__label { flex: 1; font-weight: 500; }
.rc-menu__value { color: var(--rc-muted); font-size: var(--rc-fs-sm); }
.rc-menu__chev { transform: rotate(180deg); color: var(--rc-subtle); }
.rc-menu__item--danger .rc-menu__label { color: var(--rc-red-600); font-weight: 600; }

/* Forms on inner pages */
.rc-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rc-profile-head, .rc-security-head { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 6px 0 4px; }
.rc-security-head p { margin: 0; max-width: 320px; }

/* OTP boxes */
.rc-auth__hero--compact { padding-bottom: 14px; }
.rc-otp { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; cursor: text; }
.rc-otp__box {
  height: 56px; border-radius: var(--rc-r-md); border: 1.5px solid var(--rc-line); background: var(--rc-surface);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--rc-ink);
  transition: border-color var(--rc-fast), box-shadow var(--rc-med), transform var(--rc-fast);
}
.rc-otp__box.is-filled { border-color: #b9d8c8; background: var(--rc-green-50); }
.rc-otp__box.is-current { border-color: var(--rc-blue-500); box-shadow: var(--rc-ring); }
.rc-otp.is-invalid .rc-otp__box { border-color: var(--rc-red-600); }
.rc-otp__input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0;
  font-size: 16px; color: transparent; background: transparent; caret-color: transparent;
}
.rc-otp__error { text-align: center; margin-top: -6px; }
.rc-otp__actions { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rc-shake { animation: rc-shake 360ms var(--rc-ease); }
@keyframes rc-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Devices */
.rc-devices-list { display: grid; gap: 10px; }
.rc-device { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--rc-r-lg); background: var(--rc-surface); box-shadow: var(--rc-shadow-1); }
.rc-device.is-current { outline: 1.5px solid #bfe3cf; }
.rc-device__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rc-device__name { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* =====================================================================
   Phase 3 — contacts
   ===================================================================== */
.rc-contacts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rc-control--search { min-height: 46px; border-radius: var(--rc-r-pill); }
.rc-chip__n { font-size: 11px; opacity: .7; margin-left: 2px; }
.rc-contacts__list { border-radius: var(--rc-r-lg); overflow: hidden; box-shadow: var(--rc-shadow-1); background: var(--rc-surface); }
.rc-contacts__list:empty { display: none; }
button.rc-row { width: 100%; border: 0; text-align: left; font: inherit; }
.rc-row .rc-pill { flex: none; font-size: 11px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rc-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rc-contact__head { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 8px 0 2px; }
.rc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rc-action {
  display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 0; cursor: pointer;
  border-radius: var(--rc-r-lg); background: var(--rc-surface); box-shadow: var(--rc-shadow-1);
  color: var(--rc-ink); font-size: var(--rc-fs-sm); font-weight: 600; text-decoration: none;
}
.rc-action__icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.rc-details { display: grid; }
.rc-detail { padding: 12px 16px; text-align: left; border: 0; background: none; width: 100%; font: inherit; position: relative; }
.rc-detail + .rc-detail::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--rc-line-2); }
.rc-detail.is-link { cursor: pointer; }
.rc-detail.is-link .rc-detail__value { color: var(--rc-blue-600); }
.rc-detail__label { font-size: var(--rc-fs-xs); color: var(--rc-muted); }
.rc-detail__value { font-weight: 500; word-break: break-word; }
.rc-person {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit;
  padding: 12px 14px; border: 1px solid rgba(20,32,51,.05); border-radius: var(--rc-r-lg); background: var(--rc-surface); box-shadow: var(--rc-shadow-1);
}

/* =====================================================================
   Phase 4 — chat
   ===================================================================== */
.rc-icon--xs { width: 15px; height: 15px; }
.rc-chats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; position: relative; }
.rc-chatlist__list { border-radius: var(--rc-r-lg); overflow: hidden; box-shadow: var(--rc-shadow-1); background: var(--rc-surface); }
.rc-chats-empty { display: grid; gap: 12px; }
.rc-avatar-wrap { position: relative; flex: none; display: inline-flex; }
.rc-chatrow__top, .rc-chatrow__bottom { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rc-chatrow__top .rc-row__title { flex: 1; min-width: 0; }
.rc-chatrow__bottom .rc-row__sub { flex: 1; min-width: 0; }
.rc-chatrow__time { font-size: var(--rc-fs-xs); color: var(--rc-subtle); flex: none; }
.rc-chatrow.is-unread .rc-chatrow__time { color: var(--rc-brand); font-weight: 600; }
.rc-chatrow.is-unread .rc-row__sub { color: var(--rc-ink-2); font-weight: 500; }
.is-italic { font-style: italic; }
.rc-muted-ico { color: var(--rc-subtle); flex: none; }
.rc-ticks { display: inline-flex; color: var(--rc-subtle); flex: none; }
.rc-ticks.is-read { color: var(--rc-blue-500); }
.rc-ticks.is-failed { color: var(--rc-red-600); }
.rc-fab {
  position: fixed; right: max(16px, calc(50vw - 240px + 16px)); bottom: calc(84px + var(--rc-safe-bottom)); z-index: 15;
  width: 56px; height: 56px; border-radius: 18px; border: 0; cursor: pointer; color: #fff;
  background: var(--rc-grad-brand); box-shadow: var(--rc-shadow-brand); display: flex; align-items: center; justify-content: center;
}
.rc-navitem .rc-badge[hidden] { display: none; }

/* Conversation */
.rc-chat { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; background: #f3f1e7; }
.rc-chat__bar { gap: 4px; }
.rc-chat__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; cursor: pointer; padding: 2px; font: inherit; }
.rc-chat__who-text { min-width: 0; }
.rc-chat__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-chat__status { font-size: var(--rc-fs-xs); color: var(--rc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-chat__status.is-typing { color: var(--rc-brand); font-weight: 600; }
.rc-chat__scroll {
  flex: 1; min-height: 0; overflow-y: auto; padding: 10px 10px 14px; overscroll-behavior: contain;
  background-image: radial-gradient(rgba(22,162,101,.05) 1px, transparent 1px); background-size: 18px 18px;
}
.rc-chat__older { display: flex; margin: 4px auto 10px; }
.rc-chat__older[hidden] { display: none; }
.rc-chat__list { display: grid; gap: 3px; }
.rc-daychip { display: flex; justify-content: center; margin: 10px 0 6px; }
.rc-daychip span { font-size: 11px; font-weight: 600; color: var(--rc-ink-2); background: rgba(255,255,255,.9); padding: 4px 12px; border-radius: var(--rc-r-pill); box-shadow: var(--rc-shadow-1); }
.rc-msgrow { display: flex; flex-direction: column; }
.rc-msgrow.is-mine { align-items: flex-end; }
.rc-msgrow.is-theirs { align-items: flex-start; }
.rc-bubble {
  max-width: 82%; padding: 7px 10px 5px; border-radius: 16px; position: relative; cursor: pointer;
  box-shadow: 0 1px 1px rgba(20,32,51,.08); font-size: var(--rc-fs-md); line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere;
}
.rc-bubble.is-theirs { background: #fff; border-bottom-left-radius: 5px; }
.rc-bubble.is-mine { background: #dcf5e6; border-bottom-right-radius: 5px; }
.rc-bubble.is-pending { opacity: .85; }
.rc-bubble.is-failed { background: #fde8e8; }
.rc-bubble.is-deleted { background: rgba(255,255,255,.7); color: var(--rc-muted); }
.rc-bubble__text { white-space: pre-wrap; display: inline; }
.rc-bubble__meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -2px 10px; font-size: 11px; color: var(--rc-subtle); white-space: nowrap; }
.rc-bubble__quote { background: rgba(20,32,51,.05); border-left: 3px solid var(--rc-brand); border-radius: 8px; padding: 4px 8px; margin-bottom: 5px; font-size: var(--rc-fs-sm); }
.rc-bubble.is-theirs .rc-bubble__quote { border-left-color: var(--rc-purple-500); }
.rc-bubble__quote-name { font-weight: 700; font-size: 12px; color: var(--rc-green-700); }
.rc-bubble__quote-text { color: var(--rc-ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-bubble__fail { font-size: 11px; color: var(--rc-red-600); margin: 2px 4px 4px; }
.rc-chat__composer { background: rgba(251,250,243,.96); border-top: 1px solid var(--rc-line-2); padding: 8px 8px calc(8px + var(--rc-safe-bottom)); }
.rc-chat__context { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 6px; border-radius: 12px; background: #fff; border-left: 3px solid var(--rc-brand); }
.rc-chat__context[hidden] { display: none; }
.rc-chat__context-text { flex: 1; min-width: 0; font-size: var(--rc-fs-sm); }
.rc-chat__context-text div { color: var(--rc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-chat__row { display: flex; align-items: flex-end; gap: 8px; }
.rc-chat__input {
  flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--rc-line); border-radius: 22px; background: #fff;
  padding: 10px 16px; font-size: 16px; line-height: 1.4; max-height: 132px; outline: 0;
}
.rc-chat__input:focus { border-color: var(--rc-blue-500); }
.rc-chat__send {
  width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: var(--rc-brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--rc-shadow-brand);
}
.rc-chat__send:disabled { background: #b9cbbf; box-shadow: none; cursor: default; }

/* Action sheet */
.rc-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(20,32,51,.35); display: flex; align-items: flex-end; justify-content: center; animation: rc-fade 160ms ease; }
.rc-sheet.is-leaving { opacity: 0; transition: opacity 160ms; }
.rc-sheet__panel { width: 100%; max-width: 480px; background: var(--rc-surface); border-radius: 22px 22px 0 0; padding: 8px 8px calc(10px + var(--rc-safe-bottom)); display: grid; gap: 2px; animation: rc-rise 220ms var(--rc-ease); }
.rc-sheet__item { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 16px; border: 0; background: none; border-radius: 14px; font-size: var(--rc-fs-md); font-weight: 500; cursor: pointer; text-align: left; color: var(--rc-ink); }
.rc-sheet__item:active { background: var(--rc-surface-2); }
.rc-sheet__item.is-danger { color: var(--rc-red-600); }
.rc-sheet__cancel { justify-content: center; color: var(--rc-muted); margin-top: 4px; border-top: 1px solid var(--rc-line-2); border-radius: 0; }
@keyframes rc-fade { from { opacity: 0; } }

/* =====================================================================
   Phase 5 — groups, channels, polls
   ===================================================================== */
.rc-avatar--group { display: inline-flex; align-items: center; justify-content: center; }
.rc-avatar__ico { width: 55%; height: 55%; color: #fff; }
.rc-chatrow__kind { color: var(--rc-muted); flex: none; }
.rc-chats__filters { overflow-x: auto; scrollbar-width: none; }
.rc-chats__filters[hidden] { display: none; }
.rc-chips--wrap { flex-wrap: wrap; }
.rc-section-label { margin: 6px 4px -4px; }
.rc-note { margin: -4px 4px 0; }
.rc-textarea { width: 100%; resize: vertical; border: 1.5px solid var(--rc-line); border-radius: var(--rc-r-md); padding: 10px 14px; font: inherit; font-size: 16px; background: var(--rc-surface); outline: 0; }
.rc-textarea:focus { border-color: var(--rc-blue-500); box-shadow: var(--rc-ring); }
.rc-select { width: 100%; min-height: 48px; border: 1.5px solid var(--rc-line); border-radius: var(--rc-r-md); padding: 0 12px; font: inherit; font-size: 15px; background: var(--rc-surface); }

/* New group */
.rc-groupnew { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 90px; }
.rc-groupnew .rc-card { padding: 14px; }
.rc-modes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rc-mode { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--rc-line); border-radius: var(--rc-r-lg); background: var(--rc-surface); text-align: left; cursor: pointer; font: inherit; }
.rc-mode.is-active { border-color: var(--rc-brand); background: var(--rc-green-50); box-shadow: 0 0 0 3px rgba(22,162,101,.12); }
.rc-mode__text { display: grid; gap: 2px; min-width: 0; }
.rc-mode__text span { font-size: var(--rc-fs-xs); color: var(--rc-muted); }
.rc-smart { display: grid; gap: 8px; }
.rc-smart[hidden], .rc-manualbox[hidden] { display: none; }
.rc-smart .rc-label { margin-top: 6px; }
.rc-rulecount { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--rc-surface-2); font-size: var(--rc-fs-sm); font-weight: 600; color: var(--rc-ink-2); }
.rc-rulecount.is-ok { background: var(--rc-green-100); color: var(--rc-green-700); }
.rc-rulecount.is-bad { background: var(--rc-red-100); color: var(--rc-red-600); }
.rc-switches { display: grid; gap: 4px; }
.rc-switchrow { display: flex; align-items: center; gap: 12px; padding: 8px 2px; cursor: pointer; }
.rc-switchrow__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rc-switchrow__label { font-weight: 600; font-size: var(--rc-fs-sm); }
.rc-switchrow__sub { font-size: var(--rc-fs-xs); color: var(--rc-muted); }
.rc-switch { position: relative; flex: none; width: 46px; height: 28px; }
.rc-switch__input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.rc-switch__track { position: absolute; inset: 0; border-radius: 999px; background: #cfd6df; transition: background var(--rc-fast); }
.rc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--rc-med) var(--rc-ease); }
.rc-switch__input:checked + .rc-switch__track { background: var(--rc-brand); }
.rc-switch__input:checked + .rc-switch__track::after { transform: translateX(18px); }
.rc-switch__input:focus-visible + .rc-switch__track { box-shadow: var(--rc-ring); }
.rc-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + var(--rc-safe-bottom)); background: linear-gradient(to top, var(--rc-bg) 70%, rgba(251,250,243,0)); }
.rc-sticky-cta .rc-btn { max-width: 448px; margin: 0 auto; }

/* People picker */
.rc-picker { display: grid; gap: 10px; }
.rc-picked { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rc-picked:empty { display: none; }
.rc-picked__chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--rc-line); background: var(--rc-green-50); font: inherit; font-size: var(--rc-fs-xs); font-weight: 600; cursor: pointer; }
.rc-picked__chip .rc-avatar { --_size: 26px; font-size: 11px; }
.rc-picklist { max-height: 52vh; overflow-y: auto; border-radius: var(--rc-r-md); }
.rc-pickrow.is-on { background: var(--rc-green-50); }
.rc-check { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--rc-line); display: flex; align-items: center; justify-content: center; color: #fff; }
.rc-pickrow.is-on .rc-check { background: var(--rc-brand); border-color: var(--rc-brand); }

/* Group info */
.rc-groupinfo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rc-groupinfo .rc-avatar--xl .rc-avatar__ico { width: 46%; height: 46%; }
.rc-groupinfo__desc { margin: 4px 0 0; text-align: center; color: var(--rc-ink-2); font-size: var(--rc-fs-sm); white-space: pre-wrap; }
.rc-rulebadge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: var(--rc-orange-100); color: var(--rc-orange-600); font-size: var(--rc-fs-xs); font-weight: 600; max-width: 100%; }
.rc-rulebadge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-groupinfo .rc-card { padding: 12px 14px; }
.rc-card--list { background: var(--rc-surface); border-radius: var(--rc-r-lg); box-shadow: var(--rc-shadow-1); overflow: hidden; }
.rc-tile__icon--red { background: var(--rc-red-100); color: var(--rc-red-600); }
.rc-menu__item--danger .rc-menu__label { color: var(--rc-red-600); }

/* Conversation: groups */
.rc-sysmsg { display: flex; justify-content: center; margin: 6px 0; }
.rc-sysmsg span { font-size: 12px; color: var(--rc-ink-2); background: var(--rc-lemon-100); border: 1px solid var(--rc-lemon-300); padding: 4px 12px; border-radius: 10px; text-align: center; max-width: 86%; }
.rc-msgrow.is-first { margin-top: 4px; }
.rc-bubble__who { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.rc-bubble.is-flash { animation: rc-flash 1.3s ease; }
@keyframes rc-flash { 0%, 60% { box-shadow: 0 0 0 4px rgba(242,119,27,.45); } 100% { box-shadow: 0 1px 1px rgba(20,32,51,.08); } }
.rc-bubble__quote { cursor: pointer; }
.rc-pinbar { display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rc-line-2); }
.rc-pinbar[hidden] { display: none; }
.rc-pinbar__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--rc-orange-600); }
.rc-pinbar__text { min-width: 0; display: grid; font-size: var(--rc-fs-xs); }
.rc-pinbar__text b { color: var(--rc-orange-600); }
.rc-pinbar__text span { color: var(--rc-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--rc-fs-sm); }
.rc-chat__attach { width: 42px; height: 46px; flex: none; border: 0; background: none; color: var(--rc-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; }
.rc-chat__attach:active { background: var(--rc-surface-2); }
.rc-chat__row[hidden], .rc-chat__locked[hidden], .rc-chat__composer[hidden] { display: none; }
.rc-chat__locked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 10px; }
.rc-chat__locked-text { display: flex; align-items: center; gap: 8px; font-size: var(--rc-fs-sm); color: var(--rc-muted); min-width: 0; }

/* Polls */
.rc-bubble.is-poll { min-width: min(280px, 82vw); }
.rc-poll { display: grid; gap: 6px; padding-top: 2px; }
.rc-poll__q { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; line-height: 1.35; }
.rc-poll__q .rc-icon { flex: none; margin-top: 2px; color: var(--rc-brand); }
.rc-poll__hint { font-size: 11.5px; color: var(--rc-muted); margin: -2px 0 2px 26px; }
.rc-poll__opt { display: flex; align-items: flex-start; gap: 10px; padding: 6px 2px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.rc-poll__opt:disabled { cursor: default; }
.rc-poll__dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.8px solid var(--rc-subtle); display: flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; }
.rc-poll__dot.is-square { border-radius: 6px; }
.rc-poll__opt.is-mine .rc-poll__dot { background: var(--rc-brand); border-color: var(--rc-brand); }
.rc-poll__body { flex: 1; min-width: 0; display: grid; gap: 5px; }
.rc-poll__row { display: flex; gap: 8px; justify-content: space-between; font-size: var(--rc-fs-sm); }
.rc-poll__text { min-width: 0; overflow-wrap: anywhere; }
.rc-poll__n { color: var(--rc-muted); font-weight: 600; flex: none; }
.rc-poll__bar { height: 6px; border-radius: 999px; background: rgba(20,32,51,.08); overflow: hidden; }
.rc-poll__bar span { display: block; height: 100%; border-radius: inherit; background: var(--rc-brand); transition: width var(--rc-med) var(--rc-ease); }
.rc-poll.is-closed .rc-poll__bar span { background: var(--rc-subtle); }
.rc-poll__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--rc-muted); border-top: 1px solid rgba(20,32,51,.08); padding-top: 6px; margin-bottom: 4px; }
.rc-linkbtn { border: 0; background: none; color: var(--rc-blue-600); font: inherit; font-weight: 600; cursor: pointer; padding: 2px 0; }
.rc-voters { display: grid; gap: 14px; }
.rc-voters__group { display: grid; gap: 6px; }
.rc-voters__row { display: flex; align-items: center; gap: 10px; font-size: var(--rc-fs-sm); }

/* Form sheet */
.rc-sheet__panel--form { max-height: 88vh; display: flex; flex-direction: column; padding: 4px 4px calc(10px + var(--rc-safe-bottom)); }
.rc-sheet__head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; }
.rc-sheet__title { flex: 1; font-weight: 700; font-size: var(--rc-fs-lg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-sheet__body { overflow-y: auto; padding: 4px 14px 8px; }
.rc-pollform__opts { display: grid; gap: 8px; }
.rc-pollform__opts .rc-control { min-height: 46px; }
.rc-pollform__opts input { width: 100%; }

/* =====================================================================
   Phase 6 — broadcasts & announcements
   ===================================================================== */
.rc-pill--red { background: var(--rc-red-100); color: var(--rc-red-600); }
.rc-seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--rc-surface-2); border: 1px solid var(--rc-line-2); }
.rc-seg__btn { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: var(--rc-fs-sm); font-weight: 600; color: var(--rc-muted); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-seg__btn.is-active { background: var(--rc-surface); color: var(--rc-ink); box-shadow: var(--rc-shadow-1); }
.rc-seg__btn.is-pr-important.is-active { color: var(--rc-orange-600); }
.rc-seg__btn.is-pr-urgent.is-active { color: var(--rc-red-600); }
.rc-audience { display: grid; gap: 12px; }
.rc-audience [hidden] { display: none; }
.rc-form input[type="datetime-local"][hidden] { display: none; }

/* Broadcast list + report */
.rc-bclist, .rc-bcreport, .rc-annlist, .rc-annview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rc-bccard { display: grid; gap: 8px; padding: 14px; border: 0; border-radius: var(--rc-r-lg); background: var(--rc-surface); box-shadow: var(--rc-shadow-1); text-align: left; font: inherit; cursor: pointer; }
.rc-bccard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.rc-bccard__top .rc-text-xs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-bccard__text { font-size: var(--rc-fs-sm); color: var(--rc-ink-2); white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-bccard__text.is-full { display: block; -webkit-line-clamp: unset; font-size: var(--rc-fs-md); color: var(--rc-ink); }
.rc-bccard__nums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--rc-fs-xs); color: var(--rc-muted); font-weight: 600; }
.rc-bccard__nums .is-read { color: var(--rc-blue-600); }
.rc-bccard__nums .is-failed { color: var(--rc-red-600); }
.rc-stack { display: flex; height: 8px; border-radius: 99px; background: var(--rc-line-2); overflow: hidden; }
.rc-stack__seg { display: block; height: 100%; }
.rc-stack__seg.is-read { background: var(--rc-blue-500); }
.rc-stack__seg.is-delivered { background: var(--rc-purple-500); }
.rc-stack__seg.is-sent { background: var(--rc-green-500); }
.rc-stack__seg.is-failed { background: var(--rc-orange-500); }
.rc-bcreport__head { padding: 14px; display: grid; gap: 10px; }
.rc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.rc-kpi { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--rc-surface-2); }
.rc-kpi b { font-size: var(--rc-fs-lg); }
.rc-kpi span { font-size: 11px; color: var(--rc-muted); text-align: center; }
.rc-kpi--green b { color: var(--rc-green-700); } .rc-kpi--blue b { color: var(--rc-blue-600); }
.rc-kpi--purple b { color: var(--rc-purple-600); } .rc-kpi--orange b { color: var(--rc-orange-600); }
.rc-bubble__tag { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--rc-blue-600); margin-bottom: 2px; }

/* Announcements */
.rc-anncard { display: grid; gap: 6px; padding: 14px; border: 0; border-left: 4px solid var(--rc-blue-500); border-radius: var(--rc-r-lg); background: var(--rc-surface); box-shadow: var(--rc-shadow-1); text-align: left; font: inherit; cursor: pointer; }
.rc-anncard.is-important { border-left-color: var(--rc-orange-500); }
.rc-anncard.is-urgent { border-left-color: var(--rc-red-600); }
.rc-anncard.is-unseen { background: linear-gradient(90deg, #fffdf1, #fff); }
.rc-anncard__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-anncard__time { margin-left: auto; font-size: var(--rc-fs-xs); color: var(--rc-subtle); }
.rc-anncard__title { font-weight: 700; font-size: var(--rc-fs-md); }
.rc-anncard__text { font-size: var(--rc-fs-sm); color: var(--rc-ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-wrap; }
.rc-anncard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--rc-fs-xs); color: var(--rc-muted); }
.rc-anncard__foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-anncard__stat { font-weight: 600; color: var(--rc-blue-600); flex: none; }
.rc-anncard__ack { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 700; color: var(--rc-orange-600); }
.rc-anncard__ack.is-done { color: var(--rc-green-700); }
.rc-annview { padding-bottom: 90px; }
.rc-annview__card { padding: 18px; display: grid; gap: 8px; border-top: 5px solid var(--rc-blue-500); }
.rc-annview__card.is-important { border-top-color: var(--rc-orange-500); }
.rc-annview__card.is-urgent { border-top-color: var(--rc-red-600); }
.rc-annview__title { margin: 4px 0 0; }
.rc-annview__body { white-space: pre-wrap; font-size: var(--rc-fs-md); line-height: 1.65; margin-top: 6px; overflow-wrap: anywhere; }
.rc-acked { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--rc-green-100); color: var(--rc-green-700); font-weight: 700; font-size: var(--rc-fs-sm); }
.rc-annreport { display: grid; gap: 10px; }
.rc-annbanner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--rc-r-lg); text-align: left; font: inherit; cursor: pointer; color: #fff; background: linear-gradient(135deg, #e0650b, #f2771b); box-shadow: 0 10px 22px -12px rgba(224,101,11,.7); animation: rc-rise 260ms var(--rc-ease); }
.rc-annbanner.is-urgent { background: linear-gradient(135deg, #b8232a, #d93a40); box-shadow: 0 10px 22px -12px rgba(217,58,64,.7); }
.rc-annbanner.is-normal { background: linear-gradient(135deg, #1a43b8, #2563eb); }
.rc-annbanner__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.rc-annbanner__body { flex: 1; min-width: 0; display: grid; }
.rc-annbanner__kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .9; }
.rc-annbanner__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-annbanner__go { flex: none; font-size: var(--rc-fs-xs); font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.22); }
.rc-menu__item .rc-badge[hidden] { display: none; }
.rc-audience, .rc-smart, .rc-picker, .rc-switches, .rc-form { grid-template-columns: minmax(0, 1fr); }
.rc-seg__btn { white-space: normal; text-align: center; line-height: 1.2; padding: 6px; }
.rc-seg__btn .rc-icon { flex: none; }

/* =====================================================================
   Phase 7 — files, tables, photo viewer
   ===================================================================== */
.rc-bubble.is-image, .rc-bubble.is-file { padding: 4px 4px 5px; }
.rc-bubble.is-image .rc-bubble__meta, .rc-bubble.is-file .rc-bubble__meta { margin-right: 6px; }
.rc-bubble.is-image .rc-bubble__who, .rc-bubble.is-file .rc-bubble__who, .rc-bubble.is-image .rc-bubble__quote, .rc-bubble.is-file .rc-bubble__quote { margin: 2px 6px 4px; }
.rc-bubble__caption { display: block; padding: 6px 6px 0; }
.rc-media { display: flex; align-items: center; justify-content: center; width: min(260px, 66vw); max-height: 340px; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: rgba(20,32,51,.06); cursor: zoom-in; }
.rc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-media--video { cursor: default; aspect-ratio: 16 / 10; background: #000; }
.rc-media--video video { width: 100%; height: 100%; display: block; }
.rc-audiobox { display: grid; gap: 4px; padding: 4px 4px 0; width: min(260px, 66vw); }
.rc-audiobox audio { width: 100%; height: 38px; }
.rc-filecard { display: flex; align-items: center; gap: 10px; width: min(270px, 68vw); padding: 10px; border-radius: 12px; background: rgba(20,32,51,.05); color: inherit; text-decoration: none; }
.rc-filecard > .rc-icon { flex: none; color: var(--rc-muted); }
.rc-filecard__text { flex: 1; min-width: 0; display: grid; }
.rc-filecard__name { font-weight: 600; font-size: var(--rc-fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-filecard__size { font-size: 11px; color: var(--rc-muted); }
.rc-fileicon { width: 40px; height: 46px; flex: none; border-radius: 8px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; font-size: 10px; font-weight: 800; letter-spacing: .02em; color: #fff; background: #8a94a6; }
.rc-fileicon--red { background: #d93a40; } .rc-fileicon--green { background: #16a265; } .rc-fileicon--blue { background: #2563eb; } .rc-fileicon--orange { background: #e0650b; }
.rc-upbar { height: 4px; margin: 6px 4px 2px; border-radius: 99px; background: rgba(20,32,51,.1); overflow: hidden; }
.rc-upbar span { display: block; height: 100%; background: var(--rc-brand); transition: width .2s; }
.rc-bubble.is-table { max-width: 94%; }
.rc-tablebox { max-width: min(560px, 82vw); overflow-x: auto; border-radius: 10px; border: 1px solid rgba(20,32,51,.12); background: #fff; margin: 2px 0 4px; }
.rc-msgtable { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.rc-msgtable th, .rc-msgtable td { padding: 6px 10px; border-bottom: 1px solid #e8ecf0; border-right: 1px solid #eef1f4; white-space: nowrap; text-align: left; }
.rc-msgtable th { background: var(--rc-brand); color: #fff; font-weight: 600; position: sticky; top: 0; }
.rc-msgtable tr:nth-child(odd) td { background: #f6faf7; }
.rc-msgtable td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.rc-tablepreview { max-height: 40vh; overflow: auto; }
.rc-tablepreview .rc-tablebox { max-width: 100%; }
.rc-pastechoices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-pastechoices .rc-btn--ghost { grid-column: 1 / -1; }
.rc-sendgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; }
.rc-sendgrid__img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--rc-surface-2); }
.rc-sendgrid__img img { width: 100%; height: 100%; object-fit: cover; }
.rc-sendgrid .rc-filecard { grid-column: 1 / -1; width: auto; }
.rc-lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8,12,20,.94); display: flex; flex-direction: column; animation: rc-fade 160ms ease; }
.rc-lightbox__bar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--rc-safe-top)) 8px 8px; color: #fff; }
.rc-lightbox__bar .rc-btn { color: #fff; }
.rc-lightbox__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--rc-fs-sm); }
.rc-lightbox__img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding-bottom: var(--rc-safe-bottom); }
.rc-chat__scroll.is-drop { outline: 3px dashed var(--rc-brand); outline-offset: -8px; }
.rc-mediapage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rc-mediagrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.rc-mediagrid__item { aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--rc-surface-2); cursor: pointer; }
.rc-mediagrid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-mediagrid__video { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #142033; color: #fff; }
.rc-media.is-contain { background: #fff; }
.rc-media.is-contain img { object-fit: contain; }

/* =====================================================================
   Phase 7B — Khata (ledger)
   ===================================================================== */
.rc-ledger, .rc-lgitem { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 24px; }
.rc-lgcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px; border-radius: var(--rc-r-lg); color: #fff; background: linear-gradient(135deg, #0f7446, #16a265 60%, #18a58a); box-shadow: var(--rc-shadow-brand); }
.rc-lgcard.is-due { background: linear-gradient(135deg, #9c1f25, #d93a40 60%, #e0650b); box-shadow: 0 12px 26px -14px rgba(217,58,64,.75); }
.rc-lgcard.is-adv { background: linear-gradient(135deg, #1a43b8, #2563eb 60%, #0ea5a4); }
.rc-lgcard__who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rc-lgcard__who .rc-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.rc-lgcard__label { font-size: var(--rc-fs-xs); opacity: .85; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.rc-lgcard__amt { font-size: 30px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rc-lgcard__row { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--rc-fs-xs); opacity: .92; }
.rc-lgcard__pending, .rc-lgcard__last { display: flex; align-items: center; gap: 6px; font-size: var(--rc-fs-xs); background: rgba(255,255,255,.16); padding: 6px 10px; border-radius: 10px; }
.rc-lgactions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-lgtools { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-lgtools .rc-chip { text-decoration: none; }
.rc-lglist .rc-section-label { padding: 10px 14px 2px; margin: 0; }
.rc-lgrow__icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.rc-lgrow__icon.is-debit { background: var(--rc-red-100); color: var(--rc-red-600); }
.rc-lgrow__icon.is-credit { background: var(--rc-green-100); color: var(--rc-green-700); }
.rc-lgrow__right { display: grid; justify-items: end; gap: 3px; flex: none; }
.rc-lgrow__amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-lgrow__amt.is-debit { color: var(--rc-red-600); }
.rc-lgrow__amt.is-credit { color: var(--rc-green-700); }
.rc-lgrow.is-rejected .rc-lgrow__amt, .rc-lgrow.is-cancelled .rc-lgrow__amt { text-decoration: line-through; color: var(--rc-subtle); }
.rc-lgrow.is-pending { background: #fffdf3; }
.rc-amountbox { display: flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--rc-line); padding: 4px 2px 6px; }
.rc-amountbox span { font-size: 28px; font-weight: 700; color: var(--rc-muted); }
.rc-amount { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 34px; font-weight: 800; background: none; font-variant-numeric: tabular-nums; }
.rc-lgform.is-payment .rc-amountbox:focus-within { border-color: var(--rc-brand); }
.rc-lgform.is-bill .rc-amountbox:focus-within { border-color: var(--rc-orange-500); }
.rc-slip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-slip__pick { flex: 1; min-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border: 1.5px dashed var(--rc-line); border-radius: 14px; background: var(--rc-surface-2); font: inherit; font-size: var(--rc-fs-sm); font-weight: 600; color: var(--rc-ink-2); cursor: pointer; }
.rc-slip__img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 12px; background: var(--rc-surface-2); }
.rc-slip__pdf { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--rc-surface-2); flex: 1; }
.rc-lgitem__card { padding: 18px; display: grid; gap: 6px; border-top: 5px solid var(--rc-green-500); }
.rc-lgitem__card.is-debit { border-top-color: var(--rc-red-600); }
.rc-lgitem__type { font-weight: 600; color: var(--rc-ink-2); }
.rc-lgitem__amt { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rc-lgitem__amt.is-debit { color: var(--rc-red-600); } .rc-lgitem__amt.is-credit { color: var(--rc-green-700); }
.rc-lgitem__reject { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--rc-red-100); color: var(--rc-red-600); font-size: var(--rc-fs-sm); font-weight: 600; }
.rc-lgitem__slip { padding: 14px; display: grid; gap: 8px; }
.rc-lgitem__img { border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--rc-surface-2); cursor: zoom-in; }
.rc-lgitem__img img { width: 100%; max-height: 360px; object-fit: contain; display: block; }
.rc-timeline { padding: 12px 14px; display: grid; gap: 8px; }
.rc-timeline__row { display: flex; gap: 8px; align-items: center; font-size: var(--rc-fs-sm); color: var(--rc-ink-2); }
.rc-lgdecide { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: sticky; bottom: calc(10px + var(--rc-safe-bottom)); }
.rc-lgtotal { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--rc-red-100); color: var(--rc-red-600); font-weight: 600; }
.rc-lgtotal b { font-size: var(--rc-fs-lg); }
.rc-seg__btn .rc-badge { margin-left: 4px; }
.rc-khatabanner, .rc-bizbanner { width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; }
.rc-khatabanner.is-due .rc-banner__sub, .rc-bizbanner.is-due .rc-banner__sub { color: var(--rc-red-600); font-weight: 700; }
.rc-khatabanner.is-adv .rc-banner__sub, .rc-khatabanner.is-zero .rc-banner__sub { color: var(--rc-green-700); font-weight: 700; }
.rc-stmt { padding: 16px; display: grid; gap: 12px; }
.rc-stmt__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--rc-brand); padding-bottom: 10px; }
.rc-stmt__who { text-align: right; }
.rc-stmt__table { max-width: 100%; }
.rc-stmt .rc-msgtable { width: 100%; }
.rc-stmt .rc-msgtable tr.is-opening td, .rc-stmt .rc-msgtable tr.is-total td { font-weight: 700; background: #eef6f1; }
@media print {
  body { background: #fff !important; }
  .rc-topbar, .rc-bottomnav, .rc-noprint, .rc-toasts, .rc-fab { display: none !important; }
  .rc-app__body, .rc-screen { padding: 0 !important; margin: 0 !important; overflow: visible !important; height: auto !important; }
  .rc-stmt { box-shadow: none !important; padding: 0 !important; }
  .rc-tablebox { overflow: visible !important; border: 0 !important; max-width: none !important; }
  .rc-msgtable th { position: static; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.rc-lgrow .rc-row__body { flex: 1; min-width: 0; }
.rc-lgrow .rc-row__sub, .rc-lgrow .rc-row__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-lgrow__right .rc-pill { white-space: nowrap; font-size: 11px; padding: 2px 8px; }
.rc-stmt .rc-msgtable { font-size: 12px; }
.rc-stmt .rc-msgtable th, .rc-stmt .rc-msgtable td { white-space: normal; padding: 6px 6px; }
.rc-stmt .rc-msgtable td.is-num, .rc-stmt .rc-msgtable td:first-child { white-space: nowrap; }
.rc-row .rc-lgrow__right .rc-pill { max-width: none; overflow: visible; }
.rc-stmt__date { font-size: 11px; color: var(--rc-muted); }
.rc-stmt .rc-msgtable td:first-child { white-space: normal; }

/* =====================================================================
   Phase 9 — Retailer Dashboard (VIVO Tracker)
   ===================================================================== */
.rc-biz { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 28px; }
.rc-bizhero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px; border-radius: var(--rc-r-lg); color: #fff; background: linear-gradient(140deg, #123a8f, #1f5ad6 55%, #0f8f88); box-shadow: 0 14px 28px -16px rgba(31,90,214,.8); min-width: 0; }
.rc-bizhero.is-due { background: linear-gradient(140deg, #1d2a6b, #3a3fb8 50%, #c2410c); }
.rc-bizhero.is-team { background: linear-gradient(140deg, #3b1f8f, #5b3fd0 55%, #1f5ad6); }
.rc-bizhero__acct { font-size: var(--rc-fs-xs); letter-spacing: .06em; text-transform: uppercase; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-bizhero__amt { font-size: clamp(1.4rem, 7.4vw, 2rem); overflow-wrap: anywhere; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rc-bizhero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.rc-bizhero__grid > div { display: grid; gap: 1px; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.14); min-width: 0; }
.rc-bizhero__grid span, .rc-bizhero__grid small { font-size: var(--rc-fs-xs); opacity: .85; }
.rc-bizhero__grid b { font-size: var(--rc-fs-md); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-bizhero__asof { font-size: var(--rc-fs-xs); opacity: .8; margin-top: 4px; }
.rc-biz__sec { display: grid; gap: 10px; padding: 14px; min-width: 0; }
.rc-biz__h { margin: 0; font-size: var(--rc-fs-md); }
.rc-agebar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--rc-surface-2); }
.rc-agebar__p { display: block; height: 100%; min-width: 3px; }
.is-a1 { background: #16a265; } .is-a2 { background: #a3c537; } .is-a3 { background: #f59e0b; } .is-a4 { background: #ea580c; } .is-a5 { background: #c81e2a; }
.rc-agelist { display: grid; gap: 6px; margin-top: 10px; }
.rc-agelist__i { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: var(--rc-fs-sm); }
.rc-agelist__i b { font-variant-numeric: tabular-nums; }
.rc-agelist__i.is-old b { color: var(--rc-red-600); }
.rc-agelist__dot { width: 10px; height: 10px; border-radius: 3px; }
.rc-biz__flag { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: var(--rc-fs-sm); font-weight: 600; }
.rc-biz__flag.is-bad { background: var(--rc-red-100); color: var(--rc-red-600); }
.rc-biz__flag.is-good { background: var(--rc-green-100); color: var(--rc-green-700); }
.rc-tgt { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid var(--rc-line); }
.rc-biz__h + .rc-tgt { border-top: 0; padding-top: 0; }
.rc-tgt__top { display: flex; justify-content: space-between; gap: 8px; font-size: var(--rc-fs-sm); }
.rc-tgt__bar { height: 10px; border-radius: 999px; background: var(--rc-surface-2); overflow: hidden; }
.rc-tgt__bar span { display: block; height: 100%; border-radius: 999px; }
.rc-tgt__bar .is-low { background: #ea580c; } .rc-tgt__bar .is-mid { background: #f59e0b; } .rc-tgt__bar .is-done { background: #16a265; }
.rc-tgt__sub { font-size: var(--rc-fs-xs); color: var(--rc-muted); }
.rc-bizmini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc-bizmini > div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: var(--rc-surface-2); min-width: 0; }
.rc-bizmini span { font-size: var(--rc-fs-xs); color: var(--rc-muted); }
.rc-bizmini b { font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-biz__ok { color: var(--rc-green-700); } .rc-biz__warn { color: var(--rc-orange-600); }
.rc-biztable { width: 100%; }
.rc-biztable tfoot th { background: var(--rc-green-100); color: var(--rc-ink); }
.rc-bizchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rc-bizrow .rc-row__body { flex: 1; min-width: 0; }
.rc-bizrow .rc-row__title, .rc-bizrow .rc-row__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-bizrow .rc-lgrow__right .rc-pill { max-width: none; }
.rc-bizopts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.rc-bizopt { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 12px; border: 1.5px solid var(--rc-line); border-radius: 12px; background: var(--rc-surface); font: inherit; font-size: var(--rc-fs-sm); cursor: pointer; text-align: left; }
.rc-bizopt.is-active { border-color: var(--rc-brand); background: var(--rc-green-50); }
.rc-bizcard { display: grid; gap: 6px; min-width: 220px; max-width: 300px; }
.rc-bizcard__head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rc-blue-600); font-size: var(--rc-fs-sm); }
.rc-bizcard__acct { font-size: var(--rc-fs-xs); color: var(--rc-muted); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-bizcard__out { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--rc-blue-100); }
.rc-bizcard__out span { font-size: var(--rc-fs-xs); }
.rc-bizcard__out b { font-size: var(--rc-fs-lg); font-variant-numeric: tabular-nums; }
.rc-bizcard__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.rc-bizcard__grid > div { display: grid; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.035); min-width: 0; }
.rc-bizcard__grid span { font-size: 11px; color: var(--rc-muted); }
.rc-bizcard__grid b { font-size: var(--rc-fs-sm); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-bizcard__grid .is-bad b { color: var(--rc-red-600); }
.rc-bizcard__asof { font-size: 11px; color: var(--rc-muted); }
.rc-bubble.is-business { max-width: min(320px, 86%); }
@media (max-width: 360px) { .rc-bizmini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.rc-bizcard__note { margin-bottom: 8px; }

/* =====================================================================
   Phase 10 — Calls
   ===================================================================== */
.rc-call { position: fixed; inset: 0; z-index: 9000; display: grid; grid-template-rows: auto 1fr auto; padding: calc(14px + var(--rc-safe-top)) 18px calc(26px + var(--rc-safe-bottom)); color: #fff; background: radial-gradient(120% 80% at 50% 0%, #1f6f57 0%, #0d3b30 45%, #071c17 100%); overflow: hidden; }
.rc-call.is-video { background: #05100d; }
.rc-call__remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #05100d; z-index: 0; }
.rc-call:not(.has-video) .rc-call__remote { opacity: .25; filter: blur(12px); }
.rc-call__local { position: absolute; right: 14px; bottom: calc(150px + var(--rc-safe-bottom)); width: 96px; height: 136px; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.7); background: #000; z-index: 2; transform: scaleX(-1); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.rc-call__top, .rc-call__who, .rc-call__controls, .rc-call__answer { position: relative; z-index: 1; }
.rc-call__top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.rc-call__iconbtn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rc-call__secure { display: inline-flex; gap: 5px; align-items: center; font-size: var(--rc-fs-xs); opacity: .75; }
.rc-call__who { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding-top: 8vh; text-align: center; min-width: 0; }
.rc-call.has-video .rc-call__who { padding-top: 0; justify-content: flex-start; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rc-call__who .rc-avatar { width: 112px; height: 112px; font-size: 2.4rem; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 0 22px rgba(255,255,255,.03); }
.rc-call.is-ringing .rc-call__who .rc-avatar { animation: rc-call-pulse 1.8s ease-out infinite; }
@keyframes rc-call-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.28), 0 0 0 0 rgba(255,255,255,.12); } 100% { box-shadow: 0 0 0 22px rgba(255,255,255,0), 0 0 0 44px rgba(255,255,255,0); } }
.rc-call__name { font-size: 1.5rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-call__state { font-size: var(--rc-fs-md); opacity: .85; font-variant-numeric: tabular-nums; }
.rc-call__note { font-size: var(--rc-fs-sm); opacity: .7; }
.rc-call__controls { display: flex; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.rc-call__answer { display: flex; justify-content: space-around; padding: 0 12px; }
.rc-call__btn { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; width: 74px; min-width: 0; }
.rc-call__btnicon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); transition: transform var(--rc-fast) var(--rc-ease), background var(--rc-fast); }
.rc-call__btn:active .rc-call__btnicon { transform: scale(.94); }
.rc-call__btn.is-on .rc-call__btnicon { background: #fff; color: #0d3b30; }
.rc-call__btn.is-red .rc-call__btnicon { background: #e5383b; }
.rc-call__btn.is-green .rc-call__btnicon { background: #16a265; }
.rc-call__answer .rc-call__btnicon { width: 70px; height: 70px; }
.rc-call__btn.is-pulse .rc-call__btnicon { animation: rc-call-btn 1.4s ease-in-out infinite; }
@keyframes rc-call-btn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.rc-call__btnlabel { font-size: var(--rc-fs-xs); opacity: .9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-call.is-over .rc-call__state { font-weight: 600; }
.rc-call.is-mini { inset: auto 0 auto 0; top: 0; display: block; padding: calc(6px + var(--rc-safe-top)) 10px 6px; background: #16a265; grid-template-rows: none; }
.rc-call__minibar { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; background: none; color: #fff; font: inherit; font-size: var(--rc-fs-sm); cursor: pointer; padding: 6px; }
.rc-call__minibar span { font-variant-numeric: tabular-nums; opacity: .9; }
.rc-chat__calls { display: inline-flex; }
.rc-callrow { display: flex; align-items: center; gap: 4px; padding-right: 8px; }
.rc-callrow__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 10px 6px 10px 14px; cursor: pointer; }
.rc-callrow .rc-row__body { flex: 1; min-width: 0; }
.rc-callrow .rc-row__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-callrow .rc-row__sub { display: flex; align-items: center; gap: 4px; }
.rc-callrow__dir { color: var(--rc-green-600); }
.rc-callrow.is-missed .rc-row__title, .rc-callrow.is-missed .rc-row__sub, .rc-callrow.is-missed .rc-callrow__dir { color: var(--rc-red-600); }
.rc-callrow__go { color: var(--rc-green-600); }
.rc-callmsg { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.rc-callmsg__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--rc-green-100); color: var(--rc-green-700); flex: none; }
.rc-callmsg.is-missed .rc-callmsg__icon { background: var(--rc-red-100); color: var(--rc-red-600); }
.rc-callmsg__text { display: grid; flex: 1; min-width: 0; font-size: var(--rc-fs-sm); }
.rc-callmsg__text span { color: var(--rc-muted); font-size: var(--rc-fs-xs); }
.rc-callmsg.is-missed .rc-callmsg__text span { color: var(--rc-red-600); font-weight: 600; }
body.rc-call-mini #rc-root { padding-top: calc(44px + var(--rc-safe-top)); }

/* Tally ledger upload */
.rc-tally__intro { display: grid; gap: 8px; padding: 16px; }
.rc-tally__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--rc-green-100); color: var(--rc-green-700); }
.rc-tally__steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--rc-fs-sm); color: var(--rc-ink-2); }
.rc-tally__who, .rc-tally__sum { display: grid; gap: 8px; padding: 14px; min-width: 0; }
.rc-tally__pair { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: var(--rc-fs-sm); }
.rc-tally__pair span { color: var(--rc-muted); }
.rc-tally__pair b { overflow-wrap: anywhere; }
.rc-tally__row { display: flex; justify-content: space-between; gap: 10px; font-size: var(--rc-fs-sm); padding: 2px 0; }
.rc-tally__row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-tally__row.is-total { border-top: 1px solid var(--rc-line); padding-top: 8px; font-size: var(--rc-fs-md); }
.rc-tally__row.is-skip { color: var(--rc-muted); text-decoration: line-through; }
.rc-tally__list { padding: 12px 14px; }
.rc-tally__list summary { cursor: pointer; font-weight: 600; font-size: var(--rc-fs-sm); }
.rc-tally__list .rc-tablebox { margin-top: 10px; max-height: 360px; overflow: auto; }
.rc-tally__list tr.is-dup td { color: var(--rc-subtle); text-decoration: line-through; }
.rc-tally__confirm { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--rc-lemon-100); font-weight: 600; font-size: var(--rc-fs-sm); cursor: pointer; }
.rc-tally__confirm input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--rc-brand); }
.rc-tallycard .rc-bizcard__head .rc-pill { margin-left: auto; }
.rc-tally__head { display: grid; gap: 6px; padding: 14px; }
.rc-tally__headrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rc-tally__offline { padding: 12px 14px; display: grid; gap: 10px; }
.rc-tally__offline summary { cursor: pointer; font-size: var(--rc-fs-sm); color: var(--rc-muted); }
.rc-tally__offline[open] { gap: 10px; }
.rc-tally__offline .rc-tally__confirm { margin: 10px 0; }
.rc-tally__list table { width: 100%; font-size: var(--rc-fs-xs); }
.rc-tally__list td, .rc-tally__list th { white-space: normal; }
.rc-tally__list .rc-tally__d { white-space: nowrap; }
.rc-tally__list td small { display: block; font-size: 11px; }
.rc-tally__list td.is-dr { color: var(--rc-red-600); white-space: nowrap; }
.rc-tally__list td.is-cr { color: var(--rc-green-700); white-space: nowrap; }

/* =====================================================================
   Phase 11 — Meetings
   ===================================================================== */
.rc-meetings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 16px 28px; }
.rc-meet__tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.rc-meet__tools:empty { display: none; }
.rc-mtitem { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 10px; min-width: 0; }
.rc-mtitem.is-cancelled { opacity: .65; }
.rc-mtitem__main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; }
.rc-mtitem__date { width: 48px; flex: none; display: grid; justify-items: center; padding: 6px 0; border-radius: 12px; background: var(--rc-blue-100); color: var(--rc-blue-700); }
.rc-mtitem.is-live .rc-mtitem__date, .rc-mtitem.is-open .rc-mtitem__date { background: var(--rc-green-100); color: var(--rc-green-700); }
.rc-mtitem__date b { font-size: 1.25rem; line-height: 1.1; }
.rc-mtitem__date span { font-size: 11px; text-transform: uppercase; }
.rc-mtitem__body { display: grid; gap: 3px; min-width: 0; }
.rc-mtitem__title { display: flex; align-items: center; gap: 6px; font-weight: 700; min-width: 0; }
.rc-mtitem__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-mtitem__pills { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-meetdetail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 28px; }
.rc-meetdetail__head, .rc-meetdetail__rsvp { display: grid; gap: 8px; padding: 16px; }
.rc-meetdetail__row { display: flex; justify-content: space-between; align-items: center; }
.rc-meetdetail__agenda { white-space: pre-wrap; padding: 10px 12px; border-radius: 12px; background: var(--rc-surface-2); font-size: var(--rc-fs-sm); }
.rc-meetperson { position: relative; }
.rc-meetperson__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rc-green-500); box-shadow: 0 0 0 4px var(--rc-green-100); margin-right: 6px; }
.rc-meetnew { padding-bottom: 90px; }
.rc-meetnew__ppl { display: flex; justify-content: space-between; align-items: baseline; }
.rc-meetnew select { width: 100%; border: 0; background: transparent; font: inherit; }
.rc-meetcard__title { font-weight: 700; font-size: var(--rc-fs-md); }
.rc-meetcard .rc-bizcard__head .rc-pill { margin-left: auto; }
.rc-meetcard__rsvp { display: flex; gap: 6px; }
.rc-meetbanner { align-items: center; }
/* room */
.rc-meet { grid-template-rows: auto 1fr auto auto; gap: 10px; padding-left: 10px; padding-right: 10px; }
.rc-meet__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 1; }
.rc-meet__title { display: grid; min-width: 0; }
.rc-meet__title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-meet__title span { font-size: var(--rc-fs-xs); opacity: .8; font-variant-numeric: tabular-nums; }
.rc-meet__grid { display: grid; gap: 8px; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); }
.rc-meet__grid.is-n2 { grid-template-rows: 1fr 1fr; }
.rc-meet__grid.is-n3, .rc-meet__grid.is-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-meet__grid.is-n5, .rc-meet__grid.is-n6, .rc-meet__grid.is-n7, .rc-meet__grid.is-n8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-meet__grid > audio { display: none; }
.rc-tile { position: relative; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.08); display: grid; place-items: center; min-height: 0; }
.rc-tile.is-me { outline: 2px solid rgba(255,255,255,.25); }
.rc-tile__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.rc-tile__video.is-me { transform: scaleX(-1); }
.rc-tile__avatar .rc-avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.rc-tile__name { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.45); font-size: 12px; max-width: calc(100% - 12px); width: max-content; }
.rc-tile__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-tile__state { opacity: .75; font-size: 11px; }
.rc-tile.is-weak, .rc-tile.is-failed { outline: 2px solid rgba(245,158,11,.7); }
.rc-meet__alone { text-align: center; opacity: .75; font-size: var(--rc-fs-sm); margin: 0; position: relative; z-index: 1; }
body.rc-has-call .rc-sheet, body.rc-has-call .rc-toasts, body.rc-has-call .rc-toast { z-index: 9600; }
.rc-inline-ico { display: flex; align-items: center; gap: 5px; }

/* =====================================================================
   Phase 12 — Search & Reports
   ===================================================================== */
.rc-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 24px; }
.rc-search__res { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rc-search mark { background: var(--rc-lemon-200); color: inherit; border-radius: 3px; padding: 0 1px; }
.rc-search__msg .rc-row__body { flex: 1; min-width: 0; }
.rc-search__top { display: flex; justify-content: space-between; gap: 8px; }
.rc-search__top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-search__msg .rc-row__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.rc-rpt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 28px; }
.rc-rpt__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rc-rpt__sec { display: grid; gap: 10px; padding: 14px; min-width: 0; }
.rc-rpt__stat small { font-size: 11px; color: var(--rc-muted); }
.rc-bizmini > .rc-rpt__stat { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: var(--rc-surface-2); min-width: 0; }
.rc-rpt__stat.is-bad b { color: var(--rc-red-600); } .rc-rpt__stat.is-good b { color: var(--rc-green-700); } .rc-rpt__stat.is-warn b { color: var(--rc-orange-600); }
.rc-rpt__meter { display: grid; gap: 5px; }
.rc-rpt__meterhead { display: flex; justify-content: space-between; gap: 8px; font-size: var(--rc-fs-sm); }
.rc-rpt__list { display: grid; gap: 2px; }
.rc-rpt__row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--rc-line); background: none; font: inherit; color: inherit; text-align: left; width: 100%; min-width: 0; }
.rc-rpt__row > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.rc-rpt__row { cursor: pointer; }
.rc-rpt__who { flex: 1; display: grid; min-width: 0; }
.rc-rpt__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--rc-fs-sm); }

/* ---------------- Payment options (My Business / Khata) ---------------- */
.rc-pay { display: grid; gap: 12px; padding: 16px; border: 1.5px solid var(--rc-green-100); }
.rc-pay--sheet { border: 0; padding: 0; box-shadow: none; background: transparent; }
.rc-pay__head { display: flex; gap: 12px; align-items: center; }
.rc-pay__head small { display: block; font-size: var(--rc-fs-xs); line-height: 1.4; }
.rc-pay__amtrow { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--rc-surface-2); border: 1px solid var(--rc-line); }
.rc-pay__amtrow > span:first-child { font-size: var(--rc-fs-sm); color: var(--rc-muted); flex: 1; }
.rc-pay__rs { font-size: 20px; font-weight: 700; color: var(--rc-ink-2); }
.rc-pay__amt { width: 9ch; border: 0; background: transparent; font-size: 22px; font-weight: 700; color: var(--rc-ink, inherit); text-align: right; font-variant-numeric: tabular-nums; padding: 0; outline: none; }
.rc-pay__amt:focus { box-shadow: 0 2px 0 var(--rc-brand); }
.rc-pay__pane { display: grid; gap: 10px; }
.rc-pay__upiwrap { display: grid; gap: 10px; }
.rc-pay__upi { font-size: var(--rc-fs-md); min-height: 48px; }
.rc-pay__row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 4px 6px 12px; border-radius: 12px; background: var(--rc-surface-2); }
.rc-pay__row span { font-size: var(--rc-fs-xs); color: var(--rc-muted); }
.rc-pay__row b { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; font-size: var(--rc-fs-sm); }
.rc-pay__qr { display: grid; justify-items: center; gap: 6px; text-align: center; }
.rc-pay__qr canvas, .rc-pay__qr img { width: min(220px, 70vw); height: auto; border-radius: 12px; background: #fff; border: 1px solid var(--rc-line); image-rendering: pixelated; }
.rc-pay__qr img { image-rendering: auto; }
.rc-pay__qr small { font-size: var(--rc-fs-xs); color: var(--rc-muted); max-width: 32ch; line-height: 1.45; }
.rc-pay__bank { display: grid; gap: 8px; }
.rc-pay__bank small { font-size: var(--rc-fs-xs); line-height: 1.45; }
.rc-pay__note { font-size: var(--rc-fs-sm); padding: 10px 12px; border-radius: 12px; background: var(--rc-green-100); color: var(--rc-green-700); white-space: pre-line; }
.rc-chip--pay { color: var(--rc-green-700); border-color: var(--rc-green-100); }

/* ---------------- Email statements ---------------- */
.rc-mail { display: grid; gap: 12px; }
.rc-mail__pane { display: grid; gap: 12px; }
.rc-mail__missing { border-radius: 12px; background: var(--rc-surface-2); padding: 10px 12px; font-size: var(--rc-fs-sm); }
.rc-mail__missing summary { cursor: pointer; font-weight: 600; color: var(--rc-orange-600); }
.rc-mail__missing ul { margin: 6px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; font-size: var(--rc-fs-xs); }

/* ---------------- VIVO 2.9+ "several ledgers matched" ---------------- */
.rc-pill--warn { background: var(--rc-orange-100, #fff1e0); color: var(--rc-orange-600); }
.rc-lgrow__amt.is-review { color: var(--rc-orange-600); }
.rc-biz__flag.is-warn { background: var(--rc-orange-100, #fff1e0); color: var(--rc-orange-600); }
.rc-biz__review { align-items: flex-start; }
.rc-biz__review b { display: block; margin-bottom: 2px; }
.rc-biz__review .rc-text-xs { font-weight: 500; line-height: 1.45; }

/* ---------------- VIVO Tracker banners (Home) ---------------- */
.rc-banners { position: relative; margin: 4px 0 10px; }
.rc-banners__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; background: var(--rc-surface-2); -webkit-overflow-scrolling: touch; }
.rc-banners__track::-webkit-scrollbar { display: none; }
.rc-banners__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.rc-banners__slide img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.rc-banners__dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.rc-banners__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--rc-line-2); cursor: pointer; transition: width .2s var(--rc-ease, ease), background .2s; }
.rc-banners__dot.is-active { width: 18px; background: var(--rc-brand); }
@media (prefers-reduced-motion: reduce) { .rc-banners__dot { transition: none; } }

/* ---------------------------------------------------------------- */
/* Orders & MIS                                                     */
/* ---------------------------------------------------------------- */
.rc-input { width: 100%; min-height: 48px; border: 1.5px solid var(--rc-line); border-radius: var(--rc-r-md); padding: 0 12px; font: inherit; font-size: 16px; background: var(--rc-surface); outline: 0; }
.rc-input:focus { border-color: var(--rc-blue-500); box-shadow: var(--rc-ring); }
.rc-pill--red { background: var(--rc-red-100); color: var(--rc-red-600); }
.rc-ords, .rc-ord, .rc-ordnew { display: grid; gap: 12px; padding-bottom: 24px; }
.rc-ordnew { padding-bottom: 96px; }
.rc-ordrow .rc-row__body { flex: 1; min-width: 0; }
.rc-ordrow.is-pending { background: #fffdf3; }
.rc-ordrow.is-rejected .rc-text-muted, .rc-ordrow.is-cancelled .rc-text-muted { text-decoration: line-through; }
.rc-ord__edited { color: var(--rc-orange-600); font-weight: 600; }
.rc-ordhead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.rc-ordpicker { display: grid; gap: 10px; }
.rc-ordpick__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--rc-line-2); }
.rc-ordpick__row:last-child { border-bottom: 0; }
.rc-ordpick__row.is-on { background: var(--rc-green-50); }
.rc-ordpick__row .rc-row__title { white-space: normal; font-size: var(--rc-fs-sm); }
.rc-ordstock { font-weight: 600; color: var(--rc-green-700); }
.rc-ordstock.is-zero { color: var(--rc-red-600); }
td.rc-ordstock.is-zero { font-weight: 700; }
.rc-step { display: inline-flex; align-items: center; flex: none; border: 1.5px solid var(--rc-line); border-radius: 12px; overflow: hidden; background: var(--rc-surface); }
.rc-step__b { width: 36px; height: 38px; border: 0; background: var(--rc-surface-2); font: inherit; font-size: 20px; font-weight: 700; color: var(--rc-ink-2); cursor: pointer; }
.rc-step__b.is-plus { color: var(--rc-green-700); }
.rc-step__in { width: 48px; height: 38px; border: 0; text-align: center; font: inherit; font-size: 16px; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.rc-step__in::-webkit-outer-spin-button, .rc-step__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rc-ordbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(100%, 520px); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + var(--rc-safe-bottom, 0px)); background: var(--rc-surface); box-shadow: 0 -8px 24px -12px rgba(20,32,51,.25); border-radius: 18px 18px 0 0; }
.rc-ordbar.is-inline { position: static; transform: none; width: auto; box-shadow: none; padding: 8px 0 0; border-radius: 0; background: none; }
.rc-ordbar__sum { flex: 1; min-width: 0; display: grid; font-size: var(--rc-fs-sm); }
.rc-ordbar__sum span { color: var(--rc-muted); font-size: var(--rc-fs-xs); }
.rc-ordtable { max-width: 100%; }
.rc-ordtable table { width: 100%; }
.rc-ordtable td { white-space: normal; vertical-align: top; }
.rc-ordtable tr.is-removed td { color: var(--rc-subtle); text-decoration: line-through; }
.rc-ord__was { font-size: 11px; color: var(--rc-orange-600); font-weight: 600; text-decoration: none; }
.rc-ordcard { padding: 16px; display: grid; gap: 10px; border-top: 5px solid var(--rc-orange-500); }
.rc-ordcard.is-approved { border-top-color: var(--rc-blue-500); }
.rc-ordcard.is-billed { border-top-color: var(--rc-purple-500); }
.rc-ordcard.is-dispatched { border-top-color: var(--rc-green-500); }
.rc-ordcard.is-rejected, .rc-ordcard.is-cancelled { border-top-color: var(--rc-red-600); }
.rc-ordcard__top { display: flex; justify-content: space-between; align-items: center; font-size: var(--rc-fs-lg, 18px); }
.rc-ordcard__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rc-ordcard__meta > div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--rc-surface-2); min-width: 0; }
.rc-ordcard__meta span, .rc-ordcard__meta small { font-size: var(--rc-fs-xs); color: var(--rc-muted); overflow: hidden; text-overflow: ellipsis; }
.rc-ordcard__meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-ordactions { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-ordactions .rc-btn { flex: 1 1 auto; }
.rc-ord__danger { color: var(--rc-red-600) !important; }
.rc-ordedit { padding: 14px; display: grid; gap: 8px; border: 2px solid var(--rc-orange-500); }
.rc-ordedit__head { display: flex; justify-content: space-between; align-items: center; }
.rc-ordlog { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--rc-line); display: grid; gap: 10px; }
.rc-ordlog li { position: relative; font-size: var(--rc-fs-sm); }
.rc-ordlog li::before { content: ""; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rc-orange-500); box-shadow: 0 0 0 3px var(--rc-surface); }
.rc-ordlog li.is-approved::before { background: var(--rc-blue-500); }
.rc-ordlog li.is-billed::before { background: var(--rc-purple-500); }
.rc-ordlog li.is-dispatched::before { background: var(--rc-green-500); }
.rc-ordlog li.is-rejected::before, .rc-ordlog li.is-cancelled::before { background: var(--rc-red-600); }
.rc-ordsec__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rc-ordsec__head .rc-biz__h { margin: 0; }
.rc-ordsec .rc-row { padding-left: 0; padding-right: 0; }
.rc-ordret { max-height: 60vh; overflow: auto; }
.rc-ordbanner .rc-tile__icon { flex: none; }
.rc-ords [hidden], .rc-ord [hidden], .rc-ordnew [hidden], .rc-ordsec[hidden] { display: none !important; }
/* Login codes (test mode) */
.rc-otpcodes { display: grid; gap: 12px; }
.rc-otprow .rc-row__body { flex: 1; min-width: 0; }
.rc-otprow a { color: var(--rc-blue-600); text-decoration: none; font-weight: 600; }
.rc-otpcode { font-size: 22px; letter-spacing: 4px; font-variant-numeric: tabular-nums; color: var(--rc-green-700); }
.rc-otprow.is-used, .rc-otprow.is-expired { opacity: .7; }
a.rc-banner { text-decoration: none; color: inherit; }
/* Install help */
.rc-instbanner { position: relative; }
.rc-instbanner__x { width: 32px; min-height: 32px; margin-left: -4px; }
.rc-inststeps { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: var(--rc-fs-sm); line-height: 1.5; }
.rc-insthelp a.rc-btn { text-decoration: none; }
/* WhatsApp */
.rc-chip--wa { color: #128c4b; border-color: #b7e4c9; }
.rc-wa__go { background: #25d366; color: #fff; border: 0; text-decoration: none; }
.rc-wa__go.is-disabled { opacity: .5; pointer-events: none; }
.rc-wa__text { font-size: 14px; line-height: 1.5; }
.rc-wa__icon { color: #128c4b; }
.rc-wa__funnel { display: grid; gap: 10px; }
.rc-wa__step { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: var(--rc-fs-sm); }
.rc-wa__bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--rc-surface-2); overflow: hidden; }
.rc-wa__bar span { display: block; height: 100%; background: linear-gradient(90deg, #25d366, var(--rc-blue-500)); border-radius: 99px; }
.rc-rpt__row > .rc-avatar { flex: none !important; }
.rc-rpt__row .rc-btn--icon { width: 38px; min-height: 38px; flex: none; }
.rc-rpt__who small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =====================================================================
   Desktop view (Retailer Dashboard) — .rc-root.is-wide
   ===================================================================== */
.rc-root { transition: max-width .2s ease; }
.rc-root.is-wide { max-width: 1360px; }
.rc-modebtn { gap: 6px; padding: 6px 10px; font-size: 13px; font-weight: 600; border-radius: 999px; background: rgba(20,32,51,.06); }
.rc-modebtn:hover { background: rgba(20,32,51,.1); }
.rc-refreshing { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--rc-muted, #667085); padding: 2px 4px; }
.rc-spinner--xs { width: 14px; height: 14px; border-width: 2px; }

/* one retailer: sections in two columns, hero across */
.rc-root.is-wide .rc-app__body { padding: 18px 24px 32px; }
.rc-root.is-wide .rc-biz { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rc-root.is-wide .rc-biz > .rc-bizhero,
.rc-root.is-wide .rc-biz > .rc-lgtools,
.rc-root.is-wide .rc-biz > .rc-biz__flag,
.rc-root.is-wide .rc-biz > .rc-refreshing,
.rc-root.is-wide .rc-biz > p,
.rc-root.is-wide .rc-biz > .rc-banner,
.rc-root.is-wide .rc-biz > .rc-control,
.rc-root.is-wide .rc-biz > .rc-chips,
.rc-root.is-wide .rc-biz > .rc-list,
.rc-root.is-wide .rc-biz > #rc-pay { grid-column: 1 / -1; }
@media (min-width: 960px) { .rc-root.is-wide .rc-bizhero__amt { font-size: 40px; } }
.rc-root.is-wide .rc-biz .rc-tablebox { max-width: 100%; }

/* staff: table on the left, chosen retailer on the right */
.rc-bizdesk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 24px; min-width: 0; }
.rc-bizdesk__top { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 16px; align-items: center; }
.rc-bizdesk__top > .rc-banner { grid-column: 1 / -1; }
.rc-bizdesk__main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rc-bizdesk__list { display: grid; gap: 10px; min-width: 0; }
.rc-bizdesk__detail { position: sticky; top: 68px; max-height: calc(100vh - 80px); overflow: auto; min-width: 0; border-radius: var(--rc-r-lg); background: rgba(255,255,255,.55); padding: 2px; }
.rc-bizdesk__detail .rc-biz { grid-template-columns: minmax(0, 1fr) !important; }
.rc-dtablebox { max-width: 100% !important; margin: 0; }
.rc-dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rc-dtable th, .rc-dtable td { padding: 9px 8px; border-bottom: 1px solid rgba(20,32,51,.08); text-align: left; white-space: nowrap; vertical-align: middle; }
.rc-dtable th { position: sticky; top: 0; background: #f6f8fb; font-size: 12px; font-weight: 700; color: #475467; z-index: 1; }
.rc-dtable .is-num { text-align: right; }
.rc-dtable th.is-sort { cursor: pointer; user-select: none; }
.rc-dtable th.is-sort:hover, .rc-dtable th.is-on { color: var(--rc-brand, #1f5ad6); }
.rc-dtable tbody tr { cursor: pointer; }
.rc-dtable tbody tr:hover { background: #f3f7ff; }
.rc-dtable tbody tr.is-sel { background: #e7efff; box-shadow: inset 3px 0 0 var(--rc-brand, #1f5ad6); }
.rc-dtable tbody tr:focus-visible { outline: 2px solid var(--rc-brand, #1f5ad6); outline-offset: -2px; }
.rc-dtable td.is-debit { color: #c4320a; font-weight: 700; }
.rc-dtable td.is-credit { color: #067647; font-weight: 700; }
.rc-dtable td.is-review { color: #b54708; }
.rc-dtable__shop { display: flex; align-items: center; gap: 10px; min-width: 160px; white-space: normal; }
.rc-dtable__shop b { display: block; font-size: 13.5px; }
.rc-dtable__shop small { display: block; color: #667085; font-size: 11.5px; }
.rc-dtablebox { max-height: calc(100vh - 230px); overflow: auto; }
/* desktop view chosen on a narrow screen (phone): scroll sideways instead of squeezing */
@media (max-width: 959px) {
  .rc-root.is-wide .rc-biz { grid-template-columns: minmax(0, 1fr); }
  .rc-bizdesk__top, .rc-bizdesk__main { grid-template-columns: minmax(0, 1fr); }
  .rc-bizdesk__detail { position: static; max-height: none; }
  .rc-dtablebox { max-height: 60vh; }
}

/* Own VIVO data: accounts breakdown + bill-wise list */
.rc-biz__flag.is-info { background: #eef4ff; color: #1e40af; }
.rc-bizaccts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; padding: 12px 14px; border-radius: var(--rc-r-lg); background: #fff; border: 1px solid rgba(20,32,51,.08); }
.rc-bizaccts__h { display: block; font-size: 11.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.rc-bizaccts__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.rc-bizaccts__row span { min-width: 0; overflow-wrap: anywhere; color: #334155; }
.rc-bizaccts__row b { flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-bills { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.rc-bill { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: #f8fafc; }
.rc-bill.is-late { background: #fff1f2; }
.rc-bill__l { min-width: 0; display: grid; }
.rc-bill__l b { font-size: 13px; }
.rc-bill__l small { color: #64748b; font-size: 11.5px; }
.rc-bill__r { display: grid; justify-items: end; gap: 3px; flex: none; }
.rc-bill__r b { font-size: 13.5px; }
.rc-pill--red { background: #fee2e2; color: #b91c1c; }
.rc-pill--blue { background: #dbeafe; color: #1d4ed8; }
.rc-root.is-wide .rc-biz > .rc-bizaccts { grid-column: 1 / -1; }
.rc-billage { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; }
.rc-billage.is-a1 { background: #16a265; } .rc-billage.is-a2 { background: #8aa72a; } .rc-billage.is-a3 { background: #f59e0b; } .rc-billage.is-a4 { background: #ea580c; } .rc-billage.is-a5 { background: #c81e2a; }
.rc-gaprise { font-size: 11px; font-weight: 700; color: #b91c1c; margin-top: 3px; }
.rc-imei__row { display: flex; gap: 8px; }
.rc-imei__row .rc-input { flex: 1; min-width: 0; }
.rc-imei__out { display: grid; gap: 8px; }
.rc-imei { padding: 10px 12px; border-radius: 12px; background: #f8fafc; display: grid; gap: 3px; }
.rc-imei.is-sold { background: #f0fdf4; }
.rc-imei__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.rc-imei__no { font-family: ui-monospace, monospace; font-size: 12.5px; color: #334155; letter-spacing: .03em; }
.rc-share { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--rc-r-lg); background: #faf5ff; border: 1px dashed #c4b5fd; }
.rc-share__l { display: grid; gap: 2px; min-width: 0; }
.rc-share__l b { font-size: 13px; }
.rc-share__sw { position: relative; flex: none; width: 50px; height: 28px; border-radius: 999px; border: 0; background: #d1d5db; cursor: pointer; transition: background .2s; }
.rc-share__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.rc-share__sw.is-on { background: #16a265; }
.rc-share__sw.is-on::after { transform: translateX(22px); }
.rc-share__sw:disabled { opacity: .55; cursor: default; }
.rc-root.is-wide .rc-biz > .rc-share { grid-column: 1 / -1; }

/* =====================================================================
   VIVO Data in the app (#/vivo-data)
   ===================================================================== */
.rc-vd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 28px; }
.rc-vd__hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, #7c3aed 0%, #db2777 45%, #f97316 75%, #14b8a6 100%); box-shadow: 0 18px 36px -24px rgba(124,58,237,.9); }
.rc-vd__hero b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.rc-vd__hello, .rc-vd__sub { font-size: 12.5px; opacity: .92; }
.rc-vd__ring { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.28) 0); }
.rc-vd__ring > div { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; text-align: center; line-height: 1.05; background: rgba(76,29,149,.55); }
.rc-vd__ring b { font-size: 18px; } .rc-vd__ring span { font-size: 10.5px; }
.rc-vd__tabs .rc-badge { margin-left: 6px; }
.rc-vd__content { display: grid; gap: 14px; min-width: 0; }
.rc-vd__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .rc-root.is-wide .rc-vd__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rc-vd__card { position: relative; overflow: hidden; border-radius: 18px; padding: 12px 14px; color: #fff; min-height: 112px; }
.rc-vd__card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.14); }
.rc-vd__card.is-violet { background: linear-gradient(140deg, #6d28d9, #a855f7); } .rc-vd__card.is-coral { background: linear-gradient(140deg, #e11d48, #fb923c); }
.rc-vd__card.is-teal { background: linear-gradient(140deg, #0f766e, #2dd4bf); } .rc-vd__card.is-sky { background: linear-gradient(140deg, #1d4ed8, #38bdf8); }
.rc-vd__card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.rc-vd__badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.24); white-space: nowrap; }
.rc-vd__card.is-wait .rc-vd__badge { background: #fff; color: #b45309; }
.rc-vd__card-name { margin-top: 8px; font-weight: 700; font-size: 13px; }
.rc-vd__card-big { font-size: 20px; font-weight: 800; margin-top: 2px; }
.rc-vd__card-line { font-size: 11px; opacity: .92; position: relative; z-index: 1; }
.rc-vd__drop { display: grid; gap: 10px; }
.rc-vd__zone { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 14px; border-radius: 20px; cursor: pointer;
  border: 3px dashed transparent; background-image: linear-gradient(#fff, #fff), linear-gradient(120deg, #7c3aed, #db2777, #f97316, #14b8a6); background-origin: border-box; background-clip: padding-box, border-box; }
.rc-vd__file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rc-vd__zone b { font-size: 15px; }
.rc-vd__zone > span { color: #64748b; font-size: 12.5px; }
.rc-vd__zone-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff !important; background: linear-gradient(140deg, #7c3aed, #ec4899); }
.rc-vd__chosen { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rc-vd__chip { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: #fff; }
.rc-vd__chip.is-violet { background: #7c3aed; } .rc-vd__chip.is-coral { background: #f43f5e; } .rc-vd__chip.is-teal { background: #0d9488; } .rc-vd__chip.is-sky { background: #2563eb; } .rc-vd__chip.is-grey { background: #64748b; }
.rc-vd__go { background: linear-gradient(120deg, #7c3aed, #db2777 60%, #f97316); border: 0; }
.rc-vd__results { display: grid; gap: 8px; }
.rc-vd__res { border-radius: 14px; padding: 10px 12px; border-left: 5px solid; background: #fff; }
.rc-vd__res.is-ok { background: #ecfdf5; border-color: #10b981; } .rc-vd__res.is-warn { background: #fffbeb; border-color: #f59e0b; } .rc-vd__res.is-fail { background: #fff1f2; border-color: #f43f5e; }
.rc-vd__res-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rc-vd__res ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; display: grid; gap: 3px; }
.rc-vd__res li.is-bad { color: #be123c; } .rc-vd__res li.is-warn { color: #92400e; } .rc-vd__res li.is-good { color: #065f46; } .rc-vd__res li.is-new { color: #6d28d9; }
.rc-vd__notes, .rc-vd__hist { padding: 12px 14px; display: grid; gap: 8px; }
.rc-vd__notes h3, .rc-vd__hist h3 { margin: 0; font-size: 14px; }
.rc-vd__note { padding: 8px 10px; border-radius: 10px; font-size: 12.5px; }
.rc-vd__note.is-warn { background: #fff7ed; color: #9a3412; } .rc-vd__note.is-good { background: #ecfdf5; color: #065f46; }
.rc-vd__hrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #e5e7eb; }
.rc-vd__hrow:last-child { border-bottom: 0; }
.rc-vd__hrow-l { display: grid; min-width: 0; } .rc-vd__hrow-l b { font-size: 13px; } .rc-vd__hrow-l small { color: #64748b; font-size: 11.5px; }
.rc-vd__hrow.is-undone, .rc-vd__hrow.is-old { opacity: .55; }
.rc-vd__count { background: #ffe4e6; color: #be123c; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.rc-vd__item { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #ede9fe; transition: opacity .35s ease, transform .35s ease; }
.rc-vd__item.is-gone { opacity: 0; transform: translateX(30px); }
.rc-vd__item > header { padding: 12px 14px 8px; border-left: 5px solid #a855f7; background: linear-gradient(90deg, #faf5ff, #fff 70%); }
.rc-vd__item.is-erp > header { border-left-color: #fb7185; background: linear-gradient(90deg, #fff1f2, #fff 70%); }
.rc-vd__side { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #7c3aed; }
.rc-vd__item.is-erp .rc-vd__side { color: #e11d48; }
.rc-vd__item h4 { margin: 2px 0 3px; font-size: 14.5px; }
.rc-vd__meta { font-size: 11.5px; color: #64748b; }
.rc-vd__sugs { list-style: none; margin: 0; padding: 2px 14px; }
.rc-vd__sugs li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px dashed #eee; transition: opacity .3s; }
.rc-vd__sugs li.is-gone { opacity: 0; }
.rc-vd__sugs li:last-child { border-bottom: 0; }
@media (min-width: 700px) { .rc-root.is-wide .rc-vd__sugs li { grid-template-columns: minmax(180px, 1fr) 2fr auto; align-items: center; } }
.rc-vd__who b { font-size: 13.5px; } .rc-vd__who small { color: #64748b; margin-left: 6px; }
.rc-vd__sugs li.is-top .rc-vd__who b { color: #065f46; }
.rc-vd__score { display: block; height: 5px; border-radius: 5px; background: #f1f5f9; margin-top: 5px; max-width: 150px; overflow: hidden; }
.rc-vd__score i { display: block; height: 100%; width: var(--s); background: linear-gradient(90deg, #f59e0b, #10b981); }
.rc-vd__why { display: flex; flex-wrap: wrap; gap: 5px; }
.rc-vd__why span { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.rc-vd__why .is-good { background: #ecfdf5; color: #047857; } .rc-vd__why .is-warn { background: #fff7ed; color: #b45309; }
.rc-vd__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-vd__yes, .rc-vd__no { border: 0; border-radius: 10px; font-weight: 700; padding: 9px 14px; cursor: pointer; font: inherit; font-weight: 700; }
.rc-vd__yes { flex: 1; color: #fff; background: linear-gradient(120deg, #10b981, #0d9488); }
.rc-vd__no { background: #f3f4f6; color: #6b7280; }
.rc-vd__item > footer { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px 10px; background: #fcfcfd; border-top: 1px solid #f3f4f6; }
.rc-vd__skip { color: #9ca3af; }
.rc-vd__done { text-align: center; padding: 30px; background: #fff; border-radius: 20px; border: 2px dashed #a7f3d0; display: grid; gap: 4px; }
.rc-vd__done span { font-size: 38px; } .rc-vd__done b { color: #047857; font-size: 16px; }
.rc-vd__pick { display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.rc-vd__cardlist { display: grid; gap: 10px; }
@media (min-width: 700px) { .rc-root.is-wide .rc-vd__cardlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rc-vd__rcard { background: #fff; border-radius: 16px; border: 1px solid #ede9fe; overflow: hidden; }
.rc-vd__rcard.is-empty { border-style: dashed; border-color: #fda4af; }
.rc-vd__rcard > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(120deg, #f5f3ff, #fff1f2); }
.rc-vd__rcard > header b { font-size: 14px; } .rc-vd__rcard > header small { color: #64748b; flex: 1; }
.rc-vd__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; }
.rc-vd__cols h5 { margin: 0 0 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.rc-vd__none { color: #cbd5e1; margin: 2px 0; font-size: 12px; }
.rc-vd__chip2 { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 10px; background: #f5f3ff; margin-bottom: 5px; }
.rc-vd__chip2.is-erp { background: #fff1f2; } .rc-vd__chip2.is-new { outline: 2px dashed #f59e0b; outline-offset: -2px; }
.rc-vd__chip2 > div { flex: 1; min-width: 0; } .rc-vd__chip2 b { display: block; font-size: 11.5px; word-break: break-word; } .rc-vd__chip2 small { color: #64748b; font-size: 10.5px; }
.rc-vd__mini { border: 0; width: 24px; height: 24px; border-radius: 7px; background: rgba(0,0,0,.06); color: #64748b; font-weight: 700; cursor: pointer; flex: none; }
.rc-vd__mini.is-ok { background: #d1fae5; color: #047857; }
.rc-vd__rcard > footer { display: flex; gap: 14px; padding: 8px 12px 10px; border-top: 1px solid #f3f4f6; font-size: 12.5px; color: #475569; }
.rc-vd__hrow .rc-btn { white-space: nowrap; flex: none; }
.rc-credit { text-align: center; margin: -4px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(100deg, #7c3aed, #db2777 55%, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-root.is-wide .rc-biz > .rc-credit { grid-column: 1 / -1; }
