/* Redesign (test page only, html.rd): a light, calm look after the reference board platform —
   Tailwind/shadcn defaults: system font, gray-50 page, white sidebar and cards with a 1px border and no shadows,
   one blue action colour (#155dfc), soft blue/green/purple/orange accents for icons. Loaded last; nothing else changes. */

/* ── tokens ── */
:root.rd:not([data-theme="dark"]) {
  color-scheme: light;
  --ink:#0a0a0a; --secondary:#4a5565; --muted:#717182; --faint:#6a7282;
  --bg:#f9fafb; --surface:#ffffff; --surface-2:#f9fafb; --surface-3:#f3f4f6; --board:#f3f4f6;
  --line:#e5e7eb; --control-line:#e5e7eb; --header:#ffffff;
  --accent:#155dfc; --blue-text:#155dfc; --blue-soft:#dbeafe; --blue-line:#bedbff;
  --violet-text:#9810fa; --violet-soft:#f3e8ff; --cyan-text:#0084d1; --cyan-soft:#dff2fe;
  --success-text:#00a63e; --success-soft:#dcfce7; --success-line:#b9f8cf;
  --warn-text:#f54900; --warn-soft:#ffedd4;
  --focus:#155dfc40; --shadow-color:transparent; --shadow-strong:#0000001a; --overlay:#0a0a0a66;
  --radius:14px; --r-sm:8px; --r-md:10px; --r-lg:14px; --r-xl:14px;
  --hero-start:#ffffff; --hero-end:#ffffff; --hero-line:#e5e7eb;
  --rd-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --rd-border:1px solid rgba(0,0,0,.1);
  --rd-nav:#364153;
}
/* ── palette of the new style: light (as in the reference) and dark (same logic, Tailwind grays) ── */
:root.rd:not([data-theme="dark"]) {
  --rd-surface:#ffffff; --rd-subtle:#f9fafb; --rd-hover:#f3f4f6; --rd-input:#f3f3f5; --rd-line:#e5e7eb; --rd-line-soft:rgba(0,0,0,.1);
  --rd-ink:#0a0a0a; --rd-nav:#364153; --rd-text2:#4a5565; --rd-text3:#6a7282;
  --rd-primary:#155dfc; --rd-primary-hover:#1447e6; --rd-primary-soft:#eff6ff; --rd-primary-line:#bedbff; --rd-blue-soft:#dbeafe;
  --rd-green:#00a63e; --rd-green-soft:#dcfce7; --rd-purple:#9810fa; --rd-purple-soft:#f3e8ff;
  --rd-orange:#f54900; --rd-orange-soft:#ffedd4; --rd-red:#e7000b;
}
:root.rd[data-theme="dark"] {
  color-scheme: dark;
  --rd-surface:#111827; --rd-subtle:#0b0f17; --rd-hover:#1e2939; --rd-input:#1e2939; --rd-line:#1e2939; --rd-line-soft:rgba(255,255,255,.1);
  --rd-ink:#f3f4f6; --rd-nav:#d1d5dc; --rd-text2:#d1d5dc; --rd-text3:#99a1af;
  --rd-primary:#2b7fff; --rd-primary-hover:#155dfc; --rd-primary-soft:rgba(43,127,255,.16); --rd-primary-line:rgba(43,127,255,.4); --rd-blue-soft:rgba(43,127,255,.2);
  --rd-green:#05df72; --rd-green-soft:rgba(5,223,114,.14); --rd-purple:#c27aff; --rd-purple-soft:rgba(194,122,255,.16);
  --rd-orange:#ff8904; --rd-orange-soft:rgba(255,137,4,.16); --rd-red:#ff6467;
  /* the portal's own tokens, so every screen follows the dark palette */
  --ink:#f3f4f6; --secondary:#d1d5dc; --muted:#99a1af; --faint:#99a1af;
  --bg:#0b0f17; --surface:#111827; --surface-2:#0b0f17; --surface-3:#1e2939; --board:#0b0f17;
  --line:#1e2939; --control-line:#364153; --header:#111827;
  --accent:#2b7fff; --blue-text:#51a2ff; --blue-soft:rgba(43,127,255,.16); --blue-line:rgba(43,127,255,.4);
  --violet-text:#c27aff; --violet-soft:rgba(194,122,255,.16); --cyan-text:#00d3f2; --cyan-soft:rgba(0,211,242,.14);
  --success-text:#05df72; --success-soft:rgba(5,223,114,.14); --success-line:rgba(5,223,114,.35);
  --focus:rgba(43,127,255,.35); --shadow-color:transparent; --shadow-strong:rgba(0,0,0,.5); --overlay:rgba(0,0,0,.6);
  --radius:14px; --r-sm:8px; --r-md:10px; --r-lg:14px; --r-xl:14px; --hero-start:#111827; --hero-end:#111827; --hero-line:#1e2939;
  --rd-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --rd-border:1px solid rgba(255,255,255,.1);
}


/* ── the page itself: no wallpaper, no glass ── */
:root.rd,
:root.rd body,
:root.rd #app,
:root.rd .main-shell,
:root.rd .page {
  background:var(--bg) !important; background-image:none !important;
}
:root.rd body::before,
:root.rd body::after,
:root.rd #app::before,
:root.rd #app::after,
:root.rd .main-shell::before { display:none !important; }
:root.rd body,
:root.rd button,
:root.rd input,
:root.rd select,
:root.rd textarea { font-family:var(--rd-font) !important; }
:root.rd body { color:var(--ink); }

/* ── sidebar ── */
:root.rd #app .sidebar {
  background:var(--rd-surface) !important; backdrop-filter:none !important; box-shadow:none !important;
  border:0 !important; border-right:1px solid var(--line) !important; border-radius:0 !important;
  color:var(--ink) !important; padding:24px 16px !important;
}
:root.rd #app .sidebar .brand img { filter:none !important; }
:root.rd #app .sidebar .brand small,
:root.rd #app .sidebar .nav-label { color:var(--faint) !important; letter-spacing:.06em; }
:root.rd #app .sidebar .nav { gap:4px; }
:root.rd #app .sidebar .nav button,
:root.rd #app .sidebar .nav a {
  color:var(--rd-nav) !important; background:transparent !important; box-shadow:none !important; border:0 !important;
  border-radius:10px !important; padding:12px 16px !important; gap:12px !important; min-height:0 !important;
  font-size:16px !important; font-weight:500 !important; line-height:24px !important;
}
:root.rd #app .sidebar .nav button:hover,
:root.rd #app .sidebar .nav a:hover { background:var(--rd-hover) !important; color:var(--ink) !important; }
:root.rd #app .sidebar .nav button.active,
:root.rd #app .sidebar .nav button[aria-current="page"] { background:var(--rd-primary) !important; color:#fff !important; }
:root.rd #app .sidebar .menu-icon-tile {
  background:transparent !important; box-shadow:none !important; border:0 !important; width:20px !important; height:20px !important; color:inherit !important;
}
:root.rd #app .sidebar .menu-icon-tile .icon { width:20px !important; height:20px !important; color:inherit !important; stroke-width:1.8; }
:root.rd #app .sidebar .count {
  background:var(--rd-hover) !important; color:var(--secondary) !important; border:0 !important; border-radius:999px !important;
  font-size:12px !important; font-weight:500 !important; min-width:22px; padding:1px 7px !important;
}
:root.rd #app .sidebar .nav .active .count,
:root.rd #app .sidebar .nav [aria-current="page"] .count { background:rgba(255,255,255,.22) !important; color:#fff !important; }
:root.rd #app .sidebar .pilot-note {
  background:var(--rd-subtle) !important; border:var(--rd-border) !important; border-radius:10px !important; color:var(--secondary) !important; box-shadow:none !important;
}
:root.rd #app .sidebar .pilot-note strong { color:var(--ink) !important; }
:root.rd #app .sidebar-bottom { border-top:1px solid var(--line) !important; }

