.graphiql-logo-link {
    visibility: hidden;
    position: absolute;
}

.graphiql-container div .query-editor {
    min-height: 400px;
}

#graphiql-cleanup-query-button {
    color: hsla(var(--color-neutral), var(--alpha-secondary));
}

#graphiql-cleanup-query-button:hover,
#graphiql-cleanup-query-button:focus {
    color: hsl(var(--color-neutral));
}

#graphiql-cleanup-query-button > svg {
    height: var(--px-20);
    width: var(--px-20);
}

#graphiql-ws-clear-button {
    color: hsla(var(--color-neutral), var(--alpha-secondary));
}

#graphiql-ws-clear-button:hover,
#graphiql-ws-clear-button:focus {
    color: hsl(var(--color-neutral));
}

#graphiql-ws-clear-button > svg {
    height: var(--px-20);
    width: var(--px-20);
}

#graphiql-cleanup-toast {
    position: fixed;
    top: 84px;
    right: 20px;
    background: hsl(var(--color-base));
    color: hsl(var(--color-neutral));
    border: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy));
    border-radius: var(--border-radius-8);
    padding: 8px 12px;
    font-size: var(--font-size-hint);
    font-family: var(--font-family);
    z-index: 1200;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

#ws-events-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    max-height: none;
    display: none;
    z-index: 6;
    background: hsl(var(--color-base));
    border: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy));
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.graphiql-container .graphiql-response.ws-events-active .result-window > *:not(#ws-events-panel) {
    visibility: hidden;
}

.graphiql-container .graphiql-response.ws-events-active .result-window {
    overflow: hidden;
}

#ws-events-panel.collapsed {
    inset: 12px 12px auto auto;
    width: auto;
    max-height: none;
    border-radius: var(--border-radius-8);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.ws-events-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy));
    background: hsla(var(--color-neutral), var(--alpha-background-light));
}

.ws-events-panel-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-events-panel-toggle {
    border: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy));
    border-radius: var(--border-radius-4);
    padding: 2px 8px;
    background: hsl(var(--color-base));
    color: hsl(var(--color-neutral));
    font-size: 12px;
    cursor: pointer;
}

.ws-events-panel-toggle:hover {
    background: hsla(var(--color-neutral), var(--alpha-background-light));
}

.ws-events-panel-title {
    font-weight: 600;
    font-size: var(--font-size-body);
    color: hsl(var(--color-neutral));
}

.ws-events-panel-meta {
    font-size: var(--font-size-hint);
    color: hsla(var(--color-neutral), var(--alpha-secondary));
}

.ws-events-panel-table-wrap {
    height: calc(100% - 44px);
    max-height: none;
    overflow: auto;
}

.ws-events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-body);
    font-family: var(--font-family);
    color: hsl(var(--color-neutral));
}

.ws-events-table thead th {
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 3;
    background: linear-gradient(to bottom, hsl(var(--color-base)) 0%, hsl(var(--color-base)) 100%);
    border-bottom: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy));
    box-shadow: 0 1px 0 hsla(var(--color-neutral), var(--alpha-background-light));
    padding: 8px 10px;
    white-space: nowrap;
    font-weight: var(--font-weight-medium);
    color: hsla(var(--color-neutral), var(--alpha-secondary));
}

.ws-events-table tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid hsla(var(--color-neutral), var(--alpha-background-light));
    vertical-align: top;
    color: hsl(var(--color-neutral));
}

.ws-events-table tbody tr:hover {
    background: hsla(var(--color-neutral), var(--alpha-background-light));
}

.ws-events-table th:nth-child(1),
.ws-events-table td:nth-child(1) {
    width: 180px;
    white-space: nowrap;
}

.ws-events-table th:nth-child(2),
.ws-events-table td:nth-child(2) {
    width: 260px;
    word-break: break-word;
}

.ws-events-table th:nth-child(3),
.ws-events-table td:nth-child(3) {
    word-break: break-word;
    font-family: var(--font-family-mono);
    color: hsla(var(--color-neutral), 0.95);
}

.ws-events-empty {
    display: none;
    padding: 16px;
    text-align: center;
    color: hsla(var(--color-neutral), var(--alpha-secondary));
}
