/* Shared founder workspace styles. Keep client and consultant portals scoped out. */
.admin-command-center-shell {
  --command-radius: 18px;
  --command-control-radius: 10px;
  --command-gap: 20px;
}

.admin-command-center-shell .command-center-header {
  border-radius: var(--command-radius);
  box-shadow: 0 4px 18px rgb(var(--ink-rgb) / .035);
}

.admin-command-center-shell .command-center-content { padding-top: 24px; }
.admin-command-center-shell .command-center-tabs a,
.admin-command-center-shell .command-center-subtabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--command-control-radius);
}

.admin-command-center-shell .command-section-heading,
.admin-command-center-shell .health-heading,
.admin-command-center-shell .onboarding-page-heading {
  align-items: center;
  gap: 20px;
  padding: 0;
}

.admin-command-center-shell .command-section-heading h1,
.admin-command-center-shell .command-section-heading h2,
.admin-command-center-shell .health-heading h1,
.admin-command-center-shell .onboarding-page-heading h1 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.admin-command-center-shell .command-section-heading > div > p:first-child { margin-bottom: 6px; font-size: 11px; letter-spacing: .08em; }
.admin-command-center-shell .command-section-heading > div > span,
.admin-command-center-shell .health-heading p:not(.finance-eyebrow) { margin-top: 7px; font-size: 14px; line-height: 1.5; }
.admin-command-center-shell .operations-refresh,
.admin-command-center-shell .people-button { min-height: 44px; border-radius: var(--command-control-radius); line-height: 1.4; }

.admin-command-center-shell :is(.operations-stat, .insights-metric, .insights-panel,
  .insights-audience-grid article, .insights-next-steps article, .insights-observations article,
  .health-kpis article, .health-chart-card, .health-breakdown, .people-list,
  .command-priority-panel, .operations-flags, .operations-activity, .overview-next-actions a, .request-intro) {
  border-radius: var(--command-radius);
  box-shadow: 0 2px 8px rgb(var(--ink-rgb) / .025);
}

