:root {
    --navy: #101c34;
    --blue: #2764d9;
    --teal: #0a8d87;
    --text: #1a2940;
    --muted: #718099;
    --bg: #f5f7fc;
    --border: #e3e9f3;
    --white: #fff
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    font: 14px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text)
}

button,
input,
select,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

.header {
    min-height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    gap: 16px
}

.logo {
    display: flex;
    gap: 11px;
    align-items: center;
    color: var(--navy);
    font-size: 21px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -.7px
}

.logo b {
    color: var(--blue)
}

.logo small {
    display: block;
    font-size: 9px;
    letter-spacing: 2.1px;
    color: #7a8a9f;
    font-weight: 700;
    margin-top: -4px
}

.logo-icon {
    height: 43px;
    width: 43px;
    background: #13264a;
    color: white;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 25px;
    position: relative
}

.logo-icon span {
    position: absolute;
    font-size: 10px;
    right: 6px;
    top: 2px;
    color: #78e5dc
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center
}

.demo-tag {
    color: var(--teal);
    font-size: 12px;
    font-weight: 700
}

.button {
    border: 0;
    padding: 11px 16px;
    border-radius: 9px;
    font-weight: 700;
    white-space: nowrap
}

.button.ghost {
    background: #eef3fa;
    color: #314969
}

.button.primary,
.send-btn {
    background: var(--blue);
    color: white
}

.shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: calc(100vh - 130px)
}

.nav {
    background: #14213b;
    color: #bac9df;
    padding: 28px 14px
}

.nav-overline {
    font-size: 10px;
    letter-spacing: 2px;
    color: #8194b4;
    margin: 6px 14px 12px;
    font-weight: 800
}

.nav-overline.later {
    margin-top: 32px
}

.nav-item,
.stage-link {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    background: none;
    border: 0;
    border-radius: 9px;
    color: #aebfd8;
    padding: 11px 13px;
    text-align: left;
    font-size: 13px
}

.nav-item.active,
.nav-item:hover,
.stage-link.active,
.stage-link:hover {
    background: #263955;
    color: white
}

.stage-link {
    font-size: 12px;
    line-height: 1.35;
    padding: 10px
}

.stage-link span {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 23px;
    height: 23px;
    border-radius: 7px;
    background: #304260;
    color: #d5e2f1;
    font-size: 10px
}

.side-note {
    margin: 34px 7px 0;
    border: 1px solid #374c6b;
    padding: 17px;
    border-radius: 12px;
    font-size: 12px
}

.side-note strong {
    color: white
}

.side-note p {
    color: #c4d1e4
}

.side-note span {
    font-size: 11px;
    color: #91a4c0
}

.main {
    min-width: 0
}

.content {
    max-width: 1560px;
    margin: auto;
    padding: 34px 35px 55px
}

.intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px
}

.eyebrow {
    font-size: 10px;
    color: #2873ac;
    font-weight: 800;
    letter-spacing: 1.6px
}

h1 {
    font-size: clamp(27px, 3vw, 43px);
    line-height: 1.15;
    letter-spacing: -1.7px;
    margin: 8px 0 12px
}

h1 em {
    font-style: normal;
    color: var(--blue)
}

.intro p {
    margin: 0;
    color: var(--muted);
    max-width: 700px
}

h2 {
    font-size: 20px;
    letter-spacing: -.6px;
    margin: 5px 0 8px
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px
}

.metric,
.card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 5px 24px #1d3a7410;
    border-radius: 14px
}

.metric {
    padding: 20px
}

.metric span {
    display: block;
    color: #8492a9;
    letter-spacing: 1.1px;
    font-size: 10px;
    font-weight: 800
}

.metric strong {
    display: block;
    font-size: 23px;
    margin: 6px 0;
    color: #172744;
    letter-spacing: -.6px
}

.metric small {
    color: #8895a6
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    gap: 17px;
    align-items: stretch
}

.workspace-card {
    padding: 25px;
    min-height: 645px
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px
}

.card-top p {
    color: var(--muted);
    margin: 0 0 16px
}

.tag {
    background: #ebf5ff;
    border: 1px solid #d0e4f7;
    border-radius: 50px;
    padding: 6px 11px;
    font-size: 10px;
    font-weight: 900;
    color: var(--blue)
}

.progress-track {
    height: 7px;
    border-radius: 20px;
    background: #e9eef6;
    overflow: hidden
}

.progress-track div {
    width: 11%;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), #0ca79b);
    transition: width .25s
}

.stage-scroll {
    display: flex;
    gap: 5px;
    overflow: auto;
    padding: 15px 0 19px
}

.step-dot {
    flex: none;
    border: 1px solid #e0e7f2;
    border-radius: 50%;
    width: 31px;
    height: 31px;
    background: white;
    color: #8795aa;
    font-size: 11px;
    font-weight: 800
}

.step-dot.selected {
    background: var(--blue);
    color: white;
    border-color: var(--blue)
}

