html {
    margin: 0px;
    background: #fff;
    font-family: system-ui;
}

body {
    margin: 10px;
}

.tooltip {
    top: -1000px;
    position: fixed;
    padding: 5px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid lightgray;
    pointer-events: none;
    z-index: 10000;
    font-size: 10px;
    line-height: 1.3em;
}

.tooltip-hidden {
    opacity: 0;
    transition: all .3s;
    transition-delay: .1s;
}


text{
    cursor: default;
}

svg{
    overflow: visible;
    max-width: 100%;
    height: auto;
}

.cg-div{
    background: #FAFAFA;
    height: 800px;
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    padding: 40px 10px;
    margin: 60px -10px;
    width: calc(100% + 20px);
    grid-column: 1 / -1;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;

    > .gridsnap{
        max-width: 1800px;
        margin: 0 auto;
    }

    .feature-example-logits{
        background: #FAFAFA !important;
        outline-color: #FAFAFA !important;
    }
}

d-article{
    overflow: visible;
}


.vis-link{
    margin: 0px auto;
    font-size: 12px;
    margin-top: -15px;
    margin-bottom: 1em;
}

.full_graph_link{
    cursor: pointer;
    text{
        cursor: pointer;
    }

    rect{
        transition: all 200ms;
    }

    &:hover rect{
        fill-opacity: 0.2;
    }
}

.graph-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.graph-prompt-display {
    flex: 1 1 auto;
    min-height: 72px;
    max-height: 180px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 12px 14px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.35;
    background: #f7f7f7;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.graph-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.graph-selector-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #666;
    font-size: 11px;
    white-space: nowrap;
}

.graph-slug-select {
    min-width: 230px;
    max-width: 360px;
    height: 36px;
    padding: 5px 28px 5px 8px;
    font-size: 13px;
}

@media (max-width: 800px) {
    .graph-header-row {
        flex-direction: column;
    }
    .graph-actions, .graph-slug-select {
        width: 100%;
        max-width: none;
    }
}

.section-title, .quantile-title{
    font-weight: 500 !important;
    font-size: 13px;
    margin-bottom: 5px;
    font-family: system-ui;
    color: #000;
    padding-bottom: 5px;
    border-bottom: solid 1px #eee;
    display: block;
    line-height: 14px;
}

.quantile-title{
    margin-bottom: 0px !important;
}



.link a{
    color: #000;
    /* text-decoration: none; */
    font-size: 12px;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;

}


.nav-button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background: white;
    font-size: 14px;
}

.nav-button:hover {
    border-color: #000;
}

.nav-button.active {
    background: #000;
    color: white;
    border-color: #000;
}


.cg{
    height: calc(100vh - 150px);
}
