:root {
    --ink: #22251f;
    --muted: #73776e;
    --line: #e7e7e1;
    --canvas: #fbfbf8;
    --side: #f5f5f1;
    --violet: #6c5dd8;
    --green: #41a579
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--canvas);
    font-family: 'DM Sans', sans-serif;
    color: var(--ink)
}

.sidebar {
    position: fixed;
    width: 250px;
    inset: 0 auto 0 0;
    background: var(--side);
    border-right: 1px solid var(--line);
    padding: 23px 14px;
    display: flex;
    flex-direction: column
}

.brand {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.8px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px 27px
}

.brand span,
.bot {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: #242621;
    color: #fff;
    font: 19px 'Instrument Serif'
}

.workspace {
    height: 38px;
    border: 1px solid #e0e0da;
    background: #fff;
    border-radius: 7px;
    text-align: left;
    padding: 0 10px;
    font: 12px 'DM Sans';
    font-weight: 600;
    color: #4e514b
}

.workspace i {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #e69b67;
    border-radius: 50%;
    margin-right: 7px
}

.workspace b {
    float: right;
    color: #9fa19b
}

nav {
    margin-top: 26px
}

nav p {
    font: 10px 'DM Mono';
    letter-spacing: 1px;
    color: #969a91;
    margin: 0 10px 9px
}

nav p:not(:first-child) {
    margin-top: 28px
}

nav a {
    height: 37px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 6px;
    padding: 0 10px;
    text-decoration: none;
    color: #666a62;
    font-size: 13px;
    font-weight: 500
}

nav a.active,
nav a:hover {
    background: #e9e9e4;
    color: #252720;
    font-weight: 600
}

nav em {
    font-style: normal;
    color: #7f827b;
    font-size: 17px;
    width: 16px;
    text-align: center
}

nav strong {
    font: 10px 'DM Mono';
    background: #dedde9;
    color: #625b92;
    border-radius: 7px;
    padding: 1px 5px;
    margin-left: auto
}

.sidebar-bottom {
    margin-top: auto
}

.secure {
    border-top: 1px solid #e5e5df;
    padding: 15px 8px;
    display: flex;
    gap: 8px
}

.secure>span {
    color: #5aad85;
    font-size: 17px
}

.secure b,
.secure small,
.profile b,
.profile small {
    display: block;
    font-size: 10px
}

.secure small,
.profile small {
    color: #969990;
    margin-top: 2px
}

.profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 0
}

.profile>span {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: #e9c6b1;
    color: #795343;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: bold
}

.profile button {
    margin-left: auto;
    background: none;
    border: 0;
    color: #767971;
    font-size: 16px
}

main {
    margin-left: 250px;
    min-height: 100vh
}

header {
    height: 67px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px
}

.crumb {
    font-size: 12px;
    color: #797c75
}

.crumb b {
    color: #c3c4be;
    font-weight: 400;
    margin: 0 7px
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px
}

.server-state {
    font: 10px 'DM Mono';
    color: #5d9f7b
}

.server-state.offline {
    color: #c46d5d
}

.help {
    border: 1px solid #bfc1ba;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: none;
    color: #72766e
}

.page {
    padding: 60px max(48px, calc((100vw - 250px - 1050px)/2))
}

.hidden {
    display: none !important
}

.query-hero {
    max-width: 780px
}

.eyebrow {
    font: 10px 'DM Mono';
    letter-spacing: 1px;
    color: #8c8f87;
    margin: 0 0 13px
}

.query-hero h1 {
    font-size: 51px;
    line-height: 1.03;
    letter-spacing: 0x;
    margin: 0;
    font-weight: 600
}

.query-hero h1 em {
    font: italic 50px 'Instrument Serif';
    letter-spacing: -1px
}

.lede {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 570px;
    margin: 20px 0 26px
}

.search-card {
    border: 1px solid #d6d7d0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 18px #36362a0a;
    overflow: hidden
}

.search-card:focus-within {
    border-color: #9388df;
    box-shadow: 0 0 0 3px #8f83df12
}

