.cs-public { background: var(--panel); }
.cs-wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 750; letter-spacing: -1px; line-height: 1.15; }
.cs-wordmark:hover { color: var(--ink); }
.cs-wordmark small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.cs-brand-symbol { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: var(--primary); color: var(--panel); }
.cs-brand-symbol svg { width: 24px; height: 24px; }
.cs-public-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1240px; margin: auto; padding: 24px 32px; border-bottom: 1px solid var(--border); background: var(--panel); color: var(--ink); }
.cs-public-header nav { display: flex; align-items: center; gap: 26px; margin: 0; }
.cs-public-header nav > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.cs-public-header .button.small { min-height: 44px; padding: 10px 16px; }
.cs-public-header nav > a:not(.button):hover { color: var(--accent); }
.cs-content { width: 100%; min-width: 0; max-width: 1440px; margin: 0 auto; padding: 32px; }
.cs-public .cs-content { max-width: 1240px; padding: 0 32px 32px; }

/* Workspace: keep the operating layout, not the landing composition. */
.cs-sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 236px; padding: 28px 18px 22px; background: var(--navy); color: var(--on-dark); z-index: 25; overflow-y: auto; }
.cs-sidebar .cs-wordmark { color: var(--panel); padding: 0 8px; }
.cs-sidebar .cs-brand-symbol { background: #383042; color: var(--dark-accent); }
.cs-sidebar .cs-wordmark small { color: var(--dark-muted); }
.cs-workspace-label { display: flex; gap: 11px; align-items: center; margin: 36px 0 26px; padding: 13px 11px; border: 1px solid var(--dark-border); border-radius: 9px; color: var(--panel); font-size: 13px; font-weight: 600; }
.cs-workspace-label small { display: block; color: var(--dark-muted); font-size: 11px; font-weight: 400; }
.cs-workspace-avatar, .cs-user-avatar { display: grid; place-items: center; flex-shrink: 0; width: 31px; height: 31px; border-radius: 9px; background: #383042; color: var(--dark-accent); font-size: 12px; font-weight: 700; }
.cs-nav-caption { margin: 0 13px 10px; color: var(--dark-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; }
.cs-nav { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.cs-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 13px; border-radius: 8px; color: var(--on-dark); font-size: 13px; font-weight: 500; text-decoration: none; }
.cs-nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.cs-nav a:hover { color: var(--panel); background: var(--primary-hover); }
.cs-nav a.is-active { background: #383042; color: var(--dark-accent); }
.cs-sidebar-bottom { margin-top: auto; padding: 38px 12px 0; color: var(--on-dark); font-size: 12px; }
.cs-sidebar-bottom p { margin: 7px 0 12px; color: var(--dark-muted); font-size: 11px; }
.cs-sidebar-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dark-accent); font-size: 11px; text-decoration: none; }
.cs-security-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--dark-accent); margin-right: 7px; }
.cs-workspace { margin-left: 236px; min-width: 0; }
.cs-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 14px 32px; background: var(--panel); color: var(--ink); border-bottom: 1px solid var(--border); }
.cs-topbar-label { font-size: 12px; font-weight: 600; }
.cs-topbar-account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cs-email { max-width: 260px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12px; }
.cs-user-avatar { background: var(--accent-soft); color: var(--accent); }
.cs-topbar-account form { margin: 0; }
.cs-logout { min-height: 44px; padding: 7px 9px; margin: 0; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 11px; }
.cs-mobile-menu { display: none; }
.cs-footer { max-width: 1240px; margin: 22px auto 0; padding: 26px 32px 30px; color: var(--muted); border-top: 1px solid var(--border); font-size: 11px; line-height: 1.85; }
.cs-footer > div { display: flex; align-items: center; gap: 14px; }
.cs-footer strong { color: var(--ink); font-size: 18px; letter-spacing: -.5px; }
.cs-footer p { max-width: 960px; margin: 10px 0; }
.cs-footer details { border: 0; background: transparent; padding: 0; }
.cs-footer summary { display: flex; align-items: center; width: fit-content; min-height: 44px; cursor: pointer; color: var(--muted); }
.cs-footer summary::after { content: '+'; margin-left: 9px; }
.cs-footer details[open] summary::after { content: '−'; }

