/* Shared primitives. Portal pages retain their site's own primary and accent colours. */
:root {
  --workspace-cyan:var(--site-primary,#0093dd);
  --workspace-teal:var(--site-secondary,#3bb3c2);
  --workspace-green:var(--site-accent,#85c226);
  --workspace-radius:12px;
  --workspace-motion:150ms;
  --workspace-ease:cubic-bezier(.2,.68,.22,1);
}
.workspace-skip {position:fixed;left:12px;top:8px;z-index:1000;transform:translateY(-180%);padding:12px;background:#13252e;color:white;border-radius:6px;}
.workspace-skip:focus {transform:none;}
.business-header .header-actions .workspace-help-trigger,
button.workspace-help-trigger {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #507485;
  border-radius:9px;padding:8px 14px;background:#122029;color:#f3f8fa;font:inherit;font-weight:600;cursor:pointer;
}
.business-header .header-actions .workspace-help-trigger:hover, button.workspace-help-trigger:hover {color:white;background:#213c49;border-color:#80d3ee;}
.workspace-help-trigger svg {flex:none;}
.desktop-workspace .workspace-content {min-width:0;outline:none;}
.business-app .workspace-sidebar {background:linear-gradient(170deg,#13212a 0,#0e171e 50%,#10191e 100%);}
.workspace-nav button svg {flex-shrink:0;}
.business-app .workspace-nav button[aria-current="page"] {background:linear-gradient(105deg,#153d4b,#182d38);border-color:#66cce8;}
.business-app .workspace-nav button, .business-app .area-grid button, .business-app .record-rows button, .business-app .overview-count-card {
  transition:background-color var(--workspace-motion) var(--workspace-ease),border-color var(--workspace-motion) var(--workspace-ease),box-shadow var(--workspace-motion) var(--workspace-ease);
}
.business-app .business-header {background:linear-gradient(100deg,#0d171d,#0b1116 65%,#0d181d);border-bottom-color:#405661;}
.workspace-content :is(.screen-toolbar,.page-heading) h2,.business-home .page-heading h2 {letter-spacing:-.025em;font-size:clamp(1.65rem,2.4vw,2.2rem);}
.workspace-content :is(input,textarea,select):focus-visible {border-color:#75c4f0;}
.workspace-content .resource-heading {display:flex;align-items:center;gap:12px;min-width:0;}
.resource-heading svg {color:#80d8e8;width:32px;height:32px;}
.workspace-content .crm-account-overview, .workspace-content .workflow-selected,
.workspace-content .security-review {border:1px solid #425e6b;border-top:3px solid #52c3d6;border-radius:11px;background:linear-gradient(125deg,#192b34,#101c23);}
.workspace-content .crm-section-shortcuts {grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));}
.workspace-content .crm-section-shortcuts button {display:grid;align-content:start;gap:4px;background:linear-gradient(145deg,#1a2f39,#13212a);border-color:#425c69;}
.crm-section-shortcuts button svg {color:#76d2e0;width:24px;height:24px;margin-bottom:4px;}
.workspace-content .business-table-wrap {border-radius:10px;}
.workspace-content .business-table caption {background:#14232b;}
.workspace-content .record-technical-details > summary {width:fit-content;}
.field-label-row {display:flex;align-items:center;gap:8px;}
.field-label-row .field-quick-help {display:inline-grid;place-items:center;padding:0;min-height:44px;width:44px;min-width:44px;background:transparent;border-color:transparent;color:#95deec;}
.field-quick-help span {display:grid;place-items:center;width:22px;height:22px;border:1.5px solid currentColor;border-radius:50%;font-size:16px;line-height:1;}
.workspace-sidebar .compact-menu-toggle, .security-staff .staff-role-desktop-note {display:none;}
@media(max-width:700px) {
  .business-app:has(.desktop-workspace) .business-header h1 {position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  .business-app .workspace-sidebar {padding:8px 16px;}
  .workspace-sidebar .compact-menu-toggle {display:flex;align-items:center;gap:11px;width:100%;text-align:left;min-height:46px;}
  .compact-menu-toggle svg {width:22px;height:22px;color:#84d8e8;}
  .compact-menu-toggle span {margin-inline-start:auto;color:#b9d2dd;font-weight:550;}
  .business-app .workspace-sidebar .workspace-nav[data-open="false"] {display:none;}
  .business-app .workspace-sidebar .workspace-nav[data-open="true"] {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:8px;}
  .workspace-content .crm-section-shortcuts {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px) and (pointer:coarse) {
  .security-staff .staff-role-editor-launch {display:none;}
  .security-staff .staff-role-desktop-note {display:grid;gap:4px;padding:14px 16px;border:1px solid #486674;border-left:3px solid #70cddb;border-radius:8px;background:#172830;color:#e2edf1;}
}
.workspace-content :is(.record-rows,.area-grid) button:hover:not(:disabled) {box-shadow:inset 3px 0 0 var(--workspace-teal);}
.business-app .business-table thead {background:#17262e;}
.business-app .business-table tbody tr:focus-within {outline:2px solid #75c4f0;outline-offset:-2px;}
.workspace-content :is(.record-screen,.business-home,.business-form) {animation:workspace-screen-enter .17s var(--workspace-ease) both;}
@keyframes workspace-screen-enter {from{opacity:.85;transform:translateY(3px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce) {
  :root {--workspace-motion:0s;}
  .workspace-content :is(.record-screen,.business-home,.business-form) {animation:none;}
  .business-app :is(.workspace-nav,.area-grid,.record-rows) button, .business-app .overview-count-card {transition:none;}
}
@media (forced-colors:active) {
  [aria-current="page"], .workspace-help-trigger {border:2px solid Highlight;}
}
@media print {.workspace-skip,.workspace-help-trigger {display:none!important;}}
