peat-playground {
    display: block;
    border: 1px solid #2a3a50;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.peat-pg-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #161d2a;
    border-bottom: 1px solid #2a3a50;
}

.peat-pg-hint {
    font-size: 0.75rem;
    color: #506070;
}

.peat-pg-run {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    background: #4a8fa8;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
}
.peat-pg-run:hover { opacity: 0.9; }

.peat-pg-panels {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}

.peat-pg-editor {
    border-bottom: 1px solid #2a3a50;
    min-height: 0;
    overflow: auto;
}

.peat-pg-editor .cm-editor {
    height: 100%;
}

.peat-pg-output-pane {
    background: #111820;
    border-top: 1px solid #2a3a50;
}

.peat-pg-output-label {
    padding: 0.3rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #506070;
    background: #141c28;
    border-bottom: 1px solid #1e2838;
}

.peat-pg-output {
    padding: 0.6rem 0.75rem;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: #111820;
    color: #a0b0b8;
    white-space: pre-wrap;
    overflow: auto;
    min-height: 2rem;
    max-height: 200px;
}

.peat-pg-sandbox {
    display: none;
}
