/* shell */
.ksq {
    width: 100%;
}

.ksq-shell {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,.08);
    backdrop-filter: blur(8px);
}

.ksq-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .85rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.ksq-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
}

.ksq-actions {
    display: flex;
    gap: .4rem;
}

.ksq-btn {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}

    .ksq-btn:hover {
        background: rgba(255,255,255,.10);
    }

.ksq-toolbar {
    border-bottom: 1px solid rgba(255,255,255,.10);
    padding: .35rem .5rem;
    background: rgba(255,255,255,.04);
}

    /* quill default toolbar icons better spacing */
    .ksq-toolbar .ql-formats {
        margin-right: .55rem;
    }

    .ksq-toolbar .ql-picker {
        font-size: 13px;
    }

/* editor */
.ksq-editor {
    height: 420px;
}

    .ksq-editor .ql-container {
        height: 100%;
        border: 0 !important;
        font-size: 14px;
    }

    .ksq-editor .ql-editor {
        min-height: 420px;
        padding: 14px 16px;
    }

    .ksq-editor .ql-toolbar {
        border: 0 !important;
    }

/* footer */
.ksq-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem .75rem;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
}

.ksq-hint {
    display: flex;
    gap: .45rem;
    align-items: center;
    opacity: .85;
    font-size: 12px;
}

.ksq-badge {
    border-radius: 999px;
}

/* table pasted */
.ksq-table-html {
    width: 100%;
    border-collapse: collapse;
    margin: .5rem 0;
}

    .ksq-table-html th, .ksq-table-html td {
        border: 1px solid rgba(0,0,0,.20);
        padding: .35rem .45rem;
    }

/* fullscreen */
.ksq-fullscreen {
    position: fixed;
    inset: 18px;
    z-index: 9999;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

body.ksq-noscroll {
    overflow: hidden;
}

.ksq-fullscreen .ksq-editor {
    height: calc(100vh - 18px - 18px - 52px - 52px - 44px);
}

    .ksq-fullscreen .ksq-editor .ql-editor {
        min-height: 100%;
    }
