/* Softora chatbot configurator — scoped additions on top of app.css. */
.workspace,
.login-screen { font-family: Inter, Arial, sans-serif; }
.workspace h1,
.workspace h2,
.workspace h3,
.workspace .app-brand,
.workspace .button,
.workspace .eyebrow,
.workspace .stepper,
.login-screen h1,
.login-screen h2,
.login-screen .app-brand,
.login-screen .button,
.login-screen .eyebrow { font-family: Oswald, 'Arial Narrow', sans-serif; }

.bot-svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon--bot { display: grid; place-items: center; }
.nav-icon--bot .bot-svg { width: 19px; height: 19px; }
.bot-mark .bot-svg { width: 24px; height: 24px; }

.setup-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.setup-intro h2 { margin: 7px 0 2px; font: 700 34px/1 Oswald, 'Arial Narrow', sans-serif; }
.setup-intro p { margin: 0; color: var(--muted); }
.save-indicator { color: #267a55; background: #eff9f4; border: 1px solid #c8e8d7; padding: 8px 12px; border-radius: 30px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.setup-layout { grid-template-columns: 190px minmax(520px, 680px) minmax(280px, 320px); }
.setup-card { min-height: 610px; }
.setup-card h2 { font-family: Oswald, 'Arial Narrow', sans-serif; font-weight: 700; }
.setup-card .field small { color: var(--muted); line-height: 1.35; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.form-grid .field { margin: 12px 0; }
.field--wide { grid-column: 1 / -1; }
.field textarea { resize: vertical; min-height: 88px; }

.task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }
.task-card { min-height: 112px; display: grid; grid-template-columns: 26px 1fr; gap: 10px; text-align: left; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 15px; border-radius: 5px; transition: border-color .15s, background .15s, transform .15s; }
.task-card:hover { border-color: #d89ab6; transform: translateY(-1px); }
.task-card.selected { border-color: var(--pink); background: #fcf3f7; box-shadow: inset 3px 0 var(--pink); }
.task-card strong { display: block; font-size: 15px; line-height: 1.2; }
.task-card small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.35; }
.task-check { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #dac6d0; color: var(--pink); border-radius: 50%; font-weight: 800; }
.task-card.selected .task-check { color: #fff; background: var(--pink); border-color: var(--pink); }
.task-badge { display: inline-block; margin-top: 8px; color: var(--pink); font: 700 10px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .8px; font-style: normal; }

.profile-strip { display: grid; gap: 4px; margin-top: 16px; padding: 14px 16px; border: 1px solid #ead7e0; background: #fcf5f8; }
.profile-strip span,
.profile-advice > span { color: var(--pink); font: 700 11px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: 1.2px; }
.profile-strip strong { font-size: 16px; }
.profile-strip small { color: var(--muted); line-height: 1.45; }
.profile-advice { margin: 18px 0; padding: 16px 18px; border-left: 4px solid var(--pink); background: #171725; color: #fff; }
.profile-advice strong { display: block; margin-top: 7px; font: 700 21px/1.1 Oswald, 'Arial Narrow', sans-serif; }
.profile-advice p { margin: 7px 0 10px; color: #dedbe3; font-size: 14px; }
.profile-advice ul { display: grid; gap: 5px; margin: 0; padding-left: 19px; color: #f2eef1; font-size: 13px; line-height: 1.4; }

.route-section { margin-top: 20px; padding: 18px; border: 1px solid var(--line); background: #fff; }
.route-section + .route-section { margin-top: 14px; }
.route-section--knowledge { background: #fbfafb; }
.route-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.route-section-head strong,
.route-section-head small { display: block; }
.route-section-head strong { font-size: 16px; color: var(--ink); }
.route-section-head small { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.route-icon { flex: 0 0 auto; min-width: 62px; padding: 7px 8px; border: 1px solid #e3b4ca; background: #fcf1f6; color: var(--pink); text-align: center; font: 700 10px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: 1px; }
.integration-preview { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px; border-left: 3px solid #84899a; background: #f2f3f6; }
.integration-preview span,
.integration-preview strong,
.integration-preview small { display: block; }
.integration-preview span { color: #656b7d; font: 700 10px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: 1px; }
.integration-preview strong { margin-top: 5px; }
.integration-preview small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.integration-preview em { color: #656b7d; white-space: nowrap; font: 700 10px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .8px; font-style: normal; }

.setup-note { display: flex; gap: 11px; margin-top: 16px; padding: 13px 14px; border-left: 3px solid var(--pink); background: #faf3f6; color: #654f5a; font-size: 13px; line-height: 1.45; }
.setup-note strong { color: var(--ink); white-space: nowrap; }
.knowledge-list--setup { margin-top: 14px; }
.upload-box { display: grid; gap: 3px; }
.upload-box strong { color: var(--ink); }
.upload-box span { font-size: 13px; }
.source-hub { display: grid; gap: 12px; }
.source-card { position: relative; padding: 17px; border: 1px solid #ddd6dc; background: #fff; }
.source-card--primary { border-color: #d76a9f; background: #fff9fc; box-shadow: inset 3px 0 0 var(--pink); }
.source-card--future { background: #f5f5f7; border-style: dashed; }
.source-card-head { display: flex; align-items: center; gap: 12px; }
.source-card-head strong,
.source-card-head small { display: block; }
.source-card-head strong { color: var(--ink); font-size: 16px; }
.source-card-head small { color: var(--pink); font: 700 10px/1.2 Oswald, 'Arial Narrow', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.source-step { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; }
.source-card p { margin: 11px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.source-card > small { display: block; margin-top: 9px; color: #667085; line-height: 1.45; }
.source-url-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.source-url-input input { min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid var(--line); font: inherit; font-size: 14px; }
.source-url-input button { border: 0; padding: 0 15px; background: var(--pink); color: #fff; font: 700 12px Oswald, 'Arial Narrow', sans-serif; letter-spacing: .6px; cursor: pointer; }
.source-url-input button:disabled { cursor: not-allowed; opacity: .55; }
.connector-status { display: inline-block; padding: 6px 9px; background: #e7e7eb; color: #666b7a; font: 700 10px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .8px; }
.source-type { display: block; margin-bottom: 4px; color: var(--pink); font: 700 10px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: 1px; }
.source-url { display: block; margin-top: 5px; color: var(--pink); font-size: 12px; overflow-wrap: anywhere; }
.route-details--manual { background: #fff; }
.route-details--manual > .route-details-content { padding: 0 16px 16px; }
.route-details--manual .route-section { margin: 0; padding: 16px 0 0; border: 0; }

.choice-toggle { margin: 20px 0; }
.choice-toggle input { width: 20px; height: 20px; accent-color: var(--pink); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { border: 1px solid #dacfd4; background: #fff; color: var(--ink); padding: 8px 11px; border-radius: 30px; font-size: 13px; }
.choice-chip.selected { border-color: var(--pink); color: var(--pink); background: #fcf1f6; font-weight: 700; }

.guided-question-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.guided-question { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: center; min-height: 58px; padding: 11px 12px; border: 1px solid #ddd4d9; background: #fff; color: var(--ink); text-align: left; line-height: 1.35; }
.guided-question > span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #ddbbcb; border-radius: 50%; color: var(--pink); font-weight: 800; }
.guided-question.selected { border-color: var(--pink); background: #fcf1f6; box-shadow: inset 3px 0 var(--pink); }
.guided-question.selected > span { background: var(--pink); border-color: var(--pink); color: #fff; }
.guided-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 11px; }
.guided-add input { min-width: 0; }
.guided-add button { border: 0; padding: 0 16px; background: #171725; color: #fff; font: 700 12px/1 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .7px; }
.route-help { display: block; margin-top: 8px; color: var(--muted); line-height: 1.45; }
.validation-notice { display: grid; gap: 3px; margin: 16px 0; padding: 13px 14px; border-left: 3px solid #c2541d; background: #fff4ea; color: #793511; font-size: 13px; line-height: 1.45; }
.validation-notice strong { color: #5a260d; }
.chat-scenarios { display: grid; gap: 7px; margin: 0 0 12px; }
.chat-scenarios strong { color: #fff; font-size: 12px; }
.chat-scenarios button { border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: rgba(255,255,255,.07); color: #f5edf2; padding: 8px 9px; text-align: left; font-size: 11px; line-height: 1.3; }
.chat-scenarios button:hover { border-color: #ed89b8; background: rgba(182,32,104,.2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.readiness-grid { display: grid; gap: 8px; margin: 20px 0; }
.readiness-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); color: #8a8290; }
.readiness-item > span { color: #b9b3bb; font-size: 18px; }
.readiness-item small { font-size: 12px; }
.readiness-item.ready { color: var(--ink); border-color: #c8e8d7; background: #f4fbf7; }
.readiness-item.ready > span,
.readiness-item.ready small { color: #267a55; }

.chat-head { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.chat-head strong,
.chat-head small { display: block; line-height: 1.2; }
.chat-head small { margin-top: 2px; color: #f8dbe8; font-size: 11px; }
.chat-bot-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); }
.chat-bot-icon .bot-svg { width: 21px; height: 21px; }
.chat-test-status { font-size: 12px; color: #eee2eb; margin: -5px 0 12px; }
.chat-reset { background: transparent; border: 0; color: #f6bfd8; padding: 12px 0 0; font-size: 13px; text-decoration: underline; }
.chat-input button:disabled, .chat-reset:disabled { cursor: wait; opacity: .6; }
.bubble--error { background: #fff2e2; color: #733609; border: 1px solid #e9c299; }
.conversation-list { display: grid; }
.conversation-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #eee; }
.conversation-row:first-child { border-top: 0; }
.conversation-row strong, .conversation-row small { display: block; }
.conversation-row small { color: var(--muted); margin-top: 2px; }
.conversation-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f4e4eb; color: var(--pink); font-weight: 800; }

@media (max-width: 1220px) {
  .setup-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .preview-panel { grid-column: 2; position: static; }
  .chat-window { height: 360px; }
}

@media (max-width: 780px) {
  .setup-intro { align-items: start; flex-direction: column; }
  .setup-layout { grid-template-columns: 1fr; }
  .stepper { display: flex; overflow-x: auto; gap: 5px; }
  .stepper button { min-width: max-content; }
  .setup-card, .preview-panel { grid-column: 1; }
  .setup-card { min-height: 0; padding: 22px; }
  .task-grid, .form-grid { grid-template-columns: 1fr; }
  .guided-question-list { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .readiness-item { grid-template-columns: 22px 1fr; }
  .readiness-item small { grid-column: 2; }
}

@media (max-width: 520px) {
  .save-indicator { white-space: normal; }
  .setup-actions { flex-direction: column-reverse; }
  .setup-actions .button { width: 100%; }
  .setup-note { display: grid; }
  .route-section { padding: 14px; }
  .route-section-head,
  .integration-preview { align-items: flex-start; flex-direction: column; }
  .integration-preview em { white-space: normal; }
  .guided-add { grid-template-columns: 1fr; }
  .guided-add button { min-height: 42px; }
  .source-url-input { grid-template-columns: 1fr; }
  .source-url-input button { min-height: 44px; }
}
.knowledge-document { padding: 20px; border: 1px solid #e2dce1; background: #fff; border-radius: 8px; min-width: 0; }
.knowledge-document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.knowledge-document-head strong { overflow-wrap: anywhere; }
.knowledge-document small, .knowledge-item small { display: block; margin-top: 6px; color: #667085; font-size: 13px; }
.knowledge-document details { margin-top: 16px; }
.knowledge-document summary { color: #ad1b69; cursor: pointer; font-weight: 600; }
.knowledge-document pre { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; padding: 16px; background: #f7f4f6; }
.source-notice { color: #852459; font-size: 14px; min-height: 20px; }
.upload-box small, .knowledge-empty { color: #667085; line-height: 1.6; }
.upload-box { grid-template-columns: minmax(0, 1fr); }
.upload-box input { min-width: 0; max-width: 100%; width: 100%; }
.upload-box input::file-selector-button { border: 0; border-radius: 4px; background: var(--pink); color: white; padding: 10px 14px; margin-right: 10px; cursor: pointer; font: inherit; font-weight: 600; }
.knowledge-document .logout, .knowledge-list .logout { color: #a51c62; }
.publication-status { padding: 16px; margin: 18px 0; border-left: 3px solid var(--pink); background: #f8f2f5; }
.publication-status p { margin: 8px 0 0; color: var(--muted); }
.publication-actions { margin-top: 18px; }
.code-box pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; }
#pause-publication { margin-top: 10px; }
@media (max-width: 520px) {
  .knowledge-document-head { flex-wrap: wrap; gap: 6px; }
  .knowledge-document { padding: 14px; }
}

/* 2026 product workspace refresh — calm, clear and content-first. */
:root { --app-bg: #f5f5f7; --card: #fff; --soft-line: #e7e7eb; --soft-ink: #17171d; --soft-muted: #70707c; --brand-accent: #b62068; }
body { background: var(--app-bg); color: var(--soft-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.workspace, .workspace button, .workspace input, .workspace textarea, .workspace select { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.workspace h1, .workspace h2, .workspace h3, .workspace .button, .workspace .eyebrow, .workspace .stepper { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.workspace { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { padding: 20px 14px; background: #121218; border-right: 1px solid rgba(255,255,255,.05); }
.sidebar-brand { display: flex; align-items: baseline; gap: 8px; padding: 5px 10px 20px; }
.sidebar-brand .app-brand { padding: 0; font: 800 23px/1 Inter, sans-serif; letter-spacing: -.9px; }
.sidebar-brand > span { color: #a8a8b2; font-size: 11px; font-weight: 600; }
.workspace-switch { min-height: 64px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.05); color: #fff; }
.workspace-switch > span:nth-child(2) { min-width: 0; }
.workspace-switch small, .workspace-switch strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-switch small { color: #9696a2; font-size: 10px; }
.workspace-switch strong { margin-top: 2px; font-size: 13px; }
.workspace-logo { width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: var(--brand-accent); color: #fff; }
.workspace-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.workspace-logo .bot-svg { width: 20px; }
.workspace-label { margin: 28px 11px 9px; color: #777781; font: 700 10px/1 Inter, sans-serif; letter-spacing: 1.2px; }
.workspace-label--secondary { margin-top: 24px; }
.nav { gap: 3px; }
.nav button { min-height: 44px; padding: 10px 11px; border-radius: 9px; color: #b9b9c2; font-size: 13px; font-weight: 600; }
.nav button:hover { background: rgba(255,255,255,.06); }
.nav button.active { background: #292932; color: #fff; box-shadow: none; }
.nav-icon { width: 21px; color: #9696a2; }
.nav button.active .nav-icon { color: #fff; }
.sidebar-bottom { display: grid; gap: 9px; padding: 14px 9px 2px; border-top-color: rgba(255,255,255,.08); }
.sidebar-user { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 9px; align-items: center; }
.sidebar-user .avatar { width: 32px; height: 32px; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: #e9e9ed; font-size: 11px; }
.sidebar-user small { color: #7f7f89; font-size: 10px; }
.app-public-link, .logout { margin: 0; padding: 5px 0; color: #aaaab4; font-size: 11px; text-align: left; }
.topbar { height: 76px; padding: 0 clamp(22px, 3vw, 42px); border-color: var(--soft-line); }
.topbar > div:first-of-type small { display: block; color: #9a9aa4; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.topbar h1 { margin-top: 3px; font-size: 20px; font-weight: 700; letter-spacing: -.35px; }
.topbar-right { gap: 10px; }
.topbar .status-pill { min-height: 36px; padding: 7px 12px; border-color: #dfeee6; background: #f5fbf8; color: #287656; font-size: 11px; }
.topbar-action { min-height: 38px; padding: 10px 15px; border-radius: 9px; font-size: 12px; }
.topbar .avatar { width: 36px; height: 36px; background: color-mix(in srgb, var(--brand-accent) 12%, #fff); color: var(--brand-accent); font-size: 12px; }
.content { max-width: none; padding: 28px clamp(22px, 3vw, 42px) 54px; }
.setup-view { max-width: 1480px; margin: 0 auto; }
.setup-intro { align-items: center; margin-bottom: 20px; }
.setup-intro .eyebrow { color: var(--brand-accent); font-size: 10px; letter-spacing: 1.4px; }
.setup-intro h2 { margin: 5px 0 4px; font-size: clamp(27px, 2.3vw, 36px); line-height: 1.12; letter-spacing: -1.2px; }
.setup-intro p { font-size: 14px; }
.save-indicator { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border: 0; background: transparent; color: #398060; font-size: 11px; }
.save-indicator > span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #e7f5ed; }
.lifecycle { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 14px; background: #fff; }
.lifecycle button { min-height: 58px; display: flex; gap: 10px; align-items: center; justify-content: center; border: 0; border-right: 1px solid var(--soft-line); background: #fff; color: #888892; }
.lifecycle button:last-child { border-right: 0; }
.lifecycle button small { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #f0f0f3; font-size: 9px; font-weight: 700; }
.lifecycle button span { font-size: 12px; font-weight: 650; }
.lifecycle button.active { color: var(--soft-ink); background: color-mix(in srgb, var(--brand-accent) 4%, #fff); }
.lifecycle button.active small { background: var(--brand-accent); color: #fff; }
.setup-layout { display: grid; grid-template-columns: minmax(610px, 760px) minmax(380px, 1fr); gap: 22px; align-items: start; }
.stepper { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 5px; border: 1px solid var(--soft-line); border-radius: 13px; background: #fff; }
.stepper button { min-height: 46px; justify-content: center; gap: 8px; padding: 7px 10px; border-radius: 9px; color: #7c7c86; font-size: 11px; }
.stepper button:hover { background: #f7f7f9; }
.stepper button.active { background: #202027; color: #fff; }
.stepper-number { width: 23px; height: 23px; border: 0; background: #f0f0f3; color: #696973; font: 700 10px Inter, sans-serif; }
.stepper button.active .stepper-number { background: var(--brand-accent); color: #fff; }
.setup-card { grid-column: 1; min-height: 680px; padding: clamp(25px, 3vw, 42px); border: 1px solid var(--soft-line); border-radius: 18px; box-shadow: 0 14px 40px rgba(22,22,28,.045); }
.step-heading > span { color: var(--brand-accent); font-size: 10px; font-weight: 750; letter-spacing: 1.15px; }
.step-heading h2, .setup-card > h2 { max-width: 650px; margin: 9px 0 8px; font-size: clamp(27px, 2.2vw, 38px); line-height: 1.12; letter-spacing: -1.2px; }
.step-heading p, .setup-card > p { margin: 0 0 24px; color: var(--soft-muted); font-size: 14px; line-height: 1.55; }
.website-start { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 4px 13px; padding: 18px; border: 1px solid color-mix(in srgb, var(--brand-accent) 45%, #e7e7eb); border-radius: 14px; background: color-mix(in srgb, var(--brand-accent) 3%, #fff); }
.website-start.complete { border-color: #bfe3d1; background: #f7fcf9; }
.website-start-icon { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #202027; color: #fff; font-size: 22px; }
.website-start-copy label { font-size: 14px; font-weight: 700; }
.website-start-copy p { margin: 3px 0 11px; color: var(--soft-muted); font-size: 12px; }
.website-start-input { grid-column: 2; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.website-start-input input { min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid #d8d8de; border-radius: 10px; outline: 0; }
.website-start-input input:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 12%, transparent); }
.website-start-input button { min-height: 46px; padding: 0 15px; border: 0; border-radius: 10px; background: #202027; color: #fff; font-size: 10px; font-weight: 750; letter-spacing: .5px; }
.source-notice { min-height: 20px; margin: 8px 2px 0; color: #945078; font-size: 11px; }
.section-divider { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 24px 0 9px; padding-top: 20px; border-top: 1px solid var(--soft-line); }
.section-divider span { font-size: 14px; font-weight: 700; }
.section-divider small { color: var(--soft-muted); font-size: 11px; }
.form-grid { gap: 0 14px; }
.form-grid .field, .field { margin: 10px 0; gap: 6px; }
.field label { color: #34343c; font-size: 12px; font-weight: 650; }
.field input, .field textarea, .field select { min-height: 44px; padding: 11px 12px; border-color: #dcdce1; border-radius: 10px; font-size: 13px; }
.field textarea { line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 11%, transparent); }
.field small { font-size: 10px; }
.route-summary { display: grid; gap: 4px; margin-top: 18px; padding: 14px 15px; border-radius: 12px; background: #f6f6f8; }
.route-summary > span { color: var(--brand-accent); font-size: 9px; font-weight: 750; letter-spacing: 1px; }
.route-summary strong { font-size: 13px; }
.route-summary small { color: var(--soft-muted); font-size: 11px; line-height: 1.45; }
.route-questions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px; margin: 8px 0 0; padding: 9px 0 0 17px; border-top: 1px solid #e6e6ea; color: #666670; font-size: 10px; line-height: 1.4; }
.preset-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px dashed #d9d9de; border-radius: 11px; color: var(--soft-muted); font-size: 11px; }
.preset-row .button { min-height: 36px; margin: 0; padding: 8px 12px; border-radius: 8px; font-size: 11px; text-transform: none; }
.role-grid { display: grid; gap: 10px; margin-top: 16px; }
.role-card { min-height: 92px; display: grid; grid-template-columns: 42px minmax(0,1fr) 26px; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--soft-line); border-radius: 14px; background: #fff; color: var(--soft-ink); text-align: left; transition: border-color .16s, box-shadow .16s, transform .16s; }
.role-card:hover { transform: translateY(-1px); border-color: #cfcfd5; box-shadow: 0 8px 24px rgba(22,22,28,.055); }
.role-card.selected { border-color: color-mix(in srgb, var(--brand-accent) 52%, #d9d9df); background: color-mix(in srgb, var(--brand-accent) 3%, #fff); }
.role-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #f1f1f4; color: #303038; font-size: 18px; }
.role-card.selected .role-icon { background: var(--brand-accent); color: #fff; }
.role-card strong, .role-card small { display: block; }
.role-card strong { font-size: 14px; }
.role-card small { margin-top: 4px; color: var(--soft-muted); font-size: 11px; line-height: 1.45; }
.role-check { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #d9d9df; border-radius: 50%; color: #9696a0; }
.role-card.selected .role-check { border-color: var(--brand-accent); background: var(--brand-accent); color: #fff; }
.compact-field { max-width: 360px; margin-top: 17px; }
.task-grid--compact { gap: 8px; }
.task-grid--compact .task-card { min-height: 84px; padding: 12px; border-radius: 11px; box-shadow: none; }
.task-card { border-radius: 11px; }
.task-card.selected { border-color: color-mix(in srgb, var(--brand-accent) 45%, #dedee3); background: color-mix(in srgb, var(--brand-accent) 3%, #fff); box-shadow: none; }
.task-check, .guided-question > span { color: var(--brand-accent); }
.task-card.selected .task-check, .guided-question.selected > span { border-color: var(--brand-accent); background: var(--brand-accent); }
.task-card strong { font-size: 12px; }
.task-card small { font-size: 10px; }
.task-badge { color: var(--brand-accent); font: 700 8px/1 Inter, sans-serif; }
.setup-note { align-items: center; border: 0; border-radius: 11px; background: #f6f6f8; color: var(--soft-muted); font-size: 11px; }
.setup-note strong { color: var(--soft-ink); }
.setup-actions { margin-top: 30px; padding-top: 20px; border-color: var(--soft-line); }
.setup-actions .button { min-width: 116px; min-height: 44px; border-radius: 10px; font-size: 12px; text-transform: none; }
.button--dark { background: #202027; }
.button--subtle { background: #f1f1f4; color: #3d3d45; }
.preview-panel { grid-column: 2; padding: 0; position: sticky; top: 98px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 18px; background: #fff; color: var(--soft-ink); }
.preview-toolbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--soft-line); }
.preview-toolbar small { color: #95959f; font-size: 8px; font-weight: 750; letter-spacing: 1.1px; }
.preview-toolbar h3 { margin: 3px 0 0; color: var(--soft-ink); font-size: 14px; font-weight: 700; }
.preview-device { width: 36px; height: 36px; border: 1px solid var(--soft-line); border-radius: 9px; background: #fff; color: #555560; }
.preview-canvas { min-height: 650px; display: grid; place-items: center; padding: 26px 20px; background-color: #fafafd; background-image: radial-gradient(#d8d8de .7px, transparent .7px); background-size: 14px 14px; }
.preview-note { display: flex; gap: 7px; align-items: center; margin: 0; padding: 11px 16px; border-top: 1px solid var(--soft-line); color: #8a8a95; font-size: 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #36a875; box-shadow: 0 0 0 3px #e6f5ed; }
.preview-panel .chat-window { width: min(390px, 100%); height: 560px; border: 1px solid #e4e4e9; border-radius: 20px; box-shadow: 0 20px 52px rgba(30,30,38,.12); }
.chat-head { min-height: 66px; padding: 13px 15px; background: linear-gradient(135deg, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 76%, #151523)); }
.chat-bot-icon { width: 38px; height: 38px; overflow: hidden; background: rgba(255,255,255,.16); }
.chat-bot-icon img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.chat-head strong { font-size: 13px; font-weight: 700; }
.chat-head small { color: rgba(255,255,255,.75); font-size: 9px; }
.chat-head-reset { width: 36px; height: 36px; margin-left: auto; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; }
.chat-messages { padding: 16px; gap: 10px; background: #fff; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.45; }
.bubble--bot { background: #f1f1f3; border-bottom-left-radius: 4px; }
.bubble--user { background: #202027; border-bottom-right-radius: 4px; }
.chat-starters { display: grid; gap: 7px; margin-top: auto; padding-top: 18px; }
.chat-starters button { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border: 1px solid #e0e0e5; border-radius: 999px; background: #fff; color: #292930; font-size: 11px; font-weight: 650; }
.chat-starters button:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.chat-starters button span { font-size: 17px; }
.chat-input { padding: 10px 11px; border-color: #ebebee; }
.chat-input input { min-height: 41px; padding: 9px 13px; border-radius: 999px; font-size: 11px; }
.chat-input button { width: 41px; height: 41px; flex: 0 0 41px; border-radius: 50%; background: var(--brand-accent); }
.chat-powered { padding: 0 10px 8px; color: #9696a0; text-align: center; font-size: 8px; }
.chat-powered strong { color: #6d6d77; }
.chat-test-status { width: min(390px, 100%); margin: 10px auto 0; color: #777781; font-size: 9px; text-align: center; }
.chat-scenarios { width: min(390px, 100%); margin: 10px auto 0; grid-template-columns: repeat(3,1fr); gap: 5px; }
.chat-scenarios strong { grid-column: 1 / -1; color: #777781; font-size: 9px; font-weight: 650; }
.chat-scenarios button { min-height: 42px; padding: 7px; border: 1px solid #e0e0e5; border-radius: 8px; background: rgba(255,255,255,.9); color: #555560; font-size: 8px; text-align: center; }
.bubble--typing { display: flex; gap: 3px; align-items: center; }
.bubble--typing i { width: 4px; height: 4px; border-radius: 50%; background: #8d8d96; }
.color-field { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 5px 11px; border: 1px solid #dcdce1; border-radius: 10px; }
.color-field input { width: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; }
.color-field span { color: var(--soft-muted); font-size: 11px; }
.source-card, .route-section, .route-details, .knowledge-document, .upload-box { border-radius: 12px; }
.source-card--primary { border-color: color-mix(in srgb, var(--brand-accent) 45%, #ddd); box-shadow: none; }
.source-step, .source-url-input button, .upload-box input::file-selector-button { background: var(--brand-accent); }
.source-card-head small, .source-type, .source-url, .route-icon, .route-section-head span, .guided-add button { color: var(--brand-accent); }
.profile-advice { border: 0; border-radius: 12px; background: #202027; }
.validation-notice { border: 0; border-radius: 10px; }
.dashboard-view { max-width: 1240px; margin: 0 auto; }
.dashboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 18px 0 26px; }
.dashboard-kicker { color: var(--brand-accent); font-size: 10px; font-weight: 750; letter-spacing: 1.3px; }
.dashboard-hero h2 { max-width: 760px; margin: 7px 0 9px; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -2.2px; }
.dashboard-hero p { max-width: 720px; margin: 0; color: var(--soft-muted); font-size: 15px; line-height: 1.55; }
.dashboard-hero .button { min-height: 46px; padding: 12px 18px; border-radius: 11px; font-size: 12px; white-space: nowrap; }
.progress-card { display: grid; grid-template-columns: auto minmax(180px,1fr) auto; gap: 16px; align-items: center; padding: 15px 17px; border: 1px solid var(--soft-line); border-radius: 14px; background: #fff; }
.progress-card > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.progress-card span, .progress-card small { color: var(--soft-muted); font-size: 10px; }
.progress-card strong { font-size: 16px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #ededf0; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--brand-accent); transition: width .25s ease; }
.journey-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 16px 0; }
.journey-card { min-height: 124px; display: grid; grid-template-columns: 30px minmax(0,1fr); grid-template-rows: 1fr auto; gap: 10px; padding: 17px; border: 1px solid var(--soft-line); border-radius: 14px; background: #fff; color: var(--soft-ink); text-align: left; }
.journey-card:hover { border-color: #cfcfd6; box-shadow: 0 10px 28px rgba(24,24,31,.055); }
.journey-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #f0f0f3; color: #666670; font-size: 10px; font-weight: 750; }
.journey-card.done .journey-number { background: #e6f5ed; color: #2f7f5c; }
.journey-card strong, .journey-card small { display: block; }
.journey-card strong { font-size: 14px; }
.journey-card small { margin-top: 5px; color: var(--soft-muted); font-size: 10px; line-height: 1.5; }
.journey-arrow { grid-column: 2; color: #9696a0; font-size: 15px; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.dashboard-grid .panel { padding: 21px; border-color: var(--soft-line); border-radius: 15px; box-shadow: none; }
.dashboard-grid .panel-head { margin-bottom: 16px; }
.dashboard-grid .panel-head small, .next-step > small { color: #9696a0; font-size: 9px; font-weight: 750; letter-spacing: 1px; }
.dashboard-grid .panel h3 { margin-top: 4px; font-size: 18px; }
.bot-overview .status-pill { font-size: 10px; }
.bot-overview .bot-status { margin: 0; border-radius: 12px; background: #f6f6f8; }
.bot-overview .bot-mark { overflow: hidden; background: var(--brand-accent); }
.bot-overview .bot-mark img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.overview-facts { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 14px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 11px; }
.overview-facts div { padding: 12px 14px; border-right: 1px solid var(--soft-line); }
.overview-facts div:last-child { border-right: 0; }
.overview-facts small, .overview-facts strong { display: block; }
.overview-facts small { color: var(--soft-muted); font-size: 9px; }
.overview-facts strong { margin-top: 3px; font-size: 17px; }
.next-step { display: flex; flex-direction: column; align-items: flex-start; background: #202027 !important; color: #fff; }
.next-step > small { color: #a9a9b2; }
.next-step h3 { color: #fff; font-size: 22px !important; line-height: 1.2; }
.next-step p { margin: 8px 0 18px; color: #bdbdc5; font-size: 11px; line-height: 1.55; }
.next-step .button { margin-top: auto; border-radius: 9px; background: var(--brand-accent); font-size: 11px; text-transform: none; }

@media (max-width: 1320px) {
  .setup-layout { grid-template-columns: minmax(560px, 1fr) 390px; }
  .preview-canvas { padding: 22px 14px; }
}
@media (max-width: 1080px) {
  .setup-layout { grid-template-columns: 1fr; }
  .stepper, .setup-card, .preview-panel { grid-column: 1; }
  .preview-panel { position: static; }
  .preview-canvas { min-height: 620px; }
  .journey-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .workspace { display: block; }
  .sidebar { width: 252px; left: -252px; }
  .topbar { height: 68px; padding: 0 15px; }
  .topbar-action { display: none; }
  .content { padding: 20px 14px 38px; }
  .setup-intro { align-items: flex-start; }
  .setup-intro h2 { font-size: 28px; }
  .lifecycle { overflow-x: auto; grid-template-columns: repeat(4,minmax(112px,1fr)); }
  .lifecycle button { min-height: 52px; }
  .stepper { display: flex; overflow-x: auto; justify-content: flex-start; }
  .stepper button { min-width: 112px; flex-direction: row; }
  .setup-card { min-height: 0; padding: 23px 18px; }
  .form-grid, .task-grid { grid-template-columns: 1fr; }
  .section-divider, .preset-row { align-items: flex-start; flex-direction: column; }
  .preview-canvas { min-height: 600px; padding: 18px 10px; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .dashboard-hero h2 { font-size: 37px; }
  .progress-card { grid-template-columns: 1fr auto; }
  .progress-track { grid-column: 1 / -1; grid-row: 2; }
  .progress-card > small { grid-column: 1 / -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .setup-intro { gap: 10px; }
  .save-indicator { padding-left: 0; }
  .website-start { grid-template-columns: 38px minmax(0,1fr); padding: 14px; }
  .website-start-icon { width: 38px; height: 38px; }
  .website-start-input { grid-column: 1 / -1; grid-template-columns: 1fr; margin-top: 8px; }
  .role-card { grid-template-columns: 38px minmax(0,1fr) 24px; padding: 13px; }
  .role-icon { width: 38px; height: 38px; }
  .preview-panel .chat-window { height: 540px; }
  .chat-scenarios { grid-template-columns: 1fr; }
  .chat-scenarios strong { grid-column: 1; }
  .journey-grid { grid-template-columns: 1fr; }
  .route-questions { grid-template-columns: 1fr; }
}
