.cl-code-hints {
    position: absolute;
    z-index: 20000;
    width: min(380px, calc(100vw - 20px));
    max-height: 280px;
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--site-accent-border);
    border-radius: 12px;
    background: #ffffff;
    color: #1f2a3d;
    box-shadow: 0 18px 45px rgba(21, 43, 82, 0.18), 0 3px 12px rgba(21, 43, 82, 0.08);
    font-family: var(--site-font-body, var(--reader-font-family, Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif));
}

.cl-code-hints__item {
    display: grid;
    grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.cl-code-hints__item:hover,
.cl-code-hints__item.is-active {
    background: var(--site-accent-soft);
    color: var(--site-accent-hover);
}

.cl-code-hints__label {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-family: var(--lesson-library-font-mono, var(--site-font-mono, ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace));
    font-size: var(--font-size-200);
    font-weight: var(--site-weight-bold, 800);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-code-hints__detail {
    min-width: 0;
    overflow: hidden;
    color: #607089;
    font-size: var(--font-size-100);
    font-weight: var(--site-weight-semibold, 650);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-code-hints__item:hover .cl-code-hints__detail,
.cl-code-hints__item.is-active .cl-code-hints__detail {
    color: var(--site-accent);
}

[data-theme="dark"] .cl-code-hints {
    border-color: var(--site-accent-border);
    background: #121927;
    color: #eef5ff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32), 0 3px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cl-code-hints__item:hover,
[data-theme="dark"] .cl-code-hints__item.is-active {
    background: var(--site-accent-soft);
    color: var(--site-accent);
}

[data-theme="dark"] .cl-code-hints__detail {
    color: #a8b7cf;
}

[data-theme="dark"] .cl-code-hints__item:hover .cl-code-hints__detail,
[data-theme="dark"] .cl-code-hints__item.is-active .cl-code-hints__detail {
    color: var(--site-accent-hover);
}