/* ── top bar ── */
:root.rd #app .topbar {
  background:var(--rd-surface) !important; backdrop-filter:none !important; box-shadow:none !important;
  border:0 !important; border-bottom:1px solid var(--line) !important; border-radius:0 !important; color:var(--ink) !important;
}
:root.rd #app .topbar .breadcrumb,
:root.rd #app .topbar .breadcrumb-root,
:root.rd #app .topbar .updated { color:var(--muted) !important; }
:root.rd #app .topbar .breadcrumb b,
:root.rd #app .topbar .updated strong,
:root.rd #app .topbar .profile-name strong { color:var(--ink) !important; }
:root.rd #app .topbar .profile-name small { color:var(--rd-text3) !important; }
:root.rd #app .topbar .icon-btn,
:root.rd #app .topbar .ui-appearance>summary {
  background:var(--rd-surface) !important; border:var(--rd-border) !important; border-radius:8px !important; box-shadow:none !important; color:var(--ink) !important;
}
:root.rd #app .topbar .icon-btn:hover { background:var(--rd-hover) !important; }

/* ── shared controls ── */
:root.rd #app .card {
  background:var(--rd-surface) !important; border:var(--rd-border) !important; border-radius:14px !important; box-shadow:none !important; backdrop-filter:none !important;
}
:root.rd #app .btn {
  background:var(--rd-surface) !important; color:var(--ink) !important; border:var(--rd-border) !important; border-radius:8px !important;
  box-shadow:none !important; font-size:14px !important; font-weight:500 !important; background-image:none !important;
}
:root.rd #app .btn:hover { background:var(--rd-hover) !important; }
:root.rd #app .btn.primary { background:var(--rd-primary) !important; border-color:var(--rd-primary) !important; color:#fff !important; }
:root.rd #app .btn.primary:hover { background:var(--rd-primary-hover) !important; }
:root.rd #app .text-link { color:var(--rd-primary) !important; }

/* ── home page ── */
:root.rd #app .hm { gap:24px; }
:root.rd #app .hm h1,
:root.rd #app .hm .hm-title h1,
:root.rd #app .hm .hm-title h2 { font-size:24px !important; font-weight:500 !important; color:var(--ink) !important; letter-spacing:0 !important; }
:root.rd #app .hm .hm-sub,
:root.rd #app .hm .hm-subline,
:root.rd #app .hm .hm-date { color:var(--rd-text2) !important; font-size:16px !important; }
:root.rd #app .hm .hm-head,
:root.rd #app .hm .hm-toolbar { background:transparent !important; border:0 !important; box-shadow:none !important; backdrop-filter:none !important; }
:root.rd #app .hm .hm-tabs,
:root.rd #app .hm .hm-period,
:root.rd #app .hm .hm-scope {
  background:var(--rd-hover) !important; border:0 !important; border-radius:10px !important; box-shadow:none !important; padding:3px !important;
}
:root.rd #app .hm .hm-tabs button,
:root.rd #app .hm .hm-period button,
:root.rd #app .hm .hm-scope button {
  background:transparent !important; border:0 !important; box-shadow:none !important; border-radius:8px !important; color:var(--secondary) !important; font-weight:500 !important;
}
:root.rd #app .hm .hm-tabs [aria-pressed="true"],
:root.rd #app .hm .hm-tabs [aria-selected="true"],
:root.rd #app .hm .hm-period [aria-pressed="true"],
:root.rd #app .hm .hm-scope [aria-pressed="true"] { background:var(--rd-surface) !important; color:var(--ink) !important; box-shadow:0 1px 2px rgba(0,0,0,.06) !important; }

/* KPI tiles: label on top, coloured value, an icon in a soft circle on the right */
:root.rd #app .hm .hm-kpis { gap:16px !important; }
:root.rd #app .hm .hm-kpi {
  background:var(--rd-surface) !important; border:var(--rd-border) !important; border-radius:14px !important; box-shadow:none !important; padding:20px 24px !important;
}
:root.rd #app .hm .hm-kpi-label { color:var(--rd-text2) !important; font-size:14px !important; font-weight:400 !important; text-transform:none !important; letter-spacing:0 !important; }
:root.rd #app .hm .hm-kpi-value { font-size:24px !important; font-weight:500 !important; letter-spacing:0 !important; }
:root.rd #app .hm .hm-kpi-sub { color:var(--rd-text3) !important; font-size:13px !important; }
:root.rd #app .hm .hm-kpi-icon { width:40px !important; height:40px !important; border-radius:999px !important; }
:root.rd #app .hm .hm-kpi-icon .icon { width:20px !important; height:20px !important; }
:root.rd #app .hm .hm-kpi:nth-child(4n+1) .hm-kpi-icon { background:var(--rd-blue-soft) !important; color:var(--rd-primary) !important; }
:root.rd #app .hm .hm-kpi:nth-child(4n+1) .hm-kpi-value { color:var(--rd-primary) !important; }
:root.rd #app .hm .hm-kpi:nth-child(4n+2) .hm-kpi-icon { background:var(--rd-green-soft) !important; color:var(--rd-green) !important; }
:root.rd #app .hm .hm-kpi:nth-child(4n+2) .hm-kpi-value { color:var(--rd-green) !important; }
:root.rd #app .hm .hm-kpi:nth-child(4n+3) .hm-kpi-icon { background:var(--rd-purple-soft) !important; color:var(--rd-purple) !important; }
:root.rd #app .hm .hm-kpi:nth-child(4n+3) .hm-kpi-value { color:var(--rd-purple) !important; }
:root.rd #app .hm .hm-kpi:nth-child(4n+4) .hm-kpi-icon { background:var(--rd-orange-soft) !important; color:var(--rd-orange) !important; }
:root.rd #app .hm .hm-kpi:nth-child(4n+4) .hm-kpi-value { color:var(--rd-orange) !important; }

