/* Flow — creator app (sister brand to Flow Co Labs, distinct product UI) */

:root {
  /* Flow identity — v2 analytics palette (overridden on .flow-app in flow-v2.css) */
  --flow-ink: #121816;
  --flow-sidebar: #ffffff;
  --flow-header: #0f1412;
  --flow-canvas: #eef0f4;
  --flow-accent: #ff6a58;
  --flow-accent-hover: #f25540;
  --flow-accent-soft: rgba(255, 106, 88, 0.12);
  --flow-teal: #2a9d85;
  --flow-teal-bright: #3ec9ad;
  --flow-teal-soft: rgba(42, 157, 133, 0.12);
  --flow-violet: #6b5ce7;
  --flow-surface: #ffffff;
  --flow-surface-muted: #eef0f4;
  --flow-border: rgba(18, 24, 22, 0.08);
  --flow-border-strong: rgba(18, 24, 22, 0.14);
  --flow-muted: #5a6b63;
  --flow-glow: rgba(255, 106, 88, 0.35);
  --flow-btn-primary-bg: var(--flow-accent);
  --flow-btn-primary-bg-hover: var(--flow-accent-hover);
  --flow-gradient-brand: linear-gradient(128deg, #ff6a58 0%, #f0a06b 38%, #2a9d85 100%);
  --flow-gradient-mesh: none;

  /* Legacy aliases (existing components) */
  --deep-field: var(--flow-header);
  --sage: var(--flow-teal);
  --cream: var(--flow-canvas);
  --linen: var(--flow-border);
  --clay: var(--flow-accent);
  --paper: var(--flow-surface);
  --muted: var(--flow-muted);
  --bg: var(--flow-canvas);
  --ink: var(--flow-ink);
  --teal: var(--flow-teal);
  --coral: var(--flow-accent);
  --mist: var(--flow-surface-muted);

  --flow-radius: 10px;
  --flow-radius-sm: 8px;
  --flow-radius-xs: 6px;
  --flow-radius-lg: 12px;
  --flow-btn-radius: 10px;
  --flow-card-padding: 22px;
  --flow-card-padding-sm: 16px;
  --flow-card-gap: 16px;
  --flow-shadow: 0 1px 2px rgba(18, 24, 22, 0.04);
  --flow-shadow-hover: 0 8px 20px rgba(18, 24, 22, 0.07);
  --flow-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --flow-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --flow-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --flow-font-display: 'Plus Jakarta Sans', var(--flow-font-body);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--flow-font-body);
  color: var(--flow-ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--flow-accent);
}

h1, h2, h3, .flow-brand-text, .flow-page-head h1, .flow-trends-title {
  font-family: var(--flow-font-display);
}

/* Brand mark — gradient wave (distinct from Flow Co site mark) */
.flow-brand-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: var(--flow-radius-sm);
  background: linear-gradient(135deg, var(--flow-accent) 0%, var(--flow-teal) 100%);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M4 11c2-4 4-6 7-6 2 0 4 1 7 6-2 4-4 6-7 6-2 0-4-1-7-6z' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--flow-accent) 0%, var(--flow-teal) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 20px 20px, cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--flow-glow);
}

.flow-brand-sister {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(230, 226, 218, 0.45);
  font-family: var(--flow-font-body);
}

/* Login */
.flow-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(47, 143, 120, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(224, 99, 47, 0.07), transparent 50%),
    var(--bg);
}

.flow-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.flow-brand-text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.flow-login-byline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.flow-login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius);
  box-shadow: var(--flow-shadow);
}

.flow-login-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
}

.flow-login-muted {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.flow-login-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  border: 2px solid var(--linen);
  border-top-color: var(--clay);
  border-radius: 50%;
  animation: flow-spin 0.8s linear infinite;
}

@keyframes flow-spin {
  to { transform: rotate(360deg); }
}

/* App shell */
.flow-admin-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  font-size: 13px;
  background: var(--deep-field);
  color: var(--cream);
}

.flow-admin-banner a {
  color: var(--cream);
  text-decoration: underline;
}

.flow-app--impersonating .flow-shell {
  padding-top: 42px;
}

.flow-shell {
  display: flex;
  min-height: 100vh;
}

.flow-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--flow-sidebar);
  color: var(--flow-ink);
  padding: 20px 0;
  border-right: 1px solid var(--flow-border);
  box-shadow: none;
}

.flow-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 12px;
  padding: 0 16px 20px;
  color: var(--flow-ink);
  text-decoration: none;
}

.flow-brand-mark {
  grid-row: 1 / span 2;
}

.flow-brand-text {
  align-self: end;
  line-height: 1.1;
}

.flow-brand-sister {
  grid-column: 2;
  align-self: start;
}

.flow-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
  flex: 1;
}

.flow-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--flow-radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--flow-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.flow-nav-link:hover {
  background: #f4f6f5;
  color: var(--flow-ink);
}

.flow-nav-link.is-active {
  background: var(--flow-accent-soft);
  color: var(--flow-accent);
}

.flow-nav-link--soon {
  cursor: default;
  opacity: 0.65;
}

.flow-nav-link--muted {
  color: #9aa8a2;
}

.flow-nav-soon {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--flow-radius-xs);
  background: var(--flow-canvas);
  color: #9aa8a2;
}

.flow-sidebar-foot {
  padding: 12px 8px 0;
  border-top: 1px solid var(--flow-border);
  margin-top: 8px;
}

.flow-main {
  flex: 1;
  padding: 0;
  overflow: auto;
  background: var(--flow-canvas);
}

