/* setup.css — OWNED BY the setup screen session.
   brand.css (tokens) + app.css (components) load first; this adds only
   setup-view layout, the live "scope ledger" sidebar, and inline error states.
   Single accent: --athera-blue. Amber appears only on error, matching the
   os-state-error convention in app.css. */

/* --------------------------------------------------------------------------
   Two-column layout: intake form + sticky scope ledger
   -------------------------------------------------------------------------- */

.setup-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-6);
  align-items: start;
}

.setup-form { min-width: 0; }

/* Each intake block reads like a numbered section of a strategy memo */
.setup-block {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--athera-line);
}
.setup-block:first-of-type { border-top: none; padding-top: var(--space-2); }

.setup-optional {
  font-family: var(--athera-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--athera-grey-light);
}

.setup-block-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.setup-block-num {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-blue-deep);
  flex: 0 0 auto;
}
.setup-block-title {
  font-family: var(--athera-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--athera-charcoal);
  margin: 0;
}
.setup-block-hint {
  font-family: var(--athera-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--athera-grey);
  margin: 4px 0 var(--space-3);
  max-width: 48em;
}

/* The "Entire portfolio" chip gets a quiet leading divider from the rest */
.setup-chip-rule {
  width: 1px;
  align-self: stretch;
  background: var(--athera-line);
  margin: 0 4px;
}

/* Date range pair */
.setup-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  max-width: 460px;
}

/* Objective select stays narrow — it is a single choice */
.setup-objective { max-width: 460px; }

/* --------------------------------------------------------------------------
   Inline validation — amber, mirroring os-state-error
   -------------------------------------------------------------------------- */

.setup-error {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-2);
  font-family: var(--athera-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--athera-charcoal);
}
.setup-error::before {
  content: "";
  width: 2px;
  align-self: stretch;
  min-height: 1em;
  background: var(--athera-amber);
  flex: 0 0 auto;
}
.setup-block.has-error .setup-error { display: flex; }
.setup-block.has-error .setup-block-title { color: var(--athera-charcoal); }
.setup-block.has-error .os-input { border-color: var(--athera-amber); }

/* --------------------------------------------------------------------------
   Action row
   -------------------------------------------------------------------------- */

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--athera-line);
}
.setup-actions-note {
  font-family: var(--athera-sans);
  font-size: 12px;
  color: var(--athera-grey-light);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Scope ledger — sticky live summary of the intake
   -------------------------------------------------------------------------- */

.setup-ledger {
  position: sticky;
  top: var(--space-4);
  background: var(--athera-surface);
  border: 1px solid var(--athera-line-light);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.setup-ledger-eyebrow {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-blue-deep);
  display: block;
  margin-bottom: var(--space-1);
}
.setup-ledger-scope {
  font-family: var(--athera-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--athera-charcoal);
  margin: 0 0 var(--space-3);
}
.setup-ledger-rule {
  margin: 0 0 var(--space-3);
}

.setup-ledger-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--athera-line-light);
}
.setup-ledger-row:first-of-type { border-top: none; }
.setup-ledger-key {
  font-family: var(--athera-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
}
.setup-ledger-val {
  font-family: var(--athera-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--athera-charcoal);
}
.setup-ledger-val.is-empty { color: var(--athera-grey-light); font-style: italic; }
.setup-ledger-val .mono {
  font-family: var(--athera-mono);
  font-size: 12px;
  color: var(--athera-grey);
}

.setup-ledger-foot {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--athera-line-light);
  font-family: var(--athera-sans);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--athera-grey);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .setup-layout { grid-template-columns: 1fr; gap: var(--space-4); }
  .setup-ledger { position: static; }
}
@media (max-width: 520px) {
  .setup-dates { grid-template-columns: 1fr; }
}
