/* Account tools share the editor's Graphite Glass palette, including modal portals. */
.account-surfaces {
  color-scheme: dark;
  color: var(--wnd-color-text, #dce0e8);
  --account-line: color-mix(in srgb, var(--wnd-color-primary, #b6bfd0) 14%, transparent);
  --account-hover: color-mix(in srgb, var(--wnd-color-primary, #b6bfd0) 7%, transparent);
}
.workbench-global .account-content {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px clamp(16px, 3vw, 48px) 48px;
  overflow: auto;
  scrollbar-color: #454b57 transparent;
}
.workbench-global .account-content > * {
  max-width: 1200px;
  margin-inline: auto;
}
.workbench-global .account-workspace-entry {
  display: flex;
  flex-direction: column;
}
.workspace-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  color: var(--wnd-color-muted-text);
}
.workspace-empty h1 {
  font-size: 23px;
  font-weight: 600;
  color: var(--wnd-color-text);
  margin: 20px 0 0;
}
.workspace-empty p {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.7;
}
.workspace-project-picker > p:first-child {
  margin-top: 0;
  color: var(--wnd-color-muted-text);
}
.workspace-project-list {
  max-height: 42dvh;
  overflow: auto;
  margin-top: 14px;
}
.account-surfaces :is(.panel, .copy-row, .dashboard-event-project) {
  background: var(--wnd-color-surface, #1c1f25);
  border-color: var(--account-line);
  box-shadow: inset 0 1px 0 #ffffff06;
}
.account-surfaces .panel {
  border-radius: 12px;
  padding: 22px;
}
.account-surfaces .panel:first-child {
  margin-top: 0;
}
.account-surfaces :is(h1, h2, h3, .dashboard-resource-list a, .dashboard-event-byline strong) {
  color: var(--wnd-color-text);
}
.account-surfaces h2 {
  font-size: 18px;
  font-weight: 600;
}
.account-surfaces a {
  color: var(--wnd-color-primary);
}
.account-surfaces
  :is(
    small,
    .muted,
    .eyebrow,
    .account-profile dt,
    .dashboard-kicker,
    .dashboard-sidebar-note,
    .dashboard-empty-small,
    .dashboard-event-byline p,
    .dashboard-event-byline time,
    .dashboard-client-label,
    .dashboard-event-detail,
    .dashboard-event-open,
    .dashboard-feed-footer,
    .dashboard-feed-empty p,
    .dashboard-feed-heading p:not(.dashboard-kicker),
    .dashboard-feed-filter > span,
    .dashboard-chevron,
    .dashboard-project-icon
  ) {
  color: var(--wnd-color-muted-text);
}
.account-surfaces :is(.list-row, .badge, fieldset, .dashboard-feed-filter) {
  border-color: var(--account-line);
}
.account-surfaces :is(.list-row > div, .copy-row code) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-surfaces :is(input, textarea, select, pre) {
  background: var(--wnd-color-background, #15171c);
  color: var(--wnd-color-text);
  border-color: var(--account-line);
  accent-color: var(--wnd-color-primary);
}
.account-surfaces :is(input, textarea)::placeholder {
  color: var(--wnd-color-muted-text);
}
.account-surfaces :is(input, textarea, select):focus-visible {
  border-color: var(--wnd-color-primary);
  box-shadow: 0 0 0 2px var(--account-hover);
}
.account-surfaces button {
  color: var(--wnd-color-text);
  background-color: var(--wnd-color-surface-elevated, #292e37);
  border-color: var(--account-line);
}
.account-surfaces :is(button, .dashboard-resource-list a, .dashboard-event-project):hover {
  background-color: var(--account-hover);
}
.account-surfaces :is(a, button, summary):focus-visible {
  outline: 2px solid var(--wnd-color-primary) !important;
  outline-offset: -2px;
  box-shadow: none !important;
}
.account-surfaces .dashboard-resource-list a {
  padding: 12px 10px;
  gap: 12px;
}
.account-surfaces
  :is(
    .dashboard-team-icon,
    .dashboard-actor-icon,
    .dashboard-empty-icon,
    .dashboard-count,
    .dashboard-event-icon
  ) {
  color: var(--wnd-color-primary);
  background: var(--account-hover);
  border-color: var(--account-line);
}
.account-surfaces .dashboard-event-project:hover {
  border-color: var(--wnd-color-primary);
}
.account-surfaces .notice {
  background: var(--account-hover);
  border-color: var(--account-line);
}
.account-surfaces :is(.error, .danger) {
  color: var(--wnd-color-danger);
  background: color-mix(in srgb, var(--wnd-color-danger) 10%, var(--wnd-color-surface));
  border-color: color-mix(in srgb, var(--wnd-color-danger) 30%, transparent);
}
.account-surfaces .account-logout [role='alert'] {
  position: static;
  display: block;
  width: auto;
}
.account-modal-content .account-logout {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workbench-shell .account-identity {
  padding: 0 !important;
  border: 0;
  background: transparent;
}
.workbench-shell .workbench-activity-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent !important;
}
.project-settings-actions[hidden],
.project-settings-content[hidden] {
  display: none;
}
.account-settings-grid {
  padding-bottom: 8px;
}
@media (max-width: 720px) {
  .workbench-global .account-content {
    padding: 18px 12px 32px;
  }
  .account-surfaces .panel {
    padding: 16px;
  }
  .account-surfaces .copy-row {
    flex-wrap: wrap;
  }
  .account-surfaces .account-profile {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .account-surfaces .account-profile dd + dt {
    margin-top: 8px;
  }
  .workbench-global .workbench-appbar-picker {
    max-width: none;
    flex: 1;
  }
}
.team-projects h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}
.team-project-grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-surfaces .wnd-suite-screen-header {
  background: transparent !important;
}
@media (max-width: 720px) {
  .workbench-global :is(.workbench-appbar-version, .workbench-command) {
    display: none !important;
  }
}
.teams-workspace {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
.teams-workspace-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.teams-workspace-heading h1 {
  margin: 16px 0;
  font-size: 24px;
}
.workbench-project-content > .workspace-onboarding,
.project-overview-settings {
  flex: 1;
  min-height: 0;
}
.workbench-project-content > [hidden] {
  display: none;
}