.flow-page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.flow-page-lede {
  margin: 0 0 32px;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(30, 45, 36, 0.78);
}

.flow-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.flow-card {
  padding: var(--flow-card-padding, 22px);
  background: var(--paper);
  border: 1px solid var(--flow-border);
  border-radius: var(--flow-radius);
  box-shadow: var(--flow-shadow);
}

.flow-card h2 {
  margin: 0 0 8px;
  font-family: var(--flow-font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.flow-card p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.flow-card--form {
  max-width: 480px;
}

.flow-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--flow-radius-xs);
  background: rgba(200, 90, 43, 0.12);
  color: var(--clay);
}

.flow-btn,
a.flow-btn,
button.flow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--flow-btn-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.flow-btn:hover,
.flow-btn:focus,
.flow-btn:focus-visible,
.flow-btn:active,
a.flow-btn:hover,
a.flow-btn:focus,
a.flow-btn:focus-visible,
a.flow-btn:active {
  text-decoration: none;
}

/* Button-styled links and controls — never underline */
.flow-chip,
button.flow-chip,
.flow-filter-pill,
a.flow-filter-pill,
.flow-filter-tabs__item,
.flow-tab,
a.flow-tab,
.flow-month-nav-btn,
.flow-modal-close,
.flow-nav-link {
  text-decoration: none;
}

.flow-chip:hover,
.flow-filter-pill:hover,
.flow-filter-tabs__item:hover,
.flow-tab:hover,
.flow-month-nav-btn:hover,
.flow-modal-close:hover,
.flow-nav-link:hover,
.flow-nav-link:focus {
  text-decoration: none;
}

.flow-btn--primary {
  background: var(--flow-btn-primary-bg);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 88, 0.32);
}

.flow-btn--primary:hover {
  background: var(--flow-btn-primary-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 106, 88, 0.36);
}

.flow-btn--primary:focus-visible {
  outline: 2px solid var(--flow-accent);
  outline-offset: 2px;
}

/* Keyboard focus for every other interactive element */
.flow-btn:focus-visible,
.flow-chip:focus-visible,
.flow-tab:focus-visible,
.flow-filter-pill:focus-visible,
.flow-nav-toggle:focus-visible,
.flow-modal-close:focus-visible,
.flow-month-nav-btn:focus-visible,
.flow-link-arrow:focus-visible {
  outline: 2px solid var(--flow-accent);
  outline-offset: 2px;
}

.flow-btn--primary:disabled,
.flow-btn--primary[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.flow-btn--primary[data-flow-loading-active]::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: flow-spin 0.7s linear infinite;
}

.flow-btn--outline {
  background: transparent;
  color: var(--flow-ink);
  border: 1px solid var(--flow-border-strong);
}

.flow-btn--outline:hover {
  background: #f4f6f5;
}

.flow-btn--secondary {
  background: var(--paper);
  color: var(--flow-ink);
  border: 1px solid var(--linen);
}

.flow-btn--secondary:hover {
  background: #f5efe8;
  border-color: var(--flow-border-strong);
}

.flow-btn--danger {
  background: #faecec;
  color: #b83030;
  border: 1px solid #dfaaaa;
}

.flow-btn--danger:hover {
  background: #f5d6d6;
}

.flow-footnote {
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .flow-shell {
    flex-direction: column;
  }

  .flow-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px;
  }

  .flow-brand {
    padding: 0 8px 0 0;
  }

  .flow-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    padding: 0;
  }

  .flow-sidebar-foot {
    border: none;
    margin: 0;
    padding: 0;
  }
}

/* Onboarding */
.flow-onboarding-page {
  min-height: 100vh;
  background: var(--bg);
}

.flow-onboarding-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.flow-onboarding-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.flow-beta-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--flow-radius-xs);
  background: #f5efe8;
  color: var(--clay);
  border: 1px solid #e8c4b0;
}

.flow-onboarding-header {
  text-align: center;
  margin-bottom: 24px;
}

.flow-onboarding-header h1 {
  margin: 12px 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.flow-onboarding-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.flow-step-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: var(--flow-radius-xs);
  background: color-mix(in srgb, var(--step-accent, var(--clay)) 12%, transparent);
  color: var(--step-accent, var(--clay));
  border: 1px solid color-mix(in srgb, var(--step-accent, var(--clay)) 30%, transparent);
}

.flow-onboarding-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.flow-onboarding-progress span {
  flex: 1;
  height: 4px;
  background: var(--linen);
  transition: background 0.3s ease;
}

.flow-onboarding-progress span.is-done {
  background: var(--step-accent, var(--clay));
}

.flow-onboarding-card {
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.flow-onboarding-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

.flow-btn--ghost {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 12px 0;
}

.flow-field {
  display: block;
  margin-bottom: 16px;
}

.flow-field span,
.flow-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3d31;
}

.flow-field em {
  font-weight: 400;
  color: var(--muted);
}

.flow-field input,
.flow-field textarea,
.flow-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: var(--flow-radius-sm);
  border: 1px solid var(--linen);
  background: var(--bg);
  font-family: inherit;
  color: var(--deep-field);
}

.flow-input-prefix {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  padding-left: 12px;
}

.flow-input-prefix input {
  border: none;
  background: transparent;
  flex: 1;
}

.flow-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.flow-chip-grid--2 { display: grid; grid-template-columns: 1fr 1fr; }
.flow-chip-grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.flow-chip-grid--5 { display: grid; grid-template-columns: repeat(5, 1fr); }
.flow-chip-grid--scroll { max-height: 160px; overflow-y: auto; }

