/* =========================================================
   SUBPAGE STYLES — shared by Agent Status, Quick Replies,
   New Quick Reply, Chat Tags, Delivery Log
   ========================================================= */

/* Page wrapper inside .main */
.sp-page {
  /* Phase B.63 — alignment fix. _LayoutV3 .main already applies 20px left/right
     padding; .sp-page was adding another 20px, double-indenting RCS content so
     it no longer lined up under the breadcrumb header. Drop the horizontal
     padding here (keep vertical) so content sits flush under the crumbs. */
/*  padding: 14px 0 40px;*/
  /* max-width: 1440px; */
}

/* ---------- Page header ---------- */
.sp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

/* Phase B.63.2 — sticky page header (title + Cancel/Save actions) on the long
   RCS form + list pages. The scroll container is `.main` (overflow-y:auto), so
   we stick `.sp-head` to the TOP of .main (top:0) with a solid background so
   content scrolls cleanly underneath. Now applied to ALL RCS V3 subpages via
   the data-rcs-page prefix, with an edge-to-edge treatment (negative side
   margins cancel .main's 20px padding) + black top border to match the v2
   WhatsApp pages. */
body[data-rcs-page^="rcs"] .sp-head,
body[data-rcs-page^="waFlow"] .sp-head {
    position: sticky;
    top: 0;
    z-index: 5 !important;
    background: var(--bg, #ffffff);
    padding-top: 14px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.25);
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-top: 2px solid black;
}

.sp-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.sp-title .sp-tic {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center;
}
.sp-title .sp-tic svg { width: 14px; height: 14px; }
.sp-title .sp-meta {
  font-size: 12px; font-weight: 400; color: var(--ink-3);
  margin-left: 4px;
}
.sp-actions { display: flex; gap: 6px; align-items: center; }

/* Lime-green primary action button for RCS subpages. The markup uses
   class="btn primary" (two classes); the base .btn is neutral, so this gives
   the primary variant the theme's lime-green. Covers Register RBM Agent,
   Create Template, Save draft, Save changes, Create agent, etc. across all
   RCS V3 pages at once. */
.btn.primary {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--lime-ink);
    font-weight: 600;
}
.btn.primary:hover {
    background: var(--lime-2);
    border-color: var(--lime-2);
}
.btn.primary svg { stroke: var(--lime-ink); }

/* My-status pill (Agent Status header) */
.my-status {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px; color: var(--ink);
  cursor: pointer;
}
.my-status:hover { border-color: var(--ink-4); }
.my-status .ms-label { color: var(--ink-4); font-size: 11.5px; }
.my-status .ms-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(163,230,53,0.18);
}
.my-status[data-status="online"]  .ms-dot { background: var(--lime);   box-shadow: 0 0 0 3px rgba(163,230,53,0.18); }
.my-status[data-status="away"]    .ms-dot { background: #f5a524; box-shadow: 0 0 0 3px rgba(245,165,36,0.18); }
.my-status[data-status="busy"]    .ms-dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(229,72,77,0.18); }
.my-status[data-status="offline"] .ms-dot { background: #94a3b8; box-shadow: none; }

/* ---------- Info banner ---------- */
.sp-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-left: 3px solid #185fa5;
  background: #e6f1fb;
  border-radius: 8px;
  font-size: 12.5px;
  color: #0c447c;
  line-height: 1.55;
  margin-bottom: 18px;
}
[data-theme="dark"] .sp-info {
  background: rgba(24,95,165,0.14);
  color: #79b3e8;
  border-left-color: #6db4ed;
}
.sp-info .ib-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: #185fa5; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.sp-info .ib-close {
  margin-left: auto;
  background: transparent; border: 0; color: inherit;
  opacity: 0.6; cursor: pointer; padding: 2px;
  border-radius: 4px;
}
.sp-info .ib-close:hover { opacity: 1; background: rgba(0,0,0,0.06); }

