/* =====================================================================
   FLOW - BUILD & PUBLISH workspace chrome. Reuses the shared design-system tokens so it
   matches the rest of HLC OS and is theme-aware (light/dark). This styles ONLY the FLOW
   workspace chrome; each mounted component keeps its own styles.
   ===================================================================== */

.fw .ds-eyebrow { color: var(--ds-text-mute); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; margin: 0 0 6px; }
.fw .fw-owner { color: var(--gold); font-weight: 700; letter-spacing: .14em; }
.fw .fw-client { color: var(--gold); text-transform: none; letter-spacing: normal; font-weight: 600; }

.fw-head { margin-bottom: 14px; }
.fw-title { color: var(--gold); font-size: 1.6rem; margin: 0 0 6px; }
.fw-lead { color: var(--ds-text-lo); font-size: .9rem; margin: 0; max-width: 72ch; line-height: 1.5; }

/* Internal area switcher (Pages & Funnels / Pipelines / Workflows / Calendar / Publishing). */
.fw-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.fw-tab {
  padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem;
  background: transparent; color: var(--ds-text-lo); border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .16s, border-color .16s;
}
.fw-tab:hover { color: var(--gold); }
.fw-tab-on { color: var(--gold); border-bottom-color: var(--gold); }

.fw-body { min-height: 120px; }
.fw-panel { margin-top: 4px; }

/* Plain-language message when a handoff cannot be routed (e.g. different client). */
.fw-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--ds-text-lo); font-size: .84rem; }

/* Honest empty / unavailable state (never a blank or broken-looking view). */
.fw-empty { color: var(--ds-text-mute); font-size: .9rem; padding: 24px 0; }
.fw-unavailable { border: 1px dashed var(--border); border-radius: 12px; padding: 28px 24px; text-align: center; background: var(--bg); }
.fw-unavailable-title { color: var(--ds-text-hi); font-weight: 600; font-size: .95rem; margin: 0 0 6px; }
.fw-unavailable-sub { color: var(--ds-text-mute); font-size: .82rem; margin: 0; }

/* Builder area: the capability lives in the standalone FLOW builder (/flow); link out honestly. */
.fw-builder { border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; background: var(--surface, #111); }
.fw-builder-title { color: var(--ds-text-hi); font-weight: 600; font-size: 1rem; margin: 0 0 6px; }
.fw-builder-sub { color: var(--ds-text-lo); font-size: .86rem; margin: 0 0 14px; max-width: 70ch; line-height: 1.5; }
.fw-builder-link {
  display: inline-block; padding: 10px 18px; border-radius: var(--radius-btn, 10px); font-weight: 600; letter-spacing: .02em;
  background: transparent; color: var(--gold); border: 1px solid var(--gold); text-decoration: none; transition: box-shadow .18s;
}
.fw-builder-link:hover { box-shadow: 0 0 16px rgba(212, 175, 55, 0.4); }

/* ---- FLOW AI draft panel (window.FLOWAiDraft): draft-only, editable, separate from execution ---- */
.fad { display: flex; flex-direction: column; gap: 12px; }
.fad .ds-eyebrow { color: var(--ds-text-mute); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; margin: 0 0 4px; }
.fad-owner { color: var(--gold); font-weight: 700; letter-spacing: .14em; }
.fad-lead { color: var(--ds-text-lo); font-size: .86rem; margin: 0; max-width: 72ch; line-height: 1.5; }
.fad-l { display: flex; flex-direction: column; gap: 4px; color: var(--ds-text-mute); font-size: .8rem; }
.fad-in { width: 100%; background: var(--bg); color: var(--ds-text-hi); border: 1px solid var(--border); border-radius: 10px; padding: 8px; font: inherit; }
.fad-draft { font-family: ui-monospace, Menlo, Consolas, monospace; min-height: 180px; }
.fad-actions { display: flex; align-items: center; gap: 12px; }
.fad-btn { padding: 9px 18px; border-radius: var(--radius-btn, 10px); cursor: pointer; font: inherit; font-weight: 600; border: 1px solid var(--gold); background: transparent; color: var(--gold); }
.fad-btn.fad-primary { background: var(--gold); color: #000; }
.fad-btn:disabled { opacity: .5; cursor: not-allowed; }
.fad-status { color: var(--ds-text-mute); font-size: .82rem; }
.fad-msg { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); font-size: .84rem; }
.fad-ok { color: var(--success); border-color: var(--success); background: rgba(70,180,120,.08); }
.fad-warn { color: var(--warning); border-color: var(--warning); }
.fad-error { color: var(--danger); border-color: var(--danger); }