.flow-chip-option {
  cursor: pointer;
}

.flow-chip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.flow-chip-option span {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--flow-radius-sm);
  border: 1px solid var(--linen);
  background: var(--bg);
  color: #3d4d41;
  text-align: center;
}

.flow-chip-option input:checked + span,
.flow-chip-option input:focus-visible + span {
  background: color-mix(in srgb, var(--step-accent, var(--clay)) 10%, var(--paper));
  border-color: color-mix(in srgb, var(--step-accent, var(--clay)) 40%, var(--linen));
  color: var(--step-accent, var(--clay));
}

.flow-chip-option--stack .flow-chip-title {
  font-weight: 700;
  font-size: 11px;
}

.flow-chip-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 2px;
}

.flow-onboarding-note {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--flow-radius-sm);
  background: #f5efe8;
  border: 1px solid #e8c4b0;
}

.flow-onboarding-note strong {
  display: block;
  color: var(--clay);
  font-size: 12px;
  margin-bottom: 6px;
}

.flow-onboarding-note p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Alerts & ideas */
.flow-alert {
  padding: 12px 16px;
  border-radius: var(--flow-radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.flow-alert--success {
  background: #ebf3ed;
  border: 1px solid #a8cead;
  color: #3d7a4f;
}

.flow-alert--danger {
  background: #fbeae8;
  border: 1px solid #e8b4ae;
  color: #9a3b2e;
}

.flow-generate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.flow-select {
  width: auto;
  min-width: 120px;
}

.flow-meta-line {
  font-size: 13px;
  color: var(--muted);
  margin: -16px 0 24px;
}

.flow-empty {
  text-align: center;
  padding: 48px 24px;
}

.flow-empty > h1 {
  font-size: 1.25rem;
}

.flow-idea-list {
  display: grid;
  gap: 16px;
}

.flow-idea-card {
  background: var(--paper);
  border: 1px solid var(--flow-border);
  border-radius: var(--flow-radius);
  padding: 22px;
  box-shadow: var(--flow-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flow-idea-card:hover {
  border-color: var(--flow-border-strong);
  box-shadow: var(--flow-shadow-hover);
}

.flow-idea-card h2 {
  margin: 8px 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.flow-idea-card h2 a {
  color: inherit;
  text-decoration: none;
}

.flow-idea-card h2 a:hover {
  color: var(--clay);
}

.flow-idea-card-top {
  display: flex;
  gap: 8px;
}

.flow-score {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--flow-radius-xs);
}

.flow-score--high { background: #ebf3ed; color: #3d7a4f; }
.flow-score--mid { background: #fbf2e8; color: #b86a1a; }
.flow-score--low { background: var(--cream); color: var(--muted); }

.flow-viral {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--flow-radius-xs);
}

.flow-viral--high { background: #ebf3ed; color: #3d7a4f; }
.flow-viral--medium { background: #fbf2e8; color: #b86a1a; }

.flow-idea-hook {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.flow-idea-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--sage);
}

.flow-back {
  margin-bottom: 16px;
  font-size: 14px;
}

.flow-detail-grid {
  display: grid;
  gap: 16px;
}

.flow-card--wide {
  grid-column: 1 / -1;
}

.flow-prose {
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

.flow-pre {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  font-family: inherit;
}

.flow-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 14px;
  line-height: 1.6;
}

.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-tags span {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: var(--flow-radius-xs);
}

.flow-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Trends */
.flow-trends-section {
  margin-bottom: 48px;
}

.flow-trends-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clay);
  margin-bottom: 8px;
}

.flow-kicker-icon { font-size: 8px; }
.flow-kicker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a09885;
}
.flow-kicker-date {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.flow-trends-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.flow-drop-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.flow-drop-card {
  background: var(--paper);
  border: 1px solid var(--flow-border);
  border-radius: var(--flow-radius);
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--flow-shadow);
}

.flow-drop-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.flow-drop-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-drop-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.flow-drop-meta {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}

.flow-drop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.flow-drop-tags span {
  font-size: 9px;
  padding: 2px 6px;
  background: var(--cream);
  color: var(--muted);
  border-radius: 2px;
}

.flow-btn--block {
  width: 100%;
  margin-top: auto;
}

.flow-btn--sm {
  padding: 8px 12px;
  font-size: 12px;
}

.flow-trends-radar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.flow-radar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.flow-radar-niche {
  margin-left: 8px;
  color: var(--clay);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.flow-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b83030;
}

.flow-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b83030;
  animation: flow-pulse 1.5s ease-in-out infinite;
}

@keyframes flow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.flow-velocity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.flow-velocity-legend strong {
  font-weight: 600;
}

.flow-rule {
  border: none;
  border-top: 1px solid var(--linen);
  margin: 0 0 20px;
}

.flow-platform-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.flow-filter-pill {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--flow-radius-sm);
  border: 1px solid var(--linen);
  background: var(--paper);
  color: var(--muted);
  text-decoration: none;
}

.flow-filter-pill.is-active {
  background: var(--flow-accent-soft);
  color: var(--flow-accent);
  border-color: rgba(255, 106, 88, 0.35);
}

.flow-radar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-radar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--paper);
  border: 1px solid var(--flow-border);
  border-radius: var(--flow-radius);
  box-shadow: var(--flow-shadow);
}

.flow-radar-rank {
  width: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #a09885;
  text-align: center;
  flex-shrink: 0;
}

.flow-radar-main {
  flex: 1;
  min-width: 200px;
}