/* ---------- Summary card grid (the sumcard component lives in inbox-styles.css) ---------- */
.sp-sumgrid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 1280px) { .sp-sumgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .sp-sumgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Filter row ---------- */
.sp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}
.sp-filters .sp-search {
  flex: 1 1 280px;
  min-width: 240px;
}
.sp-filters .sp-search .input-group { height: 34px; }
.sp-filters .input,
.sp-filters .select {
  height: 34px;
  font-size: 12.5px;
}
.sp-filters .select { min-width: 140px; max-width: 200px; }
.sp-filters .input-date { width: 150px; }
.sp-filters .sp-fspacer { flex: 1; }
.sp-filters .btn { height: 34px; }

/* ---------- Data table ---------- */
.sp-tablewrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: var(--shadow-1);
}
.sp-tablewrap::-webkit-scrollbar { height: 8px; }
.sp-tablewrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.sp-tablewrap::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
.sp-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 13px;
}
.sp-table thead th {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  height: 40px;
  padding: 0 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.sp-table thead th.right { text-align: right; }
.sp-table thead th.center { text-align: center; }
.sp-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}
.sp-table tbody tr:last-child td { border-bottom: 0; }
.sp-table tbody tr:hover { background: var(--bg-panel); }
.sp-table td.right { text-align: right; }
.sp-table td.center { text-align: center; }
.sp-table td.mono  { font-family: var(--font-mono); font-size: 12px; }
.sp-table .row-sub { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.sp-table .row-link { color: #185fa5; cursor: pointer; }
.sp-table .row-link:hover { text-decoration: underline; }
[data-theme="dark"] .sp-table .row-link { color: #79b3e8; }

/* Pagination */
.sp-pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
}
.sp-pager .pgr-controls { display: flex; gap: 4px; align-items: center; }
.sp-pager .pgr-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  font-size: 12px; color: var(--ink);
  cursor: pointer;
}
.sp-pager .pgr-btn:hover:not(:disabled) { border-color: var(--ink-4); }
.sp-pager .pgr-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sp-pager .pgr-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sp-pager .pgr-ellipsis { padding: 0 4px; color: var(--ink-4); }

/* ---------- Avatar with status dot ---------- */
.av-cell { display: flex; align-items: center; gap: 10px; }
.av-thumb {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 11.5px; font-weight: 600;
  position: relative; flex-shrink: 0;
}
.av-thumb .av-status {
  position: absolute; bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.av-thumb .av-status.online  { background: var(--lime); }
.av-thumb .av-status.away    { background: #f5a524; }
.av-thumb .av-status.busy    { background: var(--danger); }
.av-thumb .av-status.offline { background: #94a3b8; }
.av-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.av-sub { font-size: 11px; color: var(--ink-4); margin-top: 1px; }

/* ---------- Working hours cell ---------- */
.wh-cell { display: flex; align-items: center; gap: 8px; }
.wh-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--surface);
}
.wh-dot.in  { background: var(--lime-ink, #6a8c26); }
.wh-dot.out { background: var(--ink-5, #c8ced8); }
.wh-stack { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wh-time {
  font-size: 12px; color: var(--ink-2); font-family: var(--font-mono);
  white-space: nowrap;
}
.wh-tz {
  font-size: 10.5px; color: var(--ink-4); font-weight: 500;
  margin-left: 2px;
}
.wh-days {
  font-size: 10.5px; color: var(--ink-4);
  letter-spacing: 0.01em;
}

/* ---------- Capacity bar ---------- */
.cap-cell { display: flex; align-items: center; gap: 10px; }
.cap-text { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); min-width: 38px; }
.cap-bar {
  width: 80px; height: 5px; border-radius: 999px;
  background: var(--line);
  overflow: hidden; position: relative;
}
.cap-bar::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--pct, 0%);
  background: var(--lime);
  border-radius: 999px;
}
.cap-bar.warn::after { background: #f5a524; }
.cap-bar.danger::after { background: var(--danger); }

/* ---------- Toggle switch (inline status) ---------- */
.tg {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
}
.tg-track {
  width: 30px; height: 18px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  transition: background .15s;
}
.tg-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.tg input { display: none; }
.tg.on .tg-track { background: var(--lime); }
.tg.on .tg-track::after { transform: translateX(12px); }
.tg-label { font-size: 11.5px; color: var(--ink-3); }
.tg.on .tg-label { color: var(--lime-ink); font-weight: 500; }
[data-theme="dark"] .tg.on .tg-label { color: var(--lime); }

/* ---------- Pills with arbitrary tones ---------- */
.tone-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.tone-pill .tp-dot { width: 5px; height: 5px; border-radius: 50%; }
.tone-pill.tone-teal     { background: var(--lime-soft); color: var(--lime-ink); }
.tone-pill.tone-teal .tp-dot   { background: var(--lime); }
.tone-pill.tone-blue     { background: #e6f1fb; color: #0c447c; }
.tone-pill.tone-blue .tp-dot   { background: #185fa5; }
.tone-pill.tone-amber    { background: #faeeda; color: #633806; }
.tone-pill.tone-amber .tp-dot  { background: #ba7517; }
.tone-pill.tone-red      { background: #fcebeb; color: #791f1f; }
.tone-pill.tone-red .tp-dot    { background: var(--danger); }
.tone-pill.tone-green    { background: #eaf3de; color: #27500a; }
.tone-pill.tone-green .tp-dot  { background: #27500a; }
.tone-pill.tone-purple   { background: #eeedfe; color: #2a1c8a; }
.tone-pill.tone-purple .tp-dot { background: #534ab7; }
.tone-pill.tone-gray     { background: #f1f5f9; color: #4a5568; }
.tone-pill.tone-gray .tp-dot   { background: #94a3b8; }
[data-theme="dark"] .tone-pill.tone-teal   { background: rgba(163,230,53,0.14); color: var(--lime); }
[data-theme="dark"] .tone-pill.tone-blue   { background: rgba(24,95,165,0.16); color: #6db4ed; }
[data-theme="dark"] .tone-pill.tone-amber  { background: rgba(186,117,23,0.18); color: #e0b675; }
[data-theme="dark"] .tone-pill.tone-red    { background: rgba(229,72,77,0.18); color: #f08585; }
[data-theme="dark"] .tone-pill.tone-green  { background: rgba(39,80,10,0.25); color: #a7d77b; }
[data-theme="dark"] .tone-pill.tone-purple { background: rgba(83,74,183,0.25); color: #aaa1ff; }
[data-theme="dark"] .tone-pill.tone-gray   { background: rgba(148,163,184,0.18); color: #cbd5e1; }

/* ---------- Code/shortcut pill ---------- */
.code-pill {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--lime-ink);
}
[data-theme="dark"] .code-pill { color: var(--lime); }

/* ---------- Row-action icons ---------- */
.ra-row { display: inline-flex; gap: 2px; }
.ra-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  display: grid; place-items: center;
  color: var(--ink-4);
  cursor: pointer;
}
.ra-btn:hover { background: var(--bg-panel); color: var(--ink-2); }
.ra-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.ra-btn.brand:hover  { background: var(--lime-soft);   color: var(--lime-ink); }
.ra-btn.info:hover   { background: #e6f1fb;            color: #185fa5; }

/* ---------- Color swatch (Tags page) ---------- */
.cs-cell { display: flex; align-items: center; gap: 10px; }
.cs-swatch {
  width: 14px; height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.cs-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.cs-hex  { font-size: 11px; color: var(--ink-4); font-family: var(--font-mono); margin-left: 6px; }

/* ---------- Modal ---------- */
.sp-modal-scrim {
  position: fixed; inset: 0;
  background: rgba(13,15,10,0.45);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
}
.sp-modal-scrim.open { display: flex; }
.sp-modal {
  width: 480px; max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(13,15,10,0.25);
}
.sp-modal .m-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.sp-modal .m-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.sp-modal .m-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: transparent; border: 0;
  display: grid; place-items: center;
  color: var(--ink-4); cursor: pointer;
}
.sp-modal .m-close:hover { background: var(--bg-panel); color: var(--ink); }
.sp-modal .m-body { padding: 20px; }
.sp-modal .m-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
}

/* ---------- Form field ---------- */
.sp-field { margin-bottom: 16px; }
.sp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.sp-field .sp-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 6px;
}
.sp-field .sp-label .req { color: var(--danger); margin-left: 2px; }
.sp-field .sp-label .sp-counter {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); font-weight: 400;
}
.sp-field .sp-help {
  font-size: 11.5px; color: var(--ink-4);
  margin-top: 6px; line-height: 1.5;
}

/* Color picker grid for tag modal */
.colorpick {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.colorpick .cp-sw {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.colorpick .cp-sw.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1), 0 0 0 2px var(--surface);
}
.colorpick .cp-sw.active::after {
  content: '✓'; color: #fff; font-size: 14px; font-weight: 700;
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ---------- Variable pill (in textarea preview) ---------- */
.var-pill {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 6px;
  background: var(--lime-soft);
  color: var(--lime-ink);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  margin: 0 1px;
}
[data-theme="dark"] .var-pill { background: rgba(163,230,53,0.18); color: var(--lime); }

/* ---------- New Quick Reply layout ---------- */
.qr-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1100px) { .qr-layout { grid-template-columns: 1fr; } }

.qr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.qr-preview {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.qr-preview .pv-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.qr-preview .pv-body { padding: 18px; background: var(--bg-panel); }

/* WhatsApp-style preview phone */
.wa-phone {
  background: #ece5dd;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
[data-theme="dark"] .wa-phone { background: #0b141a; border-color: rgba(255,255,255,0.06); }
.wa-phone .wa-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--lime);
  color: var(--lime-ink);
}
.wa-phone .wa-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.wa-phone .wa-name { font-size: 12.5px; font-weight: 600; }
.wa-phone .wa-sub  { font-size: 10px; opacity: 0.7; margin-top: 1px; }
.wa-phone .wa-msgs { padding: 14px 12px; min-height: 140px; display: flex; flex-direction: column; gap: 6px; }
.wa-bubble {
  align-self: flex-start;
  background: #fff;
  color: #1a1a2e;
  padding: 8px 11px 6px;
  border-radius: 8px;
  border-top-left-radius: 2px;
  max-width: 80%;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  position: relative;
  white-space: pre-wrap;
  word-wrap: break-word;
}
[data-theme="dark"] .wa-bubble { background: #202c33; color: #e9edef; box-shadow: none; }
.wa-bubble .wa-time {
  display: block;
  font-size: 9.5px;
  color: var(--ink-4);
  margin-top: 4px;
  text-align: right;
}

.qr-detected { padding: 14px 18px; border-top: 1px solid var(--line); }
.qr-detected .pv-head { padding: 0; border: 0; margin-bottom: 8px; }
.qr-detected .pv-list { display: flex; flex-wrap: wrap; gap: 4px; }
.qr-howto {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.55;
}
.qr-howto strong { color: var(--ink-2); display: block; margin-bottom: 2px; font-weight: 500; }

/* Upload zone */
.upload-zone {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-panel);
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color .15s;
}
.upload-zone:hover { border-color: var(--lime); }
.upload-zone .uz-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--ink-3);
}

/* Checkbox (custom) */
.sp-check {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
  font-size: 13px; color: var(--ink);
}
.sp-check input { display: none; }
.sp-check .sp-cbox {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  background: var(--surface);
  flex-shrink: 0;
}
.sp-check input:checked + .sp-cbox {
  background: var(--lime);
  border-color: var(--lime);
}
.sp-check input:checked + .sp-cbox::after {
  content: '';
  width: 4px; height: 8px;
  border: solid var(--lime-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Empty state */
.sp-empty {
  padding: 60px 20px;
  text-align: center;
}
.sp-empty .sp-emp-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-panel);
  display: grid; place-items: center;
  color: var(--ink-4);
  margin: 0 auto 14px;
}
.sp-empty .sp-emp-h { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.sp-empty .sp-emp-b { font-size: 13px; color: var(--ink-4); margin-bottom: 14px; }

/* Trend small text */
.trend-up { color: var(--lime-ink); font-size: 11px; font-weight: 500; }
[data-theme="dark"] .trend-up { color: var(--lime); }
.trend-down { color: var(--danger); font-size: 11px; font-weight: 500; }
.trend-flat { color: var(--ink-4); font-size: 11px; }

/* Refresh hint */
.refresh-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-4);
  font-family: var(--font-mono);
}
.refresh-hint .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
