/* ClearHelm Contributor Intake UI Finish Contract v1
 * Scope: PR176 Contributor Intake Workspace only.
 * Purpose: finish visual hierarchy, typography, rail card readability, Advisor spacing, and premium scroll behavior before link wiring.
 * Boundaries:
 * - No routes, links, panels, data model, sending, publishing, payment, contract, Gmail, or automation behavior.
 * - No public intake / paid registration / ticket confirmation / Golden Recipe page styling.
 * - No Events, League, or Auction styling.
 * - Powered footer remains governed by the Internal Workspace Powered Footer Contract.
 */

@media (min-width: 1180px) {
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] {
    --ch-intake-soft-ink: rgba(236, 244, 255, .92);
    --ch-intake-muted-ink: rgba(188, 202, 222, .82);
    --ch-intake-faint-ink: rgba(178, 194, 218, .70);
    --ch-intake-card-height: 112px;
    --ch-intake-rail-title-size: 23px;
    --ch-intake-card-title-size: 15.5px;
    --ch-intake-card-copy-size: 11.5px;
    gap: 10px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-topnav {
    min-height: 58px !important;
    padding: 9px 16px !important;
    gap: 18px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-brand {
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: -.035em !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-nav a {
    min-height: 34px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    letter-spacing: -.01em !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-nav a.is-active {
    font-weight: 850 !important;
    box-shadow: inset 0 -2px 0 rgba(86,171,255,.76), 0 0 0 1px rgba(102,184,255,.18) !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-home-grid {
    grid-template-columns: minmax(300px, 24%) minmax(560px, 1fr) minmax(300px, 24%) !important;
    gap: 20px !important;
    margin-top: 0 !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-rail,
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor.chdash-advisor {
    height: 468px !important;
    min-height: 468px !important;
    max-height: 468px !important;
    padding: 16px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-rail .chdash-panel-head {
    height: 34px !important;
    min-height: 34px !important;
    margin-bottom: 10px !important;
    align-items: center !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-panel-title {
    font-size: var(--ch-intake-rail-title-size) !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: -.04em !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-viewall {
    font-size: 12px !important;
    font-weight: 750 !important;
    color: rgba(212, 229, 255, .86) !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-rail-scroll {
    max-height: 398px !important;
    padding-right: 8px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(110, 174, 235, .44) rgba(11, 23, 40, .35) !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-rail-scroll::-webkit-scrollbar {
    width: 7px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-rail-scroll::-webkit-scrollbar-track {
    background: rgba(10, 22, 38, .42) !important;
    border-radius: 999px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-rail-scroll::-webkit-scrollbar-thumb {
    background: rgba(110, 174, 235, .48) !important;
    border-radius: 999px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-card {
    min-height: var(--ch-intake-card-height) !important;
    height: var(--ch-intake-card-height) !important;
    max-height: var(--ch-intake-card-height) !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    gap: 11px !important;
    align-items: center !important;
    padding: 12px 12px 12px 14px !important;
    margin: 10px 0 !important;
    border-radius: 17px !important;
    overflow: hidden !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-card::before {
    top: 16px !important;
    bottom: 16px !important;
    width: 3px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 13px !important;
    font-size: 15px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-pill,
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-status-chip {
    min-height: 18px !important;
    height: 18px !important;
    padding: 3px 8px !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
    letter-spacing: .015em !important;
    opacity: .94 !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-card-title {
    margin: 7px 0 3px !important;
    font-size: var(--ch-intake-card-title-size) !important;
    line-height: 1.08 !important;
    max-height: 34px !important;
    font-weight: 820 !important;
    letter-spacing: -.018em !important;
    color: var(--ch-intake-soft-ink) !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-card-sub {
    margin: 0 !important;
    font-size: var(--ch-intake-card-copy-size) !important;
    line-height: 1.18 !important;
    max-height: 28px !important;
    color: var(--ch-intake-muted-ink) !important;
    overflow: hidden !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-mini-btn,
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-card a[role="button"] {
    min-height: 28px !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor.chdash-advisor {
    display: block !important;
    text-align: left !important;
    padding: 22px 20px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor.chdash-advisor > div {
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    grid-template-rows: auto auto auto 1fr !important;
    justify-items: stretch !important;
    align-content: start !important;
    gap: 11px !important;
    transform: none !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor.chdash-advisor h2 {
    width: 100% !important;
    margin: 0 !important;
    font-size: clamp(40px, 3.75vw, 52px) !important;
    line-height: .95 !important;
    font-weight: 890 !important;
    letter-spacing: -.055em !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-advisor-chips {
    width: min(100%, 520px) !important;
    height: auto !important;
    min-height: 38px !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-advisor-chips .chdash-chip {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    font-size: 12.25px !important;
    line-height: 1 !important;
    font-weight: 780 !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-advisor-chips + .chdash-advisor-chips {
    width: 118px !important;
    min-height: 34px !important;
    margin-top: 0 !important;
    grid-template-columns: 1fr !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-advisor-chips + .chdash-advisor-chips .chdash-chip {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 12px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-advisor-callout,
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-link-card,
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-quick-capture-card {
    border-radius: 18px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-link-card {
    min-height: 86px !important;
    padding: 14px 16px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-link-card h3,
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-quick-capture-title {
    margin: 0 0 6px !important;
    font-size: 18px !important;
    line-height: 1.05 !important;
    font-weight: 820 !important;
    letter-spacing: -.025em !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-link-card p,
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-quick-capture-copy {
    font-size: 13px !important;
    line-height: 1.28 !important;
    color: var(--ch-intake-muted-ink) !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-quick-capture-card {
    width: 100% !important;
    max-width: none !important;
    min-height: 138px !important;
    margin-top: 0 !important;
    padding: 14px 16px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 18px !important;
    align-items: center !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-quick-capture-card .chdash-badge-row {
    grid-column: 1 / -1 !important;
    margin-bottom: 4px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-quick-capture-title,
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-quick-capture-copy {
    grid-column: 1 !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-quick-capture-open {
    grid-column: 2 !important;
    grid-row: 2 / 3 !important;
    align-self: center !important;
    justify-self: end !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 12.25px !important;
    font-weight: 820 !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-summary {
    min-height: 106px !important;
    max-height: 116px !important;
    padding: 12px 16px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-summary .chdash-panel-title {
    font-size: 21px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-summary-card b {
    font-size: 10.75px !important;
    font-weight: 760 !important;
    letter-spacing: -.01em !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-summary-card strong {
    font-size: 21px !important;
    font-weight: 850 !important;
  }
}

@media (min-width: 1180px) and (max-height: 930px) {
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] {
    --ch-intake-card-height: 106px;
    --ch-intake-rail-title-size: 22px;
    --ch-intake-card-title-size: 15px;
    --ch-intake-card-copy-size: 11.25px;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-rail,
  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor.chdash-advisor {
    height: 458px !important;
    min-height: 458px !important;
    max-height: 458px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] .chdash-rail-scroll {
    max-height: 390px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor.chdash-advisor h2 {
    font-size: clamp(38px, 3.45vw, 48px) !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-link-card {
    min-height: 78px !important;
  }

  body.chdash-page-body .chdash-shell[data-ch-panel="home"][data-ch-workspace-panel="contributor-intake"][data-clearhelm-wide-fit-pass="v1"] #workspace-advisor .chdash-quick-capture-card {
    min-height: 126px !important;
  }
}
