/*
 * TOTAPP Workspace Theme Engine 2.1
 * Contrast-safe One Shell + independent navigation/bar style.
 *
 * Main page theme: data-workspace-theme
 * Shell/navigation style: data-workspace-shell-style
 */

:root {
  color-scheme: light;

  --ws-shell-header-bg: #f8fafc;
  --ws-shell-header-text: #0f172a;
  --ws-shell-header-muted: #334155;
  --ws-shell-header-border: #94a3b8;
  --ws-shell-header-shadow: 0 10px 28px rgba(15, 23, 42, .14);

  --ws-shell-control-bg: #ffffff;
  --ws-shell-control-text: #0f172a;
  --ws-shell-control-muted: #334155;
  --ws-shell-control-border: #64748b;
  --ws-shell-control-hover-bg: #1e3a8a;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-control-focus: #f59e0b;

  --ws-shell-primary-bg: #1e40af;
  --ws-shell-primary-text: #ffffff;
  --ws-shell-danger-bg: #991b1b;
  --ws-shell-danger-text: #ffffff;

  --ws-shell-dock-bg: #111827;
  --ws-shell-dock-text: #f8fafc;
  --ws-shell-dock-muted: #d1d5db;
  --ws-shell-dock-border: #64748b;
  --ws-shell-dock-item-bg: #1f2937;
  --ws-shell-dock-item-border: #6b7280;
  --ws-shell-dock-hover-bg: #f8fafc;
  --ws-shell-dock-hover-text: #111827;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #111827;
  --ws-shell-dock-focus: #fbbf24;

  --ws-shell-bottom-dock-bg: rgba(17, 24, 39, .98);
  --ws-shell-footer-bg: rgba(248, 250, 252, .98);
  --ws-shell-footer-text: #334155;
  --ws-shell-footer-border: #94a3b8;
}

/*
 * Workspace Theme Engine 3.1.4
 * Independent, persistent layouts for the top bar and the side bar.
 *
 * The page body remains governed by data-workspace-theme. Each bar may inherit
 * that palette with "follow-theme" or override only its own custom properties.
 */
:root[data-workspace-topbar-style="neutral-light"] .workspace-shell .ws-header {
  --ws-shell-header-bg: #f8fafc;
  --ws-shell-header-text: #0f172a;
  --ws-shell-header-muted: #334155;
  --ws-shell-header-border: #94a3b8;
  --ws-shell-control-bg: #ffffff;
  --ws-shell-control-text: #0f172a;
  --ws-shell-control-muted: #334155;
  --ws-shell-control-border: #64748b;
  --ws-shell-control-hover-bg: #111827;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #1e3a8a;
  --ws-shell-primary-text: #ffffff;
}

:root[data-workspace-topbar-style="neutral-dark"] .workspace-shell .ws-header {
  --ws-shell-header-bg: #111827;
  --ws-shell-header-text: #ffffff;
  --ws-shell-header-muted: #d1d5db;
  --ws-shell-header-border: #6b7280;
  --ws-shell-control-bg: #1f2937;
  --ws-shell-control-text: #ffffff;
  --ws-shell-control-muted: #d1d5db;
  --ws-shell-control-border: #9ca3af;
  --ws-shell-control-hover-bg: #ffffff;
  --ws-shell-control-hover-text: #111827;
  --ws-shell-primary-bg: #fbbf24;
  --ws-shell-primary-text: #111827;
  --ws-shell-danger-bg: #fecaca;
  --ws-shell-danger-text: #450a0a;
}

:root[data-workspace-topbar-style="corporate-blue"] .workspace-shell .ws-header {
  --ws-shell-header-bg: #eaf0ff;
  --ws-shell-header-text: #111827;
  --ws-shell-header-muted: #374151;
  --ws-shell-control-bg: #ffffff;
  --ws-shell-control-text: #111827;
  --ws-shell-control-border: #4056a1;
  --ws-shell-control-hover-bg: #243b82;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #243b82;
  --ws-shell-primary-text: #ffffff;
}

:root[data-workspace-topbar-style="industrial-teal"] .workspace-shell .ws-header {
  --ws-shell-header-bg: #eaf7f5;
  --ws-shell-header-text: #082f2d;
  --ws-shell-header-muted: #164e4a;
  --ws-shell-control-bg: #ffffff;
  --ws-shell-control-text: #082f2d;
  --ws-shell-control-border: #32736d;
  --ws-shell-control-hover-bg: #0f5d57;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #0f5d57;
  --ws-shell-primary-text: #ffffff;
}

:root[data-workspace-topbar-style="high-contrast"] .workspace-shell .ws-header {
  --ws-shell-header-bg: #000000;
  --ws-shell-header-text: #ffffff;
  --ws-shell-header-muted: #ffff00;
  --ws-shell-header-border: #ffffff;
  --ws-shell-header-shadow: 0 0 0 2px #ffffff;
  --ws-shell-control-bg: #000000;
  --ws-shell-control-text: #ffffff;
  --ws-shell-control-muted: #ffff00;
  --ws-shell-control-border: #ffffff;
  --ws-shell-control-hover-bg: #ffff00;
  --ws-shell-control-hover-text: #000000;
  --ws-shell-control-focus: #00ffff;
  --ws-shell-primary-bg: #ffff00;
  --ws-shell-primary-text: #000000;
  --ws-shell-danger-bg: #ffffff;
  --ws-shell-danger-text: #000000;
}

:root[data-workspace-sidebar-style="neutral-light"] .workspace-shell .ws-dock {
  --ws-shell-dock-bg: #e5e7eb;
  --ws-shell-dock-text: #111827;
  --ws-shell-dock-muted: #374151;
  --ws-shell-dock-border: #6b7280;
  --ws-shell-dock-item-bg: #ffffff;
  --ws-shell-dock-item-border: #9ca3af;
  --ws-shell-dock-hover-bg: #111827;
  --ws-shell-dock-hover-text: #ffffff;
  --ws-shell-dock-active-bg: #1e3a8a;
  --ws-shell-dock-active-text: #ffffff;
}

:root[data-workspace-sidebar-style="neutral-dark"] .workspace-shell .ws-dock {
  --ws-shell-dock-bg: #030712;
  --ws-shell-dock-text: #ffffff;
  --ws-shell-dock-muted: #d1d5db;
  --ws-shell-dock-border: #6b7280;
  --ws-shell-dock-item-bg: #111827;
  --ws-shell-dock-item-border: #6b7280;
  --ws-shell-dock-hover-bg: #ffffff;
  --ws-shell-dock-hover-text: #111827;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #111827;
}

