.agent-prompt-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid #dfe5d7;
}

.agent-prompt-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #14382d;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agent-prompt-heading span i {
    font-size: 1rem;
}

.agent-prompt-heading em {
    color: #718078;
    font-size: 0.72rem;
    font-style: normal;
}

.agent-prompt-compact {
    margin-top: 28px;
    padding-top: 24px;
    color: #365447;
    border-top: 1px solid #dfe5d7;
}

.agent-prompt-compact-copy {
    min-width: 0;
}

.agent-prompt-model-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #14382d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.agent-prompt-compact-copy h3 {
    margin: 14px 0 8px !important;
    color: #14382d !important;
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
}

.agent-prompt-compact-copy > p {
    max-width: 680px;
    margin: 0;
    color: #5f7469;
    line-height: 1.65;
}

.agent-prompt-compact-copy ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    color: #365447;
    font-size: 0.8rem;
    list-style: none;
}

.agent-prompt-compact-copy li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.agent-prompt-compact-copy li::before {
    color: #14382d;
    font-weight: 800;
    content: "✓";
}

.agent-prompt-compact-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 20px;
    flex-wrap: wrap;
}

.agent-prompt-compact-actions a,
.agent-prompt-compact-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 14px;
    color: #14382d;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #dfe5d7;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
}

.agent-prompt-compact-actions button {
    color: #ffffff;
    background: #14382d;
    border-color: #14382d;
}

.agent-prompt-compact details {
    overflow: hidden;
    background: #f7f8f2;
    border: 1px solid #dfe5d7;
    border-radius: 10px;
}

.agent-prompt-compact summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    color: #14382d;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.agent-prompt-compact summary::-webkit-details-marker {
    display: none;
}

.agent-prompt-compact summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.agent-prompt-compact summary span:last-child {
    color: #83917f;
    font-size: 0.68rem;
    font-weight: 500;
}

.agent-prompt-compact details > div {
    padding: 16px;
    border-top: 1px solid #dfe5d7;
}

.agent-prompt-compact pre {
    max-height: 330px;
    margin: 0;
    overflow: auto;
    color: #dfe9e1;
    white-space: pre-wrap;
    background: #102f27;
    border-color: #365d4e;
}

@media (max-width: 760px) {
    .agent-prompt-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .agent-prompt-compact-actions a,
    .agent-prompt-compact-actions button {
        width: 100%;
    }
}
