/* KnowboundAI functions page - product narrative and interaction layer */
.functions-page {
    --fx-navy: #07101f;
    --fx-navy-soft: #0b1729;
    --fx-panel: #101e33;
    --fx-blue: #4f7cff;
    --fx-cyan: #62d7ff;
    --fx-green: #42d3a2;
    --fx-violet: #9b8cff;
    --fx-orange: #ffb45e;
    --fx-white: #f8fbff;
    --fx-muted: #9aabc1;
}

.functions-main {
    padding-top: 0;
    overflow: clip;
}

.functions-main section,
#steuerung {
    scroll-margin-top: var(--page-anchor-scroll-offset);
}

.functions-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.functions-eyebrow > span {
    position: relative;
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.functions-eyebrow > span::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: currentColor;
    animation: fx-eyebrow-pulse 2.4s ease-in-out infinite;
}

@keyframes fx-eyebrow-pulse {
    50% { opacity: .25; transform: scale(.55); }
}

.functions-section-heading {
    max-width: 900px;
    margin: 0 auto 72px;
    text-align: center;
}

.functions-section-heading h2 {
    margin-bottom: 22px;
    font-size: clamp(2.15rem, 4.4vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.functions-section-heading > p,
.functions-section-heading-split > p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.75;
}

.functions-section-heading-split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr);
    align-items: end;
    gap: 72px;
    text-align: left;
}