:root[data-workspace-sidebar-style="corporate-blue"] .workspace-shell .ws-dock {
  --ws-shell-dock-bg: #101d46;
  --ws-shell-dock-text: #ffffff;
  --ws-shell-dock-muted: #dbe4ff;
  --ws-shell-dock-border: #64748b;
  --ws-shell-dock-item-bg: #1b2d63;
  --ws-shell-dock-item-border: #64748b;
  --ws-shell-dock-hover-bg: #ffffff;
  --ws-shell-dock-hover-text: #101d46;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #111827;
}

:root[data-workspace-sidebar-style="industrial-teal"] .workspace-shell .ws-dock {
  --ws-shell-dock-bg: #0b3b38;
  --ws-shell-dock-text: #ffffff;
  --ws-shell-dock-muted: #d1fae5;
  --ws-shell-dock-border: #32736d;
  --ws-shell-dock-item-bg: #104b47;
  --ws-shell-dock-item-border: #32736d;
  --ws-shell-dock-hover-bg: #ffffff;
  --ws-shell-dock-hover-text: #064e3b;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #102a28;
}

:root[data-workspace-sidebar-style="high-contrast"] .workspace-shell .ws-dock {
  --ws-shell-dock-bg: #000000;
  --ws-shell-dock-text: #ffffff;
  --ws-shell-dock-muted: #ffff00;
  --ws-shell-dock-border: #ffffff;
  --ws-shell-dock-item-bg: #000000;
  --ws-shell-dock-item-border: #ffffff;
  --ws-shell-dock-hover-bg: #ffff00;
  --ws-shell-dock-hover-text: #000000;
  --ws-shell-dock-active-bg: #ffffff;
  --ws-shell-dock-active-text: #000000;
  --ws-shell-dock-focus: #00ffff;
}

/* Theme-following palettes. Explicit pairs avoid low-contrast color-mix results. */
:root[data-workspace-theme="corporate"]:not([data-workspace-shell-style]),
:root[data-workspace-theme="corporate"][data-workspace-shell-style="follow-theme"] {
  --ws-shell-header-bg: #eef2ff;
  --ws-shell-header-text: #111827;
  --ws-shell-header-muted: #374151;
  --ws-shell-control-hover-bg: #263a8b;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #263a8b;
  --ws-shell-dock-bg: #111b38;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #111827;
}

:root[data-workspace-theme="executive"][data-workspace-shell-style="follow-theme"] {
  --ws-shell-header-bg: #fff7e6;
  --ws-shell-header-text: #2b1d0e;
  --ws-shell-header-muted: #5f4324;
  --ws-shell-control-bg: #ffffff;
  --ws-shell-control-text: #2b1d0e;
  --ws-shell-control-border: #7a5a32;
  --ws-shell-control-hover-bg: #5c3b17;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #6b451b;
  --ws-shell-dock-bg: #302113;
  --ws-shell-dock-text: #fff8eb;
  --ws-shell-dock-muted: #f0d7ad;
  --ws-shell-dock-hover-bg: #fff3d6;
  --ws-shell-dock-hover-text: #2b1d0e;
  --ws-shell-dock-active-bg: #f7c948;
  --ws-shell-dock-active-text: #211506;
}

:root[data-workspace-theme="industrial"][data-workspace-shell-style="follow-theme"] {
  --ws-shell-header-bg: #edf7f5;
  --ws-shell-header-text: #082f2d;
  --ws-shell-header-muted: #164e4a;
  --ws-shell-control-border: #32736d;
  --ws-shell-control-hover-bg: #115e59;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #115e59;
  --ws-shell-dock-bg: #0b3b38;
  --ws-shell-dock-text: #ecfdf5;
  --ws-shell-dock-muted: #b7f7e6;
  --ws-shell-dock-hover-bg: #ecfdf5;
  --ws-shell-dock-hover-text: #064e3b;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #102a28;
}

:root[data-workspace-theme="minimal"][data-workspace-shell-style="follow-theme"] {
  --ws-shell-header-bg: #ffffff;
  --ws-shell-header-text: #111827;
  --ws-shell-header-muted: #374151;
  --ws-shell-header-shadow: 0 1px 0 #9ca3af;
  --ws-shell-control-border: #6b7280;
  --ws-shell-control-hover-bg: #111827;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #111827;
  --ws-shell-dock-bg: #f3f4f6;
  --ws-shell-dock-text: #111827;
  --ws-shell-dock-muted: #374151;
  --ws-shell-dock-border: #6b7280;
  --ws-shell-dock-item-bg: #ffffff;
  --ws-shell-dock-item-border: #9ca3af;
  --ws-shell-dock-hover-bg: #111827;
  --ws-shell-dock-hover-text: #ffffff;
  --ws-shell-dock-active-bg: #111827;
  --ws-shell-dock-active-text: #ffffff;
  --ws-shell-bottom-dock-bg: rgba(255,255,255,.98);
}

:root[data-workspace-theme="dark"][data-workspace-shell-style="follow-theme"] {
  color-scheme: dark;
  --ws-shell-header-bg: #0f172a;
  --ws-shell-header-text: #f8fafc;
  --ws-shell-header-muted: #d1d5db;
  --ws-shell-header-border: #64748b;
  --ws-shell-header-shadow: 0 14px 38px rgba(0,0,0,.52);
  --ws-shell-control-bg: #1e293b;
  --ws-shell-control-text: #f8fafc;
  --ws-shell-control-muted: #d1d5db;
  --ws-shell-control-border: #94a3b8;
  --ws-shell-control-hover-bg: #f8fafc;
  --ws-shell-control-hover-text: #0f172a;
  --ws-shell-primary-bg: #a5b4fc;
  --ws-shell-primary-text: #111827;
  --ws-shell-danger-bg: #fecaca;
  --ws-shell-danger-text: #450a0a;
  --ws-shell-dock-bg: #020617;
  --ws-shell-dock-text: #f8fafc;
  --ws-shell-dock-muted: #cbd5e1;
  --ws-shell-dock-border: #64748b;
  --ws-shell-dock-item-bg: #111827;
  --ws-shell-dock-item-border: #64748b;
  --ws-shell-dock-hover-bg: #f8fafc;
  --ws-shell-dock-hover-text: #0f172a;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #111827;
  --ws-shell-bottom-dock-bg: rgba(2,6,23,.98);
  --ws-shell-footer-bg: rgba(2,6,23,.98);
  --ws-shell-footer-text: #e2e8f0;
  --ws-shell-footer-border: #64748b;
}

