:root {
  color-scheme: dark;
  --reasoned-topbar-height: 61px;
  --bg: #0a0a0f;
  --surface: #12121a;
  --line: #2a2a3a;
  --text: #f0f0f5;
  --muted: #8888a8;
  --hover: #1c1c28;
  --accent: #00c281;
  --danger: #ff5c7a;
  --font: Inter, ui-sans-serif, system-ui, sans-serif;
  --rt-text-primary: var(--text);
  --rt-text-secondary: var(--muted);
  --rt-border: var(--line);
  --rt-green: var(--accent);
  --color-text-primary: var(--text);
  --color-text-secondary: var(--muted);
  --color-border: var(--line);
  --color-primary: var(--accent);
  --rt-bg-card: var(--surface);
  --color-surface: var(--surface);
  --reasoned-bg: var(--bg);
  --reasoned-surface: var(--surface);
  --reasoned-surface-elevated: var(--surface);
  --reasoned-surface-strong: var(--surface);
  --reasoned-border: var(--line);
  --reasoned-text: var(--text);
  --reasoned-text-secondary: var(--muted);
  --reasoned-text-muted: var(--muted);
  --reasoned-primary: var(--accent);
  --reasoned-accent: var(--accent);
  --reasoned-shadow-card: 0 18px 48px rgba(0, 0, 0, 0.45);
  --txt: var(--text);
  --txt2: var(--muted);
  --surf: var(--surface);
  --border: var(--line);
  --acc: var(--accent);
}
html[data-crm-theme="light"] {
  color-scheme: light;
  --reasoned-shadow-card: 0 12px 32px rgba(0, 0, 0, 0.12);
  --bg: #f3f4f8;
  --surface: #ffffff;
  --line: #d8dae6;
  --text: #12121a;
  --muted: #5a5a72;
  --hover: #eceef5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); }
a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html, body { height: 100%; }
body { overflow: hidden; }
.app { display: grid; grid-template-columns: 240px 1fr; height: 100dvh; min-height: 0; overflow: hidden; }
.side { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; background: var(--surface); border-right: 1px solid var(--line); padding: 0; }
.side-main { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 14px; }
.side nav { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.side-account { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.side nav a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.side nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side nav a:hover, .side nav a.active { background: var(--hover); }
.side nav a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.main { min-width: 0; display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
.search { position: relative; flex: 1 1 220px; min-width: 0; }
.live { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 4; max-height: min(420px, 60vh); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 0 10px; }
.live[hidden] { display: none; }
.live h2 { margin: 10px 12px 4px; font-size: 12px; }
.live a, .live p { display: block; margin: 0; padding: 6px 12px; color: var(--text); text-decoration: none; }
#mail-live:not(:has(a)) { padding: 0; }
.live a:hover { background: var(--hover); }
.by, a .by, .live a .by { color: #8a8a9e; }
html[data-crm-theme="light"] .by,
html[data-crm-theme="light"] a .by,
html[data-crm-theme="light"] .live a .by { color: #5a5a72; }
#by-wrap { flex: none; }
#by-wrap[hidden] { display: none; }
#by { width: 220px; }
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--reasoned-topbar-height);
  min-height: var(--reasoned-topbar-height);
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.side reasoned-sidebar-brand {
  display: block;
  height: var(--reasoned-topbar-height);
  min-height: var(--reasoned-topbar-height);
  flex: none;
}
#theme {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
#theme svg { display: none; }
#theme .theme-moon { display: block; }
html[data-crm-theme="light"] #theme .theme-moon { display: none; }
html[data-crm-theme="light"] #theme .theme-sun { display: block; }
.search input, input, select, textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.view { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0; background: var(--surface); }
.pane { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 16px; margin: 18px 0 8px; }
.muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card strong { display: block; font-size: 22px; }
.target-bar { height: 6px; margin: 8px 0 4px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.target-bar > span { display: block; height: 100%; background: var(--accent); }
.stage-pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 420px; }
.stage-pipe li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.stage-pipe li:last-child { border-bottom: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:hover td { background: var(--hover); }
button, .btn { background: var(--accent); color: #04140e; border: 0; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
button.ghost, .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button:hover { filter: brightness(1.08); }
.err { color: var(--danger); }
.board { display: grid; grid-template-columns: repeat(6, minmax(180px, 1fr)); gap: 10px; overflow-x: auto; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 120px; }
.deal { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-top: 8px; }
.form, .chase, .log { display: grid; gap: 8px; max-width: 640px; margin-top: 10px; }
input[type="checkbox"] { width: auto; }
#bulk-field, #bulk-value select, #bulk-value input { width: 160px; }
#bulk-value { display: inline-flex; min-width: 0; }
.toolbar-bulk { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.cal-toolbar .grow { flex: 1 1 auto; min-width: 0; }
.cal-toolbar .cal-view { margin: 0; min-width: 180px; max-width: 280px; }
.cal-toolbar .cal-view select { width: 100%; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
}
.cal-dow { color: var(--muted); font-size: 12px; text-align: center; padding: 4px 0; }
.cal-day {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}
.cal-day:hover { background: var(--hover); }
.cal-day.out { opacity: 0.35; pointer-events: none; }
.cal-day.today { border-color: var(--accent); }
.cal-day.selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-day-num { font-size: 12px; color: var(--muted); }
.cal-chip {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  border-radius: 6px;
  padding: 2px 5px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.cal-chip.mark { background: color-mix(in srgb, var(--muted) 28%, transparent); }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.cal-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  vertical-align: middle;
}
.cal-legend .mark::before { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.cal-day-panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 8px; }
@media (max-width: 720px) {
  .cal-day { min-height: 64px; padding: 4px; }
  .cal-chip { display: none; }
  .cal-day.has-items .cal-day-num::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: middle;
  }
}
.mail-folders-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mail-folders-head .mail-box { margin: 0; flex: 1 1 auto; }
.mail-folders-toggle,
.mail-folders-scrim,
.mail-folders-close { display: none; }
.field { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.checks { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks legend { padding: 0 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; }
.checks input { width: auto; }
.colleague-checks { max-width: 640px; }
.colleague-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  margin: 0 0 8px;
  padding-right: 4px;
}
.colleague-list label { display: flex; }
.reminders li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.mail-find { flex: none; width: 100%; max-width: none; margin: 8px 0 0; min-width: 0; }
.mail-list-bar,
.mail-list-search,
.mail-fab,
.mail-read-bar,
.mail-reply-end { display: none; }
.mail-folder-name { margin: 0; font-size: 18px; font-weight: 600; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.mail-item-who { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item-top time { flex: none; color: var(--muted); font-size: 12px; }
.mail-item-subject { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-read-meta h2 { margin: 0 0 8px; }
.mail-more-menu { display: none; }
.compose-copy { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.compose-copy summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.compose-from { margin: 0; }
.compose-template-hint { margin: -4px 0 0; font-size: 12px; }
.mail {
  --mail-list-w: 32%;
  display: grid;
  grid-template-columns: 188px var(--mail-list-w) 6px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
}
.mail-box { margin: 0 0 8px; font-size: 12px; line-height: 1.3; word-break: break-all; }
.mail-compose {
  background: var(--accent) !important;
  color: #04140e !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-weight: 600 !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 0 8px !important;
}
.mail-compose:hover { filter: brightness(1.08) !important; background: var(--accent) !important; }
.mail-folders { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-right: 1px solid var(--line); min-height: 0; overflow: auto; }
.mail-list { overflow: auto; min-height: 0; min-width: 0; }
.mail-split {
  width: 6px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--line);
  cursor: col-resize;
  touch-action: none;
}
.mail-split:hover,
.mail-split:focus-visible { background: var(--accent); }
.mail-read { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; padding: 14px; }
.mail-read header { flex: none; }
.mail-read h2 { margin: 0 0 8px; }
.mail-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.mail-folders button,
.mail-list .mail-item { background: transparent; color: var(--text); border: 0; border-radius: 8px; padding: 8px 10px; font-weight: 500; text-align: left; }
.mail-folders button:hover,
.mail-list .mail-item:hover { background: var(--hover); filter: none; }
.mail-folders button.on,
.mail-folders button.on:hover,
.mail-list .mail-item.on,
.mail-list .mail-item.on:hover { background: var(--line); filter: none; }
.mail-item { display: flex; flex-direction: column; gap: 2px; width: 100%; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.mail-msg-actions { margin: 8px 0 0; }
.mail-msg-actions button {
  background: var(--accent);
  color: #04140e;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 600;
  width: auto;
}
.mail-msg-actions button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.compose { display: grid; gap: 8px; max-width: none; }
.compose-top { justify-content: space-between; }
.compose-tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.compose-tools button, .compose-tools select {
  width: auto;
  padding: 4px 8px;
  background: var(--hover);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.compose-color { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.compose-color input { width: 28px; height: 24px; padding: 0; border: 1px solid var(--line); background: var(--bg); }
.compose-emoji { display: flex; flex-wrap: wrap; gap: 2px; }
.compose-emoji[hidden] { display: none; }
.compose-emoji button { width: auto; padding: 4px; background: var(--hover); border: 0; }
.compose-editor {
  min-height: 220px;
  max-height: min(50vh, 420px);
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.compose-editor img { max-width: 100%; height: auto; }
.mail-text { white-space: pre-wrap; word-break: break-word; margin: 0; font: inherit; }
.mail-frame { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 8px; display: block; }
.mail.logs { grid-template-columns: 188px minmax(0, 1fr); }
.mail.logs .mail-read,
.mail.logs .mail-split { display: none; }
.view.mail-view > .mail { flex: 1 1 auto; min-height: 0; }
input[type="datetime-local"],
input[type="date"] {
  min-height: 44px;
  color-scheme: dark;
}
html[data-crm-theme="light"] input[type="datetime-local"],
html[data-crm-theme="light"] input[type="date"] { color-scheme: light; }
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
  .side { height: auto; max-height: none; overflow: visible; min-height: 0; }
  .side-main { padding: 6px 8px 8px; }
  .side nav { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; gap: 2px; flex: none; }
  .side nav a { flex: 1 1 0; justify-content: center; gap: 0; padding: 8px 0; min-width: 0; }
  .side nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .side-account { padding-top: 8px; }
  .top { gap: 8px; padding: 0 12px; }
  .search { flex: 1 1 auto; min-width: 0; }
  #by-wrap { flex: 0 0 104px; min-width: 0; }
  #by { width: 100%; }
  .pane { padding: 12px; }
  .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
  }
  .toolbar > button,
  .toolbar > .btn,
  .toolbar > label.btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .toolbar-primary { grid-column: 1 / -1; }
  .toolbar-bulk {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .toolbar-bulk #bulk-apply { grid-column: 1 / -1; width: 100%; }
  #bulk-field,
  #bulk-value,
  #bulk-value select,
  #bulk-value input { width: 100%; }
  .table-scroll { margin: 0 -12px; width: calc(100% + 24px); padding: 0 12px; }
  .table-scroll table { min-width: 520px; }
  .checks { gap: 6px 10px; }
  .toolbar > label.btn { display: flex; }
  .mail {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .mail.mode-read,
  .mail.mode-compose { grid-template-rows: minmax(0, 1fr); }
  .mail-split { display: none; }
  .mail-list-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    grid-column: 1;
    grid-row: 1;
  }
  .mail-list-search {
    display: block;
    padding: 8px 16px 12px;
    border-bottom: 1px solid var(--line);
    grid-column: 1;
    grid-row: 2;
  }
  .mail-list-search[hidden] { display: none; }
  .mail.mode-read .mail-list-bar,
  .mail.mode-read .mail-list-search,
  .mail.mode-read .mail-list,
  .mail.mode-read .mail-fab,
  .mail.mode-compose .mail-list-bar,
  .mail.mode-compose .mail-list-search,
  .mail.mode-compose .mail-list,
  .mail.mode-compose .mail-fab { display: none; }
  .mail.mode-list .mail-read { display: none; }
  .mail-folders-toggle,
  .mail-list-bar .ghost,
  .mail-read-bar button,
  .mail-fab,
  #mail-send,
  #mail-compose-cancel,
  .mail-reply-end button {
    min-width: 48px;
    min-height: 48px;
  }
  .mail > .mail-folders-scrim,
  .mail > .mail-folders {
    grid-column: 1;
    grid-row: 1 / span 3;
  }
  .mail-folders-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    writing-mode: horizontal-tb;
    width: auto;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--hover) !important;
    color: var(--text) !important;
    font-weight: 600;
  }
  .mail-folders-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 6;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
  }
  .mail-folders-scrim[hidden] { display: none; }
  .mail-folders {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 86vw);
    z-index: 7;
    transform: translateX(-110%);
    background: var(--surface);
    border-right: 1px solid var(--line);
    box-shadow: var(--reasoned-shadow-card);
    transition: transform 0.18s ease;
    padding: 16px;
  }
  .mail.folders-open .mail-folders { transform: none; }
  .mail-folders-close { display: inline-flex; width: auto; flex: none; padding: 8px 12px; }
  .mail-folders .mail-compose { display: none; }
  .mail-list {
    grid-column: 1;
    grid-row: 2 / span 2;
    max-height: none;
    border-right: 0;
    padding: 0 0 calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .mail-list-search:not([hidden]) ~ .mail-list { grid-row: 3; }
  .mail-item {
    min-height: 88px;
    padding: 12px 16px;
    gap: 4px;
  }
  .mail-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 4;
    width: auto;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 0;
    background: var(--accent) !important;
    color: #04140e !important;
    font-weight: 700;
    box-shadow: var(--reasoned-shadow-card);
  }
  .mail-read {
    grid-column: 1;
    grid-row: 1 / span 3;
    padding: 0;
  }
  .mail-read-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
  }
  .mail-read-kicker { flex: 1 1 auto; min-width: 0; text-align: center; font-weight: 650; }
  .mail-more { position: relative; flex: none; }
  .mail-more-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 5;
    margin: 0;
    min-width: 10rem;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--reasoned-shadow-card);
  }
  .mail-more-menu[hidden] { display: none; }
  .mail-more-menu button { width: 100%; }
  .mail-read-meta,
  .mail-body { padding: 16px; }
  .mail-msg-actions { display: none; }
  .mail-reply-end { display: block; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .mail-reply-end button { width: 100%; }
  .mail.mode-compose .compose {
    height: 100%;
    min-height: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    align-content: start;
  }
  .mail.mode-compose .compose-editor {
    min-height: 8rem;
    max-height: none;
  }
  .mail.logs { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .mail.logs .mail-list { grid-row: 2; border-bottom: 0; padding-bottom: 16px; }
  .mail.logs .mail-read { display: none; }
}
@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  .mail-folders { transition: none; }
}
html[data-crm-theme="light"] .rt-central-signup .finput,
html[data-crm-theme="light"] .rt-central-signup .su-university-trigger,
html[data-crm-theme="light"] .rt-profile-completion .finput,
html[data-crm-theme="light"] .rt-profile-completion .su-university-trigger,
html[data-crm-theme="light"] .rt-profile-completion .su-phone-group .su-country-trigger,
html[data-crm-theme="light"] .rt-oauth-provider-btn,
html[data-crm-theme="light"] .su-university-results {
  background: var(--surface);
}
html[data-crm-theme="light"] .rt-oauth-provider-btn:hover:not(:disabled) {
  background: var(--hover);
  border-color: var(--line);
}
html[data-crm-theme="light"] .su-country-modal-card {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
html[data-crm-theme="light"] .su-country-modal-head h3,
html[data-crm-theme="light"] .su-country-option,
html[data-crm-theme="light"] .su-university-option {
  color: var(--text);
}
html[data-crm-theme="light"] .su-country-close,
html[data-crm-theme="light"] .su-university-option-meta,
html[data-crm-theme="light"] .su-country-empty {
  color: var(--muted);
}
html[data-crm-theme="light"] .rt-profile-completion select.reasoned-field__control,
html[data-crm-theme="light"] .rt-profile-completion select.reasoned-field__control option {
  color-scheme: light;
}
