/* R9 art direction: preserve the proven dual-mode shell and deepen its material system. */

body.owner-shell-v1 {
  --r9-teal: #2f7773;
  --r9-teal-bright: #79c9bd;
  --r9-brass: #b48645;
  --r9-coral: #c96558;
  --r9-ocean: #367fa0;
  --r9-focus: #2b7e84;
  --r9-radius: 4px;
  --r9-day-glass: rgb(255 254 248 / 82%);
  --r9-day-glass-soft: rgb(239 244 239 / 76%);
  --r9-day-line: rgb(37 79 77 / 22%);
  --r9-day-line-strong: rgb(37 79 77 / 36%);
  --r9-night-glass: rgb(7 27 35 / 72%);
  --r9-night-glass-soft: rgb(12 40 47 / 66%);
  --r9-night-line: rgb(126 196 189 / 22%);
  --r9-night-line-strong: rgb(126 196 189 / 38%);
  --r9-shadow-day: 0 1px 0 rgb(255 255 255 / 80%), 0 14px 34px rgb(22 57 53 / 11%), 0 3px 9px rgb(22 57 53 / 7%);
  --r9-shadow-night: inset 0 1px rgb(255 255 255 / 4%), 0 18px 40px rgb(0 5 8 / 34%), 0 4px 12px rgb(0 5 8 / 22%);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

body.owner-shell-v1:not(.auth-required) :is(button, input, select, textarea, .tab, .mini-action, .hud-button) {
  letter-spacing: 0;
}

body.owner-shell-v1:not(.auth-required) :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--r9-focus);
  outline-offset: 2px;
}

body.owner-shell-v1:not(.auth-required) :is(.panel, .module-tabs-shell, .module-canvas-toolbar, .command, .ai-panel) {
  border-radius: var(--r9-radius);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
}

body.owner-shell-v1:not(.auth-required) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea
) {
  min-height: 40px;
  border-radius: 3px;
}