.step-dot.done {
    background: #e2f7ef;
    color: #188565;
    border-color: #c7eadd
}

.panel-text {
    color: var(--muted)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #4b5e79;
    font-weight: 700
}

.field.wide {
    grid-column: 1/-1
}

.field input,
.field select,
.field textarea {
    border: 1px solid #d8e1ee;
    background: #fff;
    border-radius: 9px;
    padding: 11px;
    width: 100%;
    color: #253651;
    outline-offset: 2px
}

.field textarea {
    resize: vertical;
    min-height: 90px
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid #93b6f6
}

.info-box {
    background: #f0f6ff;
    border: 1px solid #dceafa;
    border-radius: 10px;
    padding: 13px;
    margin: 16px 0;
    color: #466182;
    font-size: 12px
}

.action-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 21px
}

.action-row .button {
    padding: 10px 15px
}

.chat-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 645px
}

.chat-head {
    background: #f9fbfe;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    gap: 11px;
    border-bottom: 1px solid var(--border)
}

.bot-avatar {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #2b68dd, #0ca9aa);
    border-radius: 12px;
    font-size: 21px
}

.chat-head strong,
.chat-head small {
    display: block
}

.chat-head small {
    color: var(--muted);
    font-size: 11px
}

.online {
    margin-left: auto;
    color: #148d65;
    font-size: 11px;
    font-weight: 800
}

.chat-notice {
    background: #fff9e9;
    color: #876a37;
    font-size: 11px;
    padding: 10px 17px;
    border-bottom: 1px solid #f2eacf
}

.chat-log {
    height: 395px;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 13px
}

.msg {
    max-width: 89%;
    border-radius: 13px;
    padding: 12px 14px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 13px
}

.msg.bot {
    background: #edf3fb;
    align-self: flex-start;
    border-bottom-left-radius: 3px
}

.msg.user {
    align-self: flex-end;
    background: #2764d9;
    color: white;
    border-bottom-right-radius: 3px
}

.quick-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    padding: 10px 15px;
    border-top: 1px solid var(--border)
}

.quick-actions button {
    color: #2555a0;
    background: white;
    border: 1px solid #cadaef;
    border-radius: 22px;
    padding: 6px 10px;
    font-size: 11px
}

.chat-form {
    margin-top: auto;
    padding: 12px 15px;
    display: flex;
    border-top: 1px solid var(--border);
    gap: 8px
}

.chat-form input {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border-radius: 10px;
    border: 1px solid #d8e2ed
}

.send-btn {
    border: 0;
    border-radius: 10px;
    width: 44px;
    font-size: 19px
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 16px;
    margin-top: 17px
}

.activity,
.flow-summary {
    padding: 24px
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    max-height: 250px;
    overflow: auto
}

.event {
    display: flex;
    gap: 12px;
    color: #4f6077;
    font-size: 12px
}

.event i {
    background: #e7f1ff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    font-style: normal;
    flex: none
}

.event small {
    display: block;
    color: #92a0af
}

.flow-summary p {
    color: #68788e
}

.stack {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.stack span {
    background: #edf3ff;
    border-radius: 6px;
    padding: 6px 9px;
    color: #3561a2;
    font-size: 11px
}

.tiny {
    font-size: 11px
}

footer {
    padding: 14px 22px;
    text-align: center;
    background: #0f1b31;
    color: #9cb0ce;
    font-size: 11px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

@media(max-width:1160px) {
    .shell {
        grid-template-columns: 190px minmax(0, 1fr)
    }

    .content {
        padding: 24px
    }

    .workspace-grid {
        grid-template-columns: 1fr
    }

    .chat-log {
        height: 340px
    }

    .workspace-card,
    .chat-card {
        min-height: unset
    }
}

@media(max-width:720px) {
    .header {
        padding: 12px 16px
    }

    .demo-tag {
        display: none
    }

    .shell {
        display: block
    }

    .nav {
        display: flex;
        overflow: auto;
        padding: 10px;
        gap: 5px
    }

    .nav-overline,
    .nav .stage-link,
    .side-note {
        display: none
    }

    .nav-item {
        white-space: nowrap;
        flex: 0 0 auto;
        width: auto
    }

    .content {
        padding: 18px 12px 30px
    }

    .intro {
        align-items: flex-start;
        flex-direction: column
    }

    .metric-row {
        grid-template-columns: 1fr 1fr;
        gap: 9px
    }

    .metric {
        padding: 13px
    }

    .metric strong {
        font-size: 18px
    }

    .workspace-card {
        padding: 17px
    }

    .form-grid,
    .bottom-grid {
        grid-template-columns: 1fr
    }

    .chat-head {
        padding: 13px
    }

    .online {
        display: none
    }
}

@media(max-width:420px) {
    .logo {
        font-size: 17px
    }

    .header-actions .button {
        font-size: 11px;
        padding: 8px
    }

    .metric span {
        font-size: 9px
    }

    .intro .button {
        width: 100%
    }
}