/* RoyalSonic — shared sleek tokens (aligned text · colored icons, no boxes) */
:root,
html[data-rs-theme="mailbox"] {
  --rs-royal: #5b7cff;
  --rs-royal-hover: #4a6af0;
  --rs-royal-deep: #3d5bd6;
  --accent: #5b7cff;
  --accent-hover: #4a6af0;
  --accent-deep: #3d5bd6;
  --signal: #5b7cff;
  --danger: #ef4444;
  --warn: #f59e0b;
  --success: #10b981;
  --canvas: #f4f6fb;
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-soft: #f0f3fa;
  --panel-strong: #fafbff;
  --sidebar: #f3f4f8;
  --line: #e6eaf2;
  --text: #1e293b;
  --muted: #64748b;
  --selected: #5b7cff;
  --selected-soft: #eef2ff;
  --hover: #f5f7fc;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 12px 32px rgba(15, 23, 42, 0.12);
  --font-display: "Outfit", "Segoe UI", ui-sans-serif, sans-serif;
  --font-body: "Outfit", "Segoe UI", "Helvetica Neue", ui-sans-serif, sans-serif;
}

html[data-rs-theme="mailbox"] body,
body.rs-sleek {
  font-family: var(--font-body) !important;
  color: var(--text) !important;
  background:
    radial-gradient(ellipse 55% 32% at 8% -4%, rgba(91, 124, 255, 0.11), transparent 55%),
    linear-gradient(180deg, #f4f6fb 0%, #eef1f8 100%) !important;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

/* Colored icons — no filled boxes */
.app-icon,
.app-icon.is-mark,
.nav-icon,
.svc-icon,
.side-stat-icon {
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Sender / brand avatars may stay circular (logos), not nav icons */
.rs-sender-logo,
.rs-app-mark:not(.app-icon) {
  --c1: #5b7cff;
  --c2: #3d5bd6;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
}
.rs-sender-logo img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
  z-index: 1;
}

/* Soft sidebar */
html[data-rs-theme="mailbox"] .sidebar,
html[data-rs-theme="mailbox"] .side,
.rs-sleek-sidebar {
  background: var(--sidebar) !important;
  border-color: transparent !important;
}

html[data-rs-theme="mailbox"] .nav-btn.active {
  background: #fff !important;
  color: var(--text) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 0 0 1px var(--line) !important;
}

/* Aligned text + tables everywhere */
html[data-rs-theme="mailbox"] h1,
html[data-rs-theme="mailbox"] h2,
html[data-rs-theme="mailbox"] h3,
body.rs-sleek h1,
body.rs-sleek h2,
body.rs-sleek h3 {
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

html[data-rs-theme="mailbox"] .table-wrap table,
html[data-rs-theme="mailbox"] table.data,
body.rs-sleek .table-wrap table,
body.rs-sleek table.data {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
html[data-rs-theme="mailbox"] .table-wrap th,
html[data-rs-theme="mailbox"] table.data th,
body.rs-sleek .table-wrap th,
body.rs-sleek table.data th {
  text-align: left !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
  padding: 0.55rem 0.85rem 0.7rem 0 !important;
}
html[data-rs-theme="mailbox"] .table-wrap td,
html[data-rs-theme="mailbox"] table.data td,
body.rs-sleek .table-wrap td,
body.rs-sleek table.data td {
  text-align: left !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding: 0.55rem 0.85rem 0.55rem 0 !important;
  vertical-align: middle !important;
}

html[data-rs-theme="mailbox"] .panel,
body.rs-sleek .panel {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
}
