.bs-thinking {
    --bs-accent: #ffa12e;
    --bs-text: #202225;
    --bs-muted: #6f747b;
    --bs-line: #e4e5e7;
    --bs-soft: #f7f7f7;
    --bs-white: #ffffff;
    --bs-dark: #1f2227;
    --bs-black: #111317;
    --bs-black-soft: #191c22;
    color: var(--bs-text);
    background: var(--bs-white);
    font-weight: 300;
}

.bs-thinking *,
.bs-thinking *::before,
.bs-thinking *::after { box-sizing: border-box; }

.bs-thinking__inner {
    margin-inline: auto;
    /*padding-block: clamp(58px, 7vw, 96px);*/
}

.bs-thinking__header { margin: 0 auto 30px; text-align: center; }

.bs-thinking__eyebrow,
.bs-thinking__process-eyebrow {
    margin: 0 0 8px;
    color: var(--bs-accent);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.bs-thinking h2,
.bs-thinking h3,
.bs-thinking h4 { margin: 0; font-weight: 600; text-wrap: balance; }
.bs-thinking h2,
.bs-thinking h3 { text-transform: uppercase; }
.bs-thinking h2 { font-size: clamp(1.55rem, 3.1vw, 2.45rem); line-height: 1.12; }
.bs-thinking h3 { font-size: clamp(1.18rem, 1.8vw, 1.55rem); line-height: 1.2; }
.bs-thinking h4 { font-size: clamp(1rem, 1.4vw, 1.13rem); line-height: 1.3; }

.bs-thinking__intro {
    text-align: center;
}

.bs-thinking__task-description,
.bs-thinking__output-summary,
.bs-thinking__result-note {
    hyphens: auto;
    text-align: justify;
}

.bs-thinking__intro {
  
    margin: 16px auto 0;
    color: var(--bs-muted);
    font-size: 1.01rem;
    line-height: 1.66;
    text-align: center;
}

.bs-thinking__layout {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.88fr);
    gap: 28px;
    align-items: start;
    border: 1px solid #e4e5e7;
    background: #fff;
    padding: clamp(18px, 2.5vw, 32px);
}

.bs-thinking__tasks { display: grid; gap: 8px; }

.bs-thinking__task {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 15px 44px 15px 18px;
    border: 1px solid var(--bs-line);
    background: var(--bs-white);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        opacity 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease;
}



.bs-thinking__task:hover {
    border-color: var(--bs-accent);
    color: var(--bs-accent);
}

.bs-thinking.is-task-selected .bs-thinking__task:not(.is-active) {
    opacity: .38;
    background: #fafafa;
    border-color: #cfd2d6;
    color: #7b8087;
}

.bs-thinking.is-task-selected .bs-thinking__task:not(.is-active):hover {
    opacity: .82;
    background: #fff;
    border-color: var(--bs-accent);
    color: var(--bs-accent);
}

.bs-thinking.is-task-selected .bs-thinking__task.is-active {
    opacity: 1;
    background: var(--bs-accent);
    border-color: var(--bs-accent);
    color: #fff;
}

.bs-thinking.is-task-selected .bs-thinking__task.is-active { opacity: 1; filter: none; }

.bs-thinking__task-copy { display: block; min-width: 0; }
.bs-thinking__task-copy strong {
    display: block;
    font-size: clamp(1rem, 1.1vw, 1.13rem);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .015em;
    text-transform: uppercase;
}
.bs-thinking__task-arrow { position: absolute; right: 16px; color: currentColor; font-size: 1.18rem; }

.bs-thinking__panels { min-width: 0; }

.bs-thinking__chooser {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    min-height: 410px;
    padding: clamp(26px, 5vw, 48px);
    border: 1px dashed rgb(255 161 46 / 70%);
    background: linear-gradient(135deg, rgb(255 161 46 / 9%), transparent 60%);
}
.bs-thinking__chooser[hidden] { display: none; }
.bs-thinking__chooser-arrow { color: var(--bs-accent); font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; animation: bs-thinking-chooser-nudge 1.2s ease-in-out infinite; }
.bs-thinking__chooser span { display: block; margin-bottom: 8px; color: var(--bs-accent); font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.bs-thinking__chooser strong { display: block; max-width: 640px; font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.18; text-transform: uppercase; }
.bs-thinking__chooser p { max-width: 560px; margin: 13px 0 0; color: var(--bs-muted); line-height: 1.58; text-align: justify; hyphens: auto; }

.bs-thinking__panel {
    min-height: 0;
    padding: clamp(18px, 2.7vw, 30px);
    border: 1px solid var(--bs-line);
    background: var(--bs-white);
    box-shadow: 0 18px 55px rgb(20 22 25 / 6%);
}
.bs-thinking__panel[hidden],
.bs-thinking__example[hidden] { display: none; }

.bs-thinking__panel-heading {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bs-line);
}