/* Authentication shares the same quiet charcoal surface and existing forms. */
.cs-auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; max-width: 1040px; margin: 42px auto; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); overflow: hidden; box-shadow: 0 16px 48px #20212708; }
.cs-auth-story { display: flex; flex-direction: column; padding: 52px 44px; color: var(--on-dark); background: var(--navy); }
.cs-pill { display: inline-flex; align-self: flex-start; width: fit-content; align-items: center; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent); border-radius: 100px; padding: 6px 11px; font-size: 11px; font-weight: 600; }
.cs-auth-story .cs-pill { border-color: var(--dark-border); color: var(--dark-accent); background: #383042; }
.cs-auth-story h2 { margin: 34px 0 18px; color: var(--panel); font-size: clamp(26px, 3vw, 35px); font-weight: 650; line-height: 1.45; letter-spacing: -1.2px; }
.cs-auth-story > p { margin: 0; color: var(--on-dark); font-size: 13px; line-height: 1.95; }
.cs-auth-steps { display: grid; gap: 22px; padding: 0; margin: 38px 0 32px; list-style: none; }
.cs-auth-steps li { display: flex; align-items: center; gap: 14px; }
.cs-auth-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--dark-border); border-radius: 9px; color: var(--dark-accent); font-size: 11px; font-weight: 600; }
.cs-auth-steps strong { color: var(--panel); font-size: 13px; font-weight: 600; }
.cs-auth-steps small { display: block; margin-top: 3px; color: var(--dark-muted); font-size: 11px; }
.cs-auth-note { margin-top: auto; color: var(--on-dark); font-size: 11px; line-height: 1.8; }
.cs-auth-card { align-self: center; margin: 0; padding: 50px 42px; border: 0; border-radius: 0; background: var(--panel); box-shadow: none; min-width: 0; }
.cs-auth-card .eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 1.7px; }
.cs-auth-card h1 { margin: 0 0 15px; font-size: 26px; letter-spacing: -.9px; line-height: 1.4; }
.cs-auth-description { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 25px; }
.cs-auth-form { display: grid; gap: 16px; }
.cs-auth-form label { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink); }
.cs-auth-form input { min-height: 46px; margin-top: 7px; font-size: 14px; }
.cs-auth-form .hint { margin: -5px 0 0; line-height: 1.7; }
.cs-auth-card .cs-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin: 5px 0 0; font-size: 13px; }
.cs-form-link { text-align: right; font-size: 12px; margin-top: -5px; }
.cs-form-link a, .cs-auth-switch a, .cs-auth-help a, .cs-back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.cs-form-link a:hover, .cs-auth-switch a:hover, .cs-auth-help a:hover, .cs-back-link:hover { color: var(--accent-hover); text-decoration: underline; }
.cs-auth-switch { text-align: center; margin: 20px 0; color: var(--muted); font-size: 12px; }
.cs-auth-switch a { margin-left: 5px; }
.cs-auth-help { padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; line-height: 1.9; }
.cs-back-link { margin-bottom: 24px; font-size: 12px; }
.cs-recovery-details { margin: 26px 0; border: 1px solid var(--border); background: var(--canvas); border-radius: 9px; padding: 16px; }
.cs-recovery-details summary { min-height: 44px; font-size: 13px; font-weight: 600; cursor: pointer; }
.cs-recovery-details .hint { margin: 14px 0; }
.cs-status-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); margin-bottom: 25px; font-size: 26px; }