:root[data-workspace-theme="high-contrast"][data-workspace-shell-style="follow-theme"],
:root[data-workspace-shell-style="high-contrast"] {
  color-scheme: dark;
  --ws-shell-header-bg: #000000;
  --ws-shell-header-text: #ffffff;
  --ws-shell-header-muted: #ffff00;
  --ws-shell-header-border: #ffffff;
  --ws-shell-header-shadow: 0 0 0 2px #ffffff;
  --ws-shell-control-bg: #000000;
  --ws-shell-control-text: #ffffff;
  --ws-shell-control-muted: #ffff00;
  --ws-shell-control-border: #ffffff;
  --ws-shell-control-hover-bg: #ffff00;
  --ws-shell-control-hover-text: #000000;
  --ws-shell-control-focus: #00ffff;
  --ws-shell-primary-bg: #ffff00;
  --ws-shell-primary-text: #000000;
  --ws-shell-danger-bg: #ffffff;
  --ws-shell-danger-text: #000000;
  --ws-shell-dock-bg: #000000;
  --ws-shell-dock-text: #ffffff;
  --ws-shell-dock-muted: #ffff00;
  --ws-shell-dock-border: #ffffff;
  --ws-shell-dock-item-bg: #000000;
  --ws-shell-dock-item-border: #ffffff;
  --ws-shell-dock-hover-bg: #ffff00;
  --ws-shell-dock-hover-text: #000000;
  --ws-shell-dock-active-bg: #ffffff;
  --ws-shell-dock-active-text: #000000;
  --ws-shell-dock-focus: #00ffff;
  --ws-shell-bottom-dock-bg: #000000;
  --ws-shell-footer-bg: #000000;
  --ws-shell-footer-text: #ffffff;
  --ws-shell-footer-border: #ffffff;
}

:root[data-workspace-theme="accessibility"][data-workspace-shell-style="follow-theme"] {
  --ws-shell-header-bg: #ffffff;
  --ws-shell-header-text: #020617;
  --ws-shell-header-muted: #334155;
  --ws-shell-header-border: #475569;
  --ws-shell-control-border: #475569;
  --ws-shell-control-hover-bg: #172554;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #172554;
  --ws-shell-dock-bg: #172554;
  --ws-shell-dock-text: #ffffff;
  --ws-shell-dock-muted: #dbeafe;
  --ws-shell-dock-hover-bg: #fef08a;
  --ws-shell-dock-hover-text: #172554;
  --ws-shell-dock-active-bg: #fef08a;
  --ws-shell-dock-active-text: #172554;
}

:root[data-workspace-theme="touch"][data-workspace-shell-style="follow-theme"],
:root[data-workspace-theme="tablet"][data-workspace-shell-style="follow-theme"] {
  --ws-shell-header-bg: #ecfeff;
  --ws-shell-header-text: #083344;
  --ws-shell-header-muted: #164e63;
  --ws-shell-control-border: #0e7490;
  --ws-shell-control-hover-bg: #155e75;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #155e75;
  --ws-shell-dock-bg: #164e63;
  --ws-shell-dock-text: #ecfeff;
  --ws-shell-dock-muted: #cffafe;
  --ws-shell-dock-hover-bg: #ecfeff;
  --ws-shell-dock-hover-text: #164e63;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #083344;
}

:root[data-workspace-theme="mobile"][data-workspace-shell-style="follow-theme"] {
  --ws-shell-header-bg: #f5f3ff;
  --ws-shell-header-text: #1e1b4b;
  --ws-shell-header-muted: #3730a3;
  --ws-shell-control-border: #4f46e5;
  --ws-shell-control-hover-bg: #3730a3;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #3730a3;
  --ws-shell-dock-bg: #312e81;
  --ws-shell-dock-text: #f5f3ff;
  --ws-shell-dock-muted: #e0e7ff;
  --ws-shell-dock-hover-bg: #f5f3ff;
  --ws-shell-dock-hover-text: #312e81;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #1e1b4b;
}

/* Independent shell/navigation styles. */
:root[data-workspace-shell-style="neutral-light"] {
  --ws-shell-header-bg: #f8fafc;
  --ws-shell-header-text: #0f172a;
  --ws-shell-header-muted: #334155;
  --ws-shell-control-bg: #ffffff;
  --ws-shell-control-text: #0f172a;
  --ws-shell-control-border: #64748b;
  --ws-shell-control-hover-bg: #111827;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #1e3a8a;
  --ws-shell-dock-bg: #e5e7eb;
  --ws-shell-dock-text: #111827;
  --ws-shell-dock-muted: #374151;
  --ws-shell-dock-border: #6b7280;
  --ws-shell-dock-item-bg: #ffffff;
  --ws-shell-dock-item-border: #9ca3af;
  --ws-shell-dock-hover-bg: #111827;
  --ws-shell-dock-hover-text: #ffffff;
  --ws-shell-dock-active-bg: #1e3a8a;
  --ws-shell-dock-active-text: #ffffff;
  --ws-shell-bottom-dock-bg: rgba(248,250,252,.98);
}

:root[data-workspace-shell-style="neutral-dark"] {
  color-scheme: dark;
  --ws-shell-header-bg: #111827;
  --ws-shell-header-text: #ffffff;
  --ws-shell-header-muted: #d1d5db;
  --ws-shell-header-border: #6b7280;
  --ws-shell-control-bg: #1f2937;
  --ws-shell-control-text: #ffffff;
  --ws-shell-control-border: #9ca3af;
  --ws-shell-control-hover-bg: #ffffff;
  --ws-shell-control-hover-text: #111827;
  --ws-shell-primary-bg: #fbbf24;
  --ws-shell-primary-text: #111827;
  --ws-shell-danger-bg: #fecaca;
  --ws-shell-danger-text: #450a0a;
  --ws-shell-dock-bg: #030712;
  --ws-shell-dock-text: #ffffff;
  --ws-shell-dock-muted: #d1d5db;
  --ws-shell-dock-border: #6b7280;
  --ws-shell-dock-item-bg: #111827;
  --ws-shell-dock-item-border: #6b7280;
  --ws-shell-dock-hover-bg: #ffffff;
  --ws-shell-dock-hover-text: #111827;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #111827;
  --ws-shell-bottom-dock-bg: rgba(3,7,18,.98);
  --ws-shell-footer-bg: rgba(3,7,18,.98);
  --ws-shell-footer-text: #e5e7eb;
}