.search-card textarea {
    border: 0;
    outline: 0;
    resize: none;
    width: 100%;
    height: 58px;
    padding: 17px 18px 8px;
    font: 14px 'DM Sans';
    color: var(--ink)
}

.search-card>div {
    height: 45px;
    padding: 5px 8px 9px 12px;
    display: flex;
    align-items: center
}

.scope {
    border: 0;
    background: #f2f2ef;
    border-radius: 5px;
    padding: 6px 8px;
    font: 11px 'DM Sans';
    color: #575a53
}

.hint {
    font: 10px 'DM Mono';
    color: #a0a29b;
    margin-left: auto;
    margin-right: 12px
}

.search-button,
.primary {
    border: 0;
    border-radius: 6px;
    background: #695bd1;
    color: #fff;
    padding: 8px 12px;
    font: 12px 'DM Sans';
    font-weight: 600;
    cursor: pointer
}

.search-button:disabled,
.primary:disabled {
    opacity: .6;
    cursor: wait
}

.search-button b {
    font-size: 15px;
    margin-left: 6px
}

.search-examples {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.search-examples span {
    font-size: 10px;
    color: #999c94
}

.search-examples button {
    border: 1px solid #e0e1db;
    background: transparent;
    border-radius: 18px;
    color: #71746e;
    padding: 6px 10px;
    font: 10px 'DM Sans';
    cursor: pointer
}

.answer-panel {
    margin-top: 54px
}

.query-label {
    font: 10px 'DM Mono';
    letter-spacing: .6px;
    color: #8c8e87;
    margin-bottom: 12px
}

.query-label span {
    color: #555851;
    text-transform: none
}

.answer-grid {
    display: grid;
    grid-template-columns: 1.45fr .9fr;
    gap: 17px
}

.answer,
.evidence,
.source-card,
.activity-card {
    background: #fff;
    border: 1px solid #e2e2dc;
    border-radius: 10px
}

.answer-head {
    height: 68px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #edede8
}

.bot {
    background: #7466dc
}

.answer-head b,
.answer-head small {
    display: block;
    font-size: 12px
}

.answer-head small {
    font-size: 10px;
    color: #93968e;
    margin-top: 2px
}

.answer-head button {
    margin-left: auto;
    border: 0;
    background: none;
    color: #777
}

.answer-copy {
    padding: 19px 20px 13px
}

.answer-copy p {
    font-size: 13px;
    line-height: 1.63;
    color: #52554e;
    margin: 0 0 13px
}

.answer-copy strong {
    color: #292b27
}

.answer-actions {
    border-top: 1px solid #efeee9;
    padding: 13px 18px;
    display: flex;
    gap: 13px;
    align-items: center
}

.answer-actions button {
    background: none;
    border: 0;
    padding: 0;
    color: #767970;
    font: 10px 'DM Sans';
    cursor: pointer
}

.answer-actions span {
    flex: 1
}

.evidence {
    padding: 16px
}

.evidence-title {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 2px 2px 12px
}

.evidence-title span {
    font-size: 10px;
    color: #93968e
}

.evidence-item {
    display: flex;
    text-align: left;
    width: 100%;
    gap: 9px;
    padding: 13px 2px;
    border: 0;
    border-top: 1px solid #efeee9;
    background: none;
    cursor: pointer
}

.evidence-item>span {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 12px;
    font-weight: bold
}

.mail-icon {
    background: #df6d5d
}

.slack-icon {
    background: #4a154b
}

.doc-icon {
    background: #4d8bd9
}

.evidence-item b {
    font-size: 10px;
    display: block;
    color: #3b3d38
}

.evidence-item p {
    font-size: 10px;
    line-height: 1.25;
    margin: 3px 0;
    color: #70736b
}

.evidence-item small {
    font-size: 9px;
    color: #a0a29a
}

.evidence-item i {
    font-style: normal;
    color: #999;
    margin: auto 0 auto auto
}

.view-all {
    width: 100%;
    border: 0;
    background: none;
    padding: 10px 2px 0;
    text-align: left;
    color: #6558c6;
    font: 11px 'DM Sans';
    cursor: pointer
}

.empty-evidence,
.empty-activity {
    font-size: 11px;
    line-height: 1.55;
    color: #959890;
    padding: 12px 2px
}

.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px
}