.admin-command-center-shell :is(.command-priority-panel, .operations-flags, .operations-activity, .request-intro) {
  background: var(--surface-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.admin-command-center-shell :is(.command-priority-panel, .operations-flags, .operations-activity)::before,
.admin-command-center-shell :is(.command-priority-panel, .operations-flags, .operations-activity)::after { content: none; }
.admin-command-center-shell :is(.command-priority-panel h2, .operations-flags h3, .operations-activity h3, .operations-simple-heading h3, .request-intro h2) {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.admin-command-center-shell :is(.people-directory, .finance-health, .insights-dashboard) { gap: var(--command-gap); }
.admin-command-center-shell .people-toolbar { gap: 12px; }
.admin-command-center-shell .people-count { display: flex; min-height: 44px; align-items: center; padding-bottom: 0; }
.admin-command-center-shell input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']),
.admin-command-center-shell select:not([multiple]):not([size]) {
  min-height: 44px;
  border-radius: var(--command-control-radius);
  font-size: 14px;
  line-height: 20px;
}

/* Use one source icon and reserve its own space beside the selected text. */
.admin-command-center-shell select:not([multiple]):not([size]) {
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
  padding: 11px 42px 11px 13px;
  background-image: url('/assets/icons/command-center-chevron-down.svg');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  color-scheme: light;
  cursor: pointer;
}
.dark .admin-command-center-shell select:not([multiple]):not([size]) { color-scheme: dark; }
.admin-command-center-shell select:disabled { cursor: default; }
.admin-command-center-shell :is(input, select, textarea, button, a, summary):focus-visible { outline: 2px solid #8973c9; outline-offset: 3px; }
.admin-command-center-shell label.people-send-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.admin-command-center-shell label.people-send-confirm > input[type='checkbox'] {
  flex: 0 0 16px;
  width: 16px;
  margin-top: 3px;
}

.admin-command-center-shell :is(.founder-detail-group, .insights-method, .health-services details, .people-plain-text) > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  list-style: none;
}
.admin-command-center-shell :is(.founder-detail-group, .insights-method, .health-services details, .people-plain-text) > summary::-webkit-details-marker { display: none; }
.admin-command-center-shell :is(.founder-detail-group, .insights-method, .health-services details, .people-plain-text) > summary::after {
  content: '';
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url('/assets/icons/command-center-chevron-down.svg') center / 16px 16px no-repeat;
}
.admin-command-center-shell :is(.founder-detail-group, .insights-method, .health-services details, .people-plain-text)[open] > summary::after { transform: rotate(180deg); }
.admin-command-center-shell .founder-detail-group > summary > span:first-child { flex: 1; }
.admin-command-center-shell .founder-detail-group > summary > b { display: none; }
.admin-command-center-shell :is(.onboarding-step-toggle b, .candidate-research-disclosure-action i, .candidate-research-claims summary i) {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
  background: currentColor;
  mask: url('/assets/icons/command-center-chevron-down.svg') center / 16px 16px no-repeat;
}

.admin-command-center-shell .insights-heading { min-height: 62px; }
.insights-report-status { display: grid; gap: 5px; flex: 0 0 auto; text-align: right; font-size: 12px; color: rgb(var(--ink-rgb) / .72); }
.insights-report-status strong { color: #27815e; font-weight: 650; }
.insights-report-status.is-partial strong { color: #a76d16; }
.dark .insights-report-status strong { color: #78d6ae; }
.dark .insights-report-status.is-partial strong { color: #ecc375; }
.admin-command-center-shell .insights-anchor-nav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line-soft); padding: 0 0 10px; }
.admin-command-center-shell .insights-anchor-nav button { width: auto; min-height: 44px; border: 0; border-radius: var(--command-control-radius); padding: 10px 14px; font-size: 13px; background: transparent; }
.admin-command-center-shell .insights-anchor-nav button.is-active { color: rgb(var(--ink-rgb)); background: rgb(var(--ink-rgb) / .07); box-shadow: none; }
.admin-command-center-shell :is(.insights-segmented, .health-scope) { border-radius: 12px; padding: 4px; background: rgb(var(--ink-rgb) / .035); box-shadow: none; }
.admin-command-center-shell :is(.insights-segmented button, .health-scope button) { min-height: 40px; border-radius: 8px; padding: 9px 14px; font-size: 12px; }
.admin-command-center-shell .insights-segmented button.is-active { background: var(--surface-card); color: rgb(var(--ink-rgb)); box-shadow: 0 1px 4px rgb(var(--ink-rgb) / .08); }
.admin-command-center-shell .insights-weekly-read { gap: 12px; margin: 0; padding: 14px 18px; border-inline-start: 1px solid var(--line-soft); }
.admin-command-center-shell .insights-weekly-read > div { flex-basis: 240px; }
.admin-command-center-shell .insights-weekly-read h2 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.015em; }
.admin-command-center-shell .insights-weekly-read p { font-size: 12px; color: rgb(var(--ink-rgb) / .66); }
.admin-command-center-shell .insights-weekly-link { min-height: 44px; border: 1px solid var(--line-soft); border-radius: var(--command-control-radius); background: var(--surface-card); padding: 10px 14px; color: inherit; font-size: 12px; }
.admin-command-center-shell .insights-weekly-link:hover { background: rgb(var(--ink-rgb) / .05); }
.admin-command-center-shell .insights-section-heading h2,
.admin-command-center-shell .insights-panel-heading h2 { margin-top: 0; font-size: 20px; letter-spacing: -.025em; line-height: 1.3; }
.admin-command-center-shell .insights-section-heading > p,
.admin-command-center-shell .insights-panel-heading p { margin-bottom: 5px; letter-spacing: .08em; }
.admin-command-center-shell .insights-audience-grid article { min-height: 138px; padding: 18px; }
.admin-command-center-shell .insights-audience-grid strong { font-size: 32px; }
.admin-command-center-shell .insights-audience-grid p { font-size: 12px; }
.admin-command-center-shell .insights-metric { min-height: 180px; padding: 18px; }
.admin-command-center-shell .insights-metric > strong { font-size: 36px; }
.admin-command-center-shell .insights-metric-label > span { font-size: 11px; letter-spacing: .035em; }
.admin-command-center-shell .insights-metric-label > small { font-size: 10px; }
.admin-command-center-shell .insights-metric p { font-size: 12px; }
.admin-command-center-shell .insights-metric-change { font-size: 11px; }
.admin-command-center-shell .insights-audience-footnote { font-size: 12px; }
.admin-command-center-shell .insights-loading-hero { min-height: 62px; }
.admin-command-center-shell .insights-loading-grid span { min-height: 150px; }

@media (max-width: 760px) {
  .admin-command-center-shell .command-center-frame { padding: 16px 16px 40px; }
  .admin-command-center-shell .command-center-brand-row { padding: 14px 16px 8px; }
  .admin-command-center-shell .command-center-tabs { padding: 0 8px 8px; }
  .admin-command-center-shell .command-center-tabs a { padding: 10px 13px; }
  .admin-command-center-shell .insights-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .insights-report-status { text-align: left; }
  .admin-command-center-shell .health-toolbar { flex-wrap: wrap; }
  .admin-command-center-shell .health-toolbar label { min-width: 0; }
}

@media (max-width: 480px) {
  .admin-command-center-shell .command-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    text-align: left;
  }
  .admin-command-center-shell .command-section-heading > :is(.people-button, .operations-refresh) { margin-top: 18px; }
  .admin-command-center-shell .command-section-heading.insights-heading { display: flex; align-items: flex-start; }
  .admin-command-center-shell .command-center-brand strong { font-size: 18px; }
  .admin-command-center-shell .command-section-heading h1,
  .admin-command-center-shell .command-section-heading h2,
  .admin-command-center-shell .health-heading h1,
  .admin-command-center-shell .onboarding-page-heading h1 { font-size: 28px; }
  .admin-command-center-shell input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']),
  .admin-command-center-shell select:not([multiple]):not([size]),
  .admin-command-center-shell textarea { font-size: 16px; }
  .admin-command-center-shell .insights-controls { gap: 10px; }
  .admin-command-center-shell .insights-segmented button { padding-inline: 10px; }
  .admin-command-center-shell .insights-audience-grid article { min-height: 150px; padding: 15px; }
  .admin-command-center-shell .insights-weekly-read > div { flex-basis: 100%; }
  .admin-command-center-shell .founder-detail-group > summary { flex-wrap: wrap; }
  .admin-command-center-shell .founder-detail-group > summary > span:not(:first-child) { max-width: 38%; }
}

@media (forced-colors: active) {
  .admin-command-center-shell select:not([multiple]):not([size]) { appearance: auto; background-image: none; }
}