.flow-radar-topic {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.flow-radar-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow-velocity-bar {
  display: inline-block;
  width: 96px;
  height: 6px;
  background: var(--cream);
  overflow: hidden;
}

.flow-velocity-bar span {
  display: block;
  height: 100%;
}

.flow-radar-velocity-label {
  font-size: 12px;
  color: var(--muted);
}

.flow-radar-tag {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--cream);
  color: var(--muted);
  border-radius: 2px;
}

.flow-radar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.flow-velocity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid;
  border-radius: var(--flow-radius-sm);
}

.flow-velocity-badge--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.flow-velocity-badge--stack small {
  font-size: 9px;
  font-weight: 500;
  text-transform: none;
  opacity: 0.75;
}

.flow-platform-pill {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--cream);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  color: var(--muted);
}

.flow-radar-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-btn--source {
  background: #e8f1fa;
  color: #2e6ea6;
  border: 1px solid #a4c4e0;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 768px) {
  .flow-radar-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-radar-actions {
    width: 100%;
  }
}

/* Calendar */
.flow-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.flow-month-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
}

.flow-month-nav span {
  font-size: 14px;
  font-weight: 600;
  min-width: 140px;
  text-align: center;
}

.flow-month-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--flow-radius-xs);
}

.flow-month-nav-btn:hover {
  background: var(--cream);
  color: var(--deep-field);
}

.flow-cal-autoschedule {
  margin: 0;
}

.flow-cal-grid-wrap {
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.flow-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg);
  border-bottom: 1px solid var(--linen);
}

.flow-cal-weekdays div {
  padding: 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-right: 1px solid var(--linen);
}

.flow-cal-weekdays div:last-child {
  border-right: none;
}

.flow-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.flow-cal-cell {
  min-height: 96px;
  padding: 8px;
  border-right: 1px solid var(--linen);
  border-bottom: 1px solid var(--linen);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s ease;
}

.flow-cal-cell:hover {
  background: var(--flow-surface-muted);
}

.flow-cal-cell--today {
  background: var(--flow-teal-soft);
}

.flow-cal-cell--today:hover {
  background: rgba(42, 157, 133, 0.2);
}

.flow-cal-cell--empty {
  background: var(--flow-surface-muted);
  pointer-events: none;
}

.flow-cal-daynum {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.flow-cal-cell--today .flow-cal-daynum {
  background: var(--clay);
  color: #fff;
  border-radius: 50%;
}

.flow-cal-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-cal-event {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.flow-cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.flow-cal-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  font-style: normal;
}

.flow-cal-legend-hint {
  margin-left: auto;
}

.flow-modal-panel {
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.flow-modal-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--linen);
}

.flow-modal-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clay);
}

.flow-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.flow-modal-close {
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  padding: 0 4px;
}

.flow-modal-panel-body {
  padding: 20px;
}

.flow-modal-panel-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--linen);
  margin-top: 8px;
}

.flow-modal-panel-foot--split {
  justify-content: space-between;
  align-items: center;
}

.flow-modal-panel-foot-right {
  display: flex;
  gap: 10px;
}

.flow-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.flow-status-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.flow-status-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.flow-status-pick span {
  display: inline-block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--flow-radius-sm);
  border: 1px solid var(--linen);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}

.flow-status-pick input:checked + span {
  background: var(--st-bg);
  color: var(--st-text);
  border-color: var(--st-border);
}

.flow-status-preview {
  padding: 10px 14px;
  border-radius: var(--flow-radius-sm);
  border: 1px solid;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .flow-cal-cell {
    min-height: 72px;
    padding: 4px;
  }

  .flow-cal-event {
    font-size: 9px;
  }

  .flow-field-row {
    grid-template-columns: 1fr;
  }

  .flow-cal-legend-hint {
    margin-left: 0;
    width: 100%;
  }
}

/* Settings */
.flow-page-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.flow-page-sub,
.flow-page-lede {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.flow-settings-section {
  margin-bottom: 24px;
}

.flow-settings-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.flow-settings-section-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
}

.flow-settings-section-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}

.flow-plan-pill {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--flow-radius-xs);
  border: 1px solid var(--linen);
  background: var(--bg);
  color: var(--muted);
}

.flow-plan-pill--pro {
  background: #f5efe8;
  color: var(--clay);
  border-color: #e8c4b0;
}

.flow-plan-pill--enterprise {
  background: #ebf3ed;
  color: #3d7a4f;
  border-color: #a8cead;
}

.flow-usage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flow-usage-stat {
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
}

.flow-usage-num {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.flow-usage-num--accent { color: var(--flow-accent); }
.flow-usage-num--teal   { color: var(--flow-teal); }
.flow-usage-num--blue   { color: #2e6ea6; }
.flow-usage-num--amber  { color: #b86a1a; }

.flow-usage-label {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}

.flow-beta-note,
.flow-muted-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted);
  background: #f5efe8;
  border: 1px solid #e8c4b0;
  border-radius: var(--flow-radius-sm);
}

.flow-voice-post-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.flow-voice-post-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  cursor: pointer;
}

.flow-voice-post-row strong {
  display: block;
  font-size: 14px;
}

.flow-voice-post-row small {
  color: var(--muted);
  font-size: 12px;
}

.flow-chip-option--inline {
  margin-top: 14px;
}

.flow-social-card {
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  padding: 20px;
}

.flow-social-connected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.flow-social-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.flow-social-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #faecec;
  color: #b83030;
}

.flow-social-avatar--ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
}

.flow-social-card--stack {
  margin-bottom: 12px;
}