.page-heading h2 {
    font-size: 31px;
    letter-spacing: -1.4px;
    margin: 0
}

.page-heading>div>p:last-child {
    max-width: 570px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0 0
}

.security-note {
    border: 1px solid #e1ddf7;
    background: #f8f7fe;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #686570;
    margin-bottom: 25px
}

.security-note>span {
    font-size: 18px;
    color: #7466db
}

.security-note b {
    color: #514e5b
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.source-card {
    padding: 17px;
    min-height: 210px;
    display: flex;
    flex-direction: column
}

.source-top {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.app-logo {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #6c5dd8;
    font-weight: bold;
    font-size: 14px
}

.app-logo.slack {
    background: #4a154b
}

.app-logo.notion {
    background: #222
}

.app-logo.jira {
    background: #2879d4
}

.app-logo.imap {
    background: #8a71b8
}

.app-logo.google_workspace {
    background: #db6959
}

.app-logo.microsoft_365 {
    background: #1675d2
}

.app-logo.linear {
    background: #5e6ad2
}

.app-logo.github {
    background: #24292f
}

.app-logo.dropbox {
    background: #2769ff
}

.app-logo.zoom {
    background: #2d8cff
}

.app-logo.whatsapp {
    background: #2fa56e
}

.status,
.not-connected {
    font-size: 9px;
    color: #49a57c
}

.status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #49a57c;
    margin-right: 4px
}

.not-connected {
    color: #989b94
}

.source-card h3 {
    font-size: 14px;
    margin: 17px 0 5px
}

.source-card>p {
    font-size: 11px;
    line-height: 1.4;
    color: #777a72;
    margin: 0
}

.source-meta {
    margin-top: auto;
    padding: 16px 0 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #efeee9;
    color: #969991;
    font-size: 9px;
    gap: 8px
}

.source-meta.empty {
    display: block
}

.source-error {
    display: block;
    color: #b45d51;
    font-size: 9px;
    line-height: 1.25;
    margin-top: 7px;
    max-height: 34px;
    overflow: hidden
}

.source-footer {
    padding-top: 11px;
    display: flex;
    justify-content: space-between
}

.source-footer button {
    border: 0;
    background: none;
    padding: 0;
    color: #6156c3;
    font: 10px 'DM Sans';
    font-weight: 600;
    cursor: pointer
}

.browse {
    display: block;
    margin: 26px auto;
    border: 0;
    background: none;
    color: #6358c5;
    font: 12px 'DM Sans';
    cursor: pointer
}

.compact {
    align-items: center
}

.outline {
    border: 1px solid #d8d9d2;
    background: #fff;
    border-radius: 6px;
    padding: 8px 11px;
    font: 11px 'DM Sans';
    color: #585b54
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-bottom: 20px
}

.metric-row div {
    border: 1px solid #e3e3dd;
    background: #fff;
    border-radius: 9px;
    padding: 19px
}

.metric-row b,
.metric-row span {
    display: block
}

.metric-row b {
    font: 22px 'DM Mono';
    letter-spacing: -1px
}

.metric-row span {
    font-size: 10px;
    color: #90938b;
    margin-top: 5px
}

.activity-card {
    padding: 20px
}

.activity-card h3 {
    font-size: 14px;
    margin: 0 0 8px
}

.sync {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 0;
    border-top: 1px solid #efeee9
}

.sync b,
.sync small {
    display: block;
    font-size: 11px
}

.sync small {
    font-size: 10px;
    color: #92958d;
    margin-top: 3px
}

.sync time {
    margin-left: auto;
    font-size: 10px;
    color: #989b94
}

.sync>i {
    font-style: normal;
    color: #4bac81
}

.sync>i.error {
    color: #c35f52
}

.modal {
    position: fixed;
    inset: 0;
    background: #292a2670;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 20px
}

.modal-card {
    position: relative;
    width: 475px;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 60px #1115
}

.close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: none;
    color: #7d8078;
    font-size: 24px
}