:root[data-workspace-shell-style="corporate-blue"] {
  --ws-shell-header-bg: #eaf0ff;
  --ws-shell-header-text: #111827;
  --ws-shell-header-muted: #374151;
  --ws-shell-control-bg: #ffffff;
  --ws-shell-control-text: #111827;
  --ws-shell-control-border: #4056a1;
  --ws-shell-control-hover-bg: #243b82;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #243b82;
  --ws-shell-dock-bg: #101d46;
  --ws-shell-dock-text: #ffffff;
  --ws-shell-dock-muted: #dbe4ff;
  --ws-shell-dock-hover-bg: #ffffff;
  --ws-shell-dock-hover-text: #101d46;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #111827;
}

:root[data-workspace-shell-style="industrial-teal"] {
  --ws-shell-header-bg: #eaf7f5;
  --ws-shell-header-text: #082f2d;
  --ws-shell-header-muted: #164e4a;
  --ws-shell-control-bg: #ffffff;
  --ws-shell-control-text: #082f2d;
  --ws-shell-control-border: #32736d;
  --ws-shell-control-hover-bg: #0f5d57;
  --ws-shell-control-hover-text: #ffffff;
  --ws-shell-primary-bg: #0f5d57;
  --ws-shell-dock-bg: #0b3b38;
  --ws-shell-dock-text: #ffffff;
  --ws-shell-dock-muted: #d1fae5;
  --ws-shell-dock-hover-bg: #ffffff;
  --ws-shell-dock-hover-text: #064e3b;
  --ws-shell-dock-active-bg: #fbbf24;
  --ws-shell-dock-active-text: #102a28;
}

/* Header and controls */
.workspace-shell .ws-header {
  background: var(--ws-shell-header-bg) !important;
  color: var(--ws-shell-header-text) !important;
  border-bottom-color: var(--ws-shell-header-border) !important;
  box-shadow: var(--ws-shell-header-shadow) !important;
}
.workspace-shell .ws-brand h1,
.workspace-shell .ws-welcome-line,
.workspace-shell .ws-welcome-line strong { color: var(--ws-shell-header-text) !important; }
.workspace-shell .ws-welcome-meta,
.workspace-shell .ws-command,
.workspace-shell .ws-command span:not(.ws-command-icon) { color: var(--ws-shell-header-muted) !important; }
.workspace-shell .ws-welcome,
.workspace-shell .ws-command,
.workspace-shell .ws-command kbd,
.workspace-shell .ws-language select,
.workspace-shell .ws-top-btn {
  background: var(--ws-shell-control-bg) !important;
  color: var(--ws-shell-control-text) !important;
  border-color: var(--ws-shell-control-border) !important;
}
.workspace-shell .ws-command-icon {
  background: var(--ws-shell-primary-bg) !important;
  color: var(--ws-shell-primary-text) !important;
}
.workspace-shell .ws-top-btn:hover,
.workspace-shell .ws-language select:hover,
.workspace-shell .ws-command:hover {
  background: var(--ws-shell-control-hover-bg) !important;
  color: var(--ws-shell-control-hover-text) !important;
  border-color: var(--ws-shell-control-hover-bg) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workspace-shell .ws-top-btn:focus-visible,
.workspace-shell .ws-language select:focus-visible,
.workspace-shell .ws-command:focus-visible {
  outline: 3px solid var(--ws-shell-control-focus) !important;
  outline-offset: 2px !important;
}
.workspace-shell .ws-top-btn.teos,
.workspace-shell .ws-brand-mark {
  background: var(--ws-shell-primary-bg) !important;
  color: var(--ws-shell-primary-text) !important;
}
.workspace-shell .ws-top-btn.danger {
  background: var(--ws-shell-danger-bg) !important;
  color: var(--ws-shell-danger-text) !important;
  border-color: transparent !important;
}

/* Left and bottom docks: active/hover use color + shape, never color alone. */
.workspace-shell .ws-dock {
  background: var(--ws-shell-dock-bg) !important;
  color: var(--ws-shell-dock-text) !important;
  border-right-color: var(--ws-shell-dock-border) !important;
}
.workspace-shell .ws-dock-item,
.workspace-shell .ws-bottom-dock-item {
  background: var(--ws-shell-dock-item-bg) !important;
  color: var(--ws-shell-dock-text) !important;
  border-color: var(--ws-shell-dock-item-border) !important;
}
.workspace-shell .ws-dock-item:hover,
.workspace-shell .ws-dock-item:focus-visible,
.workspace-shell .ws-bottom-dock-item:hover,
.workspace-shell .ws-bottom-dock-item:focus-visible {
  background: var(--ws-shell-dock-hover-bg) !important;
  color: var(--ws-shell-dock-hover-text) !important;
  border-color: var(--ws-shell-dock-hover-text) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workspace-shell .ws-dock-item:focus-visible,
.workspace-shell .ws-bottom-dock-item:focus-visible {
  outline: 3px solid var(--ws-shell-dock-focus) !important;
  outline-offset: 2px !important;
}
.workspace-shell .ws-dock-item.active,
.workspace-shell .ws-dock-item[aria-current="page"],
.workspace-shell .ws-bottom-dock-item.active,
.workspace-shell .ws-bottom-dock-item[aria-current="page"] {
  background: var(--ws-shell-dock-active-bg) !important;
  color: var(--ws-shell-dock-active-text) !important;
  border-color: var(--ws-shell-dock-active-text) !important;
  box-shadow: inset 5px 0 0 currentColor;
  font-weight: 900;
}
.workspace-shell .ws-dock-section-label,
.workspace-shell .ws-dock-arrow { color: var(--ws-shell-dock-muted) !important; }
.workspace-shell .ws-dock-spacer { border-color: var(--ws-shell-dock-border) !important; }
.workspace-shell .ws-bottom-dock {
  background: var(--ws-shell-bottom-dock-bg) !important;
  border-color: var(--ws-shell-dock-border) !important;
  color: var(--ws-shell-dock-text) !important;
}

.workspace-shell .ws-footer {
  background: var(--ws-shell-footer-bg) !important;
  color: var(--ws-shell-footer-text) !important;
  border-top-color: var(--ws-shell-footer-border) !important;
}
.workspace-shell .ws-command-panel,
.workspace-shell .ws-theme-dialog,
.workspace-shell .ws-settings-dialog,
.workspace-shell .ws-notification-center {
  background: var(--ws-panel) !important;
  color: var(--ws-ink) !important;
  border-color: var(--ws-line) !important;
}

/* Theme Engine shell-style chooser. */
.workspace-shell .ws-shell-style-section {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  background: var(--ws-panel);
  color: var(--ws-ink);
}
.workspace-shell .ws-shell-style-section label {
  display: block;
  font-weight: 900;
  margin-bottom: 7px;
}
.workspace-shell .ws-shell-style-section p {
  margin: 0 0 10px;
  color: var(--ws-muted);
}
.workspace-shell .ws-shell-style-section select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ws-line);
  border-radius: 12px;
  background: var(--ws-panel);
  color: var(--ws-ink);
  padding: 8px 12px;
}