.flow-social-card--stack:last-child {
  margin-bottom: 0;
}

.flow-social-platform-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Dashboard */
.flow-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 28px 28px 26px;
  border-radius: var(--flow-radius);
  border: 1px solid var(--flow-border);
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(47, 143, 120, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(224, 99, 47, 0.1), transparent 50%),
    var(--paper);
  box-shadow: var(--flow-shadow);
}

.flow-dash-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.flow-dash-hero-lede {
  margin: 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.flow-dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.flow-pill--hero {
  background: var(--flow-accent-soft);
  color: var(--clay);
  border: 1px solid rgba(224, 99, 47, 0.2);
}

.flow-dash-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.flow-dash-focus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 22px;
  border-radius: var(--flow-radius-sm);
  border: 1px solid rgba(47, 143, 120, 0.22);
  background: linear-gradient(135deg, rgba(47, 143, 120, 0.08) 0%, rgba(224, 99, 47, 0.06) 100%);
}

.flow-dash-focus-headline {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.flow-dash-focus-detail {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 40rem;
}

.flow-dash-focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.flow-dash-focus-chips li {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--linen);
  color: var(--flow-ink);
}

.flow-dash-featured {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius);
  box-shadow: var(--flow-shadow);
}

.flow-dash-featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.flow-dash-featured-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.flow-dash-featured-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.flow-dash-featured-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flow-dash-featured-card:hover {
  border-color: var(--flow-border-strong);
  box-shadow: 0 6px 18px rgba(20, 31, 24, 0.07);
}

.flow-dash-featured-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--linen);
  text-decoration: none;
}

.flow-dash-featured-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.flow-dash-featured-thumb:hover img {
  transform: scale(1.03);
}

