:root {
  --ec-ai-navy: #071531;
  --ec-ai-orange: #ff5001;
  --ec-ai-sand: #f7f4ef;
  --ec-ai-line: #e4e8ee;
  --ec-ai-muted: #607086;
  --ec-ai-radius: 22px;
  --ec-ai-shadow: 0 18px 48px rgba(7, 21, 49, .10);
}

html.ec-ai-active { background: var(--ec-ai-sand); }
body.ec-ai-active { background: var(--ec-ai-sand); color: var(--ec-ai-navy); }
body.ec-ai-active :where(main) { min-height: 58vh; }
body.ec-ai-active :where(button, .button, .btn, .primary, [type="submit"]) { border-radius: 14px; }
body.ec-ai-active :where(input, select, textarea) { border-radius: 14px; }
body.ec-ai-active :where(a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible) { outline: 3px solid rgba(255, 80, 1, .26); outline-offset: 3px; }

.ec-ai-brief {
  width: min(100% - 32px, 1320px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 18px auto 0;
  padding: 15px 18px;
  border: 1px solid rgba(255, 80, 1, .18);
  border-radius: 18px;
  background: linear-gradient(110deg, #fff8f3, #fff 48%, #f5f9ff);
  box-shadow: 0 12px 34px rgba(7, 21, 49, .07);
}
.ec-ai-brief-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; background:#ff5001; color:#fff; font-weight:900; }
.ec-ai-brief strong { display:block; color:var(--ec-ai-navy); font-size:.95rem; }
.ec-ai-brief span { display:block; margin-top:3px; color:var(--ec-ai-muted); font-size:.84rem; line-height:1.4; }
.ec-ai-brief button { min-height:42px; padding:0 15px; border:0; border-radius:12px; background:var(--ec-ai-navy); color:#fff; font-weight:800; cursor:pointer; }
.ec-ai-brief button:hover { background:#142a55; transform:translateY(-1px); }

.ec-ai-fab {
  position: fixed; z-index: 9998; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 9px; min-height: 52px;
  padding: 5px 16px 5px 6px; border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px; background: rgba(7,21,49,.96); color: #fff;
  box-shadow: 0 18px 42px rgba(7,21,49,.28); cursor: pointer;
  font-weight: 800; font-size: .88rem; backdrop-filter: blur(14px);
}
.ec-ai-fab img { width:40px; height:40px; border-radius:50%; object-fit:cover; border:2px solid #ff9a6b; }
.ec-ai-fab::after { content:""; width:8px; height:8px; border-radius:50%; background:#37bf78; box-shadow:0 0 0 3px var(--ec-ai-navy); position:absolute; left:35px; bottom:6px; }
.ec-ai-fab:hover { transform: translateY(-2px); }
.ec-ai-fab.is-loading { opacity:.74; pointer-events:none; }

.ec-ai-active :where(.ec-seo-card, .ecx-event-card, .ecx-static-discovery-card, .card, .experience-card) { overflow:hidden; border-radius:var(--ec-ai-radius); }
.ec-ai-active :where(.ec-seo-card, .ecx-event-card, .ecx-static-discovery-card) { border:1px solid var(--ec-ai-line); box-shadow:0 10px 26px rgba(7,21,49,.06); transition:transform .22s ease, box-shadow .22s ease; }
.ec-ai-active :where(.ec-seo-card, .ecx-event-card, .ecx-static-discovery-card):hover { transform:translateY(-4px); box-shadow:var(--ec-ai-shadow); }
@media (max-width: 700px) { .ec-ai-brief { grid-template-columns:auto 1fr; gap:10px; width:min(100% - 20px, 660px); padding:12px; } .ec-ai-brief button { grid-column:1 / -1; width:100%; } .ec-ai-fab { right:14px; bottom:max(14px, env(safe-area-inset-bottom)); padding-right:12px; } }
@media (prefers-reduced-motion: reduce) { .ec-ai-active *, .ec-ai-active *::before, .ec-ai-active *::after { transition:none !important; animation:none !important; } }
