/* Atlas workstation simplification — 2026-06-14. noindex /workstation/ only.
   Loaded ONLY by workstation/index.html; the shared atlas.css used by the
   indexed homepage is untouched. Visual reorder + light hero additions only,
   no DOM moves and no handler changes. Selectors stay anchored to the
   workstation page so nothing here can affect any other surface. */

/* 1) Command surface first: hero -> tool -> account rail.
   In source order the account rail sat between the hero and the tool, pushing
   the input below the fold. Flex order lifts the tool directly under the hero. */
#workstation.atlas-workstation-page { display: flex; flex-direction: column; }
#workstation.atlas-workstation-page > .atlas-workstation-page-head { order: 0; }
#workstation.atlas-workstation-page > .atlas-workstation { order: 1; }
#workstation.atlas-workstation-page > .atlas-command-center { order: 2; }

/* The full market browser/chart/calendar rails made the workstation read as a
   second product. These sections are siblings after #workstation in the live
   DOM, so use sibling selectors; the earlier child selectors matched nothing.
   Browsing now lives on the ticker input picker only. */
#workstation.atlas-workstation-page ~ .atlas-ws-secondary-divider,
#workstation.atlas-workstation-page ~ .atlas-market-center,
#workstation.atlas-workstation-page ~ .atlas-calendar,
#workstation.atlas-workstation-page ~ .atlas-templates,
#workstation.atlas-workstation-page ~ .atlas-how,
#workstation.atlas-workstation-page ~ .atlas-support,
#workstation.atlas-workstation-page ~ .atlas-tier-strip {
  display: none !important;
}

/* 1b) Keep the command form in the first viewport on the live workstation.
   The shared Atlas hero spacing is homepage-friendly but too tall for an app. */
#workstation.atlas-workstation-page {
  margin-top: clamp(16px, 3.2vw, 38px);
}
#workstation.atlas-workstation-page > .atlas-workstation-page-head {
  margin-bottom: clamp(10px, 2vw, 18px);
}
#workstation.atlas-workstation-page > .atlas-workstation-page-head h1 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
#workstation.atlas-workstation-page > .atlas-workstation-page-head p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
#workstation.atlas-workstation-page > .atlas-workstation {
  margin-top: clamp(8px, 1.6vw, 16px);
}

@media (max-width: 640px) {
  #workstation.atlas-workstation-page {
    width: min(100% - 18px, 1180px);
    margin-top: 16px;
  }
  #workstation.atlas-workstation-page > .atlas-workstation-page-head h1 {
    font-size: clamp(1.75rem, 8.4vw, 2.12rem);
    line-height: 1.02;
  }
  #workstation.atlas-workstation-page > .atlas-workstation-page-head p {
    display: none;
  }
  #workstation.atlas-workstation-page > .atlas-workstation {
    margin-top: 6px;
  }
}

/* 2) Dedup: hide the redundant "Different research jobs" chooser block. It
   duplicates the in-form template <select> (the real chooser) and the templates
   explainer below it. */
.atlas-workflows { display: none !important; }

/* 3) Hero 1-2-3 orientation strip + the browse hint under the input. */
.atlas-ws-steps {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin: 14px 0 0; padding: 0; list-style: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted, #5c6677);
}
.atlas-ws-steps li { display: inline-flex; align-items: center; gap: 6px; }
.atlas-ws-steps b {
  display: inline-grid; place-items: center; width: 18px; height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #2563eb) 14%, transparent);
  color: var(--accent, #2563eb); font-weight: 800;
}
.atlas-ws-hint {
  display: block; margin-top: 6px;
  font-size: 12px; color: var(--text-muted, #5c6677);
}

/* 4) Phase 1: keep the legal boundary and Pro path visible beside the run
   control after the full tier strip was intentionally hidden. */
.atlas-workstation-rail {
  display: grid;
  gap: 10px;
  margin: 4px 0 2px;
}
.atlas-trust-line {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--accent, #2563eb) 22%, var(--border, #d9dee6));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #2563eb) 8%, transparent);
  color: var(--text-muted, #5c6677);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}
.atlas-pro-chip {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, #f2c94c 46%, var(--border, #d9dee6));
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.18), rgba(34, 211, 238, 0.10));
  color: var(--text, #0c1730);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}
.atlas-pro-chip span,
.atlas-pro-chip strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.atlas-pro-chip span {
  font-size: 10px;
  color: var(--text-muted, #5c6677);
}
.atlas-pro-chip strong {
  color: var(--text, #0c1730);
  font-size: 13px;
}
.atlas-pro-chip em {
  min-width: 0;
  color: var(--text-muted, #5c6677);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}
.atlas-pro-chip:hover,
.atlas-pro-chip:focus {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, #f2c94c 70%, var(--accent, #2563eb));
  outline: none;
}
#workstation.atlas-workstation-page .aw-run {
  min-height: 48px;
  font-size: 0.98rem;
  font-weight: 900;
}

/* 5) Koyfin wedge: the finished report should read as the product, not a
   generic text box. This rail is injected by atlas-workstation.js only after a
   completed report appears inside #tt-result. */
#workstation.atlas-workstation-page .atlas-report-proof-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
#workstation.atlas-workstation-page .atlas-report-proof-rail article {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 124px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--accent, #2563eb) 34%, var(--border, #d9dee6));
  border-radius: 9px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, #2563eb) 12%, transparent), transparent 70%),
    color-mix(in srgb, var(--bg, #07111f) 82%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}
#workstation.atlas-workstation-page .atlas-report-proof-rail span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent, #2563eb);
}
#workstation.atlas-workstation-page .atlas-report-proof-rail strong {
  min-width: 0;
  color: var(--text-primary, var(--text, #0c1730));
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
#workstation.atlas-workstation-page .atlas-report-proof-rail p {
  margin: 0;
  color: var(--text-muted, #5c6677);
  font-size: 12px;
  line-height: 1.35;
}
#workstation.atlas-workstation-page .atlas-proof-action {
  justify-self: start;
  min-height: 32px;
  margin-top: 2px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent, #2563eb) 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #2563eb) 11%, transparent);
  color: var(--accent, #2563eb);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
#workstation.atlas-workstation-page .atlas-proof-action:hover,
#workstation.atlas-workstation-page .atlas-proof-action:focus-visible {
  border-color: color-mix(in srgb, var(--accent, #2563eb) 72%, transparent);
  outline: none;
}
#workstation.atlas-workstation-page .atlas-report__actions,
#workstation.atlas-workstation-page .atlas-report-pdf-theme {
  position: relative;
}
#workstation.atlas-workstation-page .atlas-report__actions::before,
#workstation.atlas-workstation-page .atlas-report-pdf-theme::before {
  content: "output controls";
  display: block;
  width: 100%;
  margin: 0 0 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #2563eb);
}

@media (max-width: 640px) {
  .atlas-workstation-rail {
    gap: 8px;
  }
  .atlas-trust-line {
    font-size: 11px;
  }
  .atlas-pro-chip {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
  }
  .atlas-pro-chip em {
    grid-column: 1 / -1;
    font-size: 11px;
  }
  #workstation.atlas-workstation-page .atlas-report-proof-rail {
    grid-template-columns: 1fr;
  }
  #workstation.atlas-workstation-page .atlas-report-proof-rail article {
    min-height: 0;
  }
}