.flow-dash-featured-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.flow-dash-featured-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.flow-dash-featured-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flow-dash-featured-meta {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.flow-dash-featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.flow-dash-post-thumb-link {
  display: block;
  flex-shrink: 0;
  border-radius: var(--flow-radius-sm);
  overflow: hidden;
  text-decoration: none;
}

.flow-dash-post-thumb--wide {
  width: 96px;
  height: 54px;
  object-fit: cover;
}

.flow-dash-panel--digest {
  border-color: rgba(224, 99, 47, 0.2);
  background: linear-gradient(165deg, #fff 0%, #faf6f2 100%);
}

.flow-dash-digest-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.flow-dash-digest-stats strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.flow-dash-digest-rec {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.flow-dash-idea-list--tight a {
  padding: 6px 0;
}

.flow-dash-hub {
  margin-bottom: 24px;
}

.flow-dash-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-dash-hub-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  min-height: 72px;
  border-radius: var(--flow-radius-sm);
  border: 1px solid var(--linen);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(20, 31, 24, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.flow-dash-hub-card:hover {
  border-color: var(--flow-border-strong);
  box-shadow: 0 6px 20px rgba(20, 31, 24, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.flow-dash-hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flow-dash-hub-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--flow-ink);
}

.flow-dash-hub-card-desc {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.flow-dash-hub-card-badge {
  flex-shrink: 0;
  min-width: 20px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  border-radius: 999px;
  background: var(--flow-accent);
  color: #fff;
}

.flow-dash-hub-card--clay {
  border-color: #e8c4b0;
  background: linear-gradient(160deg, #fff 0%, #faf5f0 100%);
}

.flow-dash-hub-card--teal {
  border-color: rgba(47, 143, 120, 0.25);
  background: linear-gradient(160deg, #fff 0%, #f2f9f6 100%);
}

.flow-dash-hub-card--sage {
  border-color: rgba(47, 143, 120, 0.18);
  background: linear-gradient(160deg, #fff 0%, #f6f8f4 100%);
}

.flow-dash-profile-nudge {
  flex: 1;
  min-width: 200px;
}

.flow-dash-progress {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.flow-dash-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--flow-teal), var(--flow-accent));
  transition: width 0.3s ease;
}

.flow-dash-welcome-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius);
  box-shadow: var(--flow-shadow);
}

.flow-dash-welcome-card h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.flow-dash-welcome-card > p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.flow-dash-start-steps {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 14px;
  line-height: 1.6;
}

.flow-dash-start-steps a {
  font-weight: 600;
  text-decoration: none;
}

.flow-dash-start-steps a:hover {
  text-decoration: underline;
}

.flow-dash-panel--highlight {
  border-color: rgba(47, 143, 120, 0.28);
  background: linear-gradient(165deg, #fff 0%, #f4faf7 100%);
}

.flow-dash-panel-lede {
  margin: -4px 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.flow-dash-panel--score {
  padding-bottom: 12px;
}

.flow-flow-score--compact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin-bottom: 12px;
  border: none;
  background: transparent;
}

.flow-flow-score--compact h2 {
  margin: 0 0 2px;
  font-size: 14px;
}

.flow-flow-score--compact > div > p {
  margin: 0;
  font-size: 12px;
}

.flow-flow-score--compact .flow-flow-score-ring {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.flow-flow-score--compact .flow-flow-score-ring span {
  width: 44px;
  height: 44px;
}

.flow-dash-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.flow-dash-connect-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f5efe8 0%, #edf8f4 100%);
  border: 1px solid #e8c4b0;
  border-radius: var(--flow-radius-sm);
}

.flow-dash-connect-banner h2 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.flow-dash-connect-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 36rem;
}

.flow-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.flow-dash-stat {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flow-dash-stat--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.flow-dash-stat--link:hover {
  border-color: var(--flow-border-strong);
  box-shadow: 0 4px 16px rgba(20, 31, 24, 0.06);
  text-decoration: none;
}

.flow-dash-stat--clay {
  background: #f5efe8;
  border-color: #e8c4b0;
}

.flow-dash-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.flow-dash-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.flow-dash-stat-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.flow-dash-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.flow-dash-body--stack {
  grid-template-columns: 1fr;
}

.flow-dash-body--stack .flow-dash-col-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.flow-dash-body--stack .flow-dash-panel {
  margin-bottom: 0;
}

.flow-dash-workspace {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 4px;
}

.flow-card--link {
  display: flex;
  flex-direction: column;
}

.flow-card--link .flow-btn {
  margin-top: auto;
  align-self: flex-start;
}

.flow-dash-col-main {
  min-width: 0;
}

.flow-dash-col-side {
  min-width: 0;
}

.flow-dash-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.flow-dash-channel {
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius);
  padding: var(--flow-card-padding, 22px);
  margin-bottom: 16px;
  box-shadow: var(--flow-shadow);
}

.flow-dash-channel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.flow-dash-channel-id {
  flex: 1;
  min-width: 0;
}

.flow-dash-channel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.flow-dash-channel-avatar--placeholder {
  display: block;
  background: var(--linen);
}

.flow-dash-channel-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.flow-dash-channel-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.flow-dash-channel-audience {
  margin-left: auto;
  text-align: right;
}

.flow-dash-channel-audience span {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}

.flow-dash-channel-audience small {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flow-dash-channel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.flow-dash-mini-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.flow-dash-section-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.flow-dash-section-title--lg {
  font-size: 14px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--deep-field);
}

.flow-dash-inline-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.flow-dash-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-dash-post-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--linen);
}

.flow-dash-post-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.flow-dash-post-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.flow-dash-post-copy {
  min-width: 0;
}

.flow-dash-post-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--flow-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.flow-dash-post-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flow-dash-post-meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.flow-dash-post-link {
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.flow-dash-panel {
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(20, 31, 24, 0.03);
}

.flow-dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.flow-dash-panel-head h2 {
  margin: 0;
}

.flow-dash-panel-empty {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.flow-dash-panel--muted {
  background: var(--bg);
}

.flow-dash-panel h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.flow-dash-cal-list,
.flow-dash-idea-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.flow-dash-cal-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--linen);
  font-size: 12px;
}

.flow-dash-cal-list li:first-child {
  border-top: none;
}

.flow-dash-cal-list time {
  font-weight: 700;
  color: var(--clay);
  min-width: 3rem;
}

.flow-dash-cal-list p {
  margin: 0;
  font-weight: 600;
}

.flow-dash-cal-list span {
  color: var(--muted);
  font-size: 11px;
}

.flow-dash-idea-list a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid var(--linen);
  text-decoration: none;
  color: inherit;
}

.flow-dash-idea-list li:first-child a {
  border-top: none;
}

.flow-dash-idea-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.flow-dash-idea-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.flow-dash-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-dash-actions a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.flow-link-arrow {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .flow-dash-body,
  .flow-dash-main {
    grid-template-columns: 1fr;
  }

  .flow-dash-body--stack .flow-dash-col-side {
    grid-template-columns: 1fr;
  }

  .flow-dash-workspace {
    grid-template-columns: 1fr;
  }

  .flow-dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-dash-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-dash-hero {
    padding: 22px 20px;
  }

  .flow-dash-featured-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .flow-dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .flow-dash-hub-grid {
    grid-template-columns: 1fr;
  }

  .flow-dash-hero-actions {
    width: 100%;
  }

  .flow-dash-hero-actions .flow-btn {
    flex: 1;
  }

  .flow-dash-featured-scroll {
    grid-template-columns: 1fr;
  }

  .flow-dash-focus {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-dash-channel-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-dash-channel-audience {
    margin-left: auto;
  }
}

.flow-social-meta {
  flex: 1;
  min-width: 160px;
}

.flow-social-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.flow-social-handle,
.flow-social-sync {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.flow-social-error {
  margin: 4px 0 0;
  font-size: 10px;
  color: #b83030;
}

.flow-social-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-social-empty p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.flow-social-guide {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  background: #fafbfc;
}

.flow-social-guide-lead {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.flow-social-guide-steps {
  margin: 0 0 10px;
}

.flow-social-guide-steps summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.flow-social-guide-steps ol {
  margin: 10px 0 0;
  padding-left: 1.25rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.flow-social-guide-steps li + li {
  margin-top: 6px;
}

.flow-social-guide-links {
  margin: 10px 0 0;
  font-size: 12px;
}

.flow-social-guide-links a {
  color: var(--teal);
}

.flow-social-guide-alt {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.flow-social-manual .flow-social-manual-form {
  margin-top: 8px;
}

.flow-field--spaced {
  margin-top: 20px;
}

.flow-connect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.flow-settings-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.flow-settings-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flow-settings-panel {
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius);
  padding: var(--flow-card-padding, 22px);
  box-shadow: var(--flow-shadow);
}

.flow-settings-panel h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.flow-settings-panel-sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.flow-settings-save {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0 8px;
}

.flow-alert--info {
  background: #edf0ff;
  color: #2e4a8a;
  border: 1px solid #b8c8ef;
}

@media (max-width: 1024px) {
  .flow-settings-columns {
    grid-template-columns: 1fr;
  }

  .flow-usage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .flow-chip-grid--3,
  .flow-chip-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-usage-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Nav groups */
.flow-nav-group {
  margin: 14px 14px 6px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa8a2;
}

/* Idea detail actions */
.flow-idea-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.flow-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--flow-radius-xs);
  font-size: 11px;
  font-weight: 700;
}

.flow-idea-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.flow-idea-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.flow-btn.is-active {
  background: var(--clay);
  color: var(--paper);
}

.flow-card--compact {
  margin-bottom: 16px;
}

.flow-muted-inline {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.flow-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-chip-form {
  margin: 0;
}

.flow-chip {
  padding: 8px 14px;
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.flow-chip:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.flow-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.flow-field--grow {
  flex: 1;
  min-width: 200px;
}

.flow-hashtag-strategy {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-hashtag-tags {
  margin: 0 0 12px;
  font-size: 13px;
}

.flow-danger-zone {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--linen);
}

/* Shoot queue */
.flow-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-queue-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
}

.flow-queue-pos {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clay);
  min-width: 1.5rem;
}

.flow-queue-body {
  flex: 1;
  min-width: 0;
}

.flow-queue-body h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.flow-queue-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* Tabs & analytics */
.flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.flow-tabs--inline {
  margin-bottom: 0;
}

.flow-tab {
  padding: 8px 14px;
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--deep-field);
  background: var(--paper);
}

.flow-tab.is-active {
  background: var(--flow-accent-soft);
  border-color: rgba(255, 106, 88, 0.35);
  color: var(--flow-accent);
}

.flow-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.flow-stat-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.flow-stat-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.flow-bar-row {
  display: grid;
  grid-template-columns: 7rem 1fr 2rem;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.flow-bar-track {
  height: 8px;
  background: var(--linen);
  border-radius: 2px;
  overflow: hidden;
}

.flow-bar-fill {
  height: 100%;
  background: var(--clay);
  border-radius: 2px;
}

.flow-feedback-stat {
  padding: 16px;
  border-radius: var(--flow-radius-sm);
  text-align: center;
}

.flow-feedback-stat strong {
  display: block;
  font-size: 1.75rem;
}

.flow-feedback-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flow-feedback-stat--like {
  background: #ebf3ed;
  border: 1px solid #a8cead;
  color: #3d7a4f;
}

.flow-feedback-stat--dislike {
  background: #faecec;
  border: 1px solid #dfaaaa;
  color: #b83030;
}

.flow-weekly-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-weekly-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--linen);
  font-size: 12px;
}

.flow-sharpness-card {
  text-align: center;
}

.flow-sharpness-score {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  color: var(--clay);
  line-height: 1;
}

.flow-sharpness-breakdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 12px;
}

/* Thumbnails */
.flow-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.flow-thumb-card {
  padding: var(--flow-card-padding-sm, 16px);
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
  box-shadow: var(--flow-shadow);
}

.flow-thumb-swatches {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.flow-thumb-swatches span {
  width: 28px;
  height: 28px;
  border-radius: var(--flow-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.flow-thumb-style {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-thumb-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.flow-thumb-meta {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.flow-thumb-channel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.flow-thumb-channel-head h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.flow-thumb-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.flow-thumb-ref {
  margin: 0;
}

.flow-thumb-ref img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--flow-radius-sm);
  border: 1px solid var(--linen);
}

.flow-thumb-ref figcaption {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
}

.flow-thumb-ref-views {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.flow-thumb-ref-title {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-thumb-dna {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--linen);
}

.flow-thumb-hint {
  margin: 12px 0 0;
  font-size: 13px;
}

.flow-thumb-preview {
  display: block;
  margin: -4px -4px 12px;
  border-radius: var(--flow-radius-sm);
  overflow: hidden;
  border: 1px solid var(--linen);
}

.flow-thumb-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.flow-thumb-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.flow-thumb-note--warn {
  color: var(--coral, #e85d4c);
}

.flow-thumb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.flow-field--check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.flow-field--check input {
  width: auto;
}

.flow-list-compact {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  font-size: 13px;
}

/* Thumbnail studio — single-line generate bar */
.flow-card--thumb-generate {
  overflow: visible;
  position: relative;
  z-index: 2;
}

.flow-thumb-generate-form {
  margin: 0;
}

.flow-thumb-generate-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.flow-thumb-gen-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.flow-thumb-gen-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #2d3d31;
  white-space: nowrap;
}

.flow-thumb-gen-field--idea {
  flex: 0 1 200px;
  max-width: 220px;
}

.flow-thumb-gen-field--idea .flow-select {
  flex: 1;
  min-width: 0;
  max-width: 160px;
  position: relative;
  z-index: 3;
}

.flow-thumb-gen-field--title {
  flex: 1 1 180px;
  min-width: 120px;
}

.flow-thumb-gen-field--title input,
.flow-thumb-generate-row .flow-select {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: var(--flow-radius-sm);
  border: 1px solid var(--linen);
  background: var(--bg);
  font-family: inherit;
  color: var(--deep-field);
}

.flow-thumb-generate-row .flow-select {
  width: auto;
}

.flow-thumb-gen-field--count .flow-select {
  width: 4.5rem;
  min-width: 4.5rem;
}

.flow-thumb-gen-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex-shrink: 0;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}

.flow-thumb-gen-check input {
  width: auto;
  margin: 0;
}

.flow-thumb-gen-check em {
  font-style: normal;
  font-size: 11px;
}

.flow-thumb-gen-submit {
  flex-shrink: 0;
  margin-left: auto;
}

.flow-thumb-generate-row + .flow-thumb-hint,
.flow-card--thumb-generate .flow-thumb-hint {
  margin-top: 12px;
}

@media (max-width: 960px) {
  .flow-thumb-generate-row {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .flow-thumb-gen-field--idea {
    flex: 1 1 100%;
    max-width: none;
  }

  .flow-thumb-gen-field--idea .flow-select {
    max-width: none;
  }

  .flow-thumb-gen-field--title {
    flex: 1 1 100%;
  }

  .flow-thumb-gen-submit {
    margin-left: 0;
    width: 100%;
  }
}

.flow-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.flow-filter-tabs__item {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: 999px;
}

.flow-filter-tabs__item.is-active {
  color: var(--ink);
  border-color: var(--coral);
  background: rgba(232, 93, 76, 0.08);
}

.flow-thumb-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.flow-thumb-card--fav {
  border-color: var(--coral);
  box-shadow: 0 0 0 1px rgba(232, 93, 76, 0.15);
}

.flow-thumb-card--used {
  opacity: 0.92;
}

.flow-thumb-idea-link {
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal);
}

.flow-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--flow-radius-sm);
  background: var(--mist);
  color: var(--muted);
}

.flow-badge--fav {
  background: rgba(232, 93, 76, 0.12);
  color: var(--coral);
}

.flow-badge--used {
  background: rgba(45, 157, 143, 0.12);
  color: var(--teal);
}

.flow-badge--muted {
  background: var(--mist);
  color: var(--muted);
}

/* Brands */
.flow-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.flow-brand-card {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
}

.flow-brand-card--high {
  border-color: #a8cead;
  background: #fafcf9;
}

.flow-brand-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.flow-brand-card h2 {
  margin: 0;
  font-size: 1rem;
}

.flow-brand-confidence {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-brand-category,
.flow-brand-deal {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Digest */
.flow-digest-rec {
  margin-bottom: 20px;
  background: #f5efe8;
  border-color: #e8c4b0;
}

.flow-delta {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
}

.flow-delta--up {
  color: #3d7a4f;
}

.flow-delta--down {
  color: #b83030;
}

/* Dashboard score & trends */
.flow-flow-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--linen);
  border-radius: var(--flow-radius-sm);
}

.flow-flow-score h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.flow-flow-score > div > p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.flow-flow-score-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--clay) calc(var(--score) * 1%), var(--linen) 0);
  font-size: 1.25rem;
  font-weight: 800;
}

