/* Exploratory workflow editor proposals: rename (#4), standalone reorder (#1), Council (#17), readiness (HarflowMCP#18). */
.editor-app .editor-readiness-button { display: inline-flex; align-items: center; background: color-mix(in srgb, var(--accentLink) 12%, var(--ed-bg)); }

/* Rename dialog */
.editor-app .editor-modal.editor-rename { width: 380px; height: auto; padding: 0; }
.editor-app .editor-rename label { margin: 0; }
.editor-app .editor-rename .editor-modal-body { padding: 20px 20px 0; overflow: visible; }
.editor-app .editor-rename header h2 { margin: 0 0 12px; font-size: 14px; }
.editor-rename-field { display: grid; gap: 6px; color: var(--ed-muted); font-size: 12px; }
.editor-app .editor-rename-field input { width: 100%; padding: 6px 8px; border: 1px solid var(--ed-line); border-radius: 7px; background: var(--ed-panel); color: var(--ed-text); font-size: 13px; }
.editor-app .editor-rename-field input:focus-visible { outline: 2px solid var(--accentLink); outline-offset: 1px; }
.editor-app .editor-rename-field input[aria-invalid="true"] { border-color: var(--failedRed); }
.editor-rename-error { display: flex; align-items: flex-start; gap: 6px; min-height: 18px; margin: 8px 0 0; color: var(--failedRed); font-size: 12px; line-height: 1.4; }
.editor-rename-error:empty { min-height: 0; margin: 0; }
.editor-rename-note { margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--warningBorder, var(--ed-line)); border-radius: 8px; background: var(--warningBG, var(--ed-bg)); color: var(--warningFG, var(--ed-text)); font-size: 12px; line-height: 1.4; }
.editor-app .editor-rename footer { margin-top: 16px; border-top: 0; display: flex; justify-content: flex-end; gap: 8px; }
.editor-app .editor-rename footer > button:first-child { margin-right: 0; }
.editor-app .editor-rename footer button.primary { background: var(--accentFill); border-color: var(--accentFill); color: #fff; }
.editor-app .editor-rename footer button:disabled { opacity: .45; }

/* Standalone bar: on-demand cards, insertion line, drag preview, source slot */
.editor-app .editor-standalone { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.editor-app .editor-standalone > * { flex-shrink: 0; }
.editor-ondemand-icon { grid-row: 1; grid-column: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--neutralFill); color: var(--secondaryText); }
.editor-ondemand-icon svg { width: 14px; height: 14px; }
.editor-app .editor-standalone-card.on-demand .editor-card-title { grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.editor-app .editor-standalone-card[data-standalone-id] { cursor: grab; user-select: none; touch-action: none; }
.editor-app .editor-standalone-card[data-standalone-id]:focus-visible { outline: 2px solid var(--accentLink); outline-offset: 2px; }
.editor-standalone-slot { flex: none; width: 200px; height: 92px; border: 1.5px dashed var(--ed-muted); border-radius: 12px; opacity: .7; }
.editor-insertion-line { flex: none; align-self: stretch; width: 3px; margin: 0 -9.5px; border-radius: 2px; background: var(--accentLink); }
.editor-reorder-preview { position: fixed; z-index: 5; width: 200px; height: 92px; padding: 12px; display: grid; grid-template-columns: 24px 1fr; grid-template-rows: 24px 16px; row-gap: 4px; column-gap: 8px; border: 2px solid var(--accentLink); border-radius: 12px; background: var(--ed-panel); box-shadow: 0 10px 24px #0000004d; pointer-events: none; }
.editor-reorder-preview .editor-backend { grid-column: 1 / 3; grid-row: 2; }
.editor-reorder-preview .editor-card-title { grid-column: 2; grid-row: 1; }

/* Council node */
.editor-node-icon.council { color: var(--secondaryText); }
.editor-node-icon.council:after { content: none; }
.editor-node-icon.council svg { width: 15px; height: 15px; }
.editor-council-tray-glyph { display: inline-grid; place-items: center; width: 16px; height: 16px; }
.editor-council-tray-glyph svg { width: 14px; height: 14px; }
.editor-council-errors { margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--failedRed); border-radius: 8px; background: var(--dangerBG); color: var(--dangerFG); font-size: 12px; line-height: 1.4; }
.editor-council-errors p { margin: 2px 0; }
.editor-council-member { margin: 0 0 12px; padding: 8px 0 0; border-top: 1px solid var(--hairline); }
.editor-council-member-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 12px; }
.editor-council-remove { padding: 2px 8px; }

/* Readiness report */
.editor-readiness { box-sizing: border-box; width: 340px; flex: none; overflow: auto; border-left: 1px solid var(--ed-line); background: var(--ed-panel); }
.editor-readiness-content { padding: 14px 16px 18px; }
.editor-readiness-heading { display: flex; align-items: center; justify-content: space-between; }
.editor-readiness-heading h2 { margin: 0; font-size: 12px; font-weight: 600; color: var(--secondaryText); }
.editor-app .editor-readiness-heading button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; font-size: 18px; line-height: 1; color: var(--secondaryText); }
.editor-app .editor-readiness-heading button:focus-visible, .editor-app .editor-readiness-finding button:focus-visible { outline: 2px solid var(--accentLink); outline-offset: 2px; }
.editor-readiness-meta { margin: 12px 0 8px; color: var(--secondaryText); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.editor-readiness-meta code { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--primaryText); }
.editor-readiness-stale { display: flex; gap: 6px; margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--warningBorder, var(--hairline)); border-radius: 8px; background: var(--warningBG, var(--ed-bg)); color: var(--warningFG); font-size: 12px; line-height: 1.4; }
.editor-readiness-overall { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.editor-readiness-overall.blocked { color: var(--failedRed); }
.editor-readiness-overall.verify { color: var(--warningFG); }
.editor-readiness-overall.ready { color: var(--doneGreen); }
.editor-readiness-scope { margin: 0 0 12px; color: var(--secondaryText); font-size: 11px; line-height: 1.4; }
.editor-readiness-findings { margin: 0; padding: 0; list-style: none; }
.editor-readiness-finding { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--cardFill); font-size: 12px; line-height: 1.45; }
.editor-readiness-finding p { margin: 4px 0 0; color: var(--primaryText); }
.editor-readiness-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.editor-readiness-row h3 { margin: 0; font-size: 13px; font-weight: 600; }
.editor-readiness-badge { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.editor-readiness-badge.ready { background: var(--doneBG, var(--pillFill)); color: var(--doneGreen); }
.editor-readiness-badge.blocked { background: var(--dangerBG); color: var(--dangerFG); }
.editor-readiness-badge.verify { background: var(--warningBG, var(--pillFill)); color: var(--warningFG); }
.editor-app .editor-readiness-finding button { margin-top: 8px; padding: 3px 10px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .editor-reorder-preview { transition: none; } }
