:root {
  color-scheme: dark;
}

html[data-theme="day"] {
  color-scheme: light;
}

html[data-theme="night"] {
  color-scheme: dark;
}

:root:not([data-theme]) [data-theme-mode-toggle] {
  visibility: hidden;
}

[data-theme-mode-toggle] {
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--cc-line-strong, #3e6573);
  border-radius: var(--cc-radius-md, 6px);
  background: var(--cc-surface, #0d1a22);
  box-shadow: none;
  color: var(--cc-ink-soft, #a8bbc2);
  font: inherit;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

[data-theme-mode-toggle]:hover {
  border-color: var(--cc-accent, #2dd4bf);
  background: var(--cc-accent-soft, #0d2c31);
  color: var(--cc-accent-strong, #70ead8);
}

[data-theme-mode-toggle]:focus-visible {
  outline: 2px solid var(--cc-accent, #2dd4bf);
  outline-offset: 2px;
}

[data-theme-mode-toggle]:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

[data-theme-mode-icon] {
  display: none;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

:root:not([data-theme]) [data-theme-mode-icon="day"],
html[data-theme="night"] [data-theme-mode-icon="day"],
html[data-theme="day"] [data-theme-mode-icon="night"] {
  display: block;
}

@media (forced-colors: active) {
  [data-theme-mode-toggle] {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme-mode-toggle] {
    transition: none;
  }
}

/* Day work mode: a paper-and-ledger desk, deliberately different from the night command deck. */
html[data-theme="day"]:has(body.owner-shell-v1) {
  background: #e7edf0;
}

html[data-theme="day"] body.owner-shell-v1 {
  --cc-canvas: #e4ebee;
  --cc-surface: #f1f6f7;
  --cc-surface-muted: #e7eef0;
  --cc-surface-strong: #d5e0e4;
  --cc-ink: #162832;
  --cc-ink-soft: #526771;
  --cc-ink-faint: #778b94;
  --cc-line: #c1d0d5;
  --cc-line-strong: #829eaa;
  --cc-nav: #172a35;
  --cc-nav-hover: #213946;
  --cc-nav-active: #2a4653;
  --cc-accent: #176f7b;
  --cc-accent-strong: #0f515d;
  --cc-accent-soft: #d4e9eb;
  --cc-blue: #356b97;
  --cc-danger: #af4d52;
  --cc-warning: #94661f;
  --product-bg: var(--cc-canvas);
  --product-surface: var(--cc-surface);
  --product-surface-soft: var(--cc-surface-muted);
  --product-sidebar: var(--cc-nav);
  --product-sidebar-muted: #64757c;
  --product-text: var(--cc-ink);
  --product-muted: var(--cc-ink-soft);
  --product-line: var(--cc-line);
  --product-line-strong: var(--cc-line-strong);
  --product-accent: var(--cc-accent);
  --product-accent-soft: var(--cc-accent-soft);
  --product-red: var(--cc-danger);
  --product-amber: var(--cc-warning);
  --product-green: #2e7d61;
  --product-blue: var(--cc-blue);
  --product-violet: #5c7195;
  background: var(--cc-canvas);
  color: var(--cc-ink);
  font-family: "Microsoft YaHei UI", "Noto Sans SC", "PingFang SC", sans-serif;
}

html[data-theme="day"] body.owner-shell-v1 .shell,
html[data-theme="day"] body.owner-shell-v1 .main {
  background: var(--cc-canvas);
}

html[data-theme="day"] body.owner-shell-v1 .workspace {
  background-color: #e4ebee;
  background-image:
    linear-gradient(rgb(47 90 108 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(47 90 108 / 4%) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 39px, rgb(47 90 108 / 1.5%) 40px, transparent 41px 80px);
  background-size: 48px 48px, 48px 48px, 160px 160px;
}

html[data-theme="day"] body.owner-shell-v1 .sidebar {
  border-right-color: #2c4853;
  background: #172a35;
  box-shadow: inset -1px 0 0 rgb(173 223 225 / 8%);
  color: #dbe8eb;
}

html[data-theme="day"] body.owner-shell-v1 .brand {
  border-bottom-color: #2d4a55;
}

html[data-theme="day"] body.owner-shell-v1 .mark {
  border-color: #577784;
  background: #203e49;
  box-shadow: inset 0 1px 0 rgb(208 242 242 / 12%);
  color: #b9e6e4;
}

html[data-theme="day"] body.owner-shell-v1 .brand h1 {
  color: #f1f7f8;
}

html[data-theme="day"] body.owner-shell-v1 .brand small,
html[data-theme="day"] body.owner-shell-v1 .cc-shell-nav__group-label {
  color: #8fa5ad;
}

html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item {
  color: #c2d1d5;
}

html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item:hover {
  background: #213a46;
  color: #f2f8f8;
}

html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item[aria-current="page"],
html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item.active {
  background: #2a4653;
  box-shadow: inset 3px 0 0 #77c4c5;
  color: #effafa;
}

html[data-theme="day"] body.owner-shell-v1 .pin-button,
html[data-theme="day"] body.owner-shell-v1 .nav.pinned a {
  border-color: #34535d;
  background: #1b323d;
  color: #b9ccd0;
}

html[data-theme="day"] body.owner-shell-v1 .nav.pinned {
  border-top-color: #2d4a55;
}

html[data-theme="day"] body.owner-shell-v1 .topbar {
  border-bottom-color: #c3d2d7;
  background: rgb(242 247 248 / 94%);
  box-shadow: 0 9px 24px rgb(28 54 66 / 8%);
  backdrop-filter: blur(14px);
}

html[data-theme="day"] body.owner-shell-v1 .module-tabs-shell,
html[data-theme="day"] body.owner-shell-v1 .command,
html[data-theme="day"] body.owner-shell-v1 .segmented-control {
  border-color: #b7c9cf;
  background: #e4edef;
}

html[data-theme="day"] body.owner-shell-v1 .command {
  box-shadow: inset 3px 0 0 rgb(27 113 128 / 42%);
}

html[data-theme="day"] body.owner-shell-v1 .panel,
html[data-theme="day"] body.owner-shell-v1 .ai-panel {
  border-color: #c2d1d6;
  background: #f1f6f7;
  box-shadow: 0 12px 26px rgb(26 49 60 / 8%), inset 0 1px 0 rgb(255 255 255 / 88%);
}

html[data-theme="day"] body.owner-shell-v1 .overview-command-deck {
  position: relative;
  overflow: hidden;
  border-color: #b4c8ce;
  background: #f1f6f7;
  box-shadow: 0 15px 30px rgb(26 49 60 / 9%), inset 0 1px 0 rgb(255 255 255 / 92%);
}

html[data-theme="day"] body.owner-shell-v1 .overview-command-deck::before {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  background:
    linear-gradient(90deg, #1b7180 0 14%, transparent 14% 100%),
    linear-gradient(90deg, rgb(57 105 120 / 4%) 1px, transparent 1px);
  background-position: left top, right top;
  background-repeat: no-repeat, repeat;
  background-size: 100% 3px, 52px 52px;
  content: "";
}

html[data-theme="day"] body.owner-shell-v1 .overview-command-deck > * {
  position: relative;
  z-index: 1;
}

html[data-theme="day"] body.owner-shell-v1 .overview-focus-panel,
html[data-theme="day"] body.owner-shell-v1 .overview-change-panel,
html[data-theme="day"] body.owner-shell-v1 .overview-context-strip .overview-signal-card {
  background: transparent;
}

html[data-theme="day"] body.owner-shell-v1 .overview-change-panel {
  border-left-color: #ccd9dc;
}

html[data-theme="day"] body.owner-shell-v1 .command-panel[data-command-state="idle"] {
  display: none;
}

html[data-theme="day"] body.owner-shell-v1 .tab {
  color: #657981;
}

html[data-theme="day"] body.owner-shell-v1 .tab:hover {
  background: #ddebed;
  color: #15515d;
}

html[data-theme="day"] body.owner-shell-v1 .tab.active {
  border-color: #1b7180;
  background: #d9ebed;
  color: #15515d;
}

html[data-theme="day"] body.owner-shell-v1 .kpis,
html[data-theme="day"] body.owner-shell-v1 .overview-signal-card,
html[data-theme="day"] body.owner-shell-v1 .finance-overview-signal,
html[data-theme="day"] body.owner-shell-v1 .answer-card,
html[data-theme="day"] body.owner-shell-v1 .system-strip,
html[data-theme="day"] body.owner-shell-v1 .library-signal-strip {
  border-color: #c6d5d9;
  background: #e7eef0;
}

html[data-theme="day"] body.owner-shell-v1 .row {
  border-bottom-color: #d8e2e5;
}

html[data-theme="day"] body.owner-shell-v1 .row:hover {
  background: #e7f1f2;
}

html[data-theme="day"] body.owner-shell-v1 .hud-button,
html[data-theme="day"] body.owner-shell-v1 .mini-action,
html[data-theme="day"] body.owner-shell-v1 .workbench-actions a,
html[data-theme="day"] body.owner-shell-v1 .segmented-option,
html[data-theme="day"] body.owner-shell-v1 .status-button,
html[data-theme="day"] body.owner-shell-v1 .ai-fab {
  border-color: #adc3c9;
  background: #f0f5f6;
  color: #29414a;
}

html[data-theme="day"] body.owner-shell-v1 .hud-button:hover,
html[data-theme="day"] body.owner-shell-v1 .mini-action:hover,
html[data-theme="day"] body.owner-shell-v1 .workbench-actions a:hover,
html[data-theme="day"] body.owner-shell-v1 .segmented-option:hover,
html[data-theme="day"] body.owner-shell-v1 .status-button:hover,
html[data-theme="day"] body.owner-shell-v1 .ai-fab:hover {
  border-color: #4c8e9a;
  background: #dceef0;
  color: #124e5a;
}

html[data-theme="day"] body.owner-shell-v1 .hud-button.primary,
html[data-theme="day"] body.owner-shell-v1 .mini-action.primary {
  border-color: #1b7180;
  background: #1b7180;
  color: #f7ffff;
}

html[data-theme="day"] body.owner-shell-v1 :where(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
) {
  border-color: #b4c8ce;
  background: #f6fafb;
  color: var(--cc-ink);
}

html[data-theme="day"] [data-theme-mode-toggle] {
  border-color: #8ba6af;
  background: #e6f0f2;
  color: #174f5b;
}

html[data-theme="day"] [data-theme-mode-toggle]:hover {
  border-color: #367e8c;
  background: #d9ebed;
  color: #124e5a;
}

@media (max-width: 760px) {
  html[data-theme="day"] body.owner-shell-v1 .workspace {
    background-size: 32px 32px, 32px 32px, 104px 104px;
  }

  html[data-theme="day"] body.owner-shell-v1 .sidebar {
    border-top-color: #2c4853;
    background: #172a35;
    box-shadow: 0 -8px 20px rgb(20 37 46 / 18%);
  }

  html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item {
    color: #aebfc5;
  }

  html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item[aria-current="page"],
  html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item.active {
    background: #2a4653;
    box-shadow: inset 0 2px 0 #77c4c5;
    color: #effafa;
  }
}

/* UI structural polish r1: day is an archival desk, not a recolored night rail. */
html[data-theme="day"] body.owner-shell-v1 .sidebar {
  border-right-color: #c5d5d6;
  background: #edf3f1;
  box-shadow: inset -1px 0 0 rgb(255 255 255 / 82%), 10px 0 24px rgb(46 75 82 / 5%);
  color: #1e3941;
}

html[data-theme="day"] body.owner-shell-v1 .brand {
  border-bottom-color: #cbd9d9;
}

html[data-theme="day"] body.owner-shell-v1 .brand h1 {
  color: #17323a;
}

html[data-theme="day"] body.owner-shell-v1 .brand small,
html[data-theme="day"] body.owner-shell-v1 .cc-shell-nav__group-label {
  color: #708488;
}

html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item {
  color: #4e666c;
}

html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item:hover {
  background: #dfecea;
  color: #173f47;
}

html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item[aria-current="page"],
html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item.active {
  background: #d4e7e5;
  box-shadow: inset 3px 0 0 #a7793b;
  color: #16454c;
}

html[data-theme="day"] body.owner-shell-v1 .pin-button,
html[data-theme="day"] body.owner-shell-v1 .nav.pinned a {
  border-color: #c2d3d3;
  background: #f7faf9;
  color: #496166;
}

html[data-theme="day"] body.owner-shell-v1 .nav.pinned {
  border-top-color: #cbd9d9;
}

html[data-theme="day"] body.owner-shell-v1 .workspace {
  position: relative;
  isolation: isolate;
  background-color: #e7eff0;
  background-blend-mode: normal, multiply, normal;
}

html[data-theme="day"] body.owner-shell-v1 .module-tabs-shell {
  box-shadow: 0 5px 16px rgb(42 70 77 / 5%);
}

html[data-theme="day"] body.owner-shell-v1 .overview-command-deck {
  border-radius: 4px;
  background: rgb(247 250 249 / 94%);
  box-shadow: 0 18px 38px rgb(34 65 72 / 10%), inset 0 1px 0 rgb(255 255 255 / 96%);
}

html[data-theme="day"] body.owner-shell-v1 .overview-home-head h3,
html[data-theme="day"] body.owner-shell-v1 .panel h3 {
  letter-spacing: 0;
  font-weight: 650;
}

@media (max-width: 760px) {
  html[data-theme="day"] body.owner-shell-v1 .sidebar {
    border-top-color: #c5d5d6;
    background: rgb(237 243 241 / 97%);
    box-shadow: 0 -10px 24px rgb(34 65 72 / 11%);
  }

  html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item {
    color: #4e666c;
  }

  html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item[aria-current="page"],
  html[data-theme="day"] body.owner-shell-v1 #primaryNav .cc-shell-nav__item.active {
    background: #d4e7e5;
    box-shadow: inset 0 2px 0 #a7793b;
    color: #16454c;
  }
}

/* Day work mode keeps the same information architecture but becomes an archival desk. */
html[data-theme="day"] body.owner-shell-v1 [data-reminders-v2] .reminder-v2-overview,
html[data-theme="day"] body.owner-shell-v1 [data-reminders-v2] .reminder-v2-queue-panel {
  border-color: #bdced1;
  background:
    linear-gradient(135deg, rgb(40 117 124 / 5%), transparent 42%),
    rgb(248 251 250 / 88%);
  box-shadow: 0 18px 34px rgb(37 64 70 / 9%), inset 0 1px 0 rgb(255 255 255 / 94%);
}

html[data-theme="day"] body.owner-shell-v1 [data-reminders-v2] .reminder-v2-create-disclosure > summary {
  border-color: #b9cbce;
  background: #edf4f2;
}

html[data-theme="day"] body.owner-shell-v1 [data-reminders-v2] .reminder-v2-kpis {
  border-color: #c4d4d6;
  background: rgb(228 238 238 / 74%);
}

html[data-theme="day"] body.owner-shell-v1 [data-reminders-v2] .reminder-v2-row:hover,
html[data-theme="day"] body.owner-shell-v1 [data-reminders-v2] .reminder-v2-duplicate-group[open] > summary,
html[data-theme="day"] body.owner-shell-v1 [data-reminders-v2] .reminder-v2-duplicate-items {
  background: rgb(219 235 232 / 64%);
}

/* Formal r6 parity: the two modes own different composition rules, not only colors. */
html[data-theme="day"] body.owner-shell-v1 .workspace {
  background-color: #e7eff0;
  background-image:
    linear-gradient(180deg, rgb(231 241 240 / 18%) 0%, rgb(231 241 240 / 60%) 46%, rgb(231 241 240 / 92%) 100%),
    url("../assets/day-archive-r1.jpg"),
    linear-gradient(rgb(47 90 108 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(47 90 108 / 4%) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 39px, rgb(47 90 108 / 1.5%) 40px, transparent 41px 80px);
  background-position: center top, center top, left top, left top, left top;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat;
  background-size: cover, 100% 360px, 48px 48px, 48px 48px, 160px 160px;
  background-attachment: scroll, scroll, scroll, scroll, scroll;
}

html[data-theme="day"] body.owner-shell-v1 .module-tabs-shell,
html[data-theme="day"] body.owner-shell-v1 .panel,
html[data-theme="day"] body.owner-shell-v1 .ai-panel {
  background-color: rgb(247 250 249 / 86%);
  backdrop-filter: blur(8px) saturate(104%);
  -webkit-backdrop-filter: blur(8px) saturate(104%);
}

@media (min-width: 1024px) {
  /* Night changes navigation ownership and reserves a real control rail. */
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) {
    --cc-night-rail-width: 224px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .shell {
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    padding-right: var(--cc-night-rail-width);
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .sidebar {
    position: fixed;
    inset: 0 var(--cc-night-rail-width) auto 0;
    z-index: 30;
    display: flex;
    width: auto;
    height: 72px;
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    border-right: 0;
    border-bottom: 1px solid rgb(128 199 192 / 18%);
    background:
      linear-gradient(90deg, rgb(8 20 26 / 96%), rgb(10 28 34 / 88%) 64%, rgb(7 17 22 / 94%)),
      repeating-linear-gradient(90deg, transparent 0 72px, rgb(128 199 192 / 4%) 72px 73px);
    box-shadow: 0 10px 26px rgb(0 7 10 / 24%);
    overflow: hidden;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .brand {
    min-height: 72px;
    flex: 0 0 auto;
    padding: 0;
    border-bottom: 0;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav::-webkit-scrollbar {
    display: none;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav,
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__links {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: 3px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__group {
    display: contents;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__group-label {
    display: none;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__item {
    width: auto;
    min-width: max-content;
    height: 38px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #89a9aa;
    font-size: 11px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__item:hover,
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__item:focus-visible {
    border-color: rgb(128 199 192 / 24%);
    background: rgb(38 77 82 / 46%);
    color: #dcebe6;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__item[aria-current="page"],
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__item.active {
    border-color: rgb(128 199 192 / 34%);
    background: rgb(41 86 91 / 70%);
    box-shadow: inset 0 -2px 0 #d5ae68;
    color: #f0f8f3;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .pin-button,
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .nav.pinned {
    display: none;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding-top: 72px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .topbar {
    position: sticky;
    top: 72px;
    min-height: 68px;
    grid-template-columns: minmax(200px, 280px) minmax(320px, 1fr);
    padding: 9px 24px;
    border-bottom-color: rgb(128 199 192 / 18%);
    background: rgb(8 17 22 / 84%);
    box-shadow: 0 8px 24px rgb(0 6 9 / 18%);
    /* Keep the fixed signal rail viewport-bound; backdrop-filter would create a local containing block. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .status {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 35;
    display: flex;
    width: var(--cc-night-rail-width);
    min-width: var(--cc-night-rail-width);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 22px 18px 20px;
    border-left: 1px solid rgb(128 199 192 / 18%);
    background: rgb(7 18 23 / 86%);
    box-shadow: -12px 0 28px rgb(0 6 9 / 18%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    white-space: normal;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .status > .dot {
    position: absolute;
    top: 31px;
    right: 19px;
    margin: 0;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #clock {
    order: 0;
    margin-top: 16px;
    color: #e4eee8;
    font: 600 34px/1.05 Georgia, "Times New Roman", serif;
    letter-spacing: 0.02em;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #workspaceStatus {
    order: 1;
    max-width: none;
    padding-bottom: 13px;
    border-bottom: 1px solid rgb(128 199 192 / 17%);
    color: #789a98;
    font: 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.08em;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) [data-theme-mode-toggle],
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .owner-global-search-trigger,
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .ai-fab,
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .status-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) [data-theme-mode-toggle] {
    order: 2;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .global-search-mount {
    order: 3;
    display: flex;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .ai-fab {
    order: 4;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .status-button {
    order: 5;
    margin-top: auto;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .workspace {
    min-width: 0;
    gap: 14px;
    padding: 24px 26px 30px;
    background-color: #0b161d;
    background-image:
      linear-gradient(180deg, rgb(5 13 18 / 24%) 0%, rgb(5 13 18 / 50%) 52%, rgb(5 13 18 / 76%) 100%),
      url("../assets/night-cosmos-r1.jpg"),
      linear-gradient(rgb(125 171 183 / 3%) 1px, transparent 1px),
      linear-gradient(90deg, rgb(125 171 183 / 3%) 1px, transparent 1px),
      repeating-linear-gradient(135deg, transparent 0 31px, rgb(125 171 183 / 1.5%) 32px, transparent 33px 64px);
    background-position: center top, center top, left top, left top, left top;
    background-repeat: no-repeat, no-repeat, repeat, repeat, repeat;
    background-size: cover, cover, 48px 48px, 48px 48px, 128px 128px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .module-tabs-shell {
    border-color: rgb(128 199 192 / 22%);
    background: rgb(13 31 38 / 74%);
    box-shadow: 0 10px 28px rgb(0 6 9 / 18%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

@media (min-width: 1024px) {
  html[data-theme="night"] body.owner-shell-v1.ai-open .shell {
    padding-right: 380px;
  }
}

@media (max-width: 760px) {
  html[data-theme="day"] body.owner-shell-v1 .workspace {
    background-size: cover, auto 300px, 32px 32px, 32px 32px, 104px 104px;
  }

  html[data-theme="night"] body.owner-shell-v1 .workspace {
    background-size: cover, auto 610px, 32px 32px, 32px 32px, 96px 96px;
  }
}
