:root {
  --workspace-accent: #a6192e;
  --workspace-tint: #f7eaed;
  --ink: #1a1a1a;
  --ink-soft: #343434;
  --blue: #a6192e;
  --blue-deep: #851326;
  --gray-bg: #f4f4f5;
  --panel: #fafafa;
  --line: #dedee1;
  --muted: #707078;
  --text: #27272a;
  --shadow: 0 4px 16px #18181b08;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  background: var(--gray-bg);
  color: var(--text);
}
:root[data-workspace="atlas"] {
  --workspace-accent: #24634e;
  --workspace-tint: #e7f1eb;
  --blue: #24634e;
  --blue-deep: #194936;
  --gray-bg: #f3f6f4;
}
:root[data-workspace="shared"] {
  --workspace-accent: #45454c;
  --workspace-tint: #ededf0;
}
body {
  background: var(--gray-bg);
}
.workspace-header {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
  flex-wrap: wrap;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #707078;
  flex-shrink: 0;
  justify-content: center;
  width: 158px;
  height: 40px;
  margin: 0;
}
.workspace-brand img {
  width: 158px;
  height: 40px;
  object-fit: contain;
}
.workspace-brand .workspace-wordmark {
  font-size: 23px;
  font-weight: 700;
  color: var(--workspace-accent);
  white-space: nowrap;
}
.workspace-selector {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}
.workspace-selector > span {
  font-size: 11px;
  font-weight: 600;
  color: #707078;
}
.workspace-switch {
  box-sizing: border-box;
  font-family: inherit;
  min-height: 38px;
  width: 136px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
  color: #27272a;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.workspace-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 0;
}
.workspace-nav a {
  box-sizing: border-box;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #5b5b63;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 4px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
}
.workspace-nav-disabled { padding: 9px 10px; font-size: 13px; font-weight: 600; color: #96969c; white-space: nowrap; cursor: default; line-height: 20px; }
.workspace-nav a:hover {
  background: #f4f4f5;
  color: #1a1a1a;
}
.workspace-nav a[aria-current="page"] {
  background: var(--workspace-tint);
  color: var(--workspace-accent);
}
.workspace-header .workspace-account {
  margin: 0;
  flex: 0 0 auto;
  width: auto;
  order: 0;
}
.workspace-account .dashboard-account {
  box-sizing: border-box;
  color: #343434;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 38px;
  font-weight: 600;
  font-family: inherit;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin: 0;
}
.workspace-header :focus-visible {
  outline: 2px solid var(--workspace-accent);
  outline-offset: 3px;
}
.primary-action,
.auth-page button.primary {
  background: var(--workspace-accent);
  border-color: var(--workspace-accent);
  box-shadow: none;
  color: #fff;
}
.primary-action:hover,
.auth-page button.primary:hover {
  background: #851326;
}
.crm-commandbar,
.crm-statusbar {
  box-shadow: none;
}
.crm-commandbar {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 0 18px;
}
.crm-heading h1 {
  font-size: 28px;
}
.crm-statusbar {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 0 18px;
}
.crm-statusbar strong {
  font-size: 17px;
}
.crm-column {
  background: #fafafa;
  border-color: #dedee1;
}
.crm-card {
  box-shadow: 0 2px 6px #18181b06;
}
.crm-card.selected {
  border-color: #a6192e;
  box-shadow: 0 0 0 1px #a6192e;
}
.crm-card-edit {
  color: #a6192e;
  background: #f7eaed;
}
.crm-card-icon {
  color: #555;
  background: #f2f2f3;
}
.crm-card-drag-preview {
  box-shadow: 0 14px 32px #18181b24;
}
.auth-page a {
  color: #a6192e;
}
.auth-page .workspace-brand {
  color: #707078;
}
.auth-page .workspace-switch {
  width: 136px;
}
.auth-page .workspace-nav a {
  color: #5b5b63;
}
.auth-page input:focus,
.auth-page select:focus {
  outline-color: #a6192e;
}
.hero-panel,
.content-panel {
  box-shadow: none;
}
.hero-panel {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0 24px;
}
.hero-panel h1 {
  font-size: 32px;
}
.content-panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 0;
}
.eyebrow,
.panel-kicker {
  color: #a6192e;
}
.project-index {
  background: #ebebed;
}
.chart-shell {
  background: repeating-linear-gradient(
    to top,
    #dedee1 0 1px,
    transparent 1px 45px
  );
}
.chart-shell span {
  background: #858c90;
  box-shadow: none;
}
.chart-shell span:last-child {
  background: #a6192e;
}
.main-content {
  width: 100%;
  max-width: none;
}
.atlas-main {
  height: calc(100dvh - var(--workspace-header-height, 78px));
  display: flex;
  flex-direction: column;
}
.atlas-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #707078;
  background: #fafafa;
}
.atlas-status strong {
  color: #3b6254;
  font-weight: 600;
}
.atlas-frame {
  width: 100%;
  border: 0;
  flex: 1;
  min-height: 0;
  background: #fff;
}
.atlas-message {
  padding: 32px 24px;
  color: #5b5b63;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1250px) {
  .workspace-header {
    gap: 10px 18px;
  }
  .workspace-nav {
    order: 4;
    flex-basis: 100%;
  }
  .workspace-brand {
    margin-left: auto;
  }
}
@media (max-width: 560px) {
  .workspace-header {
    padding: 12px;
    gap: 10px;
  }
  .workspace-brand {
    gap: 0;
    width: 112px;
  }
  .workspace-brand img {
    width: 112px;
    height: 32px;
  }
  .workspace-brand .workspace-wordmark {
    font-size: 18px;
  }
  .workspace-switch,
  .auth-page .workspace-switch {
    width: 100px;
    font-size: 13px;
    padding: 6px 8px;
  }
  .workspace-account .dashboard-account {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px;
    font-size: 12px;
  }
  .workspace-nav a {
    padding: 8px;
  }
  .atlas-status {
    padding: 8px 12px;
    flex-wrap: wrap;
  }
  .crm-heading h1 {
    font-size: 26px;
  }
  .hero-panel h1 {
    font-size: 26px;
  }
}
@media (max-width: 380px) {
  .workspace-header { gap: 8px; padding: 10px; }
  .workspace-brand, .workspace-brand img {
    width: 98px;
  }
  .workspace-brand .workspace-wordmark { font-size: 16px; }
  .workspace-account .dashboard-account { max-width: 76px; }
  .workspace-switch, .auth-page .workspace-switch {
    width: 90px;
  }
}
