/* One quiet surface: no window chrome, language badge, gradient or shadow. */
.aminu-code-shell {
    --aminu-code-bg: #16181d;
    margin-block: 1.5rem;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #292c33;
    border-radius: 8px;
    background: var(--aminu-code-bg);
}

.aminu-code-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 8px 10px 0;
    background: transparent;
}

.aminu-code-shell .aminu-code-copy {
    appearance: none;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 4px;
    color: #a8adb8;
    background: transparent;
    box-shadow: none;
    font: 500 12px/1.5 system-ui, sans-serif;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

.aminu-code-shell .aminu-code-copy:hover {
    color: #f1f3f5;
    background: #252830;
}

.aminu-code-shell .aminu-code-copy:focus-visible {
    outline: 2px solid #a8b7d2;
    outline-offset: 2px;
}

.aminu-code-shell .aminu-code-copy:disabled { cursor: default; }
.aminu-code-shell .aminu-code-copy.is-copied { color: #a8d5b5; }
.aminu-code-shell .aminu-code-copy.is-error { color: #efaaaa; }

.aminu-code-shell .wp-block-code {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow: auto;
    border: 0;
    border-radius: 0;
    color: #d6deeb;
    background: transparent;
    box-shadow: none;
}

.aminu-code-shell .wp-block-code code.hljs {
    display: block;
    box-sizing: border-box;
    min-width: 100%;
    width: max-content;
    padding: 8px 24px 24px;
    color: #d6deeb;
    background: var(--aminu-code-bg);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .875rem;
    line-height: 1.7;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    tab-size: 4;
}

.aminu-code-copy-source {
    position: fixed;
    top: -9999px;
    left: -9999px;
}

@media (max-width: 480px) {
    .aminu-code-shell .wp-block-code code.hljs { padding: 8px 16px 20px; }
    .aminu-code-shell .aminu-code-copy { min-height: 44px; }
}
