/* Space uses the same paper, ink and accent colors as its planner domain. */
:root {
  color-scheme: light;
  --top: #f1ece0;
  --rail: #f1ece0;
  --sidebar: #f1ece0;
  --surface: #fbf8f1;
  --raised: #fffcf6;
  --hover: #e8e1d1;
  --text: #2b2a26;
  --muted: #6e6a60;
  --border: #d9d2c2;
  --control-border: #a39e91;
  --input-border: #827B6D;
  --selected: #e2d6c2;
  --accent: #8a5a2b;
  --on-accent: #ffffff;
  --link: #8a5a2b;
  --focus-ring: #8a5a2b33;
  --danger: #b8432f;
  --success: #5c8a3a;
  --warning: #80601d;
  --warning-bg: #f5ecd5;
  --code: #8c4059;
  --scrim: #2b2a2655;
  --shadow: #2b2a2626;
  --scroll-thumb: #a39e91;
  font-family: var(--ui-font);
}
:root[data-space-brand="biz"] {
  --top: #eaeef3;
  --rail: #eaeef3;
  --sidebar: #eaeef3;
  --surface: #f6f8fa;
  --raised: #ffffff;
  --hover: #dfe5ec;
  --text: #242a33;
  --muted: #5d6774;
  --border: #cfd7e0;
  --control-border: #95a0ae;
  --selected: #d8e2ec;
  --accent: #31597f;
  --link: #31597f;
  --focus-ring: #31597f33;
  --danger: #b23a32;
  --success: #4c7f5d;
  --scrim: #182a3c55;
  --shadow: #182a3c26;
  --scroll-thumb: #95a0ae;
}
/* Baseline dark palette; day-theme.css supplies the DDS CI palette for biz. */
:root[data-space-brand][data-theme="dark"] {
  color-scheme: dark;
  --top: #27241f;
  --rail: #27241f;
  --sidebar: #27241f;
  --surface: #1f1d19;
  --raised: #2a2722;
  --hover: #332f28;
  --text: #ece6d8;
  --muted: #b5ad9c;
  --border: #3c372f;
  --control-border: #7f7868;
  --input-border: #A19886;
  --selected: #4a3d2c;
  --accent: #d0a06a;
  --on-accent: #1f1d19;
  --link: #d0a06a;
  --focus-ring: #d0a06a40;
  --danger: #e0705c;
  --success: #8fbf6a;
  --warning: #e6c580;
  --warning-bg: #3b3322;
  --code: #e6adc0;
  --scrim: #12110fb3;
  --shadow: #12110f66;
  --scroll-thumb: #7f7868;
}

/* Own inherits the same role-based type and spacing as day from space.css.
 * Keep the paper palette above, channel drawings, unread weights and mobile
 * layout rules. Only navigation glyph geometry needs a brand-scoped override. */
:root[data-space-brand="paper"] .rail .icon { width:24px;height:24px;stroke-width:1.375; }
:root[data-space-brand="paper"] .directory-filters label { min-width:0;max-width:100%; }
:root[data-space-brand="paper"] .directory-filters select { box-sizing:border-box;min-height:36px;min-width:0;padding:6px 10px;font:inherit;max-width:100%; }
@media (max-width:760px), (pointer:coarse) {
  :root[data-space-brand="paper"] .directory-filters select { min-height:44px; }
}
@media (max-width:760px) {
  :root[data-space-brand="paper"] .side-find input { font-size:16px; }
}