/* Landing: a promise, a clearly labeled product example, then an ordered story. */
.cs-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 72px 0 64px; margin: 0; border: 0; background: transparent; box-shadow: none; }
.cs-hero-copy { min-width: 0; }
.cs-kicker { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.cs-kicker > span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.cs-hero h1 { font-size: clamp(36px, 4.1vw, 56px); line-height: 1.23; margin: 24px 0; color: var(--ink); letter-spacing: -2.4px; font-weight: 750; }
.cs-hero h1 em { font-style: normal; color: var(--accent); }
.cs-hero-description { max-width: 430px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.cs-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 19px; }
.cs-hero-actions .button, .cs-closing .button { min-height: 48px; padding: 13px 20px; font-size: 13px; gap: 18px; }
.cs-hero-meta { color: var(--ink); font-size: 12px; }
.cs-access-note { color: var(--muted); font-size: 12px; margin-top: 9px; }
.cs-proposal { min-width: 0; margin: 0; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--canvas); box-shadow: 0 16px 42px #20212707; }
.cs-proposal-topline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--border); color: var(--ink); font-size: 13px; font-weight: 650; }
.cs-example-label { padding: 4px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 500; }
.cs-proposal-recipient { display: flex; align-items: center; gap: 12px; padding: 23px 0; }
.cs-proposal-avatar { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid var(--accent-border); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 600; }
.cs-proposal-recipient strong { display: block; font-size: 13px; font-weight: 650; }
.cs-proposal-recipient div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.cs-proposal-message { padding: 23px; border: 1px solid var(--border); border-radius: 0 14px 14px 14px; background: var(--panel); color: var(--ink); font-size: 14px; line-height: 1.9; }
.cs-proposal-message > p + p { margin-top: 18px; color: var(--muted); }
.cs-template-variable { color: var(--accent); font-weight: 650; }
.cs-proposal-link { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.cs-proposal-link > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 7px; background: var(--pink-soft); color: var(--pink); font-size: 17px; }
.cs-proposal-link strong { display: block; font-size: 12px; font-weight: 600; }
.cs-proposal-link div > span { display: block; color: var(--muted); font-size: 11px; }
.cs-proposal-review { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; }
.cs-review-mark { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border: 1px solid var(--accent-border); border-radius: 50%; color: var(--accent); font-size: 12px; }
.cs-proposal-review strong { display: block; font-size: 12px; font-weight: 650; }
.cs-proposal-review div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.cs-proposal figcaption { margin-top: 22px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.cs-beta-note { display: flex; align-items: center; gap: 18px; margin: 0; padding: 18px 0; border-block: 1px solid var(--border); color: var(--ink); font-size: 12px; line-height: 1.8; }
.cs-beta-label { flex-shrink: 0; padding: 3px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.cs-beta-note p > span { color: var(--muted); }
.cs-workflow-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; margin: 0; padding: 92px 0; border: 0; border-radius: 0; background: transparent; }
.cs-section-intro { text-align: left; }
.cs-section-intro .cs-kicker { color: var(--accent); font-size: 11px; letter-spacing: .12em; }
.cs-section-intro h2 { margin: 18px 0; font-size: clamp(28px, 2.9vw, 38px); line-height: 1.4; letter-spacing: -1.5px; }
.cs-section-intro > p:not(.cs-kicker) { color: var(--muted); font-size: 15px; line-height: 1.9; }
.cs-workflow-aside { display: block; margin-top: 32px; color: var(--muted); font-size: 12px; }
.cs-workflow-list { margin: 0; padding: 0; list-style: none; }
.cs-workflow-list > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.cs-workflow-list > li:first-child { padding-top: 0; }
.cs-workflow-list > li:last-child { padding-bottom: 0; border-bottom: 0; }
.cs-step-index { padding-top: 4px; color: var(--accent); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cs-step-owner { color: var(--muted); font-size: 11px; }
.cs-workflow-list h3 { margin: 6px 0 10px; font-size: 21px; letter-spacing: -.7px; }
.cs-workflow-list p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.cs-workflow-list small { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.cs-closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; margin: 0 0 28px; padding: 42px; background: var(--canvas); border: 1px solid var(--border); border-radius: 14px; }
.cs-closing h2 { margin-top: 12px; font-size: 28px; line-height: 1.4; letter-spacing: -1px; }
.cs-closing-action p { margin-top: 12px; color: var(--muted); font-size: 11px; }

@media (max-width: 1050px) {
  .cs-hero { gap: 30px; }
  .cs-hero h1 { font-size: 42px; letter-spacing: -1.8px; }
  .cs-hero-description { font-size: 15px; }
  .cs-proposal { padding: 22px; }
  .cs-proposal-message { padding: 18px; }
  .cs-workflow-section { gap: 40px; }
  .cs-auth-story { padding: 42px 30px; }
  .cs-auth-card { padding: 40px 30px; }
  .cs-email { max-width: 190px; }
}
@media (max-width: 800px) {
  .cs-sidebar { display: none; }
  .cs-workspace { margin-left: 0; }
  .cs-topbar { padding: 15px 20px; }
  .cs-mobile-menu { display: block; position: relative; padding: 0; border: 0; margin: 0; }
  .cs-mobile-menu > summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 650; }
  .cs-mobile-menu > div { position: absolute; top: 100%; left: 0; min-width: 240px; max-height: 75vh; overflow-y: auto; padding: 14px; border-radius: 10px; border: 1px solid var(--dark-border); background: var(--navy); z-index: 40; box-shadow: 0 14px 36px #20212730; }
  .cs-mobile-menu .cs-logout { display: block; width: 100%; margin: 10px 0 0; color: var(--on-dark); border-color: var(--dark-border); }
  .cs-auth-layout { max-width: 560px; display: block; margin: 30px auto; min-height: 0; }
  .cs-auth-story { display: none; }
  .cs-auth-card { padding: 38px; }
  .cs-hero { grid-template-columns: minmax(0, 1fr); gap: 38px; padding: 52px 0 40px; }
  .cs-hero h1 { font-size: clamp(38px, 6.8vw, 52px); }
  .cs-hero-description { max-width: 520px; }
  .cs-proposal { width: 100%; max-width: 540px; justify-self: center; padding: 26px; }
  .cs-workflow-section { grid-template-columns: minmax(0, 1fr); padding: 56px 0; gap: 36px; }
  .cs-workflow-aside { display: none; }
  .cs-section-intro h2 { font-size: 32px; }
  .cs-beta-note { align-items: flex-start; gap: 12px; }
  .cs-closing { padding: 32px; }
}
@media (max-width: 480px) {
  .cs-public-header { padding: 18px 20px; gap: 12px; }
  .cs-public-header nav { gap: 10px; }
  .cs-public-header nav > a:first-child { display: none; }
  .cs-wordmark { font-size: 22px; gap: 9px; }
  .cs-wordmark small { font-size: 9px; }
  .cs-content { padding: 20px 16px; }
  .cs-public .cs-content { padding: 0 20px 20px; }
  .cs-auth-card { padding: 30px 22px; }
  .cs-auth-card h1 { font-size: 23px; }
  .cs-footer { padding: 22px 20px; }
  .cs-topbar-account .cs-logout { display: none; }
  .cs-email { max-width: 120px; font-size: 10px; }
  .cs-topbar-label { display: none; }
  .cs-hero { padding-top: 42px; gap: 30px; }
  .cs-hero h1 { font-size: clamp(30px, 8.6vw, 40px); letter-spacing: -1.3px; margin-block: 21px; }
  .cs-kicker { font-size: 11px; }
  .cs-hero-description { font-size: 14px; }
  .cs-hero-actions { gap: 7px; margin-top: 24px; }
  .cs-hero-actions .button { font-size: 12px; padding: 12px 14px; gap: 10px; }
  .cs-hero-meta, .cs-access-note { font-size: 11px; }
  .cs-proposal { padding: 19px; border-radius: 14px; }
  .cs-proposal-recipient { padding-block: 20px; gap: 10px; }
  .cs-proposal-avatar { flex-basis: 36px; height: 36px; font-size: 19px; }
  .cs-proposal-recipient strong { font-size: 12px; }
  .cs-proposal-message { padding: 17px; font-size: 13px; }
  .cs-beta-note { font-size: 11px; }
  .cs-section-intro h2 { font-size: 29px; }
  .cs-section-intro > p:not(.cs-kicker) { font-size: 14px; }
  .cs-workflow-list > li { grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding-block: 24px; }
  .cs-workflow-list h3 { font-size: 20px; }
  .cs-workflow-list p { font-size: 13px; }
  .cs-closing { padding: 26px; gap: 24px; }
  .cs-closing h2 { font-size: 25px; }
  .cs-closing-action, .cs-closing-action .button { width: 100%; }
}