/* Cards and their rows: white card, rows on gray-50 with a 10px radius */
:root.rd #app .hm .hm-columns { gap:24px !important; }
:root.rd #app .hm .hm-col { gap:24px !important; }
:root.rd #app .hm .hm-card {
  background:var(--rd-surface) !important; border:var(--rd-border) !important; border-radius:14px !important; box-shadow:none !important; padding:24px !important; backdrop-filter:none !important;
}
:root.rd #app .hm .hm-card::before { display:none !important; }
:root.rd #app .hm .hm-card-head h2,
:root.rd #app .hm .hm-card-head h3 { font-size:16px !important; font-weight:500 !important; color:var(--ink) !important; letter-spacing:0 !important; text-transform:none !important; }
:root.rd #app .hm .hm-card-head p,
:root.rd #app .hm .hm-card-head small { color:var(--muted) !important; font-size:14px !important; }
:root.rd #app .hm .hm-count { background:var(--rd-hover) !important; color:var(--secondary) !important; border:0 !important; border-radius:999px !important; }
:root.rd #app .hm .hm-rows { gap:8px !important; }
:root.rd #app .hm .hm-row {
  background:var(--rd-subtle) !important; border:0 !important; border-radius:10px !important; padding:12px 16px !important; box-shadow:none !important;
}
:root.rd #app .hm .hm-row:hover { background:var(--rd-hover) !important; }
:root.rd #app .hm .hm-row-main,
:root.rd #app .hm .hm-row-main b,
:root.rd #app .hm .hm-row-main strong { color:var(--ink) !important; font-weight:400 !important; }
:root.rd #app .hm .hm-row-meta,
:root.rd #app .hm .hm-row-reason { color:var(--rd-text2) !important; font-size:14px !important; }
:root.rd #app .hm .hm-row-icon { background:var(--rd-surface) !important; border:var(--rd-border) !important; border-radius:999px !important; box-shadow:none !important; }
:root.rd #app .hm .hm-person,
:root.rd #app .hm .hm-project,
:root.rd #app .hm .hm-stat,
:root.rd #app .hm .hm-callout {
  background:var(--rd-subtle) !important; border:0 !important; border-radius:10px !important; box-shadow:none !important;
}
:root.rd #app .hm .hm-progress,
:root.rd #app .hm .hm-funnel-bar { background:var(--rd-hover) !important; border-radius:999px !important; }
:root.rd #app .hm .hm-progress>*,
:root.rd #app .hm .hm-funnel-bar>* { background:var(--rd-primary) !important; border-radius:999px !important; }
:root.rd #app .hm .late,
:root.rd #app .hm .hm-due.late { color:var(--rd-red) !important; }

/* leftovers of the wallpaper look: text shadows, pale captions, dark round buttons */
:root.rd #app .page *,
:root.rd #app .topbar * { text-shadow:none !important; }
:root.rd #app .hm .hm-summary,
:root.rd #app .hm .hm-stamp { color:var(--rd-text3) !important; }
:root.rd #app .hm .hm-date { color:var(--rd-text2) !important; }
:root.rd #app .page .icon-btn {
  background:var(--rd-surface) !important; color:var(--ink) !important; border:var(--rd-border) !important; border-radius:8px !important; box-shadow:none !important; backdrop-filter:none !important;
}
:root.rd #app .page .icon-btn:hover { background:var(--rd-hover) !important; }

/* sidebar width as in the reference (256px) on wide screens; the narrower desktop keeps 210px */
@media (min-width:1201px) {
  :root.rd #app .sidebar { width:256px !important; }
  :root.rd #app .main-shell { margin-left:256px !important; }
}
@media (max-width:1200px) and (min-width:901px) {
  :root.rd #app .sidebar .nav button,
  :root.rd #app .sidebar .nav a { padding:10px 12px !important; font-size:15px !important; }
}

/* ── wallpaper variables: everything drawn «on the photo» becomes light (page titles, toolbars, segmented controls) ── */
:root.rd,
:root.rd[data-portal-backdrop],
:root.rd[data-portal-backdrop] body {
  --backdrop-photo:none; --backdrop-wash:none; --backdrop-accent:var(--rd-primary);
  --backdrop-dark:var(--rd-subtle); --backdrop-dark-frame:#ffffff;
  --backdrop-nav-text:var(--rd-ink); --backdrop-nav-muted:var(--rd-text2);
  --backdrop-control:#ffffff; --backdrop-control-line:var(--rd-line-soft); --backdrop-control-active:var(--rd-primary);
}
:root.rd #app .page h1 { color:var(--rd-ink) !important; font-size:24px !important; font-weight:500 !important; letter-spacing:0 !important; }
:root.rd #app .page .page-subtitle { color:var(--rd-text2) !important; font-size:16px !important; }