.bs-thinking__examples { padding-top: 15px; }

.bs-thinking__task-description {
    margin: 0 0 14px;
    color: var(--bs-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.bs-thinking__prompt-card {
    position: relative;
    min-height: 154px;
    padding: 18px 18px 66px;
    border: 1px solid #30343b;
    border-left: 3px solid var(--bs-accent);
    background: var(--bs-black);
    color: #ffffff;
    overflow: hidden;
}
.bs-thinking__prompt-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(255 161 46 / 75%), transparent);
}
.bs-thinking__prompt-topline { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin-bottom: 13px; }
.bs-thinking__prompt-topline span { color: var(--bs-accent); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.bs-thinking__prompt-text { display: inline; margin: 0; color: #ffffff; font-size: .96rem; line-height: 1.58; hyphens: auto; }
.bs-thinking__prompt-cursor,
.bs-thinking__output-cursor {
    display: none;
    width: 8px;
    height: 1.1em;
    margin-left: 3px;
    transform: translateY(2px);
    background: var(--bs-accent);
    animation: bs-thinking-cursor 850ms steps(2, start) infinite;
}
.bs-thinking__example.is-typing .bs-thinking__prompt-cursor,
.bs-thinking__example.is-prompt-ready .bs-thinking__prompt-cursor { display: inline-block; }
.bs-thinking__example.is-output-typing .bs-thinking__output-cursor { display: inline-block; }
.bs-thinking__prompt-action { position: absolute; right: 16px; bottom: 16px; }

.bs-thinking__start-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 164px;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--bs-accent);
    background: var(--bs-accent);
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgb(255 161 46 / 34%);
    animation: bs-thinking-start-pulse 1.15s ease-in-out infinite;
}
.bs-thinking__start-call:hover { background: #fff; color: var(--bs-accent); }
.bs-thinking__start-call:disabled { cursor: wait; opacity: .74; }
.bs-thinking__example.is-sequencing .bs-thinking__start-call,
.bs-thinking__example.is-typing .bs-thinking__start-call,
.bs-thinking__example.is-output-typing .bs-thinking__start-call,
.bs-thinking__example.is-sequence-complete .bs-thinking__start-call { animation: none; }
.bs-thinking__example.is-sequence-complete .bs-thinking__start-call { background: #fff; color: var(--bs-accent); }

.bs-thinking__process {
    margin-top: 10px;
    border: 1px solid var(--bs-line);
    background: #fcfcfc;
}
.bs-thinking__process-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    min-height: 45px;
    padding: 10px 13px;
    background: var(--bs-white);
}
.bs-thinking__process-eyebrow {
    flex: 0 0 auto;
    margin: 0;
    font-size: .66rem;
}
.bs-thinking__process-status {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    color: var(--bs-text);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
}
.bs-thinking__process-status i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #b9bcc0; }
.bs-thinking__process-status[data-state="running"] i,
.bs-thinking__process-status[data-state="output"] i { background: var(--bs-accent); animation: bs-thinking-status-pulse 1.1s ease-in-out infinite; }
.bs-thinking__process-status[data-state="complete"] i { background: var(--bs-dark); }
.bs-thinking__progress { height: 2px; background: var(--bs-line); overflow: hidden; }
.bs-thinking__progress span { display: block; width: 100%; height: 100%; background: var(--bs-accent); transition: width 260ms ease; }
.bs-thinking__steps { display: none; }

.bs-thinking__output {
    position: relative;
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #30343b;
    border-left: 3px solid var(--bs-accent);
    background: var(--bs-black);
    color: #ffffff;
    overflow: hidden;
}
.bs-thinking__output::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(255 161 46 / 65%), transparent);
}
.bs-thinking.is-enhanced .bs-thinking__output {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 220ms ease, transform 220ms ease;
}
.bs-thinking.is-enhanced .bs-thinking__output.is-visible { display: block; opacity: 1; transform: translateY(0); }
.bs-thinking__output-header { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 10px; }
.bs-thinking__message-label { display: block; margin-bottom: 5px; color: var(--bs-accent); font-size: .67rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bs-thinking__output h4 { color: #ffffff; }
.bs-thinking__output-summary { margin: 0; color: rgb(255 255 255 / 86%); font-size: .88rem; line-height: 1.52; }
.bs-thinking.is-enhanced .bs-thinking__output [data-thinking-output-line] {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 160ms ease, transform 160ms ease;
}
.bs-thinking.is-enhanced .bs-thinking__output [data-thinking-output-line].is-visible { opacity: 1; transform: translateY(0); }

.bs-thinking__result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.bs-thinking__result-item {
    display: grid;
    gap: 4px;
    min-height: 80px;
    padding: 11px;
    border: 1px solid rgb(255 255 255 / 12%);
    background: rgb(255 255 255 / 4%);
}
.bs-thinking__result-item span { color: var(--bs-accent); font-size: .63rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bs-thinking__result-item strong { color: #ffffff; font-size: .9rem; font-weight: 600; line-height: 1.28; }
.bs-thinking__result-item small { color: rgb(255 255 255 / 58%); font-size: .69rem; line-height: 1.32; }
.bs-thinking__result-item--warning { border-left: 2px solid var(--bs-accent); }
.bs-thinking__result-item--positive { border-left: 2px solid rgb(255 255 255 / 68%); }
.bs-thinking__result-item--neutral { border-left: 2px solid rgb(255 255 255 / 22%); }
.bs-thinking__result-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: rgb(255 161 46 / 9%);
    color: rgb(255 255 255 / 88%);
    font-size: .82rem;
    line-height: 1.48;
}

.bs-thinking__documents { display: flex; gap: 12px; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bs-line); }
.bs-thinking__documents > span { flex: 0 0 auto; color: var(--bs-muted); font-size: .64rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.bs-thinking__documents ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bs-thinking__documents li { padding: 3px 7px; border: 1px solid var(--bs-line); font-size: .68rem; }

.bs-thinking.is-enhanced .bs-thinking__progress span { width: 0%; }
.bs-thinking.is-enhanced .bs-thinking__example.is-ready-to-start .bs-thinking__prompt-text { color: rgb(255 255 255 / 58%); }

.bs-thinking .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes bs-thinking-start-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgb(255 161 46 / 32%); transform: translateY(0); }
    50% { box-shadow: 0 0 0 8px rgb(255 161 46 / 0%); transform: translateY(-1px); }
}
@keyframes bs-thinking-chooser-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-6px); }
}
@keyframes bs-thinking-chooser-nudge-mobile {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(-6px); }
}
@keyframes bs-thinking-status-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.55); opacity: .55; }
}
@keyframes bs-thinking-cursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (max-width: 900px) {
    .bs-thinking__layout { grid-template-columns: 1fr; }
    .bs-thinking__tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bs-thinking__chooser { grid-template-columns: 1fr; min-height: 260px; }
    .bs-thinking__chooser-arrow { transform: rotate(90deg); animation-name: bs-thinking-chooser-nudge-mobile; }
}