.functions-section-heading-split h2 {
    margin: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Hero */
.functions-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 112px 0 42px;
    background:
        radial-gradient(circle at 72% 21%, rgba(79, 124, 255, .22), transparent 32%),
        radial-gradient(circle at 16% 46%, rgba(12, 122, 255, .11), transparent 30%),
        linear-gradient(145deg, #050b15 0%, var(--fx-navy) 47%, #071426 100%);
    color: var(--fx-white);
}

.hero-grid-glow {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .32;
    background-image:
        linear-gradient(rgba(120, 151, 205, .11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 151, 205, .11) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.hero-orb-one {
    top: 60px;
    right: -180px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(98, 215, 255, .16);
    box-shadow: inset 0 0 100px rgba(79, 124, 255, .08), 0 0 130px rgba(79, 124, 255, .06);
    animation: fx-orb-float 10s ease-in-out infinite alternate;
}

.hero-orb-two {
    bottom: 20px;
    left: -190px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(79, 124, 255, .12);
    animation: fx-orb-float 13s ease-in-out -4s infinite alternate-reverse;
}

@keyframes fx-orb-float {
    to { transform: translate3d(22px, -18px, 0) scale(1.06); }
}

.functions-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(580px, 1.1fr);
    align-items: center;
    gap: 70px;
}

.functions-hero-copy {
    position: relative;
    z-index: 3;
    padding-bottom: 15px;
    animation: fx-hero-copy-in .9s .08s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes fx-hero-copy-in {
    from { opacity: 0; transform: translateY(24px); }
}

.hero-eyebrow {
    color: var(--fx-cyan);
}

.functions-hero h1 {
    max-width: 720px;
    margin-bottom: 28px;
    color: var(--fx-white);
    font-size: clamp(3rem, 5.3vw, 5.15rem);
    line-height: 1.06;
    letter-spacing: -.065em;
}

.functions-hero h1 span,
.functions-hero h1 strong {
    display: block;
}

.functions-hero h1 strong {
    margin-top: 8px;
    background: linear-gradient(100deg, #8fb0ff 0%, #66ddff 48%, #a9ecff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}

.functions-hero-copy > p {
    max-width: 670px;
    color: #b8c6d9;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.72;
}

.functions-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 36px;
}

.functions-hero-actions .btn {
    min-height: 52px;
    padding-inline: 23px;
    border-radius: 11px;
}

.functions-hero-actions .btn i,
.pilot-actions .btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    transition: transform .2s ease;
}

.pilot-actions .btn i .material-icons-outlined {
    font-size: 1.15rem;
}

.functions-hero-actions .btn:hover i,
.pilot-actions .btn:hover i {
    transform: translate(2px, -2px);
}

.pilot-actions .pilot-security-link:hover i {
    transform: translateX(3px);
}

.hero-primary {
    background: linear-gradient(135deg, #3568ef, #4f7cff);
    box-shadow: 0 12px 35px rgba(50, 99, 235, .34);
}

.hero-secondary {
    border: 1px solid rgba(178, 199, 229, .27);
    background: rgba(255, 255, 255, .035);
    color: #eaf1fb;
    backdrop-filter: blur(12px);
}

.hero-secondary:hover {
    border-color: rgba(98, 215, 255, .55);
    background: rgba(98, 215, 255, .07);
}

.hero-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px;
}

.hero-assurance span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #899bb3;
    font-size: .75rem;
}

.hero-assurance i {
    color: var(--fx-green);
    font-style: normal;
}

.hero-product-system {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(135, 164, 205, .25);
    border-radius: 20px;
    background: rgba(7, 16, 31, .78);
    box-shadow: 0 40px 110px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .025) inset;
    backdrop-filter: blur(18px);
    animation: fx-hero-system-in 1s .2s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes fx-hero-system-in {
    from { opacity: 0; transform: translateX(30px) scale(.97); }
}

.hero-system-toolbar,
.hero-system-activity {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(135, 164, 205, .14);
    background: rgba(255, 255, 255, .025);
}

.hero-system-toolbar > b {
    position: absolute;
    left: 50%;
    color: #8294ab;
    font-size: .63rem;
    font-weight: 500;
    transform: translateX(-50%);
}

.system-dots {
    display: flex;
    gap: 6px;
}

.system-dots i,
.composer-windowbar > span i,
.tool-stage-toolbar > span i,
.hotplug-windowbar > span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff635d;
}

.system-dots i:nth-child(2),
.composer-windowbar > span i:nth-child(2),
.tool-stage-toolbar > span i:nth-child(2),
.hotplug-windowbar > span i:nth-child(2) { background: #f7bd45; }
.system-dots i:nth-child(3),
.composer-windowbar > span i:nth-child(3),
.tool-stage-toolbar > span i:nth-child(3),
.hotplug-windowbar > span i:nth-child(3) { background: #37c957; }

.system-live {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #8da1ba;
    font-size: .62rem;
}

.system-live i,
.hotplug-windowbar > em i,
.tool-stage-toolbar > em i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fx-green);
    box-shadow: 0 0 0 4px rgba(66, 211, 162, .09);
    animation: fx-live 1.8s ease-in-out infinite;
}

@keyframes fx-live { 50% { opacity: .35; } }

.hero-system-canvas {
    position: relative;
    min-height: 475px;
    background:
        radial-gradient(circle at center, rgba(79, 124, 255, .12), transparent 28%),
        linear-gradient(rgba(109, 139, 183, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 139, 183, .055) 1px, transparent 1px);
    background-size: auto, 35px 35px, 35px 35px;
}

.hero-connectors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero-connectors path {
    fill: none;
    stroke: rgba(105, 161, 255, .16);
    stroke-width: 1.4;
    stroke-dasharray: 4 8;
    vector-effect: non-scaling-stroke;
    animation: fx-dash 2.4s linear infinite;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

@keyframes fx-dash { to { stroke-dashoffset: -24; } }

.system-module {
    position: absolute;
    z-index: 2;
    width: 184px;
    min-height: 64px;
    display: grid;
    grid-template-columns: 35px 1fr 16px;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid rgba(132, 159, 198, .23);
    border-radius: 12px;
    background: rgba(15, 29, 50, .92);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .18);
    animation: fx-module-float 4.5s ease-in-out infinite alternate;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    user-select: none;
}

.system-module-model { top: 40px; left: 26px; --active-border-color: rgba(79, 124, 255, 0.6); --active-shadow-color: rgba(79, 124, 255, 0.25); }
.system-module-knowledge { top: 40px; right: 26px; animation-delay: -1.6s; --active-border-color: rgba(98, 215, 255, 0.6); --active-shadow-color: rgba(98, 215, 255, 0.25); }
.system-module-skill { bottom: 40px; left: 26px; animation-delay: -2.7s; --active-border-color: rgba(155, 140, 255, 0.6); --active-shadow-color: rgba(155, 140, 255, 0.25); }
.system-module-tool { right: 26px; bottom: 40px; animation-delay: -3.8s; --active-border-color: rgba(66, 211, 162, 0.6); --active-shadow-color: rgba(66, 211, 162, 0.25); }

@keyframes fx-module-float { to { transform: translateY(-5px); } }

/* Hover states for modules */
.system-module:hover {
    background-color: rgba(19, 36, 62, 0.98);
}
.system-module-model:hover { border-color: rgba(79, 124, 255, 0.6); box-shadow: 0 15px 30px rgba(79, 124, 255, 0.2); }
.system-module-knowledge:hover { border-color: rgba(98, 215, 255, 0.6); box-shadow: 0 15px 30px rgba(98, 215, 255, 0.2); }
.system-module-skill:hover { border-color: rgba(155, 140, 255, 0.6); box-shadow: 0 15px 30px rgba(155, 140, 255, 0.2); }
.system-module-tool:hover { border-color: rgba(66, 211, 162, 0.6); box-shadow: 0 15px 30px rgba(66, 211, 162, 0.2); }

/* Focus states */
.system-module:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

.system-module b {
    transition: opacity 0.2s ease;
}

.system-module.text-fade-out b {
    opacity: 0;
}

/* Glow module flash keyframe for auto-simulation */
.system-module.glow-active {
    animation: module-glow-flash 1.2s ease-in-out;
}

@keyframes module-glow-flash {
    0%, 100% {
        border-color: rgba(132, 159, 198, .23);
        box-shadow: 0 15px 30px rgba(0, 0, 0, .18);
        background-color: rgba(15, 29, 50, .92);
    }
    50% {
        border-color: var(--active-border-color);
        box-shadow: 0 0 22px var(--active-shadow-color);
        background-color: rgba(19, 36, 62, 0.98);
    }
}

.module-icon,
.layer-symbol {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(79, 124, 255, .13);
    color: #8fb0ff;
    font: 700 .78rem var(--font-heading);
}

.system-module-knowledge .module-icon { background: rgba(98, 215, 255, .11); color: var(--fx-cyan); }
.system-module-skill .module-icon { background: rgba(155, 140, 255, .12); color: var(--fx-violet); }
.system-module-tool .module-icon { background: rgba(66, 211, 162, .1); color: var(--fx-green); }
.system-module small,
.system-module b { display: block; }
.system-module small { color: #7589a2; font-size: .55rem; text-transform: uppercase; }
.system-module b { max-width: 102px; overflow: hidden; color: #dbe7f6; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

/* Status Checkmark & Switch Rotation */
.system-module .module-status {
    color: var(--fx-green);
    font-size: .68rem;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, color 0.3s ease;
}
.system-module:hover .module-status {
    transform: rotate(180deg);
    color: var(--fx-muted);
}

/* Glow packets styling */
.glow-packet {
    opacity: 0;
    pointer-events: none;
}
.glow-packet.active {
    animation: flow-packet 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flow-packet {
    0% {
        offset-distance: 0%;
        opacity: 0;
        transform: scale(0.5);
    }
    15% {
        opacity: 1;
        transform: scale(1.3);
    }
    85% {
        opacity: 1;
        transform: scale(1.3);
    }
    100% {
        offset-distance: 100%;
        opacity: 0;
        transform: scale(0.5);
    }
}

.model-packet { offset-path: path('M142 102 C262 102 250 258 350 258'); }
.knowledge-packet { offset-path: path('M558 102 C438 102 450 258 350 258'); }
.skill-packet { offset-path: path('M142 414 C262 414 250 258 350 258'); }
.tool-packet { offset-path: path('M558 414 C438 414 450 258 350 258'); }

/* System Bot Core */
.system-bot-core {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 206px;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid rgba(114, 158, 255, .45);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(29, 51, 88, .97), rgba(11, 24, 43, .98));
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35), 0 0 60px rgba(79, 124, 255, .13);
    transform: translate(-50%, -50%);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.core-pulse {
    position: absolute;
    inset: -10px;
    z-index: -1;
    border: 1px solid rgba(98, 215, 255, .22);
    border-radius: 28px;
    animation: fx-core-pulse 3s ease-out infinite;
    transition: animation-duration 0.3s ease, border-color 0.3s ease;
}

@keyframes fx-core-pulse {
    70%, 100% { opacity: 0; transform: scale(1.12); }
}

/* Core flashing when packet hits */
@keyframes fx-core-hit {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, .35), 0 0 60px rgba(79, 124, 255, .13);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        border-color: rgba(143, 176, 255, 0.85);
        box-shadow: 0 20px 80px rgba(79, 124, 255, 0.35), 0 0 80px rgba(79, 124, 255, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, .35), 0 0 60px rgba(79, 124, 255, .13);
    }
}
.system-bot-core.hit {
    animation: fx-core-hit 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.system-bot-core.processing .core-pulse {
    animation-duration: 1.2s;
    border-color: rgba(98, 215, 255, 0.55);
}

.core-logo {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    margin-bottom: 11px;
    border: 1px solid rgba(143, 176, 255, .5);
    border-radius: 13px;
    background: linear-gradient(135deg, #3263e7, #5d86ff);
    color: #fff;
    font: 800 1rem var(--font-heading);
    box-shadow: 0 10px 25px rgba(50, 99, 231, .3);
}

.system-bot-core > small { color: #8498b0; font-size: .56rem; text-transform: uppercase; }
.system-bot-core > strong { margin: 2px 0 13px; color: #f6f9ff; font: 700 .9rem var(--font-heading); }
.system-bot-core > div { display: flex; gap: 5px; }
.system-bot-core > div span { padding: 3px 7px; border: 1px solid rgba(139, 164, 201, .18); border-radius: 99px; background: rgba(255, 255, 255, .035); color: #9eb0c5; font-size: .52rem; }

/* Activity Log Console */
.hero-system-activity {
    min-height: 50px;
    border-top: 1px solid rgba(135, 164, 205, .14);
    border-bottom: 0;
}

.activity-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    margin-right: 9px;
    border-radius: 8px;
    background: rgba(66, 211, 162, .1);
    color: var(--fx-green);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-system-activity.is-processing .activity-icon {
    background-color: rgba(98, 215, 255, 0.1);
    color: var(--fx-cyan);
}

.hero-system-activity p { line-height: 1.15; }
.hero-system-activity small,
.hero-system-activity b { display: block; }
.hero-system-activity small { color: #6f829c; font-size: .52rem; text-transform: uppercase; transition: color 0.3s ease; }
.hero-system-activity b { margin-top: 2px; color: #b8c8da; font-size: .62rem; transition: color 0.3s ease, opacity 0.25s ease; }
.hero-system-activity time { margin-left: auto; color: #6f829c; font-size: .54rem; }


.hero-value-strip {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 88px;
    overflow: hidden;
    border: 1px solid rgba(133, 164, 204, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(14px);
}

.hero-value-strip article {
    min-height: 112px;
    display: grid;
    grid-template-columns: 31px 1fr;
    gap: 10px;
    padding: 23px 20px;
    border-right: 1px solid rgba(133, 164, 204, .16);
}

.hero-value-strip article:last-child { border: 0; }
.hero-value-strip article > span { color: #5f7da8; font: 700 .6rem var(--font-heading); }
.hero-value-strip b,
.hero-value-strip small { display: block; }
.hero-value-strip b { margin-bottom: 6px; color: #e5edf8; font: 600 .76rem/1.35 var(--font-heading); }
.hero-value-strip small { color: #7f92aa; font-size: .68rem; line-height: 1.45; }

/* Bot composer */
.composer-section {
    padding-top: 130px;
    background: var(--background);
}

.composer-heading { margin-bottom: 80px; }
.composer-layout {
    display: grid;
    grid-template-columns: minmax(340px, .72fr) minmax(530px, 1.08fr);
    grid-template-areas: none;
    align-items: stretch;
    column-gap: 82px;
    row-gap: 88px;
}
.composer-visual-column { display: contents; }

.composer-window {
    overflow: hidden;
    border: 1px solid #263246;
    border-radius: 20px;
    background: #111722;
    box-shadow: 0 35px 90px rgba(19, 33, 58, .22);
    color: #152033;
    font-family: Carlito, Arial, sans-serif;
}

.composer-windowbar,
.tool-stage-toolbar,
.hotplug-windowbar {
    position: relative;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    border-bottom: 1px solid #293345;
    background: #111722;
}

.composer-windowbar > span,
.tool-stage-toolbar > span,
.hotplug-windowbar > span { display: flex; gap: 6px; }
.composer-windowbar > b,
.tool-stage-toolbar > b,
.hotplug-windowbar > b { position: absolute; left: 50%; color: #77859a; font-size: .65rem; font-weight: 500; transform: translateX(-50%); }
.composer-windowbar > em,
.tool-stage-toolbar > em,
.hotplug-windowbar > em { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #6f8197; font-size: .6rem; font-style: normal; }
.composer-windowbar > em i { width: 6px; height: 6px; border-radius: 50%; background: var(--fx-green); box-shadow: 0 0 0 4px rgba(66, 211, 162, .09); animation: fx-live 1.8s ease-in-out infinite; }

.composer-product-stage { position: relative; height: 540px; overflow: hidden; background: #f4f5f8; }
.cp-client-product,
.cp-admin-product { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .36s ease, transform .46s cubic-bezier(.22, .8, .25, 1); transform: translateY(8px); }
.composer-window[data-active-step="model"] .cp-client-product,
.composer-window:not([data-active-step="model"]) .cp-admin-product { opacity: 1; visibility: visible; transform: none; }

/* Employee app / model selector */
.cp-client-product { display: grid; grid-template-columns: 132px 1fr; background: #090a0d; color: #f5f6f8; }
.cp-client-sidebar { position: relative; display: flex; flex-direction: column; padding: 15px 10px 11px; border-right: 1px solid #222328; background: #0c0d10; }
.cp-client-brand,
.cp-admin-brand { display: flex; align-items: center; gap: 8px; }
.cp-client-brand > span,
.cp-admin-brand > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #14171d; color: #fff; font: 800 .58rem var(--font-heading); }
.cp-client-brand > b { font-size: .66rem; }
.cp-client-sidebar > button { min-height: 35px; display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 0 9px; border: 1px solid #2b2c31; border-radius: 8px; background: #15161a; color: #e6e7eb; font: inherit; font-size: .57rem; font-weight: 600; text-align: left; }
.cp-client-sidebar > button i { color: #a9abb2; font-style: normal; }
.cp-client-search { min-height: 29px; display: flex; align-items: center; gap: 7px; margin: 8px 0 18px; padding: 0 8px; border-radius: 7px; background: #121317; color: #777a83; font-size: .53rem; }
.cp-client-search i { font-style: normal; }
.cp-client-sidebar > small { margin: 0 6px 6px; color: #5b5e66; font-size: .46rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cp-client-sidebar > p { margin: 1px 0; padding: 7px 8px; overflow: hidden; border-radius: 6px; color: #777a83; font-size: .51rem; text-overflow: ellipsis; white-space: nowrap; }
.cp-client-sidebar > p.is-active { background: #191a1f; color: #d6d7dc; }
.cp-client-user { position: absolute; right: 10px; bottom: 11px; left: 10px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 7px; padding-top: 11px; border-top: 1px solid #222329; }
.cp-client-user > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #253a63; color: #9db8f7; font-size: .48rem; }
.cp-client-user b,
.cp-client-user small { display: block; }
.cp-client-user b { color: #d6d7da; font-size: .51rem; }
.cp-client-user small { color: #676a72; font-size: .43rem; }
.cp-client-user > i { color: #5e6169; font-style: normal; }
.cp-client-main { position: relative; min-width: 0; overflow: hidden; background: radial-gradient(circle at 50% 43%, #17191f 0, #0b0c0f 46%); }
.cp-model-trigger { position: absolute; z-index: 4; top: 15px; left: 50%; min-width: 145px; min-height: 34px; display: grid; grid-template-columns: 24px 1fr 16px; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid #303138; border-radius: 9px; background: #16171b; box-shadow: 0 9px 25px rgba(0, 0, 0, .35); transform: translateX(-50%); }
.cp-provider-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #24252a; color: #f1f2f4; font-size: .72rem; }
.cp-model-trigger b { font-size: .72rem; }
.cp-model-trigger small { color: #777a82; font-size: .70rem; }
.cp-client-welcome { position: absolute; top: 83px; right: 10px; left: 10px; text-align: center; }
.cp-orb { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 10px; border: 1px solid #33405d; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #718ac7, #2c3858 48%, #151a28); color: #fff; font: 700 .6rem var(--font-heading); box-shadow: 0 0 32px rgba(91, 120, 193, .23); }
.cp-client-welcome h3 { color: #f1f2f4; font-size: 1.08rem; letter-spacing: -.02em; }
.cp-client-welcome p { margin-top: 3px; color: #696d77; font-size: .68rem; }
.cp-model-menu { position: absolute; z-index: 3; top: 65px; left: 50%; width: 260px; padding: 8px; border: 1px solid #303238; border-radius: 12px; background: rgba(20, 21, 25, .98); box-shadow: 0 22px 55px rgba(0, 0, 0, .48); transform: translateX(-50%); animation: fx-menu-drop .55s .15s both; }
@keyframes fx-menu-drop { from { opacity: 0; transform: translate(-50%, -6px) scale(.98); } }
.cp-model-menu-label { display: flex; justify-content: space-between; padding: 4px 5px 7px; color: #62656d; font-size: .55rem; text-transform: uppercase; }
.cp-model-menu-label b { color: #506891; font-weight: 600; text-transform: none; }
.cp-model-menu > button { width: 100%; min-height: 44px; display: grid; grid-template-columns: 29px 1fr 15px; align-items: center; gap: 8px; padding: 5px 7px; border: 0; border-radius: 8px; background: transparent; color: #dfe1e5; text-align: left; }
.cp-model-menu > button.is-selected { background: #24262c; }
.cp-model-menu > button > i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #2b2d33; font-size: .65rem; font-style: normal; }
.cp-model-menu > button > i.is-cloud { color: #9fb6ff; }
.cp-model-menu > button > i.is-hans { background: #253454; color: #9db7ef; }
.cp-model-menu > button > i.is-local { color: #d5d6da; }
.cp-model-menu > button b,
.cp-model-menu > button small { display: block; }
.cp-model-menu > button b { font-size: .72rem; }
.cp-model-menu > button small { margin-top: 1px; color: #686b73; font-size: .60rem; }
.cp-model-menu > button em { color: #85a8ff; font-size: .56rem; font-style: normal; }
.cp-thinking-levels { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 10px 7px 4px; border-top: 1px solid #2b2c31; }
.cp-thinking-levels > span b,
.cp-thinking-levels > span small { display: block; }
.cp-thinking-levels > span b { color: #c9cbd0; font-size: .5rem; }
.cp-thinking-levels > span small { color: #5d6068; font-size: .42rem; }
.cp-thinking-levels > div { display: flex; gap: 3px; }
.cp-thinking-levels i { padding: 3px 5px; border-radius: 5px; background: #202126; color: #676a72; font-size: .4rem; font-style: normal; }
.cp-thinking-levels i.is-active { background: #32415f; color: #a9c0f4; }
.cp-client-input { position: absolute; right: 26px; bottom: 18px; left: 26px; min-height: 56px; display: flex; flex-direction: column; justify-content: space-between; padding: 11px; border: 1px solid #2c2e34; border-radius: 13px; background: #15161a; box-shadow: 0 14px 35px rgba(0, 0, 0, .24); color: #666973; font-size: .51rem; }
.cp-client-input > div { display: flex; gap: 7px; }
.cp-client-input i,
.cp-client-input b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #202126; font-style: normal; }
.cp-client-input b { margin-left: auto; background: #e8e9ec; color: #15161a; }

/* Admin dashboard screens */
.cp-admin-product { display: grid; grid-template-columns: 118px 1fr; background: #f4f5f8; }
.cp-admin-sidebar { position: relative; display: flex; flex-direction: column; padding: 14px 9px 10px; background: #111214; color: #c2c5ca; }
.cp-admin-brand { margin: 0 5px 20px; }
.cp-admin-brand > span { background: #202227; }
.cp-admin-brand > b { color: #f2f3f4; font-size: .62rem; }
.cp-admin-sidebar > small { margin: 8px 7px 5px; color: #4e5158; font-size: .4rem; letter-spacing: .09em; }
.cp-admin-sidebar > span { min-height: 29px; display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 5px; margin: 1px 0; padding: 0 6px; border-radius: 6px; color: #74777e; }
.cp-admin-sidebar > span i { font-size: .54rem; font-style: normal; text-align: center; }
.cp-admin-sidebar > span b { overflow: hidden; font-size: .49rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.composer-window[data-active-step="knowledge"] [data-cp-nav="knowledge"],
.composer-window[data-active-step="skills"] [data-cp-nav="skills"],
.composer-window[data-active-step="tools"] [data-cp-nav="tools"] { background: #24262b; color: #f0f1f3; box-shadow: inset 2px 0 #5f83ec; }
.cp-admin-user { position: absolute; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px solid #292a2e; }
.cp-admin-user > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #24365a; color: #a6bced; font-size: .43rem; }
.cp-admin-user b,
.cp-admin-user small { display: block; }
.cp-admin-user b { color: #d4d5d8; font-size: .46rem; }
.cp-admin-user small { color: #565960; font-size: .39rem; }
.cp-admin-content { min-width: 0; overflow: hidden; padding: 17px 18px; background: #f4f5f8; }
.cp-admin-view { display: none; animation: fx-admin-view .46s ease both; }
@keyframes fx-admin-view { from { opacity: 0; transform: translateY(7px); } }
.composer-window[data-active-step="knowledge"] .cp-knowledge-view,
.composer-window[data-active-step="skills"] .cp-skill-view,
.composer-window[data-active-step="tools"] .cp-tool-view { display: block; }
.cp-admin-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; color: #9299a5; font-size: .46rem; }
.cp-admin-breadcrumb i { font-style: normal; }
.cp-admin-breadcrumb b { color: #4e596b; }
.cp-admin-title { min-height: 47px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.cp-admin-title > div { display: flex; align-items: center; gap: 10px; }
.cp-title-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #111318; color: #fff; font-size: .68rem; }
.cp-admin-title small,
.cp-admin-title h3 { display: block; }
.cp-admin-title small { color: #9ca3ae; font-size: .42rem; font-weight: 700; letter-spacing: .08em; }
.cp-admin-title h3 { margin-top: 2px; color: #131b28; font-size: .92rem; }
.cp-admin-title > button { padding: 7px 9px; border: 1px solid #d9dee6; border-radius: 7px; background: #fff; color: #495466; font: inherit; font-size: .47rem; font-weight: 600; }
.cp-status-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; overflow: hidden; border: 1px solid #e0e3e8; border-radius: 10px; background: #fff; }
.cp-status-strip article { min-height: 54px; display: flex; flex-direction: column; justify-content: center; padding: 8px 11px; border-right: 1px solid #e8eaee; }
.cp-status-strip article:last-child { border: 0; }
.cp-status-strip small { color: #9aa1ac; font-size: .38rem; letter-spacing: .06em; }
.cp-status-strip b { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #202938; font-size: .58rem; }
.cp-status-strip b i { width: 5px; height: 5px; border-radius: 50%; background: #39bc86; }
.cp-knowledge-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 10px; }
.cp-knowledge-grid > article { min-height: 190px; padding: 15px; border: 1px solid #dfe3e9; border-radius: 11px; background: #fff; }
.cp-card-head { display: flex; align-items: center; justify-content: space-between; }
.cp-card-head > span { display: flex; align-items: center; gap: 7px; }
.cp-card-head > span i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #edf1fa; color: #4772d8; font-size: .43rem; font-style: normal; }
.cp-card-head b { color: #283243; font-size: .58rem; }
.cp-card-head em { padding: 3px 5px; border-radius: 99px; background: #eaf8f2; color: #29946e; font-size: .39rem; font-style: normal; }
.cp-ingestion-card > p { margin: 17px 0 13px; color: #8b929e; font-size: .48rem; line-height: 1.45; }
.cp-pipeline { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.cp-pipeline span { min-width: 39px; padding: 7px 4px; border: 1px solid #e1e5eb; border-radius: 6px; background: #f8f9fb; color: #566174; font-size: .4rem; text-align: center; }
.cp-pipeline i { color: #9ea5af; font-size: .47rem; font-style: normal; }
.cp-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; margin-top: 18px; }
.cp-progress > span { height: 4px; overflow: hidden; border-radius: 99px; background: #e9ecf1; }
.cp-progress > span i { display: block; width: 100%; height: 100%; background: #3bba89; animation: fx-progress-fill 1s ease both; }
@keyframes fx-progress-fill { from { width: 0; } }
.cp-progress b { color: #36a87e; font-size: .42rem; }
.cp-retrieval-card label { min-height: 53px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px; margin: 27px 0 17px; padding: 7px; border: 1px solid #dfe3e9; border-radius: 8px; color: #939aa5; font-size: .43rem; }
.cp-retrieval-card label > i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: #f0f2f6; color: #5c6779; font-style: normal; }
.cp-retrieval-card label > b { color: #758094; font-size: .45rem; }
.cp-retrieval-card > div:last-child { display: flex; flex-wrap: wrap; gap: 4px; }
.cp-retrieval-card > div:last-child span { display: flex; align-items: center; gap: 4px; padding: 3px 5px; border-radius: 99px; background: #f1f3f6; color: #747d8a; font-size: .38rem; }
.cp-retrieval-card > div:last-child i { width: 4px; height: 4px; border-radius: 50%; background: #4e7ae4; }
.cp-source-row { min-height: 57px; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 8px 11px; border: 1px solid #dfe3e9; border-radius: 10px; background: #fff; }
.cp-source-row > span { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 7px; }
.cp-source-row > span i { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #edf1fa; color: #4b73d0; font-size: .39rem; font-style: normal; }
.cp-source-row > span b { color: #344054; font-size: .5rem; }
.cp-source-row > span small { color: #9aa1ac; font-size: .4rem; }
.cp-source-row > em { display: flex; align-items: center; gap: 5px; color: #42a781; font-size: .42rem; font-style: normal; }
.cp-source-row > em i { width: 5px; height: 5px; border-radius: 50%; background: #38bd88; }
.cp-source-row > b { color: #a3a9b2; }

.cp-form-layout { display: grid; grid-template-columns: 1fr 124px; align-items: start; gap: 10px; }
.cp-form-layout > div { min-width: 0; }
.cp-form-card { display: grid; grid-template-columns: 28px 1fr; gap: 9px; margin-bottom: 8px; padding: 11px; border: 1px solid #dfe3e9; border-radius: 10px; background: #fff; }
.cp-form-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #111318; color: #fff; font-size: .43rem; }
.cp-form-card h4 { color: #303a49; font-size: .76rem; }
.cp-form-card p { margin: 2px 0 8px; color: #999faa; font-size: .62rem; line-height: 1.4; }
.cp-form-card label { display: block; margin-top: 6px; padding: 7px 8px; border: 1px solid #e0e4e9; border-radius: 6px; background: #fafbfc; }
.cp-form-card label small,
.cp-form-card label span { display: block; }
.cp-form-card label small { margin-bottom: 3px; color: #9da4ae; font-size: .52rem; letter-spacing: .06em; }
.cp-form-card label span { overflow: hidden; color: #4b5565; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.cp-instruction-card label { min-height: 74px; background: #f7f8fa; }
.cp-instruction-card label span { color: #657083; font-family: monospace; font-size: .62rem; line-height: 1.5; white-space: normal; }
.cp-bot-assign > div > span { min-height: 31px; display: grid; grid-template-columns: 24px 1fr 16px; align-items: center; gap: 6px; margin-top: 5px; padding: 3px 6px; border: 1px solid #e1e5ea; border-radius: 6px; }
.cp-bot-assign > div > span i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: #edf1fa; color: #4e73ca; font-size: .37rem; font-style: normal; }
.cp-bot-assign > div > span b { color: #4f5969; font-size: .44rem; }
.cp-bot-assign > div > span em { color: #3cb887; font-size: .45rem; font-style: normal; }
.cp-ready-card,
.cp-code-preview { position: sticky; top: 0; overflow: hidden; padding: 14px; border-radius: 11px; background: #111318; color: #fff; }
.cp-ready-card > small,
.cp-code-preview > small { color: #687183; font-size: .38rem; letter-spacing: .08em; }
.cp-ready-card h4,
.cp-code-preview h4 { margin-top: 5px; color: #f3f4f6; font-size: .67rem; }
.cp-ready-card p { margin: 10px 0 54px; color: #7f8898; font-size: .43rem; line-height: 1.45; }
.cp-ready-card button,
.cp-code-preview button { width: 100%; min-height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border: 0; border-radius: 7px; background: #f2f4f7; color: #222a36; font: inherit; font-size: .43rem; font-weight: 700; }
.cp-ready-card button i,
.cp-code-preview button i { font-style: normal; }
.cp-tool-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.cp-tool-types > span { min-height: 46px; display: flex; flex-direction: column; justify-content: center; padding: 6px; border: 1px solid #e0e4e9; border-radius: 7px; }
.cp-tool-types > span.is-active { border-color: #7999e4; background: #f1f5ff; }
.cp-tool-types i,
.cp-tool-types b { display: block; }
.cp-tool-types i { color: #5575bd; font-size: .36rem; font-style: normal; }
.cp-tool-types b { margin-top: 2px; color: #495465; font-size: .4rem; }
.cp-upload-card label { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; }
.cp-upload-card label > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #ecf1fc; color: #4e73ce; font-style: normal; }
.cp-upload-card label > span b,
.cp-upload-card label > span small { display: block; }
.cp-upload-card label > span b { color: #4a5566; font-size: .43rem; }
.cp-upload-card label > span small { color: #9098a4; font-size: .37rem; }
.cp-upload-card label > em { color: #36ae80; font-style: normal; }
.cp-code-preview code { display: block; min-height: 170px; margin: 13px -2px 10px; overflow: hidden; color: #8f9db3; font: .39rem/1.8 monospace; white-space: nowrap; }
.cp-code-preview > div { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; color: #69cfa9; font-size: .4rem; }
.cp-code-preview > div i { width: 5px; height: 5px; border-radius: 50%; background: #4bd09f; }

.composer-output { min-height: 72px; padding: 13px 16px 14px; border-top: 1px solid #283245; background: #111722; color: #fff; }
.composer-output > div { display: none; animation: fx-output-in .4s ease both; }
.composer-output > div.is-active { display: block; }
@keyframes fx-output-in { from { opacity: 0; transform: translateY(5px); } }
.composer-output small,
.composer-output b { display: block; }
.composer-output small { color: #7d9df0; font-size: .51rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.composer-output b { margin-top: 5px; color: #d3dbe7; font-size: .66rem; line-height: 1.4; }

.composer-steps {
    display: contents;
}
.composer-step {
    min-width: 0;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
}
.composer-step.is-visible {
    opacity: 1;
    visibility: visible;
}
.composer-step.is-visible .step-topline { animation: fx-composer-copy-in .45s cubic-bezier(.16, 1, .3, 1) both; }
.composer-step.is-visible h3 { animation: fx-composer-copy-in .7s .14s cubic-bezier(.16, 1, .3, 1) both; }
.composer-step.is-visible p { animation: fx-composer-copy-in .65s .84s cubic-bezier(.16, 1, .3, 1) both; }
.composer-step.is-visible .step-tags { animation: fx-composer-copy-in .55s 1.05s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes fx-composer-copy-in {
    from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}
.step-topline { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--primary); }
.step-topline > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-glow); font: 700 .62rem var(--font-heading); }
.step-topline > small { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.composer-step h3 { margin-bottom: 16px; font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.2; letter-spacing: -.025em; }
.composer-step p { color: var(--text-secondary); font-size: .94rem; line-height: 1.7; }
.step-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.step-tags span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-elevated); color: var(--text-muted); font-size: .65rem; font-weight: 600; }

/* Three-step product workflow */
.employee-section { border-block: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-elevated), var(--background)); }
.workflow-carousel { --workflow-blue: #386cf4; --workflow-ink: #101828; --workflow-line: #dce3ee; --workflow-gap: 22px; --workflow-gutter: 46px; }
.workflow-viewport { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-padding-inline: var(--workflow-gutter); scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.workflow-viewport::-webkit-scrollbar { display: none; }
.workflow-viewport:focus-visible { border-radius: 24px; box-shadow: 0 0 0 3px var(--primary-glow); }
.workflow-track { display: flex; gap: var(--workflow-gap); width: max-content; padding: 4px var(--workflow-gutter) 26px; }
.workflow-card { position: relative; flex: 0 0 calc(min(1152px, 100vw - 48px) - 92px); width: calc(min(1152px, 100vw - 48px) - 92px); min-width: 740px; height: 650px; overflow: hidden; scroll-snap-align: start; border: 1px solid rgba(116, 143, 181, .24); border-radius: 25px; background: #f4f6fa; box-shadow: 0 24px 65px rgba(21, 39, 68, .13); opacity: .55; transition: opacity .45s ease, box-shadow .45s ease; }
.workflow-card-canvas { width: 100%; height: 100%; }
.workflow-card.is-selected,
.workflow-card.is-active { opacity: 1; box-shadow: 0 32px 85px rgba(21, 39, 68, .2); }
.workflow-windowbar { height: 43px; display: flex; align-items: center; padding: 0 15px; border-bottom: 1px solid #202d40; background: #0a1424; color: #b5c3d5; }
.workflow-windowbar > span { display: flex; gap: 6px; }
.workflow-windowbar > span i { width: 7px; height: 7px; border-radius: 50%; background: #ff635d; }
.workflow-windowbar > span i:nth-child(2) { background: #f7bd45; }
.workflow-windowbar > span i:nth-child(3) { background: #37c957; }
.workflow-windowbar > b { position: absolute; left: 50%; font-size: .64rem; font-weight: 600; transform: translateX(-50%); }
.workflow-windowbar > em { display: flex; align-items: center; gap: 7px; margin-left: auto; font-size: .56rem; font-style: normal; }
.workflow-windowbar > em i,
.workflow-card-status > span > i { width: 6px; height: 6px; border-radius: 50%; background: var(--fx-green); box-shadow: 0 0 0 4px rgba(66, 211, 162, .1); }
.workflow-product { height: 562px; display: grid; grid-template-columns: 155px minmax(0, 1fr); color: var(--workflow-ink); }
.workflow-admin-nav { position: relative; display: flex; flex-direction: column; padding: 18px 11px 12px; border-right: 1px solid #233147; background: #101d30; color: #9cadc2; }
.workflow-brand { display: flex; align-items: center; gap: 8px; padding: 0 6px 20px; color: #eef4fb; }
.workflow-brand > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, #4f7cff, #62d7ff); color: #fff; font: 700 .62rem var(--font-heading); box-shadow: 0 7px 18px rgba(79, 124, 255, .28); }
.workflow-brand > b { font-size: .73rem; }
.workflow-admin-nav > small,
.workflow-chat-sidebar > small { margin: 8px 9px 5px; color: #5f7189; font-size: .48rem; font-weight: 700; letter-spacing: .1em; }
.workflow-admin-nav > p { min-height: 35px; display: grid; grid-template-columns: 23px 1fr; align-items: center; gap: 4px; padding: 0 8px; border-radius: 8px; font-size: .6rem; }
.workflow-admin-nav > p i { color: #71849c; font-size: .72rem; font-style: normal; }
.workflow-admin-nav > p.is-active { background: rgba(79, 124, 255, .15); color: #f1f5fb; }
.workflow-admin-nav > p.is-active i { color: #72a0ff; }
.workflow-admin-user,
.workflow-chat-user { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; margin-top: auto; padding: 10px 7px 0; border-top: 1px solid #26354a; }
.workflow-admin-user > span,
.workflow-chat-user > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #263853; color: #d8e5f5; font: 700 .49rem var(--font-heading); }
.workflow-admin-user b,
.workflow-chat-user b { display: block; color: #e5edf7; font-size: .58rem; }
.workflow-admin-user small,
.workflow-chat-user small { display: block; color: #72869e; font-size: .49rem; }
.workflow-admin-main { padding: 25px 27px 22px; overflow: hidden; background: #f4f6fa; }
.workflow-product-heading { min-height: 76px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.workflow-product-heading small { color: #728096; font-size: .51rem; font-weight: 700; letter-spacing: .1em; }
.workflow-product-heading h3 { margin: 4px 0 3px; color: #152238; font-size: 1.18rem; letter-spacing: -.025em; }
.workflow-product-heading p { color: #69778b; font-size: .61rem; }
.workflow-product-heading > span { display: flex; align-items: center; gap: 7px; margin-top: 5px; padding: 7px 9px; border: 1px solid #d9e6df; border-radius: 99px; background: #f0faf6; color: #318567; font-size: .53rem; }
.workflow-product-heading > span > i { width: 6px; height: 6px; border-radius: 50%; background: #42c896; }
.setup-flow { height: 410px; display: grid; grid-template-columns: minmax(245px, 1fr) 38px minmax(245px, 1fr); align-items: stretch; }
.setup-resource { position: relative; padding: 17px; overflow: hidden; border: 1px solid #dbe2ec; border-radius: 16px; background: #fff; box-shadow: 0 10px 32px rgba(28, 48, 78, .06); }
.setup-resource::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; border-radius: inherit; pointer-events: none; }
.workflow-card-setup.is-active .setup-knowledge::after { animation: workflow-card-focus 4.8s .25s ease both; }
.workflow-card-setup.is-active .setup-skill::after { animation: workflow-card-focus 4.8s 2.5s ease both; }
@keyframes workflow-card-focus { 12%, 48% { border-color: #648cfa; box-shadow: 0 0 0 4px rgba(79, 124, 255, .08) inset; } 62%, 100% { border-color: transparent; } }
.setup-resource-head { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 9px; padding-bottom: 13px; border-bottom: 1px solid #edf0f5; }
.setup-resource-head > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #eef3ff; color: #376cf0; font-size: .75rem; }
.setup-skill .setup-resource-head > span { background: #f3efff; color: #795ee8; }
.setup-resource-head small { display: block; color: #8490a2; font-size: .45rem; font-weight: 700; letter-spacing: .08em; }
.setup-resource-head h4 { margin-top: 2px; color: #17243a; font-size: .75rem; }
.setup-resource-head > em { padding: 4px 7px; border-radius: 99px; background: #eaf8f2; color: #2c8a68; font-size: .48rem; font-style: normal; opacity: 0; transform: translateY(-4px); }
.workflow-card-setup.is-active .setup-resource-head > em { animation: workflow-saved .38s 2s ease forwards; }
.workflow-card-setup.is-active .setup-skill .setup-resource-head > em { animation-delay: 4.45s; }
@keyframes workflow-saved { to { opacity: 1; transform: none; } }
.setup-source { min-height: 69px; display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 9px; margin: 14px 0; padding: 9px; border: 1px dashed #c9d5e4; border-radius: 11px; background: #f9fbfd; }
.setup-source > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #e8efff; color: #3569ed; font: 700 .48rem var(--font-heading); }
.setup-source b,
.setup-source small { display: block; }
.setup-source b { color: #26364d; font-size: .59rem; }
.setup-source small { margin-top: 2px; color: #8490a1; font-size: .47rem; }
.setup-source > i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #42c896; color: #fff; font-size: .47rem; font-style: normal; opacity: 0; transform: scale(.3); }
.workflow-card-setup.is-active .setup-source > i { animation: workflow-check .32s .85s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes workflow-check { to { opacity: 1; transform: scale(1); } }
.setup-pipeline { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.setup-pipeline > span { min-width: 53px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.setup-pipeline > span > i { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 5px; border: 1px solid #d5deea; border-radius: 8px; background: #f7f9fc; color: #67768c; font: 700 .48rem var(--font-heading); }
.setup-pipeline b { color: #405069; font-size: .48rem; }
.setup-pipeline small { color: #97a1b0; font-size: .4rem; }
.setup-pipeline > em { color: #aab5c4; font-size: .58rem; font-style: normal; }
.workflow-card-setup.is-active .setup-pipeline > span > i { animation: workflow-pipeline-node .38s ease forwards; }
.workflow-card-setup.is-active .setup-pipeline > span:nth-of-type(1) > i { animation-delay: 1s; }
.workflow-card-setup.is-active .setup-pipeline > span:nth-of-type(2) > i { animation-delay: 1.3s; }
.workflow-card-setup.is-active .setup-pipeline > span:nth-of-type(3) > i { animation-delay: 1.6s; }
@keyframes workflow-pipeline-node { to { border-color: #4e7df6; background: #4e7df6; color: #fff; box-shadow: 0 5px 14px rgba(79, 124, 255, .25); } }
.setup-progress { display: grid; grid-template-columns: 1fr auto; gap: 5px 9px; margin-top: 23px; color: #738096; font-size: .46rem; }
.setup-progress > span { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 99px; background: #e6ebf2; }
.setup-progress > span::after { content: ""; display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f7cff, #42d3a2); }
.workflow-card-setup.is-active .setup-progress > span::after { animation: workflow-progress 1.3s .7s ease forwards; }
@keyframes workflow-progress { to { width: 100%; } }
.setup-progress b { color: #34876a; font-size: .48rem; }
.setup-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #7388a6; }
.setup-connector > span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #cfd9e6; border-radius: 50%; background: #fff; font: 700 .43rem var(--font-heading); }
.setup-connector > i { width: 1px; height: 80px; background: linear-gradient(#b9c8dc, #6089f4, #b9c8dc); transform: scaleY(0); }
.workflow-card-setup.is-active .setup-connector > i { animation: workflow-connector .55s 2.15s ease forwards; }
@keyframes workflow-connector { to { transform: scaleY(1); } }
.setup-skill label { display: block; margin: 14px 0 10px; padding: 9px 10px; border: 1px solid #dfe5ee; border-radius: 9px; }
.setup-skill label small,
.setup-markdown > small { display: block; margin-bottom: 4px; color: #8b96a6; font-size: .43rem; font-weight: 700; }
.setup-skill label span { color: #435168; font-size: .54rem; }
.setup-markdown { padding: 10px 11px; border: 1px solid #dde3ec; border-radius: 10px; background: #f8fafc; }
.setup-markdown code { color: #526078; font: .48rem/1.55 var(--font-body); }
.setup-markdown code i { color: #496ed1; font-style: normal; font-weight: 700; }
.setup-skill > button { width: 100%; min-height: 35px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 11px; border: 0; border-radius: 9px; background: #3569ed; color: #fff; font-size: .55rem; opacity: 0; transform: translateY(6px); }
.workflow-card-setup.is-active .setup-skill > button { animation: workflow-saved .35s 4.1s ease forwards; }
.workflow-card-status { height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; border-top: 1px solid #202d40; background: #0a1424; color: #9aabc1; font-size: .56rem; }
.workflow-card-status > span { display: flex; align-items: center; gap: 8px; color: #cfdaea; }
.workflow-card-status small { color: #71839b; font-size: .52rem; }

/* Bot builder card */
.workflow-product-heading > .bot-version { min-width: 105px; display: grid; grid-template-columns: 1fr auto; gap: 2px 9px; border-color: #dce3ed; border-radius: 10px; background: #fff; color: #69788d; }
.workflow-product-heading > .bot-version small { grid-row: 1; }
.workflow-product-heading > .bot-version b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #376cf0; font-size: .85rem; }
.bot-builder-grid { height: 420px; display: grid; grid-template-columns: minmax(0, 1fr) 185px; gap: 14px; }
.bot-builder-form { display: grid; gap: 12px; }
.bot-identity-card,
.bot-assignment-panel,
.bot-publish-card { border: 1px solid #dbe2ec; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(28, 48, 78, .05); }
.workflow-card-bot.is-selected:not(.is-active) .bot-identity-card,
.workflow-card-bot.is-selected:not(.is-active) .bot-assignment-panel,
.workflow-card-bot.is-selected:not(.is-active) .bot-publish-card { opacity: 0; transform: translateY(12px); }
.workflow-card-bot.is-active .bot-identity-card { animation: workflow-build-step .45s .12s cubic-bezier(.16, 1, .3, 1) both; }
.workflow-card-bot.is-active .bot-assignment-panel { animation: workflow-build-step .45s .55s cubic-bezier(.16, 1, .3, 1) both; }
.workflow-card-bot.is-active .bot-assignment-columns article:first-child label { animation: workflow-build-item .42s .92s cubic-bezier(.16, 1, .3, 1) both; }
.workflow-card-bot.is-active .bot-assignment-columns article:nth-child(2) label { animation: workflow-build-item .42s 1.42s cubic-bezier(.16, 1, .3, 1) both; }
.workflow-card-bot.is-active .bot-rag-assignment { animation: workflow-build-item .42s 1.92s cubic-bezier(.16, 1, .3, 1) both; }
.workflow-card-bot.is-active .bot-publish-card { animation: workflow-build-step .48s 2.38s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes workflow-build-step {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: none; }
}
@keyframes workflow-build-item {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: none; }
}
.bot-identity-card { min-height: 94px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 13px; }
.bot-identity-card > span,
.bot-assignment-panel > header > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #eef3ff; color: #406fe9; font: 700 .49rem var(--font-heading); }
.bot-identity-card small,
.bot-assignment-panel header p { color: #8a95a5; font-size: .44rem; }
.bot-identity-card h4 { margin: 3px 0; color: #1b2940; font-size: .72rem; }
.bot-identity-card p { color: #6c788b; font-size: .49rem; }
.bot-identity-card > em { display: flex; align-items: center; gap: 6px; color: #57708e; font-size: .47rem; font-style: normal; }
.bot-identity-card > em i { width: 6px; height: 6px; border-radius: 50%; background: #42c896; }
.bot-assignment-panel { padding: 13px; }
.bot-assignment-panel > header { display: grid; grid-template-columns: 34px 1fr; gap: 11px; margin-bottom: 10px; }
.bot-assignment-panel header h4 { color: #1b2940; font-size: .72rem; }
.bot-assignment-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bot-assignment-columns article { padding: 8px; border: 1px solid #e1e6ee; border-radius: 10px; background: #fafbfd; }
.bot-assignment-columns article > small { display: flex; justify-content: space-between; margin: 0 2px 6px; color: #8691a2; font-size: .42rem; font-weight: 700; }
.bot-assignment-columns label { min-height: 55px; display: grid; grid-template-columns: 32px 1fr 18px; align-items: center; gap: 7px; padding: 7px; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; }
.bot-assignment-columns label > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #f1edff; color: #795ee8; font-size: .58rem; font-style: normal; }
.bot-assignment-columns article:nth-child(2) label > i { background: #eaf2ff; color: #376cf0; }
.bot-assignment-columns label b,
.bot-assignment-columns label small { display: block; }
.bot-assignment-columns label b { color: #26354b; font-size: .52rem; }
.bot-assignment-columns label small { color: #8b95a4; font-size: .42rem; }
.bot-assignment-columns label > em,
.bot-rag-assignment > em { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #3fc492; color: #fff; font-size: .43rem; font-style: normal; opacity: 0; transform: scale(.35); }
.workflow-card-bot.is-active .bot-assignment-columns article:first-child label > em { animation: workflow-check .32s 1.2s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.workflow-card-bot.is-active .bot-assignment-columns article:nth-child(2) label > em { animation: workflow-check .32s 1.7s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.bot-rag-assignment { min-height: 63px; display: grid; grid-template-columns: 1fr 20px; align-items: center; gap: 9px; margin-top: 8px; padding: 8px 10px; border: 1px solid #dce4ef; border-radius: 9px; background: #f9fbfe; }
.bot-rag-assignment small,
.bot-rag-assignment b,
.bot-rag-assignment span { display: block; }
.bot-rag-assignment small { color: #8692a4; font-size: .4rem; font-weight: 700; }
.bot-rag-assignment b { margin: 2px 0; color: #25364f; font-size: .54rem; }
.bot-rag-assignment span { color: #778499; font-size: .43rem; }
.workflow-card-bot.is-active .bot-rag-assignment > em { animation: workflow-check .32s 2.2s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.bot-publish-card { display: flex; flex-direction: column; align-items: center; padding: 17px; text-align: center; }
.bot-publish-card > small { align-self: flex-start; color: #8591a2; font-size: .45rem; font-weight: 700; letter-spacing: .09em; }
.bot-avatar { width: 52px; height: 52px; display: grid; place-items: center; margin: 19px auto 12px; border-radius: 16px; background: linear-gradient(145deg, #3569ed, #62d7ff); color: #fff; font: 700 .82rem var(--font-heading); box-shadow: 0 12px 24px rgba(55, 108, 240, .25); }
.bot-publish-card h4 { color: #17243a; font-size: .76rem; }
.bot-publish-card > p { margin: 7px 0 15px; color: #7c8899; font-size: .49rem; line-height: 1.45; }
.bot-publish-card > div { width: 100%; display: grid; gap: 5px; padding: 9px; border-block: 1px solid #edf0f4; text-align: left; }
.bot-publish-card > div > span { display: flex; gap: 5px; color: #6f7d91; font-size: .47rem; }
.bot-publish-card > div b { min-width: 12px; color: #3569ed; }
.bot-publish-card > button { width: 100%; min-height: 35px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; border: 0; border-radius: 9px; background: #3569ed; color: #fff; font-size: .54rem; }
.workflow-card-bot.is-active .bot-publish-card > button { animation: workflow-publish 1s 2.75s ease both; }
@keyframes workflow-publish { 45% { background: #2758d6; transform: scale(.97); } 100% { background: #3569ed; transform: none; } }
.bot-publish-card > em { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #318567; font-size: .49rem; font-style: normal; opacity: 0; transform: translateY(5px); }
.bot-publish-card > em i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #42c896; color: #fff; font-size: .42rem; font-style: normal; }
.workflow-card-bot.is-active .bot-publish-card > em { animation: workflow-saved .35s 3.55s ease forwards; }

/* Employee chat card */
.workflow-card-chat { background: #101319; }
.workflow-chat-product { height: 562px; display: grid; grid-template-columns: 175px minmax(0, 1fr); background: #0e1117; color: #e5e8ee; }
.workflow-chat-sidebar { position: relative; display: flex; flex-direction: column; padding: 18px 12px 12px; border-right: 1px solid #262b35; background: #12161d; }
.workflow-chat-sidebar > button { min-height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #2d3541; border-radius: 9px; background: #1a2029; color: #dce3ec; font-size: .57rem; }
.workflow-chat-sidebar > label { min-height: 34px; display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 0 10px; border: 1px solid #262d37; border-radius: 8px; color: #77879b; font-size: .53rem; }
.workflow-chat-sidebar > label i { font-style: normal; }
.workflow-chat-sidebar > p { padding: 9px 10px; border-radius: 7px; color: #8190a2; font-size: .53rem; }
.workflow-chat-sidebar > p.is-active { background: #202733; color: #e4e9f1; }
.workflow-chat-user { grid-template-columns: 30px 1fr 13px; }
.workflow-chat-user > i { color: #708094; font-style: normal; }
.workflow-chat-main { position: relative; min-width: 0; overflow: hidden; }
.workflow-model-selector { position: absolute; z-index: 2; top: 15px; left: 50%; min-width: 186px; min-height: 39px; display: grid; grid-template-columns: 29px 1fr 14px; align-items: center; gap: 8px; padding: 4px 9px; border: 1px solid #2b323e; border-radius: 11px; background: #171c24; color: #e5e9ef; text-align: left; transform: translateX(-50%); }
.workflow-model-selector > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg, #376cf0, #58bce9); color: #fff; font: 700 .47rem var(--font-heading); }
.workflow-model-selector b,
.workflow-model-selector small { display: block; }
.workflow-model-selector b { font-size: .58rem; }
.workflow-model-selector small { color: #77869a; font-size: .45rem; }
.workflow-model-selector > i { color: #7c8b9f; font-size: .53rem; font-style: normal; }
.workflow-chat-conversation { height: 100%; padding: 80px 9% 74px; overflow: hidden; }
.workflow-user-bubble { position: relative; width: min(410px, 67%); min-height: 69px; margin-left: auto; padding: 12px 16px; border-radius: 15px 15px 4px 15px; background: #3569ed; color: #fff; opacity: 0; transform: translateY(10px); }
.workflow-user-bubble small { display: block; margin-bottom: 4px; color: #c8d7ff; font-size: .45rem; }
.workflow-user-bubble p { display: inline; font-size: .64rem; line-height: 1.5; }
.workflow-typing-caret { display: inline-block; width: 1px; height: .8em; margin-left: 2px; background: #fff; vertical-align: middle; }
.workflow-card-chat.is-active .workflow-user-bubble { animation: workflow-message-in .35s .2s ease forwards; }
.workflow-card-chat.is-active .workflow-typing-caret { animation: workflow-caret .7s step-end 5; }
@keyframes workflow-message-in { to { opacity: 1; transform: none; } }
@keyframes workflow-caret { 50% { opacity: 0; } }
.workflow-thinking { width: min(430px, 76%); margin-top: 18px; opacity: 0; transform: translateY(8px); }
.workflow-card-chat.is-active .workflow-thinking { animation: workflow-message-in .35s 1.55s ease forwards; }
.workflow-thinking > button { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #b5c1d1; font-size: .55rem; }
.workflow-thinking > button > i { width: 7px; height: 7px; border-radius: 50%; background: #7599ff; box-shadow: 0 0 0 4px rgba(79, 124, 255, .12); }
.workflow-thinking > button > span { color: #647489; }
.workflow-thinking > div { display: grid; gap: 6px; margin-top: 8px; padding-left: 9px; border-left: 1px solid #303846; }
.thinking-item { min-height: 43px; display: grid; grid-template-columns: 29px 1fr 17px; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #29313d; border-radius: 10px; background: #151a22; opacity: .35; }
.thinking-item > i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: rgba(79, 124, 255, .12); color: #789bff; font-size: .55rem; font-style: normal; }
.thinking-item b,
.thinking-item small { display: block; }
.thinking-item b { color: #d4dbe5; font-size: .5rem; }
.thinking-item small { color: #6f7d90; font-size: .42rem; }
.thinking-item > em { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #3fbe8e; color: #fff; font-size: .4rem; font-style: normal; opacity: 0; }
.workflow-card-chat.is-active .thinking-knowledge { animation: workflow-thinking-done .35s 2.05s ease forwards; }
.workflow-card-chat.is-active .thinking-skill { animation: workflow-thinking-done .35s 2.55s ease forwards; }
.workflow-card-chat.is-active .thinking-knowledge > em { animation: workflow-saved .25s 2.2s ease forwards; }
.workflow-card-chat.is-active .thinking-skill > em { animation: workflow-saved .25s 2.7s ease forwards; }
@keyframes workflow-thinking-done { to { opacity: 1; border-color: #344258; } }
.workflow-answer { width: min(580px, 88%); display: grid; grid-template-columns: 32px 1fr; gap: 10px; margin-top: 16px; opacity: 0; transform: translateY(12px); }
.workflow-card-chat.is-active .workflow-answer { animation: workflow-message-in .5s 3s ease forwards; }
.workflow-answer-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #202b3b; color: #76a2ff; font: 700 .52rem var(--font-heading); }
.workflow-answer > div > small { color: #718096; font-size: .44rem; }
.workflow-answer h4 { margin: 3px 0 5px; color: #f0f3f7; font-size: .7rem; }
.workflow-answer p,
.workflow-answer li { color: #aeb9c7; font-size: .51rem; line-height: 1.48; }
.workflow-answer ol { margin: 6px 0 7px 16px; }
.workflow-answer > div > button { min-height: 31px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 7px; width: 100%; padding: 5px 8px; border: 1px solid #2c394b; border-radius: 8px; background: #151c26; color: #aebaca; text-align: left; }
.workflow-answer > div > button > span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(66, 211, 162, .14); color: #54d6aa; font-size: .42rem; }
.workflow-answer > div > button b { font-size: .46rem; }
.workflow-answer > div > button em { color: #749bff; font-size: .43rem; font-style: normal; }
.workflow-chat-entry { position: absolute; right: 9%; bottom: 15px; left: 9%; min-height: 50px; display: grid; grid-template-columns: 30px 1fr 31px; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #303743; border-radius: 15px; background: #191e26; color: #758397; font-size: .55rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.workflow-chat-entry button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #8391a4; }
.workflow-chat-entry button:last-child { background: #3569ed; color: #fff; }

/* Text and controls below the horizontal track */
.workflow-story { min-height: 190px; display: grid; grid-template-columns: minmax(0, 690px) 1fr; align-items: start; gap: 50px; padding: 21px 3px 0; }
.workflow-story-copy { position: relative; min-height: 160px; }
.workflow-story-copy article { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .36s ease, transform .45s cubic-bezier(.16, 1, .3, 1); }
.workflow-story-copy article.is-active { opacity: 1; transform: none; pointer-events: auto; }
.workflow-story-copy article > span { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; color: var(--primary); font-size: .61rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.workflow-story-copy article > span i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font: 700 .49rem var(--font-heading); font-style: normal; }
.workflow-story-copy h3 { margin-bottom: 8px; font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.025em; }
.workflow-story-copy p { max-width: 680px; color: var(--text-secondary); font-size: .81rem; line-height: 1.67; }
.workflow-navigation { align-self: center; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; justify-self: stretch; padding-top: 18px; }
.workflow-count { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: .57rem; font-style: normal; }
.workflow-count b { color: var(--text-primary); font-size: .76rem; }
.workflow-count i { width: 28px; height: 1px; background: var(--border); }
.workflow-count em { font-style: normal; }
.workflow-dots { display: flex; justify-content: center; gap: 6px; }
.workflow-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--border); cursor: pointer; transition: width .3s ease, background .3s ease; }
.workflow-dots button.is-active { width: 24px; background: var(--primary); }
.workflow-arrow-buttons { display: flex; padding: 4px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); box-shadow: 0 8px 23px rgba(31, 51, 80, .08); }
.workflow-arrow-buttons button { width: 42px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 99px; background: transparent; color: var(--text-primary); cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.workflow-arrow-buttons button:hover { background: var(--primary); color: #fff; transform: scale(1.04); }
.workflow-arrow-buttons button:disabled { color: var(--text-muted); opacity: .38; cursor: default; transform: none; }
.workflow-arrow-buttons button:focus-visible,
.workflow-dots button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Tool runtime */
.tools-section { position: relative; isolation: isolate; background: var(--fx-navy); color: #fff; }
.tools-grid-bg { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 82% 20%, rgba(79, 124, 255, .17), transparent 26%), linear-gradient(rgba(110, 146, 197, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 146, 197, .045) 1px, transparent 1px); background-size: auto, 70px 70px, 70px 70px; mask-image: linear-gradient(to bottom, #000, transparent); }
.functions-section-heading-light h2 { color: #f7faff; }
.functions-section-heading-light > p { color: #9aacbf; }
.functions-section-heading-light .functions-eyebrow { color: var(--fx-cyan); }
.tool-lab { overflow: hidden; border: 1px solid rgba(132, 161, 202, .22); border-radius: 22px; background: #101722; box-shadow: 0 38px 90px rgba(0, 0, 0, .3); color: #182232; font-family: Carlito, Arial, sans-serif; }
.tool-stage-toolbar { border-color: rgba(132, 161, 202, .14); background: #101d30; }
.tool-stage-toolbar > b { color: #657b97; }
.tool-stage-toolbar > em { color: #6b809a; }
.tool-product-shell { min-height: 660px; display: grid; grid-template-columns: 158px 1fr; background: #f5f6f8; }
.tool-admin-sidebar { position: relative; display: flex; flex-direction: column; padding: 18px 12px 13px; background: #111214; color: #787b82; }
.tool-admin-sidebar > div:first-child { display: flex; align-items: center; gap: 9px; margin: 0 5px 26px; }
.tool-admin-sidebar > div:first-child span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #212329; color: #fff; font: 800 .58rem var(--font-heading); }
.tool-admin-sidebar > div:first-child b { color: #f2f3f4; font-size: .72rem; }
.tool-admin-sidebar > small { margin: 10px 8px 5px; color: #4f5259; font-size: .45rem; letter-spacing: .1em; }
.tool-admin-sidebar > p { min-height: 34px; display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 6px; margin: 1px 0; padding: 0 8px; border-radius: 7px; font-size: .56rem; }
.tool-admin-sidebar > p i { color: #656970; font-style: normal; text-align: center; }
.tool-admin-sidebar > p.is-active { background: #282a2f; box-shadow: inset 2px 0 #6487ef; color: #f0f1f3; }
.tool-admin-sidebar > p.is-active i { color: #91aaf3; }
.tool-admin-user { position: absolute; right: 12px; bottom: 13px; left: 12px; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 7px; padding-top: 13px; border-top: 1px solid #292a2e; }
.tool-admin-user > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #25375c; color: #aec2ef; font-size: .46rem; }
.tool-admin-user > b { color: #d4d6da; font-size: .51rem; }
.tool-admin-user > i { color: #60636a; font-style: normal; }
.tool-product-workspace { position: relative; min-width: 0; overflow: hidden; padding: 25px 28px 28px; background: #f5f6f8; }
.tool-view-tabs { position: absolute; z-index: 3; top: 21px; right: 28px; display: flex; gap: 5px; padding: 4px; border: 1px solid #dce1e8; border-radius: 10px; background: #fff; box-shadow: 0 7px 18px rgba(28, 41, 63, .06); }
.tool-view-tabs > button { min-height: 32px; display: grid; grid-template-columns: 20px auto auto; align-items: center; gap: 5px; padding: 3px 7px; border: 0; border-radius: 7px; background: transparent; color: #6f7886; font: inherit; cursor: pointer; }
.tool-view-tabs > button.is-active { background: #15181e; color: #fff; }
.tool-view-tabs > button i { font-size: .52rem; font-style: normal; }
.tool-view-tabs > button span { font-size: .55rem; font-weight: 700; }
.tool-view-tabs > button b { padding: 2px 4px; border-radius: 99px; background: #edf1f7; color: #788292; font-size: .36rem; font-weight: 600; }
.tool-view-tabs > button.is-active b { background: #2c313b; color: #aab6ca; }
.tool-product-panel { min-height: 596px; padding-top: 2px; animation: fx-tool-product-panel .4s ease both; }
@keyframes fx-tool-product-panel { from { opacity: 0; transform: translateY(7px); } }
.tool-workspace-head { min-height: 85px; display: flex; align-items: flex-start; justify-content: space-between; padding-right: 250px; }
.tool-workspace-head small { color: #9ba2ad; font-size: .47rem; }
.tool-workspace-head h3 { margin: 4px 0 3px; color: #111927; font-size: 1.15rem; }
.tool-workspace-head h3 span { display: inline-grid; place-items: center; min-width: 22px; height: 19px; margin-left: 4px; border-radius: 99px; background: #e8ebf0; color: #707987; font-size: .48rem; vertical-align: middle; }
.tool-workspace-head p { color: #89919d; font-size: .55rem; }
.tool-workspace-head > button { min-height: 35px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 0; border-radius: 8px; background: #171a20; color: #fff; font: inherit; cursor: pointer; }
.tool-library-panel .tool-workspace-head > button { display: none; }
.tool-workspace-head > button span { color: #a9bfff; font-size: .8rem; }
.tool-workspace-head > button b { font-size: .52rem; }
.tool-library-controls { min-height: 48px; display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid #dfe3e9; border-bottom: 0; border-radius: 10px 10px 0 0; background: #fff; }
.tool-library-controls label { width: 205px; min-height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #e1e5eb; border-radius: 7px; background: #fafbfc; color: #949ba6; font-size: .48rem; }
.tool-library-controls label i { font-style: normal; }
.tool-library-controls > button { min-height: 32px; display: flex; align-items: center; gap: 12px; padding: 0 9px; border: 1px solid #e1e5eb; border-radius: 7px; background: #fff; color: #737d8d; font: inherit; font-size: .48rem; }
.tool-library-controls > button i { font-style: normal; }
.tool-library-controls > em { display: flex; align-items: center; gap: 6px; margin-left: auto; padding-right: 6px; color: #728092; font-size: .47rem; font-style: normal; }
.tool-library-controls > em i { width: 6px; height: 6px; border-radius: 50%; background: #36bd88; box-shadow: 0 0 0 4px #e7f7f0; }
.tool-admin-table { overflow: hidden; border: 1px solid #dfe3e9; border-radius: 0 0 10px 10px; background: #fff; }
.tool-table-head,
.tool-table-row { width: 100%; display: grid; grid-template-columns: minmax(205px, 2fr) .68fr .62fr .9fr .58fr; align-items: center; gap: 9px; padding: 0 13px; text-align: left; }
.tool-table-head { min-height: 31px; border-bottom: 1px solid #e6e9ee; background: #f8f9fb; color: #9ba2ac; font-size: .4rem; letter-spacing: .05em; }
.tool-table-row { position: relative; min-height: 52px; border: 0; border-bottom: 1px solid #eceef2; background: #fff; color: #526071; font: inherit; cursor: pointer; transition: background .22s ease, box-shadow .22s ease; }
.tool-table-row:last-child { border-bottom: 0; }
.tool-table-row:hover { background: #f8faff; }
.tool-table-row.is-active { z-index: 1; background: #f0f5ff; box-shadow: inset 3px 0 #537ae0; }
.tool-table-row > span { min-width: 0; }
.tool-table-row > span:first-child { display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 8px; }
.tool-table-row > span:first-child > i { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #edf1fa; color: #4f73cb; font-size: .38rem; font-style: normal; font-weight: 700; }
.tool-table-row > span:first-child b,
.tool-table-row > span:first-child small,
.tool-table-row > span:nth-child(2) b,
.tool-table-row > span:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-table-row > span:first-child b { color: #303b4b; font: 600 .5rem monospace; }
.tool-table-row > span:first-child small { margin-top: 2px; color: #9ba2ad; font-size: .41rem; }
.tool-table-row > span:nth-child(2) b { color: #586476; font-size: .45rem; }
.tool-table-row > span:nth-child(2) small { color: #a0a7b2; font-size: .38rem; }
.tool-table-row > span:nth-child(3) { display: flex; align-items: center; gap: 5px; }
.tool-table-row > span:nth-child(3) > i { width: 5px; height: 5px; border-radius: 50%; background: #36bb87; }
.tool-table-row > span:nth-child(3) b { color: #4f9a7c; font-size: .43rem; }
.tool-table-row > span:nth-child(4) { display: flex; align-items: center; }
.tool-table-row > span:nth-child(4) > i { width: 24px; height: 24px; display: grid; place-items: center; margin-right: -4px; border: 2px solid #fff; border-radius: 50%; background: #e9eef8; color: #536eaa; font-size: .33rem; font-style: normal; }
.tool-table-row > span:nth-child(4) > small { margin-left: 8px; color: #8c95a2; font-size: .39rem; }
.tool-table-row > span:last-child { display: flex; align-items: center; justify-content: space-between; }
.tool-table-row > span:last-child b { color: #778191; font-size: .43rem; }
.tool-table-row > span:last-child i { color: #a3aab4; font-style: normal; }
.tool-library-note { min-height: 54px; display: flex; align-items: center; gap: 15px; margin-top: 10px; padding: 8px 11px; border: 1px solid #dfe3e9; border-radius: 9px; background: #fff; }
.tool-library-note > span { display: flex; align-items: center; gap: 6px; color: #364154; font-size: .49rem; }
.tool-library-note > span i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: #e8f8f1; color: #35a97e; font-style: normal; }
.tool-library-note > p { color: #8b939f; font-size: .46rem; }
.tool-library-note > button { display: flex; align-items: center; gap: 6px; margin-left: auto; border: 0; background: transparent; color: #4c6fc3; font: inherit; font-size: .46rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tool-library-note > button i { font-style: normal; }

.tool-studio-head { padding-right: 0; }
.tool-studio-head > button.tool-back-button { background: #fff; border: 1px solid #dce1e8; color: #596577; }
.tool-studio-head > button.tool-back-button i { color: #657184; font-style: normal; }
.tool-studio-layout { display: grid; grid-template-columns: 1fr 235px; align-items: start; gap: 13px; }
.tool-studio-form { display: grid; gap: 9px; }
.tool-studio-form > article { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 13px; border: 1px solid #dfe3e9; border-radius: 10px; background: #fff; }
.tool-studio-form > article > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #15181d; color: #fff; font-size: .46rem; }
.tool-studio-form h4 { color: #303a49; font-size: .61rem; }
.tool-studio-form p { margin-top: 2px; color: #969da8; font-size: .43rem; }
.tool-studio-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.tool-studio-types > button { min-height: 58px; display: grid; grid-template-columns: 28px 1fr 12px; align-items: center; gap: 6px; padding: 7px; border: 1px solid #e0e4e9; border-radius: 8px; background: #fff; color: #526071; text-align: left; }
.tool-studio-types > button.is-active { border-color: #7697e4; background: #f1f5ff; box-shadow: 0 0 0 2px #e7edfc; }
.tool-studio-types > button > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #edf1fa; color: #5375c7; font-size: .38rem; font-style: normal; }
.tool-studio-types b,
.tool-studio-types small { display: block; }
.tool-studio-types b { font-size: .45rem; }
.tool-studio-types small { margin-top: 2px; color: #9ca3ae; font-size: .35rem; line-height: 1.2; }
.tool-studio-types em { color: #4e75d0; font-size: .44rem; font-style: normal; }
.tool-studio-drop { min-height: 54px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 9px; border: 1px dashed #bfcce8; border-radius: 8px; background: #f8faff; }
.tool-studio-drop > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #e9effd; color: #5577c9; font-style: normal; }
.tool-studio-drop b,
.tool-studio-drop small { display: block; }
.tool-studio-drop b { color: #4c5869; font-size: .46rem; }
.tool-studio-drop small { color: #919aa7; font-size: .38rem; }
.tool-studio-drop > em { color: #5473ba; font-size: .4rem; font-style: normal; }
.tool-studio-fields { display: grid; grid-template-columns: 1.5fr .7fr; gap: 6px; margin-top: 7px; }
.tool-studio-fields label { padding: 7px 9px; border: 1px solid #e0e4e9; border-radius: 7px; }
.tool-studio-fields small,
.tool-studio-fields span { display: block; }
.tool-studio-fields small { color: #9ca3ae; font-size: .35rem; }
.tool-studio-fields span { margin-top: 3px; color: #4e596a; font-size: .44rem; }
.tool-studio-assignment label { min-height: 48px; display: grid; grid-template-columns: 30px 1fr 18px; align-items: center; gap: 8px; margin-top: 9px; padding: 6px 8px; border: 1px solid #dfe4eb; border-radius: 8px; background: #fafbfc; }
.tool-studio-assignment label > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #eaf0fd; color: #5071bf; font-size: .38rem; font-style: normal; }
.tool-studio-assignment label b,
.tool-studio-assignment label small { display: block; }
.tool-studio-assignment label b { color: #455164; font-size: .46rem; }
.tool-studio-assignment label small { color: #959da8; font-size: .37rem; }
.tool-studio-assignment label > em { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; background: #4c72d2; color: #fff; font-size: .38rem; font-style: normal; }
.tool-json-preview { position: sticky; top: 0; padding: 17px; border-radius: 11px; background: #12151b; color: #fff; box-shadow: 0 18px 35px rgba(18, 25, 38, .14); }
.tool-json-preview > small { color: #667084; font-size: .4rem; letter-spacing: .09em; }
.tool-json-preview > h4 { margin-top: 5px; font-size: .76rem; }
.tool-code-tabs { display: flex; gap: 14px; margin-top: 16px; border-bottom: 1px solid #292f39; }
.tool-code-tabs span { padding-bottom: 7px; color: #626c7c; font-size: .41rem; }
.tool-code-tabs span.is-active { border-bottom: 1px solid #7597f0; color: #a9bff6; }
.tool-json-preview code { display: block; min-height: 280px; padding-top: 15px; color: #8e9bad; font: .43rem/1.85 monospace; white-space: nowrap; }
.tool-json-preview code i { color: #9bb2ed; font-style: normal; }
.tool-json-preview code b { color: #91c9b4; font-weight: 500; }
.tool-json-preview code em { color: #d0a77d; font-style: normal; }
.tool-json-valid { display: flex; align-items: center; gap: 6px; margin-bottom: 13px; color: #71cba9; font-size: .42rem; }
.tool-json-valid i { width: 6px; height: 6px; border-radius: 50%; background: #43c896; }
.tool-json-preview > button { width: 100%; min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 0; border-radius: 8px; background: #f3f5f7; color: #202733; font: inherit; font-size: .47rem; font-weight: 700; }
.tool-json-preview > button i { font-style: normal; }





/* Knowledge pipelines */
.knowledge-section { background: var(--background); }
.knowledge-flow { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 21px; background: var(--surface); box-shadow: var(--card-shadow-hover); }
.knowledge-flow-head { min-height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--border); background: var(--surface-elevated); }
.knowledge-flow-head > span { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: .66rem; text-transform: uppercase; }
.knowledge-flow-head > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 10%, transparent); }
.knowledge-flow-head > small { color: var(--text-muted); font-size: .62rem; }
.knowledge-flow-body { display: grid; grid-template-columns: .8fr 45px 1fr 45px 1fr; align-items: stretch; min-height: 490px; padding: 35px; }
.flow-column { min-width: 0; padding: 21px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-elevated); }
.flow-column-label { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.flow-column-label span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-glow); color: var(--primary); font: 700 .58rem var(--font-heading); }
.flow-column-label b { font-size: .78rem; text-transform: uppercase; }
.source-stack,
.pipeline-stack { display: grid; gap: 10px; }
.source-stack article { min-height: 70px; display: grid; grid-template-columns: 37px 1fr 15px; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.source-stack article > i { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-glow); color: var(--primary); font-size: .58rem; font-style: normal; font-weight: 700; }
.source-stack b,
.source-stack small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-stack b { font-size: .7rem; }
.source-stack small { color: var(--text-muted); font-size: .57rem; }
.source-stack article > em { color: var(--success); font-size: .63rem; font-style: normal; }
.source-stack article.source-custom { border-style: dashed; }
.source-stack article.source-custom > i { background: transparent; border: 1px dashed var(--primary); }
.pipeline-stack article { min-height: 64px; display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.pipeline-stack article > i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-glow); color: var(--primary); font-size: .52rem; font-style: normal; font-weight: 700; }
.pipeline-stack b,
.pipeline-stack small { display: block; }
.pipeline-stack b { font-size: .67rem; }
.pipeline-stack small { color: var(--text-muted); font-size: .55rem; }
.flow-arrow { display: flex; align-items: center; justify-content: center; position: relative; }
.flow-arrow span { width: 24px; height: 1px; background: var(--border); }
.flow-arrow i { color: var(--primary); font-style: normal; }
.retrieval-query { min-height: 73px; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.retrieval-query > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-glow); color: var(--primary); }
.retrieval-query small,
.retrieval-query b { display: block; }
.retrieval-query small { color: var(--text-muted); font-size: .54rem; text-transform: uppercase; }
.retrieval-query b { margin-top: 2px; font-size: .67rem; }
.retrieval-steps { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 25px 0; }
.retrieval-steps::before { content: ""; position: absolute; top: -25px; bottom: -25px; left: 50%; width: 1px; background: linear-gradient(transparent, var(--border), transparent); }
.retrieval-steps span { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-secondary); font-size: .57rem; }
.retrieval-steps span i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.retrieval-result { min-height: 75px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid color-mix(in srgb, var(--success) 30%, var(--border)); border-radius: 11px; background: color-mix(in srgb, var(--success) 4%, var(--surface)); }
.retrieval-result > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.retrieval-result small,
.retrieval-result b { display: block; }
.retrieval-result small { color: var(--text-muted); font-size: .53rem; text-transform: uppercase; }
.retrieval-result b { margin-top: 2px; font-size: .65rem; }
.retrieval-result em { color: var(--success); font-size: .62rem; font-style: normal; font-weight: 700; }
.knowledge-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 17px; }
.knowledge-value-grid article { min-height: 255px; padding: 29px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.knowledge-value-grid article > span { display: inline-block; margin-bottom: 29px; padding: 5px 8px; border-radius: 6px; background: var(--primary-glow); color: var(--primary); font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.knowledge-value-grid h3 { margin-bottom: 12px; font-size: 1.08rem; line-height: 1.35; }
.knowledge-value-grid p { color: var(--text-secondary); font-size: .8rem; line-height: 1.65; }

/* Hot-plug extension story */
.hotplug-section { border-block: 1px solid var(--border); background: var(--surface-elevated); }
.hotplug-layout { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(590px, 1.28fr); align-items: center; gap: 80px; }
.hotplug-copy h2 { margin-bottom: 22px; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; }
.hotplug-copy > p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
.hotplug-points { display: grid; gap: 13px; margin-top: 31px; }
.hotplug-points article { display: grid; grid-template-columns: 39px 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.hotplug-points article > i { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-glow); color: var(--primary); font-style: normal; }
.hotplug-points article > i .material-icons-outlined { font-size: 20px; }
.hotplug-points b,
.hotplug-points small { display: block; }
.hotplug-points b { font-size: .78rem; }
.hotplug-points small { margin-top: 3px; color: var(--text-muted); font-size: .67rem; line-height: 1.45; }
.hotplug-console { overflow: hidden; border: 1px solid rgba(91, 110, 139, .32); border-radius: 20px; background: #111722; color: #fff; box-shadow: 0 32px 85px rgba(15, 30, 55, .23); font-family: Carlito, Arial, sans-serif; }
.hotplug-windowbar { border-color: #293345; background: #111722; }
.hotplug-windowbar > b { color: #758399; }
.hotplug-windowbar > em { color: #738299; }
.hotplug-progress { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 12px; border-bottom: 1px solid #293345; background: #141c29; }
.hotplug-progress::before { content: ""; position: absolute; top: 28px; right: 17%; left: 17%; height: 1px; background: #344056; }
.hotplug-progress > button { position: relative; z-index: 1; min-height: 51px; display: grid; grid-template-columns: 27px 1fr; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 8px; padding: 4px 8px; border: 0; background: transparent; color: #69778b; font: inherit; text-align: left; cursor: pointer; }
.hotplug-progress > button > span { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #3b485d; border-radius: 8px; background: #151e2c; color: #718198; font: 700 .43rem var(--font-heading); transition: .25s ease; }
.hotplug-progress > button > i { position: absolute; z-index: -1; top: 22px; right: 0; left: 0; height: 12px; background: #141c29; }
.hotplug-progress > button b { align-self: end; color: #8391a4; font-size: .53rem; }
.hotplug-progress > button small { align-self: start; color: #56657b; font-size: .43rem; }
.hotplug-progress > button.is-active > span { border-color: #6f91eb; background: #3159bd; color: #fff; box-shadow: 0 0 0 4px rgba(79, 124, 255, .12); }
.hotplug-progress > button.is-active b { color: #d9e2f1; }
.hotplug-progress > button.is-active small { color: #7d98d9; }
.hotplug-progress > button.is-complete > span { border-color: #409a78; background: #17372f; color: #71d2ae; }
.hotplug-product-stage { position: relative; height: 500px; overflow: hidden; background: #f4f5f8; color: #172132; }
.hotplug-screen { position: absolute; inset: 0; grid-template-columns: 112px 1fr; background: #f4f5f8; animation: fx-hotplug-screen .5s cubic-bezier(.22, .8, .25, 1) both; }
.hotplug-screen.is-active { display: grid; }
@keyframes fx-hotplug-screen { from { opacity: 0; transform: translateX(13px); } }
.hp-admin-sidebar { position: relative; display: flex; flex-direction: column; padding: 13px 8px 10px; background: #111214; color: #73767d; }
.hp-admin-sidebar > div:first-child { display: flex; align-items: center; gap: 7px; margin: 0 4px 18px; }
.hp-admin-sidebar > div:first-child span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #22242a; color: #fff; font: 800 .48rem var(--font-heading); }
.hp-admin-sidebar > div:first-child b { color: #f0f1f3; font-size: .59rem; }
.hp-admin-sidebar > small { margin: 8px 6px 4px; color: #484b52; font-size: .36rem; letter-spacing: .08em; }
.hp-admin-sidebar > p { min-height: 28px; display: grid; grid-template-columns: 17px 1fr; align-items: center; gap: 5px; margin: 1px 0; padding: 0 6px; border-radius: 6px; font-size: .45rem; }
.hp-admin-sidebar > p.is-active { background: #282a2f; box-shadow: inset 2px 0 #6689ef; color: #eef0f3; }
.hp-admin-sidebar > div:last-child { position: absolute; right: 9px; bottom: 10px; left: 9px; display: flex; align-items: center; gap: 6px; padding-top: 9px; border-top: 1px solid #292a2e; }
.hp-admin-sidebar > div:last-child i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #27385c; color: #a8bce9; font-size: .38rem; font-style: normal; }
.hp-admin-sidebar > div:last-child b { color: #cdd0d5; font-size: .43rem; }
.hp-admin-main { position: relative; min-width: 0; overflow: hidden; padding: 15px 17px; background: #f4f5f8; }
.hp-breadcrumb { display: flex; gap: 6px; margin-bottom: 11px; color: #929aa6; font-size: .4rem; }
.hp-breadcrumb i { font-style: normal; }
.hp-breadcrumb b { color: #596476; }
.hp-admin-main > header { min-height: 45px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; margin-bottom: 11px; }
.hp-admin-main > header > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #111318; color: #fff; font-size: .55rem; }
.hp-admin-main > header small,
.hp-admin-main > header h3 { display: block; }
.hp-admin-main > header small { color: #999faa; font-size: .37rem; letter-spacing: .06em; }
.hp-admin-main > header h3 { margin-top: 2px; color: #141d2b; font-size: .8rem; }
.hp-admin-main > header > em { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #e0e4e9; border-radius: 99px; background: #fff; color: #6f7989; font-size: .4rem; font-style: normal; }
.hp-admin-main > header > em i { width: 5px; height: 5px; border-radius: 50%; background: #e0a64f; }
.hp-create-layout { display: grid; grid-template-columns: 1fr 143px; align-items: start; gap: 9px; }
.hp-create-layout > div { display: grid; gap: 7px; }
.hp-create-layout > div > article { min-height: 78px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid #dfe3e9; border-radius: 9px; background: #fff; }
.hp-create-layout > div > article > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #15171c; color: #fff; font-size: .4rem; }
.hp-create-layout article small,
.hp-create-layout article h4,
.hp-create-layout article p { display: block; }
.hp-create-layout article small { color: #9da4ae; font-size: .34rem; letter-spacing: .05em; }
.hp-create-layout article h4 { margin-top: 2px; color: #3a4555; font-size: .5rem; }
.hp-create-layout article p { margin-top: 2px; color: #9199a5; font-size: .39rem; line-height: 1.35; }
.hp-create-layout article > em { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; background: #e8f7f1; color: #32ab7e; font-size: .4rem; font-style: normal; }
.hp-create-layout > aside { padding: 13px; border-radius: 10px; background: #12151b; color: #fff; }
.hp-create-layout > aside > small { color: #647084; font-size: .35rem; letter-spacing: .07em; }
.hp-create-layout > aside h4 { margin-top: 4px; font-size: .61rem; }
.hp-create-layout > aside code { display: block; min-height: 145px; padding-top: 13px; color: #8896aa; font: .36rem/1.8 monospace; white-space: nowrap; }
.hp-create-layout > aside > span { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; color: #65c9a5; font-size: .37rem; }
.hp-create-layout > aside > span i { width: 5px; height: 5px; border-radius: 50%; background: #43cb98; }
.hp-create-layout > aside > button { width: 100%; min-height: 29px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border: 0; border-radius: 7px; background: #f3f5f7; color: #202733; font: inherit; font-size: .4rem; font-weight: 700; }
.hp-create-layout > aside > button i { font-style: normal; }
.hp-save-toast { position: absolute; right: 17px; bottom: 15px; display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #bfe6d6; border-radius: 9px; background: #f3fcf8; box-shadow: 0 12px 28px rgba(32, 85, 64, .12); opacity: 0; transform: translateY(8px); }
.hotplug-create-screen.is-active .hp-save-toast { animation: fx-hotplug-toast .4s 1.05s ease forwards; }
@keyframes fx-hotplug-toast { to { opacity: 1; transform: none; } }
.hp-save-toast > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #dff5ec; color: #2fa87b; font-size: .48rem; }
.hp-save-toast b,
.hp-save-toast small { display: block; }
.hp-save-toast b { color: #3c6657; font-size: .44rem; }
.hp-save-toast small { color: #74a292; font-size: .37rem; }

.hp-version { border-color: #c9d6f4 !important; background: #f2f6ff !important; color: #5d78b7 !important; }
.hp-version b,
.hp-version span { font-size: .39rem; }
.hp-bot-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 9px; overflow: hidden; border: 1px solid #dfe3e9; border-radius: 9px; background: #fff; }
.hp-bot-summary article { min-height: 55px; display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; border-right: 1px solid #e8ebef; }
.hp-bot-summary article:last-child { border: 0; }
.hp-bot-summary small { color: #9ba2ad; font-size: .34rem; }
.hp-bot-summary b { margin-top: 4px; color: #4b5667; font-size: .46rem; }
.hp-assignment-card { padding: 11px; border: 1px solid #dfe3e9; border-radius: 10px; background: #fff; }
.hp-assignment-card > div { min-height: 34px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 8px; margin-bottom: 7px; }
.hp-assignment-card > div > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #15171c; color: #fff; font-size: .39rem; }
.hp-assignment-card > div small,
.hp-assignment-card > div b { display: block; }
.hp-assignment-card > div small { color: #9aa2ad; font-size: .34rem; }
.hp-assignment-card > div b { color: #3f4a5b; font-size: .49rem; }
.hp-assignment-card > div > em { color: #8a93a0; font-size: .42rem; font-style: normal; }
.hp-assignment-card > label { min-height: 50px; display: grid; grid-template-columns: 30px 1fr 18px; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 8px; border: 1px solid #e2e5ea; border-radius: 8px; background: #fafbfc; }
.hp-assignment-card > label > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #ebf0fb; color: #5274c6; font-size: .37rem; font-style: normal; }
.hp-assignment-card > label b,
.hp-assignment-card > label small { display: block; }
.hp-assignment-card > label b { color: #465264; font: 600 .44rem monospace; }
.hp-assignment-card > label small { color: #969eaa; font-size: .37rem; }
.hp-assignment-card > label > em { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; background: #4d73d2; color: #fff; font-size: .37rem; font-style: normal; }
.hp-assignment-card > label.hp-new-tool { border-color: #7596e1; background: #f0f5ff; box-shadow: 0 0 0 2px #e7edfc; animation: fx-new-tool-pulse 1.5s ease infinite; }
@keyframes fx-new-tool-pulse { 50% { box-shadow: 0 0 0 5px rgba(79, 124, 255, .08); } }
.hp-version-event { min-height: 49px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 7px; margin-top: 9px; padding: 7px 10px; border: 1px solid #bfe5d6; border-radius: 9px; background: #f1fbf7; }
.hp-version-event > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #dcf4ea; color: #2daa7b; }
.hp-version-event b,
.hp-version-event small { display: block; }
.hp-version-event b { color: #3c6657; font-size: .43rem; }
.hp-version-event small { color: #78a294; font-size: .36rem; }
.hp-version-event time { color: #70a08f; font-size: .36rem; }

.hotplug-use-screen { grid-template-columns: 112px 1fr; background: #090a0d; color: #fff; }
.hp-chat-sidebar { position: relative; display: flex; flex-direction: column; padding: 13px 8px 10px; border-right: 1px solid #222328; background: #0c0d10; }
.hp-chat-sidebar > div:first-child { display: flex; align-items: center; gap: 7px; margin: 0 4px 17px; }
.hp-chat-sidebar > div:first-child span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #202227; color: #fff; font: 800 .48rem var(--font-heading); }
.hp-chat-sidebar > div:first-child b { font-size: .58rem; }
.hp-chat-sidebar > button { min-height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid #2b2d32; border-radius: 7px; background: #15161a; color: #d8dade; font: inherit; font-size: .45rem; text-align: left; }
.hp-chat-sidebar > small { margin: 19px 6px 5px; color: #54575f; font-size: .35rem; }
.hp-chat-sidebar > p { padding: 7px 6px; overflow: hidden; border-radius: 6px; color: #666a73; font-size: .42rem; text-overflow: ellipsis; white-space: nowrap; }
.hp-chat-sidebar > p.is-active { background: #191a1f; color: #d4d6da; }
.hp-chat-sidebar > div:last-child { position: absolute; right: 9px; bottom: 10px; left: 9px; display: flex; align-items: center; gap: 6px; padding-top: 9px; border-top: 1px solid #24252a; }
.hp-chat-sidebar > div:last-child i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #27395e; color: #aac0ef; font-size: .37rem; font-style: normal; }
.hp-chat-sidebar > div:last-child b { color: #d1d3d7; font-size: .43rem; }
.hp-chat-main { position: relative; min-width: 0; overflow: hidden; background: radial-gradient(circle at 53% 21%, #1b1d25, #090a0d 44%); }
.hp-chat-model { position: absolute; top: 13px; left: 50%; min-width: 138px; min-height: 32px; display: grid; grid-template-columns: 25px 1fr 14px; align-items: center; gap: 6px; padding: 3px 7px; border: 1px solid #303239; border-radius: 8px; background: #16171b; transform: translateX(-50%); }
.hp-chat-model > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #25365a; color: #a9bff0; font-size: .38rem; }
.hp-chat-model b { font-size: .48rem; }
.hp-chat-model i { color: #666a72; font-style: normal; }
.hp-chat-orb { position: absolute; top: 62px; left: 50%; width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid #3d4660; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #8e7ddb, #474166 45%, #1c1d28 70%); box-shadow: 0 0 40px rgba(124, 107, 199, .2); transform: translateX(-50%); }
.hp-chat-orb span { font: 700 .52rem var(--font-heading); }
.hp-user-message { position: absolute; top: 126px; right: 22px; max-width: 270px; padding: 10px 12px; border-radius: 11px 11px 3px 11px; background: #202126; }
.hp-user-message small { color: #696d75; font-size: .36rem; }
.hp-user-message p { margin-top: 3px; color: #d6d8dc; font-size: .46rem; line-height: 1.35; }
.hp-thinking { position: absolute; top: 183px; left: 26px; display: flex; align-items: center; gap: 8px; }
.hp-thinking > span { width: 22px; height: 22px; border: 2px solid #343741; border-top-color: #7f95cb; border-radius: 50%; animation: fx-spin 1.1s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.hp-thinking b,
.hp-thinking small { display: block; }
.hp-thinking b { color: #b4b8c0; font-size: .42rem; }
.hp-thinking small { color: #5f6470; font-size: .36rem; }
.hp-approval-modal { position: absolute; z-index: 3; top: 50%; left: 50%; width: min(340px, calc(100% - 32px)); padding: 15px; border: 1px solid #34373f; border-radius: 13px; background: #17181c; box-shadow: 0 25px 65px rgba(0, 0, 0, .55); transform: translate(-50%, -38%); animation: fx-approval-modal .55s .25s ease both; }
@keyframes fx-approval-modal { from { opacity: 0; transform: translate(-50%, -32%) scale(.97); } }
.hp-modal-icon { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 9px; background: #283658; color: #9ab4f0; font-size: .52rem; }
.hp-modal-copy > small { color: #6f7683; font-size: .34rem; letter-spacing: .07em; }
.hp-modal-copy h3 { margin-top: 3px; color: #f1f2f4; font-size: .78rem; }
.hp-modal-copy p { margin-top: 3px; color: #81858e; font-size: .41rem; }
.hp-approval-modal > code { display: block; margin: 11px 0; padding: 8px; overflow: hidden; border: 1px solid #2d3037; border-radius: 7px; background: #111216; color: #9ba9be; font: .37rem/1.5 monospace; text-overflow: ellipsis; white-space: nowrap; }
.hp-approval-facts { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #2c2f36; border-radius: 8px; }
.hp-approval-facts > span { padding: 7px; border-right: 1px solid #2c2f36; }
.hp-approval-facts > span:last-child { border: 0; }
.hp-approval-facts small,
.hp-approval-facts b { display: block; }
.hp-approval-facts small { color: #5d626c; font-size: .31rem; }
.hp-approval-facts b { margin-top: 3px; color: #a7abb3; font-size: .38rem; }
.hp-approval-modal footer { display: flex; justify-content: flex-end; gap: 5px; margin-top: 12px; }
.hp-approval-modal footer button { min-height: 28px; padding: 0 9px; border: 1px solid #30333a; border-radius: 7px; background: #202126; color: #8f939c; font: inherit; font-size: .38rem; font-weight: 600; }
.hp-approval-modal footer button.is-primary { border-color: #708fd9; background: #4d70c5; color: #fff; }
.hp-chat-input { position: absolute; right: 24px; bottom: 16px; left: 24px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid #2e3036; border-radius: 10px; background: #16171b; color: #656972; font-size: .43rem; }
.hp-chat-input i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: #e8e9ec; color: #15161a; font-style: normal; }
.hotplug-footer { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-top: 1px solid #293345; background: #111722; }
.hotplug-footer > span { display: flex; align-items: center; gap: 7px; color: #7f8da2; font-size: .52rem; }
.hotplug-footer > span i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--fx-green); }
.hotplug-footer button { flex: 0 0 auto; border: 0; background: transparent; color: #81a2f7; font: 600 .54rem var(--font-body); cursor: pointer; }

/* Existing interactive admin product preview */
#steuerung .admin-section { padding: 125px 0; }
#steuerung .admin-text-header { max-width: 930px; }
#steuerung .admin-text-header .section-title { font-size: clamp(2.1rem, 4.3vw, 3.55rem); line-height: 1.1; letter-spacing: -.04em; }
#steuerung .admin-text-header .section-subtitle { max-width: 760px; margin-inline: auto; line-height: 1.7; }

/* Deployment */
.deployment-section { background: var(--background); }
.deployment-console { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--card-shadow-hover); }
.deployment-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px; border-bottom: 1px solid var(--border); background: var(--surface-elevated); }
.deployment-tabs button { min-height: 74px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text-secondary); font: inherit; cursor: pointer; transition: .2s ease; }
.deployment-tabs button.is-active { border-color: var(--border); background: var(--surface); box-shadow: var(--card-shadow); color: var(--text-primary); }
.deployment-tabs button > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-glow); color: var(--primary); font-style: normal; }
.deployment-tabs button > i .material-icons-outlined { font-size: 20px; }
.deployment-tabs button b,
.deployment-tabs button small { display: block; text-align: left; }
.deployment-tabs button b { font-size: .78rem; }
.deployment-tabs button small { color: var(--text-muted); font-size: .6rem; }
.deployment-diagram { min-height: 350px; display: grid; grid-template-columns: 105px 74px 1fr 74px 190px; align-items: center; gap: 7px; padding: 38px; background: radial-gradient(circle at center, var(--primary-glow), transparent 32%), linear-gradient(rgba(107, 136, 178, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(107, 136, 178, .045) 1px, transparent 1px); background-size: auto, 43px 43px, 43px 43px; }
.deployment-users { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: center; }
.deployment-users > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--primary); font-size: .65rem; font-weight: 700; }
.deployment-users > span:nth-child(3) { grid-column: 1 / -1; justify-self: center; }
.deployment-users small { grid-column: 1 / -1; margin-top: 5px; color: var(--text-muted); font-size: .58rem; }
.deployment-line { position: relative; display: flex; align-items: center; }
.deployment-line i { width: 100%; height: 1px; background: var(--border); }
.deployment-line span { position: absolute; left: 50%; padding: 2px 4px; background: var(--surface); color: var(--text-muted); font-size: .47rem; transform: translateX(-50%); white-space: nowrap; }
.deployment-boundary { position: relative; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 24px 21px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: 18px; background: color-mix(in srgb, var(--primary) 3%, var(--surface)); }
.boundary-label { position: absolute; top: -12px; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text-secondary); font-size: .59rem; }
.boundary-label i { color: var(--success); font-style: normal; }
.boundary-core { min-width: 195px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: 13px; background: var(--surface); box-shadow: var(--card-shadow); }
.boundary-core > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; background: var(--primary); color: #fff; font: 700 .8rem var(--font-heading); }
.boundary-core small,
.boundary-core b { display: block; }
.boundary-core small { color: var(--text-muted); font-size: .53rem; text-transform: uppercase; }
.boundary-core b { font-size: .68rem; }
.boundary-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 17px; }
.boundary-services > span { min-width: 92px; padding: 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); text-align: center; }
.boundary-services i,
.boundary-services b { display: block; }
.boundary-services i { color: var(--primary); font-size: .51rem; font-style: normal; }
.boundary-services b { margin-top: 2px; font-size: .54rem; }
.deployment-providers { display: grid; gap: 10px; }
.deployment-providers article { min-height: 77px; display: grid; grid-template-columns: 36px 1fr 16px; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: opacity .3s ease, transform .3s ease, border-color .3s ease; }
.deployment-providers article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-glow); color: var(--primary); font: 700 .6rem var(--font-heading); }
.deployment-providers small,
.deployment-providers b { display: block; }
.deployment-providers small { color: var(--text-muted); font-size: .51rem; text-transform: uppercase; }
.deployment-providers b { font-size: .63rem; }
.deployment-providers article > i { color: var(--success); font-style: normal; }
.deployment-console[data-mode="local"] .provider-cloud { opacity: .25; transform: scale(.96); }
.deployment-console[data-mode="local"] .deployment-provider-line { opacity: .28; }
.deployment-console[data-mode="hybrid"] .provider-local,
.deployment-console[data-mode="hybrid"] .provider-cloud { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.deployment-console[data-mode="api"] .provider-local { opacity: .35; transform: scale(.96); }
.deployment-copy { border-top: 1px solid var(--border); }
.deployment-copy article { min-height: 128px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 18px; padding: 25px 34px; animation: fx-output-in .35s ease both; }
.deployment-copy article > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-glow); color: var(--primary); font: 700 .62rem var(--font-heading); }
.deployment-copy h3 { margin-bottom: 5px; font-size: 1.15rem; }
.deployment-copy p { color: var(--text-secondary); font-size: .78rem; }
.deployment-copy article > b { padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--success) 25%, var(--border)); border-radius: 99px; color: var(--success); font-size: .62rem; white-space: nowrap; }
.deployment-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 16px; }
.deployment-benefits article { min-height: 155px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.deployment-benefits article > i { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 9px; background: var(--primary-glow); color: var(--primary); font-style: normal; }
.deployment-benefits article > i .material-icons-outlined { font-size: 19px; }
.deployment-benefits article > b { margin-bottom: 5px; font-size: .77rem; }
.deployment-benefits article > span { color: var(--text-muted); font-size: .68rem; line-height: 1.5; }

/* Pilot close */
.pilot-story { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(145deg, #06101e, #0a1830); color: #fff; }
.pilot-story-glow { position: absolute; z-index: -1; top: -260px; right: -120px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 124, 255, .22), transparent 65%); }
.pilot-story-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(470px, 1.1fr); align-items: center; gap: 90px; }
.pilot-story-copy .functions-eyebrow { color: var(--fx-cyan); }
.pilot-story-copy h2 { margin-bottom: 23px; color: #f7faff; font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.07; letter-spacing: -.05em; }
.pilot-story-copy > p { color: #a4b5ca; font-size: 1rem; line-height: 1.75; }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.pilot-actions .btn { min-height: 50px; border-radius: 10px; }
.pilot-security-link { border: 1px solid rgba(151, 180, 218, .22); color: #d8e3f1; }
.pilot-security-link:hover { border-color: rgba(98, 215, 255, .4); background: rgba(98, 215, 255, .05); }
.pilot-steps { position: relative; padding: 24px; border: 1px solid rgba(137, 166, 204, .18); border-radius: 20px; background: rgba(255, 255, 255, .03); backdrop-filter: blur(16px); }
.pilot-steps > article { position: relative; min-height: 124px; display: grid; grid-template-columns: 42px 1fr; gap: 17px; padding: 19px; border-bottom: 1px solid rgba(137, 166, 204, .14); }
.pilot-steps > article > span { position: relative; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(103, 148, 255, .35); border-radius: 12px; background: rgba(79, 124, 255, .11); color: #8eadff; font: 700 .65rem var(--font-heading); }
.pilot-steps > article:not(:nth-child(3)) > span::after { content: ""; position: absolute; top: 42px; left: 50%; width: 1px; height: 82px; background: linear-gradient(#456cb6, transparent); }
.pilot-steps small { color: #6983a2; font-size: .55rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pilot-steps h3 { margin: 3px 0 6px; color: #e8eff8; font-size: .94rem; }
.pilot-steps p { color: #8296af; font-size: .72rem; line-height: 1.55; }
.pilot-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; overflow: hidden; border: 1px solid rgba(137, 166, 204, .15); border-radius: 12px; }
.pilot-summary > span { min-height: 70px; display: flex; flex-direction: column; justify-content: center; padding: 10px 15px; border-right: 1px solid rgba(137, 166, 204, .15); }
.pilot-summary > span:last-child { border: 0; }
.pilot-summary b { color: #f6f9ff; font-size: 1.1rem; }
.pilot-summary small { color: #6f849e; font-size: .54rem; letter-spacing: 0; text-transform: none; }

/* Responsive behavior */
@media (max-width: 1180px) {
    .functions-hero-layout { grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr); gap: 40px; }
    .system-module { width: 165px; }
    .system-module b { max-width: 84px; }
    .composer-layout { gap: 48px; }
    .hotplug-layout { gap: 45px; }
    .runtime-core { left: 7%; }
}

@media (max-width: 1020px) {
    .functions-hero { padding-top: 88px; }
    .functions-hero-layout { grid-template-columns: 1fr; }
    .functions-hero-copy { max-width: 790px; text-align: center; margin-inline: auto; }
    .functions-hero-copy > p { margin-inline: auto; }
    .functions-hero-actions,
    .hero-assurance { justify-content: center; }
    .hero-product-system { width: min(720px, 100%); margin-inline: auto; }
    .hero-value-strip { grid-template-columns: repeat(2, 1fr); }
    .hero-value-strip article:nth-child(2) { border-right: 0; }
    .hero-value-strip article:nth-child(-n+2) { border-bottom: 1px solid rgba(133, 164, 204, .16); }
    .composer-layout { grid-template-columns: 1fr; grid-template-areas: "copy" "visual"; gap: 42px; }
    .composer-visual-column { position: relative; top: auto; }
    .composer-window { max-width: 760px; margin-inline: auto; }
    .composer-steps { width: min(760px, 100%); min-height: 390px; grid-template-columns: 1fr; margin-inline: auto; }
    .composer-step { min-height: 0; }
    .employee-product-frame { grid-template-columns: 1fr; }
    .employee-product-copy { max-width: 680px; }
    .employee-chat-preview { transform: none; }
    .tool-lab { grid-template-columns: 280px 1fr; }
    .tool-panel { padding: 38px; }
    .knowledge-flow-body { grid-template-columns: 1fr 32px 1fr; }

    .flow-retrieval-column { grid-column: 1 / -1; width: 55%; justify-self: center; margin-top: 25px; }
    .knowledge-flow-body > .flow-arrow:nth-of-type(2) { display: none; }
    .hotplug-layout { grid-template-columns: 1fr; }
    .hotplug-copy { max-width: 780px; }
    .hotplug-console { width: min(760px, 100%); margin-inline: auto; }
    .deployment-diagram { grid-template-columns: 90px 48px 1fr 48px 175px; padding-inline: 24px; }
    .boundary-services > span { min-width: 77px; }
    .deployment-benefits { grid-template-columns: repeat(2, 1fr); }
    .pilot-story-layout { gap: 45px; }
}

@media (max-width: 820px) {
    .functions-main { padding-top: 0; }
    .functions-section-heading-split { grid-template-columns: 1fr; gap: 24px; }
    .functions-section-heading { margin-bottom: 48px; }
    .employee-detail-grid,
    .knowledge-value-grid { grid-template-columns: 1fr; }
    .employee-detail-grid article { min-height: 180px; }
    .tool-lab { grid-template-columns: 1fr; }
    .tool-lab-nav { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 7px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(132, 161, 202, .15); scrollbar-width: none; }
    .tool-lab-nav::-webkit-scrollbar { display: none; }
    .tool-lab-nav-head { display: none; }
    .tool-lab-nav > button { min-width: 175px; margin: 0; }
    .knowledge-flow-body { grid-template-columns: 1fr; gap: 15px; padding: 22px; }
    .flow-arrow { min-height: 25px; transform: rotate(90deg); }
    .flow-retrieval-column { grid-column: auto; width: auto; margin-top: 0; }
    .knowledge-flow-body > .flow-arrow:nth-of-type(2) { display: flex; }
    .deployment-diagram { grid-template-columns: 1fr; gap: 15px; }
    .deployment-users { display: flex; align-items: center; justify-content: center; }
    .deployment-users > span:nth-child(3) { justify-self: auto; }
    .deployment-users small { margin: 0 0 0 8px; }
    .deployment-line { width: 1px; height: 35px; justify-self: center; }
    .deployment-line i { width: 1px; height: 100%; }
    .deployment-providers { width: min(420px, 100%); grid-template-columns: 1fr 1fr; justify-self: center; }
    .deployment-copy article { grid-template-columns: 38px 1fr; }
    .deployment-copy article > b { grid-column: 2; justify-self: start; }
    .pilot-story-layout { grid-template-columns: 1fr; }
    .pilot-story-copy { max-width: 720px; }
}

@media (max-width: 680px) {
    .section { padding-block: 82px; }
    .functions-hero { padding-top: 75px; }
    .functions-hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .functions-hero-actions { flex-direction: column; }
    .functions-hero-actions .btn { width: 100%; }
    .hero-assurance { align-items: flex-start; flex-direction: column; margin-left: 4px; }
    .hero-product-system { border-radius: 15px; }
    .hero-system-canvas { min-height: 510px; }
    .hero-system-toolbar > b { display: none; }
    .system-module { width: calc(50% - 27px); min-height: 62px; grid-template-columns: 32px 1fr 13px; }
    .system-module-model,
    .system-module-skill { left: 13px; }
    .system-module-knowledge,
    .system-module-tool { right: 13px; }
    .system-module-model,
    .system-module-knowledge { top: 24px; }
    .system-module-skill,
    .system-module-tool { bottom: 24px; }
    .system-module b { max-width: 92px; }
    .system-bot-core { width: 190px; }
    .hero-value-strip { grid-template-columns: 1fr; margin-top: 54px; }
    .hero-value-strip article { border-right: 0; border-bottom: 1px solid rgba(133, 164, 204, .16); }
    .hero-value-strip article:nth-child(3) { border-bottom: 1px solid rgba(133, 164, 204, .16); }
    .hero-value-strip article:last-child { border: 0; }
    .composer-section { padding-top: 90px; }
    .composer-shell { min-height: auto; grid-template-columns: 1fr; }
    .composer-bot-summary { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; padding: 15px; border-right: 0; border-bottom: 1px solid #263449; text-align: left; }
    .composer-avatar { grid-row: 1 / 4; width: 48px; height: 48px; margin: 0; }
    .composer-bot-summary > small,
    .composer-bot-summary > strong { grid-column: 2; }
    .composer-bot-summary > p { display: none; }
    .composer-bot-summary > div { grid-column: 3; grid-row: 1 / 4; margin: 0; }
    .composer-config { padding: 20px 15px; }
    .composer-layer { grid-template-columns: 21px 32px 1fr 15px; padding-inline: 8px; }
    .composer-steps { min-height: 430px; grid-template-columns: 1fr; }
    .composer-step { min-height: 0; padding: 32px 0; }
    .employee-product-frame { padding: 28px 18px; border-radius: 18px; }
    .employee-product-copy ul { gap: 9px; }
    .employee-chat-preview { margin-inline: -7px; }
    .tool-panel { min-height: 460px; padding: 28px 18px; }
    .tool-runline { grid-template-columns: 38px 1fr; }
    .tool-runline > em { grid-column: 2; justify-self: start; }
    .tool-runline code { max-width: 240px; }
    .tool-result-chart { grid-template-columns: 28px 1fr; }
    .tool-result-chart svg { grid-column: 2; }
    .hotplug-canvas { min-height: 590px; }
    .runtime-core { top: 29px; left: 50%; width: 190px; min-height: 125px; transform: translateX(-50%); }
    .runtime-slots { top: 210px; right: 18px; left: 18px; width: auto; }
    .runtime-slots article { min-height: 65px; }
    .incoming-extension { bottom: 21px; left: 18px; }
    .hotplug-console.is-playing .incoming-extension { animation-name: fx-hotplug-in-mobile; }
    @keyframes fx-hotplug-in-mobile { 55% { opacity: 1; } 100% { opacity: 0; transform: translate(65px, -135px) scale(.52); } }
    .hotplug-canvas > svg { display: none; }
    .hotplug-event { right: 18px; bottom: 18px; left: 250px; }
    .deployment-tabs button { min-height: 65px; gap: 7px; }
    .deployment-tabs button > i { width: 31px; height: 31px; }
    .deployment-tabs button > i .material-icons-outlined { font-size: 18px; }
    .deployment-copy article { padding: 22px 17px; }
    .deployment-benefits { grid-template-columns: 1fr; }
    .pilot-steps { padding: 14px; }
}

@media (max-width: 470px) {
    .container { padding-inline: 18px; }
    .functions-section-heading h2 { font-size: 2rem; }
    .hero-system-canvas { min-height: 475px; }
    .system-module { min-height: 57px; grid-template-columns: 29px 1fr; padding: 8px; }
    .module-icon { width: 29px; height: 29px; }
    .system-module > i { display: none; }
    .system-module small { font-size: .48rem; }
    .system-module b { max-width: 76px; font-size: .58rem; }
    .system-bot-core { width: 175px; min-height: 153px; }
    .hero-system-activity b { max-width: 245px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .composer-windowbar > b { display: none; }
    .composer-config-head > b { display: none; }
    .composer-layer b { max-width: 176px; }
    .tool-panel { padding-inline: 14px; }
    .tool-request p { font-size: .88rem; }
    .tool-runline code { max-width: 180px; }
    .tool-result { grid-template-columns: 28px 1fr; }
    .tool-result > em { grid-column: 2; }
    .knowledge-flow-head > small { display: none; }
    .knowledge-flow-body { padding: 14px; }
    .flow-column { padding: 16px; }
    .hotplug-points article { grid-template-columns: 35px 1fr; }
    .hotplug-event { display: none; }
    .incoming-extension { width: 200px; }
    .deployment-tabs button { flex-direction: column; }
    .deployment-tabs button small { display: none; }
    .deployment-tabs button b { text-align: center; font-size: .65rem; }
    .deployment-diagram { padding: 30px 16px; }
    .boundary-services { grid-template-columns: 1fr; width: 100%; }
    .boundary-services > span { min-width: 0; }
    .deployment-providers { grid-template-columns: 1fr; }
    .deployment-copy article { grid-template-columns: 1fr; }
    .deployment-copy article > b { grid-column: 1; }
    .pilot-actions { flex-direction: column; }
    .pilot-actions .btn { width: 100%; }
    .pilot-steps > article { grid-template-columns: 36px 1fr; padding-inline: 9px; }
    .pilot-steps > article > span { width: 36px; height: 36px; }
    .pilot-summary > span { padding-inline: 8px; }
}

/* Product-faithful previews */
@media (max-width: 1180px) {
    .composer-layout { grid-template-columns: minmax(340px, .75fr) minmax(500px, 1.05fr); }
    .tool-product-workspace { padding-inline: 22px; }
    .tool-view-tabs { right: 22px; }
    .tool-table-head,
    .tool-table-row { grid-template-columns: minmax(185px, 2fr) .65fr .6fr .85fr .55fr; }
}

@media (max-width: 1020px) {
    .composer-layout { grid-template-columns: 1fr; }
    .composer-product-stage { height: 560px; }
    .composer-window { max-width: 760px; }
    .tool-product-shell { min-height: 650px; }
    .hotplug-product-stage { height: 510px; }
}

@media (max-width: 820px) {
    .tool-lab { display: block; }
    .tool-product-shell { grid-template-columns: 135px 1fr; }
    .tool-admin-sidebar { padding-inline: 9px; }
    .tool-product-workspace { padding: 21px 18px 24px; }
    .tool-view-tabs { top: 17px; right: 18px; }
    .tool-view-tabs > button b { display: none; }
    .tool-workspace-head { padding-right: 195px; }
    .tool-table-head,
    .tool-table-row { grid-template-columns: minmax(165px, 1.7fr) .62fr .58fr .8fr .52fr; gap: 6px; padding-inline: 10px; }
    .tool-studio-layout { grid-template-columns: minmax(0, 1fr) 205px; }
    .hotplug-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .composer-product-stage { height: 535px; }
    .cp-client-product { grid-template-columns: 110px 1fr; }
    .cp-model-menu { width: 235px; }
    .cp-admin-product { grid-template-columns: 105px 1fr; }
    .cp-admin-content { padding: 14px 12px; }
    .cp-admin-sidebar { padding-inline: 7px; }
    .cp-form-layout { grid-template-columns: 1fr 108px; gap: 7px; }
    .cp-ready-card,
    .cp-code-preview { padding: 11px; }
    .cp-code-preview code { font-size: .35rem; }
    .cp-knowledge-grid { gap: 7px; }
    .tool-product-shell { grid-template-columns: 120px 1fr; }
    .tool-admin-sidebar > p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tool-product-workspace { padding-inline: 14px; }
    .tool-view-tabs { right: 14px; }
    .tool-workspace-head { padding-right: 170px; }
    .tool-table-head,
    .tool-table-row { grid-template-columns: minmax(155px, 1.6fr) .6fr .72fr .5fr; }
    .tool-table-head > span:nth-child(3),
    .tool-table-row > span:nth-child(3) { display: none; }
    .tool-studio-layout { grid-template-columns: 1fr; }
    .tool-json-preview { display: none; }
    .hotplug-product-stage { height: 500px; }
    .hotplug-progress > button { padding-inline: 4px; }
    .hotplug-progress > button b { font-size: .48rem; }
    .hp-create-layout { grid-template-columns: 1fr 125px; }
}

@media (max-width: 520px) {
    .composer-product-stage { height: 560px; }
    .cp-client-product { grid-template-columns: 82px 1fr; }
    .cp-client-brand > b,
    .cp-client-sidebar > button span,
    .cp-client-search span,
    .cp-client-user > div,
    .cp-client-user > i { display: none; }
    .cp-client-sidebar > button { justify-content: center; }
    .cp-client-sidebar > p { padding-inline: 4px; font-size: .42rem; }
    .cp-model-menu { width: min(225px, calc(100% - 20px)); }
    .cp-client-welcome h3 { font-size: .82rem; }
    .cp-client-input { right: 12px; left: 12px; }
    .cp-admin-product { grid-template-columns: 1fr; }
    .cp-admin-sidebar { display: none; }
    .cp-admin-content { padding: 13px 11px; }
    .cp-form-layout { grid-template-columns: 1fr; }
    .cp-ready-card,
    .cp-code-preview { display: none; }
    .cp-status-strip article { padding-inline: 7px; }
    .cp-knowledge-grid > article { padding: 11px; }
    .cp-pipeline span { min-width: 34px; }
    .composer-output { min-height: 78px; }

    .tool-product-shell { grid-template-columns: 1fr; min-height: 650px; }
    .tool-admin-sidebar { display: none; }
    .tool-product-workspace { padding: 14px 11px 18px; }
    .tool-view-tabs { position: relative; top: auto; right: auto; width: 100%; margin-bottom: 14px; }
    .tool-view-tabs > button { flex: 1; grid-template-columns: 18px 1fr; }
    .tool-workspace-head { min-height: 76px; padding-right: 0; }
    .tool-workspace-head h3 { font-size: 1rem; }
    .tool-library-controls label { width: auto; flex: 1; }
    .tool-library-controls > button { display: none; }
    .tool-library-controls > em span { display: none; }
    .tool-table-head,
    .tool-table-row { grid-template-columns: minmax(170px, 1fr) 76px; }
    .tool-table-head > span:nth-child(2),
    .tool-table-head > span:nth-child(3),
    .tool-table-head > span:nth-child(5),
    .tool-table-row > span:nth-child(2),
    .tool-table-row > span:nth-child(3),
    .tool-table-row > span:nth-child(5) { display: none; }
    .tool-table-row > span:nth-child(4) { justify-content: flex-end; }
    .tool-library-note > p { display: none; }
    .tool-library-note { gap: 8px; }
    .tool-studio-types { grid-template-columns: 1fr; }
    .tool-studio-types > button { min-height: 48px; }
    .tool-studio-form > article { padding: 10px; }

    .hotplug-progress { padding-inline: 7px; }
    .hotplug-progress::before { right: 18%; left: 18%; }
    .hotplug-progress > button { grid-template-columns: 25px 1fr; column-gap: 5px; }
    .hotplug-progress > button > span { width: 25px; height: 25px; }
    .hotplug-progress > button small { display: none; }
    .hotplug-product-stage { height: 520px; }
    .hotplug-screen,
    .hotplug-use-screen { grid-template-columns: 1fr; }
    .hp-admin-sidebar,
    .hp-chat-sidebar { display: none; }
    .hp-admin-main { padding: 14px 12px; }
    .hp-create-layout { grid-template-columns: 1fr 113px; gap: 7px; }
    .hp-create-layout > div > article { padding: 7px; }
    .hp-create-layout > aside { padding: 10px; }
    .hp-create-layout > aside code { font-size: .32rem; }
    .hp-chat-model { top: 12px; }
    .hp-user-message { right: 14px; }
    .hp-thinking { left: 15px; }
    .hotplug-footer > span b { display: none; }
}

@media (max-width: 390px) {
    .cp-knowledge-grid { grid-template-columns: 1fr; }
    .cp-retrieval-card { display: none; }
    .cp-source-row > em { display: none; }
    .cp-form-card { padding: 9px; }
    .cp-instruction-card label { min-height: 66px; }
    .tool-table-head,
    .tool-table-row { grid-template-columns: minmax(150px, 1fr) 64px; padding-inline: 7px; }
    .tool-library-note > button span { display: none; }
    .hp-create-layout { grid-template-columns: 1fr; }
    .hp-create-layout > aside { display: none; }
    .hp-save-toast { right: 12px; }
    .hp-approval-modal { padding: 12px; }
    .hp-approval-facts > span { padding-inline: 5px; }
    .hp-approval-modal footer button { padding-inline: 6px; }
}

/* Readable type scale for the two product walkthroughs */
.tool-stage-toolbar > b,
.hotplug-windowbar > b { font-size: .72rem; }
.tool-stage-toolbar > em,
.hotplug-windowbar > em { font-size: .65rem; }

.tool-product-shell { min-height: 820px; grid-template-columns: 175px 1fr; }
.tool-admin-sidebar > div:first-child b { font-size: .84rem; }
.tool-admin-sidebar > div:first-child span { width: 34px; height: 34px; font-size: .68rem; }
.tool-admin-sidebar > small { font-size: .62rem; }
.tool-admin-sidebar > p { min-height: 42px; grid-template-columns: 28px 1fr; font-size: .76rem; }
.tool-admin-user > span { width: 34px; height: 34px; font-size: .57rem; }
.tool-admin-user > b { font-size: .7rem; }
.tool-product-workspace { padding: 29px 30px 30px; }
.tool-view-tabs { top: 24px; right: 30px; }
.tool-view-tabs > button { min-height: 39px; grid-template-columns: 22px auto auto; gap: 7px; padding-inline: 10px; }
.tool-view-tabs > button i { font-size: .65rem; }
.tool-view-tabs > button span { font-size: .76rem; }
.tool-view-tabs > button b { font-size: .56rem; }
.tool-product-panel { min-height: 750px; }
.tool-workspace-head { min-height: 100px; padding-right: 290px; }
.tool-workspace-head small { font-size: .7rem; }
.tool-workspace-head h3 { margin-top: 6px; font-size: 1.38rem; }
.tool-workspace-head h3 span { min-width: 27px; height: 23px; font-size: .59rem; }
.tool-workspace-head p { margin-top: 4px; font-size: .78rem; }
.tool-workspace-head > button b { font-size: .66rem; }
.tool-library-controls { min-height: 57px; padding: 9px; }
.tool-library-controls label { width: 240px; min-height: 40px; font-size: .7rem; }
.tool-library-controls > button { min-height: 40px; font-size: .7rem; }
.tool-library-controls > em { font-size: .68rem; }
.tool-table-head { min-height: 40px; font-size: .62rem; }
.tool-table-row { min-height: 70px; }
.tool-table-row > span:first-child { grid-template-columns: 36px 1fr; column-gap: 10px; }
.tool-table-row > span:first-child > i { width: 36px; height: 36px; font-size: .5rem; }
.tool-table-row > span:first-child b { font-size: .78rem; }
.tool-table-row > span:first-child small { font-size: .65rem; }
.tool-table-row > span:nth-child(2) b { font-size: .7rem; }
.tool-table-row > span:nth-child(2) small { font-size: .6rem; }
.tool-table-row > span:nth-child(3) b { font-size: .66rem; }
.tool-table-row > span:nth-child(4) > i { width: 30px; height: 30px; font-size: .48rem; }
.tool-table-row > span:nth-child(4) > small { font-size: .6rem; }
.tool-table-row > span:last-child b { font-size: .66rem; }
.tool-library-note { min-height: 64px; padding: 10px 13px; }
.tool-library-note > span { font-size: .69rem; }
.tool-library-note > span i { width: 27px; height: 27px; }
.tool-library-note > p { font-size: .64rem; }
.tool-library-note > button { font-size: .69rem; }

.tool-studio-head { padding-right: 0; }
.tool-studio-layout { grid-template-columns: 1fr 270px; gap: 16px; }
.tool-studio-form { gap: 11px; }
.tool-studio-form > article { grid-template-columns: 38px 1fr; gap: 12px; padding: 16px; }
.tool-studio-form > article > span { width: 38px; height: 38px; font-size: .59rem; }
.tool-studio-form h4 { font-size: .86rem; }
.tool-studio-form p { margin-top: 4px; font-size: .68rem; }
.tool-studio-types { gap: 8px; margin-top: 13px; }
.tool-studio-types > button { min-height: 74px; grid-template-columns: 34px 1fr 14px; gap: 8px; padding: 9px; }
.tool-studio-types > button > i { width: 34px; height: 34px; font-size: .5rem; }
.tool-studio-types b { font-size: .73rem; }
.tool-studio-types small { font-size: .62rem; line-height: 1.35; }
.tool-studio-types em { font-size: .64rem; }
.tool-studio-drop { min-height: 68px; grid-template-columns: 38px 1fr auto; padding: 9px 11px; }
.tool-studio-drop > i { width: 38px; height: 38px; }
.tool-studio-drop b { font-size: .72rem; }
.tool-studio-drop small { font-size: .62rem; }
.tool-studio-drop > em { font-size: .62rem; }
.tool-studio-fields { gap: 8px; margin-top: 9px; }
.tool-studio-fields label { padding: 9px 11px; }
.tool-studio-fields small { font-size: .58rem; }
.tool-studio-fields span { font-size: .7rem; }
.tool-studio-assignment label { min-height: 61px; grid-template-columns: 36px 1fr 20px; padding: 8px 10px; }
.tool-studio-assignment label > i { width: 36px; height: 36px; font-size: .49rem; }
.tool-studio-assignment label b { font-size: .72rem; }
.tool-studio-assignment label small { font-size: .62rem; }
.tool-json-preview { padding: 20px; }
.tool-json-preview > small { font-size: .62rem; }
.tool-json-preview > h4 { font-size: 1rem; }
.tool-code-tabs span { font-size: .64rem; }
.tool-json-preview code { min-height: 330px; font-size: .64rem; line-height: 1.72; }
.tool-json-valid { font-size: .65rem; }
.tool-json-preview > button { min-height: 45px; font-size: .7rem; }

.hotplug-layout { grid-template-columns: 390px minmax(0, 1fr); gap: 55px; }
.hotplug-progress { padding: 12px 14px; }
.hotplug-progress::before { top: 34px; }
.hotplug-progress > button { min-height: 62px; grid-template-columns: 34px 1fr; column-gap: 10px; }
.hotplug-progress > button > span { width: 34px; height: 34px; font-size: .55rem; }
.hotplug-progress > button > i { top: 25px; height: 18px; }
.hotplug-progress > button b { font-size: .75rem; }
.hotplug-progress > button small { font-size: .62rem; }
.hotplug-product-stage { height: 600px; }
.hotplug-screen,
.hotplug-use-screen { grid-template-columns: 130px 1fr; }
.hp-admin-sidebar > div:first-child span,
.hp-chat-sidebar > div:first-child span { width: 30px; height: 30px; font-size: .58rem; }
.hp-admin-sidebar > div:first-child b,
.hp-chat-sidebar > div:first-child b { font-size: .78rem; }
.hp-admin-sidebar > small,
.hp-chat-sidebar > small { font-size: .56rem; }
.hp-admin-sidebar > p { min-height: 36px; grid-template-columns: 20px 1fr; font-size: .66rem; }
.hp-admin-sidebar > div:last-child i,
.hp-chat-sidebar > div:last-child i { width: 30px; height: 30px; font-size: .48rem; }
.hp-admin-sidebar > div:last-child b,
.hp-chat-sidebar > div:last-child b { font-size: .64rem; }
.hp-admin-main { padding: 19px 21px; }
.hp-breadcrumb { margin-bottom: 14px; font-size: .62rem; }
.hp-admin-main > header { min-height: 54px; grid-template-columns: 43px 1fr auto; gap: 11px; margin-bottom: 14px; }
.hp-admin-main > header > span { width: 43px; height: 43px; font-size: .68rem; }
.hp-admin-main > header small { font-size: .58rem; }
.hp-admin-main > header h3 { font-size: 1.18rem; }
.hp-admin-main > header > em { padding: 6px 9px; font-size: .62rem; }
.hp-create-layout { grid-template-columns: 1fr 185px; gap: 11px; }
.hp-create-layout > div { gap: 9px; }
.hp-create-layout > div > article { min-height: 100px; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 12px; }
.hp-create-layout > div > article > span { width: 34px; height: 34px; font-size: .54rem; }
.hp-create-layout article small { font-size: .57rem; }
.hp-create-layout article h4 { font-size: .79rem; }
.hp-create-layout article p { margin-top: 4px; font-size: .65rem; line-height: 1.45; }
.hp-create-layout article > em { width: 23px; height: 23px; font-size: .53rem; }
.hp-create-layout > aside { padding: 16px; }
.hp-create-layout > aside > small { font-size: .56rem; }
.hp-create-layout > aside h4 { font-size: .9rem; }
.hp-create-layout > aside code { min-height: 200px; font-size: .56rem; line-height: 1.8; }
.hp-create-layout > aside > span { font-size: .6rem; }
.hp-create-layout > aside > button { min-height: 40px; font-size: .68rem; }
.hp-save-toast b { font-size: .68rem; }
.hp-save-toast small { font-size: .58rem; }
.hp-version b,
.hp-version span { font-size: .53rem; }
.hp-bot-summary article { min-height: 68px; }
.hp-bot-summary small { font-size: .58rem; }
.hp-bot-summary b { font-size: .72rem; }
.hp-assignment-card { padding: 14px; }
.hp-assignment-card > div { min-height: 42px; grid-template-columns: 34px 1fr auto; }
.hp-assignment-card > div > span { width: 34px; height: 34px; font-size: .52rem; }
.hp-assignment-card > div small { font-size: .57rem; }
.hp-assignment-card > div b { font-size: .74rem; }
.hp-assignment-card > div > em { font-size: .55rem; }
.hp-assignment-card > label { min-height: 64px; grid-template-columns: 38px 1fr 22px; padding: 9px 11px; }
.hp-assignment-card > label > i { width: 38px; height: 38px; font-size: .5rem; }
.hp-assignment-card > label b { font-size: .7rem; }
.hp-assignment-card > label small { font-size: .61rem; }
.hp-version-event { min-height: 61px; padding: 9px 12px; }
.hp-version-event b { font-size: .67rem; }
.hp-version-event small,
.hp-version-event time { font-size: .56rem; }
.hp-chat-sidebar > button { min-height: 40px; font-size: .66rem; }
.hp-chat-sidebar > p { padding-block: 9px; font-size: .62rem; }
.hp-chat-model { min-width: 168px; min-height: 39px; grid-template-columns: 30px 1fr 16px; }
.hp-chat-model > span { width: 30px; height: 30px; font-size: .49rem; }
.hp-chat-model b { font-size: .72rem; }
.hp-user-message { max-width: 335px; padding: 12px 15px; }
.hp-user-message small { font-size: .56rem; }
.hp-user-message p { font-size: .7rem; line-height: 1.45; }
.hp-thinking b { font-size: .66rem; }
.hp-thinking small { font-size: .56rem; }
.hp-approval-modal { width: min(430px, calc(100% - 34px)); padding: 20px; }
.hp-modal-icon { width: 39px; height: 39px; font-size: .68rem; }
.hp-modal-copy > small { font-size: .56rem; }
.hp-modal-copy h3 { margin-top: 5px; font-size: 1.18rem; }
.hp-modal-copy p { margin-top: 5px; font-size: .7rem; }
.hp-approval-modal > code { margin-block: 14px; padding: 11px; font-size: .59rem; line-height: 1.6; }
.hp-approval-facts > span { padding: 10px; }
.hp-approval-facts small { font-size: .52rem; }
.hp-approval-facts b { font-size: .64rem; }
.hp-approval-modal footer { gap: 7px; margin-top: 15px; }
.hp-approval-modal footer button { min-height: 38px; padding-inline: 12px; font-size: .64rem; }
.hp-chat-input { min-height: 54px; font-size: .65rem; }
.hotplug-footer { min-height: 54px; }
.hotplug-footer > span { font-size: .68rem; }
.hotplug-footer button { font-size: .68rem; }

@media (max-width: 1180px) {
    .tool-product-workspace { padding-inline: 24px; }
    .tool-view-tabs { right: 24px; }
    .hotplug-layout { grid-template-columns: 1fr; }
    .hotplug-console { width: min(820px, 100%); margin-inline: auto; }
}

@media (max-width: 1020px) {
    .hotplug-layout { grid-template-columns: 1fr; }
    .hotplug-console { width: min(820px, 100%); }
}

@media (max-width: 820px) {
    .tool-product-shell { grid-template-columns: 150px 1fr; }
    .tool-product-workspace { padding-inline: 18px; }
    .tool-view-tabs { right: 18px; }
    .tool-workspace-head { padding-right: 220px; }
    .tool-table-head,
    .tool-table-row { grid-template-columns: minmax(180px, 1.7fr) .62fr .58fr .8fr .52fr; }
    .tool-studio-layout { grid-template-columns: minmax(0, 1fr) 235px; }
    .hotplug-console { width: min(780px, 100%); }
}

@media (max-width: 680px) {
    .tool-product-shell { grid-template-columns: 125px 1fr; }
    .tool-workspace-head { padding-right: 190px; }
    .tool-studio-layout { grid-template-columns: 1fr; }
    .hotplug-product-stage { height: 610px; }
    .hotplug-screen,
    .hotplug-use-screen { grid-template-columns: 1fr; }
    .hp-admin-sidebar,
    .hp-chat-sidebar { display: none; }
    .hp-create-layout { grid-template-columns: 1fr 165px; }
}

@media (max-width: 520px) {
    .tool-product-shell { grid-template-columns: 1fr; min-height: 900px; }
    .tool-product-workspace { padding-inline: 12px; }
    .tool-view-tabs { right: auto; }
    .tool-workspace-head { padding-right: 0; }
    .tool-table-row { min-height: 68px; }
    .tool-table-row > span:first-child b { font-size: .64rem; }
    .tool-table-row > span:first-child small { font-size: .54rem; }
    .tool-library-note > p { display: none; }
    .tool-studio-types > button { min-height: 68px; }
    .hotplug-progress > button { grid-template-columns: 30px 1fr; column-gap: 6px; }
    .hotplug-progress > button > span { width: 30px; height: 30px; }
    .hotplug-progress > button b { font-size: .59rem; }
    .hotplug-product-stage { height: 650px; }
    .hp-admin-main { padding-inline: 13px; }
    .hp-create-layout { grid-template-columns: 1fr 130px; }
    .hp-create-layout > aside code { font-size: .45rem; }
    .hp-approval-modal { width: calc(100% - 28px); padding: 17px; }
    .hp-approval-modal footer button { padding-inline: 9px; font-size: .55rem; }
}

@media (max-width: 390px) {
    .hp-create-layout { grid-template-columns: 1fr; }
    .hp-create-layout > aside { display: none; }
    .hp-approval-modal { padding: 15px; }
    .hp-approval-modal footer { gap: 4px; }
    .hp-approval-modal footer button { padding-inline: 7px; font-size: .52rem; }
}

@media (prefers-reduced-motion: reduce) {
    .functions-page *,
    .functions-page *::before,
    .functions-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] { opacity: 1; transform: none; }
}

/* Composer scroll story: every product view remains in the document flow. */
.composer-section > .container {
    max-width: 1344px;
}

.composer-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 140px;
}

.composer-window,
.composer-product-stage,
.composer-layout .cp-admin-product,
.composer-layout .cp-admin-content,
.composer-steps {
    display: contents !important;
}

.composer-layout .composer-windowbar,
.composer-layout .composer-output,
.composer-layout .cp-admin-sidebar {
    display: none;
}

.composer-layout .cp-client-product,
.composer-layout .cp-admin-product {
    position: static;
    inset: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.composer-layout .cp-client-product,
.composer-layout .cp-admin-view {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border: 1px solid #263246;
    border-radius: 20px;
    box-shadow:
        0 2px 8px rgba(15, 23, 42, .07),
        0 24px 58px rgba(19, 33, 58, .14);
}

.composer-layout .cp-admin-view {
    display: block !important;
    padding: 17px 18px;
    background: #f4f5f8;
}

.composer-layout [data-composer-screen] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

.composer-layout [data-composer-screen].is-visible {
    opacity: 1;
    transform: none;
}

.composer-layout [data-composer-screen]:not(.is-visible) *,
.composer-layout [data-composer-screen]:not(.is-visible)::before,
.composer-layout [data-composer-screen]:not(.is-visible)::after {
    animation-play-state: paused !important;
}

.composer-step[data-composer-step="model"],
.composer-layout [data-composer-screen="model"] { grid-row: 1; }
.composer-step[data-composer-step="knowledge"],
.composer-layout [data-composer-screen="knowledge"] { grid-row: 2; }
.composer-step[data-composer-step="skills"],
.composer-layout [data-composer-screen="skills"] { grid-row: 3; }
.composer-step[data-composer-step="tools"],
.composer-layout [data-composer-screen="tools"] { grid-row: 4; }

.composer-step[data-composer-step="model"],
.composer-step[data-composer-step="skills"] { grid-column: 1 / span 4; }
.composer-layout [data-composer-screen="model"],
.composer-layout [data-composer-screen="skills"] { grid-column: 6 / span 7; }

.composer-layout [data-composer-screen="knowledge"],
.composer-layout [data-composer-screen="tools"] { grid-column: 1 / span 7; }
.composer-step[data-composer-step="knowledge"],
.composer-step[data-composer-step="tools"] { grid-column: 9 / span 4; }

@media (max-width: 1180px) {
    .composer-layout {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

@media (max-width: 1020px) {
    .composer-layout {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        row-gap: 90px;
    }

    .composer-layout .cp-client-product,
    .composer-layout .cp-admin-view { height: 570px; }
}

@media (max-width: 820px) {
    .composer-layout {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 36px;
    }

    .composer-layout .composer-step,
    .composer-layout [data-composer-screen] { grid-column: 1; }

    .composer-step[data-composer-step="model"] { grid-row: 1; }
    .composer-layout [data-composer-screen="model"] { grid-row: 2; }
    .composer-step[data-composer-step="knowledge"] { grid-row: 3; }
    .composer-layout [data-composer-screen="knowledge"] { grid-row: 4; }
    .composer-step[data-composer-step="skills"] { grid-row: 5; }
    .composer-layout [data-composer-screen="skills"] { grid-row: 6; }
    .composer-step[data-composer-step="tools"] { grid-row: 7; }
    .composer-layout [data-composer-screen="tools"] { grid-row: 8; }

    .composer-step {
        min-height: 300px;
        padding: 34px 0 12px;
    }

    .composer-layout .cp-client-product,
    .composer-layout .cp-admin-view {
        height: 560px;
        margin-bottom: 54px;
    }
}

/* Responsive workflow carousel */
@media (max-width: 1020px) {
    .workflow-carousel { --workflow-gutter: 32px; }

    .workflow-card {
        flex-basis: calc(100vw - 112px);
        width: calc(100vw - 112px);
        min-width: 0;
    }

    .workflow-product { grid-template-columns: 135px minmax(0, 1fr); }
    .workflow-admin-main { padding-inline: 20px; }
    .setup-flow { grid-template-columns: minmax(210px, 1fr) 30px minmax(210px, 1fr); }
    .workflow-story { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 28px; }
}

@media (max-width: 820px) {
    .workflow-carousel { --workflow-gap: 12px; --workflow-gutter: 15px; }
    .workflow-card {
        flex-basis: calc(100vw - 78px);
        width: calc(100vw - 78px);
        height: 620px;
        border-radius: 20px;
    }

    .workflow-product,
    .workflow-chat-product { height: 532px; grid-template-columns: 1fr; }
    .workflow-admin-nav,
    .workflow-chat-sidebar { display: none; }
    .workflow-admin-main { padding: 20px 18px 17px; }
    .workflow-product-heading { min-height: 68px; margin-bottom: 13px; }
    .workflow-product-heading p { max-width: 500px; }
    .setup-flow { height: 408px; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); }
    .setup-resource { padding: 13px; }
    .setup-resource-head { grid-template-columns: 31px 1fr; }
    .setup-resource-head > span { width: 31px; height: 31px; }
    .setup-resource-head > em { position: absolute; top: 12px; right: 12px; }
    .setup-pipeline b { font-size: .43rem; }
    .setup-pipeline small { display: none; }
    .setup-connector > i { height: 66px; }
    .bot-builder-grid { height: 406px; grid-template-columns: minmax(0, 1fr) 165px; }
    .workflow-chat-conversation { padding-inline: 7%; }
    .workflow-chat-entry { right: 7%; left: 7%; }
    .workflow-story { min-height: 245px; grid-template-columns: 1fr; gap: 10px; }
    .workflow-story-copy { min-height: 165px; }
    .workflow-navigation { width: min(420px, 100%); padding-top: 0; justify-self: end; }
}

@media (max-width: 600px) {
    /*
     * Keep the workflow demos complete, but render their 610px mobile
     * canvas at 80% on phones. Balanced card insets keep every snap position
     * centered and reveal the neighboring cards evenly.
     */
    .workflow-carousel {
        --workflow-gap: 8px;
        --workflow-gutter: 12px;
    }

    .workflow-card {
        flex-basis: calc(100vw - 72px);
        width: calc(100vw - 72px);
        height: 488px;
        border-radius: 17px;
    }

    .workflow-card-canvas {
        height: 610px;
        width: 125%;
        transform: scale(.8);
        transform-origin: top left;
    }

    .workflow-windowbar { height: 40px; }
    .workflow-windowbar > b { display: none; }
    .workflow-windowbar > em { font-size: .49rem; }
    .workflow-product,
    .workflow-chat-product { height: 526px; }
    .workflow-card-status { height: 44px; padding-inline: 12px; }
    .workflow-card-status small { display: none; }
    .workflow-admin-main { padding: 15px 12px 13px; }
    .workflow-product-heading { min-height: 61px; margin-bottom: 10px; }
    .workflow-product-heading h3 { font-size: .92rem; }
    .workflow-product-heading p { max-width: 250px; font-size: .5rem; line-height: 1.35; }
    .workflow-product-heading > span:not(.bot-version) { display: none; }
    .workflow-product-heading > .bot-version { min-width: 75px; padding: 5px 7px; }
    .workflow-product-heading > .bot-version small { display: none; }
    .setup-flow { height: 425px; grid-template-columns: 1fr; grid-template-rows: 194px 27px 204px; }
    .setup-resource { padding: 10px; }
    .setup-resource-head { padding-bottom: 8px; }
    .setup-source { min-height: 49px; margin: 8px 0; padding: 5px 7px; }
    .setup-source > span { width: 31px; height: 31px; }
    .setup-pipeline { margin-top: 8px; }
    .setup-pipeline > span > i { width: 22px; height: 22px; }
    .setup-progress { margin-top: 9px; }
    .setup-connector { flex-direction: row; }
    .setup-connector > i { width: 70px; height: 1px; transform: scaleX(0); }
    .workflow-card-setup.is-active .setup-connector > i { animation-name: workflow-connector-mobile; }
    @keyframes workflow-connector-mobile { to { transform: scaleX(1); } }
    .setup-skill label { margin: 7px 0 6px; padding: 6px 8px; }
    .setup-markdown { padding: 6px 8px; }
    .setup-skill > button { min-height: 28px; margin-top: 6px; }
    .bot-builder-grid { height: 425px; grid-template-columns: 1fr 112px; gap: 7px; }
    .bot-builder-form { gap: 7px; }
    .bot-identity-card { min-height: 74px; grid-template-columns: 28px 1fr; gap: 7px; padding: 8px; }
    .bot-identity-card > span,
    .bot-assignment-panel > header > span { width: 28px; height: 28px; }
    .bot-identity-card > em,
    .bot-identity-card p { display: none; }
    .bot-assignment-panel { padding: 8px; }
    .bot-assignment-panel > header { grid-template-columns: 28px 1fr; gap: 7px; margin-bottom: 7px; }
    .bot-assignment-panel header p { display: none; }
    .bot-assignment-columns { grid-template-columns: 1fr; gap: 5px; }
    .bot-assignment-columns article { padding: 5px; }
    .bot-assignment-columns article > small { display: none; }
    .bot-assignment-columns label { min-height: 45px; grid-template-columns: 27px 1fr 16px; padding: 5px; }
    .bot-assignment-columns label > i { width: 27px; height: 27px; }
    .bot-rag-assignment { min-height: 51px; margin-top: 5px; padding: 5px 7px; }
    .bot-publish-card { padding: 9px 7px; }
    .bot-avatar { width: 40px; height: 40px; margin: 13px auto 8px; border-radius: 12px; }
    .bot-publish-card > p { margin-block: 5px 9px; }
    .bot-publish-card > div { padding: 6px 2px; }
    .bot-publish-card > div > span { font-size: .41rem; }
    .bot-publish-card > button { min-height: 31px; }
    .workflow-chat-conversation { padding: 72px 13px 68px; }
    .workflow-user-bubble { width: 83%; }
    .workflow-thinking { width: 88%; margin-top: 13px; }
    .thinking-item { min-height: 38px; }
    .workflow-answer { width: 98%; margin-top: 12px; }
    .workflow-answer p { max-height: 48px; overflow: hidden; }
    .workflow-answer ol { display: none; }
    .workflow-chat-entry { right: 13px; bottom: 12px; left: 13px; }
    .workflow-story { min-height: 285px; padding-top: 15px; }
    .workflow-story-copy { min-height: 205px; }
    .workflow-story-copy h3 { font-size: 1.12rem; }
    .workflow-story-copy p { font-size: .73rem; line-height: 1.55; }
    .workflow-navigation { grid-template-columns: auto 1fr auto; gap: 10px; }
    .workflow-arrow-buttons button { width: 39px; height: 35px; }
}

@media (max-width: 470px) {
    .workflow-card {
        flex-basis: calc(100vw - 60px);
        width: calc(100vw - 60px);
    }
}

@media (max-width: 390px) {
    .workflow-product-heading > .bot-version { display: none; }
    .bot-builder-grid { grid-template-columns: 1fr 99px; }
    .bot-publish-card h4 { font-size: .63rem; }
    .bot-publish-card > p { font-size: .42rem; }
    .workflow-story-copy { min-height: 225px; }
    .workflow-dots { display: none; }
}

/* Group-based bot access */
.group-access-section { position: relative; overflow: hidden; border-top: 1px solid var(--border); background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, #315de0 8%), var(--surface)); }
.group-access-section::before { content: ""; position: absolute; width: 520px; height: 520px; top: -310px; right: -130px; border-radius: 50%; background: rgba(49, 93, 224, .1); filter: blur(4px); pointer-events: none; }
.group-access-layout { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; }
.group-access-copy h2 { max-width: 760px; margin: 15px 0 18px; color: var(--text-primary); font-family: var(--font-heading); font-size: clamp(2rem, 3.6vw, 3.7rem); line-height: 1.05; letter-spacing: -.045em; }
.group-access-copy > p { max-width: 780px; color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.group-access-copy ul { display: grid; gap: 12px; margin: 27px 0 0; padding: 0; list-style: none; }
.group-access-copy li { display: flex; align-items: flex-start; gap: 11px; }
.group-access-copy li > i { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; margin-top: 2px; border-radius: 50%; background: #d8f3ea; color: #087f69; font-size: .7rem; font-style: normal; font-weight: 800; }
.group-access-copy li b, .group-access-copy li small { display: block; }
.group-access-copy li b { color: var(--text-primary); font-size: .9rem; }
.group-access-copy li small { max-width: 640px; margin-top: 2px; color: var(--text-muted); font-size: .76rem; line-height: 1.5; }

.group-access-interactive-dashboard { width: 100%; }

@media (max-width: 768px) {
    .group-access-interactive-dashboard .kb-admin-demo {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

@media (max-width: 650px) {
    .group-access-diagram { grid-template-columns: 1fr 30px 1.2fr; min-height: 395px; padding: 24px 18px 70px; }
    .group-access-diagram .group-access-lines-out, .group-access-bots { display: none; }
    .group-access-column > span, .group-access-groups > span { min-height: 58px; padding: 8px; }
    .group-access-column > span > i, .group-access-groups > span > i { width: 28px; height: 28px; flex-basis: 28px; }
    .group-access-diagram footer { right: 18px; bottom: 18px; left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .group-access-lines i::after { animation: none; transform: none; }
}

/* Keep the product tour readable without long empty gaps between examples. */
.functions-main > .section { padding-block: 80px; }
@media (max-width: 820px) {
    .functions-main > .section { padding-block: 60px; }
    .composer-step { min-height: 0; padding-top: 24px; }
    .composer-layout .cp-client-product,
    .composer-layout .cp-admin-view { margin-bottom: 28px; }
}