/* Day is a light archival desk: photographic depth, translucent paper, quiet teal navigation. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) {
  --cc-canvas: #dfe8e3;
  --cc-surface: var(--r9-day-glass);
  --cc-surface-muted: var(--r9-day-glass-soft);
  --cc-surface-strong: rgb(255 254 249 / 91%);
  --cc-ink: #19363a;
  --cc-ink-soft: #5e7272;
  --cc-ink-faint: #7e918e;
  --cc-line: var(--r9-day-line);
  --cc-line-strong: var(--r9-day-line-strong);
  --cc-nav: rgb(225 234 229 / 91%);
  --cc-nav-hover: rgb(255 255 251 / 60%);
  --cc-nav-active: #1f5656;
  --cc-accent: var(--r9-teal);
  --cc-accent-strong: #194f50;
  --cc-accent-soft: rgb(215 233 226 / 86%);
  --cc-danger: var(--r9-coral);
  --cc-warning: var(--r9-brass);
  --r9-control-bg: linear-gradient(180deg, rgb(255 255 252 / 96%), rgb(247 249 244 / 90%));
  --r9-control-bg-hover: linear-gradient(180deg, rgb(255 255 254 / 100%), rgb(250 251 247 / 96%));
  --r9-control-edge: rgb(43 82 78 / 31%);
  --r9-control-label: #617975;
  --r9-control-placeholder: #91a29f;
  --r9-control-ring: rgb(47 119 115 / 16%);
  --r9-control-shadow: inset 0 1px 0 rgb(255 255 255 / 92%), inset 0 -1px 0 rgb(34 74 68 / 4%), 0 2px 5px rgb(28 61 57 / 5%);
  --r9-button-bg: linear-gradient(180deg, rgb(250 252 249 / 92%), rgb(231 239 235 / 88%));
  min-height: 100dvh;
  background-color: #dfe8e3;
  background-image:
    linear-gradient(115deg, rgb(232 239 234 / 58%) 0%, rgb(232 239 234 / 36%) 48%, rgb(214 226 220 / 48%) 100%),
    url("../assets/day-archive-r1.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--cc-ink);
}

/* R9 overview art: visible archival patterns and a background that participates in the layout. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-command-deck {
  background: rgb(250 250 244 / 84%) !important;
  box-shadow: 0 26px 52px rgb(3 16 20 / 15%), inset 0 1px rgb(255 255 255 / 66%) !important;
  backdrop-filter: blur(20px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(108%) !important;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-command-deck > .overview-home-head {
  border-bottom: 1px solid rgb(224 240 234 / 17%);
  background: linear-gradient(116deg, rgb(14 52 55 / 97%), rgb(27 82 79 / 92%));
  color: #f5faf6;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-home-head :is(h3, p, span, small) {
  color: inherit;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-primary-actions a {
  border-color: rgb(232 245 239 / 22%);
  background: rgb(255 255 255 / 8%);
  color: #f4faf6;
  box-shadow: none;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-command-deck > .overview-context-strip {
  background: rgb(237 242 237 / 72%);
  backdrop-filter: blur(18px) saturate(106%);
  -webkit-backdrop-filter: blur(18px) saturate(106%);
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel {
  position: relative;
  overflow: hidden;
  border-color: rgb(74 108 102 / 30%);
  border-top-color: var(--overview-r7-widget-accent);
  background-color: rgb(250 249 243 / 78%);
  background-image: linear-gradient(112deg, rgb(255 255 251 / 20%), transparent 54%);
  box-shadow: inset 0 1px rgb(255 255 255 / 72%), 0 15px 31px rgb(37 70 67 / 10%);
  backdrop-filter: blur(18px) saturate(106%);
  -webkit-backdrop-filter: blur(18px) saturate(106%);
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel::after,
html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 58px;
  height: 24px;
  border-left: 1px solid color-mix(in srgb, var(--overview-r7-widget-accent) 30%, transparent);
  background: radial-gradient(ellipse 44px 20px at 100% 0, transparent 68%, color-mix(in srgb, var(--overview-r7-widget-accent) 24%, transparent) 69% 71%, transparent 72%);
  pointer-events: none;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-canvas-grid::before {
  background: linear-gradient(90deg, rgb(246 246 239 / 48%), rgb(228 237 232 / 18%));
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-command-deck {
  background: rgb(5 25 32 / 70%) !important;
  box-shadow: 0 28px 58px rgb(0 4 7 / 31%), inset 0 1px rgb(173 226 218 / 5%) !important;
  backdrop-filter: blur(18px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(115%) !important;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-command-deck > .overview-home-head {
  background: linear-gradient(116deg, rgb(5 25 32 / 82%), rgb(18 62 65 / 68%));
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-command-deck > .overview-context-strip {
  background: rgb(4 21 28 / 62%);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel {
  position: relative;
  overflow: hidden;
  border-color: rgb(126 196 189 / 25%);
  border-top-color: var(--overview-r7-widget-accent);
  background-color: rgb(5 27 34 / 66%);
  background-image: linear-gradient(112deg, rgb(110 196 183 / 3%), transparent 54%);
  box-shadow: inset 0 1px rgb(226 255 249 / 5%), 0 18px 38px rgb(0 4 7 / 25%);
  backdrop-filter: blur(17px) saturate(114%);
  -webkit-backdrop-filter: blur(17px) saturate(114%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-canvas-toolbar {
  background: rgb(5 25 32 / 70%);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

@media (max-width: 760px) {
  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel {
    background-color: rgb(250 249 243 / 72%);
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel {
    background-color: rgb(5 27 34 / 61%);
  }
}

@media (max-width: 760px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage .library-owner-v1 .library-entity-workspace .vault-library-list-panel {
    min-height: 0 !important;
    height: auto !important;
    max-height: min(68vh, 760px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) :is(.shell, .main) {
  background: transparent;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .workspace {
  background-color: rgb(222 232 227 / 34%);
  background-image:
    linear-gradient(rgb(37 86 83 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(37 86 83 / 4%) 1px, transparent 1px);
  background-size: 48px 48px;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar {
  border-color: rgb(39 78 75 / 22%);
  background:
    linear-gradient(180deg, rgb(255 255 251 / 76%), rgb(225 235 230 / 83%)),
    url("../assets/day-archive-r1.jpg") left center / auto 100% no-repeat;
  box-shadow: inset -1px 0 rgb(255 255 255 / 76%), 12px 0 34px rgb(24 62 59 / 10%);
  backdrop-filter: blur(22px) saturate(104%);
  -webkit-backdrop-filter: blur(22px) saturate(104%);
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .topbar {
  border-color: var(--r9-day-line);
  background: rgb(252 252 247 / 82%);
  box-shadow: 0 10px 28px rgb(22 57 53 / 9%);
  backdrop-filter: blur(22px) saturate(108%);
  -webkit-backdrop-filter: blur(22px) saturate(108%);
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .command {
  border-color: var(--r9-day-line-strong);
  background: rgb(255 255 251 / 70%);
  box-shadow: inset 3px 0 rgb(180 134 69 / 66%);
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) :is(.module-tabs-shell, .module-canvas-toolbar, .panel) {
  border-color: var(--r9-day-line);
  background: var(--r9-day-glass);
  box-shadow: var(--r9-shadow-day);
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar {
  border-left: 3px solid color-mix(in srgb, var(--r9-teal) 72%, var(--r9-brass));
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__item[aria-current="page"],
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__item.active {
  border-color: rgb(31 86 86 / 34%);
  background: #1f5656;
  box-shadow: inset 3px 0 var(--r9-brass), 0 8px 18px rgb(24 68 66 / 14%);
  color: #fffdf7;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .formal-workbench-intro {
  min-height: 150px;
  padding: 22px 28px;
  border-color: rgb(39 80 78 / 24%);
  background-color: rgb(247 247 240 / 62%);
  background-image:
      linear-gradient(96deg, rgb(248 248 241 / 98%) 0%, rgb(248 248 241 / 98%) 38%, rgb(248 248 241 / 90%) 54%, rgb(248 248 241 / 70%) 68%, rgb(248 248 241 / 40%) 82%, rgb(248 248 241 / 12%) 94%, transparent 100%),
    url("../assets/day-archive-r1.jpg");
  box-shadow: var(--r9-shadow-day);
  backdrop-filter: blur(5px) saturate(106%);
  -webkit-backdrop-filter: blur(5px) saturate(106%);
}

/* Night returns to the proven command deck: horizontal icon rail, visible cosmos, signal console. */
html[data-theme="night"] body.owner-shell-v1:not(.auth-required) {
  --cc-canvas: #061118;
  --cc-surface: var(--r9-night-glass);
  --cc-surface-muted: var(--r9-night-glass-soft);
  --cc-surface-strong: rgb(12 40 48 / 86%);
  --cc-ink: #dce9e3;
  --cc-ink-soft: #86a3a0;
  --cc-ink-faint: #668483;
  --cc-line: var(--r9-night-line);
  --cc-line-strong: var(--r9-night-line-strong);
  --cc-nav: rgb(5 18 24 / 86%);
  --cc-nav-hover: rgb(24 62 67 / 54%);
  --cc-nav-active: rgb(31 78 81 / 76%);
  --cc-accent: var(--r9-teal-bright);
  --cc-accent-strong: #a8e4d8;
  --cc-accent-soft: rgb(23 65 67 / 64%);
  --cc-danger: #e18172;
  --cc-warning: #d8b16d;
  --r9-control-bg: linear-gradient(180deg, rgb(13 42 49 / 84%), rgb(5 25 32 / 74%));
  --r9-control-bg-hover: linear-gradient(180deg, rgb(18 51 58 / 92%), rgb(8 31 38 / 86%));
  --r9-control-edge: rgb(126 196 189 / 30%);
  --r9-control-label: #88aaa5;
  --r9-control-placeholder: #607f7d;
  --r9-control-ring: rgb(121 201 189 / 18%);
  --r9-control-shadow: inset 0 1px 0 rgb(226 255 249 / 7%), inset 0 -1px 0 rgb(0 0 0 / 22%), 0 5px 14px rgb(0 5 8 / 13%);
  --r9-button-bg: linear-gradient(180deg, rgb(20 53 60 / 82%), rgb(7 29 36 / 76%));
  min-height: 100dvh;
  background-color: #061118;
  background-image:
    linear-gradient(180deg, rgb(2 9 14 / 10%) 0%, rgb(2 9 14 / 26%) 50%, rgb(2 9 14 / 57%) 100%),
    url("../assets/night-cosmos-r1.jpg");
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--cc-ink);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) :is(.shell, .main) {
  background: transparent;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .workspace {
  background-color: rgb(2 12 18 / 14%);
  background-image: none;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .sidebar {
  border-color: var(--r9-night-line);
  background: linear-gradient(90deg, rgb(4 15 22 / 90%), rgb(7 28 34 / 82%) 58%, rgb(4 15 22 / 88%));
  box-shadow: 0 14px 38px rgb(0 5 8 / 34%);
  backdrop-filter: blur(22px) saturate(114%);
  -webkit-backdrop-filter: blur(22px) saturate(114%);
}

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(126 196 189 / 30%);
  background: rgb(29 72 76 / 54%);
  color: #e2eee8;
}

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(126 196 189 / 38%);
  background: rgb(31 78 81 / 76%);
  box-shadow: inset 0 -2px var(--r9-brass), 0 8px 20px rgb(0 5 8 / 18%);
  color: #f2f7f3;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__icon {
  color: #83a9a6;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .topbar {
  border-color: var(--r9-night-line);
  background: rgb(5 18 25 / 72%);
  box-shadow: 0 12px 34px rgb(0 5 8 / 28%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .command {
  border-color: var(--r9-night-line-strong);
  background: rgb(12 40 47 / 62%);
  box-shadow: inset 3px 0 rgb(212 173 103 / 72%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .status {
  border-color: var(--r9-night-line);
  background: linear-gradient(180deg, rgb(5 19 26 / 76%), rgb(3 13 19 / 86%));
  box-shadow: -16px 0 42px rgb(0 4 7 / 30%);
  backdrop-filter: blur(24px) saturate(112%);
  -webkit-backdrop-filter: blur(24px) saturate(112%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) :is(.module-tabs-shell, .module-canvas-toolbar, .panel) {
  border-color: var(--r9-night-line);
  background: var(--r9-night-glass);
  box-shadow: var(--r9-shadow-night);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar {
  border-left: 3px solid color-mix(in srgb, var(--r9-teal-bright) 68%, var(--r9-brass));
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .formal-workbench-intro {
  min-height: 150px;
  padding: 22px 28px;
  border-color: var(--r9-night-line);
  border-left-color: var(--r9-brass);
  background: linear-gradient(100deg, rgb(5 22 29 / 54%), rgb(8 32 39 / 34%) 57%, rgb(4 17 24 / 16%));
  box-shadow: 0 24px 52px rgb(0 4 7 / 34%), inset 0 1px rgb(180 231 220 / 7%);
  backdrop-filter: blur(5px) saturate(110%);
  -webkit-backdrop-filter: blur(5px) saturate(110%);
}

body.owner-shell-v1:not(.auth-required) .formal-intro-copy h1 {
  max-width: 760px;
  font-size: 33px;
  line-height: 1.12;
}

body.owner-shell-v1:not(.auth-required) .formal-intro-meta i,
body.owner-shell-v1:not(.auth-required) .formal-intro-meta small {
  display: none;
}

/* Shared work surfaces keep hierarchy without turning every section into an opaque card. */
body.owner-shell-v1:not(.auth-required) .module-tabs-shell {
  min-height: 46px;
}

body.owner-shell-v1:not(.auth-required) .tabs {
  min-height: 44px;
  align-items: stretch;
  gap: 2px;
  padding-inline: 5px;
}

body.owner-shell-v1:not(.auth-required) .tab {
  min-height: 40px;
  padding-inline: 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 2px 2px 0 0;
  background: transparent;
  color: var(--cc-ink-soft);
  font-size: 12px;
}

body.owner-shell-v1:not(.auth-required) .tab:hover,
body.owner-shell-v1:not(.auth-required) .tab:focus-visible {
  background: color-mix(in srgb, var(--cc-surface-muted) 76%, transparent);
  color: var(--cc-ink);
}

body.owner-shell-v1:not(.auth-required) .tab.active,
body.owner-shell-v1:not(.auth-required) .tab[aria-selected="true"] {
  border-bottom-color: var(--r9-brass);
  background: color-mix(in srgb, var(--cc-accent-soft) 78%, transparent);
  color: var(--cc-ink);
  font-weight: 800;
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar {
  min-height: 48px;
  padding: 7px 11px;
}

body.owner-shell-v1:not(.auth-required) .formal-route-code,
body.owner-shell-v1:not(.auth-required) .formal-intro-eyebrow,
body.owner-shell-v1:not(.auth-required) .formal-intro-copy > p,
body.owner-shell-v1:not(.auth-required) .formal-archive-caption,
body.owner-shell-v1:not(.auth-required) .module-canvas-kicker,
body.owner-shell-v1:not(.auth-required) .module-canvas-status[data-status="ready"] {
  display: none;
}

html[data-theme] body.owner-shell-v1:not(.auth-required) :is(
  .brand small,
  .formal-rail-index,
  .formal-archive-caption,
  .topbar .title p
) {
  display: none;
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar-title {
  gap: 7px;
}

body.owner-shell-v1:not(.auth-required) .module-canvas-status:not([data-status="ready"]) {
  padding-left: 8px;
  border-left: 1px solid var(--cc-line-strong);
  color: var(--cc-warning);
  font-size: 10px;
  font-weight: 700;
}

/* Knowledge already exposes counts in its metric rail; remove duplicated narration. */
body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .knowledge-v2__atlas-head > div > span,
  .knowledge-v2__atlas-meta > p,
  .knowledge-v2__section-head > div > span,
  .knowledge-v2__browser-head > span,
  .knowledge-v2__cadence-head > span
) {
  display: none;
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar-actions .mini-action {
  min-height: 34px;
  border-radius: 3px;
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar-actions {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 3px;
  background: color-mix(in srgb, var(--cc-surface-muted) 48%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-toolbar-actions .mini-action {
  border: 0;
  border-right: 1px solid var(--cc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-toolbar-actions .mini-action:last-child {
  border-right: 0;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #pinnedNav {
  gap: 0;
  border-top: 1px solid var(--cc-line);
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #pinnedNav a {
  min-height: 33px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid var(--cc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #pinnedNav a:hover,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #pinnedNav a:focus-visible {
  background: var(--cc-nav-hover);
  color: var(--cc-nav-active);
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .pin-button {
  border-color: var(--cc-line);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
}

body.owner-shell-v1:not(.auth-required) :is(.module-canvas-widget > .panel, #moduleStage > .panel, #moduleStage .panel) {
  border-color: var(--cc-line);
  border-radius: var(--r9-radius);
  background: var(--cc-surface);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

@media (hover: hover) {
  body.owner-shell-v1:not(.auth-required) :is(.module-canvas-widget > .panel, #moduleStage .panel):hover {
    border-color: var(--cc-line-strong);
  }
}

body.owner-shell-v1:not(.auth-required) :is(.module-canvas-widget > .panel, #moduleStage .panel).tab-focus {
  border-color: var(--r9-ocean);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--r9-ocean) 18%, transparent), var(--r9-shadow-day);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) :is(.module-canvas-widget > .panel, #moduleStage .panel).tab-focus {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--r9-teal-bright) 18%, transparent), var(--r9-shadow-night);
}

body.owner-shell-v1:not(.auth-required) :is(.hud-button, .mini-action, .status-button, .ai-fab, [data-theme-mode-toggle], .owner-global-search-trigger) {
  min-height: 38px;
  border-radius: 3px;
}

/* R9 control language: layered labels, quiet material inputs and explicit actions. */
body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea
) {
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--r9-control-edge);
  border-radius: 4px;
  outline: 0;
  background: var(--r9-control-bg);
  color: var(--cc-ink);
  box-shadow: var(--r9-control-shadow);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

body.owner-shell-v1:not(.auth-required) #moduleStage textarea {
  min-height: 92px;
  line-height: 1.55;
  resize: vertical;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea
):hover {
  border-color: color-mix(in srgb, var(--r9-control-edge) 62%, var(--cc-accent));
  background: var(--r9-control-bg-hover);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea
):focus {
  border-color: var(--cc-accent);
  background: var(--r9-control-bg-hover);
  box-shadow: 0 0 0 3px var(--r9-control-ring), var(--r9-control-shadow);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(input, textarea)::placeholder {
  color: var(--r9-control-placeholder);
  opacity: 1;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(input, select, textarea):disabled,
body.owner-shell-v1:not(.auth-required) #moduleStage :is(input, textarea)[readonly] {
  border-color: color-mix(in srgb, var(--r9-control-edge) 62%, transparent);
  background: color-mix(in srgb, var(--cc-surface-muted) 64%, transparent);
  color: var(--cc-ink-faint);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .76;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.field, .cc-profile__field):has(> :is(input, select, textarea)) {
  min-width: 0;
  min-height: 0;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .field > small,
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__field > span:first-child {
  margin: 0 0 0 1px;
  color: var(--r9-control-label);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  transition: color 140ms ease;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.field, .cc-profile__field):focus-within > :is(small, span:first-child) {
  color: var(--cc-accent-strong);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button) {
  border: 1px solid var(--r9-control-edge);
  background: var(--r9-button-bg);
  color: var(--cc-ink-soft);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 2px 6px rgb(19 53 48 / 6%);
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button):hover {
  transform: translateY(-1px);
  border-color: var(--cc-accent);
  background: var(--r9-control-bg-hover);
  color: var(--cc-accent-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 6px 14px rgb(19 53 48 / 10%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button):active {
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgb(6 37 34 / 16%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button.primary, .mini-action.primary, .status-button.primary) {
  border-color: color-mix(in srgb, var(--r9-teal) 76%, white);
  background: linear-gradient(135deg, #267c78, #1d5963);
  color: #f4fffd;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 7px 16px rgb(19 82 78 / 16%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button.primary, .mini-action.primary, .status-button.primary):hover {
  border-color: color-mix(in srgb, var(--r9-teal-bright) 70%, white);
  background: linear-gradient(135deg, #2d8a84, #226978);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%), 0 9px 20px rgb(19 82 78 / 22%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button.danger, .mini-action.danger, .status-button.danger) {
  border-color: color-mix(in srgb, var(--cc-danger) 58%, transparent);
  background: color-mix(in srgb, var(--cc-danger) 11%, var(--cc-surface));
  color: var(--cc-danger);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group {
  border-color: var(--cc-line);
  background: color-mix(in srgb, var(--cc-surface) 72%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group[open] > summary {
  border-bottom: 1px solid var(--cc-line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--cc-accent-soft) 58%, transparent), transparent 62%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__fields {
  background: color-mix(in srgb, var(--cc-surface-muted) 50%, transparent);
}

/* Profile archive: compact masonry-like groups with readable field hierarchy. */
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields {
  margin-top: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head {
  min-height: 48px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--cc-line);
  border-left: 3px solid var(--r9-teal);
  border-radius: 4px;
  background: color-mix(in srgb, var(--cc-surface-strong) 82%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head :is(.cc-profile__eyebrow, p) {
  display: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head h3 {
  margin: 0;
  font-size: 16px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head > strong {
  padding-left: 10px;
  border-left: 1px solid var(--cc-line);
  color: var(--cc-ink-soft);
  font-size: 11px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-groups {
  display: block;
  margin-top: 10px;
  border: 0;
  column-count: 2;
  column-gap: 12px;
  column-fill: balance;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group {
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin: 0 0 12px;
  padding: 0 13px 10px;
  break-inside: avoid;
  border: 1px solid var(--cc-line);
  border-left: 3px solid var(--r9-teal);
  border-radius: 4px;
  background: color-mix(in srgb, var(--cc-surface) 91%, transparent);
  box-shadow: var(--r9-shadow-day);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(2n) {
  border-left: 3px solid var(--r9-ocean);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(3n) {
  border-left-color: var(--r9-brass);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(4n) {
  border-left-color: var(--r9-coral);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group {
  box-shadow: var(--r9-shadow-night);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group > header {
  min-height: 42px;
  border-bottom: 1px solid var(--cc-line-strong);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group h4 {
  color: var(--cc-ink);
  font-size: 14px;
  font-weight: 800;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group > header span {
  color: var(--cc-ink-faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field {
  grid-template-columns: minmax(112px, .34fr) minmax(0, 1fr);
  gap: 14px;
  padding: 9px 2px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field + .cc-profile__view-field {
  border-top: 1px solid color-mix(in srgb, var(--cc-line) 72%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field dt {
  color: var(--cc-ink-faint);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field dd {
  color: var(--cc-ink);
  font-size: 13px;
  line-height: 1.65;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field:focus-within {
  background: color-mix(in srgb, var(--cc-accent-soft) 42%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .cc-profile__group summary small,
  .cc-profile__structure-entry p
) {
  display: none;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(input, select, textarea) {
  color-scheme: dark;
}

body.owner-shell-v1:not(.auth-required) :is(.kpi strong, .finance-kpi strong, .library-summary strong, .cc-profile__completion strong) {
  font-variant-numeric: tabular-nums;
  text-rendering: geometricPrecision;
}

body.owner-shell-v1.ai-open .ai-panel {
  border-left: 1px solid var(--cc-line-strong);
  border-radius: 0;
  box-shadow: -18px 0 46px rgb(0 5 8 / 28%);
}

@media (max-width: 1279px) and (min-width: 1024px) {
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .topbar {
    background: rgb(5 18 25 / 82%);
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .status {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .status > :is(.dot, #workspaceStatus) {
    display: none;
  }

  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #globalSearchMount {
    flex: 0 0 96px;
    min-width: 96px;
  }

  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #globalSearchMount .owner-global-search-trigger {
    width: 96px;
    min-width: 96px;
  }
}

@media (max-width: 1319px) and (min-width: 1024px) {
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .sidebar {
    gap: 10px;
    padding-inline: 12px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .brand {
    min-width: 150px;
    flex: 0 0 150px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .brand > div:last-child,
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav {
    min-width: 0;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav {
    overflow-x: clip;
  }

  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 {
    gap: 2px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__item {
    width: 44px;
    min-width: 44px;
    height: 50px;
    min-height: 50px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 3px 2px;
    font-size: 8px;
    line-height: 1;
    text-align: center;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #primaryNav .cc-shell-nav__label {
    max-width: 100%;
    font-size: 8px;
    line-height: 1;
    text-align: center;
    text-overflow: clip;
  }

  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .status > :is(.dot, #workspaceStatus) {
    display: none;
  }

  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #globalSearchMount {
    flex: 0 0 96px;
    min-width: 96px;
  }

  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #globalSearchMount .owner-global-search-trigger {
    width: 96px;
    min-width: 96px;
  }
}

@media (max-width: 1119px) and (min-width: 1024px) {
  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .status > #clock {
    display: none;
  }

  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #globalSearchMount,
  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #globalSearchMount .owner-global-search-trigger {
    flex-basis: 88px;
    width: 88px;
    min-width: 88px;
  }
}

@media (max-width: 1023px) and (min-width: 761px) {
  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar {
    background: rgb(229 237 232 / 92%);
  }

  body.owner-shell-v1:not(.auth-required) .workspace {
    padding-inline: 14px;
  }
}

@media (max-width: 760px) {
  html[data-theme] body.owner-shell-v1:not(.auth-required) {
    background-attachment: scroll;
    background-position: center top;
  }

  body.owner-shell-v1:not(.auth-required) .workspace {
    gap: 7px;
    padding: 7px 9px var(--cc-mobile-content-bottom-clearance, 86px);
  }

  body.owner-shell-v1:not(.auth-required) .formal-workbench-intro {
    display: none;
  }

  body.owner-shell-v1:not(.auth-required) .formal-intro-copy h1 {
    margin-block: 0 4px;
    font-size: 23px;
    line-height: 1.08;
  }

  body.owner-shell-v1:not(.auth-required) .formal-intro-copy > p,
  body.owner-shell-v1:not(.auth-required) .formal-intro-meta {
    display: none;
  }

  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .workspace {
    background-color: rgb(229 237 232 / 52%);
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .workspace {
    background-color: rgb(2 12 18 / 28%);
  }

  body.owner-shell-v1:not(.auth-required) .module-tabs-shell {
    min-height: 40px;
    overflow: hidden;
  }

  body.owner-shell-v1:not(.auth-required) #moduleTabs {
    min-height: 38px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cc-line-strong) transparent;
    scroll-snap-type: x proximity;
  }

  body.owner-shell-v1:not(.auth-required) .tabs {
    width: max-content;
    min-width: 100%;
  }

  body.owner-shell-v1:not(.auth-required) .tab {
    min-height: 36px;
    min-width: 72px;
    padding-inline: 10px;
    font-size: 11px;
    scroll-margin-inline: 38px;
    scroll-snap-align: nearest;
  }

  body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar {
    min-height: 42px;
    padding-block: 5px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-groups {
    column-count: 1;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group {
    margin-bottom: 9px;
    padding-inline: 11px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding-block: 8px;
  }

  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) :is(.module-tabs-shell, .module-canvas-toolbar, .panel) {
    background: rgb(255 254 249 / 88%);
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) :is(.module-tabs-shell, .module-canvas-toolbar, .panel) {
    background: rgb(7 27 35 / 84%);
  }

  body.owner-shell-v1:not(.auth-required) .cc-mobile-nav,
  body.owner-shell-v1:not(.auth-required) .cc-mobile-more {
    backdrop-filter: blur(22px) saturate(112%);
    -webkit-backdrop-filter: blur(22px) saturate(112%);
  }
}

/* R9 profile art pass: an open archive desk, not a white card stack. */
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-canvas {
  gap: 10px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-canvas > [data-module-canvas-block] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgb(20 52 49 / 9%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head[data-module-canvas-block] {
  min-height: 176px;
  padding: 24px 26px;
  border: 1px solid rgb(17 62 63 / 76%);
  border-left: 4px solid var(--r9-brass);
  background: linear-gradient(118deg, rgb(14 52 55 / 98%), rgb(28 82 80 / 94%));
  color: #f4f7f1;
  box-shadow: inset 0 1px rgb(255 255 255 / 10%), 0 16px 34px rgb(18 54 51 / 18%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head[data-module-canvas-block]::after {
  content: "";
  position: absolute;
  inset: auto 22px 19px auto;
  z-index: -1;
  width: 78px;
  height: 1px;
  background: var(--r9-brass);
  box-shadow: 0 -7px rgb(255 255 255 / 11%), 0 7px rgb(255 255 255 / 7%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head :is(.cc-profile__eyebrow, p) {
  color: rgb(221 235 228 / 72%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__eyebrow {
  margin-bottom: 10px;
  color: #d5b87d;
  font-size: 10px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head h3 {
  color: #fffef8;
  font-size: 25px;
  font-weight: 760;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__completion {
  width: 126px;
  min-width: 126px;
  min-height: 92px;
  border-left-color: rgb(213 184 125 / 78%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__completion strong {
  color: #e4c88c;
  font-size: 32px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__completion span {
  color: rgb(230 240 235 / 68%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] {
  border: 1px solid var(--cc-line-strong);
  background: color-mix(in srgb, var(--cc-surface-strong) 76%, transparent);
  box-shadow: inset 0 1px rgb(255 255 255 / 46%), 0 12px 28px rgb(20 52 49 / 8%);
  backdrop-filter: blur(22px) saturate(112%);
  -webkit-backdrop-filter: blur(22px) saturate(112%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] > div {
  position: relative;
  min-height: 82px;
  padding: 17px 17px 15px;
  transition: background 150ms ease;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: transparent;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] > div:hover {
  background: color-mix(in srgb, var(--cc-accent-soft) 35%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] > div:hover::before {
  background: var(--r9-teal);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid span {
  color: var(--cc-ink-faint);
  font-size: 10px;
  font-weight: 750;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid strong {
  margin-top: 7px;
  color: var(--cc-ink);
  font-size: 14px;
  font-weight: 760;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure-entry[data-module-canvas-block],
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-foot[data-module-canvas-block] {
  min-height: 142px;
  border: 1px solid var(--cc-line-strong);
  backdrop-filter: blur(22px) saturate(108%);
  -webkit-backdrop-filter: blur(22px) saturate(108%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure-entry[data-module-canvas-block] {
  border-left: 4px solid var(--r9-teal);
  background: linear-gradient(104deg, color-mix(in srgb, var(--r9-teal) 11%, var(--cc-surface-strong)), color-mix(in srgb, var(--cc-surface) 72%, transparent));
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-foot[data-module-canvas-block] {
  border-top: 1px solid var(--cc-line-strong);
  border-left: 4px solid var(--r9-brass);
  background: linear-gradient(104deg, color-mix(in srgb, var(--r9-brass) 9%, var(--cc-surface-strong)), color-mix(in srgb, var(--cc-surface) 72%, transparent));
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure-entry .cc-profile__eyebrow,
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-foot > div > span {
  margin-bottom: 8px;
  color: var(--cc-ink-faint);
  font-size: 10px;
  font-weight: 750;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure-entry .hud-button {
  min-height: 42px;
  padding-inline: 16px;
  border-color: color-mix(in srgb, var(--r9-teal) 66%, transparent);
  background: #1c5d5c;
  color: #f4fffb;
  box-shadow: inset 0 1px rgb(255 255 255 / 15%), 0 9px 20px rgb(22 82 79 / 17%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__missing {
  gap: 5px 12px;
  margin-top: 2px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__missing span {
  position: relative;
  padding: 2px 0 2px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cc-ink-soft);
  font-size: 11px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__missing span::before {
  content: "";
  position: absolute;
  inset: 8px auto auto 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--r9-brass);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-foot .hud-button {
  align-self: stretch;
  min-height: 38px;
  border: 0;
  border-top: 1px solid var(--cc-line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cc-accent-strong);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head {
  min-height: 54px;
  padding: 11px 15px;
  border: 1px solid rgb(17 62 63 / 72%);
  border-left: 4px solid var(--r9-brass);
  background: rgb(16 57 59 / 94%);
  box-shadow: inset 0 1px rgb(255 255 255 / 9%), 0 11px 24px rgb(17 55 53 / 13%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head h3 {
  color: #f7faf5;
  font-size: 15px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head > strong {
  border-left-color: rgb(233 244 238 / 18%);
  color: #ddc185;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-groups {
  margin-top: 10px;
  column-gap: 10px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group {
  position: relative;
  margin-bottom: 10px;
  padding: 0 15px 11px;
  border: 1px solid var(--cc-line-strong);
  border-left: 1px solid var(--cc-line-strong);
  border-top: 3px solid var(--r9-teal);
  border-radius: 4px;
  background: color-mix(in srgb, var(--cc-surface-strong) 74%, transparent);
  box-shadow: inset 0 1px rgb(255 255 255 / 46%), 0 12px 26px rgb(20 52 49 / 10%);
  backdrop-filter: blur(22px) saturate(108%);
  -webkit-backdrop-filter: blur(22px) saturate(108%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(2n) {
  border-left: 1px solid var(--cc-line-strong);
  border-top-color: var(--r9-ocean);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(3n) {
  border-left-color: var(--cc-line-strong);
  border-top-color: var(--r9-brass);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(4n) {
  border-left-color: var(--cc-line-strong);
  border-top-color: var(--r9-coral);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group > header {
  min-height: 46px;
  border-bottom-color: var(--cc-line-strong);
  background: linear-gradient(90deg, color-mix(in srgb, var(--cc-accent-soft) 31%, transparent), transparent 68%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group h4 {
  font-size: 14px;
  font-weight: 800;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group > header span {
  min-width: 26px;
  padding-left: 9px;
  border-left: 1px solid var(--cc-line);
  color: var(--cc-ink-faint);
  text-align: right;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field {
  grid-template-columns: minmax(118px, .33fr) minmax(0, 1fr);
  padding: 10px 4px;
  border-radius: 2px;
  transition: background 140ms ease;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field:hover,
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field:focus-within {
  background: color-mix(in srgb, var(--cc-accent-soft) 29%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field dt {
  color: var(--cc-ink-faint);
  font-size: 10px;
  font-weight: 750;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field dd {
  color: var(--cc-ink);
  font-size: 13px;
  font-weight: 520;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile :is(input, select, textarea) {
  border-bottom-color: color-mix(in srgb, var(--cc-accent) 52%, var(--r9-control-edge));
  background: color-mix(in srgb, var(--r9-control-bg-hover) 88%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile :is(input, select, textarea):focus {
  box-shadow: inset 0 -2px var(--cc-accent), 0 0 0 3px var(--r9-control-ring), var(--r9-control-shadow);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head[data-module-canvas-block] {
  border-color: rgb(121 201 189 / 28%);
  border-left-color: #d0a85f;
  background: linear-gradient(118deg, rgb(5 25 32 / 88%), rgb(16 58 63 / 78%));
  box-shadow: inset 0 1px rgb(216 255 247 / 7%), 0 18px 38px rgb(0 5 8 / 30%);
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block],
html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure-entry[data-module-canvas-block],
html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-foot[data-module-canvas-block],
html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group {
  background: rgb(6 28 35 / 64%);
  box-shadow: inset 0 1px rgb(226 255 249 / 5%), 0 18px 36px rgb(0 5 8 / 26%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head {
  border-color: rgb(121 201 189 / 26%);
  border-left-color: #d0a85f;
  background: rgb(5 30 37 / 82%);
  box-shadow: inset 0 1px rgb(226 255 249 / 6%), 0 16px 34px rgb(0 5 8 / 28%);
  backdrop-filter: blur(20px) saturate(118%);
  -webkit-backdrop-filter: blur(20px) saturate(118%);
}

@media (max-width: 900px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage .bulk-actions-r1__bar {
    display: grid;
    min-height: 54px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    padding: 7px 9px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .bulk-actions-r1__bar > .hud-button {
    min-height: 36px;
    padding-inline: 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .bulk-actions-r1__bar .bulk-actions-r1__scope {
    min-width: 0;
    font-size: 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-canvas {
    gap: 8px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head[data-module-canvas-block] {
    min-height: 138px;
    padding: 18px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head h3 {
    font-size: 21px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__completion {
    width: 86px;
    min-width: 86px;
    min-height: 70px;
    padding-left: 13px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__completion strong {
    font-size: 27px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] > div {
    min-height: 70px;
    padding: 13px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure-entry[data-module-canvas-block],
  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-foot[data-module-canvas-block] {
    min-height: 0;
    padding: 14px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-groups {
    column-count: 1;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field {
    grid-template-columns: minmax(88px, .31fr) minmax(0, 1fr);
    gap: 10px;
  }
}

/* R9 cross-module art pass: shared workbench material for knowledge, items and reminders. */
body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .knowledge-v2__overview-panel,
  .task-workbench-panel.items-v2__overview
) {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .bulk-actions-r1__bar {
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--cc-line-strong) 78%, transparent);
  border-left: 4px solid var(--r9-brass);
  border-radius: 4px;
  background: rgb(20 45 50 / 94%);
  box-shadow: inset 0 1px rgb(255 255 255 / 7%), 0 12px 26px rgb(13 43 41 / 13%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .bulk-actions-r1__bar :is(.bulk-actions-r1__scope, .bulk-actions-r1__selected) {
  color: rgb(230 240 235 / 68%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .bulk-actions-r1__bar > .hud-button {
  border-color: rgb(231 242 237 / 18%);
  background: rgb(255 255 255 / 8%);
  color: #f1f7f3;
  box-shadow: none;
}

/* Items: replace the large white sheet with an indexed inventory surface. */
body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__header {
  min-height: 92px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid rgb(18 64 64 / 72%);
  border-left: 4px solid var(--r9-teal);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(112deg, rgb(15 57 59 / 96%), rgb(25 76 76 / 91%));
  box-shadow: inset 0 1px rgb(255 255 255 / 9%), 0 13px 28px rgb(18 55 52 / 15%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__header :is(h3, .items-v2__truth-line) {
  color: #f7faf5;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__header p:not(.items-v2__truth-line) {
  display: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__jumps {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgb(234 245 240 / 20%);
  border-radius: 3px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__jumps .mini-action {
  border: 0;
  border-right: 1px solid rgb(234 245 240 / 18%);
  border-radius: 0;
  background: rgb(255 255 255 / 7%);
  color: rgb(241 248 244 / 88%);
  box-shadow: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__jumps .mini-action:last-child {
  border-right: 0;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__summary {
  margin-top: 0;
  border-color: var(--cc-line-strong);
  background: color-mix(in srgb, var(--cc-surface-strong) 76%, transparent);
  box-shadow: inset 0 1px rgb(255 255 255 / 45%), 0 12px 26px rgb(20 52 49 / 8%);
  backdrop-filter: blur(20px) saturate(108%);
  -webkit-backdrop-filter: blur(20px) saturate(108%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__summary > div {
  min-height: 78px;
  padding: 14px 16px;
  border-color: var(--cc-line-strong);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__summary > div:nth-child(1) {
  box-shadow: inset 0 3px var(--r9-teal);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__summary > div:nth-child(2) {
  box-shadow: inset 0 3px var(--r9-ocean);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__summary > div:nth-child(3) {
  box-shadow: inset 0 3px var(--r9-brass);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__workspace {
  margin-top: 10px;
  border: 1px solid var(--cc-line-strong);
  background: color-mix(in srgb, var(--cc-surface-strong) 70%, transparent);
  box-shadow: 0 12px 26px rgb(20 52 49 / 8%);
  backdrop-filter: blur(20px) saturate(106%);
  -webkit-backdrop-filter: blur(20px) saturate(106%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__workspace-section {
  padding: 15px 16px;
  border-color: var(--cc-line-strong);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__workspace-section h4 {
  margin-bottom: 9px;
  color: var(--cc-ink-faint);
  font-size: 10px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__overview > .items-v2__projection-note {
  display: none;
}

/* Reminders: a focused queue beside a quieter creation desk. */
body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-overview {
  border: 1px solid var(--cc-line-strong);
  background: color-mix(in srgb, var(--cc-surface-strong) 71%, transparent);
  box-shadow: 0 16px 34px rgb(20 52 49 / 10%);
  backdrop-filter: blur(22px) saturate(108%);
  -webkit-backdrop-filter: blur(22px) saturate(108%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-overview-head {
  padding: 15px 16px;
  border: 1px solid rgb(18 64 64 / 72%);
  border-left: 4px solid var(--r9-brass);
  border-radius: 4px;
  background: linear-gradient(112deg, rgb(15 57 59 / 96%), rgb(25 76 76 / 91%));
  box-shadow: inset 0 1px rgb(255 255 255 / 9%), 0 12px 26px rgb(18 55 52 / 14%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-overview-head h3 {
  color: #f7faf5;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-overview-head p {
  display: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-jumps {
  border-color: rgb(234 245 240 / 20%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-jump {
  border-right-color: rgb(234 245 240 / 18%);
  background: rgb(255 255 255 / 7%);
  color: rgb(241 248 244 / 88%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-search {
  padding: 12px;
  border: 1px solid var(--cc-line);
  border-left: 3px solid var(--r9-teal);
  background: color-mix(in srgb, var(--cc-surface-muted) 56%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-kpis {
  border-color: var(--cc-line-strong);
  background: color-mix(in srgb, var(--cc-surface-muted) 62%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-kpis .kpi {
  min-height: 58px;
  padding: 10px 12px;
  border-color: var(--cc-line-strong);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-kpis .kpi:nth-child(1) {
  box-shadow: inset 0 3px var(--r9-teal);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-kpis .kpi:nth-child(2) {
  box-shadow: inset 0 3px var(--r9-coral);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-kpis .kpi:nth-child(3) {
  box-shadow: inset 0 3px var(--r9-ocean);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-kpis .kpi:nth-child(4) {
  box-shadow: inset 0 3px var(--r9-brass);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-notification-setting,
body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-create-disclosure {
  background: color-mix(in srgb, var(--r9-brass) 6%, var(--cc-surface-muted));
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-create-disclosure > summary {
  border: 1px solid var(--cc-line-strong);
  border-left: 3px solid var(--r9-brass);
  background: color-mix(in srgb, var(--cc-surface-strong) 72%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-create-disclosure > summary small {
  display: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-row {
  border-left: 3px solid var(--r9-brass);
  background: color-mix(in srgb, var(--cc-surface) 52%, transparent);
  transition: background 140ms ease, border-color 140ms ease;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-row:hover {
  border-left-color: var(--r9-teal);
  background: color-mix(in srgb, var(--cc-accent-soft) 28%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-actions :is(button, summary) {
  border-radius: 2px;
  box-shadow: none;
}

/* Knowledge: continuous metric and atlas surfaces with quieter narration. */
body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__summary {
  border: 1px solid var(--cc-line-strong);
  background: color-mix(in srgb, var(--cc-surface-strong) 74%, transparent);
  box-shadow: inset 0 1px rgb(255 255 255 / 44%), 0 12px 26px rgb(20 52 49 / 8%);
  backdrop-filter: blur(20px) saturate(108%);
  -webkit-backdrop-filter: blur(20px) saturate(108%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__metric {
  min-height: 78px;
  border-color: var(--cc-line-strong);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__command-bar {
  min-height: 58px;
  border: 1px solid rgb(18 64 64 / 72%);
  border-left: 4px solid var(--r9-teal);
  background: rgb(17 57 60 / 94%) !important;
  box-shadow: inset 0 1px rgb(255 255 255 / 8%), 0 12px 26px rgb(18 55 52 / 13%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__command-context :is(strong, [data-lucide]) {
  color: #f4faf6;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__command-context small {
  display: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__command-actions .mini-action {
  border-color: rgb(234 245 240 / 18%);
  background: rgb(255 255 255 / 7%);
  color: rgb(241 248 244 / 88%);
  box-shadow: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__atlas {
  border: 1px solid var(--cc-line-strong);
  border-top: 3px solid var(--r9-ocean);
  background: color-mix(in srgb, var(--cc-surface-strong) 70%, transparent);
  box-shadow: 0 14px 30px rgb(20 52 49 / 9%);
  backdrop-filter: blur(20px) saturate(108%);
  -webkit-backdrop-filter: blur(20px) saturate(108%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__atlas-head p {
  display: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__atlas-grid > section {
  background: color-mix(in srgb, var(--cc-surface-muted) 34%, transparent);
}

/* Recycle: archival index surfaces keep empty panels intentional instead of flat. */
body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] {
  --recycle-r9-surface: rgb(249 250 245 / 78%);
  --recycle-r9-surface-soft: rgb(237 244 239 / 64%);
  --recycle-r9-rule: rgb(38 83 78 / 7%);
  --recycle-r9-grid: rgb(38 83 78 / 4%);
  --recycle-r9-head: rgb(15 55 58 / 96%);
  --recycle-r9-head-end: rgb(27 80 78 / 92%);
  gap: 14px;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] {
  --recycle-r9-surface: rgb(5 27 34 / 66%);
  --recycle-r9-surface-soft: rgb(9 40 46 / 54%);
  --recycle-r9-rule: rgb(128 200 190 / 8%);
  --recycle-r9-grid: rgb(128 200 190 / 5%);
  --recycle-r9-head: rgb(5 28 35 / 92%);
  --recycle-r9-head-end: rgb(14 59 63 / 84%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] > .panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--cc-line-strong) 86%, transparent);
  background:
    linear-gradient(112deg, rgb(255 255 251 / 18%), transparent 48%),
    var(--recycle-r9-surface);
  box-shadow: inset 0 1px rgb(255 255 255 / 48%), 0 16px 34px rgb(15 50 46 / 11%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] > .panel {
  box-shadow: inset 0 1px rgb(220 255 247 / 6%), 0 18px 38px rgb(0 5 8 / 29%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] > .panel::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 92px;
  height: 92px;
  background:
    radial-gradient(ellipse 92px 44px at 100% 100%, transparent 69%, color-mix(in srgb, var(--r9-brass) 34%, transparent) 70% 71%, transparent 72%),
    radial-gradient(ellipse 54px 88px at 100% 100%, transparent 69%, color-mix(in srgb, var(--r9-brass) 22%, transparent) 70% 71%, transparent 72%);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .42;
  pointer-events: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] > .panel > * {
  position: relative;
  z-index: 1;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] > .panel > h3 {
  position: relative;
  overflow: hidden;
  margin: -16px -16px 14px;
  padding: 13px 78px 12px 18px;
  border-bottom: 1px solid rgb(226 242 235 / 16%);
  background: linear-gradient(112deg, var(--recycle-r9-head), var(--recycle-r9-head-end));
  box-shadow: inset 4px 0 var(--r9-brass), inset 0 1px rgb(255 255 255 / 8%);
  color: #f4faf6;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] > .panel > h3::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 66px;
  height: 100%;
  border-left: 1px solid rgb(235 246 240 / 10%);
  background:
    radial-gradient(ellipse 66px 32px at 100% 0, transparent 68%, rgb(232 198 137 / 24%) 69% 71%, transparent 72%),
    radial-gradient(ellipse 38px 62px at 100% 0, transparent 68%, rgb(232 198 137 / 15%) 69% 71%, transparent 72%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) {
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cc-line-strong) 82%, transparent);
  border-radius: 3px;
  background: var(--recycle-r9-surface-soft);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) .kpi {
  min-height: 72px;
  border: 0;
  border-right: 1px solid var(--cc-line);
  border-radius: 0;
  background: transparent;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) .kpi:nth-child(4n + 1) {
  box-shadow: inset 0 3px var(--r9-ocean);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) .kpi:nth-child(4n + 2) {
  box-shadow: inset 0 3px var(--r9-brass);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) .kpi:nth-child(4n + 3) {
  box-shadow: inset 0 3px var(--r9-teal);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) .kpi:nth-child(4n) {
  box-shadow: inset 0 3px var(--r9-coral);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) .kpi:last-child {
  border-right: 0;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .list {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cc-line-strong) 72%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--recycle-r9-surface-soft) 66%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .list > .row {
  min-height: 54px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--cc-line);
  border-left: 3px solid color-mix(in srgb, var(--r9-teal) 42%, transparent);
  border-radius: 0;
  background: rgb(255 255 255 / 4%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .list > .row:last-child {
  border-bottom: 0;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .list > .row.muted-row {
  border-left-color: color-mix(in srgb, var(--r9-brass) 56%, transparent);
  background: color-mix(in srgb, var(--r9-brass) 5%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.tag, .mini-action) {
  border-radius: 2px;
}

@media (max-width: 900px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] {
    gap: 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] > .panel::after {
    width: 58px;
    height: 58px;
    opacity: .28;
  }
}

@media (max-width: 640px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] > .panel > h3 {
    margin: -12px -12px 11px;
    padding: 12px 64px 11px 14px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) .kpi:nth-child(2n) {
    border-right: 0;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) .kpi:not(:last-child) {
    border-bottom: 1px solid var(--cc-line);
  }
}

/* R10.5 scroll ownership: restore the canvas behavior hidden by ornamental clipping. */
@media (min-width: 761px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-canvas > [data-module-canvas-block] {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-library="vault"] .library-overview-column[data-module-canvas-block] {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .panel > :is(h3, .kpis, .compact-kpis, .bulk-actions-r1__bar, .workbench-actions) {
    flex: 0 0 auto;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .panel > .list {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-command-deck {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] :is(.overview-task-row, .overview-change-row),
  body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] :is(.overview-task-row, .overview-change-row) :is(strong, small) {
    overflow: visible;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] :is(.overview-task-row, .overview-change-row) :is(strong, small) {
    display: block;
    -webkit-line-clamp: unset;
  }
}

@media (max-width: 760px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget,
  body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget > :is(.panel:not(.people-canvas-editor-panel):not(.items-v2__update-panel):not(.items-v2__list-panel), [data-ai-pane]:not(.items-v2__update-panel), [data-module-canvas-block]:not(.people-canvas-editor-panel):not(.items-v2__update-panel)),
  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-canvas > [data-module-canvas-block],
  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-library="vault"] .library-overview-column[data-module-canvas-block],
  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .panel,
  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .panel > .list,
  body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-command-deck {
    height: auto !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    scrollbar-gutter: auto;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__actions {
    position: static !important;
    bottom: auto !important;
    z-index: auto;
  }
}

/* R10.4 scroll containment: keep dense desktop cards complete without moving their actions. */
html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel > :is(h3, .kpis, .compact-kpis, .stacked-kpis, .workbench-actions) {
  flex: 0 0 auto;
}

html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel > :is(.list, .bar-list),
html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) .overview-finance-recent > .list {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) .overview-finance-recent {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .module-canvas-widget > .panel,
  .module-canvas-widget > [data-ai-pane],
  .module-canvas-widget > [data-module-canvas-block],
  [data-overview-canvas-widget] > .panel > .list,
  [data-overview-canvas-widget] > .panel > .bar-list,
  [data-overview-canvas-widget] .overview-finance-recent > .list
) {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--r9-brass, #b68a45) 66%, var(--cc-ink-faint, #71817d)) color-mix(in srgb, var(--cc-surface-muted, #eef1ec) 56%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .module-canvas-widget > .panel,
  .module-canvas-widget > [data-ai-pane],
  .module-canvas-widget > [data-module-canvas-block],
  [data-overview-canvas-widget] > .panel > .list,
  [data-overview-canvas-widget] > .panel > .bar-list,
  [data-overview-canvas-widget] .overview-finance-recent > .list
)::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .module-canvas-widget > .panel,
  .module-canvas-widget > [data-ai-pane],
  .module-canvas-widget > [data-module-canvas-block],
  [data-overview-canvas-widget] > .panel > .list,
  [data-overview-canvas-widget] > .panel > .bar-list,
  [data-overview-canvas-widget] .overview-finance-recent > .list
)::-webkit-scrollbar-track {
  border-radius: 2px;
  background: color-mix(in srgb, var(--cc-surface-muted, #eef1ec) 56%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .module-canvas-widget > .panel,
  .module-canvas-widget > [data-ai-pane],
  .module-canvas-widget > [data-module-canvas-block],
  [data-overview-canvas-widget] > .panel > .list,
  [data-overview-canvas-widget] > .panel > .bar-list,
  [data-overview-canvas-widget] .overview-finance-recent > .list
)::-webkit-scrollbar-thumb {
  min-height: 36px;
  border: 2px solid transparent;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--r9-brass, #b68a45) 72%, var(--cc-ink-faint, #71817d)),
    color-mix(in srgb, var(--cc-accent, #2f7774) 70%, var(--cc-ink-faint, #71817d))
  ) padding-box;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .module-canvas-widget > .panel,
  .module-canvas-widget > [data-ai-pane],
  .module-canvas-widget > [data-module-canvas-block],
  [data-overview-canvas-widget] > .panel > .list,
  [data-overview-canvas-widget] > .panel > .bar-list,
  [data-overview-canvas-widget] .overview-finance-recent > .list
)::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--cc-accent, #2f7774) 82%, var(--r9-brass, #b68a45)) padding-box;
}

@media (max-width: 760px) {
  html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]),
  html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel {
    height: auto !important;
    max-height: none !important;
  }

  html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel > :is(.list, .bar-list),
  html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) .overview-finance-recent,
  html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) .overview-finance-recent > .list {
    max-height: none;
    flex-basis: auto;
    overflow-x: clip;
    overflow-y: visible;
    scrollbar-gutter: auto;
  }
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-items-v2="true"] .items-v2__summary,
  [data-items-v2="true"] .items-v2__workspace,
  [data-reminders-v2] .reminder-v2-overview,
  .knowledge-v2__summary,
  .knowledge-v2__atlas
) {
  background: rgb(6 28 35 / 62%);
  box-shadow: inset 0 1px rgb(226 255 249 / 5%), 0 18px 36px rgb(0 5 8 / 25%);
}

@media (max-width: 900px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__header {
    min-height: 0;
    align-items: stretch;
    padding: 14px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__jumps {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__jumps .mini-action {
    min-width: 0;
    padding-inline: 5px;
    font-size: 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-items-v2="true"] .items-v2__jumps .mini-action:last-child:nth-child(odd) {
    grid-column: auto;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-overview-head {
    padding: 13px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-jumps {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-jump {
    min-width: 0;
    min-height: 34px;
    padding-inline: 5px;
    font-size: 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-reminders-v2] .reminder-v2-feedback {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 11px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__command-bar {
    padding: 10px;
  }
}

/* R9.5 maturity pass: precision controls and a quieter archival hierarchy. */
body.owner-shell-v1:not(.auth-required) {
  --r95-surface-day: rgb(252 252 247 / 84%);
  --r95-surface-night: rgb(5 25 32 / 72%);
  --r95-hairline-day: rgb(39 78 73 / 18%);
  --r95-hairline-night: rgb(128 201 190 / 18%);
  --r95-engraving-day: rgb(36 78 72 / 4.5%);
  --r95-engraving-night: rgb(128 201 190 / 4.5%);
  --r95-button-ink: #f5fbf7;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) {
  --r95-surface: var(--r95-surface-day);
  --r95-hairline: var(--r95-hairline-day);
  --r95-engraving: var(--r95-engraving-day);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) {
  --r95-surface: var(--r95-surface-night);
  --r95-hairline: var(--r95-hairline-night);
  --r95-engraving: var(--r95-engraving-night);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea
) {
  min-height: 43px;
  padding: 10px 12px;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--r9-control-edge) 78%, transparent);
  border-bottom-color: color-mix(in srgb, var(--cc-accent) 52%, var(--r9-control-edge));
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 48%),
    var(--r9-control-bg);
  box-shadow: inset 0 1px rgb(255 255 255 / 34%), 0 1px 2px rgb(12 43 40 / 4%);
  font-size: 13px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea
):hover {
  border-color: color-mix(in srgb, var(--cc-accent) 58%, var(--r9-control-edge));
  border-bottom-color: var(--cc-accent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea
):focus {
  border-color: var(--cc-accent);
  background: var(--r9-control-bg-hover);
  box-shadow: inset 0 -2px var(--cc-accent), 0 0 0 3px var(--r9-control-ring), 0 6px 16px rgb(20 67 62 / 8%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea
) {
  border-color: rgb(121 191 182 / 24%);
  border-bottom-color: rgb(121 201 189 / 46%);
  background:
    linear-gradient(180deg, rgb(203 250 240 / 4%), transparent 52%),
    rgb(4 23 30 / 66%);
  box-shadow: inset 0 1px rgb(218 255 248 / 5%), 0 3px 10px rgb(0 5 8 / 12%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea
):focus {
  border-color: var(--r9-teal-bright);
  background: rgb(6 31 38 / 86%);
  box-shadow: inset 0 -2px var(--r9-teal-bright), 0 0 0 3px rgb(121 201 189 / 13%), 0 9px 22px rgb(0 5 8 / 23%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.field, .cc-profile__field) > :is(small, span:first-child),
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure label > span {
  color: var(--r9-control-label);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button) {
  min-height: 38px;
  gap: 7px;
  padding: 8px 13px;
  border-color: color-mix(in srgb, var(--r9-control-edge) 74%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--cc-surface-strong) 74%, transparent);
  color: var(--cc-ink-soft);
  box-shadow: inset 0 1px rgb(255 255 255 / 34%), 0 2px 6px rgb(17 52 48 / 5%);
  font-size: 12px;
  font-weight: 720;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button) :is(svg, [data-lucide]) {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  stroke-width: 1.8;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button):hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--cc-accent) 72%, transparent);
  background: color-mix(in srgb, var(--cc-accent-soft) 52%, var(--cc-surface-strong));
  color: var(--cc-accent-strong);
  box-shadow: inset 0 1px rgb(255 255 255 / 32%), 0 7px 16px rgb(17 64 58 / 10%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button.primary, .mini-action.primary, .status-button.primary) {
  border-color: rgb(14 73 70 / 82%);
  background: linear-gradient(120deg, #1a6663, #174e59);
  color: var(--r95-button-ink);
  box-shadow: inset 3px 0 var(--r9-brass), inset 0 1px rgb(255 255 255 / 14%), 0 7px 16px rgb(13 72 68 / 16%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button.primary, .mini-action.primary, .status-button.primary):hover:not(:disabled) {
  border-color: rgb(36 117 111 / 88%);
  background: linear-gradient(120deg, #217771, #1b5e69);
  color: #fff;
  box-shadow: inset 3px 0 #d1aa68, inset 0 1px rgb(255 255 255 / 18%), 0 10px 22px rgb(13 72 68 / 22%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button):not(.primary):not(.danger) {
  border-color: rgb(128 201 190 / 23%);
  background: rgb(8 34 41 / 72%);
  color: rgb(226 241 236 / 82%);
  box-shadow: inset 0 1px rgb(226 255 249 / 5%), 0 5px 14px rgb(0 5 8 / 17%);
}

body.owner-shell-v1:not(.auth-required) .module-tabs-shell {
  border-color: color-mix(in srgb, var(--cc-line-strong) 80%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--cc-surface-strong) 78%, transparent);
  box-shadow: inset 0 1px rgb(255 255 255 / 35%), 0 8px 20px rgb(20 52 49 / 7%);
}

body.owner-shell-v1:not(.auth-required) .tab {
  min-height: 39px;
  padding-inline: 14px;
  border-right: 1px solid color-mix(in srgb, var(--cc-line) 68%, transparent);
  border-radius: 0;
  color: var(--cc-ink-faint);
  font-size: 11px;
  font-weight: 720;
}

body.owner-shell-v1:not(.auth-required) .tab:hover,
body.owner-shell-v1:not(.auth-required) .tab:focus-visible {
  background: color-mix(in srgb, var(--cc-accent-soft) 42%, transparent);
  color: var(--cc-ink);
}

body.owner-shell-v1:not(.auth-required) .tab.active,
body.owner-shell-v1:not(.auth-required) .tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--cc-surface-strong) 88%, transparent);
  color: var(--cc-accent-strong);
  box-shadow: inset 0 -3px var(--r9-brass), inset 0 1px rgb(255 255 255 / 34%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .module-tabs-shell {
  background: rgb(5 25 32 / 78%);
  box-shadow: inset 0 1px rgb(218 255 248 / 5%), 0 12px 28px rgb(0 5 8 / 24%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .tab.active,
html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .tab[aria-selected="true"] {
  background: rgb(15 54 59 / 68%);
  color: #e8f8f3;
}

body.owner-shell-v1:not(.auth-required) #pageSub {
  display: none;
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar {
  border-color: color-mix(in srgb, var(--cc-line-strong) 80%, transparent);
  background: color-mix(in srgb, var(--cc-surface-strong) 80%, transparent);
  box-shadow: inset 0 1px rgb(255 255 255 / 36%), 0 8px 20px rgb(20 52 49 / 7%);
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar-actions {
  border-color: color-mix(in srgb, var(--cc-line-strong) 82%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--cc-surface-muted) 68%, transparent);
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar-actions .mini-action {
  min-height: 34px;
  padding-inline: 12px;
  border: 0;
  border-right: 1px solid var(--cc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cc-ink-soft);
  font-size: 11px;
  font-weight: 720;
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar-actions .mini-action:last-child {
  border-right: 0;
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar-actions .mini-action:hover,
body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar-actions .mini-action:focus-visible,
body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar-actions .module-canvas-edit[aria-pressed="true"] {
  background: color-mix(in srgb, var(--cc-accent-soft) 54%, transparent);
  color: var(--cc-accent-strong);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar {
  background: rgb(5 25 32 / 78%);
  box-shadow: inset 0 1px rgb(218 255 248 / 5%), 0 12px 28px rgb(0 5 8 / 24%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis, .stacked-kpis) {
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cc-line-strong) 82%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--cc-surface-muted) 74%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis, .stacked-kpis) > .kpi {
  border: 0;
  border-right: 1px solid var(--r95-hairline);
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 2px color-mix(in srgb, var(--r9-teal) 68%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis, .stacked-kpis) > .kpi:nth-child(4n + 2) {
  box-shadow: inset 0 2px color-mix(in srgb, var(--r9-ocean) 72%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis, .stacked-kpis) > .kpi:nth-child(4n + 3) {
  box-shadow: inset 0 2px color-mix(in srgb, var(--r9-brass) 76%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis, .stacked-kpis) > .kpi:nth-child(4n) {
  box-shadow: inset 0 2px color-mix(in srgb, var(--r9-coral) 68%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis, .stacked-kpis) > .kpi:last-child {
  border-right: 0;
}

/* Keep the finance quick-read widget readable when the canvas row is short. */
html[data-theme] body.owner-shell-v1:not(.auth-required)
  #moduleStage[data-active-module-tab="0"]
  [data-overview-canvas-widget="finance"] > .panel:first-child {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-bottom: 10px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .empty-state,
  .library-empty-state,
  .library-group-empty,
  .knowledge-empty,
  .knowledge-v2__empty,
  .knowledge-v2__atlas-empty,
  .items-v2__empty,
  .reminder-v2-empty,
  .cc-custom-info__empty,
  .cc-profile__view-empty,
  .cc-profile__structure-empty,
  .cc-profile__archive-empty
) {
  border: 1px dashed color-mix(in srgb, var(--cc-line-strong) 82%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--cc-surface-muted) 58%, transparent);
  color: var(--cc-ink-faint);
}

/* Profile becomes one identity desk followed by a dense, readable archive. */
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-canvas {
  gap: 8px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head[data-module-canvas-block] {
  min-height: 142px;
  padding: 21px 24px;
  background: linear-gradient(118deg, rgb(12 48 52 / 98%), rgb(25 78 77 / 94%));
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head h3 {
  max-width: 22ch;
  font-size: 24px;
  line-height: 1.16;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head p {
  max-width: 48ch;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__completion {
  min-height: 76px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] {
  gap: 0;
  background: color-mix(in srgb, var(--cc-surface-strong) 78%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] > div {
  min-height: 70px;
  padding: 13px 15px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid strong {
  overflow: visible;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  line-height: 1.42;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .cc-profile__structure-entry[data-module-canvas-block],
  .cc-profile__overview-foot[data-module-canvas-block]
) {
  min-height: 108px;
  padding: 14px 16px;
  background-image: linear-gradient(104deg, color-mix(in srgb, var(--cc-accent-soft) 42%, transparent), transparent 68%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure-entry > div > p,
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head :is(.cc-profile__eyebrow, p),
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__editor-head p,
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group summary small,
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure > header p {
  display: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head {
  min-height: 48px;
  padding: 9px 14px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group {
  padding: 0 14px 8px;
  border-top-width: 2px;
  background: color-mix(in srgb, var(--cc-surface-strong) 76%, transparent);
  box-shadow: inset 0 1px rgb(255 255 255 / 38%), 0 8px 20px rgb(20 52 49 / 8%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group > header {
  min-height: 41px;
  background: transparent;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field {
  grid-template-columns: minmax(104px, .31fr) minmax(0, 1fr);
  padding: 8px 3px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field dt {
  font-size: 10px;
  font-weight: 700;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field dd {
  font-size: 12px;
  line-height: 1.58;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid strong {
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .cc-profile__overview-head h3,
  .cc-profile__group > summary > span:first-child,
  .cc-profile__view-group h4
) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__editor {
  padding: 18px;
  border-top: 3px solid var(--r9-teal);
  background: color-mix(in srgb, var(--cc-surface-strong) 82%, transparent);
  box-shadow: inset 0 1px rgb(255 255 255 / 44%), 0 16px 36px rgb(20 52 49 / 10%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__editor {
  background: rgb(5 25 32 / 68%);
  box-shadow: inset 0 1px rgb(219 255 248 / 5%), 0 20px 42px rgb(0 5 8 / 29%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__editor-head {
  min-height: 52px;
  align-items: center;
  padding: 0 0 12px;
  border-bottom-color: var(--cc-line-strong);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__editor-head h3 {
  font-size: 18px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__saved-at {
  min-width: 92px;
  padding-left: 12px;
  border-left: 1px solid var(--cc-line);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__vault-notice {
  margin-block: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--r9-brass) 42%, var(--cc-line));
  border-left: 3px solid var(--r9-brass);
  border-radius: 2px;
  background: color-mix(in srgb, var(--r9-brass) 6%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__vault-notice p {
  display: block;
  margin: 3px 0 0;
  color: var(--cc-ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__archive-manager > header p {
  display: block;
  margin: 3px 0 0;
  color: var(--cc-ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--cc-line-strong);
  border-radius: 2px;
  background: color-mix(in srgb, var(--cc-surface) 68%, transparent);
  box-shadow: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group + .cc-profile__group {
  margin-top: 8px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group > summary {
  min-height: 43px;
  padding: 9px 12px;
  border-left: 3px solid var(--r9-teal);
  background: color-mix(in srgb, var(--cc-surface-muted) 72%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group:nth-child(2n) > summary {
  border-left-color: var(--r9-ocean);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group:nth-child(3n) > summary {
  border-left-color: var(--r9-brass);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group[open] > summary {
  border-bottom: 1px solid rgb(229 242 236 / 15%);
  background: linear-gradient(108deg, rgb(15 57 59 / 96%), rgb(25 76 76 / 91%));
  color: #f4faf6;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group[open] > summary :is(strong, .cc-profile__group-count) {
  color: inherit;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__fields {
  gap: 13px 12px;
  padding: 13px;
  background: color-mix(in srgb, var(--cc-surface-muted) 48%, transparent);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__actions {
  position: sticky;
  z-index: 3;
  bottom: var(--cc-mobile-content-bottom-clearance, 0px);
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--cc-line-strong);
  border-left: 3px solid var(--r9-brass);
  background: color-mix(in srgb, var(--cc-surface-strong) 91%, transparent);
  box-shadow: 0 -8px 22px rgb(17 52 48 / 9%);
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__status {
  color: var(--cc-ink-faint);
  font-size: 11px;
}

@media (max-width: 900px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head[data-module-canvas-block] {
    min-height: 120px;
    padding: 16px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] > div {
    min-height: 62px;
    padding: 11px 12px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage :is(
    .cc-profile__structure-entry[data-module-canvas-block],
    .cc-profile__overview-foot[data-module-canvas-block]
  ) {
    min-height: 0;
    padding: 12px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__editor-head {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile {
    padding-bottom: 0;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button) {
    min-height: 36px;
    padding: 7px 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile :is(.hud-button, .mini-action, .cc-profile__icon-button) {
    min-height: 44px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile .cc-profile__icon-button {
    width: 44px;
    height: 44px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__inline-field-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-canvas {
    gap: 6px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head[data-module-canvas-block] {
    min-height: 108px;
    padding: 14px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head h3 {
    font-size: 20px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head p,
  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__eyebrow {
    display: none;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__completion {
    width: 74px;
    min-width: 74px;
    min-height: 58px;
    padding-left: 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head .cc-profile__completion strong {
    font-size: 25px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid[data-module-canvas-block] > div {
    min-height: 56px;
    padding: 9px 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure-entry[data-module-canvas-block] {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__structure-entry .hud-button {
    width: 100%;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__all-fields-head {
    min-height: 44px;
    padding: 8px 11px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group {
    margin-bottom: 7px;
    padding-inline: 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    padding-block: 7px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__editor {
    padding: 12px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__editor-head,
  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__editor-tools {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__saved-at {
    display: none;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__vault-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__vault-notice .mini-action {
    grid-column: 1 / -1;
    justify-content: center;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__fields {
    padding: 10px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__actions {
    display: grid;
    bottom: calc(var(--cc-mobile-content-bottom-clearance, 86px) - 1px);
    gap: 7px;
    padding: 8px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__actions .hud-button {
    justify-content: center;
  }
}

/* R9.6 filigree pass: curved brass engraving replaces ledger stripes. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) {
  --r96-gold-line: rgb(153 112 48 / 38%);
  --r96-gold-line-soft: rgb(153 112 48 / 21%);
  --r96-gold-point: rgb(167 126 56 / 52%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) {
  --r96-gold-line: rgb(220 176 97 / 31%);
  --r96-gold-line-soft: rgb(220 176 97 / 17%);
  --r96-gold-point: rgb(228 187 111 / 50%);
}

body.owner-shell-v1:not(.auth-required) :is(.module-tabs-shell, .module-canvas-toolbar),
body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis, .stacked-kpis) {
  background-image:
    radial-gradient(ellipse 76px 36px at 100% 0, transparent 70%, var(--r96-gold-line-soft) 71% 72%, transparent 73%),
    radial-gradient(ellipse 52px 74px at 100% 0, transparent 70%, var(--r96-gold-line-soft) 71% 72%, transparent 73%);
  background-color: color-mix(in srgb, var(--cc-surface-strong) 78%, transparent);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) :is(.module-tabs-shell, .module-canvas-toolbar),
html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis, .stacked-kpis) {
  background-color: rgb(5 25 32 / 76%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .empty-state,
  .library-empty-state,
  .library-group-empty,
  .knowledge-empty,
  .knowledge-v2__empty,
  .knowledge-v2__atlas-empty,
  .items-v2__empty,
  .reminder-v2-empty,
  .cc-custom-info__empty,
  .cc-profile__view-empty,
  .cc-profile__structure-empty,
  .cc-profile__archive-empty,
  .ai-workbench__empty,
  .ai-settings__empty,
  .finance-ledger-inspector__empty,
  .library-intelligence__empty
) {
  background-image:
    radial-gradient(ellipse 108px 52px at 100% 100%, transparent 70%, var(--r96-gold-line) 71% 72%, transparent 73%),
    radial-gradient(ellipse 70px 104px at 100% 100%, transparent 70%, var(--r96-gold-line-soft) 71% 72%, transparent 73%),
    radial-gradient(circle at calc(100% - 42px) calc(100% - 34px), var(--r96-gold-point) 0 2px, transparent 3px);
  background-color: color-mix(in srgb, var(--cc-surface-muted) 58%, transparent);
}

/* Overview panels use corner scrollwork, leaving the working area quiet. */
html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: linear-gradient(112deg, rgb(255 255 255 / 14%), transparent 58%) !important;
  background-color: color-mix(in srgb, var(--cc-surface-strong) 80%, transparent);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel {
  background-image: linear-gradient(112deg, rgb(193 240 232 / 3%), transparent 58%) !important;
  background-color: rgb(5 25 32 / 66%);
}

html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -18px;
  bottom: -14px;
  width: 250px !important;
  height: 150px !important;
  border: 0;
  background-image:
    radial-gradient(ellipse 118px 58px at 100% 100%, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    radial-gradient(ellipse 82px 124px at 100% 100%, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    radial-gradient(ellipse 70px 34px at 72% 72%, transparent 66%, var(--r96-gold-line-soft) 67% 68%, transparent 69%),
    radial-gradient(ellipse 32px 62px at 72% 72%, transparent 66%, var(--r96-gold-line-soft) 67% 68%, transparent 69%),
    radial-gradient(circle at 72% 72%, var(--r96-gold-point) 0 2px, transparent 3px) !important;
  background-color: transparent !important;
  clip-path: none;
  opacity: .84 !important;
  pointer-events: none;
}

html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel > * {
  position: relative;
  z-index: 1;
}

html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] .overview-home-footer::after {
  right: 18px;
  bottom: 8px;
  width: min(42%, 360px) !important;
  height: 190px !important;
  opacity: 1;
}

html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-module-tab="0"] [data-overview-canvas-widget="footer"]:not([data-overview-canvas-widget="focus"]) > .panel.overview-home-footer::after {
  right: 24px;
  bottom: -4px;
  width: 390px !important;
  max-width: 54%;
  height: 190px !important;
  background-image:
    radial-gradient(ellipse 156px 72px at 100% 100%, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    radial-gradient(ellipse 104px 154px at 100% 100%, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    radial-gradient(ellipse 92px 42px at 63% 70%, transparent 66%, var(--r96-gold-line-soft) 67% 68%, transparent 69%),
    radial-gradient(ellipse 42px 88px at 63% 70%, transparent 66%, var(--r96-gold-line-soft) 67% 68%, transparent 69%),
    radial-gradient(ellipse 50px 24px at 37% 78%, transparent 64%, var(--r96-gold-line-soft) 65% 66%, transparent 67%),
    radial-gradient(circle at 63% 70%, var(--r96-gold-point) 0 2px, transparent 3px),
    radial-gradient(circle at 37% 78%, var(--r96-gold-point) 0 1.5px, transparent 2.5px) !important;
  filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--r9-brass) 14%, transparent));
  opacity: 1 !important;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .overview-home-footer .overview-section-head {
  border-bottom: 1px solid color-mix(in srgb, var(--r96-gold-line) 58%, transparent);
}

/* Overview paper ornament: broad, quiet botanical curves stay behind readable content. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .overview-command-deck,
  .overview-focus-panel,
  .overview-change-panel,
  .overview-signal-card
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: rgb(250 247 226 / 88%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .overview-command-deck,
  .overview-focus-panel,
  .overview-change-panel,
  .overview-signal-card
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: rgb(7 27 35 / 72%);
}

html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .overview-command-deck,
  .overview-focus-panel,
  .overview-change-panel,
  .overview-signal-card
)::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: 1;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .overview-command-deck,
  .overview-focus-panel,
  .overview-change-panel,
  .overview-signal-card
)::after {
  background-image:
    radial-gradient(ellipse 86% 148% at 106% -18%, transparent 0 58%, rgb(149 108 42 / 16%) 58.3% 58.75%, transparent 59.1% 100%),
    radial-gradient(ellipse 62% 106% at 94% 8%, transparent 0 58%, rgb(149 108 42 / 13%) 58.35% 58.8%, transparent 59.15% 100%),
    radial-gradient(ellipse 38% 66% at 78% 24%, transparent 0 54%, rgb(149 108 42 / 11%) 54.4% 54.9%, transparent 55.3% 100%),
    radial-gradient(ellipse 76% 126% at -8% 114%, transparent 0 61%, rgb(149 108 42 / 14%) 61.35% 61.8%, transparent 62.15% 100%),
    radial-gradient(ellipse 52% 88% at 12% 92%, transparent 0 58%, rgb(149 108 42 / 12%) 58.4% 58.9%, transparent 59.3% 100%),
    radial-gradient(ellipse 31% 51% at 36% 67%, transparent 0 60%, rgb(149 108 42 / 9%) 60.4% 60.9%, transparent 61.3% 100%),
    radial-gradient(ellipse 28% 46% at 62% 46%, transparent 0 61%, rgb(149 108 42 / 8%) 61.4% 61.9%, transparent 62.3% 100%),
    radial-gradient(circle at 87% 17%, rgb(149 108 42 / 18%) 0 2px, transparent 3px),
    radial-gradient(circle at 13% 84%, rgb(149 108 42 / 16%) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 54%, rgb(149 108 42 / 11%) 0 1.5px, transparent 2.5px);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .overview-command-deck,
  .overview-focus-panel,
  .overview-change-panel,
  .overview-signal-card
)::after {
  background-image:
    radial-gradient(ellipse 86% 148% at 106% -18%, transparent 0 58%, rgb(220 176 97 / 12%) 58.3% 58.75%, transparent 59.1% 100%),
    radial-gradient(ellipse 62% 106% at 94% 8%, transparent 0 58%, rgb(220 176 97 / 10%) 58.35% 58.8%, transparent 59.15% 100%),
    radial-gradient(ellipse 38% 66% at 78% 24%, transparent 0 54%, rgb(220 176 97 / 8%) 54.4% 54.9%, transparent 55.3% 100%),
    radial-gradient(ellipse 76% 126% at -8% 114%, transparent 0 61%, rgb(220 176 97 / 11%) 61.35% 61.8%, transparent 62.15% 100%),
    radial-gradient(ellipse 52% 88% at 12% 92%, transparent 0 58%, rgb(220 176 97 / 9%) 58.4% 58.9%, transparent 59.3% 100%),
    radial-gradient(ellipse 31% 51% at 36% 67%, transparent 0 60%, rgb(220 176 97 / 7%) 60.4% 60.9%, transparent 61.3% 100%),
    radial-gradient(ellipse 28% 46% at 62% 46%, transparent 0 61%, rgb(220 176 97 / 6%) 61.4% 61.9%, transparent 62.3% 100%),
    radial-gradient(circle at 87% 17%, rgb(220 176 97 / 14%) 0 2px, transparent 3px),
    radial-gradient(circle at 13% 84%, rgb(220 176 97 / 12%) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 54%, rgb(220 176 97 / 9%) 0 1.5px, transparent 2.5px);
}

html[data-theme] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .overview-command-deck,
  .overview-focus-panel,
  .overview-change-panel,
  .overview-signal-card
) > * {
  position: relative;
  z-index: 1;
}

/* Profile swaps ruled paper for restrained curved engraving. */
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head[data-module-canvas-block] {
  background:
    radial-gradient(ellipse 152px 76px at 100% 0, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    radial-gradient(ellipse 98px 148px at 100% 0, transparent 69%, var(--r96-gold-line-soft) 70% 71%, transparent 72%),
    radial-gradient(circle at calc(100% - 54px) 44px, var(--r96-gold-point) 0 2px, transparent 3px),
    linear-gradient(118deg, rgb(12 48 52 / 98%), rgb(25 78 77 / 94%));
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__overview-head[data-module-canvas-block] {
  background:
    radial-gradient(ellipse 152px 76px at 100% 0, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    radial-gradient(ellipse 98px 148px at 100% 0, transparent 69%, var(--r96-gold-line-soft) 70% 71%, transparent 72%),
    radial-gradient(circle at calc(100% - 54px) 44px, var(--r96-gold-point) 0 2px, transparent 3px),
    linear-gradient(118deg, rgb(5 25 32 / 90%), rgb(16 58 63 / 80%));
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .cc-profile__summary-grid[data-module-canvas-block],
  .cc-profile__structure-entry[data-module-canvas-block],
  .cc-profile__overview-foot[data-module-canvas-block],
  .cc-profile__view-group,
  .cc-profile__editor,
  .cc-profile__fields
) {
  background-image:
    radial-gradient(ellipse 92px 44px at 100% 100%, transparent 70%, var(--r96-gold-line-soft) 71% 72%, transparent 73%),
    radial-gradient(ellipse 60px 88px at 100% 100%, transparent 70%, var(--r96-gold-line-soft) 71% 72%, transparent 73%),
    linear-gradient(112deg, rgb(255 255 255 / 8%), transparent 60%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__group[open] > summary {
  background:
    radial-gradient(ellipse 74px 34px at 100% 50%, transparent 68%, var(--r96-gold-line) 69% 70%, transparent 71%),
    radial-gradient(ellipse 42px 68px at 100% 50%, transparent 68%, var(--r96-gold-line-soft) 69% 70%, transparent 71%),
    linear-gradient(108deg, rgb(15 57 59 / 96%), rgb(25 76 76 / 91%));
}

/* Dark command headers keep depth without ruler-line repetition. */
body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-items-v2="true"] .items-v2__header,
  [data-reminders-v2] .reminder-v2-overview-head,
  .knowledge-v2__command-bar,
  [data-command-recycle="true"] > .panel > h3
) {
  background:
    radial-gradient(ellipse 96px 44px at 100% 0, transparent 68%, var(--r96-gold-line) 69% 70%, transparent 71%),
    radial-gradient(ellipse 58px 92px at 100% 0, transparent 68%, var(--r96-gold-line-soft) 69% 70%, transparent 71%),
    linear-gradient(112deg, rgb(15 57 59 / 97%), rgb(25 76 76 / 92%));
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-items-v2="true"] .items-v2__header,
  [data-reminders-v2] .reminder-v2-overview-head,
  .knowledge-v2__command-bar,
  [data-command-recycle="true"] > .panel > h3
) {
  background:
    radial-gradient(ellipse 96px 44px at 100% 0, transparent 68%, var(--r96-gold-line) 69% 70%, transparent 71%),
    radial-gradient(ellipse 58px 92px at 100% 0, transparent 68%, var(--r96-gold-line-soft) 69% 70%, transparent 71%),
    linear-gradient(112deg, rgb(5 27 34 / 94%), rgb(15 61 65 / 86%));
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] > .panel,
body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] :is(.kpis, .compact-kpis) {
  background-image:
    radial-gradient(ellipse 112px 54px at 100% 100%, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    radial-gradient(ellipse 72px 108px at 100% 100%, transparent 69%, var(--r96-gold-line-soft) 70% 71%, transparent 72%),
    linear-gradient(112deg, rgb(255 255 251 / 12%), transparent 54%);
  background-color: var(--recycle-r9-surface);
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button):disabled,
body.owner-shell-v1:not(.auth-required) #moduleStage :is(.hud-button, .mini-action, .status-button)[aria-disabled="true"] {
  transform: none;
  border-color: color-mix(in srgb, var(--cc-line) 72%, transparent);
  background: color-mix(in srgb, var(--cc-surface-muted) 54%, transparent);
  color: var(--cc-ink-faint);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .48;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(input, select, textarea):disabled,
body.owner-shell-v1:not(.auth-required) #moduleStage :is(input, textarea)[readonly] {
  border-color: color-mix(in srgb, var(--cc-line) 72%, transparent);
  border-bottom-color: color-mix(in srgb, var(--cc-line-strong) 68%, transparent);
  background: color-mix(in srgb, var(--cc-surface-muted) 60%, transparent);
  color: var(--cc-ink-faint);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
}

@media (max-width: 640px) {
  body.owner-shell-v1:not(.auth-required) .tab {
    min-width: 72px;
    min-height: 36px;
    padding-inline: 10px;
    font-size: 11px;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis) > .kpi:nth-child(2n) {
    border-right: 0;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage :is(.kpis, .compact-kpis) > .kpi:not(:nth-last-child(-n + 2)) {
    border-bottom: 1px solid var(--r95-hairline);
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-overview-canvas-widget]:not([data-overview-canvas-widget="focus"]) > .panel::after {
    right: -52px;
    bottom: -38px;
    width: 190px !important;
    height: 116px !important;
    opacity: .62;
  }
}

/* R10 ornament library: four curved motifs, assigned by surface hierarchy. */
body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-command-library="vault"] .library-overview-actions,
  [data-command-library="vault"] .library-section-head,
  .knowledge-v2__atlas-head,
  [data-reminders-v2] .reminder-v2-search
) {
  background-image:
    radial-gradient(ellipse 16px 7px at 50% 100%, transparent 62%, var(--r96-gold-line) 64% 67%, transparent 69%),
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 62%);
  background-position: left bottom, 0 0;
  background-repeat: repeat-x, no-repeat;
  background-size: 34px 12px, auto;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-command-library="vault"] .library-summary,
  .knowledge-v2__summary,
  [data-items-v2="true"] .items-v2__summary,
  [data-reminders-v2] .reminder-v2-kpis
) {
  background-image:
    radial-gradient(ellipse 112px 54px at 100% 0, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    radial-gradient(ellipse 72px 108px at 100% 0, transparent 69%, var(--r96-gold-line-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 70px 34px at 0 100%, transparent 69%, var(--r96-gold-line-soft) 70% 71%, transparent 72%),
    radial-gradient(circle at calc(100% - 42px) 34px, var(--r96-gold-point) 0 2px, transparent 3px),
    linear-gradient(112deg, rgb(255 255 255 / 9%), transparent 62%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-command-library="vault"] .library-intelligence,
  .cc-profile__editor,
  .knowledge-v2__atlas,
  [data-items-v2="true"] .items-v2__workspace,
  [data-reminders-v2] .reminder-v2-overview
) {
  background-image:
    radial-gradient(circle at 88% 18%, transparent 0 31px, var(--r96-gold-line) 32px 33px, transparent 34px 42px, var(--r96-gold-line-soft) 43px 44px, transparent 45px),
    radial-gradient(ellipse 56px 28px at 88% 18%, transparent 66%, var(--r96-gold-line-soft) 67% 68%, transparent 69%),
    radial-gradient(ellipse 28px 54px at 88% 18%, transparent 66%, var(--r96-gold-line-soft) 67% 68%, transparent 69%),
    radial-gradient(circle at 88% 18%, var(--r96-gold-point) 0 2px, transparent 3px),
    linear-gradient(118deg, rgb(255 255 255 / 7%), transparent 58%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-command-library="vault"] .library-overview-column[data-module-canvas-block],
  [data-command-library="vault"] .library-editor-panel,
  [data-command-library="vault"] .library-group-panel,
  [data-command-library="vault"] .library-search-panel,
  [data-command-library="vault"] .library-attachments-panel,
  .cc-profile__group,
  .knowledge-v2__atlas-grid > section,
  [data-items-v2="true"] .items-v2__workspace-section
) {
  background-image:
    radial-gradient(ellipse 8px 17px at 100% 50%, transparent 61%, var(--r96-gold-line-soft) 63% 67%, transparent 69%),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 58%);
  background-position: right top, 0 0;
  background-repeat: repeat-y, no-repeat;
  background-size: 13px 36px, auto;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(4n + 1) {
  background-image:
    radial-gradient(ellipse 86px 40px at 100% 100%, transparent 68%, var(--r96-gold-line) 69% 70%, transparent 71%),
    radial-gradient(ellipse 48px 82px at 100% 100%, transparent 68%, var(--r96-gold-line-soft) 69% 70%, transparent 71%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(4n + 2) {
  background-image:
    radial-gradient(circle at 92% 16%, transparent 0 20px, var(--r96-gold-line-soft) 21px 22px, transparent 23px 29px, var(--r96-gold-line-soft) 30px 31px, transparent 32px),
    radial-gradient(circle at 92% 16%, var(--r96-gold-point) 0 1.5px, transparent 2.5px);
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(4n + 3) {
  background-image:
    radial-gradient(ellipse 15px 7px at 50% 100%, transparent 62%, var(--r96-gold-line-soft) 64% 67%, transparent 69%);
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: 32px 11px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__view-group:nth-child(4n) {
  background-image:
    radial-gradient(ellipse 7px 15px at 100% 50%, transparent 62%, var(--r96-gold-line-soft) 64% 67%, transparent 69%);
  background-position: right top;
  background-repeat: repeat-y;
  background-size: 11px 32px;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-recycle="true"] .list,
body.owner-shell-v1:not(.auth-required) #moduleStage :is(.row, .library-record, .knowledge-v2__record):hover {
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--r96-gold-line-soft) 46%, transparent), transparent 18%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-command-library="vault"] .library-summary,
  [data-command-library="vault"] .library-intelligence,
  [data-command-library="vault"] .library-overview-column[data-module-canvas-block],
  .knowledge-v2__summary,
  .knowledge-v2__atlas,
  [data-items-v2="true"] .items-v2__summary,
  [data-items-v2="true"] .items-v2__workspace,
  [data-reminders-v2] .reminder-v2-overview
) {
  background-color: rgb(5 25 32 / 66%);
}

@media (max-width: 640px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage :is(
    [data-command-library="vault"] .library-intelligence,
    .cc-profile__editor,
    .knowledge-v2__atlas,
    [data-items-v2="true"] .items-v2__workspace,
    [data-reminders-v2] .reminder-v2-overview
  ) {
    background-position: 130% -16px, 130% -16px, 130% -16px, 130% -16px, 0 0;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage :is(
    [data-command-library="vault"] .library-overview-column[data-module-canvas-block],
    [data-command-library="vault"] .library-editor-panel,
    [data-command-library="vault"] .library-group-panel,
    [data-command-library="vault"] .library-search-panel,
    [data-command-library="vault"] .library-attachments-panel,
    .cc-profile__group,
    .knowledge-v2__atlas-grid > section,
    [data-items-v2="true"] .items-v2__workspace-section
  ) {
    background-size: 10px 30px, auto;
  }
}

/* Canvas-wide ornament distribution: each successive panel gets a distinct motif. */
body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget:nth-child(4n + 1) > .panel:not(.overview-command-deck) {
  background-image:
    radial-gradient(ellipse 112px 52px at 100% 0, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    radial-gradient(ellipse 70px 108px at 100% 0, transparent 69%, var(--r96-gold-line-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 64px 30px at 0 100%, transparent 69%, var(--r96-gold-line-soft) 70% 71%, transparent 72%),
    linear-gradient(112deg, rgb(255 255 255 / 7%), transparent 58%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget:nth-child(4n + 2) > .panel:not(.overview-command-deck) {
  background-image:
    radial-gradient(ellipse 16px 7px at 50% 100%, transparent 62%, var(--r96-gold-line) 64% 67%, transparent 69%),
    radial-gradient(circle at 90% 18%, transparent 0 24px, var(--r96-gold-line-soft) 25px 26px, transparent 27px 34px, var(--r96-gold-line-soft) 35px 36px, transparent 37px),
    linear-gradient(118deg, rgb(255 255 255 / 6%), transparent 58%);
  background-position: left bottom, center, 0 0;
  background-repeat: repeat-x, no-repeat, no-repeat;
  background-size: 34px 12px, auto, auto;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget:nth-child(4n + 3) > .panel:not(.overview-command-deck) {
  background-image:
    radial-gradient(circle at 88% 18%, transparent 0 31px, var(--r96-gold-line) 32px 33px, transparent 34px 42px, var(--r96-gold-line-soft) 43px 44px, transparent 45px),
    radial-gradient(ellipse 56px 28px at 88% 18%, transparent 66%, var(--r96-gold-line-soft) 67% 68%, transparent 69%),
    radial-gradient(ellipse 28px 54px at 88% 18%, transparent 66%, var(--r96-gold-line-soft) 67% 68%, transparent 69%),
    radial-gradient(circle at 88% 18%, var(--r96-gold-point) 0 2px, transparent 3px),
    linear-gradient(118deg, rgb(255 255 255 / 6%), transparent 58%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget:nth-child(4n) > .panel:not(.overview-command-deck) {
  background-image:
    radial-gradient(ellipse 8px 17px at 100% 50%, transparent 61%, var(--r96-gold-line-soft) 63% 67%, transparent 69%),
    radial-gradient(ellipse 72px 34px at 0 100%, transparent 69%, var(--r96-gold-line) 70% 71%, transparent 72%),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 58%);
  background-position: right top, center, 0 0;
  background-repeat: repeat-y, no-repeat, no-repeat;
  background-size: 13px 36px, auto, auto;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget > .panel:not(.overview-command-deck) {
  background-color: rgb(5 25 32 / 66%);
}

@media (max-width: 760px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage .library-owner-v1 .library-entity-workspace .vault-library-list-panel {
    min-height: 0 !important;
    height: auto !important;
    max-height: min(68vh, 760px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 640px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget:nth-child(4n + 1) > .panel:not(.overview-command-deck),
  body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget:nth-child(4n + 3) > .panel:not(.overview-command-deck) {
    background-position: 130% -18px, 130% -18px, 130% -18px, 0 0;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget:nth-child(4n + 2) > .panel:not(.overview-command-deck) {
    background-size: 30px 10px, auto, auto;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .module-canvas-widget:nth-child(4n) > .panel:not(.overview-command-deck) {
    background-size: 10px 30px, auto, auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.owner-shell-v1 *,
  body.owner-shell-v1 *::before,
  body.owner-shell-v1 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* R10.1 ornament density: broader filigree distribution with distinct motif families. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) {
  --r101-gold-strong: rgb(151 108 42 / 46%);
  --r101-gold-mid: rgb(151 108 42 / 31%);
  --r101-gold-soft: rgb(151 108 42 / 18%);
  --r101-gold-glow: rgb(190 143 67 / 11%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) {
  --r101-gold-strong: rgb(229 184 103 / 38%);
  --r101-gold-mid: rgb(229 184 103 / 27%);
  --r101-gold-soft: rgb(229 184 103 / 15%);
  --r101-gold-glow: rgb(229 184 103 / 9%);
}

body.owner-shell-v1:not(.auth-required) :is(.module-canvas-toolbar, .bulk-actions-r1__bar) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.owner-shell-v1:not(.auth-required) :is(.module-canvas-toolbar, .bulk-actions-r1__bar) > * {
  position: relative;
  z-index: 1;
}

/* Interlaced scrollwork anchors the shared canvas toolbar without competing with controls. */
body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -54px;
  bottom: -58px;
  width: 210px;
  height: 112px;
  border: 0;
  background:
    radial-gradient(ellipse 104px 50px at 0 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 66px 102px at 0 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 74px 34px at 42% 78%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 42% 78%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px);
  transform: none;
  opacity: .82;
  pointer-events: none;
}

body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -34px;
  top: -46px;
  width: 176px;
  height: 112px;
  border: 0;
  background:
    radial-gradient(ellipse 96px 46px at 100% 0, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 60px 94px at 100% 0, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 64px 30px at 58% 28%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 34% 70%, var(--r101-gold-strong) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 48%, var(--r101-gold-mid) 0 1.5px, transparent 2.5px);
  transform: none;
  opacity: .84;
  pointer-events: none;
}

/* Cloud-scroll motif distinguishes the transient bulk-action rail. */
body.owner-shell-v1:not(.auth-required) .bulk-actions-r1__bar::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -42px;
  bottom: -76px;
  width: 238px;
  height: 142px;
  border: 0;
  background:
    radial-gradient(ellipse 126px 60px at 100% 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 78px 120px at 100% 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 72px 34px at 58% 74%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 36% 24%, transparent 0 15px, var(--r101-gold-soft) 16px 17px, transparent 18px),
    radial-gradient(circle at 52% 18%, var(--r101-gold-strong) 0 2px, transparent 3px);
  transform: none;
  opacity: .78;
  pointer-events: none;
}

/* Paired corner arcs make module tabs feel framed while preserving horizontal scrolling. */
body.owner-shell-v1:not(.auth-required) .module-tabs-shell {
  background-image:
    radial-gradient(ellipse 112px 52px at 0 100%, transparent 68%, var(--r101-gold-mid) 69% 70%, transparent 71%),
    radial-gradient(ellipse 68px 104px at 0 100%, transparent 68%, var(--r101-gold-soft) 69% 70%, transparent 71%),
    radial-gradient(ellipse 112px 52px at 100% 0, transparent 68%, var(--r101-gold-mid) 69% 70%, transparent 71%),
    radial-gradient(ellipse 68px 104px at 100% 0, transparent 68%, var(--r101-gold-soft) 69% 70%, transparent 71%);
  background-repeat: no-repeat;
}

/* Vault and knowledge surfaces use a fan, seal and vine vocabulary instead of one repeated corner. */
body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-command-library="vault"] .library-overview-actions,
  .knowledge-v2__atlas-head,
  [data-reminders-v2] .reminder-v2-search
) {
  background-image:
    conic-gradient(from 183deg at 0 100%, transparent 0 8deg, var(--r101-gold-soft) 8deg 10deg, transparent 10deg 20deg, var(--r101-gold-mid) 20deg 22deg, transparent 22deg 34deg, var(--r101-gold-soft) 34deg 36deg, transparent 36deg 50deg, var(--r101-gold-mid) 50deg 52deg, transparent 52deg 66deg),
    radial-gradient(ellipse 98px 46px at 100% 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 60px 94px at 100% 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 62%);
  background-position: left bottom, right bottom, right bottom, 0 0;
  background-repeat: no-repeat;
  background-size: 118px 72px, auto, auto, auto;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-library="vault"] .library-summary {
  background-image:
    radial-gradient(ellipse 118px 56px at 100% 0, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 76px 114px at 100% 0, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 96px 44px at 0 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 58px 90px at 0 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(circle at calc(100% - 44px) 34px, var(--r101-gold-strong) 0 2px, transparent 3px),
    linear-gradient(112deg, rgb(255 255 255 / 9%), transparent 62%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-command-library="vault"] .library-intelligence,
  [data-command-library="vault"] .library-overview-column,
  .knowledge-v2__atlas,
  .cc-profile__editor,
  [data-items-v2="true"] .items-v2__workspace
) {
  position: relative;
  isolation: isolate;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-command-library="vault"] .library-intelligence,
  [data-command-library="vault"] .library-overview-column,
  .knowledge-v2__atlas,
  .cc-profile__editor,
  [data-items-v2="true"] .items-v2__workspace
) > * {
  position: relative;
  z-index: 1;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  [data-command-library="vault"] .library-intelligence,
  .knowledge-v2__atlas,
  .cc-profile__editor,
  [data-items-v2="true"] .items-v2__workspace
)::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -72px;
  bottom: -64px;
  width: 292px;
  height: 166px;
  border: 0;
  background:
    radial-gradient(ellipse 142px 66px at 100% 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 88px 136px at 100% 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 88px 40px at 56% 70%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(ellipse 40px 84px at 56% 70%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 30% 22%, transparent 0 24px, var(--r101-gold-soft) 25px 26px, transparent 27px 34px, var(--r101-gold-soft) 35px 36px, transparent 37px),
    radial-gradient(circle at 56% 70%, var(--r101-gold-strong) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 18%, var(--r101-gold-strong) 0 2px, transparent 3px);
  transform: none;
  opacity: .74;
  pointer-events: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-library="vault"] .library-overview-column::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -38px;
  bottom: -42px;
  width: 176px;
  height: 106px;
  border: 0;
  background:
    radial-gradient(ellipse 86px 40px at 100% 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 52px 82px at 100% 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 54px 24px at 58% 72%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 58% 72%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px);
  transform: none;
  opacity: .66;
  pointer-events: none;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-library="vault"] .library-section-head {
  background-image:
    radial-gradient(circle at calc(100% - 24px) 50%, transparent 0 9px, var(--r101-gold-mid) 10px 11px, transparent 12px 16px, var(--r101-gold-soft) 17px 18px, transparent 19px),
    radial-gradient(circle at calc(100% - 24px) 50%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px),
    linear-gradient(90deg, rgb(255 255 255 / 4%), transparent 58%);
  background-repeat: no-repeat;
}

@media (max-width: 760px) {
  body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar::before {
    left: 0;
    bottom: 0;
    transform: scale(.54);
    transform-origin: left bottom;
  }

  body.owner-shell-v1:not(.auth-required) .module-canvas-toolbar::after {
    right: 0;
    top: 0;
    transform: scale(.54);
    transform-origin: right top;
  }
}

@media (max-width: 640px) {
  body.owner-shell-v1:not(.auth-required) .bulk-actions-r1__bar::after {
    right: 0;
    bottom: 0;
    transform: scale(.66) rotate(-8deg);
    transform-origin: right bottom;
    opacity: .58;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage :is(
    [data-command-library="vault"] .library-intelligence,
    .knowledge-v2__atlas,
    .cc-profile__editor,
    [data-items-v2="true"] .items-v2__workspace
  )::after {
    right: 0;
    bottom: 0;
    transform: scale(.48) rotate(-9deg);
    transform-origin: right bottom;
    opacity: .52;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-library="vault"] .library-overview-column::after {
    right: 0;
    bottom: 0;
    transform: scale(.52) rotate(-10deg);
    transform-origin: right bottom;
    opacity: .48;
  }
}

/* R10.2 semantic motifs: ornament follows the job of the surface, not DOM order. */
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-import-v2__head {
  background-image:
    conic-gradient(from 186deg at 0 100%, transparent 0 9deg, var(--r101-gold-soft) 9deg 11deg, transparent 11deg 23deg, var(--r101-gold-mid) 23deg 25deg, transparent 25deg 39deg, var(--r101-gold-soft) 39deg 41deg, transparent 41deg 57deg),
    radial-gradient(ellipse 118px 56px at 100% 0, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 74px 112px at 100% 0, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(circle at calc(100% - 42px) 34px, var(--r101-gold-strong) 0 2px, transparent 3px),
    linear-gradient(112deg, rgb(255 255 255 / 8%), transparent 62%);
  background-position: left bottom, center, center, center, 0 0;
  background-repeat: no-repeat;
  background-size: 120px 72px, auto, auto, auto, auto;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-import-v2__source {
  background-image:
    radial-gradient(ellipse 104px 48px at 100% 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 64px 100px at 100% 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 58px 26px at 76% 72%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 76% 72%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 58%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-import-v2__actions {
  background-image:
    conic-gradient(from 184deg at 0 100%, transparent 0 9deg, var(--r101-gold-soft) 9deg 11deg, transparent 11deg 24deg, var(--r101-gold-mid) 24deg 26deg, transparent 26deg 41deg, var(--r101-gold-soft) 41deg 43deg, transparent 43deg 58deg),
    radial-gradient(circle at calc(100% - 24px) 50%, transparent 0 9px, var(--r101-gold-mid) 10px 11px, transparent 12px 16px, var(--r101-gold-soft) 17px 18px, transparent 19px),
    radial-gradient(circle at calc(100% - 24px) 50%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 66%);
  background-position: left bottom, right center, right center, 0 0;
  background-repeat: no-repeat;
  background-size: 112px 68px, auto, auto, auto;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .ai-workbench__query {
  background-image:
    radial-gradient(ellipse 112px 52px at 100% 0, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 70px 108px at 100% 0, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 62px 28px at 72% 30%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 72% 30%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 60%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .ai-workbench__pane-head {
  background-image:
    radial-gradient(circle at calc(100% - 22px) 50%, transparent 0 8px, var(--r101-gold-mid) 9px 10px, transparent 11px 15px, var(--r101-gold-soft) 16px 17px, transparent 18px),
    radial-gradient(circle at calc(100% - 22px) 50%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px),
    linear-gradient(90deg, rgb(255 255 255 / 4%), transparent 58%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .ai-workbench__state {
  background-image:
    radial-gradient(circle at calc(100% - 38px) calc(100% - 32px), transparent 0 22px, var(--r101-gold-mid) 23px 24px, transparent 25px 31px, var(--r101-gold-soft) 32px 33px, transparent 34px),
    radial-gradient(ellipse 46px 22px at calc(100% - 38px) calc(100% - 32px), transparent 66%, var(--r101-gold-soft) 67% 68%, transparent 69%),
    radial-gradient(ellipse 22px 44px at calc(100% - 38px) calc(100% - 32px), transparent 66%, var(--r101-gold-soft) 67% 68%, transparent 69%),
    radial-gradient(circle at calc(100% - 38px) calc(100% - 32px), var(--r101-gold-strong) 0 2px, transparent 3px);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-custom-info__heading {
  background-image:
    radial-gradient(ellipse 112px 52px at 100% 0, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 70px 108px at 100% 0, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 68px 31px at 70% 30%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 70% 30%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 60%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-custom-info__overview-section:nth-of-type(odd) {
  background-image:
    radial-gradient(ellipse 98px 46px at 100% 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 60px 94px at 100% 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 58%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .cc-custom-info__overview-section:nth-of-type(even) {
  background-image:
    radial-gradient(circle at 92% 18%, transparent 0 24px, var(--r101-gold-mid) 25px 26px, transparent 27px 34px, var(--r101-gold-soft) 35px 36px, transparent 37px),
    radial-gradient(ellipse 48px 23px at 92% 18%, transparent 66%, var(--r101-gold-soft) 67% 68%, transparent 69%),
    radial-gradient(ellipse 23px 46px at 92% 18%, transparent 66%, var(--r101-gold-soft) 67% 68%, transparent 69%),
    radial-gradient(circle at 92% 18%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px),
    linear-gradient(112deg, rgb(255 255 255 / 4%), transparent 58%);
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-settings="true"] > .panel {
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-settings="true"] > [data-tab-panel="settings-workspace"] {
  background-image:
    radial-gradient(circle at 91% 18%, transparent 0 28px, var(--r101-gold-mid) 29px 30px, transparent 31px 38px, var(--r101-gold-soft) 39px 40px, transparent 41px),
    radial-gradient(ellipse 54px 26px at 91% 18%, transparent 66%, var(--r101-gold-soft) 67% 68%, transparent 69%),
    radial-gradient(ellipse 26px 52px at 91% 18%, transparent 66%, var(--r101-gold-soft) 67% 68%, transparent 69%),
    radial-gradient(circle at 91% 18%, var(--r101-gold-strong) 0 2px, transparent 3px),
    linear-gradient(112deg, rgb(255 255 255 / 6%), transparent 58%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-settings="true"] > [data-tab-panel="settings-sidebar"] {
  background-image:
    conic-gradient(from 184deg at 0 100%, transparent 0 9deg, var(--r101-gold-soft) 9deg 11deg, transparent 11deg 24deg, var(--r101-gold-mid) 24deg 26deg, transparent 26deg 41deg, var(--r101-gold-soft) 41deg 43deg, transparent 43deg 58deg),
    radial-gradient(ellipse 98px 46px at 100% 0, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 60px 94px at 100% 0, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 58%);
  background-position: left bottom, center, center, 0 0;
  background-size: 110px 66px, auto, auto, auto;
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-settings="true"] > [data-tab-panel="settings-export"] {
  background-image:
    radial-gradient(ellipse 126px 60px at 100% 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 78px 120px at 100% 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 72px 34px at 67% 72%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 67% 72%, var(--r101-gold-strong) 0 2px, transparent 3px),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 58%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-settings="true"] > [data-tab-panel="settings-privacy"] {
  background-image:
    radial-gradient(circle at calc(100% - 38px) calc(100% - 34px), transparent 0 22px, var(--r101-gold-mid) 23px 24px, transparent 25px 31px, var(--r101-gold-soft) 32px 33px, transparent 34px),
    radial-gradient(circle at calc(100% - 38px) calc(100% - 34px), var(--r101-gold-strong) 0 2px, transparent 3px),
    linear-gradient(112deg, rgb(255 255 255 / 4%), transparent 58%);
}

body.owner-shell-v1:not(.auth-required) #moduleStage [data-command-settings="true"] > [data-tab-panel="settings-boundary"] {
  background-image:
    radial-gradient(ellipse 110px 52px at 100% 0, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 68px 106px at 100% 0, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 90px 42px at 0 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 54px 86px at 0 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 58%);
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .cc-import-v2__head,
  .cc-import-v2__source,
  .cc-import-v2__actions,
  .ai-workbench__query,
  .ai-workbench__pane-head,
  .ai-workbench__state,
  .cc-custom-info__heading,
  .cc-custom-info__overview-section,
  [data-command-settings="true"] > .panel
) {
  background-color: rgb(5 25 32 / 66%);
}

@media (max-width: 640px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage :is(
    .cc-import-v2__head,
    .cc-import-v2__source,
    .ai-workbench__query,
    .cc-custom-info__heading,
    .cc-custom-info__overview-section,
    [data-command-settings="true"] > .panel
  ) {
    background-position: 140% -18px, 140% -18px, 140% -18px, 140% -18px, 0 0;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage :is(.cc-import-v2__actions, .ai-workbench__pane-head) {
    background-size: 84px 52px, auto, auto, auto;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .ai-workbench__state {
    background-position: 136% 128%, 136% 128%, 136% 128%, 136% 128%;
  }
}

/* R10.3 bookplate accents close the remaining flat knowledge and profile surfaces. */
body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__summary {
  background-image:
    conic-gradient(from 184deg at 0 100%, transparent 0 9deg, var(--r101-gold-soft) 9deg 11deg, transparent 11deg 24deg, var(--r101-gold-mid) 24deg 26deg, transparent 26deg 41deg, var(--r101-gold-soft) 41deg 43deg, transparent 43deg 58deg),
    radial-gradient(circle at calc(100% - 32px) 28px, transparent 0 15px, var(--r101-gold-mid) 16px 17px, transparent 18px 23px, var(--r101-gold-soft) 24px 25px, transparent 26px),
    radial-gradient(ellipse 38px 18px at calc(100% - 32px) 28px, transparent 66%, var(--r101-gold-soft) 67% 68%, transparent 69%),
    radial-gradient(ellipse 18px 36px at calc(100% - 32px) 28px, transparent 66%, var(--r101-gold-soft) 67% 68%, transparent 69%),
    radial-gradient(circle at calc(100% - 32px) 28px, var(--r101-gold-strong) 0 1.5px, transparent 2.5px),
    linear-gradient(112deg, rgb(255 255 255 / 6%), transparent 58%) !important;
  background-position: left bottom, right top, right top, right top, right top, 0 0;
  background-repeat: no-repeat;
  background-size: 104px 64px, auto, auto, auto, auto, auto;
}

body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__atlas {
  background-image:
    radial-gradient(ellipse 124px 58px at 100% 0, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 76px 118px at 100% 0, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 106px 50px at 0 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 64px 102px at 0 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(circle at calc(100% - 44px) 34px, var(--r101-gold-strong) 0 2px, transparent 3px),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 58%) !important;
  background-repeat: no-repeat;
}

body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .cc-profile__summary-grid[data-module-canvas-block],
  .cc-profile__structure-entry[data-module-canvas-block],
  .cc-profile__overview-foot[data-module-canvas-block]
) {
  background-image:
    radial-gradient(ellipse 94px 44px at 100% 100%, transparent 69%, var(--r101-gold-mid) 70% 71%, transparent 72%),
    radial-gradient(ellipse 56px 90px at 100% 100%, transparent 69%, var(--r101-gold-soft) 70% 71%, transparent 72%),
    radial-gradient(ellipse 62px 28px at 72% 72%, transparent 67%, var(--r101-gold-soft) 68% 69%, transparent 70%),
    radial-gradient(circle at 72% 72%, var(--r101-gold-strong) 0 1.5px, transparent 2.5px),
    linear-gradient(112deg, rgb(255 255 255 / 5%), transparent 58%) !important;
  background-repeat: no-repeat;
}

html[data-theme="night"] body.owner-shell-v1:not(.auth-required) #moduleStage :is(
  .knowledge-v2__summary,
  .knowledge-v2__atlas,
  .cc-profile__summary-grid[data-module-canvas-block],
  .cc-profile__structure-entry[data-module-canvas-block],
  .cc-profile__overview-foot[data-module-canvas-block]
) {
  background-color: rgb(5 25 32 / 66%);
}

@media (max-width: 640px) {
  body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__summary {
    background-position: -36px 112%, 132% -14px, 132% -14px, 132% -14px, 132% -14px, 0 0;
    background-size: 82px 50px, auto, auto, auto, auto, auto;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage .knowledge-v2__atlas {
    background-position: 142% -18px, 142% -18px, -58px 112%, -58px 112%, 142% -18px, 0 0;
  }

  body.owner-shell-v1:not(.auth-required) #moduleStage :is(
    .cc-profile__summary-grid[data-module-canvas-block],
    .cc-profile__structure-entry[data-module-canvas-block],
    .cc-profile__overview-foot[data-module-canvas-block]
  ) {
    background-position: 142% 112%, 142% 112%, 142% 112%, 142% 112%, 0 0;
  }
}

/* R10.6 compact desktop truth: 1280px keeps night controls in the top bar. */
@media (min-width: 1024px) and (max-width: 1319px) {
  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) {
    --cc-night-rail-width: 0px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .topbar {
    grid-template-columns: minmax(220px, 310px) minmax(280px, 1fr) auto;
    gap: 12px;
    padding-inline: 18px;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .status {
    position: static;
    display: flex;
    width: auto;
    min-width: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) :is(
    .formal-signal-head,
    .formal-signal-context,
    .formal-signal-meter,
    #clock
  ) {
    display: none;
  }

  html[data-theme] body.owner-shell-v1:not(.auth-required) .status > .dot {
    display: block;
    width: 7px;
    min-width: 7px;
    height: 7px;
  }

  html[data-theme] body.owner-shell-v1:not(.auth-required) #workspaceStatus {
    display: block;
    max-width: 112px;
    overflow: hidden;
    color: var(--cc-ink-soft);
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) :is(
    [data-theme-mode-toggle],
    .owner-global-search-trigger,
    .ai-fab,
    .status-button
  ) {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .owner-global-search-trigger span {
    display: none;
  }

  html[data-theme="night"] body.owner-shell-v1:not(.auth-required) .status-button {
    width: 48px;
    min-width: 48px;
    margin-top: 0;
  }
}

/* R10.6 profile readability: long personal text remains available, not silently clamped. */
body.owner-shell-v1:not(.auth-required) #moduleStage .cc-profile__summary-grid strong[data-profile-summary="interests"] {
  display: block;
  max-height: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}
