/* Work location belongs to the floating navigation drawer, not the page grid. */
.drawer-work-locator {
  display: grid;
  flex: 0 0 auto;
  gap: 0;
  margin: 2px 10px 8px;
  overflow: hidden;
  border: 1px solid var(--visual-locator-line, rgba(197, 215, 239, .22));
  border-radius: 14px;
  background: var(--visual-locator-surface-deep, #112238);
}

.drawer-work-locator button {
  width: 100%;
  border: 0;
  color: var(--visual-locator-ink, #f5f8ff);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.drawer-project-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--visual-locator-line, rgba(197, 215, 239, .22)) !important;
  background: var(--visual-locator-surface, #172943);
}

.drawer-project-link:hover {
  background: color-mix(in srgb, var(--visual-locator-surface, #172943) 88%, var(--visual-locator-ink, #f5f8ff));
}

.drawer-project-link > svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--visual-locator-ink, #f5f8ff);
}

.drawer-context-copy,
.drawer-work-place-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.drawer-work-locator small {
  color: var(--visual-locator-muted, #b8c7da);
  font-size: 12px !important;
  font-weight: 650;
  line-height: 1.3;
}

.drawer-work-locator strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--visual-locator-ink, #f5f8ff);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.drawer-work-place {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px 11px;
  background: var(--visual-locator-surface-deep, #112238);
}

.drawer-context-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--visual-locator-line, rgba(197, 215, 239, .22));
  background: color-mix(in srgb, var(--visual-locator-ink, #f5f8ff) 10%, var(--visual-locator-surface, #172943));
  color: var(--visual-locator-ink, #f5f8ff);
}

.drawer-context-icon svg {
  width: 16px;
  height: 16px;
}

.drawer-work-place > .drawer-context-icon {
  width: 28px;
  height: 28px;
  border-color: var(--visual-locator-line, rgba(197, 215, 239, .22));
  background: color-mix(in srgb, var(--visual-locator-ink, #f5f8ff) 8%, var(--visual-locator-surface-deep, #112238));
}

.drawer-work-locator button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid color-mix(in srgb, var(--visual-locator-focus, #9cc1ff) 58%, transparent);
  outline-offset: -3px;
}

html[data-visual-style="refined"] .drawer-work-locator {
  border-radius: 12px;
}



html[data-visual-style="weave"] .drawer-work-locator {
  border-radius: 16px;
}

html[data-visual-style="weave"] .drawer-project-link {
  background: #2b6058;
}

html[data-visual-style="weave"] .drawer-context-icon {
  border-radius: 12px;
}


.professional-support-nav {
  margin-top: 3px;
}

body .professional-support-nav > summary {
  min-height: 36px;
  padding: 8px 12px 6px 18px;
  font-size: 13px !important;
  font-weight: 700;
}

body .professional-support-nav > summary:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--visual-accent-soft, rgba(148, 163, 184, .14)) 68%, transparent);
  color: var(--visual-nav-text, #dbe7f5) !important;
}

.professional-support-nav .nav-item {
  margin-left: 8px;
}

body .current-project-nav {
  margin: 2px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--visual-nav-line, #d2ddda);
}

html[data-visual-style] body .current-project-nav > summary {
  min-height: 44px;
  padding: 9px 10px;
  color: var(--visual-accent-deep);
  font-size: 14px !important;
  font-weight: 750;
  background: color-mix(in srgb, var(--visual-accent-soft) 72%, transparent);
}

html[data-visual-style] body .current-project-nav[open] > summary {
  color: var(--visual-accent-deep);
  background: var(--visual-accent-soft);
}

html[data-visual-style] body .professional-support-nav > summary,
html[data-visual-style] body .sidebar-nav > .nav-group-label,
html[data-visual-style] body .current-project-nav .project-nav-stage-title {
  color: color-mix(in srgb, var(--visual-nav-text) 76%, var(--visual-nav-muted)) !important;
}

html[data-visual-style] body .nav-collapse > summary::after {
  color: currentColor;
  opacity: .72;
}

body .sidebar-nav {
  padding-bottom: 4px;
}

body .current-project-nav .project-nav-stage {
  margin: 1px 0 3px;
}

body .current-project-nav .project-nav-stage-title {
  min-height: 36px;
  gap: 0;
  padding: 8px 12px 6px 18px;
  color: color-mix(in srgb, var(--visual-nav-text, #33433e) 76%, var(--visual-nav-muted, #71817b));
}

body .current-project-nav .project-nav-stage-title > .audit-stage-title-icon {
  display: none !important;
}

body .current-project-nav .project-nav-stage-title strong {
  font-size: 13px !important;
  font-weight: 700;
}

html[data-visual-style] body .current-project-nav .project-nav-stage:has(.nav-item.active) .project-nav-stage-title {
  color: color-mix(in srgb, var(--visual-nav-text) 76%, var(--visual-nav-muted)) !important;
}

body .current-project-nav .project-nav-stage .nav-item {
  min-height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
}

body .sidebar-nav > .nav-group-label {
  min-height: 36px;
  padding: 8px 12px 6px 18px;
  font-size: 13px !important;
  font-weight: 700;
}

/* The style switcher is a navigation preference, so it expands inside the
   drawer instead of floating beyond the drawer boundary. */
html[data-visual-style] .sidebar-style-picker {
  position: static;
  margin: 9px 0 18px;
  padding-top: 9px;
  border-top: 1px solid var(--visual-nav-line);
}

html[data-visual-style] .sidebar-style-picker > summary {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--visual-radius-sm);
  background: transparent;
  color: var(--visual-nav-text);
  box-shadow: none;
}

html[data-visual-style] .sidebar-style-picker > summary:hover,
html[data-visual-style] .sidebar-style-picker[open] > summary {
  border-color: var(--visual-nav-line);
  background: color-mix(in srgb, var(--visual-accent-soft) 66%, transparent);
}

html[data-visual-style] .sidebar-style-picker > summary svg {
  grid-row: auto;
  width: 18px;
  height: 18px;
  color: var(--visual-accent-deep);
}

html[data-visual-style] .sidebar-style-picker > summary span {
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

html[data-visual-style] .sidebar-style-picker > summary small {
  color: var(--visual-nav-muted);
  font-size: 12px !important;
  font-weight: 650;
  white-space: nowrap;
}

html[data-visual-style] .sidebar-style-picker .visual-style-quick-panel {
  position: static;
  width: auto;
  margin: 7px 0 0;
  padding: 7px;
  border-color: var(--visual-nav-line);
  border-radius: var(--visual-radius);
  background: color-mix(in srgb, var(--visual-surface) 90%, var(--visual-accent-soft));
  box-shadow: none;
}

html[data-visual-style] .sidebar-style-picker .visual-style-quick-panel::before {
  display: none;
}

html[data-visual-style] .sidebar-style-picker .visual-style-quick-head {
  padding: 5px 5px 8px;
}

html[data-visual-style] .sidebar-style-picker .visual-style-quick-head span {
  font-size: 12px !important;
}

html[data-visual-style] .sidebar-style-picker .visual-style-quick-option {
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 52px;
  gap: 8px;
  padding: 6px;
}

html[data-visual-style] .sidebar-style-picker .visual-style-quick-swatch {
  width: 36px;
  height: 34px;
}

html[data-visual-style] .sidebar-style-picker .visual-style-quick-option small {
  font-size: 12px !important;
  white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
  .drawer-work-locator button { transition: none; }
}
