/* =======================================================
   Orchestrator — Settings ▸ Company (primary configuration)
   Reuses shared tokens / .orch-card / .sect-h / .tog / .seg / .ch.
   ======================================================= */

/* layout: fixed left anchor-nav + independently scrolling right column */
.cs-body { display: flex; overflow: hidden; padding: 0 22px 22px; }
.cs-split { flex: 1; display: grid; grid-template-columns: 226px 1fr; gap: 18px; min-height: 0; }

.cs-nav { align-self: start; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.cs-nav-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: none; background: transparent; border-radius: var(--r-sm); cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--muted); text-align: left; width: 100%; }
.cs-nav-item:hover { background: var(--sunken); color: var(--fg); }
.cs-nav-item.is-active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.cs-nav-ix { width: 18px; height: 18px; flex-shrink: 0; border-radius: var(--r-xs); background: var(--sunken); color: var(--muted); font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cs-nav-item.is-active .cs-nav-ix { background: var(--brand); color: var(--brand-fg); }
.cs-nav-note { margin-top: 12px; padding: 0 10px; font-size: 10.5px; line-height: 1.5; color: var(--dim); }

.cs-scroll { overflow-y: auto; position: relative; min-height: 0; padding: 2px 4px 40px 0; }
.cs-sec { margin-bottom: 14px; }
.cs-sec:last-child { margin-bottom: 0; }

/* saved indicator */
.cs-saved { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 3px 9px; border-radius: 999px; opacity: 0; transform: translateY(-1px); transition: opacity .2s; }
.cs-saved.is-on { opacity: 1; }
.cs-saved svg { width: 10px; height: 10px; }

/* fields */
.cs-field { display: flex; flex-direction: column; gap: 5px; margin-top: 13px; }
.cs-field:first-of-type { margin-top: 4px; }
.cs-field > label { font-size: 11px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cs-hint { font-weight: 500; color: var(--dim); font-size: 10.5px; }
.cs-inp { height: 34px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0 11px; font-family: inherit; font-size: 12.5px; color: var(--fg); background: var(--surface); width: 100%; box-sizing: border-box; outline: none; }
.cs-inp:focus { border-color: var(--brand); }
.cs-inp::placeholder { color: var(--faint); }
.cs-area { height: auto; min-height: 120px; padding: 9px 11px; line-height: 1.5; resize: vertical; }
.cs-area-sm { min-height: 56px; }
.cs-mono { font-family: var(--mono); font-size: 11.5px; }
.cs-num { max-width: 110px; font-family: var(--mono); }
.cs-count { font-size: 10px; color: var(--dim); text-align: right; font-family: var(--mono); margin-top: 4px; }
.cs-row { display: flex; gap: 8px; align-items: center; }
.cs-row .cs-inp { flex: 1; }
.cs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }

.cs-help { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 2px 0 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-subhead { font-size: 12px; font-weight: 700; color: var(--fg-strong); margin: 20px 0 2px; display: flex; align-items: center; gap: 9px; }
.cs-sect-act { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--brand); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cs-sect-act svg { width: 12px; height: 12px; }
.cs-req { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--warn); background: var(--warn-bg); padding: 2px 7px; border-radius: 999px; }
.cs-default-tag { margin-left: auto; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--sunken); padding: 2px 8px; border-radius: 999px; }
.sect-h .cs-default-tag { text-transform: uppercase; }

/* spinner for auto-generate */
.cs-spin { width: 12px; height: 12px; border-radius: 50%; border: 1.6px solid color-mix(in oklch, var(--brand) 30%, transparent); border-top-color: var(--brand); display: inline-block; animation: csSpin .7s linear infinite; margin-right: 4px; }
@keyframes csSpin { to { transform: rotate(360deg); } }

/* offerings */
.cs-offerings { display: flex; flex-direction: column; gap: 10px; }
.cs-offering { display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--sunken); }
.cs-off-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cs-off-grid:first-child { grid-template-columns: 1.3fr 1fr; }
.cs-offering .cs-del { align-self: stretch; }

/* ICP rank */
.cs-rank { display: flex; flex-direction: column; gap: 6px; }
.cs-rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface); }
.cs-rank-n { width: 20px; height: 20px; flex-shrink: 0; border-radius: var(--r-xs); background: var(--brand-soft); color: var(--brand-strong); font-size: 11px; font-weight: 700; font-family: var(--mono); display: inline-flex; align-items: center; justify-content: center; }
.cs-rank-lbl { flex: 1; font-size: 12.5px; font-weight: 500; color: var(--fg-strong); }
.cs-rank-acts { display: flex; gap: 4px; }
.cs-mini { width: 24px; height: 24px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-xs); color: var(--muted); cursor: pointer; font-size: 12px; line-height: 1; }
.cs-mini:hover:not(:disabled) { background: var(--sunken); color: var(--fg-strong); }
.cs-mini:disabled { opacity: 0.35; cursor: default; }

/* qualification */
.cs-qual { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cs-qual .cs-field { margin-top: 0; }
.cs-qual .cs-num { max-width: 100%; }

/* resources preview */
.cs-res-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-res-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface); }
.cs-res-ic { width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--r-sm); background: var(--sunken); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.cs-res-ic svg { width: 15px; height: 15px; }
.cs-res-nm { font-size: 12.5px; font-weight: 600; color: var(--fg-strong); }
.cs-res-t { font-size: 10.5px; color: var(--muted); }

/* connection rows */
.cs-conn-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.cs-conn-row:last-child { border-bottom: none; }
.cs-conn-main { flex: 1; min-width: 0; }
.cs-conn-nm { font-size: 12.5px; font-weight: 600; color: var(--fg-strong); display: flex; align-items: center; gap: 8px; }
.cs-conn-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* toggle rows */
.cs-toggle-row { display: flex; align-items: center; gap: 14px; padding: 12px 0 2px; }
.cs-toggle-row > div:first-child { flex: 1; }
.cs-tg-nm { font-size: 12.5px; font-weight: 600; color: var(--fg-strong); }
.cs-tg-d { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* automation map */
.cs-automap { display: flex; flex-direction: column; }
.cs-auto-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.cs-auto-row:last-child { border-bottom: none; }
.cs-auto-main { flex: 1; min-width: 0; }
.cs-auto-state { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; }
.cs-auto-state.hitl { background: var(--sunken); color: var(--muted); }
.cs-auto-state.auto { background: var(--ai-bg); color: var(--ai); }

/* dial */
.cs-dial { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cs-pips { display: inline-flex; gap: 5px; }
.cs-pip { width: 30px; height: 30px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm); color: var(--muted); font-size: 12px; font-weight: 700; font-family: var(--mono); cursor: pointer; }
.cs-pip.filled { background: var(--brand-soft); border-color: color-mix(in oklch, var(--brand) 30%, var(--border)); color: var(--brand-strong); }
.cs-pip.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.cs-dial-lbl { font-size: 12px; color: var(--fg); font-weight: 500; }

/* opportunity-creation warning */
.cs-warn { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 8px 11px; border-radius: var(--r-sm); }
.cs-warn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* DNC chips */
.cs-dnc { display: flex; flex-wrap: wrap; gap: 7px; }
.cs-dnc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--fg); background: var(--sunken); border: 1px solid var(--hairline); padding: 3px 5px 3px 10px; border-radius: 999px; font-family: var(--mono); }
.cs-dnc-x { border: none; background: transparent; color: var(--dim); cursor: pointer; font-size: 11px; line-height: 1; padding: 2px; border-radius: 50%; }
.cs-dnc-x:hover { color: var(--alert); background: var(--alert-bg); }
