/* R282 — formatting parity for the READ-ONLY Bot Flow outline.
   Uses the Telegram preview's sanitized formatter; no draft/publishing changes. */
.editor-focused-shell .simple-screens #editorMenu .flow-one-screen .flow-items-viewport .flow-tree-message-row > .screen-link .screen-label,
.editor-focused-shell .simple-screens #editorMenu .flow-one-screen .flow-items-viewport .page-tree-root > .screen-link .screen-label {
  display:block!important;
  min-width:0;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:initial!important;
  line-height:1.4;
}
.editor-focused-shell .flow-one-screen .r282-flow-message-text,
.editor-focused-shell .flow-one-screen .r282-flow-piece {display:block;white-space:normal;min-width:0;overflow-wrap:anywhere}
.editor-focused-shell .flow-one-screen .r282-flow-piece+.r282-flow-piece{margin-top:8px;padding-top:6px;border-top:1px dashed #d0dae1}
.editor-focused-shell .flow-one-screen .r282-flow-message-text b,
.editor-focused-shell .flow-one-screen .r282-flow-message-text strong{font-weight:750}
.editor-focused-shell .flow-one-screen .r282-flow-message-text i,
.editor-focused-shell .flow-one-screen .r282-flow-message-text em{font-style:italic}
.editor-focused-shell .flow-one-screen .r282-flow-message-text u{text-decoration:underline}
.editor-focused-shell .flow-one-screen .r282-flow-message-text s,
.editor-focused-shell .flow-one-screen .r282-flow-message-text strike{text-decoration:line-through}
.editor-focused-shell .flow-one-screen .r282-flow-message-text pre{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.editor-focused-shell .flow-one-screen .r282-flow-message-text code{white-space:pre-wrap;overflow-wrap:anywhere;padding:0 3px;border-radius:3px;background:#ecf0f4}
.editor-focused-shell .flow-one-screen .r282-flow-message-text blockquote{margin:5px 0;padding-left:8px;border-left:3px solid #79acd0}
.editor-focused-shell .flow-one-screen .r282-flow-message-text .r282-flow-readonly-link{color:#1684d0;text-decoration:underline}
.editor-focused-shell .flow-one-screen .r282-flow-photo{display:block;width:auto;max-width:100%;max-height:140px;object-fit:contain;border-radius:6px;margin-bottom:6px}
.editor-focused-shell .flow-one-screen .r282-flow-attachment{display:block;font-weight:650;margin:0 0 5px;color:#407b9b}
.editor-focused-shell .flow-one-screen .r282-flow-message-text .tg-spoiler{background:#b9c2cb;color:transparent;border-radius:2px}
.editor-focused-shell .flow-one-screen .r282-flow-message-text .tg-variable-chip{white-space:normal;overflow-wrap:anywhere}

/* The status line is ABOVE the six actions, which are arranged 3 per row.
   The markup has no decorative enclosing row cards. */
.r10-editor .tg-preview-note-row{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
  width:100%;max-width:740px;min-width:0;
  margin:4px auto 9px!important;
  padding:8px!important;
  box-sizing:border-box;
}
.r10-editor .tg-preview-note-row>.tg-editor-mode-note{
  display:block;align-self:stretch;flex:none!important;width:100%;max-width:100%!important;
  margin:0!important;padding:0 2px;line-height:1.45!important;
  text-align:left;white-space:normal;overflow-wrap:anywhere;
}
.r10-editor .tg-preview-note-row>.tg-preview-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:minmax(31px,auto);
  align-items:stretch;justify-items:stretch;
  gap:5px!important;
  width:100%!important;max-width:100%;min-width:0;box-sizing:border-box;
}
.r10-editor .tg-preview-note-row>.tg-preview-actions>*{
  box-sizing:border-box;min-width:0!important;max-width:100%;width:100%;
  margin:0;justify-content:center;text-align:center;
  font-size:10.5px!important;line-height:1.2;
  padding:5px 5px!important;min-height:31px;white-space:normal!important;
  overflow-wrap:anywhere;
}
.r10-editor .tg-preview-note-row>.tg-preview-actions>.r280-draft-anchor{display:flex;align-items:stretch;position:relative}
.r10-editor .tg-preview-note-row>.tg-preview-actions>.r280-draft-anchor>.r280-save-draft{width:100%;min-width:0;min-height:31px;font-size:10.5px;padding:4px 4px}
.r10-editor .tg-preview-note-row>.tg-preview-actions>.r145-open-telegram{font-size:10px!important;padding:5px 3px!important;white-space:normal!important}

/* Six DIRECT children: exactly two rows, three native text-sized pills each.
   The old .r260-pill-row wrapper is gone; do not draw borders around a row. */
.r10-editor .tg-preview-footer-actions.r150-starter-pills.r282-tools-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(34px,auto));
  gap:6px 5px!important;
  width:100%!important;max-width:610px!important;min-width:0;
  padding:8px 0 4px!important;margin:0 auto!important;
  align-items:center!important;justify-items:center!important;
  border:0!important;background:none!important;box-shadow:none!important;
}
.r10-editor .tg-preview-footer-actions.r150-starter-pills.r282-tools-grid>.tg-edit-screen-button{
  display:inline-flex!important;grid-column:auto!important;
  align-items:center!important;justify-content:center!important;
  width:max-content!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:6px 8px!important;min-height:32px!important;
  text-align:center!important;line-height:1.14!important;font-size:10.5px!important;
  box-sizing:border-box!important;
  border-radius:18px!important;white-space:normal!important;
}
.r10-editor .tg-preview-footer-actions.r282-tools-grid>.tg-edit-screen-button .r150-starter-label{
  display:block!important;white-space:normal!important;overflow-wrap:normal!important;
  max-width:100%;min-width:0;overflow:visible!important;text-overflow:clip!important;
}
.r10-editor .tg-preview-footer-actions.r282-tools-grid>.tg-edit-screen-button .r150-starter-icon{flex:0 0 13px!important;width:13px!important;margin:0}
@media(max-width:480px){
 .r10-editor .tg-preview-note-row{padding:6px!important}
 .r10-editor .tg-preview-note-row>.tg-preview-actions{gap:4px!important}
 .r10-editor .tg-preview-note-row>.tg-preview-actions>*{font-size:9.5px!important;min-height:36px;padding:5px 3px!important}
 .r10-editor .tg-preview-footer-actions.r150-starter-pills.r282-tools-grid{gap:5px 3px!important}
 .r10-editor .tg-preview-footer-actions.r150-starter-pills.r282-tools-grid>.tg-edit-screen-button{padding:6px 3px!important;font-size:9.5px!important;gap:3px}
}
@media(max-width:330px){
 .r10-editor .tg-preview-footer-actions.r150-starter-pills.r282-tools-grid>.tg-edit-screen-button .r150-starter-icon{display:none!important}
}

/* Reviewed auto-drafting controls stay inline with their project card. */
.r270-job .r282-execution{display:grid;gap:7px;margin:9px 0;padding:9px;border:1px solid #d7e5f0;border-radius:9px;background:rgba(230,242,249,.34);min-width:0}
.r270-job .r282-execution-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}
.r270-job .r282-execution-title>span{font-size:11px;color:#2e7899}
.r270-job .r282-execution small{font-size:11px;line-height:1.4;color:#557181;overflow-wrap:anywhere}
.r270-job .r282-execution button{max-width:100%;border:1px solid #c4d4df;background:#fff;border-radius:8px;padding:6px 9px;color:#245474;font-size:11px;cursor:pointer}
.r270-job .r282-execution button.r282-execution-start{background:#e1f3fc;border-color:#80beda;font-weight:650}
.r270-job .r282-execution button.r282-execution-stop{color:#8a4c47}
.r270-job .r282-execution button:disabled{opacity:.5;cursor:not-allowed}
.r270-job .r282-execution-error{margin:0;color:#973f39;overflow-wrap:anywhere;font-size:11px}
.r270-job .r282-execution-events{min-width:0}
.r270-job .r282-execution-events summary{font-size:10.5px;cursor:pointer}
.r270-job .r282-execution-events p{font-size:10.5px;margin:5px 0;line-height:1.4;overflow-wrap:anywhere}
