.ai-guide__result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.ai-guide__result-top > .ai-guide__result-actions { max-width: none !important; }
.ai-guide__outline-action--danger, .ai-guide__history-delete { color: #bd5135; border-color: #f1d4c9; }
.ai-guide__history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: stretch; }
.ai-guide__history-row .ai-guide__history-item { min-width: 0; }
.ai-guide__history-delete { align-self: stretch; padding: 0 9px; border: 1px solid #e7ebe9; border-radius: 11px; background: #fff; font: inherit; font-size: 10px; cursor: pointer; }
.ai-guide__history-delete:hover, .ai-guide__outline-action--danger:hover { background: #fff5f0; }
.ai-guide-editor-open { overflow: hidden; }
.ai-guide__editor-backdrop { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(19, 35, 43, .55); }
.ai-guide__editor { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; width: min(920px, 100%); max-height: min(92vh, 980px); overflow: hidden; border: 1px solid #e1e8e4; border-radius: 22px; background: #fff; box-shadow: 0 24px 80px rgba(17, 37, 45, .3); }
.ai-guide__editor-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px 24px 16px; border-bottom: 1px solid #ecf0ee; }
.ai-guide__editor-head h2 { margin: 5px 0 0; color: #183346; font-size: 24px; }
.ai-guide__editor-close { width: 34px; height: 34px; border: 0; border-radius: 10px; color: #70818a; background: #f3f6f4; font-size: 24px; line-height: 1; cursor: pointer; }
.ai-guide__editor-scroll { overflow: auto; padding: 18px 24px 26px; }
.ai-guide__editor-field { display: grid; gap: 5px; margin: 0 0 11px; }
.ai-guide__editor-field > span { color: #66787f; font-size: 11px; font-weight: 700; }
.ai-guide__editor-field input, .ai-guide__editor-field textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #dce5e0; border-radius: 9px; color: #1e323d; background: #fbfcfb; font: inherit; font-size: 12px; line-height: 1.45; resize: vertical; }
.ai-guide__editor-field input:focus, .ai-guide__editor-field textarea:focus { border-color: #ed7042; outline: 0; box-shadow: 0 0 0 3px rgba(237,112,66,.12); }
.ai-guide__editor-day { margin: 0 0 16px; padding: 14px; border: 1px solid #e2ebe6; border-radius: 15px; }
.ai-guide__editor-day legend { padding: 0 7px; color: #d15c35; font-size: 14px; font-weight: 800; }
.ai-guide__editor-items { display: grid; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf1ef; }
.ai-guide__editor-item, .ai-guide__editor-meal { padding: 11px; border-radius: 11px; background: #f6faf7; }
.ai-guide__editor-item h4, .ai-guide__editor-meals h4 { margin: 0 0 8px; color: #284455; font-size: 12px; }
.ai-guide__editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-guide__editor-meals { margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf1ef; }
.ai-guide__editor-meals > h4 { font-size: 13px; }
.ai-guide__editor-meal { margin-top: 8px; }
.ai-guide__editor-meal > strong { display: block; margin-bottom: 8px; color: #cb5d38; font-size: 11px; }
.ai-guide__editor-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px; border-top: 1px solid #ecf0ee; background: #fbfcfb; }
.ai-guide__editor-actions .ai-guide__submit { margin: 0; }
.ai-guide__editor-status { min-height: 16px; margin: 0; padding: 0 24px 10px; color: #bd5135; font-size: 11px; }
@media (max-width: 650px) {
    .ai-guide__result-actions { justify-content: flex-start; }
    .ai-guide__editor-backdrop { padding: 0; }
    .ai-guide__editor { width: 100%; height: 100%; max-height: 100%; border: 0; border-radius: 0; }
    .ai-guide__editor-head, .ai-guide__editor-scroll, .ai-guide__editor-actions { padding-left: 16px; padding-right: 16px; }
    .ai-guide__editor-status { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 420px) {
    .ai-guide__editor-grid { grid-template-columns: 1fr; }
}
