/* Native HTML adapters. The rd-* and ws-* geometry lives in the approved design.v1.css. */
:root { color-scheme: light; --bg:#f7faf8; --panel:#fff; --surface:#fff; --surface2:#f0f5f1; --lime:#167448; --text:#173b2a; --soft:#496554; --muted:#667b70; --muted2:#748278; --line:#dfe8e2; --line-strong:#ccdcd1; --accent:#167448; --danger:#a94632; --warn:#966724; --radius:11px; --shadow:none; }
html { background:var(--bg); }
body.rd-surface { margin:0; font-family:Arial,Helvetica,sans-serif; -webkit-font-smoothing:antialiased; }
.rd-surface *, .rd-surface *::before, .rd-surface *::after { box-sizing:border-box; }
.rd-surface h1, .rd-surface h2, .rd-surface h3, .rd-surface p { margin-top:0; }
.rd-surface button, .rd-surface input, .rd-surface textarea, .rd-surface select { font-family:inherit; }
.rd-surface button, .rd-surface summary { cursor:pointer; }
.rd-surface a { color:inherit; text-decoration:none; }
.rd-surface [hidden], .rd-surface [data-design-hidden] { display:none!important; }
.rd-surface .brand { display:inline-flex; align-items:center; gap:9px; letter-spacing:-1.1px; font-size:25px; line-height:1; font-weight:600; color:#162520; }
.rd-surface .brandmark { display:inline-grid; place-items:center; width:30px; height:32px; background:#078567; color:#fff; border-radius:7px; font-size:24px; font-weight:600; line-height:1; letter-spacing:-1px; }
.rd-surface .brand-dot { color:#078567; }
.rd-surface .brand > span:last-child { display:block; line-height:1; }
.rd-surface .button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:43px; padding:10px 18px; border-radius:7px; border:1px solid var(--rd-green); background:var(--rd-green); color:#fff; font-size:14px; line-height:1.4; font-weight:550; box-shadow:none; white-space:normal; }
.rd-surface .button:hover:not(:disabled) { background:#0f5f39; transform:none; box-shadow:none; }
.rd-surface .button-secondary { border-color:#d5e2d9; background:#fff; color:var(--rd-ink); }
.rd-surface .button-secondary:hover:not(:disabled) { background:#edf6f0; }
.rd-surface .text-button { color:var(--rd-green); font-size:14px; font-weight:400; }
.rd-surface .eyebrow { display:block; font-size:12px; letter-spacing:.095em; font-weight:600; color:var(--rd-muted); margin-bottom:10px; }
.rd-surface .panel, .rd-surface .loading-card { background:#fff; border:1px solid var(--rd-line); border-radius:11px; box-shadow:none; padding:25px; }
.rd-surface input:not([type=checkbox]):not([type=radio]), .rd-surface textarea, .rd-surface select { border:1px solid #ccdcd1; border-radius:7px; padding:12px 14px; background:white; color:var(--rd-ink); font-size:16px; line-height:1.5; min-width:0; }
.rd-surface input[type=checkbox] { accent-color:#167448; }
.rd-surface input::placeholder, .rd-surface textarea::placeholder { color:#87958b; }
.rd-surface input:focus, .rd-surface textarea:focus, .rd-surface select:focus { background:white; box-shadow:none; }
.rd-surface :is(button,a,input,textarea,select,summary):focus-visible { outline:2px solid #5aa57a; outline-offset:4px; }
.rd-surface :is(.fine,.note,.section-copy) { font-size:14px; line-height:1.65; color:var(--rd-muted); }
.rd-surface .fine { font-size:13px; }
.rd-surface .section-copy { margin:12px 0 20px; }
.rd-surface .status-pill { background:#edf8f0; border:0; border-radius:5px; color:#287048; font-size:12px; line-height:1.4; font-weight:550; padding:4px 9px; }
.rd-surface .status-pill.warn { background:#fff4d9; color:#966724; }
.rd-surface .spinner { border-color:#d9e6dd; border-top-color:#167448; }
.rd-surface .notice { z-index:1000; background:#eff5f1; border-color:#d9e6dd; color:#173b2a; border-radius:8px; font-size:14px; box-shadow:0 6px 24px #173b2a14; }
.rd-surface .notice.error { background:#fff3f0; border-color:#e8c7be; color:#a14735; }
.rd-surface .rd-legal-footer { width:100%; border:0; }
.rd-surface .rd-legal-footer a { color:inherit; }

/* Public entry and all live onboarding stages. */
.design-start .stage { max-width:none; margin:0; padding:0; }
.design-start .intake-step > h1, .design-start .stage > h1 { font-size:38px; font-weight:550; line-height:1.18; letter-spacing:-.035em; margin:13px 0 18px; max-width:none; }
.design-start .intake-step > .lede, .design-start .stage > .lede { font-size:16px; line-height:1.55; color:var(--rd-muted); margin:0 0 30px; }
.design-start .panel { margin-top:27px; }
.design-start :is(.form-panel,.single-question-panel,.product-context-form) { display:block; }
.design-start form label { display:block; font-size:14px; font-weight:550; color:var(--rd-ink); margin:0 0 8px; }
.design-start :is(form input,form textarea) { width:100%; height:auto; margin-bottom:18px; }
.design-start textarea { min-height:105px; }
.design-start .form-panel > .button { width:100%; margin-top:0; }
.design-start .form-panel > .fine { margin:20px 0 0; }
.design-input-tabs { display:flex; gap:24px; border-bottom:1px solid var(--rd-line); margin:0 0 24px; }
.design-input-tabs button { background:none; border:0; border-bottom:2px solid transparent; border-radius:0; padding:10px 0; height:45px; font-size:14px; color:var(--rd-muted); }
.design-input-tabs button[aria-selected=true] { color:#167448; border-bottom-color:#167448; }
.design-fallback-link { display:none; }
.design-start .brief-fallback { margin:0; border:0; padding:0; }
.design-start .website-first { margin:0; }
.design-start #intake-goal-step .single-question-panel, .design-start #budget-form { padding:0; border:0; background:transparent; }
.design-start #intake-goal-step .single-question-panel > label { display:none; }
.design-start #goal-continue { margin-top:14px; }
.design-start .budget-presets { display:flex; gap:10px; margin:22px 0; }
.design-start .budget-preset { flex:1; padding:10px 12px; min-height:43px; font-size:14px; border:1px solid #d5e2d9; border-radius:7px; background:white; color:var(--rd-ink); }
.design-start .budget-preset.active { color:white; background:#167448; border-color:#167448; }
.design-start .budget-custom { max-width:none; margin:0 0 22px; border:0; background:transparent; padding:0; display:flex; align-items:center; gap:10px; }
.design-start .budget-custom span { position:static; color:var(--rd-muted); }
.design-start .budget-custom input { margin:0; }
.design-start .understanding-card { padding:25px; }
.design-start .understanding-row { border-color:var(--rd-line); padding:18px 0; }
.design-start .understanding-row strong { font-size:16px; font-weight:500; color:var(--rd-ink); }
.design-start .understanding-row span { color:var(--rd-muted); font-size:13px; }
.design-start :is(.free-opportunity,.autonomous-choice,.account-gate,.locked,.status-card,.research-progress,.understanding-source,.understanding-edit) { color:var(--rd-ink); background:#fff; border-color:var(--rd-line); box-shadow:none; }
.design-start .account-gate { grid-template-columns:1fr; }
.design-start .account-auth { background:transparent; border:0; padding:0; }
.design-start .account-gate-copy h2 { font-size:30px; }
.design-start .account-gate-copy p { color:var(--rd-muted); font-size:15px; }
.design-start .account-benefits { display:none; }
.design-start .account-form { padding:0; background:none; border:0; }
.design-start #stage-preview:has(#account-gate:not(.hidden)) > :not(#account-gate) { display:none; }
.design-start .value-first-choice { display:block; }
.design-start .autonomous-choice-actions { margin-top:24px; }
.design-start .locked { margin-top:30px; }

/* Sign in uses the approved two-column composition and real account form. */
.ws-simple:has(#login-gate:not(.hidden)) { background:#f7faf8; }
.design-auth-nav { display:none; gap:26px; align-items:center; font-size:14px; }
.ws-simple:has(#login-gate:not(.hidden)) .design-auth-nav { display:flex; }
.ws-simple:has(#login-gate:not(.hidden)) .ws-header { background:transparent; border:0; }
.ws-simple:has(#login-gate:not(.hidden)) .ws-header-inner { max-width:1240px; padding:26px 32px; min-height:0; border-bottom:1px solid var(--rd-line); }
.design-auth-nav a:last-child { color:var(--rd-green); }
.ws-simple .rd-workspace-content:has(#login-gate:not(.hidden)) { max-width:none; padding:0; min-height:0; }
.rd-surface .auth-card { width:auto; padding:50px 46px; border:0; border-radius:0; background:white; box-shadow:none; }
.rd-surface .auth-card h1 { font-size:32px; line-height:1.18; margin:0; }
.rd-surface .auth-card .lede { font-size:15px; line-height:1.55; margin:13px 0 28px; }
.rd-surface .auth-fields { display:block; }
.rd-surface .auth-field { display:block; }
.rd-surface .auth-field label { font-size:14px; color:var(--rd-ink); font-weight:550; }
.rd-surface .auth-field input { height:auto; margin-top:8px; }
.rd-surface .auth-submit { height:auto; min-height:43px; margin-top:8px; }
.rd-surface .auth-new { border:0; padding:0; font-size:14px; margin-top:25px; }
.rd-surface .auth-new a { color:var(--rd-green); font-weight:400; }

/* Workspace shell and the simple Home view. */
.ws-simple .ws-header .brand { font-size:26px; }
.ws-simple .ws-header .brandmark { width:31px; height:31px; font-size:23px; }
.ws-simple .rd-workspace-content { width:100%; margin:0 auto; }
.ws-simple .workspace-tabs { width:auto; max-width:none; overflow:visible; padding:0; border:0; border-radius:0; background:none; margin-bottom:0; }
.ws-simple .ws-nav .tab-button { border:0; font-weight:400; }
.ws-simple .ws-nav .tab-button.active { background:#edf6ef; color:#176c43; font-weight:550; }
.ws-simple .ws-page-heading h1 { margin:0; }
.ws-simple .ws-page-heading p { margin-bottom:0; }
.ws-simple .hero-actions .ws-run-state { border:0; background:none; color:#6c7e72; font-size:14px; font-weight:400; padding:8px 0; min-height:0; }
.ws-simple .hero-actions .ws-run-state:hover { background:none; color:#167448; }
.ws-simple :is(.ws-nav button,.ws-summary button,.ws-text-link,.ws-icon-button) { border:0; background:transparent; font-weight:400; }
.ws-simple .ws-summary strong { color:#18382b; }
.ws-simple .ws-next h2, .ws-simple .ws-next p { margin-top:0; }
.ws-simple .ws-next p { margin-bottom:0; }
.ws-simple .ws-next .rd-mark { font-size:18px; }
.ws-simple .ws-recent p { margin-bottom:0; }
.design-project-menu { position:relative; }
.design-project-menu:has(#account-nav.hidden) { display:none; }
.design-project-menu > summary { list-style:none; }
.design-project-menu > summary::-webkit-details-marker { display:none; }
.ws-project > span:nth-child(2) { max-width:175px; }
.design-project-menu .account-nav { position:absolute; top:calc(100% + 12px); right:0; z-index:50; display:flex; flex-direction:column; align-items:stretch; min-width:255px; max-width:calc(100vw - 40px); gap:10px; padding:16px; border:1px solid var(--rd-line); border-radius:10px; background:#fff; box-shadow:0 12px 30px #173b2a14; }
.design-project-menu .account-nav .project-switcher { width:100%; height:auto; font-size:14px; padding:10px; }
.design-project-menu .account-nav button { text-align:left; font-size:14px; padding:8px; }
#account-email { overflow-wrap:anywhere; font-size:12px; }
.design-results-nav { display:flex; gap:24px; overflow:auto; border-bottom:1px solid var(--rd-line); margin-bottom:28px; }
.design-results-nav button { background:none; border:0; border-bottom:2px solid transparent; border-radius:0; color:var(--rd-muted); font-size:14px; padding:12px 0; }
.design-results-nav button[aria-current=page] { border-bottom-color:#167448; color:#167448; }
.ws-simple :is(.overview-grid,.history-grid,.settings-grid,.customer-results-grid,.ar-grid) { grid-template-columns:1fr; gap:22px; }
.ws-simple .panel { margin-bottom:22px; }
.ws-simple .section-head h2 { font-size:21px; font-weight:500; margin:0; }
.ws-simple .project-line { margin:0 0 24px; }
.ws-simple .overview-finance { background:#fff; }
.ws-simple .overview-finance strong { color:var(--rd-ink); font-size:27px; }
.ws-simple .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin:0 0 22px; }
.ws-simple .metric-grid article { background:#fff; border:1px solid var(--rd-line); border-radius:11px; padding:20px; }
.ws-simple .metric-grid .growth-balance-metric { grid-column:1/-1; }
.ws-simple .growth-balance-metric::after { display:none; }
.ws-simple .growth-balance-benefit { color:var(--rd-muted); }
.ws-simple .metric-grid strong { color:var(--rd-ink); }
.design-disclosure { border-bottom:1px solid var(--rd-line); }
.design-disclosure > summary { padding:25px 0; color:var(--rd-ink); font-size:16px; font-weight:500; }
.design-disclosure > .panel { padding:8px 0 30px; border:0; border-radius:0; margin:0; max-width:100%; }
.ws-simple .settings-grid { display:block; }
.ws-simple .balance-amount strong { color:var(--rd-ink); }
.ws-simple :is(.balance-mini,.integration-card,.balance-amount,.meta-options,.customer-results-block,.customer-economics-grid>div,.managed-assignment,.execution-log-item,.ar-variant-row,.ar-source) { background:#f7faf8; border-color:var(--rd-line); color:var(--rd-ink); }
.ws-simple :is(.note,.activity-list span,.execution-log-content,.customer-results-block>p,.customer-results-empty,.customer-results-error,.ar-metrics,.ar-empty) { font-size:14px; line-height:1.65; }
.ws-simple :is(.activity-list strong,.managed-assignment strong,.execution-log-head strong) { font-size:15px; color:var(--rd-ink); font-weight:500; }
.ws-simple .activity-list > div { padding:17px 0; background:none; border:0; border-bottom:1px solid var(--rd-line); border-radius:0; }

/* Channels keep their native capabilities, modes, connection and approval controls. */
.ws-simple .channel-snapshot-card { padding:0; border:0; margin:0; background:none; }
.ws-simple .channel-snapshot-row { display:flex; gap:17px; align-items:center; border:0; border-bottom:1px solid var(--rd-line); padding:21px 0; min-height:100px; background:none; border-radius:0; }
.ws-simple .channel-snapshot-row:first-child { border-top:1px solid var(--rd-line); }
.ws-simple .channel-snapshot-name { flex:1; min-width:0; }
.ws-simple .channel-snapshot-name strong { display:block; font-size:16px; font-weight:500; color:var(--rd-ink); }
.ws-simple .channel-snapshot-name small { display:block; font-size:14px; line-height:1.5; color:#8b978e; margin-top:5px; }
.ws-simple .channel-snapshot-row > span { display:none; }
.ws-simple .channel-toggle-label { display:none; }
.ws-simple .channel-toggle-track { width:35px; height:20px; background:#dce4dc; border:0; }
.ws-simple .channel-toggle-track::after { width:16px; height:16px; top:2px; left:2px; background:white; }
.ws-simple .channel-toggle:checked + .channel-toggle-track { background:#528364; border:0; }
.ws-simple .channel-toggle:checked + .channel-toggle-track::after { left:17px; background:white; }
.ws-simple .channel-toggle:focus-visible + .channel-toggle-track { outline:2px solid #5aa57a; outline-offset:4px; }
.ws-simple .channel-table { min-width:700px; }
.ws-simple .channel-table :is(td,th) { font-size:14px; border-color:var(--rd-line); }
.ws-simple .channel-table th { background:#f7faf8; }
.ws-simple :is(.channel-publisher-select,.channel-mode-select,.channel-inline-form input,.telegram-automation-limit input) { background:#fff; border-color:#ccdcd1; color:var(--rd-ink); font-size:14px; }
.ws-simple :is(.channel-mode-box,.channel-connection-box,.channel-execution-panel,.channel-execution-row td) { background:#f7faf8; border-color:var(--rd-line); }
.ws-simple :is(.channel-execution-panel p,.channel-capabilities,.channel-safe-note,.telegram-automation-confirm,.telegram-automation-limit) { font-size:13px!important; color:var(--rd-muted); }
.ws-simple :is(.channel-detail-status,.channel-connect-button) { font-size:12px; color:var(--rd-green); background:#edf6ef; border-color:var(--rd-line); }

/* Expanded next move retains exact evidence, copy, limits and explicit confirmations. */
.design-dialog { width:min(760px,calc(100% - 32px)); max-height:88svh; overflow:auto; background:#fff; color:var(--rd-ink); border:1px solid var(--rd-line); border-radius:15px; padding:30px; }
.design-dialog::backdrop { background:#14341f66; }
.design-dialog-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; }
.design-dialog-head h2 { margin:0; font-size:27px; }
.design-dialog-head button { border:0; background:transparent; color:var(--rd-muted); font-size:28px; line-height:1; padding:8px; }
.rd-surface .design-dialog .activation-card { border:0; padding:0; background:#fff; box-shadow:none; }
.rd-surface .activation-head h2 { font-size:23px; line-height:1.3; }
.rd-surface :is(.activation-list li,.activation-preview,.activation-preview-opportunity article,.activation-preview-directions article,.activation-action-primary,.distribution-channel-card,.research-state-card) { background:#f7faf8; border-color:var(--rd-line); box-shadow:none; }
.rd-surface :is(.activation-list strong,.activation-preview-opportunity strong,.distribution-channel-card strong) { color:var(--rd-ink); font-size:15px; }
.rd-surface :is(.activation-list small,.activation-preview-opportunity small,.activation-preview-opportunity article>p,.activation-preview-directions article>p,.activation-action-primary .note) { font-size:14px; line-height:1.65; color:var(--rd-muted); }
.rd-surface .activation-preview-head > span { color:var(--rd-ink); }
.rd-surface .activation-action-primary .eyebrow { font-size:12px; }
.rd-surface .activation-action-primary .button { min-width:0; }
.rd-surface .activation-index { color:var(--rd-green); border-color:var(--rd-line); }
.rd-surface .activation-preview-directions { grid-template-columns:1fr; }
.rd-surface :is(.project-modal,.community-action-modal) { background:#14341f66; }
.rd-surface :is(.project-modal-card,.community-action-dialog,.community-action-modal-card) { background:#fff; border-color:var(--rd-line); color:var(--rd-ink); box-shadow:0 12px 40px #173b2a22; }
.rd-surface .project-danger-zone { border-color:#eec7bf; background:#fff5f2; color:#a53a25; }
.rd-surface :is(.project-modal-card p,.project-details-card p,.project-delete-confirm p,.community-action-dialog p) { color:var(--rd-muted); }

@media(max-width:767px) {
  .design-start .intake-step > h1, .design-start .stage > h1 { font-size:31px; }
  .design-start .intake-step > .lede, .design-start .stage > .lede { font-size:15px; margin-bottom:24px; }
  .design-start .panel { padding:21px; }
  .design-start .rd-progress > .rd-notice { display:none; }
  .design-start .budget-presets { gap:7px; flex-wrap:wrap; }
  .design-start .context-grid { grid-template-columns:1fr; }
  .rd-surface .auth-card { padding:30px 24px; }
  .rd-surface .auth-card h1 { font-size:29px; }
  .rd-surface .auth-card .lede { margin-bottom:24px; }
  .rd-surface .rd-auth { margin:20px 15px 35px; }
  .ws-simple:has(#login-gate:not(.hidden)) .ws-header-inner { padding:21px 20px; }
  .design-auth-nav { gap:15px; font-size:13px; margin-left:auto; }
  .design-dialog { padding:24px 20px; }
  .rd-surface .channel-execution-panel { grid-template-columns:1fr; }
}
@media(max-width:680px) {
  .ws-simple .ws-header .brand { font-size:24px; }
  .ws-simple .ws-nav { overflow:auto; max-width:100%; }
  .ws-simple .ws-nav button { padding:8px 17px; }
  .ws-simple .ws-project > span:nth-child(2) { max-width:105px; }
  .ws-simple .hero-actions .ws-run-state { font-size:13px; }
  .ws-simple .channel-snapshot-row { gap:12px; padding:22px 0; min-height:91px; }
  .ws-simple .channel-snapshot-name strong { font-size:15px; }
  .ws-simple .channel-snapshot-name small { font-size:13px; }
  .ws-simple .design-manage-channel { font-size:13px; white-space:nowrap; }
  .design-results-nav { gap:22px; }
  .ws-simple .metric-grid { grid-template-columns:1fr; }
  .ws-simple .growth-balance-metric-main { align-items:stretch; flex-direction:column; }
  .rd-surface .customer-economics-grid { grid-template-columns:1fr 1fr; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .rd-surface *, .rd-surface *::before, .rd-surface *::after { animation:none!important; transition:none!important; }
}
