/* Owner Tech V2: dark personal-data cockpit skin. Layout stays owned by module CSS. */
html:has(body.owner-shell-v1) {
  background: #06110f;
  color-scheme: dark;
}

body.owner-shell-v1 {
  --cc-canvas: #06110f;
  --cc-surface: #0b1d1a;
  --cc-surface-muted: #0f2521;
  --cc-surface-strong: #15302a;
  --cc-ink: #e7f4ef;
  --cc-ink-soft: #a2bbb3;
  --cc-ink-faint: #77968c;
  --cc-line: #21463e;
  --cc-line-strong: #397166;
  --cc-nav: #040d0c;
  --cc-nav-hover: #0d2621;
  --cc-nav-active: #123d35;
  --cc-accent: #39d5c1;
  --cc-accent-strong: #77f1df;
  --cc-accent-soft: #12372f;
  --cc-blue: #58bce8;
  --cc-blue-soft: #102b38;
  --cc-danger: #ff6b79;
  --cc-danger-soft: #32181e;
  --cc-warning: #f0b95d;
  --cc-warning-soft: #302717;
  --cc-shadow-float: 0 18px 50px rgb(0 0 0 / 42%);

  --product-bg: var(--cc-canvas);
  --product-surface: var(--cc-surface);
  --product-surface-soft: var(--cc-surface-muted);
  --product-sidebar: var(--cc-nav);
  --product-sidebar-muted: #88aaa0;
  --product-text: var(--cc-ink);
  --product-muted: var(--cc-ink-soft);
  --product-line: var(--cc-line);
  --product-line-strong: var(--cc-line-strong);
  --product-accent: var(--cc-accent);
  --product-accent-soft: var(--cc-accent-soft);
  --product-red: var(--cc-danger);
  --product-amber: var(--cc-warning);
  --product-green: #45d69b;
  --product-blue: var(--cc-blue);
  --product-violet: #79c8d1;

  --bg0: #030908;
  --bg1: #061511;
  --surface: rgb(11 29 26 / 96%);
  --surface-strong: rgb(15 37 33 / 98%);
  --surface-soft: rgb(7 23 20 / 88%);
  --line: var(--cc-line);
  --line-strong: var(--cc-line-strong);
  --line-soft: #19372f;
  --text: var(--cc-ink);
  --muted: var(--cc-ink-soft);
  --cyan: var(--cc-accent);
  --blue: var(--cc-blue);
  --green: #45d69b;
  --red: var(--cc-danger);
  --amber: var(--cc-warning);
  --violet: #79c8d1;
  --panel-radius: 4px;
  --control-radius: 4px;
  --panel-shadow: 0 14px 36px rgb(0 0 0 / 22%);
  --glass-highlight: rgb(122 235 218 / 3%);

  background: var(--cc-canvas);
  color: var(--cc-ink);
  font-family: "Bahnschrift", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

body.owner-shell-v1 .shell,
body.owner-shell-v1 .main {
  background: var(--cc-canvas);
}

body.owner-shell-v1 .workspace {
  background-color: var(--cc-canvas);
  background-image:
    linear-gradient(rgb(71 142 129 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(71 142 129 / 7%) 1px, transparent 1px);
  background-size: 32px 32px;
}

body.owner-shell-v1 ::selection {
  background: #1c6c5f;
  color: #f4fffc;
}

body.owner-shell-v1 * {
  scrollbar-color: #397166 #091814;
}

body.owner-shell-v1 .sidebar {
  border-right-color: #2a5c52;
  background: #040d0c;
  box-shadow: inset -1px 0 0 rgb(57 213 193 / 8%);
}

body.owner-shell-v1 .brand {
  border-bottom-color: #173a33;
}

body.owner-shell-v1 .mark {
  border-color: #397f72;
  border-radius: 3px;
  background: #0c2b25;
  box-shadow: inset 0 0 16px rgb(57 213 193 / 10%);
  color: #92f6e7;
}

body.owner-shell-v1 .brand h1 {
  color: #f0fbf7;
}

body.owner-shell-v1 .brand small,
body.owner-shell-v1 .cc-shell-nav__group-label {
  color: #73978c;
}

body.owner-shell-v1 #primaryNav .cc-shell-nav__item {
  color: #a3bdb5;
}

body.owner-shell-v1 #primaryNav .cc-shell-nav__item:hover {
  background: #0d2621;
  color: #ecfaf6;
}

body.owner-shell-v1 #primaryNav .cc-shell-nav__item[aria-current="page"],
body.owner-shell-v1 #primaryNav .cc-shell-nav__item.active {
  background: #123d35;
  box-shadow: inset 2px 0 0 var(--cc-accent);
  color: #dffff8;
}

