.editor-history-actions { display: flex; gap: 4px; margin-left: auto; }
.editor-history-actions button { padding: 7px; width: 34px; height: 34px; }
.editor-history-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.repair-plan { grid-template-columns: repeat(5,minmax(0,1fr)); }
.repair-explanation { line-height: 1.65; overflow-wrap: anywhere; color: #24362d; }
.repair-explanation h3 { margin-top: 1.5em; color: #143d2b; }
.repair-explanation pre { padding: 16px; border-radius: 10px; background: #f1f5f0; white-space: pre-wrap; overflow-wrap: anywhere; }
.repair-explanation code { font: .83em/1.65 ui-monospace,Consolas,monospace; }
.repair-explanation p code { background: #edf2eb; padding: 2px 4px; border-radius: 3px; }
@media(max-width:560px) { .repair-plan { grid-template-columns: repeat(3,minmax(0,1fr)); } }

.presentation-prompt-dialog {width:min(1100px,96vw);max-width:96vw;max-height:94dvh;overflow-y:auto;}
#presentation-prompt-text {width:100%;box-sizing:border-box;resize:vertical;}
.presentation-branches,.presentation-proposal-tabs {display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0;}
.presentation-branch {border:1px solid #cbdad5;border-radius:1rem;padding:.3rem .65rem;font-size:.8rem;}
.presentation-branch[data-state=working]::before {content:'';display:inline-block;width:.7em;height:.7em;border:2px solid #adc8bf;border-top-color:#087d6a;border-radius:50%;animation:app-generation-spin .8s linear infinite;margin-right:.4em;}
.presentation-branch[data-state=complete] {background:#e8f6ee;color:#176346;}
.presentation-proposal-tabs [aria-pressed=true] {background:#0b7164;color:white;}
.presentation-proposal-preview {zoom:.65;border:1px solid #d6e2dc;border-radius:16px;padding:20px;background:#fff;}
.presentation-proposal-code {white-space:pre-wrap;overflow-wrap:anywhere;background:#172526;color:#e8f2ef;padding:1rem;border-radius:12px;}
.presentation-Label {padding:.8rem 1rem;background:#f2f7f4;border-radius:12px;line-height:1.55;}
.presentation-Label p:first-child {margin-top:0}.presentation-Label p:last-child {margin-bottom:0}
@media (prefers-reduced-motion:reduce) {.presentation-branch[data-state=working]::before {animation:none}}

#presentation-prompt-plan {grid-template-columns:repeat(5,minmax(0,1fr));}
#presentation-prompt-dialog .dialog-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.6rem;margin-top:1rem;}
@media(max-width:560px){#presentation-prompt-plan{grid-template-columns:repeat(3,minmax(0,1fr))}}

#presentation-prompt-plan .app-generation-step-state {display:block;margin-top:.3rem;font-size:.7rem;}
.presentation-proposal-tabs [aria-pressed=true] {color:#fff!important;}

#editor-assistance-dialog{width:min(850px,96vw);max-width:96vw;max-height:94dvh;overflow-y:auto}
#editor-assistance-text{width:100%;box-sizing:border-box;resize:vertical}
.editor-assistance-warning{padding:.9rem 1rem;background:#fff4d7;border:1px solid #dfbc66;border-radius:10px;line-height:1.5}
