/* ==========================================================================
   ReklamAI — Warm App Shell (Pencil port)
   Shared chrome + components for app pages: Дашборд, Биллинг, Аккаунт, Доски.
   Warm-light Studio-Stage system. Literal hex (proven, matches stage.css).
   Scope: body.ra-stage
   ========================================================================== */

.ra-stage {
  margin: 0;
  min-height: 100vh;
  background: #FBFAF7;
  color: #403C35;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ra-stage *,
.ra-stage *::before,
.ra-stage *::after { box-sizing: border-box; }
.ra-stage a { text-decoration: none; color: inherit; }
.ra-stage button { font-family: inherit; cursor: pointer; }

/* Brand bar --------------------------------------------------------------- */
.rs-brandbar {
  height: 3px;
  background: linear-gradient(90deg, #F8743E 0%, #F1581E 50%, #E04E18 100%);
}

/* Top nav ----------------------------------------------------------------- */
.rs-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid #DCD8D0;
}
.rs-logo { display: flex; align-items: center; gap: 10px; }
.rs-tile {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #F8743E 0%, #F1581E 55%, #E04E18 100%);
  box-shadow: 0 1px 0 #FFD9C4 inset, 0 4px 12px -3px rgba(241, 88, 30, 0.4);
  flex-shrink: 0;
}
.rs-tile::before,
.rs-tile::after {
  content: "";
  position: absolute;
  border-radius: 2px;
}
.rs-tile::before { left: 7px; top: 7px; width: 7px; height: 9px; background: rgba(255, 255, 255, 0.48); }
.rs-tile::after  { left: 10px; top: 9px; width: 7px; height: 9px; background: #FFFFFF; }
.rs-tile i {
  position: absolute; left: 13px; top: 13px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #F1581E; z-index: 2;
}
.rs-word { font-size: 16px; font-weight: 600; letter-spacing: -0.2px; color: #28241E; }

.rs-nav { display: flex; align-items: center; gap: 4px; }
.rs-tab {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: #615C53;
  transition: background 140ms ease, color 140ms ease;
}
.rs-tab:hover { background: #F4F2ED; color: #28241E; }
.rs-tab.active { background: #EAE7E0; color: #28241E; font-weight: 600; }

.rs-top-right { display: flex; align-items: center; gap: 16px; }
.rs-credits {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(251, 250, 247, 0.8);
  border: 1px solid #DCD8D0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; font-weight: 600; color: #403C35;
  transition: border-color 140ms ease;
}
.rs-credits:hover { border-color: #C5C0B6; }
.rs-credits svg { width: 14px; height: 14px; color: #F1581E; }
.rs-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: #EAE7E0;
  border: 1px solid #DCD8D0;
  font-size: 14px; font-weight: 600; color: #615C53;
}

/* Page container ---------------------------------------------------------- */
.rs-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 80px 64px;
}
.rs-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.rs-head-l { display: flex; flex-direction: column; gap: 8px; }
.rs-overline {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; color: #8E887D;
}
.rs-h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; color: #28241E; }
.rs-section-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.3px; color: #28241E; }
.rs-link { font-size: 14px; font-weight: 500; color: #F1581E; }
.rs-link:hover { color: #B83E12; }

/* Buttons ----------------------------------------------------------------- */
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 10px;
  border: 1px solid #C5C0B6;
  background: #FFFFFF;
  font-size: 14px; font-weight: 600; color: #28241E;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}
.rs-btn:hover { background: #F4F2ED; border-color: #8E887D; }
.rs-btn:active { transform: translateY(1px); }
.rs-btn svg { width: 16px; height: 16px; }

.rs-btn-dark { background: #28241E; border-color: #28241E; color: #FFFFFF; }
.rs-btn-dark:hover { background: #403C35; border-color: #403C35; }

.rs-btn-cta {
  border: 0;
  color: #FFFFFF;
  background: linear-gradient(180deg, #F8743E 0%, #F1581E 55%, #E04E18 100%);
  box-shadow: 0 1px 0 rgba(255, 217, 196, 0.65), 0 6px 16px -2px rgba(241, 88, 30, 0.32);
}
.rs-btn-cta:hover { filter: brightness(1.03); }
.rs-btn-cta:active { transform: translateY(1px); filter: brightness(0.98); }
.rs-btn-block { width: 100%; }

/* Cards / panels ---------------------------------------------------------- */
.rs-card {
  background: #F4F2ED;
  border: 1px solid #DCD8D0;
  border-radius: 16px;
  padding: 24px;
}
.rs-card-white { background: #FFFFFF; }

/* Stat cards -------------------------------------------------------------- */
.rs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rs-stat {
  display: flex; flex-direction: column; gap: 10px;
  background: #F4F2ED; border: 1px solid #DCD8D0; border-radius: 16px;
  padding: 22px;
}
.rs-stat-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: #FCEFE7;
}
.rs-stat-ic svg { width: 20px; height: 20px; color: #F1581E; }
.rs-stat-v { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 32px; font-weight: 600; color: #28241E; }
.rs-stat-l { font-size: 14px; color: #615C53; }

/* Generic grid ------------------------------------------------------------ */
.rs-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rs-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Set / recent card ------------------------------------------------------- */
.rs-set {
  display: flex; flex-direction: column;
  background: #F4F2ED; border: 1px solid #DCD8D0; border-radius: 14px;
  overflow: hidden;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.rs-set:hover { border-color: #C5C0B6; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(40, 36, 30, 0.18); }
.rs-set-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #EAE7E0; display: block; }
.rs-set-ft { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.rs-set-t { font-size: 13px; font-weight: 600; color: #28241E; }
.rs-set-c { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; color: #8E887D; }

/* Board card (collage cover) --------------------------------------------- */
.rs-board {
  display: flex; flex-direction: column;
  background: #F4F2ED; border: 1px solid #DCD8D0; border-radius: 14px;
  overflow: hidden;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.rs-board:hover { border-color: #C5C0B6; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(40, 36, 30, 0.18); }
.rs-board-cover { display: grid; grid-template-columns: 1fr 130px; gap: 2px; height: 200px; background: #EAE7E0; }
.rs-board-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-board-cover-r { display: grid; grid-template-rows: repeat(3, 1fr); gap: 2px; }
.rs-board-ft { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.rs-board-name { font-size: 15px; font-weight: 600; color: #28241E; }
.rs-board-cnt { font-size: 13px; color: #8E887D; }
.rs-board-ft svg { width: 18px; height: 18px; color: #8E887D; }

/* Create tile (dashed) ---------------------------------------------------- */
.rs-create-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 248px;
  border: 1.5px dashed #C5C0B6; border-radius: 14px;
  background: #FFFFFF;
  color: #615C53; font-size: 15px; font-weight: 600;
  transition: border-color 140ms ease, background 140ms ease;
}
.rs-create-tile:hover { border-color: #F1581E; background: #FCEFE7; }
.rs-create-tile .rs-create-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 9999px; background: #FCEFE7;
}
.rs-create-tile .rs-create-ic svg { width: 22px; height: 22px; color: #F1581E; }

/* Forms ------------------------------------------------------------------- */
.rs-field { display: flex; flex-direction: column; gap: 7px; }
.rs-label { font-size: 13px; font-weight: 500; color: #615C53; }
.rs-input {
  width: 100%; height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #C5C0B6;
  background: #FFFFFF;
  font-family: inherit; font-size: 14px; color: #403C35;
}
.rs-input:focus { outline: none; border-color: #F1581E; box-shadow: 0 0 0 3px rgba(241, 88, 30, 0.14); }
.rs-input::placeholder { color: #8E887D; }

/* Textarea ---------------------------------------------------------------- */
.rs-textarea {
  width: 100%; min-height: 110px;
  padding: 14px; border-radius: 10px;
  border: 1px solid #C5C0B6; background: #FFFFFF;
  font-family: inherit; font-size: 14px; color: #403C35; line-height: 1.55;
  resize: vertical;
}
.rs-textarea:focus { outline: none; border-color: #F1581E; box-shadow: 0 0 0 3px rgba(241, 88, 30, 0.14); }
.rs-textarea::placeholder { color: #8E887D; }

/* Tone-of-voice sliders --------------------------------------------------- */
.rs-tone { display: flex; flex-direction: column; gap: 8px; }
.rs-tone-lab { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; color: #615C53; }
.rs-tone-lab .hi { color: #8E887D; }
.rs-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 9999px;
  background: #EAE7E0; accent-color: #F1581E; cursor: pointer;
}
.rs-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #FFFFFF; border: 3px solid #F1581E; cursor: pointer;
  box-shadow: 0 1px 4px rgba(40, 36, 30, 0.2);
}
.rs-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #FFFFFF; border: 3px solid #F1581E; cursor: pointer;
}

/* Plan card --------------------------------------------------------------- */
.rs-plan {
  display: flex; flex-direction: column; gap: 16px;
  background: #FCEFE7; border: 1.5px solid #F1581E; border-radius: 16px; padding: 24px;
}
.rs-plan-row { display: flex; align-items: center; justify-content: space-between; }
.rs-plan-badge { padding: 4px 10px; border-radius: 9999px; background: #F1581E; color: #FFFFFF; font-size: 12px; font-weight: 600; }
.rs-plan-price { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: #28241E; }

/* Tables ------------------------------------------------------------------ */
.rs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; color: #403C35; }
.rs-table thead tr {
  border-bottom: 1px solid #DCD8D0;
  color: #8E887D;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.rs-table th { padding: 10px 0; font-weight: 600; }
.rs-table td { padding: 14px 0; border-bottom: 1px solid #EAE7E0; }
.rs-table tbody tr:last-child td { border-bottom: 0; }
.rs-mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.rs-muted { color: #8E887D; }
.rs-danger { color: #D43B2A; font-weight: 500; }

/* Balance strip (billing) ------------------------------------------------- */
.rs-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: #F4F2ED; border: 1px solid #DCD8D0; border-radius: 16px; padding: 24px 28px;
}
.rs-balance-num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 42px; font-weight: 600; color: #28241E; line-height: 1; }
.rs-balance-unit { font-size: 16px; color: #8E887D; font-weight: 400; }

/* Layout helpers ---------------------------------------------------------- */
.rs-cols { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.rs-stack { display: flex; flex-direction: column; gap: 24px; }
.rs-stack-16 { display: flex; flex-direction: column; gap: 16px; }
.rs-divider { height: 1px; background: #DCD8D0; border: 0; margin: 0; }

/* Empty / loading states -------------------------------------------------- */
.rs-empty { padding: 48px 0; text-align: center; color: #8E887D; font-size: 14px; }
.rs-spin {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid #EAE7E0; border-top-color: #F1581E; border-radius: 50%;
  animation: rs-spin 0.9s linear infinite; vertical-align: middle; margin-right: 8px;
}
@keyframes rs-spin { to { transform: rotate(360deg); } }

/* Marketplace stores (publish moat — connect WB/Ozon) -------------------- */
.rs-stores-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rs-store {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: 14px;
  background: #FFFFFF; border: 1px solid #DCD8D0;
  transition: border-color 140ms ease;
}
.rs-store[data-on="1"] { border-color: #2F9D5B; }
.rs-store-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rs-store-name { font-size: 16px; font-weight: 600; color: #28241E; }
.rs-store-sub { font-size: 12px; color: #8E887D; margin-top: 2px; }
.rs-store-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 9999px;
  font-size: 12px; font-weight: 600;
  background: #EAE7E0; color: #615C53; border: 1px solid #DCD8D0; white-space: nowrap;
}
.rs-store-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8E887D; }
.rs-store-badge[data-on="1"] { background: #E6F4EC; color: #2F9D5B; border-color: #BCE3CC; }
.rs-store-badge[data-on="1"]::before { background: #2F9D5B; }
.rs-store-actions { display: flex; gap: 10px; align-items: center; margin-top: 2px; }

/* JS-injected grids ------------------------------------------------------- */
[data-generations-grid] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
[data-boards-grid] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Board card (JS-injected, lite) ----------------------------------------- */
.rs-board-lite {
  display: flex; flex-direction: column;
  padding: 20px;
  border-radius: 14px;
  background: #F4F2ED; border: 1px solid #DCD8D0;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.rs-board-lite:hover { border-color: #F1581E; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(40, 36, 30, 0.18); }
.rs-board-lite-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(180deg, #F8743E 0%, #F1581E 55%, #E04E18 100%);
  color: #FFFFFF; font-size: 18px; font-weight: 700;
}
.rs-board-lite-name { margin: 0; font-size: 16px; font-weight: 600; color: #28241E; }
.rs-board-lite-cnt { margin: 4px 0 0; font-size: 13px; color: #615C53; }
.rs-board-lite-date { margin: 8px 0 0; font-family: "JetBrains Mono", monospace; font-size: 11px; color: #8E887D; }

/* Compat aliases for any leftover injected markup ------------------------ */
.lv-muted { color: #8E887D; }
.lv-mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .rs-page { padding: 32px 40px 56px; }
  .rs-cols { grid-template-columns: 1fr; }
  .rs-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .rs-page { padding: 24px 18px 48px; }
  .rs-top { padding: 0 16px; }
  .rs-nav { display: none; }
  .rs-stats { grid-template-columns: 1fr; }
  .rs-grid-3, .rs-grid-4 { grid-template-columns: 1fr; }
  .rs-board-cover { grid-template-columns: 1fr 96px; }
  .rs-h1 { font-size: 24px; }
  .rs-balance-num { font-size: 34px; }
  [data-generations-grid] { grid-template-columns: repeat(2, 1fr); }
  [data-boards-grid] { grid-template-columns: 1fr; }
  .rs-stores-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  [data-boards-grid] { grid-template-columns: repeat(2, 1fr); }
}


/* ── motion polish (auto) ── */

/* Reusable easing token (fallback to project ease) */
.ra-stage { --rs-ease: cubic-bezier(.16, 1, .3, 1); }

/* Top nav — tabs lift focus / smoother active ----------------------------- */
.rs-tab {
  transition: background 140ms var(--rs-ease), color 140ms var(--rs-ease), transform 160ms var(--rs-ease);
}
.rs-tab:active { transform: scale(.98); }
.rs-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 88, 30, 0.4);
}

/* Credits pill — gentle lift + accent ring on hover/focus ----------------- */
.rs-credits {
  transition: border-color 140ms var(--rs-ease), transform 180ms var(--rs-ease), box-shadow 180ms var(--rs-ease);
}
.rs-credits:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(40, 36, 30, 0.28); }
.rs-credits:focus-visible {
  outline: none;
  border-color: #F1581E;
  box-shadow: 0 0 0 3px rgba(241, 88, 30, 0.4);
}

/* Avatar — soft pop + focus ring ------------------------------------------ */
.rs-avatar {
  transition: transform 200ms var(--rs-ease), border-color 160ms var(--rs-ease), box-shadow 160ms var(--rs-ease);
}
.rs-avatar:hover { transform: scale(1.06); border-color: #C5C0B6; box-shadow: 0 4px 12px -6px rgba(40, 36, 30, 0.3); }
.rs-avatar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 88, 30, 0.4);
}

/* Inline link — subtle nudge ---------------------------------------------- */
.rs-link {
  display: inline-block;
  transition: color 140ms var(--rs-ease), transform 160ms var(--rs-ease);
}
.rs-link:hover { transform: translateX(1px); }
.rs-link:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(241, 88, 30, 0.4);
}

/* Buttons — premium press + focus ring ------------------------------------ */
.rs-btn:hover { transform: scale(1.02); }
.rs-btn:active { transform: scale(.98); }
.rs-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 88, 30, 0.4);
}
.rs-btn-cta {
  transition: filter 140ms var(--rs-ease), transform 160ms var(--rs-ease), box-shadow 220ms var(--rs-ease);
}
.rs-btn-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 1px 0 rgba(255, 217, 196, 0.65), 0 10px 26px -4px rgba(241, 88, 30, 0.42);
}
.rs-btn-cta:active { transform: scale(.98); }
.rs-btn-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 88, 30, 0.4), 0 6px 16px -2px rgba(241, 88, 30, 0.32);
}

/* Cards & panels — hover lift + depth ------------------------------------- */
.rs-card,
.rs-card-white,
.rs-stat {
  transition: transform 180ms var(--rs-ease), box-shadow 180ms var(--rs-ease), border-color 140ms var(--rs-ease);
  will-change: transform;
}
.rs-card:hover,
.rs-card-white:hover,
.rs-stat:hover {
  transform: translateY(-3px);
  border-color: #C5C0B6;
  box-shadow: 0 12px 28px -14px rgba(40, 36, 30, 0.2);
}

/* Set / board / lite cards — bump existing lift to -4px ------------------- */
.rs-set:hover,
.rs-board:hover,
.rs-board-lite:hover { transform: translateY(-4px); }
.rs-board-lite:focus-visible {
  outline: none;
  border-color: #F1581E;
  box-shadow: 0 0 0 3px rgba(241, 88, 30, 0.4);
}

/* Set image — subtle zoom inside its clipped frame ------------------------ */
.rs-set-img {
  transition: transform 320ms var(--rs-ease);
  will-change: transform;
}
.rs-set:hover .rs-set-img { transform: scale(1.03); }

/* Stat icon — gentle pop with its card ------------------------------------ */
.rs-stat-ic { transition: transform 220ms var(--rs-ease); }
.rs-stat:hover .rs-stat-ic { transform: scale(1.06); }

/* Create tile — lift + accent depth --------------------------------------- */
.rs-create-tile {
  transition: border-color 140ms var(--rs-ease), background 140ms var(--rs-ease), transform 180ms var(--rs-ease), box-shadow 180ms var(--rs-ease);
}
.rs-create-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(241, 88, 30, 0.28); }

/* Store cards — lift + depth ---------------------------------------------- */
.rs-store {
  transition: border-color 140ms var(--rs-ease), transform 180ms var(--rs-ease), box-shadow 180ms var(--rs-ease);
}
.rs-store:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(40, 36, 30, 0.2); }

/* Plan card — soft accent glow on hover ----------------------------------- */
.rs-plan {
  transition: transform 200ms var(--rs-ease), box-shadow 220ms var(--rs-ease);
}
.rs-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(241, 88, 30, 0.38);
}

/* Inputs & textarea — animate the existing focus ring --------------------- */
.rs-input,
.rs-textarea {
  transition: border-color 160ms var(--rs-ease), box-shadow 200ms var(--rs-ease);
}
.rs-input:hover,
.rs-textarea:hover { border-color: #A39C90; }

/* Range — accent thumb pop ------------------------------------------------ */
.rs-range::-webkit-slider-thumb { transition: transform 160ms var(--rs-ease), box-shadow 160ms var(--rs-ease); }
.rs-range:hover::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 2px 8px rgba(241, 88, 30, 0.3); }
.rs-range:focus-visible { outline: none; }
.rs-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(241, 88, 30, 0.4); }
.rs-range::-moz-range-thumb { transition: transform 160ms var(--rs-ease); }
.rs-range:hover::-moz-range-thumb { transform: scale(1.12); }

/* Table rows — warm highlight on hover ------------------------------------ */
.rs-table tbody tr {
  transition: background 140ms var(--rs-ease);
}
.rs-table tbody tr:hover { background: rgba(241, 88, 30, 0.045); }

/* Idle breathing — only the brand logo tile + CTA glow -------------------- */
@keyframes rs-tile-breathe {
  0%, 100% { box-shadow: 0 1px 0 #FFD9C4 inset, 0 4px 12px -3px rgba(241, 88, 30, 0.4); }
  50%      { box-shadow: 0 1px 0 #FFD9C4 inset, 0 6px 18px -2px rgba(241, 88, 30, 0.55); }
}
.rs-tile {
  animation: rs-tile-breathe 7s var(--rs-ease) infinite;
  transition: transform 220ms var(--rs-ease);
}
.rs-logo:hover .rs-tile { transform: scale(1.06) rotate(-2deg); }

@keyframes rs-cta-breathe {
  0%, 100% { box-shadow: 0 1px 0 rgba(255, 217, 196, 0.65), 0 6px 16px -2px rgba(241, 88, 30, 0.32); }
  50%      { box-shadow: 0 1px 0 rgba(255, 217, 196, 0.65), 0 8px 22px -2px rgba(241, 88, 30, 0.46); }
}
.rs-btn-cta { animation: rs-cta-breathe 6s var(--rs-ease) infinite; }
.rs-btn-cta:hover,
.rs-btn-cta:active,
.rs-btn-cta:focus-visible { animation: none; }

/* Light entrance — fade-up for primary content surfaces ------------------- */
@keyframes rs-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rs-head,
.rs-stats,
.rs-balance,
.rs-cols,
.rs-stack,
.rs-grid-3,
.rs-grid-4,
.rs-stores-grid {
  animation: rs-fade-up 520ms var(--rs-ease) both;
}
.rs-stats { animation-delay: 60ms; }
.rs-cols,
.rs-stack,
.rs-grid-3,
.rs-grid-4,
.rs-stores-grid { animation-delay: 120ms; }
.rs-balance { animation-delay: 90ms; }

/* Reduced motion — disable every added animation / transition ------------- */
@media (prefers-reduced-motion: reduce) {
  .rs-tab,
  .rs-credits,
  .rs-avatar,
  .rs-link,
  .rs-btn,
  .rs-btn-cta,
  .rs-card,
  .rs-card-white,
  .rs-stat,
  .rs-stat-ic,
  .rs-set,
  .rs-set-img,
  .rs-board,
  .rs-board-lite,
  .rs-create-tile,
  .rs-store,
  .rs-plan,
  .rs-input,
  .rs-textarea,
  .rs-range,
  .rs-tile,
  .rs-table tbody tr,
  .rs-head,
  .rs-stats,
  .rs-balance,
  .rs-cols,
  .rs-stack,
  .rs-grid-3,
  .rs-grid-4,
  .rs-stores-grid {
    animation: none !important;
    transition: none !important;
  }
  .rs-range::-webkit-slider-thumb,
  .rs-range::-moz-range-thumb { transition: none !important; }
  .rs-tab:active,
  .rs-btn:hover,
  .rs-btn:active,
  .rs-btn-cta:hover,
  .rs-btn-cta:active,
  .rs-card:hover,
  .rs-card-white:hover,
  .rs-stat:hover,
  .rs-set:hover,
  .rs-board:hover,
  .rs-board-lite:hover,
  .rs-create-tile:hover,
  .rs-store:hover,
  .rs-plan:hover,
  .rs-credits:hover,
  .rs-avatar:hover,
  .rs-link:hover,
  .rs-logo:hover .rs-tile,
  .rs-set:hover .rs-set-img,
  .rs-stat:hover .rs-stat-ic { transform: none !important; }
}