@media (max-width: 640px) {
    .bs-thinking__inner { width: min(100% - 24px, 1200px); padding-block: 48px; }
    .bs-thinking__tasks { grid-template-columns: 1fr; }
    .bs-thinking__prompt-card { min-height: 182px; padding-bottom: 78px; }
    .bs-thinking__prompt-action { left: 16px; right: 16px; }
    .bs-thinking__start-call { width: 100%; }
    .bs-thinking__process-line { align-items: flex-start; flex-direction: column; gap: 7px; }
    .bs-thinking__process-status { justify-content: flex-start; text-align: left; }
    .bs-thinking__result-grid { grid-template-columns: 1fr; }
    .bs-thinking__documents { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    .bs-thinking__start-call,
    .bs-thinking__chooser-arrow,
    .bs-thinking__process-status i,
    .bs-thinking__prompt-cursor,
    .bs-thinking__output-cursor {
        animation: none !important;
    }
}

.cn-ai-thinking-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.cn-ai-thinking-hero__visual {
    margin: 0;
    text-align: right;
}

.cn-ai-thinking-hero__visual img {
    display: block;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    height: auto;
}

@media (max-width: 900px) {
    .cn-ai-thinking-hero {
        grid-template-columns: 1fr;
    }

    .cn-ai-thinking-hero__visual {
        text-align: left;
    }

    .cn-ai-thinking-hero__visual img {
        max-width: 420px;
        margin-left: 0;
    }
}

.cn-ai-thinking-hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    margin-top: 28px;
}

.cn-ai-thinking-hero-intro__text p:last-child {
    margin-bottom: 0;
}

.cn-ai-thinking-hero-intro__visual {
    margin: 0;
}

.cn-ai-thinking-hero-intro__visual img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 850px) {
    .cn-ai-thinking-hero-intro {
        grid-template-columns: 1fr;
    }

    .cn-ai-thinking-hero-intro__visual img {
        width: min(300px, 100%);
        margin-inline: auto;
    }
}