[data-workspace-shell] .ws-header *,
[data-workspace-shell] .ws-dock *,
[data-workspace-shell] .ws-bottom-dock *,
[data-workspace-shell] .ws-footer * { text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .workspace-shell .ws-header,
  .workspace-shell .ws-dock,
  .workspace-shell .ws-bottom-dock,
  .workspace-shell .ws-footer,
  .workspace-shell .ws-top-btn,
  .workspace-shell .ws-dock-item { transition: none !important; }
}


/* Workspace keyboard focus contract 2.1.1
 * A visible, shape-based focus indicator is applied to every interactive
 * control in the One Shell. It is intentionally independent from hover and
 * active states, and remains visible in all page/shell style combinations.
 */
.workspace-shell :where(
  a[href],
  button:not([disabled]),
  input:not([disabled]),
  select:not([disabled]),
  textarea:not([disabled]),
  summary,
  [role="button"],
  [role="link"],
  [role="menuitem"],
  [role="option"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid var(--ws-shell-control-focus, #fbbf24) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px var(--ws-shell-header-bg, #ffffff) !important;
  position: relative;
  z-index: 2;
}

.workspace-shell .ws-dock :where(a[href], button, [role="button"], [tabindex]):focus-visible,
.workspace-shell .ws-bottom-dock :where(a[href], button, [role="button"], [tabindex]):focus-visible {
  outline-color: var(--ws-shell-dock-focus, #fbbf24) !important;
  box-shadow: 0 0 0 2px var(--ws-shell-dock-bg, #111827) !important;
}

.workspace-shell :where(button, input, select, textarea, a, [role="button"], [tabindex]):focus:not(:focus-visible) {
  outline: none;
}


/* Workspace Theme Engine 3.1 - contrast and color-accessibility profiles. */
:root {
  --ws-action-primary-bg: var(--ws-accent, #1d4ed8);
  --ws-action-primary-text: var(--ws-accent-contrast, #ffffff);
  --ws-action-primary-border: var(--ws-action-primary-bg);
  --ws-action-secondary-bg: var(--ws-panel, #ffffff);
  --ws-action-secondary-text: var(--ws-ink, #0f172a);
  --ws-action-secondary-border: var(--ws-line, #64748b);
  --ws-action-hover-bg: #111827;
  --ws-action-hover-text: #ffffff;
  --ws-state-success-bg: #dcfce7;
  --ws-state-success-text: #14532d;
  --ws-state-warning-bg: #fef3c7;
  --ws-state-warning-text: #78350f;
  --ws-state-danger-bg: #fee2e2;
  --ws-state-danger-text: #7f1d1d;
  --ws-state-info-bg: #dbeafe;
  --ws-state-info-text: #1e3a8a;
}

:root[data-workspace-contrast="high"] {
  --ws-ink: #0b1220;
  --ws-muted: #334155;
  --ws-line: #475569;
  --ws-action-primary-bg: #173b8f;
  --ws-action-primary-text: #ffffff;
  --ws-action-secondary-bg: #ffffff;
  --ws-action-secondary-text: #0b1220;
  --ws-action-secondary-border: #334155;
  --ws-action-hover-bg: #0b1220;
  --ws-action-hover-text: #ffffff;
}
:root[data-workspace-theme="dark"][data-workspace-contrast="high"],
:root[data-workspace-contrast="high"][data-workspace-shell-style="neutral-dark"] {
  --ws-ink: #ffffff;
  --ws-muted: #dbe4ee;
  --ws-line: #cbd5e1;
  --ws-action-primary-bg: #fde047;
  --ws-action-primary-text: #111827;
  --ws-action-secondary-bg: #111827;
  --ws-action-secondary-text: #ffffff;
  --ws-action-secondary-border: #e5e7eb;
  --ws-action-hover-bg: #ffffff;
  --ws-action-hover-text: #111827;
}
:root[data-workspace-contrast="maximum"] {
  --ws-bg: #ffffff;
  --ws-panel: #ffffff;
  --ws-surface: #ffffff;
  --ws-ink: #000000;
  --ws-muted: #111111;
  --ws-line: #000000;
  --ws-accent: #0037a6;
  --ws-accent-contrast: #ffffff;
  --ws-action-primary-bg: #0037a6;
  --ws-action-primary-text: #ffffff;
  --ws-action-secondary-bg: #ffffff;
  --ws-action-secondary-text: #000000;
  --ws-action-secondary-border: #000000;
  --ws-action-hover-bg: #000000;
  --ws-action-hover-text: #ffffff;
  --ws-focus-ring: #ffbf00;
}
:root[data-workspace-theme="dark"][data-workspace-contrast="maximum"] {
  --ws-bg: #000000;
  --ws-panel: #000000;
  --ws-surface: #111111;
  --ws-ink: #ffffff;
  --ws-muted: #ffffff;
  --ws-line: #ffffff;
  --ws-accent: #ffdf00;
  --ws-accent-contrast: #000000;
  --ws-action-primary-bg: #ffdf00;
  --ws-action-primary-text: #000000;
  --ws-action-secondary-bg: #000000;
  --ws-action-secondary-text: #ffffff;
  --ws-action-secondary-border: #ffffff;
  --ws-action-hover-bg: #ffffff;
  --ws-action-hover-text: #000000;
}
:root[data-workspace-contrast="reinforced-text"] body,
:root[data-workspace-contrast="reinforced-text"] button,
:root[data-workspace-contrast="reinforced-text"] input,
:root[data-workspace-contrast="reinforced-text"] select,
:root[data-workspace-contrast="reinforced-text"] textarea {
  font-weight: 600;
  letter-spacing: .012em;
}
:root[data-workspace-contrast="reinforced-text"] .wsds-subtitle,
:root[data-workspace-contrast="reinforced-text"] .iam-help,
:root[data-workspace-contrast="reinforced-text"] .iam-toolbar p { font-weight: 700; }

/* Color-vision profiles keep state meaning through shape, labels and safe palettes. */
:root[data-workspace-accessibility="protanopia"] {
  --ws-accent: #005ea8;
  --ws-accent-contrast: #ffffff;
  --ws-state-success-bg: #d9f0ff;
  --ws-state-success-text: #003b66;
  --ws-state-warning-bg: #fff1b8;
  --ws-state-warning-text: #5b4200;
  --ws-state-danger-bg: #eadcff;
  --ws-state-danger-text: #3d1766;
}
:root[data-workspace-accessibility="deuteranopia"] {
  --ws-accent: #0057b8;
  --ws-accent-contrast: #ffffff;
  --ws-state-success-bg: #dbeafe;
  --ws-state-success-text: #1e3a8a;
  --ws-state-warning-bg: #fff3bf;
  --ws-state-warning-text: #5c4300;
  --ws-state-danger-bg: #f3e8ff;
  --ws-state-danger-text: #581c87;
}
:root[data-workspace-accessibility="tritanopia"] {
  --ws-accent: #9a3412;
  --ws-accent-contrast: #ffffff;
  --ws-state-success-bg: #dcfce7;
  --ws-state-success-text: #14532d;
  --ws-state-warning-bg: #ffedd5;
  --ws-state-warning-text: #7c2d12;
  --ws-state-danger-bg: #fee2e2;
  --ws-state-danger-text: #7f1d1d;
}
:root[data-workspace-accessibility="high-visibility"] {
  --ws-accent: #0037a6;
  --ws-accent-contrast: #ffffff;
  --ws-line: #111827;
  --ws-muted: #1f2937;
  --ws-focus-ring: #ffbf00;
  --ws-action-primary-bg: #0037a6;
  --ws-action-primary-text: #ffffff;
  --ws-action-secondary-border: #111827;
}

.workspace-shell :where(.wsds-btn, .iam-btn, button, a[role="button"]):not([disabled]) {
  transition: background-color .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
}
.workspace-shell :where(.wsds-btn, .iam-btn):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workspace-shell :where(.wsds-btn, .iam-btn)[aria-disabled="true"],
.workspace-shell :where(.wsds-btn, .iam-btn):disabled {
  opacity: 1;
  background: #e5e7eb !important;
  color: #374151 !important;
  border-color: #6b7280 !important;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Component ownership wins over body-theme legacy selectors. */
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-header {
  background: var(--ws-shell-header-bg) !important;
  color: var(--ws-shell-header-text) !important;
  border-bottom-color: var(--ws-shell-header-border) !important;
  box-shadow: var(--ws-shell-header-shadow) !important;
}
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-brand h1,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-welcome-line,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-welcome-line strong {
  color: var(--ws-shell-header-text) !important;
}
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-welcome-meta,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-command,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-command span:not(.ws-command-icon) {
  color: var(--ws-shell-header-muted) !important;
}
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-welcome,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-command,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-command kbd,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-language select,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-top-btn {
  background: var(--ws-shell-control-bg) !important;
  color: var(--ws-shell-control-text) !important;
  border-color: var(--ws-shell-control-border) !important;
}
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-command-icon,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-top-btn.teos,
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-brand-mark {
  background: var(--ws-shell-primary-bg) !important;
  color: var(--ws-shell-primary-text) !important;
}
:root[data-workspace-topbar-style]:not([data-workspace-topbar-style="follow-theme"]) .workspace-shell .ws-top-btn.danger {
  background: var(--ws-shell-danger-bg) !important;
  color: var(--ws-shell-danger-text) !important;
}

:root[data-workspace-sidebar-style]:not([data-workspace-sidebar-style="follow-theme"]) .workspace-shell .ws-dock {
  background: var(--ws-shell-dock-bg) !important;
  color: var(--ws-shell-dock-text) !important;
  border-right-color: var(--ws-shell-dock-border) !important;
}
:root[data-workspace-sidebar-style]:not([data-workspace-sidebar-style="follow-theme"]) .workspace-shell .ws-dock-item {
  background: var(--ws-shell-dock-item-bg) !important;
  color: var(--ws-shell-dock-text) !important;
  border-color: var(--ws-shell-dock-item-border) !important;
}
:root[data-workspace-sidebar-style]:not([data-workspace-sidebar-style="follow-theme"]) .workspace-shell .ws-dock-item:hover,
:root[data-workspace-sidebar-style]:not([data-workspace-sidebar-style="follow-theme"]) .workspace-shell .ws-dock-item:focus-visible {
  background: var(--ws-shell-dock-hover-bg) !important;
  color: var(--ws-shell-dock-hover-text) !important;
  border-color: var(--ws-shell-dock-hover-text) !important;
}
:root[data-workspace-sidebar-style]:not([data-workspace-sidebar-style="follow-theme"]) .workspace-shell .ws-dock-item.active,
:root[data-workspace-sidebar-style]:not([data-workspace-sidebar-style="follow-theme"]) .workspace-shell .ws-dock-item[aria-current="page"] {
  background: var(--ws-shell-dock-active-bg) !important;
  color: var(--ws-shell-dock-active-text) !important;
  border-color: var(--ws-shell-dock-active-text) !important;
}
:root[data-workspace-sidebar-style]:not([data-workspace-sidebar-style="follow-theme"]) .workspace-shell .ws-dock-section-label,
:root[data-workspace-sidebar-style]:not([data-workspace-sidebar-style="follow-theme"]) .workspace-shell .ws-dock-arrow {
  color: var(--ws-shell-dock-muted) !important;
}

/* Language is an owned topbar control, including its arrow and interaction states. */
.workspace-shell .ws-language{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
}
.workspace-shell .ws-language:has(select[data-workspace-language-select])::after{
  content:"⌄";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-56%);
  color:var(--ws-shell-control-text)!important;
  font-size:16px;
  font-weight:1000;
  line-height:1;
  pointer-events:none;
}
.workspace-shell .ws-language select[data-workspace-language-select]{
  appearance:none!important;
  -webkit-appearance:none!important;
  background:var(--ws-shell-control-bg)!important;
  color:var(--ws-shell-control-text)!important;
  -webkit-text-fill-color:var(--ws-shell-control-text)!important;
  border-color:var(--ws-shell-control-border)!important;
  text-shadow:none!important;
}
.workspace-shell .ws-language:has(select[data-workspace-language-select]:hover)::after,
.workspace-shell .ws-language:has(select[data-workspace-language-select]:focus)::after,
.workspace-shell .ws-language:has(select[data-workspace-language-select]:focus-visible)::after{
  color:var(--ws-shell-control-hover-text)!important;
}
.workspace-shell .ws-language select[data-workspace-language-select]:hover,
.workspace-shell .ws-language select[data-workspace-language-select]:focus,
.workspace-shell .ws-language select[data-workspace-language-select]:focus-visible{
  background:var(--ws-shell-control-hover-bg)!important;
  color:var(--ws-shell-control-hover-text)!important;
  -webkit-text-fill-color:var(--ws-shell-control-hover-text)!important;
  border-color:var(--ws-shell-control-hover-bg)!important;
}

/* Workspace OS 3.0 Interaction & Pointer Location Contract M7
 * Theme Engine is the single owner of interactive state grammar.
 * Normal hover/focus feedback is always available. Pointer Assist is explicitly opt-in;
 * Focus Mode may strengthen Pointer Assist only when Pointer Assist is enabled.
 */
:root{
  --ws-pointer-ring: var(--ws-shell-control-focus, #fbbf24);
  --ws-pointer-shadow: 0 12px 30px rgba(2,8,23,.28);
  --ws-pointer-lift: translateY(-2px);
  --ws-focus-shadow: 0 0 0 5px color-mix(in srgb,var(--ws-pointer-ring) 28%,transparent);
}

.workspace-shell :where(
  .ws-top-btn,
  .ws-language select,
  .ws-command,
  .ws-dock-item,
  .ws-bottom-dock-item,
  .wsds-btn,
  .iam-btn,
  .crm-action,
  .customer-document-link,
  .customer-print-button,
  button:not([disabled]),
  a[href],
  summary,
  select:not([disabled]),
  input:not([disabled]),
  textarea:not([disabled]),
  [role="button"],
  [role="link"],
  [role="menuitem"],
  [role="option"],
  [tabindex]:not([tabindex="-1"])
){
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    outline-color .16s ease,
    border-color .16s ease,
    background-color .16s ease,
    text-decoration-color .16s ease!important;
}

html[data-workspace-pointer-assist="on"] .workspace-shell :where(
  .ws-top-btn,
  .ws-language select,
  .ws-command,
  .ws-dock-item,
  .ws-bottom-dock-item,
  .wsds-btn,
  .iam-btn,
  .crm-action,
  .customer-document-link,
  .customer-print-button,
  button:not([disabled]),
  a[href],
  summary,
  select:not([disabled]),
  input:not([disabled]),
  textarea:not([disabled]),
  [role="button"],
  [role="link"],
  [role="menuitem"],
  [role="option"],
  [tabindex]:not([tabindex="-1"])
):hover,
body.ws-pointer-assist .workspace-shell :where(
  .ws-top-btn,
  .ws-language select,
  .ws-command,
  .ws-dock-item,
  .ws-bottom-dock-item,
  .wsds-btn,
  .iam-btn,
  .crm-action,
  .customer-document-link,
  .customer-print-button,
  button:not([disabled]),
  a[href],
  summary,
  select:not([disabled]),
  input:not([disabled]),
  textarea:not([disabled]),
  [role="button"],
  [role="link"],
  [role="menuitem"],
  [role="option"],
  [tabindex]:not([tabindex="-1"])
):hover{
  outline:3px solid var(--ws-pointer-ring)!important;
  outline-offset:3px!important;
  box-shadow:var(--ws-pointer-shadow)!important;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
  position:relative;
  z-index:3;
}

.workspace-shell :where(
  .ws-top-btn,
  .ws-language select,
  .ws-command
):hover{
  background:var(--ws-shell-control-hover-bg)!important;
  color:var(--ws-shell-control-hover-text)!important;
  border-color:var(--ws-shell-control-hover-bg)!important;
}

.workspace-shell .ws-command:hover *,
.workspace-shell .ws-command:focus-visible *{
  color:inherit!important;
}

.workspace-shell .ws-language select[data-workspace-language-select]{
  min-height:46px!important;
  padding-inline:14px 34px!important;
  border-radius:14px!important;
  font:inherit!important;
  font-size:13px!important;
  font-weight:900!important;
  background:var(--ws-shell-control-bg)!important;
  color:var(--ws-shell-control-text)!important;
  border:1px solid var(--ws-shell-control-border)!important;
  box-shadow:none!important;
}
.workspace-shell .ws-language select[data-workspace-language-select]:hover,
.workspace-shell .ws-language select[data-workspace-language-select]:focus,
.workspace-shell .ws-language select[data-workspace-language-select]:focus-visible,
.workspace-shell .ws-language select[data-workspace-language-select]:active{
  background:var(--ws-shell-control-hover-bg)!important;
  color:var(--ws-shell-control-hover-text)!important;
  border-color:var(--ws-shell-control-hover-bg)!important;
}

.workspace-shell :where(
  .ws-top-btn,
  .ws-language select,
  .ws-command,
  .ws-dock-item,
  .ws-bottom-dock-item,
  .wsds-btn,
  .iam-btn,
  .crm-action,
  .customer-document-link,
  .customer-print-button,
  button:not([disabled]),
  a[href],
  summary,
  select:not([disabled]),
  input:not([disabled]),
  textarea:not([disabled]),
  [role="button"],
  [role="link"],
  [role="menuitem"],
  [role="option"],
  [tabindex]:not([tabindex="-1"])
):focus-visible{
  outline:3px solid var(--ws-pointer-ring)!important;
  outline-offset:3px!important;
  box-shadow:var(--ws-focus-shadow)!important;
  position:relative;
  z-index:4;
}

.workspace-shell :where(
  .ws-top-btn,
  .ws-command,
  .ws-dock-item,
  .ws-bottom-dock-item,
  .wsds-btn,
  .iam-btn,
  .crm-action,
  .customer-document-link,
  .customer-print-button,
  button:not([disabled]),
  a[href],
  [role="button"]
):active{
  transform:translateY(0) scale(.98)!important;
  box-shadow:inset 0 0 0 2px currentColor!important;
}

.workspace-shell .ws-dock-item.active,
.workspace-shell .ws-bottom-dock-item.active,
.workspace-shell .ws-dock-item[aria-current="page"],
.workspace-shell .ws-bottom-dock-item[aria-current="page"]{
  outline:2px solid currentColor!important;
  outline-offset:-3px!important;
  box-shadow:inset 4px 0 0 currentColor!important;
}

body.ws-focus-mode .workspace-shell{
  --ws-pointer-shadow:0 16px 38px rgba(2,8,23,.38);
  --ws-pointer-lift:translateY(-3px) scale(1.015);
}
html[data-workspace-pointer-assist="on"] body.ws-focus-mode .workspace-shell :where(
  .ws-main a[href],
  .ws-main button:not([disabled]),
  .ws-main summary,
  .ws-main select:not([disabled]),
  .ws-main input:not([disabled]),
  .ws-main textarea:not([disabled]),
  .ws-main [role="button"],
  .ws-main [tabindex]:not([tabindex="-1"])
):hover,
body.ws-focus-mode.ws-pointer-assist .workspace-shell :where(
  .ws-main a[href],
  .ws-main button:not([disabled]),
  .ws-main summary,
  .ws-main select:not([disabled]),
  .ws-main input:not([disabled]),
  .ws-main textarea:not([disabled]),
  .ws-main [role="button"],
  .ws-main [tabindex]:not([tabindex="-1"])
):hover{
  outline-width:4px!important;
  outline-offset:4px!important;
}

@media (prefers-reduced-motion:reduce){
  .workspace-shell :where(
    .ws-top-btn,.ws-language select,.ws-command,.ws-dock-item,.ws-bottom-dock-item,
    .wsds-btn,.iam-btn,.crm-action,.customer-document-link,.customer-print-button,
    button,a[href],summary,select,input,textarea,[role="button"],[role="link"],[tabindex]
  ){
    transition:none!important;
  }
  .workspace-shell :where(
    .ws-top-btn,.ws-language select,.ws-command,.ws-dock-item,.ws-bottom-dock-item,
    .wsds-btn,.iam-btn,.crm-action,.customer-document-link,.customer-print-button,
    button,a[href],summary,select,input,textarea,[role="button"],[role="link"],[tabindex]
  ):hover{
    transform:none!important;
  }
}

/* Workspace OS 3.0 Informational Surface Pointer Contract M7
 * Informational surfaces participate in enhanced pointer location only when Pointer Assist is ON.
 * Normal hover grammar remains available through the Design System without a forced pointer ring.
 */
.workspace-shell :where(
  .summary-card,
  .metric-card,
  .workspace-card,
  .workspace-widget,
  .workspace-panel,
  .workspace-view-card,
  .workspace-intro-panel,
  .admin-panel,
  .wsds-card,
  .wsds-metric,
  .wsds-panel,
  .crm-panel,
  .crm-table-card,
  .contract > div,
  .metrics > div,
  .admin-grid > div
){
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    outline-color .16s ease,
    border-color .16s ease,
    background-color .16s ease!important;
}

html[data-workspace-pointer-assist="on"] .workspace-shell :where(
  .summary-card,
  .metric-card,
  .workspace-card,
  .workspace-widget,
  .workspace-panel,
  .workspace-view-card,
  .workspace-intro-panel,
  .admin-panel,
  .wsds-card,
  .wsds-metric,
  .wsds-panel,
  .crm-panel,
  .crm-table-card,
  .contract > div,
  .metrics > div,
  .admin-grid > div
):hover,
body.ws-pointer-assist .workspace-shell :where(
  .summary-card,
  .metric-card,
  .workspace-card,
  .workspace-widget,
  .workspace-panel,
  .workspace-view-card,
  .workspace-intro-panel,
  .admin-panel,
  .wsds-card,
  .wsds-metric,
  .wsds-panel,
  .crm-panel,
  .crm-table-card,
  .contract > div,
  .metrics > div,
  .admin-grid > div
):hover{
  outline:3px solid var(--ws-pointer-ring)!important;
  outline-offset:3px!important;
  box-shadow:var(--ws-pointer-shadow)!important;
  transform:var(--ws-pointer-lift)!important;
  border-color:var(--ws-pointer-ring)!important;
  position:relative;
  z-index:2;
}

html[data-workspace-pointer-assist="on"] body.ws-focus-mode .workspace-shell :where(
  .summary-card,
  .metric-card,
  .workspace-card,
  .workspace-widget,
  .workspace-panel,
  .workspace-view-card,
  .workspace-intro-panel,
  .admin-panel,
  .wsds-card,
  .wsds-metric,
  .wsds-panel,
  .crm-panel,
  .crm-table-card,
  .contract > div,
  .metrics > div,
  .admin-grid > div
):hover,
body.ws-focus-mode.ws-pointer-assist .workspace-shell :where(
  .summary-card,
  .metric-card,
  .workspace-card,
  .workspace-widget,
  .workspace-panel,
  .workspace-view-card,
  .workspace-intro-panel,
  .admin-panel,
  .wsds-card,
  .wsds-metric,
  .wsds-panel,
  .crm-panel,
  .crm-table-card,
  .contract > div,
  .metrics > div,
  .admin-grid > div
):hover{
  outline-width:4px!important;
  outline-offset:4px!important;
}

@media (prefers-reduced-motion:reduce){
  .workspace-shell :where(
    .summary-card,.metric-card,.workspace-card,.workspace-widget,.workspace-panel,
    .workspace-view-card,.workspace-intro-panel,.admin-panel,.wsds-card,.wsds-metric,
    .wsds-panel,.crm-panel,.crm-table-card,.contract > div,.metrics > div,.admin-grid > div
  ){
    transition:none!important;
  }
  .workspace-shell :where(
    .summary-card,.metric-card,.workspace-card,.workspace-widget,.workspace-panel,
    .workspace-view-card,.workspace-intro-panel,.admin-panel,.wsds-card,.wsds-metric,
    .wsds-panel,.crm-panel,.crm-table-card,.contract > div,.metrics > div,.admin-grid > div
  ):hover{
    transform:none!important;
  }
}

/* Tenant Administration RC3: readable governance navigation without label overflow. */
.ws-dock-item{height:auto!important;min-height:44px!important;align-items:center!important;}
.ws-dock-item .ws-dock-text{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.16!important;max-width:100%!important;}
.ws-dock-capability-list{overflow-x:hidden!important;}
.tenant-admin-action-card,.tenant-admin-action-copy,.tenant-admin-action-copy strong,.tenant-admin-action-copy em{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;}
.tenant-admin-action-copy strong,.tenant-admin-action-copy em{white-space:normal!important;}
@media(max-width:980px){.tenant-admin-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:720px){.tenant-admin-action-grid{grid-template-columns:1fr!important;}.ws-dock-item .ws-dock-text{white-space:normal!important;}}
