/* Phase 1 platform shell and Playground. Loaded last to keep the migration reversible. */
:root {
  --platform-sidebar: 264px;
  --platform-line: #e8e8ec;
  --platform-muted: #5f606b;
  --platform-ink: #18181d;
  --softora-page-background: #f8f6f2;
}

body { background: var(--softora-page-background); }
.platform-workspace { grid-template-columns: var(--platform-sidebar) minmax(0, 1fr); background: var(--softora-page-background); transition: grid-template-columns .2s ease; }
.platform-workspace.sidebar-collapsed { --platform-sidebar: 76px; }
.platform-workspace .sidebar { width: auto; min-width: 0; height: 100vh; position: sticky; top: 0; z-index: 40; overflow: hidden; padding: 14px 12px; border-right: 1px solid var(--platform-line); background: #fff; color: var(--platform-ink); }
.platform-workspace .sidebar-brand { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 7px 10px; }
.platform-workspace .sidebar-brand .app-brand { padding: 0; color: #17171c; font-size: 21px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.platform-workspace .sidebar-brand .app-brand span { color: var(--brand-accent); }
#collapse-sidebar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid var(--platform-line); border-radius: 9px; background: #fff; color: #74747e; font-size: 20px; }
.platform-workspace .workspace-switch { min-height: 68px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; padding: 10px; border: 1px solid #dedee4; border-radius: 12px; background: #fff; color: var(--platform-ink); box-shadow: 0 1px 2px rgba(20,20,28,.03); }
.workspace-meta { min-width: 0; }
.workspace-meta small, .workspace-meta strong, .workspace-meta em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.platform-workspace .workspace-switch small { color: #6f707a; font-size: 10px; font-weight: 550; }
.platform-workspace .workspace-switch strong { color: #202027; font-size: 13px; font-weight: 700; }
.platform-workspace .workspace-switch em { margin-top: 2px; color: #696a74; font-size: 10px; }
.workspace-status { padding: 4px 7px; border-radius: 999px; background: #f1f1f4; color: #656670; font-size: 9px; font-weight: 650; }
.sidebar-search { min-height: 42px; display: grid; grid-template-columns: 19px minmax(0,1fr); gap: 8px; align-items: center; margin: 10px 0 8px; padding: 0 11px; border: 1px solid #dedee4; border-radius: 10px; color: #6e6f79; }
.sidebar-search > span { display: grid; }
.sidebar-search svg, .platform-nav svg, .sidebar-help svg, .future-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #232329; font-size: 13px; }
.sidebar-search kbd { padding: 2px 5px; border: 1px solid #e1e1e5; border-radius: 5px; background: #f6f6f8; color: #92929c; font: 9px/1.3 Inter, sans-serif; }
.platform-nav { flex: 1; min-height: 0; overflow: hidden auto; display: grid; align-content: start; gap: 2px; padding: 2px 0 12px; scrollbar-width: thin; }
.platform-nav button, .sidebar-help { min-height: 44px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 0; border-radius: 9px; background: transparent; color: #3f4048; font-size: 13px; font-weight: 560; text-align: left; text-decoration: none; }
.platform-nav button:hover, .sidebar-help:hover { background: #f5f5f7; color: #17171c; }
.platform-nav button.active { background: color-mix(in srgb, var(--brand-accent) 8%, #fff); color: #17171c; font-weight: 680; box-shadow: inset 2px 0 var(--brand-accent); }
.platform-nav .nav-icon { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; color: #73737d; }
.platform-nav button.active .nav-icon, .platform-nav .has-active > .nav-group-toggle .nav-icon { color: var(--brand-accent); }
.nav-group-toggle { position: relative; }
.nav-chevron { margin-left: auto; font-size: 18px; transition: transform .18s ease; }
.nav-group.open .nav-chevron { transform: rotate(90deg); }
.nav-children { display: none; margin: 0 0 4px 20px; padding-left: 13px; border-left: 1px solid #e8e8ec; }
.nav-group.open .nav-children, .nav-group.searching .nav-children { display: grid; }
.nav-children button { min-height: 37px; padding: 7px 11px; font-size: 11px; }
.platform-workspace .sidebar-bottom { gap: 7px; margin-top: auto; padding: 10px 0 0; border-top: 1px solid var(--platform-line); color: #5e5e68; }
.setup-progress { width: 100%; display: grid; gap: 7px; padding: 9px 10px; border: 0; border-radius: 10px; background: #202027; color: #fff; text-align: left; }
.setup-progress span { display: flex; justify-content: space-between; gap: 8px; }
.setup-progress strong, .setup-progress small { font-size: 9px; }
.setup-progress small { color: #bdbdc5; }
.setup-progress i { height: 4px; overflow: hidden; border-radius: 999px; background: #3d3d45; }
.setup-progress b { display: block; height: 100%; border-radius: inherit; background: var(--brand-accent); }
.platform-workspace .sidebar-user { min-height: 44px; grid-template-columns: 32px minmax(0,1fr) 26px; gap: 8px; padding: 4px 7px; }
.platform-workspace .sidebar-user strong { color: #292930; font-size: 10px; }
.platform-workspace .sidebar-user small { color: #868690; font-size: 9px; }
.platform-workspace .sidebar-user .logout { width: 26px; height: 26px; margin: 0; padding: 0; color: #8b8b94; text-align: center; }
.sidebar-help { padding-left: 10px; }

.sidebar-collapsed .sidebar-brand .app-brand, .sidebar-collapsed .workspace-meta, .sidebar-collapsed .workspace-status, .sidebar-collapsed .sidebar-search input, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-chevron, .sidebar-collapsed .setup-progress span, .sidebar-collapsed .sidebar-user .logout { display: none; }
.sidebar-collapsed .collapse-icon { transform: rotate(180deg); }
.collapse-icon { display: grid; transition: transform .18s ease; }
.collapse-icon svg, .platform-workspace .logout svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-collapsed .sidebar-brand { justify-content: center; }
.sidebar-collapsed .workspace-switch { display: grid; grid-template-columns: 38px; justify-content: center; padding: 8px 6px; }
.sidebar-collapsed .sidebar-search { grid-template-columns: 19px; justify-content: center; padding: 0; }
.sidebar-collapsed .platform-nav button, .sidebar-collapsed .sidebar-help { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .nav-children { margin-left: 0; padding-left: 0; border: 0; }
.sidebar-collapsed .nav-children button { min-height: 12px; width: 12px; margin: 4px auto; padding: 0; border-radius: 50%; background: #e3e3e7; }
.sidebar-collapsed .nav-children button.active { background: var(--brand-accent); box-shadow: none; }
.sidebar-collapsed .setup-progress { min-height: 42px; display: grid; place-items: center; padding: 8px; }
.sidebar-collapsed .setup-progress i { width: 36px; }
.sidebar-collapsed .sidebar-user { display: grid; grid-template-columns: 32px; justify-content: center; padding: 4px 0; }

.platform-workspace .topbar { height: 70px; padding: 0 28px; border-color: var(--platform-line); }
.platform-workspace .content { max-width: none; padding: 24px 28px 42px; }
.platform-workspace .topbar h1 { font-size: 18px; }

.playground-view { max-width: 1640px; margin: 0 auto; }
.playground-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.playground-top h2 { margin: 0 0 5px; color: var(--platform-ink); font-size: 25px; letter-spacing: -.7px; }
.playground-top p { margin: 0; color: var(--platform-muted); font-size: 12px; }
.playground-toolbar { display: flex; align-items: center; gap: 7px; }
.playground-toolbar select, .icon-action, .device-switch, .context-switch { min-height: 38px; border: 1px solid var(--platform-line); border-radius: 9px; background: #fff; color: #3d3d44; font-size: 11px; }
.playground-toolbar select { padding: 0 30px 0 11px; }
.device-switch, .context-switch { display: flex; padding: 3px; }
.device-switch button, .context-switch button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #777781; font-size: 10px; }
.device-switch button.active, .context-switch button.active { background: #202027; color: #fff; }
.icon-action { display: flex; align-items: center; gap: 5px; padding: 0 11px; }
.playground-tabs { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--platform-line); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; }
.playground-tabs button { min-height: 39px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #777781; font-size: 11px; font-weight: 600; }
.playground-tabs button.active { background: #f0f0f3; color: #202027; }
.playground-layout { min-height: calc(100vh - 190px); display: grid; grid-template-columns: 340px minmax(520px, 1fr); overflow: hidden; border: 1px solid var(--platform-line); border-radius: 0 0 16px 16px; background: #fff; box-shadow: 0 15px 42px rgba(28,28,36,.04); }
.playground-controls { min-width: 0; overflow: auto; padding: 22px; border-right: 1px solid var(--platform-line); }
.playground-section h3 { margin: 0 0 6px; font-size: 17px; }
.playground-section > p { margin: 0 0 18px; color: var(--platform-muted); font-size: 11px; line-height: 1.55; }
.playground-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.playground-fields .field--wide { grid-column: 1/-1; }
.playground-summary { overflow: hidden; border: 1px solid var(--platform-line); border-radius: 13px; }
.summary-bot { display: flex; align-items: center; gap: 11px; padding: 15px; }
.summary-bot > span { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: var(--brand-accent); color: #fff; }
.summary-bot img { width: 100%; height: 100%; object-fit: cover; }
.summary-bot strong, .summary-bot small { display: block; }
.summary-bot strong { font-size: 13px; }
.summary-bot small { margin-top: 3px; color: var(--platform-muted); font-size: 10px; }
.playground-summary dl { margin: 0; border-top: 1px solid var(--platform-line); }
.playground-summary dl div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 13px; border-top: 1px solid #f0f0f2; }
.playground-summary dl div:first-child { border-top: 0; }
.playground-summary dt, .playground-summary dd { margin: 0; font-size: 10px; }
.playground-summary dt { color: var(--platform-muted); }
.full-button { width: 100%; margin-top: 12px; }
.playground-tip, .future-note { display: grid; gap: 4px; margin-top: 14px; padding: 12px; border-radius: 10px; background: #f5f5f7; }
.playground-tip strong, .playground-tip span { font-size: 10px; }
.playground-tip span { color: var(--platform-muted); line-height: 1.5; }
.starter-editor { display: grid; gap: 8px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--platform-line); }
.starter-editor > span { font-size: 11px; font-weight: 700; }
.starter-editor > div { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid var(--platform-line); border-radius: 9px; }
.starter-editor strong, .starter-editor small { font-size: 10px; }
.starter-editor small { color: var(--platform-muted); }
.starter-editor button, .text-action { min-height: 38px; border: 0; background: transparent; color: var(--brand-accent); font-size: 10px; font-weight: 700; text-align: left; }
.capability-list { display: grid; gap: 8px; }
.capability-list > button { min-height: 72px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--platform-line); border-radius: 11px; background: #fff; text-align: left; }
.capability-list > button.selected { border-color: color-mix(in srgb, var(--brand-accent) 42%, var(--platform-line)); background: color-mix(in srgb, var(--brand-accent) 3%, #fff); }
.capability-list strong, .capability-list small { display: block; }
.capability-list strong { font-size: 11px; }
.capability-list small { margin-top: 3px; color: var(--platform-muted); font-size: 9px; line-height: 1.4; }
.capability-list em { color: var(--brand-accent); font-size: 9px; font-style: normal; font-weight: 700; }
.switch-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #efeff2; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 11px; }
.switch-row small { margin-top: 3px; color: var(--platform-muted); font-size: 9px; }
.switch-row input { width: 35px; height: 19px; accent-color: var(--brand-accent); }
.background-upload { display: grid; gap: 8px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--platform-line); }
.background-upload strong, .background-upload small { display: block; }
.background-upload strong { font-size: 11px; }
.background-upload small { margin-top: 3px; color: var(--platform-muted); font-size: 9px; }
.background-upload label, .background-upload button { min-height: 36px; display: grid; place-items: center; border: 1px solid var(--platform-line); border-radius: 8px; background: #fff; color: #404048; font-size: 10px; font-weight: 650; cursor: pointer; }
.background-upload button:disabled { opacity: .45; cursor: default; }
.background-upload input { position: absolute; opacity: 0; pointer-events: none; }
.background-upload p { margin: 0; color: #a02761; font-size: 9px; }
.playground-stage { min-width: 0; position: relative; display: flex; align-items: flex-end; justify-content: flex-end; padding: 38px; overflow: hidden; background-color: #f3f4f6; background-size: cover; background-position: center top; }
.playground-stage.chat-only { align-items: center; justify-content: center; background-color: #f7f7f9; background-image: radial-gradient(#d6d6dc .7px, transparent .7px); background-size: 16px 16px; }
.playground-stage.with-website.is-left { justify-content: flex-start; }
.website-context-empty { position: absolute; inset: 34px 34px auto; min-height: 130px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 18px; border: 1px dashed #cfcfd5; border-radius: 12px; background: rgba(255,255,255,.74); color: #74747e; text-align: center; }
.website-context-empty > span { font-size: 25px; }
.website-context-empty strong { color: #3b3b43; font-size: 11px; }
.website-context-empty small { font-size: 9px; }
.fake-site { position: absolute; inset: 0; padding: 28px 36px; background: linear-gradient(135deg,#f9f9fb,#ececf1); }
.fake-logo { font-size: 15px; font-weight: 800; }
.fake-nav { position: absolute; top: 30px; right: 34px; display: flex; gap: 12px; }
.fake-nav i { width: 42px; height: 5px; border-radius: 9px; background: #d5d5da; }
.fake-copy { position: absolute; left: 8%; top: 25%; width: 50%; display: grid; gap: 13px; }
.fake-copy small { color: var(--brand-accent); font-size: 10px; font-weight: 700; }
.fake-copy strong { font-size: clamp(30px,4vw,57px); line-height: 1.03; letter-spacing: -2px; }
.fake-copy > span { width: 75%; height: 8px; border-radius: 8px; background: #dcdce1; }
.fake-copy > span + span { width: 55%; }
.fake-copy button { width: max-content; min-height: 40px; margin-top: 7px; padding: 0 15px; border: 0; border-radius: 8px; background: #202027; color: #fff; font-size: 10px; }
.preview-widget { position: relative; z-index: 2; width: 390px; max-width: 100%; }
.playground-stage.is-mobile .preview-widget { width: 340px; }
.preview-widget .chat-window { width: 100%; height: min(610px, calc(100vh - 250px)); min-height: 520px; overflow: hidden; border: 1px solid rgba(25,25,32,.09); border-radius: var(--chat-radius); background: var(--chat-surface); box-shadow: 0 22px 65px rgba(20,20,28,.18); font-family: var(--chat-font), sans-serif; }
.preview-widget .chat-messages { background: var(--chat-surface); }
.preview-widget .bubble, .preview-widget .chat-input input, .preview-widget .chat-starters button { font-family: var(--chat-font), sans-serif; font-size: var(--chat-font-size); }
.preview-widget .bubble { font-size: calc(var(--chat-font-size) * .86); }
.preview-widget .chat-starters button { font-size: calc(var(--chat-font-size) * .78); }
.preview-widget .chat-feedback { display: flex; align-items: center; gap: 5px; margin-top: -4px; color: #8a8a94; font-size: 9px; }
.chat-feedback button { width: 28px; height: 28px; border: 1px solid #e4e4e8; border-radius: 50%; background: #fff; color: #6f6f79; }
.chat-contact { min-height: 42px; display: flex; align-items: center; justify-content: space-between; margin-top: 2px; padding: 9px 13px; border: 1px solid color-mix(in srgb, var(--brand-accent) 35%, #e3e3e7); border-radius: 10px; color: var(--brand-accent); font-size: 10px; font-weight: 700; text-decoration: none; }

.proposal-banner { min-height: 62px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 11px; align-items: center; margin-bottom: 17px; padding: 12px; border: 1px solid #cfe9dc; border-radius: 12px; background: #f5fbf8; }
.proposal-banner > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #3c966d; color: #fff; }
.proposal-banner strong, .proposal-banner small { display: block; }
.proposal-banner strong { font-size: 12px; }
.proposal-banner small { margin-top: 3px; color: #668071; font-size: 9px; }
.proposal-banner button { min-height: 34px; padding: 0 11px; border: 1px solid #c8dfd3; border-radius: 8px; background: #fff; color: #2f7657; font-size: 9px; font-weight: 700; }
.proposal-details, .goal-details, .review-disclosure { grid-column: 1/-1; margin-top: 10px; border: 1px solid var(--platform-line); border-radius: 11px; background: #fff; }
.proposal-details > summary, .goal-details > summary, .review-disclosure > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; cursor: pointer; font-size: 11px; font-weight: 700; }
.proposal-details > summary span, .goal-details > summary span, .review-disclosure > summary span { color: var(--platform-muted); font-size: 9px; font-weight: 500; }
.proposal-details > .form-grid, .goal-details > .task-grid, .review-disclosure-content { padding: 0 14px 14px; }
.preview-ready { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; align-items: center; margin-bottom: 18px; padding: 13px; border: 1px solid var(--platform-line); border-radius: 13px; background: #fafafd; }
.preview-ready > span { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: var(--brand-accent); color: #fff; }
.preview-ready img { width: 100%; height: 100%; object-fit: cover; }
.preview-ready strong, .preview-ready small { display: block; }
.preview-ready strong { font-size: 13px; }
.preview-ready small { margin-top: 3px; color: var(--platform-muted); font-size: 10px; }
.preview-ready .button { margin: 0; min-height: 39px; font-size: 10px; }
.website-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 18px; }
.website-benefits > div { min-height: 100px; display: grid; align-content: start; gap: 5px; padding: 13px; border: 1px solid var(--platform-line); border-radius: 11px; }
.website-benefits span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #f0f0f3; color: var(--brand-accent); font-size: 9px; font-weight: 800; }
.website-benefits strong { margin-top: 4px; font-size: 11px; }
.website-benefits small { color: var(--platform-muted); font-size: 9px; line-height: 1.45; }
.crawl-progress { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: #6d6d77; font-size: 10px; }
.crawl-progress i { width: 20px; height: 20px; border: 2px solid #e1e1e5; border-top-color: var(--brand-accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.source-pages { margin: 14px 0 4px; padding: 11px 12px; border: 1px solid #ececf0; border-radius: 10px; background: #fafafd; }
.source-pages > summary { cursor: pointer; color: #33333a; font-size: 10px; font-weight: 700; }
.source-page-list { display: grid; gap: 6px; margin: 10px 0 8px; }
.source-page-list label { min-height: 43px; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 9px; align-items: center; padding: 7px 9px; border-radius: 8px; background: #fff; cursor: pointer; }
.source-page-list input { accent-color: var(--brand-accent); }
.source-page-list strong, .source-page-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-page-list strong { font-size: 10px; }
.source-page-list small, .source-pages > small { color: var(--platform-muted); font-size: 8px; }
.onboarding-pages .knowledge-document { margin-top: 0; }
.onboarding-pages .knowledge-document details:last-child { display: none; }

.future-view { max-width: 1080px; margin: 0 auto; }
.future-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 0 28px; }
.future-hero > div > span { color: var(--brand-accent); font-size: 9px; font-weight: 750; letter-spacing: 1.1px; }
.future-hero h2 { margin: 7px 0; font-size: 35px; letter-spacing: -1.2px; }
.future-hero p { margin: 0; color: var(--platform-muted); font-size: 13px; }
.phase-badge { padding: 7px 10px; border-radius: 999px; background: #efeff2; color: #666670; font-size: 9px; font-weight: 700; }
.future-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.future-grid article { min-height: 170px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--platform-line); border-radius: 14px; background: #fff; }
.future-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f0f0f3; color: var(--brand-accent); }
.future-grid strong { display: block; margin-top: 17px; font-size: 13px; }
.future-grid p { color: var(--platform-muted); font-size: 10px; line-height: 1.5; }
.future-grid em { margin-top: auto; color: #7b7b85; font-size: 9px; font-style: normal; font-weight: 700; }
.future-note { margin-top: 14px; }
.future-note strong { font-size: 11px; }
.future-note p { margin: 0; color: var(--platform-muted); font-size: 10px; }

@media (max-width: 1180px) {
  .playground-layout { grid-template-columns: 310px minmax(430px,1fr); }
  .playground-stage { padding: 24px; }
}

@media (max-width: 900px) {
  .platform-workspace, .platform-workspace.sidebar-collapsed { display: block; }
  .platform-workspace .sidebar { width: 270px; position: fixed; left: -280px; transition: left .2s ease; box-shadow: 16px 0 45px rgba(20,20,28,.16); }
  .platform-workspace .sidebar.open { left: 0; }
  #collapse-sidebar { display: none; }
  .platform-workspace .content { padding: 18px 15px 34px; }
  .playground-top { align-items: flex-start; flex-direction: column; }
  .playground-toolbar { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .playground-layout { grid-template-columns: 1fr; overflow: visible; }
  .playground-controls { border-right: 0; border-bottom: 1px solid var(--platform-line); }
  .playground-stage { min-height: 720px; }
  .future-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .platform-workspace .topbar { padding: 0 13px; }
  .platform-workspace .topbar-right .status-pill { display: none; }
  .playground-top h2 { font-size: 23px; }
  .playground-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; overflow: visible; }
  .playground-toolbar .context-switch { grid-column: 1/-1; }
  .playground-toolbar .context-switch button { flex: 1; }
  .playground-toolbar .icon-action { width: 38px; justify-content: center; padding: 0; }
  .playground-toolbar .icon-action span { display: none; }
  .playground-tabs { overflow-x: auto; border-bottom: 1px solid var(--platform-line); border-radius: 12px; }
  .playground-tabs button { flex: 0 0 auto; }
  .playground-layout { margin-top: 10px; border-radius: 14px; }
  .playground-controls { padding: 18px 15px; }
  .playground-fields { grid-template-columns: 1fr; }
  .playground-fields .field--wide { grid-column: 1; }
  .playground-stage { min-height: 640px; padding: 14px; align-items: center; }
  .preview-widget { width: 100%; }
  .preview-widget .chat-window { min-height: 560px; height: 72vh; max-height: 650px; }
  .preview-widget.fullscreen { width: calc(100% + 28px); margin: -14px; }
  .preview-widget.fullscreen .chat-window { height: 640px; border-radius: 0; }
  .fake-site { padding: 20px; }
  .fake-copy { left: 8%; top: 16%; width: 78%; }
  .fake-copy strong { font-size: 34px; }
  .website-benefits { grid-template-columns: 1fr; }
  .preview-ready { grid-template-columns: 44px minmax(0,1fr); }
  .preview-ready .button { grid-column: 1/-1; width: 100%; }
  .proposal-banner { grid-template-columns: 30px minmax(0,1fr); }
  .proposal-banner button { grid-column: 1/-1; }
}

/* Readability and attention pass: important actions first, secondary text still legible. */
.platform-workspace { color: #17171d; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.platform-workspace .content { line-height: 1.55; }
.platform-workspace .setup-intro p { color: #555661; font-size: 15px; }
.platform-workspace .lifecycle { margin-bottom: 14px; border-color: #e1e1e6; background: transparent; }
.platform-workspace .lifecycle button { min-height: 48px; color: #666772; font-size: 13px; }
.platform-workspace .lifecycle button small { width: 23px; height: 23px; color: #5f6069; font-size: 10px; }
.platform-workspace .lifecycle button span { font-size: 13px; font-weight: 650; }
.platform-workspace .stepper button { color: #60616b; font-size: 12px; font-weight: 560; }
.platform-workspace .stepper button.active { color: #fff; font-weight: 700; }
.platform-workspace .step-heading > span { font-size: 11px; }
.platform-workspace .step-heading p,
.platform-workspace .setup-card > p { color: #555661; font-size: 15px; }
.platform-workspace .website-start { padding: 20px; border-width: 1px; box-shadow: 0 8px 24px rgba(30,30,38,.035); }
.platform-workspace .website-start-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.platform-workspace .website-start-copy label { font-size: 15px; }
.platform-workspace .website-start-copy p { color: #5e5f69; font-size: 13px; }
.platform-workspace .website-start-input input { font-size: 14px; }
.platform-workspace .website-start-input button { padding-inline: 19px; font-size: 11px; font-weight: 750; }
.platform-workspace .website-benefits > div { min-height: 108px; padding: 14px; }
.platform-workspace .website-benefits strong { font-size: 13px; }
.platform-workspace .website-benefits small { color: #60616b; font-size: 11px; line-height: 1.5; }
.platform-workspace .field label { font-size: 13px; font-weight: 650; }
.platform-workspace .field input,
.platform-workspace .field textarea,
.platform-workspace .field select { font-size: 14px; }
.platform-workspace .source-notice { color: #7f305d; font-size: 12px; }
.platform-workspace .preview-toolbar small { color: #71727c; font-size: 9px; }
.platform-workspace .preview-toolbar h3 { font-size: 15px; }
.preview-live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; background: #f1faf5; color: #287656; font-size: 11px; font-weight: 650; }
.preview-live .live-dot { box-shadow: none; }
.platform-workspace .preview-note { color: #686973; font-size: 11px; }
.platform-workspace .chat-head strong { font-size: 14px; }
.platform-workspace .chat-head small { font-size: 10px; }
.platform-workspace .bubble { font-size: 13px; }
.platform-workspace .chat-starters button { font-size: 12px; }
.platform-workspace .chat-input input { font-size: 12px; }
.platform-workspace .validation-notice { color: #6f3213; font-size: 13px; }
.onboarding-error { max-width: 760px; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 15px 16px; }
.onboarding-error strong,
.onboarding-error span { grid-column: 1; }
.onboarding-error .button { grid-column: 2; grid-row: 1 / 3; margin: 0; white-space: nowrap; }

/* First login is a focused product flow. The dashboard stays hidden until setup is complete. */
.first-run {
  min-height: 100vh;
  background: var(--softora-page-background);
  color: #17171d;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.first-run-header {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(180px,1fr) minmax(260px,420px) minmax(180px,1fr);
  align-items: center;
  gap: 28px;
  padding: 0 34px;
  border-bottom: 1px solid #e4e4e8;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.first-run-header .app-brand { justify-self: start; color: #17171d; text-decoration: none; font: 700 28px/1 Oswald, Inter, sans-serif; letter-spacing: -.5px; }
.first-run-header .app-brand span { color: inherit; }
.first-run-header .app-brand::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 5px; background: #8b2252; }
.first-run-progress { display: grid; grid-template-columns: minmax(0,1fr) 116px; align-items: center; gap: 15px; }
.first-run-progress span { display: flex; justify-content: space-between; gap: 12px; }
.first-run-progress strong { font-size: 12px; font-weight: 700; }
.first-run-progress small { color: #74757e; font-size: 11px; }
.first-run-progress i { height: 6px; overflow: hidden; border-radius: 999px; background: #e9e9ed; }
.first-run-progress b { display: block; height: 100%; border-radius: inherit; background: var(--brand-accent); transition: width .25s ease; }
.first-run-logout { justify-self: end; border: 0; background: transparent; color: #686973; font: 600 12px Inter,sans-serif; cursor: pointer; }
.first-run-logout:hover { color: #17171d; }
.first-run-content { width: min(1460px,calc(100% - 48px)); margin: 0 auto; padding: 36px 0 64px; }
.setup-view--first-run .setup-intro { width: 100%; max-width: 1188px; margin: 0 auto 22px; }
.setup-view--first-run:has(.setup-layout--focused) .setup-intro { max-width: 900px; }
.setup-view--first-run .setup-intro h2 { color: #17171d; font-size: 32px; text-transform: uppercase; }
.first-run .setup-intro p, .first-run .step-heading p, .first-run .setup-card > h2 + p { font-size: 12px; line-height: 1.6; }
.setup-view--first-run .setup-layout { grid-template-columns: minmax(0,760px) minmax(330px,410px); justify-content: center; gap: 18px; }
.setup-view--first-run .setup-layout--focused { grid-template-columns: minmax(0,900px); }
.setup-view--first-run .stepper,
.setup-view--first-run .setup-card,
.setup-view--first-run .preview-panel { border-color: #dfdfe4; box-shadow: 0 18px 48px rgba(24,24,31,.045); }
.setup-view--first-run .setup-card { min-height: 520px; border-radius: 17px; }
.setup-view--first-run .stepper { border-radius: 14px; }
.setup-view--first-run .preview-panel { border-radius: 17px; }
.setup-view--first-run [data-view="playground"] { display: none; }
.setup-note--success { border-color: #cce5d8; background: #f2faf6; color: #246849; }

@media (max-width: 1160px) {
  .setup-view--first-run .setup-layout,
  .setup-view--first-run .setup-layout--focused { grid-template-columns: minmax(0,1fr); max-width: 900px; margin-inline: auto; }
  .setup-view--first-run .preview-panel { grid-column: 1; position: static; }
}
@media (max-width: 760px) {
  .first-run-header { grid-template-columns: 1fr auto; gap: 12px; padding: 14px 18px; }
  .first-run-progress { grid-column: 1/-1; grid-row: 2; grid-template-columns: minmax(0,1fr) 90px; }
  .first-run-content { width: min(100% - 24px,680px); padding: 24px 0 40px; }
  .setup-view--first-run .setup-intro { align-items: flex-start; }
  .setup-view--first-run .setup-intro h2 { font-size: 27px; }
  .setup-view--first-run .setup-layout,
  .setup-view--first-run .setup-layout--focused { grid-template-columns: 1fr; }
  .setup-view--first-run .stepper { grid-column: 1; display: flex; overflow-x: auto; }
  .setup-view--first-run .stepper button { min-width: 108px; }
  .setup-view--first-run .setup-card,
  .setup-view--first-run .preview-panel { grid-column: 1; }
}

@media (max-width: 1160px) {
  .setup-view--first-run .setup-intro { max-width: 900px; }
}

/* Softora onboarding controls use purple independently of the chatbot theme. */
.first-run .stepper button.active,
.first-run .website-start-icon,
.first-run .website-start-input button,
.first-run .button--dark,
.first-run .button--primary {
  background: #8b2252;
  color: #fff;
}
.first-run .stepper button.active .stepper-number { background: #ffffff26; color: #fff; }
.first-run .website-start-input button:hover,
.first-run .button--dark:hover,
.first-run .button--primary:hover { background: #a62d65; }
.first-run .website-start-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.first-run-progress { grid-template-columns: 1fr; justify-items: center; gap: 7px; }
.first-run-progress span { justify-content: center; text-align: center; }
.first-run-progress i { width: 116px; }

.first-run { --brand-accent: #8b2252 !important; }
.first-run .eyebrow, .first-run .step-heading > span { color: #8b2252; }

.setup-actions > button:only-child { margin-left: auto; }

.first-run .website-start-input input { font-size: 13px; }

.first-run .setup-actions:has(> button:only-child) { justify-content: flex-end; border-top: 0; }
.first-run .setup-actions > button:only-child { margin-inline: 0; }

.setup-card > .website-found-count { margin: 22px 2px 0; color: #17171d; font: 700 14px/1.5 Oswald, Inter, sans-serif; }

/* Quiet, single-column customer sign-in. */
.login-screen--calm { display: flex; flex-direction: column; min-height: 100vh; background: var(--softora-page-background); color: #24212a; }
.login-screen--calm .login-form-wrap { display: flex; flex: 1; align-items: flex-start; justify-content: center; padding: clamp(24px,8vh,88px) 24px 64px; background: transparent; }
.login-screen--calm .login-card { width: 100%; max-width: 420px; padding: 38px 36px; border: 1px solid #eae5e7; border-radius: 20px; background: #fff; box-shadow: 0 12px 40px #35202b06; }
.login-screen--calm .login-card .eyebrow { color: #8b2252; font: 600 10px/1.4 Inter,sans-serif; letter-spacing: 1.6px; margin-bottom: 12px; }
.login-screen--calm .login-card h2 { font: 700 30px/1.2 Oswald,sans-serif; letter-spacing: -.5px; margin: 0 0 12px; text-transform: none; }
.login-screen--calm .login-card > p { font: 400 13px/1.7 Inter,sans-serif; color: #77717b; margin: 0 0 28px; }
.login-screen--calm .field { margin: 0 0 18px; }
.login-screen--calm .field label { font: 500 12px/1.5 Inter,sans-serif; color: #443c46; }
.login-screen--calm .field input { font: 400 13px/1.5 Inter,sans-serif; min-height: 46px; border: 1px solid #e1dbe0; border-radius: 9px; background: #fff; padding: 12px 14px; }
.login-screen--calm .field input:focus { outline: 2px solid #8b225225; border-color: #8b2252; }
.login-screen--calm .button--primary { width: 100%; min-height: 46px; margin-top: 6px; border: 0; border-radius: 9px; background: #8b2252; color: #fff; font: 600 13px/1.5 Inter,sans-serif; letter-spacing: 0; }
.login-screen--calm .button--primary:hover { background: #762047; }
.login-screen--calm .auth-switch, .login-screen--calm .calm-local-link { display: block; text-align: center; margin: 20px auto 0; color: #82727c; font: 400 11px/1.5 Inter,sans-serif; text-decoration: none; }
@media(max-width: 520px) { .login-screen--calm .login-form-wrap { padding: 24px 18px 40px; } .login-screen--calm .login-card { padding: 30px 24px; } }

.login-screen--calm { position: relative; isolation: isolate; }
.login-screen--calm .login-form-wrap { min-height: calc(100svh - 58px); align-items: center; padding: 40px 24px; }
@media(max-width: 760px) { .login-screen--calm .login-form-wrap { min-height: calc(100svh - 82px); padding: 24px 18px; } }

.login-screen--calm .login-card { background: rgba(255,255,255,.96); box-shadow: 0 18px 60px #35202b0a; }

.softora-select { position: relative; min-width: 0; }
.softora-select select[hidden], .softora-select-menu[hidden] { display: none; }
.softora-select-trigger { width: 100%; min-height: 44px; padding: 11px 38px 11px 13px; text-align: left; border: 1px solid #dcdce1; border-radius: 10px; background: #fff; color: #34343c; font: 400 13px/1.5 Inter,sans-serif; cursor: pointer; }
.softora-select-trigger::after { content: ''; position: absolute; right: 16px; top: 18px; width: 6px; height: 6px; border-right: 1.5px solid #8b2252; border-bottom: 1.5px solid #8b2252; transform: rotate(45deg); }
.softora-select-trigger:focus-visible, .softora-select-trigger[aria-expanded="true"] { outline: 3px solid #8b225212; border-color: #8b2252; }
.softora-select-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; max-height: 280px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid #e7dce2; border-radius: 12px; box-shadow: 0 12px 32px #37212d1a; }
.softora-select-menu button { display: block; width: 100%; border: 0; border-radius: 7px; background: transparent; text-align: left; padding: 10px 12px; font: 400 13px/1.5 Inter,sans-serif; color: #34343c; cursor: pointer; }
.softora-select-menu button:hover, .softora-select-menu button:focus { background: #f8f2f5; outline: none; }
.softora-select-menu button[aria-selected="true"] { background: #8b225210; color: #8b2252; font-weight: 600; }

.first-run .setup-actions { justify-content: space-between; border-top: 0; }

.first-run .setup-actions > .button--subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 4px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  color: #8b2252;
  font: 500 13px/1.5 Inter, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
}
.first-run .setup-actions > .button--subtle:hover { background: transparent; color: #64183b; text-decoration: underline; text-underline-offset: 4px; }
.first-run .setup-actions > .button--subtle:focus-visible { outline: 2px solid #8b2252; outline-offset: 4px; }

.lead-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.lead-field-option { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 12px 14px; border: 1px solid #e5e1e4; border-radius: 9px; background: #fff; color: #343039; font: 500 12px/1.5 Inter,sans-serif; text-align: left; cursor: pointer; }
.lead-field-option.selected { border-color: #d9c5cf; background: #fcf9fb; }
.lead-field-check { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; border: 1px solid #d3ccd1; border-radius: 5px; background: #fff; font: 600 11px/1 Inter,sans-serif; }
.lead-field-option.selected .lead-field-check { background: #8b2252; border-color: #8b2252; color: #fff; }
.lead-field-option:hover { border-color: #8b2252; }
.lead-field-option:focus-visible { outline: 2px solid #8b2252; outline-offset: 3px; }
@media(max-width: 520px) { .lead-field-grid { grid-template-columns: 1fr; } }

.website-start { position: relative; }
.website-start.complete .website-start-copy { padding-right: 26px; }
.website-clear { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #756b72; font: 400 23px/1 Inter,sans-serif; cursor: pointer; }
.website-clear:hover { background: #8b225210; color: #8b2252; }
.website-clear:focus-visible { outline: 2px solid #8b2252; outline-offset: 2px; }

/* The management shell belongs to Softora, independently of client branding. */
.platform-workspace { --brand-accent: #8b2252 !important; }
.platform-workspace .button--dark, .platform-workspace .button--primary,
.platform-workspace .website-start-input button, .platform-workspace .stepper button.active { background: #8b2252; color: #fff; }
.platform-workspace .button--dark:hover, .platform-workspace .button--primary:hover { background: #762047; }
.platform-workspace .next-step, .platform-workspace .setup-progress { background: #f7eff3; color: #34232d; border: 1px solid #ead8e1; }
.platform-workspace .next-step h3 { color: #34232d; }
.platform-workspace .next-step p, .platform-workspace .next-step > small, .platform-workspace .setup-progress small { color: #7b6270; }
.platform-workspace .setup-progress i { background: #e8d8e0; }
.platform-workspace .sidebar-brand .app-brand { font-family: Oswald,sans-serif; }
.platform-workspace .setup-layout--focused { grid-template-columns: minmax(0,900px); justify-content: center; }
.platform-workspace .setup-view .setup-intro { max-width: 900px; margin-inline: auto; }
.platform-workspace .dashboard-grid .panel.next-step { background: #f7eff3; color: #34232d; border-color: #ead8e1; }
.platform-workspace .dashboard-grid .panel.next-step { background: #f7eff3 !important; }

.dashboard-chat { min-width: 0; }
.dashboard-chat .chat-window { height: 540px; max-height: 75vh; min-height: 400px; border: 1px solid #e6dde2; border-radius: 20px; box-shadow: 0 10px 28px #38222f08; }
.dashboard-chat .chat-head { background: #8b2252; }

.workspace.platform-workspace, .workspace.platform-workspace.sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
.platform-workspace > .main-area { width: 100%; margin-left: 0; min-width: 0; }

/* Dim only the dashboard artwork so white cards stay clear and interactive. */
.platform-workspace:has(.dashboard-view) { position: relative; isolation: isolate; }
.platform-workspace:has(.dashboard-view)::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("login-background.png") center top / cover no-repeat; opacity: .14; }
.platform-workspace:has(.dashboard-view)::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: rgba(0, 0, 0, .1); }
.platform-workspace:has(.dashboard-view) .softora-header { background: transparent; }
@media (max-width: 760px) {
  .platform-workspace:has(.dashboard-view)::before { background-size: 100% auto; background-repeat: repeat-y; }
}

.embed-section { margin-top: 24px; padding: 28px; border-radius: 16px; }
.embed-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.embed-heading small { color: #8b2252; font-size: 10px; letter-spacing: 1.5px; }
.embed-heading h3 { margin: 8px 0; font-size: 23px; }
.embed-section p { color: #77717a; font-size: 13px; line-height: 1.7; }
.embed-code { padding: 20px; border: 1px solid #e5d9df; border-radius: 10px; background: #faf7f9; color: #60213e; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 monospace; }
.embed-code-preview { min-width: 0; margin: 20px 0 0; overflow: hidden; border: 1px solid #e5d9df; border-radius: 12px; background: #faf7f9; }
.embed-code-preview figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e9e0e5; background: #fff; color: #817680; font: 500 11px/1.5 Inter,sans-serif; }
.embed-code-preview figcaption > span > span { margin-inline: 5px; color: #bca9b3; }
.embed-code-preview .button { min-height: 36px; padding: 8px 14px; border-radius: 8px; font: 600 11px/1.5 Inter,sans-serif; letter-spacing: 0; white-space: nowrap; }
.embed-code-preview .embed-code { margin: 0; padding: 22px; border: 0; border-radius: 0; }
.embed-code-preview .embed-code:focus-visible { outline: 2px solid #8b2252; outline-offset: -3px; }
.embed-section .embed-code-hint { margin: 10px 0 0; font-size: 11px; }
.embed-instructions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.embed-local { border-top: 1px solid #eee7eb; padding-top: 14px; }
@media(max-width: 600px) { .embed-heading { align-items: flex-start; flex-direction: column; } .embed-instructions { grid-template-columns: 1fr; gap: 0; } }

.advanced-website-option { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font: 500 13px/1.5 Inter,sans-serif; color: #343039; cursor: pointer; }
.advanced-website-option input { flex: 0 0 17px; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #8b2252; }
.embed-section .advanced-website-hint { max-width: 640px; margin: 6px 0 0 27px; color: #80767d; font: 400 11px/1.7 Inter,sans-serif; }

.company-knowledge { margin-top: 24px; padding: 28px; border-radius: 16px; }
.knowledge-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.knowledge-heading small { color: #8b2252; font-size: 10px; letter-spacing: 1.5px; }
.knowledge-heading h3 { margin: 8px 0; font-size: 23px; }
.knowledge-heading p, .knowledge-count, .knowledge-upload-status { font-size: 12px; color: #77717a; line-height: 1.7; }
.pdf-upload-area { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px; margin-top: 18px; border: 1px dashed #cfb9c5; border-radius: 12px; background: #fcf9fb; cursor: pointer; }
.pdf-upload-area strong { font-size: 13px; color: #8b2252; }
.pdf-upload-area > span:last-of-type { font-size: 11px; color: #83747d; }
.pdf-upload-icon { display: grid; place-items: center; width: 32px; height: 32px; background: #8b225210; border-radius: 9px; color: #8b2252; }
.pdf-upload-area input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pdf-upload-area:focus-within { outline: 2px solid #8b2252; outline-offset: 3px; }
.company-document-list article { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eee7eb; }
.company-document-list strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.company-document-list small { font-size: 11px; color: #77717a; }
.company-document-list button { border: 0; background: none; color: #8b2252; font-size: 12px; cursor: pointer; }

/* Main chatbot instructions in the overview card. */
.bot-instructions { margin-top: 28px; }
.bot-instructions label { display: block; font: 600 16px Inter, sans-serif; color: #202027; }
.bot-instructions p { margin: 8px 0 14px; color: #777782; font-size: 13px; line-height: 1.6; }
.bot-instructions textarea { display: block; box-sizing: border-box; width: 100%; min-height: 180px; padding: 16px; border: 1px solid #e5e1e5; border-radius: 12px; background: #fcfafb; color: #202027; font: 400 14px/1.7 Inter, sans-serif; resize: none; }
.bot-instructions textarea:focus { outline: 2px solid #8b225230; border-color: #8b2252; }
.bot-instructions textarea::placeholder { color: #97939a; }
.bot-instructions small { display: block; margin-top: 10px; color: #89838a; font-size: 11px; }

/* One /toekomst header for onboarding, management and sign-in. */
.platform-workspace .softora-header, .first-run .softora-header, .login-screen .softora-header { display: block; height: 58px; min-height: 58px; flex-shrink: 0; padding: 0; border: 0; background: var(--softora-page-background); color: #201b21; backdrop-filter: none; }
.workspace-header-inner { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 1440px; height: 100%; margin-inline: auto; padding: 0 clamp(25px, 3vw, 48px); }
.softora-header .workspace-header-logo { position: relative; flex-shrink: 0; color: #161316; text-decoration: none; font: 700 26px Oswald, sans-serif; letter-spacing: -1px; }
.softora-header .workspace-header-logo::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 38px; height: 2px; background: #8b2252; }
.softora-header .topbar-right { display: flex; align-items: center; min-width: 0; gap: 10px; }
.profile-symbol { display: grid; place-items: center; flex-shrink: 0; width: 25px; height: 25px; overflow: hidden; border-radius: 50%; background: #ffffff15; font-weight: 600; }
.softora-header .profile-trigger { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 10px; height: 42px; padding: 5px 12px 5px 5px; border: 1px solid #e6dce1; border-radius: 12px; background: #ffffffed; color: #493440; font: 600 12px/1.4 Inter,sans-serif; box-shadow: 0 3px 12px #57243e08; transition: background .15s, border-color .15s, box-shadow .15s; }
.softora-header .profile-trigger:hover { background: #fff; border-color: #cda9ba; box-shadow: 0 5px 16px #57243e12; }
.profile-trigger .profile-symbol { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(145deg, #9b2d60, #792047); color: #fff; box-shadow: inset 0 1px 0 #ffffff1a, 0 2px 5px #8b225219; }
.profile-symbol svg { width: 17px; height: 17px; }
.profile-chevron { width: 14px; height: 14px; margin-left: 2px; color: #a68d9a; }
.softora-header :is(a, button):focus-visible { outline: 3px solid #b85b86; outline-offset: 4px; }
.softora-header .first-run-progress { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0; }
.softora-header .first-run-progress span { white-space: nowrap; }
.softora-header .first-run-progress i { flex-shrink: 0; width: 116px; }
@media (max-width: 760px) {
  .platform-workspace .softora-header, .first-run .softora-header, .login-screen .softora-header { height: 82px; min-height: 82px; }
  .workspace-header-inner { padding-inline: 20px; }
  .softora-header .workspace-header-logo { font-size: 27px; }
  .softora-header .workspace-header-logo::after { width: 45px; }
  .softora-header .topbar-right { gap: 8px; }
  .softora-header .first-run-progress { flex-direction: column; align-items: flex-end; gap: 7px; }
  .softora-header .first-run-progress i { width: 96px; }
  .softora-header .profile-trigger { height: 44px; padding-inline: 6px 12px; }
}
@media (max-width: 380px) {
  .workspace-header-inner { padding-inline: 14px; }
  .softora-header .workspace-header-logo { font-size: 24px; }
  .softora-header .first-run-progress small { font-size: 10px; }
  .softora-header .first-run-progress i { width: 84px; }
}

.profile-trigger { border: 0; cursor: pointer; padding: 0; overflow: hidden; }
.profile-trigger img { width: 100%; height: 100%; object-fit: cover; }
.profile-dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow-y: auto; box-sizing: border-box; padding: 24px; border: 1px solid #e8e5e8; border-radius: 16px; background: #fff; color: #202027; box-shadow: 0 16px 60px #2117211f; font-family: Inter, sans-serif; }
.profile-dialog::backdrop { background: #21172138; backdrop-filter: blur(3px); }
.profile-heading,.profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-heading h2 { margin: 0; font: 600 20px/1.4 Inter,sans-serif; letter-spacing: -.4px; }
.profile-heading button { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 7px; background: transparent; color: #837b82; font-size: 20px; cursor: pointer; }
.profile-heading button:hover { background: #f5f3f5; color: #30252d; }
.profile-heading button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.profile-photo-row { display: flex; align-items: center; gap: 13px; margin: 22px 0; }
.profile-photo-preview { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; overflow: hidden; border: 1px solid #e8e3e7; border-radius: 50%; background: #f6f3f5; color: #8b2252; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.profile-photo-row > div { min-width: 0; }
.profile-photo-picker { display: inline-block; border-radius: 3px; color: #8b2252; font: 600 12px/1.6 Inter,sans-serif; cursor: pointer; }
.profile-photo-picker:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile-photo-row small { display: block; margin-top: 3px; font-size: 10px; }
.profile-file-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.profile-file-input:focus-visible + .profile-photo-picker { outline: 2px solid #8b2252; outline-offset: 4px; }
.profile-fields { display: grid; gap: 15px; }
.profile-dialog .field { margin: 0; gap: 6px; }
.profile-dialog .field label { color: #5f5660; font: 500 12px/1.5 Inter,sans-serif; }
.profile-dialog .field input { box-sizing: border-box; min-width: 0; min-height: 40px; padding: 10px 12px; border: 1px solid #e1dce2; border-radius: 8px; background: #fff; color: #29242c; font: 400 13px/1.4 Inter,sans-serif; }
.profile-dialog .field input::placeholder { color: #a29aa2; }
.profile-dialog .field input:focus { border-color: #b08a9e; box-shadow: 0 0 0 2px #8b22520a; }
.profile-dialog .field input:disabled { background: #f8f7f8; color: #918891; }
.profile-dialog small,.profile-notice { font-size: 11px; line-height: 1.6; color: #8b818a; }
.profile-notice { margin: 14px 0 0; }
.profile-notice:empty { display: none; }
.profile-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eeeaee; }
.profile-actions [data-signout] { padding: 8px 0; border: 0; background: none; color: #817681; cursor: pointer; font: 500 12px Inter,sans-serif; }
.profile-actions [data-signout]:hover { color: #8b2252; }
.profile-dialog .button { width: auto; min-width: 100px; min-height: 40px; margin: 0; padding: 10px 18px; background: #8b2252; color: #fff; border-radius: 8px; font: 500 12px/1.4 Inter,sans-serif; letter-spacing: 0; }
.profile-dialog .button:hover { background: #762047; }
.profile-website { display: grid; gap: 12px; margin-top: 22px; padding: 14px; border: 1px solid #eae3e7; border-radius: 12px; background: #faf8f9; }
.profile-website-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-website h3 { margin: 0; color: #756571; font: 500 11px/1.5 Inter,sans-serif; }
.profile-website-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.profile-website-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-website-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid #e9dce3; border-radius: 9px; background: #fff; color: #8b2252; }
.profile-website-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.profile-website-status { display: inline-flex; align-items: center; flex-shrink: 0; gap: 5px; padding: 3px 7px; border-radius: 5px; background: #efebee; color: #71656e; font: 500 10px/1.5 Inter,sans-serif; }
.profile-website-status i { flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.profile-website-status.is-connected { background: #e8f2ec; color: #34704f; }
.profile-website-status.is-pending { background: #f0e6ec; color: #8b2252; }
.profile-website-domain { min-width: 0; margin: 0; color: #332630; font: 600 13px/1.5 Inter,sans-serif; overflow-wrap: anywhere; }
.profile-website .website-connect-trigger { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 6px; min-height: 34px; padding: 6px 9px; border: 1px solid #e4d5dd; border-radius: 7px; background: #fff; color: #8b2252; font: 600 11px/1.5 Inter,sans-serif; cursor: pointer; transition: background .15s, border-color .15s; }
.profile-website .website-connect-trigger svg { flex-shrink: 0; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-website .website-connect-trigger:hover { border-color: #cda9ba; background: #f6edf2; color: #762047; }
.profile-security { margin-top: 16px; }
.profile-security summary { display: flex; align-items: center; justify-content: space-between; min-height: 30px; color: #6f636d; font: 500 12px/1.5 Inter,sans-serif; list-style: none; cursor: pointer; }
.profile-security summary::-webkit-details-marker { display: none; }
.profile-security summary svg { width: 13px; height: 13px; fill: none; stroke: #9b8e98; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.profile-security[open] summary svg { transform: rotate(180deg); }
.profile-security .field { margin: 12px 0 7px; }
.profile-dialog :is(button, summary):focus-visible { outline: 2px solid #b38a9e; outline-offset: 2px; }
@media(max-width:480px) { .profile-dialog { padding: 22px; } }
@media(max-width:380px) {
  .profile-website-row { grid-template-columns: minmax(0, 1fr); }
  .profile-website .website-connect-trigger { justify-content: space-between; min-height: 36px; padding-inline: 11px; }
}

@media (min-width: 981px) {
  .dashboard-grid { align-items: stretch; }
  .dashboard-chat { display: flex; min-height: 0; }
  .dashboard-chat .chat-window { flex: 1; height: auto; max-height: none; min-height: 400px; }
  .dashboard-chat .chat-messages { flex-basis: 0; min-height: 0; }
}

/* Keep messages compact inside the full-height chat panel. */
.dashboard-chat .chat-messages { align-content: start; grid-auto-rows: max-content; }
.dashboard-chat .bubble { align-self: start; }

.website-connect-description { margin: 18px 0; color: #77717a; font: 13px/1.6 Inter,sans-serif; }
.profile-dialog:not(:has(.profile-form)) .button { margin-top: 18px; }

.dashboard-hero > div { width: 100%; min-width: 0; container-type: inline-size; }
.dashboard-hero h2 { max-width: none; white-space: nowrap; font-size: clamp(16px, 3.2cqw, 40px); letter-spacing: -.035em; }
.dashboard-hero-accent { color: var(--brand-accent); }

/* Main instructions beside a separate test area. */
.dashboard-workbench { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.dashboard-workbench .bot-overview { display: flex; flex-direction: column; padding: 28px; border-radius: 20px; border-color: #e7e1e5; box-shadow: 0 4px 20px #25151d03; }
.dashboard-workbench .bot-instructions { display: flex; flex-direction: column; flex: 1; margin-top: 0; }
.workbench-section-heading { display: flex; gap: 11px; align-items: flex-start; }
.workbench-section-heading label, .workbench-section-heading h3 { margin: 1px 0 0; color: #30252d; font: 600 16px/1.5 Inter,sans-serif; }
.workbench-section-heading p { margin: 5px 0 16px; color: #817680; font: 12px/1.65 Inter,sans-serif; }
.dashboard-workbench .bot-instructions textarea { flex: 1; min-height: 170px; padding: 16px 18px; background: #fff; border-color: #ded5dc; border-radius: 12px; font-size: 11px; line-height: 1.7; box-shadow: inset 0 2px 4px #25151d02; }
.dashboard-workbench .bot-instructions textarea::placeholder { color: #9a8f98; }
.instructions-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: #857983; font: 10px/1.5 Inter,sans-serif; }
.instructions-footer small { margin: 0; font: inherit; color: #857983; }
.dashboard-workbench .dashboard-chat { display: flex; flex-direction: column; min-width: 0; padding: 0; background: transparent; border: 0; }
.dashboard-workbench .dashboard-chat .chat-window { flex: 1; width: 100%; min-height: 440px; height: auto; max-height: none; border-radius: 20px; box-shadow: 0 8px 20px #35212b07; }
.dashboard-workbench .dashboard-chat .chat-window { border-color: #e5dce1; box-shadow: 0 12px 36px #4523370b; }
.dashboard-workbench .dashboard-chat .chat-head { min-height: 82px; flex-shrink: 0; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #eee7eb; background: #fff; color: #33262f; }
.dashboard-chat .chat-bot-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; background: #f5eaf0; color: #8b2252; box-shadow: inset 0 0 0 1px #8b22520a; }
.chat-bot-icon .chat-mascot { display: block; width: 100%; height: 100%; }
.dashboard-chat .chat-head > span:nth-child(2) { flex: 1; min-width: 0; }
.dashboard-chat .chat-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; letter-spacing: -.2px; }
.platform-workspace .dashboard-chat .chat-head small { margin-top: 5px; color: #8a7c85; font-size: 11px; }
.chat-input button svg { display: block; width: 18px; height: 18px; margin: auto; }
.dashboard-workbench .dashboard-chat .chat-messages { min-height: 180px; padding: 22px 20px; gap: 14px; background: linear-gradient(180deg, #fcfafb, #fff 70%); }
.dashboard-chat .bubble { max-width: 88%; padding: 12px 15px; border-radius: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.dashboard-chat .bubble--bot { border: 1px solid #eae3e7; border-bottom-left-radius: 5px; background: #fff; color: #40343c; box-shadow: 0 2px 5px #45233704; }
.dashboard-chat .bubble--user { border: 1px solid #8b2252; border-bottom-right-radius: 5px; background: #8b2252; color: #fff; box-shadow: 0 3px 8px #8b225212; }
.dashboard-chat .bubble--error { border-color: #e9c299; background: #fff2e2; color: #733609; }
.dashboard-chat .chat-input { flex-shrink: 0; gap: 8px; margin: 0 16px 10px; padding: 6px; border: 1px solid #e3d8df; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px #45233705; transition: border-color .15s, box-shadow .15s; }
.dashboard-chat .chat-input:focus-within { border-color: #b77b98; box-shadow: 0 0 0 3px #8b22520a; }
.dashboard-chat .chat-input input { min-width: 0; min-height: 38px; padding: 8px 9px; border: 0; border-radius: 8px; background: transparent; color: #40343c; }
.dashboard-chat .chat-input input:focus { outline: none; box-shadow: none; }
.dashboard-chat .chat-input input::placeholder { color: #a0919a; }
.dashboard-chat .chat-input button { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: #8b2252; color: #fff; cursor: pointer; box-shadow: 0 3px 7px #8b22521a; }
.dashboard-chat .chat-input button:hover { background: #742047; }
.dashboard-chat button:focus-visible { outline: 2px solid #8b2252; outline-offset: 3px; }
.dashboard-chat .chat-powered { flex-shrink: 0; padding: 0 16px 14px; color: #a4969f; font-size: 9px; }
.dashboard-chat .chat-powered a { color: #8b6478; font-weight: 600; }
@media(max-width:1100px) { .dashboard-workbench { gap: 18px; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); } .dashboard-workbench .bot-overview { padding: 22px; } }
@media (min-width: 981px) {
  .dashboard-workbench { padding-top: 25px; row-gap: 26px; container-type: inline-size; }
  .dashboard-workbench .dashboard-hero { grid-column: 1; grid-row: 1; min-width: 0; padding: 0; }
  .dashboard-workbench .dashboard-hero > div { container-type: normal; }
  .dashboard-workbench .dashboard-hero h2 { margin-top: 0; }
  .dashboard-workbench .bot-overview { grid-column: 1; grid-row: 2; min-height: 440px; }
  .dashboard-workbench .dashboard-chat { grid-column: 2; grid-row: 1 / span 2; }
}
@media(max-width:980px) { .dashboard-workbench { grid-template-columns: minmax(0,1fr); } .dashboard-workbench .dashboard-hero { padding-bottom: 8px; } .dashboard-workbench .dashboard-chat .chat-window { height: 420px; min-height: 420px; flex: none; } }
@media(max-width:480px) { .dashboard-workbench .bot-overview { padding: 18px; } }

/* A compact website field with quiet actions and an inline import result. */
.website-start.website-start--compact { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 18px; border: 1px solid #e9e3e7; border-radius: 12px; background: #fbfafb; box-shadow: none; }
.website-start-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.website-start--compact .website-start-icon { grid-row: auto; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: #f1e7ed; color: #8b2252; }
.website-start--compact .website-start-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.website-start-heading label { color: #3c3038; font: 600 12px/1.5 Inter,sans-serif; }
.website-ready-badge { margin-left: auto; padding: 3px 8px; border-radius: 99px; background: #eef5f0; color: #537663; font: 500 10px/1.5 Inter,sans-serif; }
.website-start--compact .website-start-input { grid-column: 1; display: flex; align-items: center; gap: 5px; min-width: 0; margin: 0; padding: 4px; border: 1px solid #ded7dc; border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.website-start--compact .website-start-input:focus-within { border-color: #b77798; box-shadow: 0 0 0 3px #8b22520a; }
.website-start--compact .website-start-input input { flex: 1; width: 100%; min-width: 0; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #393039; font: 400 12px/1.5 Inter,sans-serif; box-shadow: none; }
.website-start--compact .website-start-input input:focus { outline: 0; box-shadow: none; }
.website-start--compact .website-start-input input::placeholder { color: #9a9097; }
.website-start--compact .website-start-input button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 6px; background: #8b2252; color: #fff; font: 500 11px/1.5 Inter,sans-serif; letter-spacing: 0; white-space: nowrap; }
.website-start--compact .website-start-input button:hover { background: #752047; }
.website-start--compact .website-start-input button.is-secondary { background: #f3edf0; color: #87516c; }
.website-start--compact .website-start-input button.is-secondary:hover { background: #eadce3; color: #8b2252; }
.website-start--compact .website-start-input button svg { width: 14px; height: 14px; }
.website-start-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; min-height: 26px; }
.website-start--compact .website-found-count, .website-start-hint { margin: 0; color: #77717a; font: 400 11px/1.5 Inter,sans-serif; }
.website-start--compact .website-found-count { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.website-success-check { color: #527a64; font-weight: 600; }
.website-next-hint { color: #9b9098; }
.website-start--compact .website-clear { position: static; display: inline-flex; align-items: center; width: auto; height: 26px; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; color: #94818c; font: 400 11px/1.5 Inter,sans-serif; }
.website-start--compact .website-clear:hover { background: transparent; color: #8b2252; text-decoration: underline; text-underline-offset: 3px; }
.website-start--compact button:disabled { opacity: .55; cursor: wait; }
.website-start--compact .crawl-progress { margin: 0; font: 400 11px/1.5 Inter,sans-serif; }
.website-start--compact .crawl-progress i { width: 12px; height: 12px; }
.website-start--compact .source-notice { margin: 0; font-size: 11px; }
.website-start--compact .source-notice:empty { display: none; }
@media(max-width:520px) { .website-start.website-start--compact { padding: 14px; gap: 10px; } .website-next-hint { display: none; } }
@media(max-width:420px) { .website-start--compact .website-start-input button.is-secondary { width: 36px; padding: 8px; } .website-start--compact .is-secondary .website-action-label { display: none; } }

/* Keep every secondary screen connected to the current chatbot dashboard. */
.workspace-return { max-width: 1160px; margin: 0 auto 20px; }
.workspace-return button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px; border: 0; border-radius: 6px; background: transparent; color: #8b2252; font: 500 13px/1.5 Inter,sans-serif; cursor: pointer; }
.workspace-return button:hover { color: #64183b; text-decoration: underline; text-underline-offset: 4px; }
.workspace-return button:focus-visible { outline: 2px solid #8b2252; outline-offset: 3px; }
.platform-workspace .conversations-view { max-width: 1160px; margin-inline: auto; }
.platform-workspace .conversations-view .welcome { margin-bottom: 24px; }
.platform-workspace .conversations-view .welcome h2 { margin: 9px 0 12px; font: 700 30px/1.2 Oswald,sans-serif; letter-spacing: -.5px; text-transform: none; }
.platform-workspace .conversations-view .welcome p { font-size: 13px; line-height: 1.7; }
.platform-workspace .conversations-view .empty-state { padding: 40px 24px; border: 1px solid #e6dde2; border-radius: 20px; }
.platform-workspace .conversations-view .empty-state h3 { font-size: 18px; }
.platform-workspace .conversations-view .empty-state p { font-size: 13px; line-height: 1.7; }
@media(max-width:600px) { .platform-workspace .conversations-view .welcome h2 { font-size: 27px; } .platform-workspace .conversations-view .empty-state { padding: 32px 20px; } }
.profile-edit-details { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: 14px; padding: 13px 14px; border: 1px solid #e8e0e5; border-radius: 10px; background: #fff; color: #8b2252; text-align: left; font: 600 12px/1.5 Inter,sans-serif; cursor: pointer; }
.profile-edit-details:hover { background: #faf6f8; border-color: #cda9ba; }
.profile-edit-details small { display: block; margin-top: 2px; color: #8b818a; font-weight: 400; }
.details-dialog { width: min(740px, calc(100vw - 32px)); padding: 0; }
.details-form { display: flex; flex-direction: column; max-height: calc(100svh - 34px); }
.details-header { flex-shrink: 0; padding: 24px 26px 18px; border-bottom: 1px solid #eee8ec; }
.details-header p { margin: 7px 0 0; color: #827581; font: 400 12px/1.7 Inter,sans-serif; }
.details-controls { min-width: 0; margin: 0; padding: 0; border: 0; overflow-y: auto; }
.details-sections { padding: 18px 26px; }
.details-section { margin-bottom: 10px; border: 1px solid #e9e2e7; border-radius: 10px; }
.details-section:last-child { margin-bottom: 0; }
.details-section summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 10px; background: #faf8f9; list-style: none; cursor: pointer; }
.details-section summary::-webkit-details-marker { display: none; }
.details-section summary strong { display: block; color: #3a2d37; font: 600 13px/1.5 Inter,sans-serif; }
.details-section summary small { display: block; margin-top: 2px; color: #91838e; font: 400 11px/1.5 Inter,sans-serif; }
.details-chevron { color: #a18b98; }
.details-section[open] .details-chevron { transform: rotate(180deg); }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px 16px; }
.details-field-wide { grid-column: 1 / -1; }
.details-dialog .field :is(input, textarea, select) { box-sizing: border-box; width: 100%; min-height: 40px; margin: 0; padding: 10px 12px; border: 1px solid #e1dce2; border-radius: 8px; background: #fff; color: #29242c; font: 400 13px/1.5 Inter,sans-serif; }
.details-dialog .field textarea { min-height: 90px; resize: vertical; }
.details-dialog .field input[type=color] { padding: 5px; }
.details-dialog .field :is(input, textarea, select):focus { outline: none; border-color: #b08a9e; box-shadow: 0 0 0 2px #8b22520a; }
.details-role-field { margin: 0; padding: 0; border: 0; }
.details-role-field legend { margin-bottom: 8px; color: #5f5660; font: 500 12px/1.5 Inter,sans-serif; }
.details-role-field label { display: inline-flex; align-items: center; gap: 7px; margin: 0 16px 8px 0; color: #5f5660; font: 400 12px/1.5 Inter,sans-serif; }
.details-check label { display: flex; align-items: center; gap: 8px; color: #5f5660; font: 400 12px/1.5 Inter,sans-serif; }
.details-dialog input[type=checkbox] { width: 15px; height: 15px; margin: 0; accent-color: #8b2252; }
.details-footer { flex-shrink: 0; padding: 15px 26px 20px; border-top: 1px solid #eee8ec; background: #fff; }
.details-notice { margin: 0 0 12px; color: #8b2252; font: 400 12px/1.6 Inter,sans-serif; }
.details-footer > div { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.details-dialog .details-footer .button { margin: 0; }
.details-cancel { padding: 10px; border: 0; border-radius: 6px; background: transparent; color: #7c6c77; font: 500 12px/1.5 Inter,sans-serif; cursor: pointer; }
.details-dialog :is(button, input, textarea, select):disabled { opacity: .6; cursor: wait; }
@media(max-width:480px) {
  .details-header { padding: 18px 18px 14px; }
  .details-header h2 { font-size: 17px; }
  .details-sections { padding: 14px; }
  .details-grid { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .details-footer { padding: 14px 18px 18px; }
  .details-footer > div { justify-content: space-between; gap: 8px; }
}

/* Login: show the chat artwork behind the card again. */
.login-screen--calm { background: linear-gradient(rgba(248,247,245,.38), rgba(248,247,245,.38)), url("login-background.png") center / cover no-repeat, var(--softora-page-background); }
.login-screen--calm .softora-header { background: transparent; }

/* Contact menu: same button and dropdown as the /toekomst header. */
.softora-header .contact-menu { position: relative; z-index: 10; }
.softora-header .contact-menu summary { list-style: none; cursor: pointer; user-select: none; }
.softora-header .contact-menu summary::-webkit-details-marker { display: none; }
.softora-header .contact-menu summary:focus-visible { outline: 3px solid #b85b86; outline-offset: 4px; }
.softora-header .contact-menu .contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 116px; min-height: 39px; padding: 6px 8px 6px 18px; border: 1px solid #792046; border-radius: 99px; background: #8b2252; color: #fff; font: 500 11px Inter, sans-serif; letter-spacing: .1px; box-shadow: inset 0 1px 0 #ffffff18, 0 4px 12px #68203e12; transition: background .2s, box-shadow .2s; }
.softora-header .contact-menu .contact:hover, .softora-header .contact-menu[open] .contact { background: #752047; box-shadow: inset 0 1px 0 #ffffff18, 0 5px 16px #68203e22; }
.softora-header .contact-chevron { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #ffffff15; color: #fff; }
.softora-header .contact-chevron svg { width: 13px; height: 13px; transition: transform .2s; }
.softora-header .contact-menu[open] .contact-chevron svg { transform: rotate(180deg); }
.softora-header .contact-options { position: absolute; top: calc(100% + 13px); right: 0; width: 278px; max-width: calc(100vw - 40px); padding: 6px; border: 1px solid #e9dfe3; border-radius: 15px; background: #fffdfb; box-shadow: 0 12px 32px -12px #3b172825; transform-origin: right top; font-family: Inter, sans-serif; }
.softora-header .contact-menu[open] .contact-options { animation: contact-reveal .18s ease-out; }
.softora-header .contact-menu-label { padding: 10px 10px 7px; color: #9b7b8c; font-size: 8px; font-weight: 600; letter-spacing: 1.5px; }
.softora-header .contact-option { display: flex; align-items: center; gap: 10px; min-height: 61px; padding: 10px 9px; border: 1px solid transparent; border-radius: 13px; color: inherit; text-decoration: none; transition: background .2s, border-color .2s; }
.softora-header .contact-option + .contact-option { margin-top: 3px; }
.softora-header .contact-option:hover { background: #faf3f6; border-color: #f0e6eb; }
.softora-header .contact-option-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; overflow: hidden; border-radius: 7px; }
.softora-header .contact-option-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.softora-header .contact-option-copy { display: flex; flex-direction: column; gap: 4px; }
.softora-header .contact-option-copy strong { color: #30202b; font-size: 12px; font-weight: 600; letter-spacing: -.2px; }
.softora-header .contact-option-copy > span { color: #93818b; font-size: 10px; line-height: 1.4; }
.softora-header .contact-option-arrow { display: flex; flex-shrink: 0; margin-left: auto; color: #8b2252; }
.softora-header .contact-option-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.softora-header .contact-option:hover .contact-option-arrow svg { transform: translate(2px, -2px); }
@keyframes contact-reveal { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .softora-header .contact-menu .contact { min-width: 110px; min-height: 44px; padding-left: 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .softora-header .contact-menu[open] .contact-options { animation: none; } }
