/* VIS-B001: one visual owner for the 8788-inspired archive direction. */
:root {
  --vu-ink: #143b39;
  --vu-ink-soft: #54736d;
  --vu-brass: #bd8a38;
  --vu-brass-hi: #e8c878;
  --vu-brass-deep: #815a1f;
  --vu-paper: #f5f0df;
  --vu-paper-soft: rgba(250, 248, 237, .86);
  --vu-teal: #0c4b49;
  --vu-teal-soft: #1e756b;
  --vu-shadow: rgba(12, 42, 39, .22);
}

body.owner-shell-v1:not(.auth-required) {
  color: var(--vu-ink);
  background-color: #0b3c38;
  background-image: linear-gradient(120deg, rgba(4, 38, 35, .7), rgba(10, 66, 60, .38)), url("../assets/day-archive-r1.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body.owner-shell-v1:not(.auth-required) #commandCenterShell {
  position: relative;
  isolation: isolate;
  margin: 14px;
  min-height: calc(100dvh - 28px);
  border: 3px solid var(--vu-brass);
  border-radius: 18px 5px 18px 5px;
  box-shadow: inset 0 0 0 3px rgba(236, 205, 130, .84), inset 0 0 0 9px rgba(115, 79, 25, .74), 0 22px 58px rgba(0, 18, 17, .3);
}

body.owner-shell-v1:not(.auth-required) #commandCenterShell::before,
body.owner-shell-v1:not(.auth-required) #commandCenterShell::after {
  position: absolute;
  z-index: 3;
  width: 86px;
  height: 18px;
  content: "";
  pointer-events: none;
  background: var(--vu-brass);
  box-shadow: 0 0 0 3px var(--vu-brass-deep), 0 0 0 6px rgba(240, 212, 143, .72);
}

body.owner-shell-v1:not(.auth-required) #commandCenterShell::before { top: -9px; left: 15%; transform: translateX(-50%) rotate(-1deg); }
body.owner-shell-v1:not(.auth-required) #commandCenterShell::after { right: 13%; bottom: -9px; transform: translateX(50%) rotate(1deg); }

body.owner-shell-v1:not(.auth-required) .sidebar {
  position: relative;
  z-index: 1;
  margin: 10px;
  border: 2px solid var(--vu-brass);
  border-radius: 16px 4px 16px 4px;
  background: linear-gradient(160deg, rgba(5, 50, 46, .96), rgba(6, 39, 38, .9)), url("../assets/black-linen-open.png");
  background-blend-mode: normal, soft-light;
  box-shadow: inset 0 0 0 2px rgba(232, 200, 120, .35), inset 0 0 0 6px rgba(118, 79, 24, .35), 12px 0 28px rgba(0, 24, 21, .22);
}

body.owner-shell-v1:not(.auth-required) .sidebar .brand,
body.owner-shell-v1:not(.auth-required) .sidebar .nav,
body.owner-shell-v1:not(.auth-required) .sidebar .pin-button,
body.owner-shell-v1:not(.auth-required) .sidebar .pinned {
  position: relative;
  z-index: 1;
}

body.owner-shell-v1:not(.auth-required) .sidebar .mark {
  border: 3px solid var(--vu-brass);
  border-radius: 50%;
  background: rgba(5, 41, 39, .8);
  box-shadow: 0 0 0 4px rgba(232, 200, 120, .2), inset 0 0 0 1px rgba(255, 240, 185, .5);
}

body.owner-shell-v1:not(.auth-required) .sidebar .brand h1,
body.owner-shell-v1:not(.auth-required) .sidebar .brand small { color: #f1d38b; }
body.owner-shell-v1:not(.auth-required) .sidebar .nav a { color: #e6eee3; }
body.owner-shell-v1:not(.auth-required) .sidebar .nav a[aria-current="page"] {
  border: 1px solid var(--vu-brass-hi);
  background: linear-gradient(135deg, var(--vu-teal-soft), #125c57);
  box-shadow: inset 0 0 0 2px rgba(243, 212, 135, .18), 0 7px 16px rgba(0, 20, 18, .25);
}

body.owner-shell-v1:not(.auth-required) .main { position: relative; z-index: 1; background: transparent; }
body.owner-shell-v1:not(.auth-required) .topbar {
  margin: 10px 10px 0;
  border: 1px solid rgba(222, 191, 113, .68);
  border-radius: 8px 2px 8px 2px;
  background: rgba(245, 241, 226, .9);
  box-shadow: 0 8px 20px rgba(13, 44, 40, .16), inset 0 0 0 2px rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px) saturate(108%);
}

body.owner-shell-v1:not(.auth-required) .workspace {
  background: transparent;
}

body.owner-shell-v1:not(.auth-required) .formal-workbench-intro {
  margin: 18px 18px 10px;
  padding: 20px 24px;
  border: 1px solid rgba(230, 198, 119, .55);
  border-radius: 10px 3px 10px 3px;
  background: linear-gradient(120deg, rgba(6, 49, 46, .9), rgba(19, 86, 77, .72)), url("../assets/arches-open.png");
  background-blend-mode: normal, soft-light;
  box-shadow: inset 0 0 0 2px rgba(240, 211, 142, .18), 0 14px 28px var(--vu-shadow);
}

body.owner-shell-v1:not(.auth-required) .formal-workbench-intro h1,
body.owner-shell-v1:not(.auth-required) .formal-workbench-intro p,
body.owner-shell-v1:not(.auth-required) .formal-workbench-intro span { color: #f7f0d9; }
body.owner-shell-v1:not(.auth-required) .formal-workbench-intro h1 { font-family: "STKaiti", "KaiTi", Georgia, serif; letter-spacing: .035em; }

/* The frame is built from borders and inset rings, never content-crossing pseudo artwork. */
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.module-canvas-widget, .overview-canvas-widget) > .panel::before,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.module-canvas-widget, .overview-canvas-widget) > .panel::after {
  display: none !important;
  content: none !important;
}

body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--vu-brass) !important;
  border-radius: 10px 3px 10px 3px !important;
  background-color: var(--vu-paper-soft) !important;
  background-image: linear-gradient(135deg, rgba(255, 253, 245, .72), rgba(229, 216, 177, .34)), url("../assets/paper-fibers-open.png") !important;
  background-blend-mode: normal, multiply !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .62), inset 0 0 0 6px rgba(189, 138, 56, .17), inset 0 0 0 10px rgba(129, 90, 31, .12), 0 16px 30px var(--vu-shadow) !important;
}