.flow-flow-score-ring span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-score-bar-row {
  display: grid;
  grid-template-columns: 7rem 1fr 3rem;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
}

.flow-trend-alerts {
  margin-bottom: 20px;
}

.flow-trend-alerts-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.flow-trend-alerts-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.flow-trend-alerts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flow-trend-alert-card {
  padding: 14px;
  border-radius: var(--flow-radius-sm);
  border: 1px solid var(--linen);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-trend-urgency--breaking {
  background: #faecec;
  border-color: #dfaaaa;
}

.flow-trend-urgency--spiking {
  background: #fbf2e8;
  border-color: #e8c4a0;
}

.flow-trend-urgency--growing {
  background: #ebf3ed;
  border-color: #a8cead;
}

.flow-trend-alert-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flow-trend-alert-topic {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.flow-trend-alert-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.flow-dash-connect-banner--profile {
  background: #f5efe8;
}

@media (max-width: 1024px) {
  .flow-trend-alerts-grid,
  .flow-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-flow-score {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .flow-trend-alerts-grid,
  .flow-stat-grid,
  .flow-stat-grid--3 {
    grid-template-columns: 1fr;
  }

  .flow-queue-item {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-login-spinner,
  .flow-live-dot,
  .flow-loading-ring {
    animation: none;
  }
}

/* ── Loading overlay (long requests) ── */
body.flow-is-loading {
  overflow: hidden;
}

.flow-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 26, 22, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.flow-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.flow-loading-panel {
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  text-align: center;
  background: var(--flow-surface);
  border: 1px solid var(--flow-border);
  border-radius: var(--flow-radius-lg);
  box-shadow: 0 24px 64px rgba(18, 26, 22, 0.2);
}

.flow-loading-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.flow-loading-brand .flow-brand-text {
  font-family: var(--flow-font-display);
  font-weight: 700;
  color: var(--flow-ink);
}

.flow-loading-ring {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 3px solid var(--flow-border);
  border-top-color: var(--flow-accent);
  border-right-color: var(--flow-teal);
  border-radius: 50%;
  animation: flow-spin 0.9s linear infinite;
}

.flow-loading-title {
  margin: 0 0 8px;
  font-family: var(--flow-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--flow-ink);
}

.flow-loading-detail {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--flow-muted);
}

.flow-loading-hint {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  color: var(--flow-muted);
  opacity: 0.85;
}

.flow-loading-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  border-top: 1px solid var(--flow-border);
  padding-top: 16px;
}

.flow-loading-steps li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.8125rem;
  color: var(--flow-muted);
  transition: color 0.2s ease;
}

.flow-loading-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--flow-border);
  background: var(--flow-surface);
}

.flow-loading-steps li.is-active {
  color: var(--flow-ink);
  font-weight: 500;
}

.flow-loading-steps li.is-active::before {
  border-color: var(--flow-accent);
  background: var(--flow-accent);
  box-shadow: 0 0 0 3px var(--flow-accent-soft);
}

.flow-loading-standalone {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.flow-loading-standalone .flow-loading-overlay {
  position: relative;
  background: transparent;
  backdrop-filter: none;
  opacity: 1;
  visibility: visible;
}

.flow-kicker,
.flow-trends-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flow-teal);
}