body.owner-shell-v1 .pin-button,
body.owner-shell-v1 .nav.pinned a {
  border-color: #21463e;
  background: #071713;
  color: #8eafa5;
}

body.owner-shell-v1 .nav.pinned {
  border-top-color: #173a33;
}

body.owner-shell-v1 .pin-button:hover,
body.owner-shell-v1 .nav.pinned a:hover,
body.owner-shell-v1 .nav.pinned a:focus-visible {
  border-color: #397166;
  background: #0d2923;
  color: #e7f7f2;
}

body.owner-shell-v1 .topbar {
  border-bottom-color: #21463e;
  background: rgb(8 24 21 / 98%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
}

body.owner-shell-v1 .title h2 {
  color: #eefaf6;
  text-shadow: none;
}

body.owner-shell-v1 .title > span:not(.mobile-app-label),
body.owner-shell-v1 .status {
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 .mobile-app-label {
  color: var(--cc-accent);
}

body.owner-shell-v1 .command {
  border-color: #32675d;
  border-radius: 4px;
  background: #071713;
  box-shadow: inset 3px 0 0 rgb(57 213 193 / 34%);
  color: #7ff2df;
}

body.owner-shell-v1 .command:focus-within {
  border-color: var(--cc-accent);
  box-shadow: inset 3px 0 0 var(--cc-accent), 0 0 0 2px rgb(57 213 193 / 12%);
}

body.owner-shell-v1 .command input,
body.owner-shell-v1 .command input:disabled {
  color: var(--cc-ink);
}

body.owner-shell-v1 .command input::placeholder,
body.owner-shell-v1 .ai-query-form input::placeholder {
  color: #698b81;
}

body.owner-shell-v1 .dot {
  background: #45d69b;
  box-shadow: 0 0 10px rgb(69 214 155 / 46%);
}

body.owner-shell-v1 .status-button,
body.owner-shell-v1 .ai-fab,
body.owner-shell-v1 .module-tabs-nav {
  border-color: #2d5b52;
  border-radius: 4px;
  background: #0b201c;
  color: #d8eee7;
}

body.owner-shell-v1 .status-button:hover,
body.owner-shell-v1 .ai-fab:hover,
body.owner-shell-v1 .module-tabs-nav:hover {
  border-color: var(--cc-accent);
  background: #12372f;
  color: #8ff4e4;
}

body.owner-shell-v1 .module-tabs-shell {
  border-color: #21463e;
  border-radius: 4px;
  background: #091916;
}

body.owner-shell-v1 .tabs {
  border-bottom-color: #21463e;
  background: transparent;
}

body.owner-shell-v1 .tab {
  border-bottom-color: transparent;
  background: transparent;
  color: #8eaba2;
}

body.owner-shell-v1 .tab:hover {
  border-color: #397166;
  background: #0f2924;
  color: #e4f5ef;
}

body.owner-shell-v1 .tab.active {
  border-color: var(--cc-accent);
  background: #0d2621;
  box-shadow: inset 0 -1px 0 var(--cc-accent);
  color: #77f1df;
}

/* Shared operational surfaces */
body.owner-shell-v1 .panel,
body.owner-shell-v1 .ai-panel {
  border-color: var(--cc-line);
  border-radius: 4px;
  background: var(--cc-surface);
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgb(123 240 220 / 3%);
  color: var(--cc-ink);
  backdrop-filter: none;
}

body.owner-shell-v1 .panel::before,
body.owner-shell-v1 .panel::after,
body.owner-shell-v1 .ai-panel::before {
  display: none;
}

body.owner-shell-v1 .panel h3,
body.owner-shell-v1 .panel h4,
body.owner-shell-v1 .answer-card h4 {
  color: var(--cc-ink);
  letter-spacing: 0;
  text-shadow: none;
}

body.owner-shell-v1 .microcopy,
body.owner-shell-v1 .muted,
body.owner-shell-v1 .muted-row,
body.owner-shell-v1 .field small,
body.owner-shell-v1 .row small {
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 .kpis {
  border-color: var(--cc-line);
  background: #0a1b18;
}

body.owner-shell-v1 .kpi {
  border-color: var(--cc-line);
  border-radius: 3px;
  background: #0e2420;
  box-shadow: none;
}

body.owner-shell-v1 .kpi span {
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 .row {
  border-color: #193a33;
  background: transparent;
}

body.owner-shell-v1 .row:hover {
  background: #102923;
}

body.owner-shell-v1 .row strong:not(.cyan):not(.green):not(.red):not(.amber):not(.violet) {
  color: var(--cc-ink);
}

body.owner-shell-v1 .tag,
body.owner-shell-v1 .library-type-chip,
body.owner-shell-v1 .library-state-chip {
  border-color: #315f56;
  background: #102823;
  color: #b7d1c9;
}

body.owner-shell-v1 .cyan,
body.owner-shell-v1 .violet {
  color: var(--cc-blue);
}

body.owner-shell-v1 .green {
  color: #45d69b;
}

body.owner-shell-v1 .red {
  color: var(--cc-danger);
}

body.owner-shell-v1 .amber {
  color: var(--cc-warning);
}

body.owner-shell-v1 .hud-button,
body.owner-shell-v1 .mini-action,
body.owner-shell-v1 .workbench-actions a,
body.owner-shell-v1 .segmented-option,
body.owner-shell-v1 .settings-pin-reorder {
  border-color: #315f56;
  border-radius: 4px;
  background: #0a1b18;
  box-shadow: none;
  color: #d6e9e3;
}

body.owner-shell-v1 .hud-button:hover,
body.owner-shell-v1 .mini-action:hover,
body.owner-shell-v1 .workbench-actions a:hover,
body.owner-shell-v1 .segmented-option:hover,
body.owner-shell-v1 .settings-pin-reorder:hover:not(:disabled) {
  border-color: var(--cc-accent);
  background: #12372f;
  box-shadow: 0 0 0 1px rgb(57 213 193 / 8%);
  color: #8ff4e4;
  transform: none;
}

body.owner-shell-v1 .hud-button.primary,
body.owner-shell-v1 .mini-action.primary,
body.owner-shell-v1 .library-overview-actions .is-primary {
  border-color: #43ddc8;
  background: #147866;
  color: #f3fffc;
}

body.owner-shell-v1 .hud-button.danger,
body.owner-shell-v1 .mini-action.danger {
  border-color: #8a3d48;
  background: #2b171c;
  color: #ff9aa5;
}

body.owner-shell-v1 .segmented-control {
  border-color: #294f47;
  background: #071713;
}

body.owner-shell-v1 .segmented-option.active,
body.owner-shell-v1 .segmented-option[aria-pressed="true"] {
  border-color: #397166;
  background: #15372f;
  box-shadow: inset 0 -2px 0 var(--cc-accent);
  color: #82f2e1;
}

body.owner-shell-v1 :where(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
) {
  border-color: #315f56;
  background-color: #071713;
  color: var(--cc-ink);
}

body.owner-shell-v1 :where(input, select, textarea):focus,
body.owner-shell-v1 :where(input, select, textarea):focus-visible,
body.owner-shell-v1 :where(button, a, summary):focus-visible {
  border-color: var(--cc-accent);
  outline: 2px solid rgb(57 213 193 / 38%);
  outline-offset: 1px;
  box-shadow: none;
}

body.owner-shell-v1 input::placeholder,
body.owner-shell-v1 textarea::placeholder {
  color: #67877e;
  opacity: 1;
}

body.owner-shell-v1 select option {
  background: #0b1d1a;
  color: var(--cc-ink);
}

body.owner-shell-v1 input[type="checkbox"],
body.owner-shell-v1 input[type="radio"] {
  accent-color: var(--cc-accent);
}

body.owner-shell-v1 input[type="file"]::file-selector-button {
  border-color: #315f56;
  background: #102823;
  color: #d6e9e3;
}

body.owner-shell-v1 .overview-signal-card,
body.owner-shell-v1 .finance-overview-signal,
body.owner-shell-v1 .answer-card,
body.owner-shell-v1 .system-strip,
body.owner-shell-v1 .library-signal-strip {
  border-color: var(--cc-line);
  background: var(--cc-surface-muted);
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 .bar,
body.owner-shell-v1 .bar-track,
body.owner-shell-v1 .progress-track,
body.owner-shell-v1 .chart-track {
  background: #17362f;
}

/* Finance, FullCalendar and Tabulator */
body.owner-shell-v1 .finance-grid {
  --finance-tech-surface: var(--cc-surface);
  --finance-tech-muted: var(--cc-surface-muted);
  --finance-tech-line: var(--cc-line);
  --finance-tech-accent: var(--cc-accent);
}

body.owner-shell-v1 .finance-grid .panel,
body.owner-shell-v1 .finance-overview-summary,
body.owner-shell-v1 .finance-overview-assets,
body.owner-shell-v1 .finance-calendar-scroll,
body.owner-shell-v1 .category-chart,
body.owner-shell-v1 .chart-donut,
body.owner-shell-v1 .finance-record-row,
body.owner-shell-v1 .bar-row,
body.owner-shell-v1 .chart-bar-row,
body.owner-shell-v1 .budget-row {
  border-color: var(--cc-line);
  background: var(--cc-surface);
  background-image: none;
  box-shadow: none;
  color: var(--cc-ink);
}

body.owner-shell-v1 .finance-overview-filter-bar,
body.owner-shell-v1 .finance-overview-range-summary,
body.owner-shell-v1 .quick-category-strip,
body.owner-shell-v1 .finance-calendar-toolbar,
body.owner-shell-v1 [data-tab-panel="finance-ledger"] .workbench-actions,
body.owner-shell-v1 .chart-panel .workbench-actions {
  border-color: var(--cc-line);
  background: #0e2420;
}

body.owner-shell-v1 .finance-overview-kpis .kpi,
body.owner-shell-v1 .asset-balance-kpis .kpi,
body.owner-shell-v1 .asset-reference-kpis .kpi {
  background: #0d211d;
}

body.owner-shell-v1 .finance-ledger-v2,
body.owner-shell-v1 .finance-ledger-inspector {
  border-color: var(--cc-line);
  background: #091a16;
  color: var(--cc-ink);
}

body.owner-shell-v1 .finance-ledger-v2__table th,
body.owner-shell-v1 .finance-ledger-v2 .tabulator-col,
body.owner-shell-v1 .tabulator .tabulator-header,
body.owner-shell-v1 .tabulator .tabulator-header .tabulator-col {
  border-color: #315f56;
  background: #15302a;
  color: #b7d1c9;
}

body.owner-shell-v1 .finance-ledger-v2__table td,
body.owner-shell-v1 .finance-ledger-v2 .tabulator-cell,
body.owner-shell-v1 .tabulator-row .tabulator-cell {
  border-color: #193a33;
  color: var(--cc-ink);
}

body.owner-shell-v1 .tabulator,
body.owner-shell-v1 .tabulator-tableholder,
body.owner-shell-v1 .tabulator-table,
body.owner-shell-v1 .tabulator-row {
  background: #091a16;
  color: var(--cc-ink);
}

body.owner-shell-v1 .tabulator-row:nth-child(even) {
  background: #0c211c;
}

body.owner-shell-v1 .finance-ledger-v2__table tbody tr:hover td,
body.owner-shell-v1 .finance-ledger-v2 .tabulator-row:hover .tabulator-cell {
  background: #12372f;
}

body.owner-shell-v1 .finance-ledger-v2__table tbody tr.is-selected td,
body.owner-shell-v1 .finance-ledger-v2 .tabulator-row.tabulator-selected .tabulator-cell,
body.owner-shell-v1 .finance-ledger-v2 .tabulator-row.is-selected .tabulator-cell {
  background: #164238;
}

body.owner-shell-v1 .finance-calendar-v2.fc {
  --fc-page-bg-color: #0b1d1a;
  --fc-neutral-bg-color: #15302a;
  --fc-list-event-hover-bg-color: #12372f;
  --fc-border-color: #285249;
  --fc-button-text-color: #d9ece6;
  --fc-button-bg-color: #0b201c;
  --fc-button-border-color: #315f56;
  --fc-button-hover-bg-color: #12372f;
  --fc-button-hover-border-color: #39d5c1;
  --fc-button-active-bg-color: #147866;
  --fc-button-active-border-color: #43ddc8;
  --fc-today-bg-color: rgb(57 213 193 / 10%);
  color: var(--cc-ink);
}

body.owner-shell-v1 .finance-calendar-v2.fc .fc-scrollgrid,
body.owner-shell-v1 .finance-calendar-v2.fc td,
body.owner-shell-v1 .finance-calendar-v2.fc th {
  border-color: #285249;
}

body.owner-shell-v1 .finance-calendar-v2.fc .fc-col-header-cell,
body.owner-shell-v1 .finance-calendar-v2.fc .fc-daygrid-day {
  background: #0b1d1a;
}

body.owner-shell-v1 .finance-calendar-v2.fc .fc-day-other {
  background: #081612;
  color: #68877e;
}

body.owner-shell-v1 .finance-calendar-v2.fc .fc-day-today {
  background: rgb(57 213 193 / 10%);
}

body.owner-shell-v1 .finance-calendar-v2.fc .finance-calendar-event.is-expense {
  background: rgb(255 107 121 / 15%);
  color: #ff8e99;
}

body.owner-shell-v1 .finance-calendar-v2.fc .finance-calendar-event.is-income {
  background: rgb(69 214 155 / 15%);
  color: #72e6ad;
}

body.owner-shell-v1 .calendar .day,
body.owner-shell-v1 .day {
  border-color: var(--cc-line);
  background: #0b1d1a;
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 .calendar .day.selected,
body.owner-shell-v1 .day.selected {
  border-color: var(--cc-accent);
  background: #14372f;
  box-shadow: inset 0 0 0 1px rgb(57 213 193 / 12%);
}

body.owner-shell-v1 .calendar .day b,
body.owner-shell-v1 .day b {
  color: var(--cc-ink);
}

body.owner-shell-v1 [data-asset-human-contract].asset-workbench-v2 :is(
  .asset-balance-head,
  .asset-capture-panel-v2,
  .asset-ledger-section,
  .asset-monthly-reconciliation,
  .asset-reconciliation-grid,
  .asset-reference-card,
  .asset-history-panel,
  .asset-history-list,
  .asset-reference-history-list,
  .asset-balance-column,
  .asset-save-preview,
  .asset-current-context,
  .asset-mode-note,
  .asset-flow-label
) {
  border-color: var(--cc-line);
  background: var(--cc-surface);
  background-image: none;
  box-shadow: none;
  color: var(--cc-ink);
}

body.owner-shell-v1 [data-asset-human-contract].asset-workbench-v2 :is(
  .asset-section-title,
  .asset-ledger-header,
  .asset-quick-presets,
  .asset-clearance-toolbar,
  .asset-reconciliation-controls,
  .asset-history-filter,
  .asset-workflow-strip
) {
  border-color: var(--cc-line);
  background: #102823;
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 [data-asset-human-contract].asset-workbench-v2 :is(
  .asset-ledger-row,
  .asset-reconciliation-line,
  .asset-reference-row,
  .asset-history-row
) {
  border-color: #193a33;
  background: #0b1d1a;
  color: var(--cc-ink);
}

body.owner-shell-v1 [data-asset-human-contract].asset-workbench-v2 :is(
  .asset-ledger-row:nth-child(even),
  .asset-reconciliation-line:nth-child(even),
  .asset-history-row:hover,
  .asset-reference-row:hover
) {
  background: #0e2520;
}

body.owner-shell-v1 [data-asset-human-contract].asset-workbench-v2 :is(
  .asset-section-title strong,
  .asset-flow-label strong,
  .asset-mode-note strong,
  .asset-current-context strong,
  .asset-save-preview strong,
  .asset-history-comparison strong,
  .asset-reference-row strong,
  .asset-reference-row b,
  .asset-history-row strong,
  .asset-history-row b,
  .asset-save-preview-grid b,
  .asset-reference-kpis b,
  .asset-history-summary strong,
  .asset-history-detail-head strong
) {
  color: var(--cc-ink);
}

body.owner-shell-v1 [data-asset-human-contract].asset-workbench-v2 :is(
  .asset-reference-row small,
  .asset-history-row small,
  .asset-save-preview-grid span,
  .asset-reference-kpis span,
  .asset-history-summary span,
  .asset-history-comparison span,
  .asset-history-comparison small,
  .asset-history-detail-head span
) {
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 [data-asset-human-contract].asset-workbench-v2 :is(
  input,
  select,
  textarea,
  .asset-reconciliation-name,
  .asset-reconciliation-amount,
  .asset-reconciliation-note,
  .asset-snapshot-name,
  .asset-snapshot-amount,
  .asset-snapshot-note
) {
  border-color: #315f56;
  background: #071713;
  color: var(--cc-ink);
  box-shadow: none;
}

body.owner-shell-v1 [data-asset-human-contract].asset-workbench-v2 :is(
  .asset-save-preview-grid span,
  .asset-reference-kpis span,
  .asset-history-summary > div,
  .asset-history-comparison,
  .asset-history-detail
) {
  border-color: var(--cc-line);
  background: #0e2420;
}

body.owner-shell-v1 [data-asset-human-contract].asset-workbench-v2 :is(
  .asset-row-delete,
  [data-asset-reconciliation-delete]
) {
  border-color: #8a3d48;
  background: #2b171c;
  color: #ff9aa5;
}

/* V5 asset dark-theme authority: product-ui.css intentionally owns layout. */
body.owner-shell-v1 [data-asset-human-contract="asset-liability-ledger-v5"].asset-workbench-v2 :is(
  .asset-entry-reference-panel,
  .asset-human-ledger,
  .asset-ledger-rows,
  .asset-ledger-section,
  .asset-draft-totals,
  .asset-draft-delta,
  .asset-reconciliation-meta,
  .asset-reconciliation-actions,
  .asset-row-reference
) {
  border-color: var(--cc-line);
  background: #0e2420;
  background-image: none;
  box-shadow: none;
  color: var(--cc-ink);
}

body.owner-shell-v1 [data-asset-human-contract="asset-liability-ledger-v5"].asset-workbench-v2 :is(
  .asset-section-title,
  .asset-task-switcher
) {
  border-color: var(--cc-line);
  background: #102823;
  background-image: none;
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 [data-asset-human-contract="asset-liability-ledger-v5"].asset-workbench-v2 .asset-section-title strong,
body.owner-shell-v1 [data-asset-human-contract="asset-liability-ledger-v5"].asset-workbench-v2 .asset-row-reference b {
  color: var(--cc-ink);
}

body.owner-shell-v1 [data-asset-human-contract="asset-liability-ledger-v5"].asset-workbench-v2 .asset-row-reference span {
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 [data-asset-human-contract="asset-liability-ledger-v5"].asset-workbench-v2 .asset-reconcile-guide span {
  border-color: var(--cc-line);
  background: #0e2420;
  color: var(--cc-ink-soft);
}

body.owner-shell-v1 [data-asset-human-contract="asset-liability-ledger-v5"].asset-workbench-v2 .asset-reconcile-guide b {
  border-color: #397166;
  background: #14372f;
  color: #82f2e1;
}

body.owner-shell-v1 [data-asset-human-contract="asset-liability-ledger-v5"].asset-workbench-v2 :is(
  .asset-task-switcher a,
  .asset-clearance-toolbar .mini-action,
  .asset-clearance-toolbar .hud-button,
  .asset-quick-presets .mini-action
) {
  border-color: #315f56;
  background: #0a1b18;
  color: #d6e9e3;
}

body.owner-shell-v1 [data-asset-human-contract="asset-liability-ledger-v5"].asset-workbench-v2 :is(
  .asset-task-switcher a:hover,
  .asset-task-switcher a.active,
  .asset-task-switcher a[aria-pressed="true"],
  .asset-clearance-toolbar .active,
  .asset-clearance-tools .mini-action[aria-pressed="true"],
  .asset-clearance-tools .mini-action.active,
  .asset-quick-presets .mini-action:hover
) {
  border-color: var(--cc-accent);
  background: #14372f;
  color: #82f2e1;
}
/* End V5 asset dark-theme authority. */

/* People, reminders, knowledge and items inherit the cockpit tokens. */
body.owner-shell-v1 .cc-people-v2 {
  --people-blue-soft: #102b38;
  --people-warning: var(--cc-warning);
  --people-warning-soft: var(--cc-warning-soft);
  --people-danger: var(--cc-danger);
  --people-danger-soft: var(--cc-danger-soft);
}

body.owner-shell-v1 .cc-people-v2 > .panel,
body.owner-shell-v1 [data-reminders-v2] > .panel {
  background: transparent;
  box-shadow: none;
}

body.owner-shell-v1 .cc-people-v2 .people-avatar {
  border-color: #397166;
  background: #12372f;
  color: #82f2e1;
}

body.owner-shell-v1 .cc-people-v2 .people-person-row:hover {
  background: #0f2924;
}

body.owner-shell-v1 .cc-people-v2 .people-person-row.active,
body.owner-shell-v1 .cc-people-v2 .people-person-row[aria-current="true"] {
  border-color: #397166;
  background: #14372f;
}

body.owner-shell-v1 .cc-people-v2 .people-overview-create,
body.owner-shell-v1 .cc-people-v2 .people-duplicate-candidate,
body.owner-shell-v1 .cc-people-v2 .people-archive-confirmation {
  border-color: var(--cc-line);
  background: #0e2420;
}

body.owner-shell-v1 [data-reminders-v2] {
  --reminder-red: var(--cc-danger);
  --reminder-amber: var(--cc-warning);
  --reminder-green: #45d69b;
  --reminder-blue: var(--cc-blue);
}

body.owner-shell-v1 [data-reminders-v2] .reminder-v2-create-disclosure > summary,
body.owner-shell-v1 [data-reminders-v2] .reminder-v2-count,
body.owner-shell-v1 [data-reminders-v2] .reminder-v2-more summary,
body.owner-shell-v1 [data-reminders-v2] .reminder-v2-more-menu,
body.owner-shell-v1 [data-reminders-v2] .reminder-v2-edit-fields {
  border-color: var(--cc-line);
  background: #0e2420;
  color: var(--cc-ink);
}

body.owner-shell-v1 [data-reminders-v2] .reminder-v2-row:hover,
body.owner-shell-v1 [data-reminders-v2] .reminder-v2-duplicate-group[open] > summary,
body.owner-shell-v1 [data-reminders-v2] .reminder-v2-duplicate-items {
  background: #0f2924;
}

body.owner-shell-v1 .panel.knowledge-v2,
body.owner-shell-v1 .knowledge-v2__browser,
body.owner-shell-v1 .knowledge-v2__record {
  background: var(--cc-surface);
}

body.owner-shell-v1 .knowledge-v2__summary,
body.owner-shell-v1 .knowledge-v2__capture,
body.owner-shell-v1 .knowledge-v2__readonly-archive,
body.owner-shell-v1 .knowledge-v2__search-row,
body.owner-shell-v1 .knowledge-v2__saved-views,
body.owner-shell-v1 .knowledge-v2__detail {
  border-color: var(--cc-line);
  background: #0e2420;
}

body.owner-shell-v1 .knowledge-v2__browser-head,
body.owner-shell-v1 .knowledge-v2__record > summary:hover,
body.owner-shell-v1 .knowledge-v2__readonly-archive > summary:hover,
body.owner-shell-v1 .knowledge-v2__readonly-archive[open] > summary {
  background: #15302a;
}

body.owner-shell-v1 .knowledge-v2__record[open] > summary {
  background: #14372f;
}

body.owner-shell-v1 .knowledge-v2__source {
  background: #102b38;
}

body.owner-shell-v1 [data-items-v2="true"] > .panel {
  border-color: var(--cc-line);
  background: var(--cc-surface);
  box-shadow: none;
}

body.owner-shell-v1 [data-items-v2="true"] {
  --items-warning: var(--cc-warning);
  --items-warning-soft: var(--cc-warning-soft);
}

body.owner-shell-v1 [data-items-v2="true"] .items-v2__item-row[open] > .items-v2__item-summary,
body.owner-shell-v1 [data-items-v2="true"] .items-v2__feedback.success {
  background: #14372f;
}

body.owner-shell-v1 [data-items-v2="true"] .items-v2__projection-note,
body.owner-shell-v1 [data-items-v2="true"] .items-v2__readonly-notice,
body.owner-shell-v1 [data-items-v2="true"] .items-v2__detail-grid div {
  border-color: var(--cc-line);
  background: #0e2420;
}

body.owner-shell-v1 [data-items-v2="true"] .items-v2__duplicate-count {
  border-color: #806832;
  background: var(--cc-warning-soft);
  color: #f3c873;
}

body.owner-shell-v1 .cc-import-v2 #importPreviewSubmit,
body.owner-shell-v1 .cc-import-v2 [data-import-v2-confirm="selected"] {
  border-color: #43ddc8;
  background: #147866;
  color: #f3fffc;
}

/* Library and Vault use hard-coded legacy whites, so this is their theme boundary. */
body.owner-shell-v1 [data-command-library="vault"].library-owner-v1 {
  --library-line: var(--cc-line);
  --library-line-soft: #193a33;
  --library-ink: var(--cc-ink);
  --library-muted: var(--cc-ink-soft);
  --library-surface-soft: var(--cc-surface-muted);
  --library-accent: var(--cc-accent);
  --library-accent-soft: var(--cc-accent-soft);
  --library-amber: var(--cc-warning);
  --library-amber-soft: var(--cc-warning-soft);
}

body.owner-shell-v1 [data-command-library="vault"].library-owner-v1 > .panel,
body.owner-shell-v1 [data-command-library="vault"] :is(
  .library-record-detail,
  .library-search-row,
  .library-form input,
  .library-form select,
  .library-form textarea,
  .library-search-row input,
  .library-search-row select,
  .library-attachment-chip
) {
  border-color: var(--cc-line);
  background: var(--cc-surface);
  color: var(--cc-ink);
}

body.owner-shell-v1 [data-command-library="vault"] :is(
  .library-record-summary:hover,
  .library-document-record:hover,
  .library-attachment-record:hover,
  .library-empty-state,
  .library-safety-callout
) {
  background: var(--cc-surface-muted);
}

body.owner-shell-v1 [data-command-library="vault"] .library-empty-state strong,
body.owner-shell-v1 [data-command-library="vault"] .library-form .field small {
  color: var(--cc-ink);
}

body.owner-shell-v1 [data-command-library="vault"] .library-state-chip.is-safe {
  border-color: #2e6f5e;
  background: #12372f;
  color: #7ce6ad;
}

body.owner-shell-v1 [data-command-library="vault"] .library-safety-callout {
  border-left-color: #9a742d;
  background: var(--cc-warning-soft);
  color: #f3c873;
}

body.owner-shell-v1 [data-command-library="vault"] .library-form .hud-button.primary {
  border-color: #43ddc8;
  background: #147866;
  color: #f3fffc;
}

body.owner-shell-v1 [data-command-library="vault"] .library-form input[type="file"]::file-selector-button {
  border-color: var(--cc-line);
  background: #102823;
  color: #d6e9e3;
}

/* Assistant and authentication remain first-class dark surfaces. */
body.owner-shell-v1 .ai-panel,
body.owner-shell-v1 .answer-card,
body.owner-shell-v1 .ai-result,
body.owner-shell-v1 .prompt {
  border-color: var(--cc-line);
  background: #091a16;
  color: var(--cc-ink);
}

body.owner-shell-v1 .ai-close,
body.owner-shell-v1 .ai-query-form input,
body.owner-shell-v1 .ai-query-form button {
  border-color: #315f56;
  background: #0e2420;
  color: var(--cc-ink);
}

body.owner-shell-v1.auth-required,
body.owner-shell-v1.auth-required .shell,
body.owner-shell-v1.auth-required .workspace,
body.owner-shell-v1.auth-required .sidebar {
  background-color: var(--cc-canvas);
  color: var(--cc-ink);
}

body.owner-shell-v1.auth-required .login-required {
  border-color: var(--cc-line);
  background: #0b1d1a;
  box-shadow: 0 24px 70px rgb(0 0 0 / 34%);
}

body.owner-shell-v1.auth-required .brand h1,
body.owner-shell-v1.auth-required .login-required h3,
body.owner-shell-v1.auth-required .login-required .row strong,
body.owner-shell-v1.auth-required .auth-form label {
  color: var(--cc-ink);
}

body.owner-shell-v1.auth-required .brand small,
body.owner-shell-v1.auth-required .login-required p:not(.eyebrow) {
  color: var(--cc-ink-soft);
}

body.owner-shell-v1.auth-required .auth-grid > div:first-child,
body.owner-shell-v1.auth-required .login-required .list,
body.owner-shell-v1.auth-required .login-required .list .row {
  border-color: var(--cc-line);
}

body.owner-shell-v1.auth-required .auth-form input {
  border-color: #315f56;
  background: #071713;
  color: var(--cc-ink);
}

body.owner-shell-v1.auth-required .auth-form button {
  border-color: #43ddc8;
  background: #147866;
  color: #f3fffc;
}

body.owner-shell-v1.auth-required .login-required .tag {
  border-color: var(--cc-line);
  background: #102823;
  color: var(--cc-ink-soft);
}

body.owner-shell-v1.auth-required .auth-message.error {
  border-color: #8a3d48;
  background: var(--cc-danger-soft);
  color: #ff9aa5;
}

body.owner-shell-v1 .knowledge-v2__archive-action:hover,
body.owner-shell-v1 .knowledge-v2__archive-action:focus-visible {
  background: var(--cc-danger-soft);
}

@media (max-width: 760px) {
  body.owner-shell-v1 .sidebar {
    border-top-color: #2a5c52;
    background: #040d0c;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 28%);
  }

  body.owner-shell-v1 #primaryNav .cc-shell-nav__item {
    color: #73978c;
  }

  body.owner-shell-v1 #primaryNav .cc-shell-nav__item:hover {
    background: #0d2621;
    color: #aee9dc;
  }

  body.owner-shell-v1 #primaryNav .cc-shell-nav__item[aria-current="page"],
  body.owner-shell-v1 #primaryNav .cc-shell-nav__item.active {
    background: #12372f;
    box-shadow: inset 0 2px 0 var(--cc-accent);
    color: #8ff4e4;
  }

  body.owner-shell-v1 .topbar {
    background: #081815;
  }

  body.owner-shell-v1 .workspace {
    background-size: 24px 24px;
  }

  body.owner-shell-v1:has([data-command-settings="true"]) #moduleTabs .tab {
    flex: 0 0 auto;
    min-width: 88px;
    white-space: nowrap;
  }

  body.owner-shell-v1.ai-open .ai-panel:has(#aiAnswerCard > p.muted:last-child) {
    grid-template-rows: auto auto auto auto auto;
    height: auto;
  }

  body.owner-shell-v1 .answer-card:has(> p.muted:last-child) {
    max-height: none;
    overflow: visible;
  }

  body.owner-shell-v1.auth-required .sidebar,
  body.owner-shell-v1.auth-required .workspace,
  body.owner-shell-v1.auth-required .shell {
    background: var(--cc-canvas);
  }
}

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