/* Horizonte Dark - Etapa 9: Estruturas e Prompts */
.prompts-view .planning-local { font: 14px/1.5 'Geist', Arial, sans-serif; padding-bottom: 90px; }
.prompts-view .planning-layout { grid-template-columns: minmax(0, 2.15fr) minmax(250px, 1fr); gap: 24px; max-width: 1440px; margin: auto; }
.prompts-view .planning-card { background: #141a24; min-width: 0; }
.prompts-view .planning-heading { padding: 28px 32px; border-bottom: 1px solid #283242; }
.prompts-view .planning-heading h1 { font-size: 24px; line-height: 32px; font-weight: 700; margin: 12px 0 8px; letter-spacing: -.6px; color: #f8fafc; }
.prompts-view .planning-heading > p { font-size: 14px; line-height: 22px; color: #94a3b8; }
.prompts-view .pill { background: #242342; color: #8b82ff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.prompts-view .pill.neutral { background: #222930; color: #97a4b8; }

.prompts-section { padding: 28px 32px; border-bottom: 1px solid #283242; }
.prompts-section:last-of-type { border-bottom: none; }
.prompts-section h2 { font-size: 18px; font-weight: 600; color: #f1f5f9; margin: 0 0 6px; display: flex; align-items: center; justify-content: space-between; }
.prompts-section > .help { margin: 0 0 20px; font-size: 14px; line-height: 22px; color: #94a3b8; }

/* 1. Como funciona esta etapa */
.prompts-steps-box { background: #0e141d; border: 1px solid #232c3a; border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; }
.prompts-steps-box h3 { font-size: 14px; font-weight: 600; color: #e2e8f0; margin: 0 0 12px; }
.prompts-steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.prompts-steps-list li { display: flex; gap: 12px; font-size: 13px; line-height: 20px; color: #cbd5e1; }
.prompts-steps-list .step-num { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 50%; background: #1e293b; color: #38bdf8; font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* 2. Modos de escrita (Como a IA escreve os roteiros) */
.prompts-modes-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.prompts-mode-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid #283242; border-radius: 10px; background: #121822; cursor: pointer; transition: all 0.15s ease; text-align: left; }
.prompts-mode-card:hover { border-color: #3b485d; background: #17202d; }
.prompts-mode-card[aria-checked="true"] { border-color: #26e5af; background: linear-gradient(180deg, #102123 0%, #0d1a1d 100%); box-shadow: 0 0 18px rgba(38,229,175,0.08); }
.prompts-radio { width: 18px; height: 18px; min-width: 18px; border-radius: 50%; border: 2px solid #475569; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.prompts-mode-card[aria-checked="true"] .prompts-radio { border-color: #26e5af; background: #26e5af; box-shadow: inset 0 0 0 3px #0d1a1d; }
.prompts-mode-body { min-width: 0; flex: 1; }
.prompts-mode-title { font-size: 14px; font-weight: 600; color: #f1f5f9; display: flex; align-items: center; gap: 8px; }
.prompts-mode-card[aria-checked="true"] .prompts-mode-title { color: #26e5af; }
.prompts-mode-desc { font-size: 13px; line-height: 20px; color: #94a3b8; margin-top: 4px; }

/* 3. Guia do canal */
.prompts-fields-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.prompts-field { display: flex; flex-direction: column; gap: 6px; }
.prompts-field-label { display: flex; justify-content: space-between; align-items: baseline; }
.prompts-field-label strong { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: #e2e8f0; }
.prompts-field-label small { font-size: 12px; color: #64748b; font-weight: 400; }
.prompts-field textarea { width: 100%; box-sizing: border-box; background: #0f1520; border: 1px solid #283242; border-radius: 8px; color: #f1f5f9; font: 13px/20px 'Geist', Arial, sans-serif; padding: 10px 12px; min-height: 76px; resize: vertical; }
.prompts-field textarea:focus { border-color: #26e5af; outline: 1px solid #26e5af33; }
.prompts-counter { text-align: right; font-size: 11px; color: #64748b; margin-top: 2px; }

/* Calibragem */
.prompts-calibragem-box { margin-top: 24px; padding: 18px; border: 1px solid #232c3a; border-radius: 10px; background: #0e141d; }
.prompts-calibragem-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.prompts-calibragem-header h4 { font-size: 13px; font-weight: 700; color: #e2e8f0; margin: 0; }
.prompts-calibragem-header p { font-size: 12px; color: #94a3b8; margin: 2px 0 0; }
.prompts-empty-calibragem { font-size: 13px; color: #64748b; border: 1px dashed #283242; border-radius: 8px; padding: 14px 16px; text-align: center; }

/* 4. Regras de escrita do Estúdio (Edição) */
.prompts-editions-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.prompts-edition-box { background: #0e141d; border: 1px solid #283242; border-radius: 10px; padding: 14px 16px; }
.prompts-edition-box span { display: block; font-size: 11px; font-weight: 700; color: #64748b; letter-spacing: 0.5px; margin-bottom: 4px; }
.prompts-edition-box strong { font-size: 14px; color: #f1f5f9; display: block; }
.prompts-edition-box small { font-size: 12px; color: #94a3b8; display: block; margin-top: 4px; }

.prompts-warning-banner { background: #261a0d; border: 1px solid #854d0e; border-radius: 8px; padding: 12px 16px; margin: 16px 0; color: #fde047; font-size: 13px; line-height: 20px; display: flex; align-items: center; gap: 10px; }
.prompts-warning-banner strong { color: #fef08a; }

.prompts-changelog-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.prompts-changelog-card { background: #0e141d; border: 1px solid #232c3a; border-radius: 8px; padding: 12px 16px; }
.prompts-changelog-card .title { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.prompts-changelog-card .meta { font-size: 11px; color: #64748b; margin-left: 6px; }
.prompts-changelog-card ul { margin: 8px 0 0 16px; padding: 0; font-size: 12px; line-height: 18px; color: #94a3b8; }

.prompts-edition-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.prompts-edition-actions button { font-size: 13px; padding: 7px 14px; border-radius: 7px; cursor: pointer; }

.prompts-toggles-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.prompts-toggle-btn { padding: 6px 14px; font-size: 12px; border-radius: 20px; border: 1px solid #354052; background: transparent; color: #cbd5e1; cursor: pointer; }
.prompts-toggle-btn[aria-pressed="true"] { background: #242342; border-color: #7166ff; color: #c4b5fd; font-weight: 500; }

/* 5. Estruturas escolhidas */
.prompts-structures-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.prompts-structures-count { font-size: 13px; color: #94a3b8; }
.prompts-btn-add { background: #26e5af; color: #091a18; font-weight: 600; font-size: 13px; border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.15s ease; }
.prompts-btn-add:hover { background: #2cf5bc; }

.prompts-recommendation-alert { background: #291c0e; border: 1px solid #92400e; border-radius: 8px; padding: 14px 18px; color: #fde047; font-size: 13px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.prompts-recommendation-alert strong { color: #fef08a; }

.prompts-structures-list { display: flex; flex-direction: column; gap: 16px; }
.prompts-structure-card { background: #111722; border: 1px solid #283242; border-radius: 12px; padding: 20px; transition: border-color 0.15s ease; }
.prompts-structure-card:hover { border-color: #3b4a5e; }
.prompts-structure-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.prompts-structure-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prompts-structure-code { font-size: 12px; font-weight: 700; color: #38bdf8; background: #0c2838; border: 1px solid #075985; padding: 2px 7px; border-radius: 5px; }
.prompts-structure-blocks-badge { font-size: 12px; color: #94a3b8; }
.prompts-structure-name { font-size: 16px; font-weight: 600; color: #f8fafc; }
.prompts-badge-approved { background: #052e16; color: #4ade80; border: 1px solid #166534; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.prompts-structure-desc { font-size: 13px; line-height: 20px; color: #94a3b8; margin: 6px 0 14px; }

/* Blocos da estrutura */
.prompts-blocks-preview { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.prompts-block-pill { display: inline-flex; align-items: center; gap: 6px; background: #17202c; border: 1px solid #2a3748; padding: 4px 10px; border-radius: 6px; font-size: 12px; color: #e2e8f0; }
.prompts-block-more { display: inline-flex; align-items: center; background: #1e293b; color: #94a3b8; padding: 4px 8px; border-radius: 6px; font-size: 11px; }

.prompts-structure-status-note { font-size: 12px; color: #64748b; margin-bottom: 14px; }
.prompts-structure-actions { display: flex; gap: 8px; border-top: 1px solid #1e2735; padding-top: 14px; }
.prompts-structure-actions button { font-size: 12px; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.prompts-structure-actions button.btn-remove { color: #f87171; border-color: #451a1a; background: transparent; margin-left: auto; }
.prompts-structure-actions button.btn-remove:hover { background: #3b1212; border-color: #ef4444; }

/* Modal Catálogo */
.prompts-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.prompts-modal-overlay.hidden { display: none; }
.prompts-catalog-modal { background: #0f1520; border: 1px solid #2d3848; border-radius: 14px; width: min(1080px, 95vw); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,0.7); overflow: hidden; }
.prompts-modal-header { padding: 18px 24px; border-bottom: 1px solid #283242; display: flex; align-items: center; justify-content: space-between; background: #141c28; flex-shrink: 0; }
.prompts-modal-header h3 { font-size: 18px; font-weight: 600; color: #f8fafc; margin: 0; }
.prompts-modal-search { width: 280px; background: #0b1017; border: 1px solid #2a3748; border-radius: 6px; padding: 6px 12px; color: #e2e8f0; font-size: 13px; }
.prompts-modal-close { background: transparent; border: none; color: #94a3b8; font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.prompts-modal-close:hover { color: #fff; background: #1e2838; }

.prompts-catalog-body { padding: 24px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 24px; }
.prompts-catalog-group h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; color: #94a3b8; text-transform: uppercase; margin: 0 0 12px; border-bottom: 1px solid #232c3a; padding-bottom: 6px; }
.prompts-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.prompts-catalog-card { background: #131b26; border: 1px solid #283242; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.15s ease; }
.prompts-catalog-card:hover { border-color: #3b4b60; background: #172130; }
.prompts-catalog-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.prompts-catalog-code { font-size: 11px; font-weight: 700; color: #38bdf8; background: #0c2436; padding: 2px 6px; border-radius: 4px; }
.prompts-catalog-added { font-size: 10px; color: #94a3b8; background: #1e293b; padding: 2px 6px; border-radius: 4px; }
.prompts-catalog-card h5 { font-size: 14px; font-weight: 600; color: #f1f5f9; margin: 0 0 6px; }
.prompts-catalog-card p { font-size: 12px; line-height: 18px; color: #94a3b8; margin: 0 0 10px; }
.prompts-catalog-ideal { font-size: 11px; color: #c4b5fd; margin-bottom: 10px; }
.prompts-catalog-emojis { font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.prompts-catalog-btn-add { width: 100%; padding: 7px 12px; font-size: 12px; font-weight: 600; border-radius: 6px; background: #1e2a3a; color: #38bdf8; border: 1px solid #2a3c52; cursor: pointer; text-align: center; transition: all 0.15s ease; }
.prompts-catalog-btn-add:hover { background: #24354a; color: #7dd3fc; border-color: #38bdf8; }

/* Modal Editor de Estrutura */
.prompts-editor-modal { background: #0f1520; border: 1px solid #2d3848; border-radius: 14px; width: min(840px, 95vw); max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.prompts-editor-body { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.prompts-editor-block { background: #141c28; border: 1px solid #283242; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.prompts-block-header { display: flex; align-items: center; gap: 10px; }
.prompts-block-num { font-size: 13px; font-weight: 700; color: #64748b; min-width: 18px; }
.prompts-block-name-input { flex: 1; background: #0d121b; border: 1px solid #2a3748; border-radius: 6px; padding: 7px 10px; color: #f1f5f9; font-size: 13px; }
.prompts-functions-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: #94a3b8; text-transform: uppercase; }
.prompts-functions-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.prompts-fn-btn { font-size: 11px; padding: 4px 9px; border-radius: 20px; border: 1px solid #334155; background: #0f1520; color: #cbd5e1; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s ease; }
.prompts-fn-btn:hover { border-color: #475569; }
.prompts-fn-btn[aria-pressed="true"] { font-weight: 600; border-color: var(--fn-color, #38bdf8); background: rgba(56, 189, 248, 0.12); color: #fff; }
.prompts-block-textarea { width: 100%; box-sizing: border-box; background: #0d121b; border: 1px solid #2a3748; border-radius: 6px; padding: 8px 10px; color: #e2e8f0; font-size: 12px; line-height: 18px; min-height: 60px; resize: vertical; }

.prompts-editor-footer { padding: 14px 24px; border-top: 1px solid #283242; background: #141c28; display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }

/* Resumo Lateral */
.prompts-view .planning-summary dl { margin: 12px 0 0; }
.prompts-view .planning-summary dt { font-size: 11px; font-weight: 700; color: #64748b; letter-spacing: 0.5px; margin-top: 14px; text-transform: uppercase; }
.prompts-view .planning-summary dd { font-size: 13px; line-height: 19px; color: #cbd5e1; margin: 3px 0 0; }

@media (max-width: 900px) {
  .prompts-view .planning-layout { grid-template-columns: 1fr; }
  .prompts-editions-summary { grid-template-columns: 1fr; }
}
/* Etapa 9: paridade visual com a referência conferida em 27/10/2026. */
.prompts-view .planning-layout{display:block;max-width:1370px;margin:0 auto}.prompts-view .planning-summary{display:none}.prompts-view .planning-card{border:1px solid #293140;border-radius:12px;overflow:hidden;background:#141a23}.prompts-view .planning-heading{padding:24px}.prompts-view .planning-heading h1{font-size:20px;line-height:28px;letter-spacing:-.3px}.prompts-view .planning-heading .pill{background:#262344;color:#8b82ff}.prompts-section{padding:24px;border-bottom:1px solid #293140}.prompts-section h2{font-size:14px;line-height:20px}.prompts-section .help{font-size:12px;line-height:18px;margin:5px 0 12px;color:#929fb2}.prompts-steps-box{padding:16px 18px;border-radius:7px;background:#1c1b34;border:1px solid #393064;margin-bottom:24px}.prompts-steps-box h3{font-size:12px;margin:0 0 6px}.prompts-steps-box ol{margin:0;padding-left:19px;font-size:12px;line-height:20px;color:#a8b1c5}.prompts-modes-grid{grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.prompts-mode-card{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #303947;background:#141a23;border-radius:7px;font:12px/18px Arial,sans-serif;color:#d8dfe9;cursor:pointer}.prompts-mode-card strong{font-size:12px}.prompts-mode-card small{font-size:11px;line-height:16px;color:#94a0b2}.prompts-mode-card[aria-pressed=true]{border-color:#7867ff;background:#201d36;box-shadow:0 0 0 1px #7867ff}.prompts-guide-box{margin:24px;border:1px solid #303947;border-radius:9px;padding:20px}.prompts-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.prompts-section-heading h2{color:#d5dcec}.prompts-fields-grid{gap:18px}.prompts-field strong,.prompts-editor-body>label,.prompts-editor-block label{font-size:11px;font-weight:600;letter-spacing:.2px;color:#9ba7b8}.prompts-field small{font-size:12px;font-weight:400;color:#8593a7}.prompts-field textarea,.prompts-generated textarea,.prompts-calibration-row textarea,.prompts-calibration-row input{background:#1b2430;border:1px solid #303a48;color:#e1e5ed;border-radius:6px;font:13px/20px Arial,sans-serif;box-sizing:border-box;padding:10px 12px;width:100%;min-height:74px;resize:vertical}.prompts-field textarea:focus{outline:1px solid #7867ff;border-color:#7867ff}.prompts-calibragem-box{background:transparent;border:0;padding:0}.prompts-calibragem-header{gap:14px;align-items:flex-start}.prompts-calibragem-header h4{font-size:11px}.prompts-calibragem-header p{font-size:12px;line-height:18px}.prompts-calibration-row{position:relative;display:grid;gap:12px;padding:16px 38px 16px 16px;margin-top:12px;border:1px solid #303947;border-radius:7px}.prompts-calibration-row label{display:grid;gap:5px;font-size:12px;color:#9ba7b8}.prompts-calibration-row input{min-height:34px}.prompts-calibration-row [data-cal-remove]{position:absolute;right:8px;top:10px}.prompts-cal-empty{color:#8190a5;font-size:12px}.prompts-editions-summary{display:block;margin:16px 0}.prompts-editions-summary>div{margin:12px 0}.prompts-editions-summary dt{font-size:10px;font-weight:600;color:#8e9aae}.prompts-editions-summary dd{margin:5px 0;color:#e1e5ed;font-size:13px}.prompts-editions-summary small{font-size:12px;color:#8d9aaf}.prompts-warning-banner{font-size:12px;background:#241b10;border:1px solid #6d471a;padding:10px 12px}.prompts-changelog-card{padding:12px;background:#101620;border:1px solid #293442;border-radius:6px}.prompts-changelog-card strong{font-size:12px}.prompts-changelog-card small{font-size:10px;color:#748197}.prompts-changelog-card ul{margin:6px 0 0;padding-left:18px;font-size:12px;line-height:19px;color:#94a1b6}.prompts-toggles-row{gap:8px}.prompts-toggle-btn{border-radius:6px;font-size:12px}.prompts-generated{border:1px solid #303947;padding:12px;border-radius:7px;color:#94a0b2;font-size:12px;margin-top:18px}.prompts-generated label{display:grid;gap:6px;margin:15px 0}.prompts-structures-header p{font-size:12px;color:#94a1b6;margin:6px 0}.prompts-btn-add{background:#6554f5;color:white;padding:8px 12px;border-radius:7px;font-size:12px}.prompts-btn-add:hover{background:#7566ff}.prompts-structure-card{background:#111720;border:1px solid #303947;border-radius:9px;margin:0 0 12px;padding:20px}.prompts-structure-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.prompts-structure-top>div{display:flex;align-items:center;gap:10px}.prompts-structure-top small{font-size:11px;color:#8f9bad}.prompts-structure-code{background:#222b38;color:#a7b2c5;border-radius:5px;font-size:10px;padding:3px 6px;display:inline-block}.prompts-structure-card h3{font-size:15px;color:#e4e9f0;margin:10px 0 6px}.prompts-badge-approved{font-size:11px;border:0;color:#94a4bc;background:transparent}.prompts-badge-approved.is-pending{color:#e9b961}.prompts-structure-desc{font-size:12px;line-height:18px;color:#92a0b4;margin:6px 0 20px}.prompts-blocks-preview{display:flex;flex-wrap:wrap;gap:6px;font-size:11px}.prompts-block-pill{font-size:11px;padding:2px 5px;border:0;border-radius:3px;background:#1b2532;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fn-color,#94a3b8)}.prompts-structure-status-note{font-size:11px;line-height:18px;color:#8493a9;margin:14px 0}.prompts-structure-actions{display:flex;gap:10px;align-items:center}.prompts-structure-actions .btn-remove{margin-left:auto;color:#e06d77;background:transparent;border-color:transparent}.prompts-view button:not(.primary):not(.prompts-mode-card):not(.prompts-fn-btn):not(.prompts-catalog-card):not(.prompts-btn-add):not(.prompts-toggle-btn){font-size:12px}.prompts-modal-overlay{z-index:8000;background:#0009;padding:32px}.prompts-modal-overlay.hidden,.prompts-view [hidden]{display:none!important}.prompts-editor-modal{width:512px;max-height:calc(100vh - 80px);border-radius:13px;background:#0e1118}.prompts-modal-header{background:#141b25;border-bottom:1px solid #303947;padding:20px 24px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.prompts-modal-header h3{font-size:18px;line-height:25px;margin:6px 0 4px;color:#e5e8ef}.prompts-modal-header p{font-size:13px;line-height:20px;color:#98a5b9;margin:0}.prompts-modal-header small{font-size:11px;color:#98a5b9}.prompts-modal-header button{background:transparent;border:0;color:#a4b0c1;font-size:20px}.prompts-editor-body{padding:24px;gap:20px}.prompts-editor-body>label{display:grid;gap:9px}.prompts-editor-body>label small,.prompts-editor-block label small{display:block;color:#7d8ba0;font-size:11px;line-height:17px;font-weight:400;text-transform:none}.prompts-editor-body input,.prompts-editor-body textarea{background:#1a2330;color:#e4e8ef;border:1px solid #303947;border-radius:6px;font:13px/20px Arial,sans-serif;padding:8px 10px;box-sizing:border-box;min-width:0}.prompts-editor-body>label textarea{min-height:80px;resize:vertical}.prompts-editor-body [data-structure-cta]{width:120px}.prompts-editor-body h4{margin:8px 0 12px;font-size:14px;color:#dbe2ec}.prompts-editor-block{padding:18px;margin-bottom:12px;background:#141b25;border:1px solid #303947;border-left:4px solid #303947;border-radius:11px;gap:15px}.prompts-block-header{gap:8px}.prompts-block-header input{flex:1;width:80px}.prompts-block-header button{padding:4px;background:transparent;border:0;color:#a3b1c2}.prompts-block-num{border-radius:50%;background:#222d3b;color:#b8c3d4;font-size:12px;display:grid;place-items:center;width:27px;height:27px;flex-shrink:0}.prompts-editor-block>small{font-size:10px;color:#98a5b9}.prompts-functions-grid{gap:5px}.prompts-fn-btn{padding:2px 6px;font-size:10px;line-height:15px;font-weight:400;background:#111923;border:1px solid #303947;color:#a5b1c2;min-height:0}.prompts-fn-btn[aria-pressed=true]{background:color-mix(in srgb,var(--fn-color) 12%,#111923);border-color:color-mix(in srgb,var(--fn-color) 60%,#303947);color:var(--fn-color);font-weight:500}.prompts-editor-block label{display:grid;gap:6px}.prompts-editor-block textarea{width:100%;min-height:64px;resize:vertical;font-size:13px}.prompts-editor-footer{background:#0e1118;padding:12px 24px;gap:10px}.prompts-editor-footer span{margin-right:auto;color:#22cba1;font-size:11px}.prompts-editor-footer button{padding:7px 10px;font-size:12px}.prompts-cta-marker{border-top:1px solid #6e4520;text-align:center;margin:22px 0 16px;color:#e6b047;font-size:11px;line-height:20px}.prompts-catalog-modal{width:min(1040px,96vw);max-height:calc(100vh - 80px)}.prompts-catalog-body{padding:20px;overflow:auto}.prompts-catalog-body>input{width:100%;box-sizing:border-box;margin-bottom:15px}.prompts-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.prompts-catalog-card{display:block;text-align:left;background:#141b25;color:#dce3ed;border:1px solid #303947;padding:16px;cursor:pointer}.prompts-catalog-card h5{font-size:14px}.prompts-catalog-card p{font-size:12px;line-height:18px}.prompts-catalog-card>strong{display:block;color:#9a8dff;margin-top:15px}.prompts-catalog-body textarea{display:block;width:100%;box-sizing:border-box;min-height:80px}.prompts-view .planning-footer .actions>button[value=save]{display:none}.prompts-view .planning-footer .primary{background:#6554f5;color:white}.prompts-view .planning-footer #plan-save-status{color:#13be94;font-size:12px}@media(max-width:800px){.prompts-catalog-grid{grid-template-columns:1fr 1fr}.prompts-section{padding:18px}.prompts-guide-box{margin:18px}}@media(max-width:540px){.prompts-modes-grid,.prompts-catalog-grid{grid-template-columns:1fr}.prompts-modal-overlay{padding:12px}.prompts-editor-modal,.prompts-catalog-modal{max-height:calc(100vh - 24px);width:100%}.prompts-editor-body,.prompts-modal-header{padding:16px}.prompts-editor-footer{padding:12px;flex-wrap:wrap}.prompts-structure-actions{flex-wrap:wrap}.prompts-structure-card{padding:14px}}
/* Neutraliza margens globais de formulário dentro do diálogo compacto. */
.prompts-editor-body>label,.prompts-editor-block label{margin:0}
.prompts-editor-body{gap:16px}
.prompts-editor-body>label{gap:6px}
.prompts-editor-block{gap:10px}
.prompts-badge-approved:not(.is-pending){background:#0b2b21;color:#24c892;border:1px solid #155d43;border-radius:5px;padding:2px 6px}