/* ── deals: toolbar chips, view switch, board ── */
:root.rd #app .topbar .breadcrumb span { color:var(--muted) !important; }
:root.rd #app .deal-metric {
  background:var(--rd-surface) !important; color:var(--rd-nav) !important; border:var(--rd-border) !important; border-radius:8px !important; box-shadow:none !important; font-weight:500 !important;
}
:root.rd #app .deal-metric span { color:inherit !important; }
:root.rd #app .deal-metric strong { background:var(--rd-hover) !important; color:var(--rd-ink) !important; border-radius:999px !important; padding:0 7px !important; }
:root.rd #app .deal-metric:hover { background:var(--rd-hover) !important; }
:root.rd #app .deal-metric[aria-pressed="true"],
:root.rd #app .deal-metric.active { background:var(--rd-primary-soft) !important; border-color:var(--rd-primary-line) !important; color:var(--rd-primary) !important; }
:root.rd #app .deal-metric[aria-pressed="true"] strong,
:root.rd #app .deal-metric.active strong { background:var(--rd-primary) !important; color:#fff !important; }
/* segmented switches (Канбан / Список and the like): gray track, white active item */
:root.rd #app .segmented {
  background:var(--rd-hover) !important; border:0 !important; border-radius:10px !important; padding:3px !important; gap:2px !important; box-shadow:none !important; color:var(--rd-nav) !important;
}
:root.rd #app .segmented .btn,
:root.rd #app .segmented button { background:transparent !important; border:0 !important; box-shadow:none !important; color:var(--rd-text2) !important; border-radius:8px !important; }
:root.rd #app .segmented .btn.active,
:root.rd #app .segmented button.active,
:root.rd #app .segmented [aria-pressed="true"] { background:var(--rd-surface) !important; color:var(--rd-ink) !important; box-shadow:0 1px 2px rgba(0,0,0,.08) !important; }
/* board: light columns, quiet totals, white cards */
:root.rd #app .column-total { background:var(--rd-hover) !important; color:var(--rd-text2) !important; border:0 !important; }
:root.rd #app .sales-column-cards { background:transparent !important; }
:root.rd #app .sales-column-cards > .dp,
:root.rd #app .sales-column-cards > article,
:root.rd #app .deal-card-preview {
  background:var(--rd-surface) !important; border:var(--rd-border) !important; border-radius:14px !important; box-shadow:none !important;
}
/* board column heads keep their stage colour, but as a soft tint with dark text */
:root.rd #app .sales-stage-head.stage-arrow:not(:has(.sales-stage-editor)) { color:var(--rd-ink) !important; font-weight:500 !important; }
:root.rd #app .sales-stage-head.stage-arrow:not(:has(.sales-stage-editor))::before {
  background:color-mix(in srgb,var(--stage-arrow-fill,#c6d4ff) 26%,var(--rd-surface)) !important;
}
:root.rd #app .sales-stage-head.stage-arrow .sales-stage-label { color:var(--rd-ink) !important; }
:root.rd #app .sales-stage-head.stage-arrow b { background:var(--rd-surface) !important; color:var(--rd-nav) !important; }
:root.rd #app .sales-stage-head.stage-arrow .icon,
:root.rd #app .sales-stage-head.stage-arrow button { color:var(--rd-nav) !important; }

/* ── modals and cards (the deal card and the rest): the same buttons, headings and fields as the pages ── */
:root.rd #modal-root .modal { border-radius:14px !important; border:var(--rd-border) !important; box-shadow:0 10px 30px rgba(0,0,0,.08) !important; }
:root.rd #modal-root .btn {
  background:var(--rd-surface) !important; color:var(--rd-ink) !important; border:var(--rd-border) !important; border-radius:8px !important;
  box-shadow:none !important; font-weight:500 !important; background-image:none !important;
}
:root.rd #modal-root .btn:hover { background:var(--rd-hover) !important; }
:root.rd #modal-root .btn.primary { background:var(--rd-primary) !important; border-color:var(--rd-primary) !important; color:#fff !important; }
:root.rd #modal-root .btn.primary:hover { background:var(--rd-primary-hover) !important; }
:root.rd #modal-root .btn.danger { color:var(--rd-red) !important; }
:root.rd :is(#app,#modal-root) h2 { font-weight:500 !important; letter-spacing:0 !important; }
:root.rd :is(#app,#modal-root) h3 { font-weight:500 !important; letter-spacing:0 !important; }
:root.rd :is(#app,#modal-root) .tc-card { border:var(--rd-border) !important; border-radius:14px !important; box-shadow:none !important; }
:root.rd :is(#app,#modal-root) :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
  background:var(--rd-input) !important; border:1px solid transparent !important; border-radius:8px !important; color:var(--rd-ink) !important; font-weight:400 !important; box-shadow:none !important;
}
:root.rd :is(#app,#modal-root) :is(input:not([type=checkbox]):not([type=radio]),textarea,select):focus {
  background:var(--rd-surface) !important; border-color:var(--rd-primary) !important; box-shadow:0 0 0 3px var(--focus) !important; outline:none !important;
}
:root.rd :is(#app,#modal-root) .da-event-card { border:var(--rd-border) !important; border-radius:10px !important; box-shadow:none !important; }
:root.rd :is(#app,#modal-root) .text-link { color:var(--rd-primary) !important; }

/* ── chats: white list, light conversation, white incoming and pale-blue own messages ── */
:root.rd #app .messenger-shell { background:var(--rd-surface) !important; border:var(--rd-border) !important; border-radius:14px !important; box-shadow:none !important; overflow:hidden; }
:root.rd #app .messenger-shell .chat-sidebar {
  background:var(--rd-surface) !important; border:0 !important; border-right:1px solid var(--line) !important; box-shadow:none !important; backdrop-filter:none !important; color:var(--rd-ink) !important;
}
:root.rd #app .messenger-shell .chat-list-heading h2 { color:var(--rd-ink) !important; font-size:18px !important; }
:root.rd #app .messenger-shell .filter-select-trigger,
:root.rd #app .messenger-shell .filter-select-value { color:var(--rd-ink) !important; }
:root.rd #app .messenger-shell .filter-select-trigger { background:var(--rd-surface) !important; border:var(--rd-border) !important; border-radius:8px !important; }
:root.rd #app .messenger-shell .chat-channel { background:transparent !important; border:0 !important; border-radius:10px !important; box-shadow:none !important; color:var(--rd-ink) !important; }
:root.rd #app .messenger-shell .chat-channel:hover { background:var(--rd-hover) !important; }
:root.rd #app .messenger-shell .chat-channel.active { background:var(--rd-primary-soft) !important; }
:root.rd #app .messenger-shell .chat-list-copy strong { color:var(--rd-ink) !important; font-weight:500 !important; }
:root.rd #app .messenger-shell .chat-list-copy small,
:root.rd #app .messenger-shell .channel-stats small,
:root.rd #app .messenger-shell .directory-label,
:root.rd #app .messenger-shell .person-status span { color:var(--rd-text3) !important; }
:root.rd #app .messenger-shell .chat-list-tags i { background:var(--rd-hover) !important; color:var(--rd-text2) !important; border:0 !important; }
:root.rd #app .messenger-shell .unread-badge { background:var(--rd-primary) !important; color:#fff !important; }
:root.rd #app .messenger-shell :is(.chat-filter-chips,.chat-categories) button,
:root.rd #app .messenger-shell .chat-sidebar [aria-pressed] { color:var(--rd-text2) !important; }
:root.rd #app .messenger-shell .chat-main { background:var(--rd-subtle) !important; background-image:none !important; }
:root.rd #app .messenger-shell .chat-header { background:var(--rd-surface) !important; border-bottom:1px solid var(--line) !important; box-shadow:none !important; backdrop-filter:none !important; }
:root.rd #app .messenger-shell .chat-header h3 { color:var(--rd-ink) !important; font-weight:500 !important; }
:root.rd #app .messenger-shell .chat-header small { color:var(--rd-text3) !important; }
:root.rd #app .messenger-shell .messages { background:var(--rd-subtle) !important; background-image:none !important; }
:root.rd #app .messenger-shell .chat-day span { background:var(--rd-surface) !important; border:var(--rd-border) !important; color:var(--rd-text2) !important; }
:root.rd #app .messenger-shell .system-message { color:var(--rd-text3) !important; }
:root.rd #app .messenger-shell .bubble { background:var(--rd-surface) !important; border:var(--rd-border) !important; box-shadow:none !important; color:var(--rd-ink) !important; }
:root.rd #app .messenger-shell .own .bubble { background:var(--rd-blue-soft) !important; border-color:var(--rd-primary-line) !important; }
:root.rd #app .messenger-shell .bubble-author b { color:var(--rd-primary) !important; }
:root.rd #app .messenger-shell .message-meta { color:var(--rd-text3) !important; }
:root.rd #app .messenger-shell .quoted-message { background:var(--rd-primary-soft) !important; border-left:2px solid var(--rd-primary) !important; color:var(--rd-nav) !important; }
/* message composer: one card (no frame inside a frame), a borderless text area, ghost tool buttons */
:root.rd #app .messenger-shell .messenger-composer { background:var(--rd-surface) !important; border:1px solid var(--rd-line) !important; border-radius:12px !important; box-shadow:none !important; backdrop-filter:none !important; transition:border-color .15s, box-shadow .15s; }
:root.rd #app .messenger-shell .messenger-composer:focus-within { border-color:var(--rd-primary) !important; box-shadow:0 0 0 3px var(--focus) !important; }
:root.rd #app .messenger-shell .messenger-composer form,
:root.rd #app .messenger-shell .messenger-composer form:hover,
:root.rd #app .messenger-shell .messenger-composer form:focus-within,
:root.rd #app .messenger-shell .messenger-composer .composer { background:transparent !important; border:0 !important; border-radius:12px !important; box-shadow:none !important; outline:none !important; }
:root.rd #app .messenger-shell .messenger-composer textarea,
:root.rd #app .messenger-shell .messenger-composer textarea:focus { background:transparent !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; outline:none !important; padding:4px 2px !important; color:var(--rd-ink) !important; }
:root.rd #app .messenger-shell .messenger-composer textarea::placeholder { color:var(--rd-text3) !important; opacity:1; }
:root.rd #app .messenger-shell .message-tools :is(.icon-btn,.upload-label) { background:transparent !important; border:1px solid transparent !important; border-radius:8px !important; color:var(--rd-text3) !important; box-shadow:none !important; }
:root.rd #app .messenger-shell .message-tools :is(.icon-btn,.upload-label):hover,
:root.rd #app .messenger-shell .message-tools .icon-btn[aria-expanded="true"] { background:var(--rd-hover) !important; color:var(--rd-primary) !important; }
:root.rd #app .messenger-shell .message-form > [data-work=schedule] { background:var(--rd-surface) !important; border:1px solid var(--rd-line) !important; border-radius:8px !important; color:var(--rd-text2) !important; box-shadow:none !important; }
:root.rd #app .messenger-shell .message-form > [data-work=schedule]:hover { background:var(--rd-hover) !important; color:var(--rd-ink) !important; }
:root.rd #app .messenger-shell .external-compose,
:root.rd #app .messenger-shell .composer-help { color:var(--rd-text3) !important; background:transparent !important; }
:root.rd #app .messenger-shell .tg-bar { background:var(--rd-surface) !important; border-bottom:1px solid var(--line) !important; }
:root.rd #app .messenger-shell .chat-jump-bottom { background:var(--rd-surface) !important; color:var(--rd-ink) !important; border:var(--rd-border) !important; }

/* ── mail: folders like the main menu (dark text, blue active), white list and letter ── */
:root.rd #app .mail-work-folders nav button {
  background:transparent !important; color:var(--rd-nav) !important; border:0 !important; border-radius:10px !important; box-shadow:none !important; font-weight:500 !important;
}
:root.rd #app .mail-work-folders nav button span:not(.mail-folder-icon) { color:inherit !important; }
:root.rd #app .mail-work-folders nav button:hover { background:var(--rd-hover) !important; color:var(--rd-ink) !important; }
:root.rd #app .mail-work-folders nav button[aria-current="page"] { background:var(--rd-primary-soft) !important; color:var(--rd-primary) !important; }
:root.rd #app .mail-work-folders .mail-folder-icon { background:transparent !important; }
:root.rd #app .mail-work-folders nav button b,
:root.rd #app .mail-work-folders nav button .count { background:var(--rd-hover) !important; color:var(--rd-text2) !important; border-radius:999px !important; }

/* table headers may wrap instead of running into the next column */
:root.rd #app .page table.mobile-record-table th { white-space:normal !important; overflow-wrap:anywhere; line-height:1.3; }

/* dark theme: the logo is drawn dark grey — make it light on the dark sidebar */
:root.rd[data-theme="dark"] #app .sidebar .brand img { filter:brightness(0) invert(.93) !important; }

/* the portal has no wallpaper any more: the «Сменить фон» item leaves the «Вид» menu */
:root.rd .ui-appearance-panel .ui-backdrop-open { display:none !important; }

/* ── colour schemes (data-rd-accent on <html>, chosen in «Вид»): only the accent family changes ── */
:root.rd[data-rd-accent="violet"]:not([data-theme="dark"]) { --rd-primary:#7f22fe; --rd-primary-hover:#7008e7; --rd-primary-soft:#f5f3ff; --rd-primary-line:#ddd6ff; --rd-blue-soft:#ede9fe; --accent:#7f22fe; --blue-text:#7f22fe; --blue-soft:#ede9fe; --blue-line:#ddd6ff; --focus:#7f22fe40; }
:root.rd[data-rd-accent="violet"][data-theme="dark"] { --rd-primary:#8e51ff; --rd-primary-hover:#7f22fe; --rd-primary-soft:rgba(142,81,255,.16); --rd-primary-line:rgba(142,81,255,.4); --rd-blue-soft:rgba(142,81,255,.2); --accent:#8e51ff; --blue-text:#a684ff; --blue-soft:rgba(142,81,255,.16); --blue-line:rgba(142,81,255,.4); --focus:rgba(142,81,255,.35); }
:root.rd[data-rd-accent="emerald"]:not([data-theme="dark"]) { --rd-primary:#009966; --rd-primary-hover:#007a55; --rd-primary-soft:#ecfdf5; --rd-primary-line:#a4f4cf; --rd-blue-soft:#d0fae5; --accent:#009966; --blue-text:#007a55; --blue-soft:#d0fae5; --blue-line:#a4f4cf; --focus:#00996640; }
:root.rd[data-rd-accent="emerald"][data-theme="dark"] { --rd-primary:#009966; --rd-primary-hover:#007a55; --rd-primary-soft:rgba(0,188,125,.16); --rd-primary-line:rgba(0,188,125,.4); --rd-blue-soft:rgba(0,188,125,.2); --accent:#00bc7d; --blue-text:#00d492; --blue-soft:rgba(0,188,125,.16); --blue-line:rgba(0,188,125,.4); --focus:rgba(0,188,125,.35); }
:root.rd[data-rd-accent="orange"]:not([data-theme="dark"]) { --rd-primary:#f54900; --rd-primary-hover:#ca3500; --rd-primary-soft:#fff7ed; --rd-primary-line:#ffd6a7; --rd-blue-soft:#ffedd4; --accent:#f54900; --blue-text:#ca3500; --blue-soft:#ffedd4; --blue-line:#ffd6a7; --focus:#f5490040; }
:root.rd[data-rd-accent="orange"][data-theme="dark"] { --rd-primary:#f54900; --rd-primary-hover:#ca3500; --rd-primary-soft:rgba(255,105,0,.16); --rd-primary-line:rgba(255,105,0,.4); --rd-blue-soft:rgba(255,105,0,.2); --accent:#ff6900; --blue-text:#ff8904; --blue-soft:rgba(255,105,0,.16); --blue-line:rgba(255,105,0,.4); --focus:rgba(255,105,0,.35); }
:root.rd[data-rd-accent="rose"]:not([data-theme="dark"]) { --rd-primary:#ec003f; --rd-primary-hover:#c70036; --rd-primary-soft:#fff1f2; --rd-primary-line:#ffccd3; --rd-blue-soft:#ffe4e6; --accent:#ec003f; --blue-text:#c70036; --blue-soft:#ffe4e6; --blue-line:#ffccd3; --focus:#ec003f40; }
:root.rd[data-rd-accent="rose"][data-theme="dark"] { --rd-primary:#ec003f; --rd-primary-hover:#c70036; --rd-primary-soft:rgba(255,32,86,.16); --rd-primary-line:rgba(255,32,86,.4); --rd-blue-soft:rgba(255,32,86,.2); --accent:#ff2056; --blue-text:#ff637e; --blue-soft:rgba(255,32,86,.16); --blue-line:rgba(255,32,86,.4); --focus:rgba(255,32,86,.35); }
:root.rd[data-rd-accent="graphite"]:not([data-theme="dark"]) { --rd-primary:#1e2939; --rd-primary-hover:#101828; --rd-primary-soft:#f3f4f6; --rd-primary-line:#d1d5dc; --rd-blue-soft:#e5e7eb; --accent:#1e2939; --blue-text:#1e2939; --blue-soft:#e5e7eb; --blue-line:#d1d5dc; --focus:#1e293940; }
:root.rd[data-rd-accent="graphite"][data-theme="dark"] { --rd-primary:#4a5565; --rd-primary-hover:#364153; --rd-primary-soft:rgba(153,161,175,.16); --rd-primary-line:rgba(153,161,175,.4); --rd-blue-soft:rgba(153,161,175,.2); --accent:#6a7282; --blue-text:#d1d5dc; --blue-soft:rgba(153,161,175,.16); --blue-line:rgba(153,161,175,.4); --focus:rgba(153,161,175,.35); }

/* swatches in the «Вид» menu */
.ui-accent-options { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm); padding:4px; }
.ui-accent-options button { display:flex; flex-direction:column; align-items:center; gap:6px; min-height:58px; padding:8px 4px; border:1px solid transparent; border-radius:var(--r-sm); background:transparent; color:var(--secondary); font-size:var(--fs-xs,12px); cursor:pointer; }
.ui-accent-options button:hover { background:var(--surface); }
.ui-accent-options button[aria-pressed="true"] { background:var(--surface); border-color:var(--blue-line); color:var(--ink); }
.ui-accent-swatch { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; color:#fff; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.ui-accent-swatch .icon { width:13px; height:13px; stroke-width:3; opacity:0; }
.ui-accent-options button[aria-pressed="true"] .ui-accent-swatch .icon { opacity:1; }
.ui-accent-swatch[data-swatch="blue"] { background:#155dfc; }
.ui-accent-swatch[data-swatch="violet"] { background:#7f22fe; }
.ui-accent-swatch[data-swatch="emerald"] { background:#009966; }
.ui-accent-swatch[data-swatch="orange"] { background:#f54900; }
.ui-accent-swatch[data-swatch="rose"] { background:#ec003f; }
.ui-accent-swatch[data-swatch="graphite"] { background:#1e2939; }
:root[data-theme="dark"] .ui-accent-swatch[data-swatch="graphite"] { background:#6a7282; }

/* ── background tints of the colour schemes: the page, hovers, lines and a soft glow follow the accent; --rd-tint-mix adds that much of the scheme colour (5%) ── */
:root.rd[data-rd-accent="blue"]:not([data-theme="dark"]) { --rd-tint-color:#155dfc; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f4f7fe); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f7f9fe); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#edf2fd); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#edf2fd); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f7f9fe); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#edf2fd); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e1e8f5); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e1e8f5); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e1e8f5); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e1e8f5); --rd-glow:rgba(21,93,252,.11); --rd-glow2:rgba(81,162,255,.08); }
:root.rd[data-rd-accent="violet"]:not([data-theme="dark"]) { --rd-tint-color:#7f22fe; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f7f5ff); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#faf8ff); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f0ecfd); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f0ecfd); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#faf8ff); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f0ecfd); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e6e1f5); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e6e1f5); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e6e1f5); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e6e1f5); --rd-glow:rgba(127,34,254,.11); --rd-glow2:rgba(194,122,255,.09); }
:root.rd[data-rd-accent="emerald"]:not([data-theme="dark"]) { --rd-tint-color:#009966; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f3faf7); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f7fcfa); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e8f5ef); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e8f5ef); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f7fcfa); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e8f5ef); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#dbebe4); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#dbebe4); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#dbebe4); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#dbebe4); --rd-glow:rgba(0,153,102,.11); --rd-glow2:rgba(0,212,146,.08); }
:root.rd[data-rd-accent="orange"]:not([data-theme="dark"]) { --rd-tint-color:#f54900; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fff9f4); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fffbf8); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fcf0e6); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fcf0e6); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fffbf8); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fcf0e6); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f2e3d5); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f2e3d5); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f2e3d5); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f2e3d5); --rd-glow:rgba(245,73,0,.09); --rd-glow2:rgba(255,185,0,.08); }
:root.rd[data-rd-accent="rose"]:not([data-theme="dark"]) { --rd-tint-color:#ec003f; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fff6f7); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fffafa); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fcedf0); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fcedf0); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fffafa); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fcedf0); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f4dfe3); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f4dfe3); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f4dfe3); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f4dfe3); --rd-glow:rgba(236,0,63,.08); --rd-glow2:rgba(255,99,126,.08); }
:root.rd[data-rd-accent="graphite"]:not([data-theme="dark"]) { --rd-tint-color:#1e2939; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f3f4f6); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f8f9fa); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#eaecef); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#eaecef); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f8f9fa); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#eaecef); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e0e3e7); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e0e3e7); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e0e3e7); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e0e3e7); --rd-glow:rgba(30,41,57,.07); --rd-glow2:rgba(106,114,130,.06); }
/* the page is a little more tinted: the quiet grey text a touch darker, so captions on the page keep a 4.5:1 contrast */
:root.rd[data-rd-accent]:not([data-theme="dark"]) { --rd-text3:#5d6676; --faint:#5d6676; --muted:#626b7c; }
:root.rd[data-rd-accent="graphite"]:not([data-theme="dark"]) { --rd-text3:#566070; --faint:#566070; --muted:#5a6375; }
:root.rd[data-rd-accent="blue"][data-theme="dark"] { --rd-tint-color:#155dfc; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#090e1a); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#090e1a); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#090e1a); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#090e1a); --rd-surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#101a2d); --surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#101a2d); --header:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#101a2d); --hero-start:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#101a2d); --hero-end:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#101a2d); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1a2640); --rd-input:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1a2640); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1a2640); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1a2640); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1a2640); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1a2640); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2b3a58); --rd-glow:rgba(43,127,255,.16); --rd-glow2:rgba(81,162,255,.07); }
:root.rd[data-rd-accent="violet"][data-theme="dark"] { --rd-tint-color:#7f22fe; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0d0a18); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0d0a18); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0d0a18); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0d0a18); --rd-surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#16122a); --surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#16122a); --header:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#16122a); --hero-start:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#16122a); --hero-end:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#16122a); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#231c3d); --rd-input:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#231c3d); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#231c3d); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#231c3d); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#231c3d); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#231c3d); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#382d5c); --rd-glow:rgba(142,81,255,.18); --rd-glow2:rgba(194,122,255,.07); }
:root.rd[data-rd-accent="emerald"][data-theme="dark"] { --rd-tint-color:#009966; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#07110e); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#07110e); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#07110e); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#07110e); --rd-surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0e1c18); --surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0e1c18); --header:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0e1c18); --hero-start:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0e1c18); --hero-end:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0e1c18); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#172a24); --rd-input:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#172a24); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#172a24); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#172a24); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#172a24); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#172a24); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#26433a); --rd-glow:rgba(0,188,125,.14); --rd-glow2:rgba(0,212,146,.06); }
:root.rd[data-rd-accent="orange"][data-theme="dark"] { --rd-tint-color:#f54900; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#120d09); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#120d09); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#120d09); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#120d09); --rd-surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1c1611); --surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1c1611); --header:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1c1611); --hero-start:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1c1611); --hero-end:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1c1611); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2a2119); --rd-input:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2a2119); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2a2119); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2a2119); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2a2119); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2a2119); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#43352a); --rd-glow:rgba(255,105,0,.13); --rd-glow2:rgba(255,185,0,.05); }
:root.rd[data-rd-accent="rose"][data-theme="dark"] { --rd-tint-color:#ec003f; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#12090d); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#12090d); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#12090d); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#12090d); --rd-surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1d1116); --surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1d1116); --header:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1d1116); --hero-start:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1d1116); --hero-end:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1d1116); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2c1a21); --rd-input:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2c1a21); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2c1a21); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2c1a21); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2c1a21); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2c1a21); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#462b36); --rd-glow:rgba(255,32,86,.13); --rd-glow2:rgba(255,99,126,.06); }
:root.rd[data-rd-accent="graphite"][data-theme="dark"] { --rd-tint-color:#99a1af; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0a0c0f); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0a0c0f); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0a0c0f); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0a0c0f); --rd-surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13161b); --surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13161b); --header:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13161b); --hero-start:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13161b); --hero-end:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13161b); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1f232a); --rd-input:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1f232a); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1f232a); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1f232a); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1f232a); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1f232a); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#343a44); --rd-glow:rgba(153,161,175,.08); --rd-glow2:rgba(153,161,175,.04); }
/* the glow sits on the body; the shells above it let it through */
:root.rd body { background:radial-gradient(1100px 620px at 100% -8%, var(--rd-glow,transparent), transparent 62%), radial-gradient(900px 560px at 18% 108%, var(--rd-glow2,transparent), transparent 60%), var(--bg) !important; background-attachment:fixed !important; }
:root.rd #app,
:root.rd .main-shell,
:root.rd .page { background:transparent !important; }

/* ── rich colour schemes «Аврора», «Закат», «Океан»: a coloured gradient sidebar, gradient primary buttons and a two-colour glow ── */
:root.rd[data-rd-accent="aurora"]:not([data-theme="dark"]) { --rd-primary:#4f46e5; --rd-primary-hover:#4338ca; --rd-primary-soft:#eef2ff; --rd-primary-line:#c7d2fe; --rd-blue-soft:#e0e7ff; --accent:#4f46e5; --blue-text:#4338ca; --blue-soft:#e0e7ff; --blue-line:#c7d2fe; --focus:#4f46e540;
  --rd-grad:linear-gradient(135deg,#4f46e5 0%,#0891b2 100%); --rd-side-bg:linear-gradient(180deg,#1e1b4b 0%,#312e81 55%,#155e75 100%); --rd-side-active:#312e81;
  --rd-tint-color:#4f46e5; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f4f5ff); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f9faff); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#eceefd); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#eceefd); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f9faff); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#eceefd); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e1e3f5); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e1e3f5); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e1e3f5); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e1e3f5); --rd-glow:rgba(79,70,229,.15); --rd-glow2:rgba(8,145,178,.13); }
:root.rd[data-rd-accent="sunset"]:not([data-theme="dark"]) { --rd-primary:#e11d48; --rd-primary-hover:#be123c; --rd-primary-soft:#fff1f2; --rd-primary-line:#fecdd3; --rd-blue-soft:#ffe4e6; --accent:#e11d48; --blue-text:#be123c; --blue-soft:#ffe4e6; --blue-line:#fecdd3; --focus:#e11d4840;
  --rd-grad:linear-gradient(135deg,#f97316 0%,#e11d48 55%,#a21caf 100%); --rd-side-bg:linear-gradient(180deg,#2b1235 0%,#4c1d3f 55%,#7c2d12 100%); --rd-side-active:#9f1239;
  --rd-tint-color:#f97316; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fff8f3); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fffbf8); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fbeee6); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fbeee6); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fffbf8); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#fbeee6); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f2e1d7); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f2e1d7); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f2e1d7); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f2e1d7); --rd-glow:rgba(249,115,22,.14); --rd-glow2:rgba(162,28,175,.10); }
:root.rd[data-rd-accent="ocean"]:not([data-theme="dark"]) { --rd-primary:#0e7490; --rd-primary-hover:#155e75; --rd-primary-soft:#ecfeff; --rd-primary-line:#a5f3fc; --rd-blue-soft:#cffafe; --accent:#0e7490; --blue-text:#0e7490; --blue-soft:#cffafe; --blue-line:#a5f3fc; --focus:#0e749040;
  --rd-grad:linear-gradient(135deg,#0d9488 0%,#0369a1 100%); --rd-side-bg:linear-gradient(180deg,#082f49 0%,#0c4a6e 60%,#115e59 100%); --rd-side-active:#0c4a6e;
  --rd-tint-color:#0891b2; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f2f9fb); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f7fcfd); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e6f2f5); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e6f2f5); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#f7fcfd); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#e6f2f5); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#d8e9ee); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#d8e9ee); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#d8e9ee); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#d8e9ee); --rd-glow:rgba(8,145,178,.14); --rd-glow2:rgba(13,148,136,.11); }
:root.rd[data-rd-accent="aurora"][data-theme="dark"] { --rd-primary:#6366f1; --rd-primary-hover:#4f46e5; --rd-primary-soft:rgba(99,102,241,.16); --rd-primary-line:rgba(99,102,241,.4); --rd-blue-soft:rgba(99,102,241,.2); --accent:#6366f1; --blue-text:#a5b4fc; --blue-soft:rgba(99,102,241,.16); --blue-line:rgba(99,102,241,.4); --focus:rgba(99,102,241,.35);
  --rd-grad:linear-gradient(135deg,#6366f1 0%,#0891b2 100%); --rd-side-bg:linear-gradient(180deg,#15123a 0%,#1e1b4b 55%,#0e3440 100%);
  --rd-tint-color:#6366f1; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0a0a19); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0a0a19); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0a0a19); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0a0a19); --rd-surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13132e); --surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13132e); --header:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13132e); --hero-start:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13132e); --hero-end:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#13132e); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1e44); --rd-input:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1e44); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1e44); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1e44); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1e44); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1e44); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#33336a); --rd-glow:rgba(99,102,241,.2); --rd-glow2:rgba(8,145,178,.1); }
:root.rd[data-rd-accent="sunset"][data-theme="dark"] { --rd-primary:#f43f5e; --rd-primary-hover:#e11d48; --rd-primary-soft:rgba(244,63,94,.16); --rd-primary-line:rgba(244,63,94,.4); --rd-blue-soft:rgba(244,63,94,.2); --accent:#f43f5e; --blue-text:#fda4af; --blue-soft:rgba(244,63,94,.16); --blue-line:rgba(244,63,94,.4); --focus:rgba(244,63,94,.35);
  --rd-grad:linear-gradient(135deg,#f97316 0%,#e11d48 55%,#a21caf 100%); --rd-side-bg:linear-gradient(180deg,#1c0c22 0%,#2e1029 55%,#3b1508 100%);
  --rd-tint-color:#f43f5e; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#120a0f); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#120a0f); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#120a0f); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#120a0f); --rd-surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1218); --surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1218); --header:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1218); --hero-start:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1218); --hero-end:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#1e1218); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2d1a23); --rd-input:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2d1a23); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2d1a23); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2d1a23); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2d1a23); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#2d1a23); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#4a2a38); --rd-glow:rgba(249,115,22,.14); --rd-glow2:rgba(162,28,175,.1); }
:root.rd[data-rd-accent="ocean"][data-theme="dark"] { --rd-primary:#0891b2; --rd-primary-hover:#0e7490; --rd-primary-soft:rgba(34,211,238,.14); --rd-primary-line:rgba(34,211,238,.38); --rd-blue-soft:rgba(34,211,238,.18); --accent:#06b6d4; --blue-text:#67e8f9; --blue-soft:rgba(34,211,238,.14); --blue-line:rgba(34,211,238,.38); --focus:rgba(34,211,238,.33);
  --rd-grad:linear-gradient(135deg,#0d9488 0%,#0369a1 100%); --rd-side-bg:linear-gradient(180deg,#04192a 0%,#072c44 60%,#073433 100%);
  --rd-tint-color:#0891b2; --rd-tint-mix:5%; --bg:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#06111a); --surface-2:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#06111a); --board:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#06111a); --rd-subtle:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#06111a); --rd-surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0c1c27); --surface:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0c1c27); --header:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0c1c27); --hero-start:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0c1c27); --hero-end:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#0c1c27); --rd-hover:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#142b39); --rd-input:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#142b39); --surface-3:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#142b39); --rd-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#142b39); --line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#142b39); --hero-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#142b39); --control-line:color-mix(in srgb,var(--rd-tint-color) var(--rd-tint-mix),#224459); --rd-glow:rgba(8,145,178,.18); --rd-glow2:rgba(13,148,136,.09); }
/* the coloured sidebar: light text on the gradient; the open section is a white pill in the light theme, the gradient in the dark one */
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar { background:var(--rd-side-bg) !important; border-right-color:transparent !important; color:#fff !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .brand img { filter:brightness(0) invert(1) !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .brand small,
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .nav-label { color:rgba(255,255,255,.6) !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .nav button,
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .nav a { color:rgba(255,255,255,.84) !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .nav button:hover,
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .nav a:hover { background:rgba(255,255,255,.11) !important; color:#fff !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]):not([data-theme="dark"]) #app .sidebar .nav button.active,
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]):not([data-theme="dark"]) #app .sidebar .nav button[aria-current="page"] { background:#fff !important; color:var(--rd-side-active) !important; box-shadow:0 6px 18px rgba(0,0,0,.18) !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]):not([data-theme="dark"]) #app .sidebar .nav .active .count,
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]):not([data-theme="dark"]) #app .sidebar .nav [aria-current="page"] .count { background:var(--rd-primary-soft) !important; color:var(--rd-side-active) !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"])[data-theme="dark"] #app .sidebar .nav button.active,
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"])[data-theme="dark"] #app .sidebar .nav button[aria-current="page"] { background:var(--rd-grad) !important; color:#fff !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .count { background:rgba(255,255,255,.16) !important; color:#fff !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .pilot-note { background:rgba(255,255,255,.08) !important; border:1px solid rgba(255,255,255,.14) !important; color:rgba(255,255,255,.74) !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar .pilot-note strong { color:#fff !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .sidebar-bottom { border-top-color:rgba(255,255,255,.14) !important; }
/* the main buttons carry the scheme gradient */
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .btn.primary,
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #modal-root .btn.primary { background:var(--rd-grad) !important; border-color:transparent !important; }
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #app .btn.primary:hover,
:root.rd:is([data-rd-accent="aurora"],[data-rd-accent="sunset"],[data-rd-accent="ocean"]) #modal-root .btn.primary:hover { background:var(--rd-grad) !important; filter:brightness(1.08) saturate(1.05); }
/* swatches: the scheme gradient, with the sidebar colour in the corner */
.ui-accent-swatch[data-swatch="aurora"] { background:linear-gradient(135deg,#1e1b4b 0 38%,#4f46e5 38%,#0891b2 100%); }
.ui-accent-swatch[data-swatch="sunset"] { background:linear-gradient(135deg,#2b1235 0 38%,#f97316 38%,#e11d48 70%,#a21caf 100%); }
.ui-accent-swatch[data-swatch="ocean"] { background:linear-gradient(135deg,#082f49 0 38%,#0d9488 38%,#0369a1 100%); }
