/* SmartBots portal visual system. Separate stylesheet and delivery; shared visual language. */
:root{color-scheme:light;--bg:#f4f5f7;--panel:#fff;--ink:#17191d;--muted:#68707d;--line:#dfe3e8;--blue:#275ed7;--blue-soft:#eaf0ff;--green:#147a4c;--red:#b42318;font-family:"Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}a{color:var(--blue)}button:disabled{cursor:not-allowed;opacity:.45}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:27px;line-height:1.25;letter-spacing:-.03em;margin-bottom:7px}h2{font-size:21px;line-height:1.3;letter-spacing:-.02em;margin-bottom:16px}h3{font-size:16px;margin-bottom:10px}p{margin-bottom:16px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #89aaf4;outline-offset:3px}h1:focus,h2:focus{outline:none}
.topbar{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 28px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink)}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#17191d;color:#fff;font-size:13px;font-weight:800;flex:none}.brand-copy{display:grid;line-height:1.35}.brand-copy strong{font-size:15px}.brand-copy>span{font-size:12px;color:var(--muted)}#account{display:flex;align-items:center;gap:16px}.email{font-size:12px;color:var(--muted)}#app{max-width:1240px;padding:32px;margin:0 auto;min-height:calc(100vh - 140px)}footer{max-width:1240px;margin:0 auto;padding:20px 32px;display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:12px 0 28px}.page-heading .help{margin:0}.section-heading,.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between,.section-heading{justify-content:space-between}.section-heading{margin:0 0 16px}.section-heading h2{margin:0;font-size:17px}.help{color:var(--muted);font-size:13px;line-height:1.55}.eyebrow{display:block;margin-bottom:8px;color:var(--blue);font-size:10px;font-weight:800;letter-spacing:.08em}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 17px;border-radius:8px;font-weight:650;font-size:13px;border:1px solid transparent;text-decoration:none}.primary{background:var(--blue);color:#fff}.primary:hover{background:#204fb6}.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.secondary:hover{background:#f6f8fc;border-color:#bbc5d5}.text-button{border:0;background:none;padding:8px 0;color:var(--muted);font-size:12px;text-align:left}.text-button:hover{color:var(--blue)}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.card,.form-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:26px;min-width:0}.card h3{margin-top:22px;font-size:20px}.card>.secondary{width:100%;margin-top:6px}.badge{display:inline-flex;align-items:center;padding:4px 9px;max-width:100%;font-size:11px;font-weight:650;border-radius:6px;background:#edf0f4;color:#4d5663;white-space:normal}.badge.active{background:#e7f4ed;color:var(--green)}.badge.paused{background:#fff3db;color:#886321}.badge.archived{color:var(--muted)}.empty{padding:32px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);background:#fff}.empty h3{color:var(--ink)}.empty p:last-child{margin:0}
.wizard-grid{display:grid;grid-template-columns:230px minmax(0,720px);gap:28px;align-items:start}.step-navigation{position:sticky;top:24px}.step-navigation>summary{display:none}.step-navigation:not([open])>.steps{display:grid}.steps{display:grid;gap:6px;padding:4px 0}.step{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:8px;background:transparent;text-align:left;font-size:13px;color:var(--muted)}.step>span{display:grid;place-items:center;flex:none;width:25px;height:25px;border:1px solid var(--line);border-radius:50%;font-size:11px}.step.current{color:var(--blue);background:var(--blue-soft);font-weight:650}.step.current>span{background:var(--blue);border-color:var(--blue);color:#fff}.step:hover{background:#eaf0f6}.editor-content{min-width:0}.form-card>.row:first-child{margin-bottom:22px}.save-status{color:var(--muted);font-size:11px}.form-card .eyebrow{margin-top:0}.form-card label{display:block;font-size:13px;font-weight:650;margin:22px 0 8px}input,textarea,select{display:block;width:100%;min-width:0;min-height:44px;border:1px solid #cbd2dc;border-radius:8px;background:#fff;color:var(--ink);padding:11px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #eaf0ff}input[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--red)}textarea{resize:vertical;min-height:116px;line-height:1.55}input::placeholder,textarea::placeholder{color:#87909d}input+.help,textarea+.help,select+.help{margin:7px 0 18px;font-size:12px}.form-nav{display:flex;justify-content:space-between;gap:12px;margin-top:30px;padding-top:22px;border-top:1px solid var(--line)}.form-nav #next{margin-left:auto}.notice{padding:16px;margin:20px 0;background:#f2f5fa;border:1px solid var(--line);border-radius:8px;font-size:13px;color:#465469}.notice p:last-child{margin-bottom:0}.success{background:#effaf3;border-color:#bad8c7;color:#17613e}.error{padding:14px 16px;margin-bottom:18px;background:#fff0ee;border:1px solid #f0bbb5;border-radius:8px;color:var(--red);white-space:pre-line;font-size:13px}.file-label{padding:22px;border:1px dashed #b4c1d8;border-radius:8px;background:#f8faff}.file-label input{margin-top:12px;background:#fff}.preview-panel{margin-top:16px;border:1px solid var(--line);background:#fff;border-radius:10px}.preview-panel>summary{padding:16px 22px;color:var(--blue);font-size:13px;font-weight:650}.preview-panel #preview{padding:0 22px 22px;max-width:520px}.phone{background:#f7f8fa;border:1px solid var(--line);border-radius:10px;padding:20px}.phone-head{display:flex;gap:12px;align-items:center;margin-bottom:20px;font-size:12px}.phone-head span{color:var(--muted)}.avatar{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:#e1e5eb;color:#3d4653;font-size:13px;font-weight:750}.chat{border:1px solid var(--line);background:#fff;border-radius:12px;padding:14px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-button,.message-link{display:block;padding:10px;margin-top:12px;background:var(--blue-soft);border:1px solid #c8d7fa;border-radius:7px;color:var(--blue);text-align:center;text-decoration:none;font-size:12px;font-weight:650}.connector{padding:16px 0;color:var(--muted);font-size:11px;text-align:center}.preview-caption{color:var(--muted);font-size:11px;margin:12px 0 0}.summary-section{padding:18px 0;border-bottom:1px solid var(--line)}.summary-section:last-child{border-bottom:0}.summary-section h3{font-size:13px}.summary-section p{white-space:pre-wrap;overflow-wrap:anywhere;color:#46505f;font-size:13px;margin:0}
.manage-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:28px;align-items:start}.manage-nav{display:grid;gap:8px;position:sticky;top:24px}.manage-nav>.secondary{margin-bottom:12px}.section-link{border:0;background:transparent;padding:13px 14px;border-radius:8px;color:var(--muted);text-align:left;font-size:13px}.section-link.current{background:var(--blue-soft);color:var(--blue);font-weight:650}.manage-content{min-width:0;display:grid;gap:18px}.profile-card{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:9px;margin:22px 0}.profile-card p{margin:4px 0 0}.connection-options{font-size:12px;margin-top:22px;color:var(--muted)}.connection-options .text-button{display:block}.test-checklist{list-style:none;padding:0;margin:24px 0;display:grid;gap:12px;font-size:13px}.test-checklist li{display:flex;gap:12px;align-items:center;color:var(--muted)}.test-checklist li:before{content:'○';font-size:20px}.test-checklist li.done{color:var(--green)}.test-checklist li.done:before{content:'✓'}code{display:block;padding:14px;background:#f0f3f8;border:1px solid var(--line);border-radius:8px;margin:14px 0;overflow-wrap:anywhere;font-size:14px}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:24px 0 16px}.metric{padding:16px 10px;background:#f7f8fa;border:1px solid var(--line);border-radius:8px;min-width:0}.metric strong{display:block;font-size:26px;letter-spacing:-.02em}.metric span{display:block;color:var(--muted);font-size:11px}.history{display:grid;gap:12px}.history-item{padding:18px;border:1px solid var(--line);border-radius:9px;background:#fbfcfd;font-size:13px}.history-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0}.history-item small{display:block;color:var(--muted);margin-top:12px;font-size:10px}.history-item .message-link{max-width:320px}.auth-layout{display:grid;grid-template-columns:1fr 400px;gap:64px;align-items:center;max-width:980px;margin:60px auto}.auth-layout h1{font-size:32px}.auth-card{padding:28px;background:#fff;border:1px solid var(--line);border-radius:12px}.auth-card label{display:block;margin:18px 0 8px}.auth-card .primary{width:100%;margin-top:22px}.auth-foot{margin-top:20px;border-top:1px solid var(--line);padding-top:20px}.auth-foot p{font-size:11px;color:var(--muted)}.hero-note,.subtext{color:var(--muted);font-size:14px;line-height:1.7}.hero-note{margin-top:24px}.loading{padding:60px;text-align:center;color:var(--muted)}#toast{position:fixed;z-index:30;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:13px 18px;background:#17191d;color:#fff;border-radius:9px;font-size:13px;box-shadow:0 6px 24px #17191d22}.demo-banner{padding:8px 24px;background:#fff7e6;border-bottom:1px solid #edddbb;color:#765a28;font-size:11px;text-align:center}
@media(max-width:900px){.wizard-grid,.manage-layout{grid-template-columns:200px minmax(0,1fr);gap:20px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.auth-layout{grid-template-columns:1fr;max-width:460px;margin:24px auto;gap:24px}.auth-layout h1{font-size:26px}}
@media(max-width:650px){.topbar{min-height:64px;padding:12px 16px;gap:12px}.email{display:none}#app{padding:20px 16px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:14px;margin:12px 0 20px}.page-heading h1{font-size:23px}.page-heading>.primary{width:100%}.page-heading>.badge{font-size:10px}.cards{grid-template-columns:1fr}.card,.form-card{padding:20px 18px;border-radius:10px}.wizard-grid,.manage-layout{display:block}.step-navigation{position:static;margin-bottom:16px;background:#fff;border:1px solid var(--line);border-radius:9px}.step-navigation>summary{display:block;padding:14px 16px;font-size:13px;font-weight:650;list-style:none}.step-navigation>summary>span{display:block;font-size:11px;font-weight:400;color:var(--blue);margin-top:3px}.step-navigation:not([open])>.steps{display:none}.step-navigation[open]>.steps{display:grid;padding:0 8px 10px}.steps{width:100%;overflow:visible}.step{width:100%;min-height:44px}.manage-nav{position:static;display:grid;grid-template-columns:1fr;margin-bottom:20px;gap:4px}.manage-nav>.secondary{margin-bottom:8px}.section-link{padding:11px 14px}.manage-nav>.text-button{padding-left:14px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric:last-child{grid-column:1/-1}.form-card h2{font-size:20px}.form-nav{position:sticky;bottom:0;background:#fff;padding:16px 0;margin-bottom:-4px}.form-nav button{flex:1}.form-nav #next{margin-left:0}.form-card>.row{align-items:stretch}.form-card>.row>.primary,.form-card>.row>.secondary{width:100%}input,textarea,select{font-size:16px}.summary-section p{font-size:13px}footer{padding:16px;display:block}footer span:last-child{display:none}.preview-panel>summary{padding:15px 18px}.phone{padding:14px}.auth-card{padding:22px 18px}.test-checklist li{align-items:flex-start}code{font-size:12px}#toast{bottom:16px}.history-item{padding:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.form-card .checkbox-row{display:flex;align-items:flex-start;gap:12px;padding:18px;border:1px solid var(--line);border-radius:9px;background:#f8faff;cursor:pointer}.checkbox-row input{display:block;flex:none;width:20px;height:20px;min-height:20px;margin:2px 0 0;accent-color:var(--blue)}.checkbox-row strong{font-size:13px}.checkbox-row small{display:block;font-weight:400;color:var(--muted);font-size:12px;margin-top:5px;line-height:1.55}.preview-url{margin-top:12px;color:var(--blue);overflow-wrap:anywhere;text-decoration:underline}
/* The sign-in page contains the title and form, without promotional copy. */
.auth-layout{grid-template-columns:minmax(0,1fr);max-width:460px;gap:24px;margin:36px auto}.auth-layout h1{font-size:28px;margin:0}.auth-layout>section:first-child{text-align:center}
.legal-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;padding:24px 16px 32px;font-size:12px}.legal-footer a{color:var(--muted);text-underline-offset:3px}.legal-footer a:focus-visible{outline:2px solid var(--blue);outline-offset:4px}

.checkout-card { max-width: 720px; }
.checkout-profile { display:flex; flex-direction:column; gap:6px; margin:20px 0; }
.checkout-profile span { color:var(--muted,#667085); }
.checkout-price { font-size:36px; font-weight:750; margin:24px 0 8px; }
.checkout-price span { font-size:16px; font-weight:400; color:var(--muted,#667085); }
.checkout-card details { margin-bottom:24px; }
.checkout-card summary { cursor:pointer; }
.checkout-card #email-status { overflow-wrap:anywhere; margin:8px 0 12px; }
.checkout-consents { display:grid; gap:16px; margin:24px 0; }
.checkout-consents label { display:flex; align-items:flex-start; gap:12px; font-weight:400; line-height:1.5; margin:0; }
.checkout-consents input[type=checkbox] { width:20px; height:20px; min-width:20px; margin-top:2px; }
.checkout-card a { overflow-wrap:anywhere; }
.checkout-card #checkout-submit { width:100%; min-height:48px; white-space:normal; }
@media(max-width:650px){.checkout-card{padding:18px}.checkout-card input[type=email]{font-size:16px}.checkout-price{font-size:32px}}

.auth-tabs{display:flex;padding:4px;background:#f0f3f8;border-radius:10px;gap:4px;margin-bottom:24px}.auth-tabs button{flex:1;min-height:44px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit;font-weight:650;cursor:pointer}.auth-tabs button[aria-selected="true"]{background:var(--blue);color:#fff}.auth-tabs button:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.auth-password-help{margin-top:7px}.auth-switch{font-size:13px;color:var(--muted);margin:18px 0 0}.auth-switch .text-button{display:inline;padding:0;color:var(--blue);font:inherit}.auth-consents{margin-top:18px}.auth-consents label{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.55}.auth-consents input{flex:none;width:18px;height:18px;min-height:18px;margin:2px 0 0;accent-color:var(--blue)}

.invitation-toggle{margin-top:14px}.invitation-access{margin-top:20px}.invitation-access summary{cursor:pointer;padding:12px 0;color:var(--blue)}.invitation-access form{display:grid;gap:12px;max-width:440px;padding-top:12px}.invitation-access p{overflow-wrap:anywhere}
.legal-document { max-width: 800px; margin: 32px auto; padding: 0 20px; line-height: 1.65; overflow-wrap: anywhere; }

/* Separate the test result from its next action, including narrow screens. */
.manage-content .form-card > .notice.success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 24px 0 0;
  padding: 16px 20px;
}
.manage-content .form-card > .notice.success > strong {
  min-width: 0;
}
.manage-content .form-card > .notice.success > .primary {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
@media (max-width: 650px) {
  .manage-content .form-card > .notice.success {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .manage-content .form-card > .notice.success > .primary {
    width: 100%;
  }
}

.account-plan{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}.account-plan p{margin:8px 0 0}.account-plan>.secondary{flex-shrink:0}@media(max-width:650px){.account-plan{align-items:stretch;flex-direction:column;gap:16px}.account-plan>.secondary{width:100%}}

.card-actions{display:flex;align-items:center;gap:8px;margin-top:20px}.card-action{display:flex;flex:1;min-width:0;min-height:52px;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:8px 4px;border:1px solid var(--line,#e1e5ec);border-radius:10px;background:#fff;color:var(--muted,#687385);cursor:pointer;font:inherit;font-size:12px}.card-action:hover,.card-action:focus-visible{background:#edf2ff;color:#285bdd;border-color:#a4bced}.card-action:disabled{opacity:.45;cursor:default}.card-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.card-title{border:0;padding:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.card-title:focus-visible{outline:2px solid #285bdd;outline-offset:5px}