.modal-logo {
    width: 36px;
    height: 36px;
    background: #8a71b8;
    color: #fff;
    border-radius: 9px;
    display: grid;
    place-items: center;
    margin-bottom: 20px
}

.modal-logo.google_workspace {
    background: #db6959
}

.modal-logo.microsoft_365 {
    background: #1675d2
}

.modal-logo.linear {
    background: #5e6ad2
}

.modal-logo.github {
    background: #24292f
}

.modal-logo.dropbox {
    background: #2769ff
}

.modal-logo.zoom {
    background: #2d8cff
}

.modal-logo.whatsapp {
    background: #2fa56e
}

.modal-logo.jira {
    background: #1d71d8
}

.modal-card h2 {
    font-size: 24px;
    letter-spacing: -1px;
    margin: 0
}

.modal-copy {
    font-size: 12px;
    line-height: 1.5;
    color: #777a73;
    margin: 11px 0 20px
}

.modal-card form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #535650;
    margin: 13px 0
}

.modal-card input {
    display: block;
    width: 100%;
    height: 37px;
    border: 1px solid #deded8;
    border-radius: 5px;
    margin-top: 6px;
    padding: 0 10px;
    font: 12px 'DM Sans';
    outline-color: #9084e5
}

.scope-note {
    border: 1px solid #e5e1fb;
    background: #f8f7fe;
    border-radius: 6px;
    padding: 9px 10px;
    margin: 14px 0 2px
}

.scope-note b,
.scope-note span {
    display: block;
    font-size: 10px
}

.scope-note b {
    color: #5a547c;
    margin-bottom: 3px
}

.scope-note span {
    color: #77718d;
    line-height: 1.35
}

.required {
    color: #b95e50
}

.wide {
    width: 100%;
    height: 39px;
    margin-top: 8px
}

.wide span {
    float: right;
    font-size: 16px
}

.form-note {
    display: block;
    text-align: center;
    font-size: 9px;
    color: #989a93;
    margin-top: 15px
}

.picker-card {
    max-height: 80vh;
    overflow: auto
}

.connector-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px
}

.connector-picker button {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 9px;
    border: 1px solid #e5e5df;
    background: #fff;
    border-radius: 7px;
    padding: 10px;
    cursor: pointer
}

.connector-picker button:hover {
    border-color: #9e94e9;
    background: #faf9ff
}

.connector-picker b,
.connector-picker small {
    display: block
}

.connector-picker b {
    font-size: 11px
}

.connector-picker small {
    font-size: 9px;
    color: #8c8f87;
    margin-top: 2px
}

.connector-picker i {
    margin-left: auto;
    color: #777;
    font-style: normal
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translate(-50%, 15px);
    opacity: 0;
    transition: .2s;
    background: #252720;
    color: #fff;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 11px;
    z-index: 20
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

@media(max-width:900px) {
    .source-grid {
        grid-template-columns: repeat(2, 1fr)
    }

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

    .sidebar {
        width: 210px
    }

    main {
        margin-left: 210px
    }

    .page {
        padding: 45px 30px
    }
}

@media(max-width:640px) {
    .sidebar {
        display: none
    }

    main {
        margin: 0
    }

    header {
        padding: 0 20px
    }

    .page {
        padding: 38px 20px
    }

    .query-hero h1 {
        font-size: 41px
    }

    .query-hero h1 em {
        font-size: 40px
    }

    .source-grid,
    .metric-row,
    .connector-picker {
        grid-template-columns: 1fr
    }

    .page-heading {
        display: block
    }

    .page-heading .primary {
        margin-top: 18px
    }

    .answer-panel {
        margin-top: 36px
    }

    .hint,
    .search-examples,
    .server-state {
        display: none
    }
}