body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck {
  border-width: 4px !important;
  border-style: double !important;
  border-color: var(--vu-brass) !important;
  border-radius: 16px 5px 16px 5px !important;
  background-image: linear-gradient(120deg, rgba(7, 48, 45, .96), rgba(22, 91, 81, .88)), url("../assets/arabesque-open.png") !important;
  background-blend-mode: normal, soft-light !important;
  box-shadow: inset 0 0 0 3px rgba(238, 204, 124, .72), inset 0 0 0 8px rgba(122, 83, 27, .5), 0 22px 44px rgba(7, 28, 26, .3) !important;
}

body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck > * { position: relative; z-index: 1; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck :is(h3, h4, p, strong, small, span) { text-shadow: none; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck :is(h3, h4, p, strong, small, span) { color: #f7f0d9 !important; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-home-head { background: transparent; border-bottom: 1px solid rgba(238, 204, 124, .5); }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-context-strip { background: rgba(3, 34, 33, .54); border-top: 1px solid rgba(238, 204, 124, .55); }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-signal-card { background: rgba(244, 238, 214, .94); border: 1px solid var(--vu-brass); color: var(--vu-ink); }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-signal-card * { color: var(--vu-ink) !important; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-task-row > span:not(:first-child) strong,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-change-row > span:not(:first-child) strong,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-task-row > span:not(:first-child) small,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-change-row > span:not(:first-child) small { color: #f4ead0 !important; -webkit-text-fill-color: #f4ead0 !important; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-task-row > span:first-child,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-change-row > span:first-child,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-task-row > span:first-child strong,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-change-row > span:first-child strong,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-task-row > span:first-child small,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-change-row > span:first-child small { color: #f4ead0 !important; -webkit-text-fill-color: #f4ead0 !important; }

body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] [data-overview-canvas-widget] > .panel {
  border-color: rgba(189, 138, 56, .86) !important;
  background-image: linear-gradient(135deg, rgba(255, 253, 245, .8), rgba(235, 224, 189, .5)), url("../assets/paper-fibers-open.png") !important;
}
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] [data-overview-canvas-widget="timeline"] > .panel,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] [data-overview-canvas-widget="recent"] > .panel {
  background-image: linear-gradient(135deg, rgba(7, 56, 52, .96), rgba(20, 86, 77, .9)), url("../assets/black-linen-open.png") !important;
  background-blend-mode: normal, soft-light !important;
  color: #f7f0d9 !important;
}
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] [data-overview-canvas-widget="timeline"] > .panel * { color: #f7f0d9 !important; }

body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel { border-color: #b98232 !important; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel { border-color: #9b6b86 !important; background-image: linear-gradient(135deg, rgba(255, 250, 243, .83), rgba(237, 218, 224, .5)), url("../assets/arches-open.png") !important; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel { border-color: #c68b3b !important; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel { background-image: linear-gradient(135deg, rgba(255, 252, 241, .84), rgba(225, 230, 216, .5)), url("../assets/black-linen-open.png") !important; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel { border-left-width: 5px !important; border-left-color: var(--vu-teal-soft) !important; }
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="settings"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel { border-style: double !important; border-width: 3px !important; }

/* AI workbench: bring the live assistant surface into the same archive family. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench {
  position: relative;
  overflow: hidden;
  border: 3px double var(--vu-brass) !important;
  border-radius: 14px 4px 14px 4px !important;
  background-image: linear-gradient(135deg, rgba(248, 245, 232, .96), rgba(224, 232, 218, .86)), url("../assets/paper-fibers-open.png") !important;
  background-blend-mode: normal, multiply !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .74), inset 0 0 0 7px rgba(189, 138, 56, .16), 0 18px 36px rgba(12, 42, 39, .24) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench__header {
  background: linear-gradient(120deg, rgba(7, 52, 49, .98), rgba(20, 91, 81, .93)), url("../assets/arabesque-open.png") !important;
  background-blend-mode: normal, soft-light !important;
  border-bottom: 2px solid rgba(189, 138, 56, .74) !important;
  box-shadow: inset 0 -3px 0 rgba(238, 204, 124, .22) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench__header :is(h2, .ai-workbench__eyebrow, .ai-workbench__status-rail span) { color: #f7f0d9 !important; -webkit-text-fill-color: #f7f0d9 !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench__status-rail span { border-color: rgba(232, 200, 120, .5) !important; background: rgba(255, 250, 229, .12) !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench__result {
  border: 2px solid rgba(189, 138, 56, .52) !important;
  border-radius: 9px 3px 9px 3px !important;
  background-image: linear-gradient(135deg, rgba(255, 253, 246, .9), rgba(232, 224, 197, .52)), url("../assets/arches-open.png") !important;
  background-blend-mode: normal, soft-light !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72), inset 0 0 0 6px rgba(189, 138, 56, .12) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench__state { border-color: rgba(189, 138, 56, .48) !important; background: rgba(7, 52, 49, .08) !important; }

body.owner-shell-v1:not(.auth-required) :is(button, .mini-action, .hud-button, .tab, input, select, textarea) { border-radius: 4px; }
body.owner-shell-v1:not(.auth-required) :is(button, .mini-action, .hud-button):not(.nav a) { border-color: rgba(166, 119, 45, .5); box-shadow: inset 0 1px rgba(255, 255, 255, .55), 0 3px 8px rgba(20, 48, 42, .1); }

@media (max-width: 760px) {
  body.owner-shell-v1:not(.auth-required) #commandCenterShell { margin: 6px; min-height: calc(100dvh - 12px); border-radius: 10px 3px 10px 3px; }
  body.owner-shell-v1:not(.auth-required) .sidebar { margin: 6px; }
  body.owner-shell-v1:not(.auth-required) .topbar { margin: 6px 6px 0; }
  body.owner-shell-v1:not(.auth-required) .formal-workbench-intro { margin: 10px 10px 8px; padding: 14px; }
  body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.module-canvas-widget, .overview-canvas-widget) > .panel { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), inset 0 0 0 5px rgba(189, 138, 56, .15), 0 8px 18px rgba(12, 42, 39, .16) !important; }
}

/* VIS-R20-B2 FINAL CASCADE GUARD (must remain last): never stretch a full-page frame into card content. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .knowledge-v2__overview-panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] .library-overview-panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  background-image: linear-gradient(135deg, rgba(255, 252, 241, .94), rgba(231, 223, 195, .76)), url("../assets/paper-grid.png") !important;
  background-position: center, center !important;
  background-size: auto, 180px 180px !important;
  background-repeat: no-repeat, repeat !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  background-image: linear-gradient(135deg, rgba(255, 250, 243, .94), rgba(239, 218, 226, .8)), url("../assets/linen-gold.png") !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="settings"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench {
 background-image: linear-gradient(135deg, rgba(245, 241, 222, .94), rgba(214, 225, 214, .76)), url("../assets/gold-scale-open.png") !important;
  background-position: center, center !important;
  background-size: auto, 160px 160px !important;
  background-repeat: no-repeat, repeat !important;
}

/* VIS-R20-B2 r26: mount the downloaded artwork as real perimeter borders via nine-slice, never as a tiled fill. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] .library-overview-panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 18px solid transparent !important;
  border-image-source: url("../assets/methode-cover-border.svg") !important;
  border-image-slice: 520 fill !important;
  border-image-width: 18px !important;
  border-image-outset: 3px !important;
  border-image-repeat: stretch !important;
}
/* VIS-R20-B2 r27: actual module panels are direct descendants of moduleStage in several routes. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] .panel {
  border: 16px solid transparent !important;
  border-image-source: url("../assets/methode-cover-border.svg") !important;
  border-image-slice: 520 fill !important;
  border-image-width: 16px !important;
  border-image-outset: 2px !important;
  border-image-repeat: stretch !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] .panel {
  border: 14px solid transparent !important;
  border-image-source: url("../assets/rit-yearbook-border-1922.svg") !important;
  border-image-slice: 520 fill !important;
  border-image-width: 14px !important;
  border-image-outset: 2px !important;
  border-image-repeat: stretch !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="settings"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .panel {
  border: 12px solid transparent !important;
  border-image-source: url("../assets/de-arithmetica-borders.svg") !important;
  border-image-slice: 70 fill !important;
  border-image-width: 12px !important;
  border-image-outset: 2px !important;
  border-image-repeat: stretch !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 16px solid transparent !important;
  border-image-source: url("../assets/rit-yearbook-border-1922.svg") !important;
  border-image-slice: 520 fill !important;
  border-image-width: 16px !important;
  border-image-outset: 3px !important;
  border-image-repeat: stretch !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .knowledge-v2__overview-panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="settings"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench {
  border: 14px solid transparent !important;
  border-image-source: url("../assets/de-arithmetica-borders.svg") !important;
  border-image-slice: 70 fill !important;
  border-image-width: 14px !important;
  border-image-outset: 2px !important;
  border-image-repeat: stretch !important;
}

/* VIS-R20-B2 correction: full-page ornamental SVGs are reference assets, not tiled card fills. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .knowledge-v2__overview-panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] .library-overview-panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  background-image: linear-gradient(135deg, rgba(255, 252, 241, .94), rgba(231, 223, 195, .76)), url("../assets/paper-grid.png") !important;
  background-position: center, center !important;
  background-size: auto, 180px 180px !important;
  background-repeat: no-repeat, repeat !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 3px double #a87427 !important;
  box-shadow: inset 0 0 0 3px rgba(255, 247, 216, .88), inset 0 0 0 8px rgba(168, 116, 39, .2), 0 14px 28px rgba(74, 48, 21, .2) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  background-image: linear-gradient(135deg, rgba(255, 250, 243, .94), rgba(239, 218, 226, .8)), url("../assets/linen-gold.png") !important;
  border: 2px solid #a86d82 !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 3px solid #c58a35 !important;
  border-radius: 12px 4px 12px 4px !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .knowledge-v2__overview-panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] .library-overview-panel {
  border: 2px solid #8b6b3e !important;
  box-shadow: inset 0 0 0 3px rgba(139, 107, 62, .18), inset 0 0 0 8px rgba(255, 249, 222, .65), 0 14px 28px rgba(74, 48, 21, .16) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 2px solid #9b702e !important;
  box-shadow: inset 0 0 0 3px rgba(155, 112, 46, .18), inset 0 0 0 8px rgba(255, 249, 222, .65), 0 14px 28px rgba(74, 48, 21, .16) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="settings"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench {
 background-image: linear-gradient(135deg, rgba(245, 241, 222, .94), rgba(214, 225, 214, .76)), url("../assets/gold-scale-open.png") !important;
  background-position: center, center !important;
  background-size: auto, 160px 160px !important;
  background-repeat: no-repeat, repeat !important;
}

/* GOLD-B001: intentional card dialects layered over the existing archive base. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck {
  background-image: linear-gradient(120deg, rgba(7, 48, 45, .97), rgba(22, 91, 81, .9)), url("../assets/arabesque-open.png") !important;
  background-size: auto, 420px 420px !important;
  border-width: 5px !important;
  box-shadow: inset 0 0 0 2px rgba(255, 239, 180, .84), inset 0 0 0 8px rgba(126, 82, 25, .62), inset 0 0 0 12px rgba(232, 200, 120, .2), 0 24px 50px rgba(4, 29, 26, .38) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] .panel {
  border: 3px double #b98232 !important;
  background-image: linear-gradient(rgba(255, 252, 239, .88), rgba(244, 234, 205, .74)), url("../assets/paper-fibers-open.png") !important;
  background-size: auto, 260px 260px !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72), inset 0 0 0 7px rgba(185,130,50,.16), 0 14px 28px rgba(58,40,18,.18) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] .panel :is(.metric,.kpi,.stat,.summary-value) strong { color: #7c4e16 !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .panel {
  border: 3px solid #8b6c3a !important;
  border-radius: 3px 12px 3px 12px !important;
  background-image: linear-gradient(135deg, rgba(255, 253, 245, .9), rgba(223, 229, 213, .72)), url("../assets/arches-open.png") !important;
  background-size: auto, 340px 340px !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.78), inset 0 0 0 8px rgba(117,91,44,.12), 0 14px 28px rgba(31,56,46,.16) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .panel > :is(h2,h3,h4,.panel-title,[data-card-title]) { font-family: Georgia, "Times New Roman", serif !important; letter-spacing: .02em; color: #385449 !important; }

/* GOLD-B002: licensed texture overlays add material depth without replacing the original scene. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck {
  background-image: linear-gradient(120deg, rgba(7, 48, 45, .94), rgba(22, 91, 81, .86)), url("../assets/gold-damask.png"), url("../assets/arabesque-open.png") !important;
  background-size: auto, 220px 220px, 420px 420px !important;
  background-blend-mode: normal, soft-light, soft-light !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] .panel {
  background-image: linear-gradient(rgba(255, 252, 239, .86), rgba(244, 234, 205, .68)), url("../assets/paper-grid.png"), url("../assets/paper-fibers-open.png") !important;
  background-size: auto, 180px 180px, 260px 260px !important;
  background-blend-mode: normal, multiply, multiply !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .panel {
  background-image: linear-gradient(135deg, rgba(255, 253, 245, .88), rgba(223, 229, 213, .68)), url("../assets/paper-grid.png"), url("../assets/arches-open.png") !important;
  background-size: auto, 210px 210px, 340px 340px !important;
  background-blend-mode: normal, soft-light, soft-light !important;
}

/* Priority repair: these rules intentionally outrank the legacy art layers. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar {
  border: 2px solid var(--vu-brass) !important;
  background: linear-gradient(160deg, rgba(5, 50, 46, .96), rgba(6, 39, 38, .92)), url("../assets/black-linen-open.png") !important;
  background-blend-mode: normal, soft-light !important;
  box-shadow: inset 0 0 0 2px rgba(232, 200, 120, .35), inset 0 0 0 6px rgba(118, 79, 24, .35), 12px 0 28px rgba(0, 24, 21, .22) !important;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .topbar {
  border: 1px solid rgba(230, 198, 119, .62) !important;
  background: rgba(7, 52, 49, .9) !important;
  color: #f7f0d9 !important;
  box-shadow: 0 10px 24px rgba(0, 24, 21, .22), inset 0 0 0 2px rgba(240, 211, 142, .12) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .topbar :is(h2, span, button, .status) { color: #f7f0d9 !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .topbar :is(button, .global-search-mount button, .ai-fab, .status-button) {
  border: 1px solid rgba(232, 200, 120, .78) !important;
  background: rgba(245, 240, 221, .94) !important;
  color: var(--vu-ink) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 3px 8px rgba(0, 22, 20, .16) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .topbar :is(button, .global-search-mount button, .ai-fab, .status-button) svg,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .topbar :is(button, .global-search-mount button, .ai-fab, .status-button) i { color: var(--vu-ink) !important; }

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar .nav a,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar .nav a span,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar .nav a svg,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar .nav a i,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar .pin-button,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar .pinned a {
  color: #f0e7c9 !important;
  -webkit-text-fill-color: #f0e7c9 !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .sidebar .nav a[aria-current="page"] {
  color: #fff3c4 !important;
  -webkit-text-fill-color: #fff3c4 !important;
}

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .formal-workbench-intro {
  border: 3px double var(--vu-brass) !important;
  background-image: linear-gradient(115deg, rgba(248, 244, 229, .97), rgba(231, 222, 192, .86)), url("../assets/paper-fibers-open.png") !important;
  background-blend-mode: normal, multiply !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .68), inset 0 0 0 6px rgba(189, 138, 56, .16), 0 18px 34px rgba(12, 42, 39, .2) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .formal-workbench-intro :is(h1, p, span, small) { color: var(--vu-ink) !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .formal-workbench-intro h1 { text-shadow: 0 1px 0 rgba(255, 255, 255, .72) !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .formal-workbench-intro::before,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) .formal-workbench-intro::after { display: none !important; content: none !important; }

html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck {
  border: 4px double var(--vu-brass) !important;
  border-radius: 16px 5px 16px 5px !important;
  background-image: linear-gradient(120deg, rgba(7, 48, 45, .97), rgba(22, 91, 81, .9)), url("../assets/arabesque-open.png") !important;
  background-blend-mode: normal, soft-light !important;
  box-shadow: inset 0 0 0 3px rgba(238, 204, 124, .72), inset 0 0 0 8px rgba(122, 83, 27, .5), 0 22px 44px rgba(7, 28, 26, .3) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::before,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::after,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-task-row::before,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-change-row::before {
  display: none !important;
  content: none !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .muted-row > span:first-child,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .muted-row > span:first-child strong,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .muted-row > span:first-child small {
  color: #f4ead0 !important;
  -webkit-text-fill-color: #f4ead0 !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-task-row > span:first-child > small:last-child,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-change-row > span:first-child > small:last-child {
  color: #f4ead0 !important;
  -webkit-text-fill-color: #f4ead0 !important;
}
/* GOLD-B002 final cascade */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck { background-image: linear-gradient(120deg, rgba(7,48,45,.94), rgba(22,91,81,.86)), url("../assets/gold-damask.png"), url("../assets/arabesque-open.png") !important; background-size: auto, 220px 220px, 420px 420px !important; background-blend-mode: normal, soft-light, soft-light !important; border-width: 5px !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] .panel { background-image: linear-gradient(rgba(255,252,239,.86), rgba(244,234,205,.68)), url("../assets/paper-grid.png"), url("../assets/paper-fibers-open.png") !important; background-size: auto, 180px 180px, 260px 260px !important; background-blend-mode: normal, multiply, multiply !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .panel { background-image: linear-gradient(135deg, rgba(255,253,245,.88), rgba(223,229,213,.68)), url("../assets/paper-grid.png"), url("../assets/arches-open.png") !important; background-size: auto, 210px 210px, 340px 340px !important; background-blend-mode: normal, soft-light, soft-light !important; }

/* GOLD-B003: make the imported ornament visibly present while preserving text contrast. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck { background-image: linear-gradient(120deg, rgba(5,42,39,.9), rgba(15,78,69,.78)), url("../assets/gold-damask.png") !important; background-size: auto, 150px 150px !important; background-blend-mode: normal, screen !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck > * { position: relative; z-index: 2; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck :is(h1,h2,h3,h4,p,strong,small,span,a,button) { position: relative; z-index: 3; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] .panel { background-image: linear-gradient(rgba(255,252,239,.82), rgba(244,234,205,.62)), url("../assets/paper-grid.png") !important; background-size: auto, 140px 140px !important; background-blend-mode: normal, multiply !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .panel { background-image: linear-gradient(135deg, rgba(255,253,245,.84), rgba(223,229,213,.62)), url("../assets/paper-grid.png") !important; background-size: auto, 160px 160px !important; background-blend-mode: normal, multiply !important; }

/* LUX-B001: visible corner ornaments and a framed title plaque, kept behind content. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck { isolation: isolate; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::before,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::after { display: block !important; content: "" !important; position: absolute; z-index: 1; pointer-events: none; width: 84px; height: 84px; border: 3px solid rgba(238,204,124,.72); opacity: .9; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; box-shadow: 10px 10px 0 -7px rgba(189,138,56,.8); }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; box-shadow: -10px -10px 0 -7px rgba(189,138,56,.8); }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-home-head { position: relative; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-home-head::after { content: "PERSONAL ARCHIVE"; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 4px 18px; border: 2px solid #c28a35; background: #f2d58b; color: #173f3b; font: 700 10px/1.1 Georgia, serif; letter-spacing: .16em; box-shadow: inset 0 0 0 2px rgba(255,250,220,.8), 0 4px 8px rgba(0,25,22,.25); }

/* Contrast pass: explicit readable ink for every text role on dark feature cards. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck :is(.overview-eyebrow,.overview-label,.overview-caption,.muted,.muted-row,.empty-state,.overview-task-row,.overview-change-row) { color: #f6ecd2 !important; -webkit-text-fill-color: #f6ecd2 !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck :is(a,button) { color: #173f3b !important; -webkit-text-fill-color: #173f3b !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck :is(button,.mini-action) { background: rgba(246, 237, 205, .94) !important; border-color: rgba(232, 200, 120, .86) !important; color: #173f3b !important; -webkit-text-fill-color: #173f3b !important; }

/* FRAME-B001: a deliberate multi-ring luxury frame, not a single outline. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck {
  border: 7px solid #a87427 !important;
  outline: 2px solid #f0cf79;
  outline-offset: -11px;
  background-image: linear-gradient(120deg, rgba(5,42,39,.9), rgba(15,78,69,.78)), url("../assets/gold-damask.png") !important;
  background-size: auto, 120px 120px !important;
  box-shadow: inset 0 0 0 2px #f7dfa0, inset 0 0 0 5px #6f4818, inset 0 0 0 9px rgba(238,204,124,.95), inset 0 0 0 13px rgba(111,72,24,.72), inset 0 0 0 17px rgba(247,223,160,.34), 0 0 0 1px #4e3212, 0 18px 42px rgba(3,24,22,.42) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::before,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::after {
  width: 112px !important; height: 112px !important; border: 0 !important; opacity: 1 !important; z-index: 1 !important;
  background: radial-gradient(circle at center, transparent 0 27px, rgba(242,213,139,.95) 28px 30px, transparent 31px 40px, rgba(126,82,25,.9) 41px 44px, transparent 45px), conic-gradient(from 45deg, transparent 0 8deg, rgba(239,203,116,.95) 9deg 13deg, transparent 14deg 28deg, rgba(126,82,25,.9) 29deg 34deg, transparent 35deg 52deg) !important;
  filter: drop-shadow(0 2px 1px rgba(41,25,7,.55));
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::before { top: 8px !important; left: 8px !important; border-radius: 0 100% 0 0 !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::after { right: 8px !important; bottom: 8px !important; transform: rotate(180deg); border-radius: 0 100% 0 0 !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-home-head::after { top: 8px !important; padding: 5px 24px !important; border: 3px double #8c5d1e !important; background: linear-gradient(#f8e5a8,#d9a94a) !important; box-shadow: inset 0 0 0 2px #fff2c7, 0 3px 0 #6d4618, 0 6px 12px rgba(0,20,16,.3) !important; }

/* ORN-B001: use the supplied palace reference as a real four-sided frame asset. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::before { inset: 0 !important; width: auto !important; height: auto !important; border: 0 !important; border-radius: 0 !important; background: url("../assets/ornate-frame-top-tight.png") top center / 100% 54px no-repeat, url("../assets/ornate-frame-bottom-tight.png") bottom center / 100% 54px no-repeat, url("../assets/ornate-frame-left-tight.png") center left / 38px 100% no-repeat, url("../assets/ornate-frame-right-tight.png") center right / 38px 100% no-repeat !important; opacity: .98 !important; filter: drop-shadow(0 1px 1px rgba(48,30,7,.55)); }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::after { inset: 0 !important; width: auto !important; height: auto !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck > * { position: relative; z-index: 3 !important; }

/* ORN-B001 cleanup: the ornate asset is the frame owner; remove every older metal ring. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 42px rgba(3,24,22,.34) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::after {
  inset: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ORN-B001 safety geometry: ornament stays in a narrow perimeter, content starts inside it. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::before {
  inset: 0 !important;
  background-size: 100% 54px, 100% 54px, 38px 100%, 38px 100% !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::after { inset: 0 !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-home-head { padding: 52px 38px 18px !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-home-head::after { top: 12px !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-home-head::after { z-index: 5 !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck :is(.overview-context-strip,.overview-command-body,.overview-command-grid) { padding-left: 38px !important; padding-right: 38px !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] [data-overview-canvas-widget="timeline"] > .panel :is(p,small,span,strong,dt,dd) { color: #f8efd8 !important; -webkit-text-fill-color: #f8efd8 !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] [data-overview-canvas-widget="recent"] > .panel :is(p,small,span,strong,dt,dd) { color: #173f3b !important; -webkit-text-fill-color: #173f3b !important; }
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] .panel :is(.muted,.helper-text,.empty-state,.field-help,.subtitle) { color: #31534d !important; -webkit-text-fill-color: #31534d !important; }

/* ORN-B001 perimeter correction: let the supplied frame wrap the card edge. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck {
  overflow: hidden !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::before {
  inset: 10px !important;
  background-size: 100% 32px, 100% 32px, 24px 100%, 24px 100% !important;
  z-index: 4 !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck > * {
  z-index: 3 !important;
}

/* ORN-B001 final direction: the frame belongs outside the green card. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck::before {
  display: none !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-canvas-widget {
  position: relative !important;
  overflow: visible !important;
  z-index: 1 !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-canvas-widget::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: -16px !important;
  pointer-events: none !important;
  z-index: 4 !important;
  background: url("../assets/ornate-frame-top-tight.png") top center / 100% 32px no-repeat, url("../assets/ornate-frame-bottom-tight.png") bottom center / 100% 32px no-repeat, url("../assets/ornate-frame-side-tight.png") center left / 32px 100% no-repeat, url("../assets/ornate-frame-side-mirror-tight.png") center right / 32px 100% no-repeat !important;
  filter: drop-shadow(0 1px 1px rgba(48,30,7,.55));
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-canvas-widget:not(:has(> .overview-command-deck))::before {
  display: none !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-canvas-widget:not(:has(> .overview-command-deck)) {
  z-index: auto !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-canvas-widget > .overview-command-deck {
  position: relative !important;
  z-index: 2 !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-context-strip,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-signal-card {
  color: #f7f0d9 !important;
  text-shadow: 0 1px 2px rgba(0, 19, 17, .9) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck .overview-context-strip {
  margin: 0 !important;
  width: auto !important;
}

/* ORN-B001 r20: keep the frame centered on the card edge and make both side rails visually complete. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-canvas-widget:has(> .overview-command-deck)::before {
  inset: -12px !important;
  background-image: url("../assets/ornate-frame-top-tight.png"), url("../assets/ornate-frame-bottom-tight.png"), url("../assets/ornate-frame-side-tight.png"), url("../assets/ornate-frame-side-mirror-tight.png") !important;
  background-position: top center, bottom center, center left, center right !important;
  background-size: 100% 58px, 100% 64px, 52px 100%, 52px 100% !important;
  background-repeat: no-repeat !important;
  filter: contrast(1.12) saturate(1.08) drop-shadow(0 2px 1px rgba(48, 30, 7, .58)) !important;
}

/* The four summary tiles need their own opaque reading surface over the patterned card. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck > .overview-context-strip {
  position: relative !important;
  z-index: 6 !important;
  padding: 0 52px 18px !important;
  background: transparent !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck > .overview-context-strip .overview-signal-card {
  background: rgba(248, 239, 211, .97) !important;
  border: 1px solid rgba(196, 145, 55, .95) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 252, 236, .76), 0 5px 12px rgba(0, 31, 27, .22) !important;
  opacity: 1 !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="overview"] .overview-command-deck > .overview-context-strip .overview-signal-card :is(span, strong, small) {
  color: #123f3a !important;
  -webkit-text-fill-color: #123f3a !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* VIS-R20-B2: module-specific material dialects. The homepage r20 rules above remain untouched. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 3px double #a87427 !important;
  background-image: linear-gradient(135deg, rgba(255, 248, 224, .9), rgba(236, 213, 164, .68)), url("../assets/methode-cover-border.svg") !important;
  background-position: center, center !important;
  background-size: auto, 100% 100% !important;
  background-repeat: no-repeat !important;
  font-family: Georgia, "Times New Roman", serif;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 2px solid #a86d82 !important;
  box-shadow: inset 0 0 0 4px rgba(168, 109, 130, .2), inset 0 0 0 8px rgba(255, 244, 237, .7), 0 14px 28px rgba(74, 32, 54, .18) !important;
  background-image: linear-gradient(135deg, rgba(255, 250, 243, .94), rgba(241, 220, 228, .75)), url("../assets/rit-yearbook-border-1922.svg") !important;
  background-position: center, center !important;
  background-size: auto, 100% 100% !important;
  background-repeat: no-repeat !important;
  font-family: "STKaiti", "KaiTi", Georgia, serif;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 3px solid #c58a35 !important;
  border-radius: 12px 4px 12px 4px !important;
  box-shadow: inset 0 0 0 3px rgba(255, 247, 216, .9), inset 0 0 0 7px rgba(197, 138, 53, .28), 0 14px 28px rgba(67, 41, 12, .2) !important;
  background-image: linear-gradient(135deg, rgba(255, 252, 240, .94), rgba(239, 220, 171, .7)), url("../assets/de-arithmetica-borders.svg") !important;
  background-position: center, center !important;
  background-size: auto, 100% 100% !important;
  background-repeat: no-repeat !important;
  font-family: Georgia, "Times New Roman", serif;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 2px solid #7c5d38 !important;
  background-image: linear-gradient(135deg, rgba(250, 246, 230, .92), rgba(221, 211, 179, .65)), url("../assets/de-arithmetica-borders.svg") !important;
  background-position: center, center !important;
  background-size: auto, 100% 100% !important;
  background-repeat: no-repeat !important;
  font-family: Georgia, "Times New Roman", serif;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 2px solid #9b702e !important;
  background-image: linear-gradient(135deg, rgba(247, 240, 216, .92), rgba(212, 198, 158, .62)), url("../assets/methode-cover-border.svg") !important;
  background-position: center, center !important;
  background-size: auto, 100% 100% !important;
  background-repeat: no-repeat !important;
  font-family: Georgia, "Times New Roman", serif;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="settings"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  border: 3px double #b47a2d !important;
  background-image: linear-gradient(135deg, rgba(245, 241, 222, .9), rgba(214, 225, 214, .7)), url("../assets/arches-open.png") !important;
  background-position: center, center !important;
  background-size: auto, 180px 180px !important;
  background-repeat: no-repeat, repeat !important;
  font-family: "STKaiti", "KaiTi", Georgia, serif;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .knowledge-v2__overview-panel {
  border: 2px solid #7c5d38 !important;
  background-image: linear-gradient(135deg, rgba(250, 246, 230, .94), rgba(221, 211, 179, .7)), url("../assets/de-arithmetica-borders.svg") !important;
  background-position: center, center !important;
  background-size: auto, 100% 100% !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 0 0 4px rgba(124, 93, 56, .16), 0 14px 28px rgba(74, 48, 21, .16) !important;
  font-family: Georgia, "Times New Roman", serif;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] .library-overview-panel {
  border: 3px double #9b702e !important;
  background-image: linear-gradient(135deg, rgba(247, 240, 216, .94), rgba(212, 198, 158, .68)), url("../assets/methode-cover-border.svg") !important;
  background-position: center, center !important;
  background-size: auto, 100% 100% !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 0 0 4px rgba(155, 112, 46, .18), 0 14px 28px rgba(56, 38, 15, .2) !important;
  font-family: Georgia, "Times New Roman", serif;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench {
  border: 3px double #b47a2d !important;
  background-image: linear-gradient(135deg, rgba(245, 241, 222, .94), rgba(214, 225, 214, .76)), url("../assets/arches-open.png") !important;
  background-position: center, center !important;
  background-size: auto, 180px 180px !important;
  background-repeat: no-repeat, repeat !important;
  box-shadow: inset 0 0 0 3px rgba(255, 251, 229, .8), inset 0 0 0 8px rgba(180, 122, 45, .18), 0 18px 36px rgba(12, 42, 39, .22) !important;
  font-family: "STKaiti", "KaiTi", Georgia, serif;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.module-canvas-widget, .overview-canvas-widget) > .panel :is(h1, h2, h3, h4, .panel-title, .section-title) {
  font-family: "STKaiti", "KaiTi", Georgia, serif;
  letter-spacing: .025em;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.module-canvas-widget, .overview-canvas-widget) > .panel :is(p, small, label, td, th, input, select, textarea, button) {
  font-size: clamp(13px, .88rem, 15px);
}
@media (max-width: 760px) {
  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
    background-size: auto, 100% 100% !important;
  }
  html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.module-canvas-widget, .overview-canvas-widget) > .panel :is(p, small, label, td, th, input, select, textarea, button) {
    font-size: 13px;
  }
}

/* VIS-R20-B2 r24 hard stop: keep full-page SVG candidates out of card fills. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .knowledge-v2__overview-panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] .library-overview-panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  background-image: linear-gradient(135deg, rgba(255, 252, 241, .94), rgba(231, 223, 195, .76)), url("../assets/paper-grid.png") !important;
  background-position: center, center !important;
  background-size: auto, 180px 180px !important;
  background-repeat: no-repeat, repeat !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel {
  background-image: linear-gradient(135deg, rgba(255, 250, 243, .94), rgba(239, 218, 226, .8)), url("../assets/linen-gold.png") !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="settings"] :is(.module-canvas-widget, .overview-canvas-widget) > .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench {
  background-image: linear-gradient(135deg, rgba(245, 241, 222, .94), rgba(214, 225, 214, .76)), url("../assets/gold-damask.png") !important;
  background-position: center, center !important;
  background-size: auto, 160px 160px !important;
  background-repeat: no-repeat, repeat !important;
}

/* VIS-R20-B2 r27 last-word: bind the perimeter to actual module panels. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] .panel {
  border: 16px solid transparent !important;
  border-image: url("../assets/methode-cover-border.svg") 520 fill / 16px / 2px stretch !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] .panel {
  border: 14px solid transparent !important;
  border-image: url("../assets/rit-yearbook-border-1922.svg") 520 fill / 14px / 2px stretch !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="settings"] .panel,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .panel {
  border: 12px solid transparent !important;
  border-image: url("../assets/de-arithmetica-borders.svg") 70 fill / 12px / 2px stretch !important;
}
/* VIS-R20-B2 r29: visible main cards own the frame; hidden tab panels stay untouched. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] .panel:not(.tab-panel-hidden),
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] .panel:not(.tab-panel-hidden),
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="reminders"] .panel:not(.tab-panel-hidden),
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="knowledge"] .panel:not(.tab-panel-hidden),
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="vault"] .panel:not(.tab-panel-hidden),
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="items"] .panel:not(.tab-panel-hidden),
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="settings"] .panel:not(.tab-panel-hidden) {
  border: 12px solid transparent !important;
  border-image: url("../assets/de-arithmetica-borders.svg") 70 fill / 12px / 2px stretch !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="finance"] .finance-overview-workbench {
  border-image: url("../assets/methode-cover-border.svg") 520 fill / 16px / 2px stretch !important;
  background-image: linear-gradient(135deg, rgba(255, 252, 241, .94), rgba(231, 223, 195, .76)), url("../assets/paper-grid.png") !important;
  background-size: auto, 180px 180px !important;
  background-repeat: no-repeat, repeat !important;
}
/* VIS-R20-B2 r31: information cards inside each workbench get their own readable perimeter. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.kpi, .metric, .summary-card, .finance-overview-filter-bar, .finance-overview-range-control, .workbench-actions, .finance-overview-ledger, .finance-overview-hot-days, .finance-overview-anomalies, .finance-overview-assets, .people-overview-card, .reminder-card, .knowledge-v2__metric, .library-overview-actions) {
  position: relative !important;
  border: 1px solid rgba(176, 126, 47, .72) !important;
  border-radius: 8px 3px 8px 3px !important;
  background-image: linear-gradient(135deg, rgba(255, 252, 241, .94), rgba(235, 226, 198, .74)), url("../assets/paper-grid.png") !important;
  background-position: center, center !important;
  background-size: auto, 120px 120px !important;
  background-repeat: no-repeat, repeat !important;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 237, .72), inset 0 0 0 4px rgba(176, 126, 47, .14), 0 4px 10px rgba(43, 34, 16, .12) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.kpi, .metric, .summary-card, .finance-overview-filter-bar, .finance-overview-range-control, .workbench-actions, .finance-overview-ledger, .finance-overview-hot-days, .finance-overview-anomalies, .finance-overview-assets, .people-overview-card, .reminder-card, .knowledge-v2__metric, .library-overview-actions)::after {
  content: "" !important;
  position: absolute !important;
  inset: 5px !important;
  pointer-events: none !important;
  border: 1px solid rgba(189, 138, 56, .32) !important;
  border-radius: 5px 2px 5px 2px !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] :is(.kpi, .metric, .summary-card, .finance-overview-filter-bar, .finance-overview-range-control, .workbench-actions, .finance-overview-ledger, .finance-overview-hot-days, .finance-overview-anomalies, .finance-overview-assets, .people-overview-card, .reminder-card, .knowledge-v2__metric, .library-overview-actions) > * {
  position: relative !important;
  z-index: 1 !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="people"] :is(.people-overview-card, .metric)::after {
  border-color: rgba(168, 109, 130, .38) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] :is(.ai-workbench__result, .ai-workbench__state)::after {
  content: "" !important;
  position: absolute !important;
  inset: 5px !important;
  border: 1px solid rgba(180, 122, 45, .3) !important;
  pointer-events: none !important;
}
/* VIS-R20-B2 r30: use the proven gold four-side PNG frame for visible module cards. */
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] .panel:not(.tab-panel-hidden),
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench {
  position: relative !important;
  overflow: visible !important;
  border: 0 !important;
  border-image: none !important;
  isolation: isolate;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] .panel:not(.tab-panel-hidden)::before,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: -7px !important;
  pointer-events: none !important;
  z-index: 8 !important;
  background: url("../assets/ornate-frame-top-tight.png") top center / 100% 26px no-repeat, url("../assets/ornate-frame-bottom-tight.png") bottom center / 100% 26px no-repeat, url("../assets/ornate-frame-side-tight.png") center left / 26px 100% no-repeat, url("../assets/ornate-frame-side-mirror-tight.png") center right / 26px 100% no-repeat !important;
  filter: drop-shadow(0 1px 1px rgba(48, 30, 7, .58)) !important;
}
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view] .panel:not(.tab-panel-hidden) > *,
html[data-theme="day"] body.owner-shell-v1:not(.auth-required) #moduleStage[data-active-view="ai-workbench"] .ai-workbench > * {
  position: relative !important;
  z-index: 2 !important;
}
