/* Focused assistant setup. Loaded after the shared dashboard styles. */
body:has(.setup-design-header){background:var(--ss-bg);color:var(--ss-ink)}
body:has(.setup-design-header) .workspace{display:block;max-width:none;margin:0;min-height:calc(100dvh - 76px)}
body:has(.setup-design-header) .portal-main{width:100%;max-width:none;margin:0;padding:0 28px 64px;box-sizing:border-box}
body:has(.setup-design-header) .site-header,body:has(.setup-design-header)>.site-header,body:has(.setup-design-header)>footer,body:has(.setup-design-header) .portal-sidebar{display:none}
.setup-design-header{background:#fff;border-bottom:1px solid var(--ss-line)}
.setup-design-header-inner{max-width:1440px;min-height:76px;margin:auto;display:flex;align-items:center;gap:18px;padding:0 28px}
.setup-wordmark{display:flex;align-items:center;gap:10px;color:var(--ss-ink);text-decoration:none;font-size:24px;font-weight:750;letter-spacing:-.6px}
.setup-soundmark{display:flex;align-items:end;gap:3px;height:24px}.setup-soundmark i{width:3px;height:11px;background:var(--ss-lime-strong);border-radius:3px}.setup-soundmark i:nth-child(2){height:24px}.setup-soundmark i:nth-child(3){height:17px}.setup-soundmark i:nth-child(4){height:8px}
.setup-design-caption{padding-left:18px;border-left:1px solid var(--ss-line);font-size:13px;font-weight:600;color:var(--ss-muted)}
.setup-exit{margin-left:auto;padding:12px 16px;border:1px solid var(--ss-line);border-radius:13px;background:white;color:#596477;text-decoration:none;font-size:13px;font-weight:650}
body:has(.setup-design-header) .flow-selection-back,body:has(.setup-design-header) .flow-draft-identity,.guided-page .flow-header,.guided-page .flow-footer{display:none}
body:has(.setup-design-header) .library-page{max-width:1080px;margin:0 auto;padding:clamp(64px,17vh,200px) 0 40px;background:transparent;border:0}
body:has(.setup-design-header) .library-direction-page{max-width:940px;padding-top:clamp(70px,23vh,250px)}
body:has(.setup-design-header) .assistant-name-page{max-width:620px;padding-top:clamp(70px,25vh,260px)}
.setup-eyebrow{font-size:12px;line-height:1.5;letter-spacing:1.8px;font-weight:700;color:var(--ss-purple)!important;text-transform:uppercase;margin:0 0 12px}
body:has(.setup-design-header) .library-heading{margin:0 0 38px;display:block}
body:has(.setup-design-header) .library-heading h1,.guided-page .guided-setup h1{font-size:40px;line-height:1.15;letter-spacing:-1.7px;color:var(--ss-ink);margin:0 0 16px;font-weight:750}
body:has(.setup-design-header) .library-heading p,.guided-page .guided-help{font-size:16px;line-height:1.65;color:var(--ss-muted);margin:0}
body:has(.setup-design-header) .library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
body:has(.setup-design-header) .library-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;min-height:202px;padding:28px 24px;background:white;border:1px solid var(--ss-line);border-radius:22px;box-shadow:none;text-align:left;box-sizing:border-box;color:var(--ss-ink)}
body:has(.setup-design-header) .library-direction-page .library-card{min-height:266px;padding:36px 30px}
body:has(.setup-design-header) .library-card:after{content:'';position:absolute;right:18px;top:18px;width:24px;height:24px;border:2px solid var(--ss-purple);border-radius:50%;box-sizing:border-box;background:white}
body:has(.setup-design-header) .library-card.is-selected{border-color:var(--ss-purple);box-shadow:0 0 0 2px #7954ff22}
body:has(.setup-design-header) .library-card.is-selected:after{content:'✓';display:grid;place-items:center;background:var(--ss-purple);color:white;font-size:14px}
body:has(.setup-design-header) .library-card:disabled{opacity:.5;cursor:not-allowed}
body:has(.setup-design-header) .library-icon{width:48px;height:48px;border-radius:15px;background:var(--ss-purple-soft);color:var(--ss-purple);display:grid;place-items:center;margin-bottom:22px}
body:has(.setup-design-header) .library-icon svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.7}
body:has(.setup-design-header) .library-card-title,body:has(.setup-design-header) .library-card h2{font-size:20px;color:var(--ss-ink);font-weight:700;margin:0 0 12px;letter-spacing:-.5px}
body:has(.setup-design-header) .library-description{font-size:14px;line-height:1.65;color:#68778d;margin:0}
body:has(.setup-design-header) .direction-action,body:has(.setup-design-header) .library-version,body:has(.setup-design-header) .library-selected-mark,body:has(.setup-design-header) .library-note{display:none}
body:has(.setup-design-header) .library-custom form{margin-top:12px}body:has(.setup-design-header) .library-custom button{background:transparent;border:0;color:var(--ss-purple);padding:0;font-size:13px}
.setup-selection-footer{border-top:1px solid var(--ss-line);padding-top:26px;margin-top:34px;display:flex;justify-content:space-between;align-items:center;gap:20px;background:transparent}
.setup-selection-footer a{color:#687587;font-size:14px;text-decoration:none;font-weight:650}.setup-selection-footer>div{display:flex;align-items:center;gap:20px}
body:has(.setup-design-header) .setup-selection-footer button{padding:16px 20px;border:0;border-radius:13px;background:var(--ss-purple);color:white;font-size:14px;font-weight:650}
body:has(.setup-design-header) button:disabled{background:#e6e8e2!important;border-color:#e6e8e2!important;color:#465874!important;opacity:1;cursor:not-allowed}
body:has(.setup-design-header) .library-adoption{background:white;border:1px solid var(--ss-line);border-radius:18px;padding:26px;max-width:none;margin:0}
.assistant-name-context{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 26px}.assistant-name-context span{background:var(--ss-purple-soft);color:var(--ss-purple-dark);border-radius:30px;padding:9px 12px;font-size:12px;font-weight:650}
body:has(.setup-design-header) .library-adoption label{font-size:13px;color:#596477;display:block;margin-bottom:10px}
body:has(.setup-design-header) input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body:has(.setup-design-header) textarea,body:has(.setup-design-header) select{background:#fafbf8;border:1px solid var(--ss-line);border-radius:13px;padding:16px;font:inherit;color:var(--ss-ink);box-sizing:border-box;max-width:100%}
body:has(.setup-design-header) input:focus-visible,body:has(.setup-design-header) textarea:focus-visible,body:has(.setup-design-header) select:focus-visible{outline:2px solid var(--ss-purple);outline-offset:2px}
.setup-design-steps{display:flex;justify-content:center;background:white;border-bottom:1px solid var(--ss-line);margin:0 -28px 52px;padding:0 max(24px,calc((100% - 1080px)/2))}
.setup-design-steps a{display:flex;justify-content:center;align-items:center;gap:10px;flex:1;padding:18px 12px;border-bottom:2px solid transparent;text-decoration:none;color:#8c91a3;font-size:12px;font-weight:650;white-space:nowrap}
.setup-design-steps span{display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;background:#eee;border-radius:50%}
.setup-design-steps a[aria-current]{border-color:var(--ss-purple);color:var(--ss-ink)}.setup-design-steps a[aria-current] span{background:var(--ss-purple);color:white}.setup-design-steps .is-done{color:#537e12}.setup-design-steps .is-done span{background:#baff44;color:#315400}
.guided-page .guided-layout{max-width:1240px;grid-template-columns:minmax(0,1fr) 340px;gap:34px}
.guided-page .guided-main{background:transparent;border:0;overflow:visible}
.guided-page .guided-main .guided-setup{padding:0;background:transparent;margin-bottom:30px}
.guided-page .guided-setup>header>span{display:none}.guided-page .guided-setup>header{display:block}
.guided-page .guided-main .studio-grid{padding:0}
.guided-page .guided-live-summary{background:white;border:1px solid var(--ss-line);border-radius:18px;padding:24px;top:24px}
.guided-page .guided-summary-heading .setup-eyebrow{font-size:11px;margin:0 0 16px}.guided-page .guided-summary-heading h2{font-size:22px;color:var(--ss-ink)}
.guided-page .guided-active-details section{border:0;padding:20px 0 0}.guided-page .guided-active-details h3{font-size:11px;text-transform:uppercase;color:var(--ss-label);letter-spacing:.3px}.guided-page .guided-active-details p,.guided-page .guided-active-details li{color:#384c69;font-size:13px}
.guided-page .guided-main .studio-conversation{background:white;border:1px solid var(--ss-line);border-radius:18px;padding:20px}
.guided-page .guided-form div[id^=id_] label{background:white;border:1px solid var(--ss-line);border-radius:18px;padding:22px;min-height:78px;color:var(--ss-ink)}
.guided-page .guided-form div[id^=id_] label:has(input:checked){border-color:var(--ss-purple);background:var(--ss-subtle)}
.guided-page input[type=checkbox]{accent-color:var(--ss-purple)}.guided-page .guided-send-external{padding:22px;background:white;border:1px solid var(--ss-line);border-radius:16px}
.guided-page .guided-tool,.guided-page #tool-form{padding:24px;background:white;border:1px solid var(--ss-line);border-radius:18px}
.guided-page .guided-setup button{background:var(--ss-purple);border-color:var(--ss-purple)}.guided-page .guided-setup button.outline{background:var(--ss-surface);border-color:var(--ss-line);color:var(--ss-text)}.guided-page .guided-setup a{color:var(--ss-purple)}
body:has(.setup-design-header) .setup-test-card{background:var(--ss-navy);color:white;border:0;border-radius:20px}body:has(.setup-design-header) #demo-start{background:#baff44;color:var(--ss-navy)}
@media(max-width:950px){.guided-page .guided-layout{grid-template-columns:minmax(0,1fr)}.guided-page .guided-live-summary{position:static}.setup-design-steps{overflow-x:auto;justify-content:start;padding:0 12px}.setup-design-steps a{flex:0 0 auto}.guided-page .guided-setup h1{font-size:34px}}
@media(max-width:600px){.setup-design-header-inner{padding:0 18px;min-height:68px;gap:10px}.setup-wordmark{font-size:20px}.setup-design-caption{display:none}.setup-exit{font-size:12px;padding:10px}body:has(.setup-design-header) .portal-main{padding:0 18px 40px}body:has(.setup-design-header) .library-page{padding-top:52px}body:has(.setup-design-header) .library-grid{grid-template-columns:1fr}body:has(.setup-design-header) .library-card,body:has(.setup-design-header) .library-direction-page .library-card{min-height:200px;padding:24px}body:has(.setup-design-header) .library-heading h1,.guided-page .guided-setup h1{font-size:30px;letter-spacing:-1px}.setup-design-steps{margin:0 -18px 32px}.setup-selection-footer>div{gap:10px}.setup-selection-footer{gap:10px}.guided-page .guided-form div[id^=id_]{grid-template-columns:1fr}}
body:has(.setup-design-header) .library-card-top{margin-bottom:0}body:has(.setup-design-header) .library-custom{cursor:pointer}body:has(.setup-design-header) .library-custom form{margin:0;padding:0}body:has(.setup-design-header) .library-custom button{position:absolute;inset:0;width:100%;height:100%;opacity:0;border-radius:22px}body:has(.setup-design-header) .library-custom:focus-within{outline:2px solid var(--ss-purple);outline-offset:3px}
.guided-page .setup-source-cards label{display:flex;align-items:center;gap:14px;cursor:pointer}.setup-source-icon{width:44px;height:44px;border-radius:13px;background:var(--ss-purple-soft);display:grid;place-items:center;color:var(--ss-purple);flex-shrink:0}.setup-source-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6}.setup-source-copy{flex:1;min-width:0}.setup-source-copy strong{display:block;font-size:14px}.guided-page .setup-source-copy small{display:block;font-size:12px;font-weight:400;color:#778397;margin-top:5px}.guided-page .setup-source-cards input[type=checkbox]{margin:0;flex-shrink:0;width:21px;height:21px}
.guided-page #id_records{display:flex;flex-wrap:wrap}.guided-page #id_records label{border-radius:30px;min-height:0;padding:12px 16px}.guided-page #id_records input{width:16px;height:16px}
/* Keep setup content close to the shared header on every step. */
body:has(.setup-design-header) .library-page,
body:has(.setup-design-header) .library-direction-page,
body:has(.setup-design-header) .assistant-name-page{padding-top:24px!important}
.setup-design-steps{margin-bottom:32px}
@media(max-width:600px){body:has(.setup-design-header) .library-page{padding-top:20px!important}.setup-design-steps{margin-bottom:24px}}

body:has(.setup-design-header) .library-direction-page .library-heading{margin-top:0}

/* The assistant-type chooser has four options; keep these cards compact and
   let their content, rather than a large minimum height, set the layout. */
body:has(.setup-design-header) .library-page:not(.library-direction-page) .library-grid{gap:14px}
body:has(.setup-design-header) .library-page:not(.library-direction-page) .library-choice button.library-select{min-height:176px;padding:20px;border-radius:18px}
body:has(.setup-design-header) .library-page:not(.library-direction-page) .library-card-top{margin-bottom:12px}
body:has(.setup-design-header) .library-page:not(.library-direction-page) .library-icon{width:40px;height:40px;margin-bottom:0}
body:has(.setup-design-header) .library-page:not(.library-direction-page) .library-card-title{font-size:18px;margin-bottom:8px}
body:has(.setup-design-header) .library-page:not(.library-direction-page) .library-description{font-size:13px;line-height:1.55;margin-bottom:0}
@media(max-width:600px){body:has(.setup-design-header) .library-page:not(.library-direction-page) .library-choice button.library-select{min-height:152px;padding:18px}}

/* Guided assistant task chat. Keep its layout rules together and scoped to this step. */
body.guided-page .guided-main .builder-chat{display:flex;flex-direction:column;gap:18px;min-height:0;max-height:360px;margin:0 0 20px;padding:8px 4px 24px;border-bottom:1px solid var(--ss-line);overflow-y:auto}
body.guided-page .guided-main .builder-message.assistant{position:relative;width:92%;max-width:92%;margin:0;padding:0 0 0 60px;box-sizing:border-box;background:none;border:0;border-radius:0;color:var(--ss-ink)}
body.guided-page .guided-main .builder-message.assistant:before{display:grid;place-items:center;left:0;top:0;width:48px;height:48px;border-radius:50%;background:var(--ss-purple-soft);color:var(--ss-purple);font-size:21px}
body.guided-page .guided-main .builder-message.assistant>p{margin:0;padding:14px 18px;background:var(--ss-purple-tint);border:0;border-radius:18px 18px 18px 4px;color:var(--ss-ink);font-size:15px;line-height:1.65;overflow-wrap:anywhere}
body.guided-page .guided-main .builder-message>span{display:none}
body.guided-page .guided-main .builder-composer-box{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label label" "textarea textarea" "dictation send";align-items:end;gap:0 12px;padding:14px 14px 10px;background:#fff;border:1px solid var(--ss-line);border-radius:18px;box-shadow:none;outline:0}
body.guided-page .guided-main .builder-composer-box:focus-within{outline:2px solid var(--ss-purple-border);outline-offset:2px}
body.guided-page .guided-main .builder-composer-box>label{grid-area:label}
body.guided-page .guided-main .builder-composer-box #id_message{grid-area:textarea;width:100%;height:132px;min-height:112px;max-height:220px;margin:0;padding:10px 8px 16px;background:transparent;border:0;border-radius:0;outline:0;box-shadow:none;resize:vertical;box-sizing:border-box;color:var(--ss-ink);font:inherit;line-height:1.6}
body.guided-page .guided-main .builder-composer-box #id_message:focus,body.guided-page .guided-main .builder-composer-box #id_message:focus-visible{outline:0;box-shadow:none}
body.guided-page .guided-main .builder-composer-box .builder-dictation{grid-area:dictation;display:flex;justify-self:start;align-self:end;margin:0}
body.guided-page .guided-main .builder-composer-box .builder-dictation button{display:inline-flex;align-items:center;gap:8px;height:56px;box-sizing:border-box;padding:0 16px;background:#fff;color:#596477;border:1px solid var(--ss-line);border-radius:14px;font-size:15px;font-weight:650}
body.guided-page .guided-main .builder-composer-box .builder-dictation svg{width:20px;height:20px}
body.guided-page .guided-main .builder-composer-box .builder-compose{grid-area:send;display:flex;justify-self:end;align-self:end;justify-content:flex-end;margin:0}
body.guided-page .guided-main .builder-composer-box #builder-send{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:120px;height:56px;padding:0 18px;background:var(--ss-purple);border:0;border-radius:14px;color:#fff}
body.guided-page .guided-main .builder-composer-box #builder-send:before{content:'Gönder';font-size:16px;font-weight:650;margin:0}
body.guided-page .guided-main .builder-composer-box #builder-send svg{width:22px;height:22px}
body.guided-page .guided-main .builder-keyboard-hint{margin:12px 8px 0;color:var(--ss-text);font-size:14px}
@media(max-width:600px){body.guided-page .guided-main .builder-chat .builder-message.assistant{width:100%;max-width:100%;padding:0 0 0 46px}body.guided-page .guided-main .builder-chat .builder-message.assistant:before{width:38px;height:38px;font-size:18px}body.guided-page .guided-main .builder-chat .builder-message.assistant>p{padding:12px;font-size:14px}body.guided-page .guided-main .builder-composer-box{gap:0 8px;padding:10px 8px}body.guided-page .guided-main .builder-composer-box #id_message{height:112px;min-height:96px;max-height:180px}body.guided-page .guided-main .builder-composer-box .builder-dictation button{height:48px;padding:0 10px;font-size:12px}body.guided-page .guided-main .builder-composer-box #builder-send{height:48px;min-width:94px;padding:0 12px}}
/* Step actions live next to the conversation that leads to them. */
body.guided-page .guided-main .builder-chat .builder-chat-action{display:grid;gap:8px;flex-shrink:0;width:auto;margin:0 0 0 60px;padding:16px 18px;box-sizing:border-box;background:var(--ss-surface);border:1px solid var(--ss-purple-border);border-radius:18px;color:var(--ss-ink);text-align:left}
body.guided-page .guided-main .builder-chat .builder-chat-action[hidden]{display:none}
body.guided-page .guided-main .builder-chat-action>strong{font-size:15px}
body.guided-page .guided-main .builder-chat-action p{margin:0;color:var(--ss-muted);font-size:14px;line-height:1.5}
body.guided-page .guided-main .builder-chat-action ul{margin:4px 0;padding-left:18px;font-size:14px}
body.guided-page .guided-main .builder-chat-action-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:6px}
body.guided-page .guided-main .builder-chat-action-buttons button{padding:12px 18px;background:var(--ss-purple);border:1px solid var(--ss-purple);border-radius:var(--ss-radius-control);color:#fff;font-size:14px;font-weight:650}
body.guided-page .guided-main .builder-chat-action-buttons button.outline{background:var(--ss-surface);border-color:var(--ss-line);color:var(--ss-ink)}
body.guided-page .guided-main .builder-chat-action-buttons a{color:var(--ss-text);font-size:13px}
@media(max-width:600px){body.guided-page .guided-main .builder-chat .builder-chat-action{margin-left:0}}
/* Information sources: each option opens its own fields in place. */
.builder-catalog-discard{margin-top:10px}
