/* AMAADOR EHS Leader Command Studio — Amaador AI styles (r2c) */
.ai-orb { display: inline-block; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 30% 30%, #fff 0 8%, transparent 9%), conic-gradient(from 210deg, #0071e3, #5e5ce6, #bf5af2, #30d158, #0071e3);
  box-shadow: 0 0 0 3px color-mix(in srgb, #5e5ce6 18%, transparent), 0 6px 18px rgba(94, 92, 230, .35); }
.ai-orb.sm { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) { .ai-orb { animation: aispin 8s linear infinite; } }
@keyframes aispin { to { filter: hue-rotate(360deg); } }

/* strip on every module */
.ai-strip { position: relative; margin: 0 0 18px; padding: 16px 18px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(var(--ec-surface), var(--ec-surface)) padding-box, linear-gradient(120deg, #0071e3, #5e5ce6, #bf5af2, #30d158) border-box;
  border: 1.5px solid transparent; box-shadow: var(--ec-card-shadow); }
.ai-strip::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, #5e5ce6 9%, transparent), transparent 60%); }
.ai-strip-head { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-strip-head b { font-size: 14px; }
.ai-strip-t { color: var(--ec-muted); font-size: 13px; }
.ai-badge { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: #5e5ce6; background: color-mix(in srgb, #5e5ce6 12%, transparent); }
.ai-tog { border: 0; background: transparent; color: var(--ec-accent); font: inherit; font-size: 12.5px; cursor: pointer; }
.ai-list { position: relative; list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ai-list li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.45; padding: 8px 12px; border-radius: 12px; background: var(--ec-surface-2); }
.ai-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; align-self: flex-start; background: var(--ec-accent); }
.ai-list li.c::before { background: var(--ec-danger); } .ai-list li.h::before { background: var(--ec-warn); } .ai-list li.g::before { background: var(--ec-ok); }
.ai-list li span { flex: 1; }
.ai-drafts { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-draft { background: linear-gradient(120deg, #0071e3, #5e5ce6) !important; color: #fff !important; border: 0 !important; }
.ai-strip.closed .ai-list, .ai-strip.closed .ai-drafts { display: none; }

/* floating button */
.ai-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 9000; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px 11px 12px; border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; font: 600 14px/1 -apple-system, "SF Pro Text", Inter, "Segoe UI", Arial, sans-serif; background: rgba(20, 20, 28, .82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 12px 30px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .15s; }
.ai-fab:hover { transform: translateY(-2px); }
@media (max-width: 560px) { .ai-fab span:last-child { display: none; } .ai-fab { padding: 12px; } }

/* panel */
.ai-panel { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 60px); z-index: 9001; width: min(420px, calc(100vw - 36px)); max-height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: #fff; color: #1d1d1f; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; font-family: -apple-system, "SF Pro Text", Inter, "Segoe UI", Arial, sans-serif; }
@media (prefers-reduced-motion: no-preference) { .ai-panel { animation: aiin .28s cubic-bezier(.2, .9, .3, 1.1) both; } }
@keyframes aiin { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #ececf0; background: linear-gradient(120deg, #f4f7ff, #f7f2ff); }
.ai-head b { display: block; font-size: 16px; } .ai-head small { color: #6e6e73; font-size: 12px; }
.ai-x { margin-left: auto; border: 0; background: #eceef3; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; color: #1d1d1f; }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.ai-msg.a { background: #f2f3f7; border-bottom-left-radius: 6px; }
.ai-msg.u { align-self: flex-end; background: linear-gradient(120deg, #0071e3, #5e5ce6); color: #fff; border-bottom-right-radius: 6px; }
.ai-go { margin-top: 6px; border: 0; background: none; padding: 0; color: #0071e3; font: inherit; font-weight: 600; cursor: pointer; }
.ai-typing { color: #6e6e73; }
.ai-sugg { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.ai-sugg button { border: 1px solid #e1e3ea; background: #fff; color: #1d1d1f; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.ai-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #ececf0; }
.ai-form input { flex: 1; border: 1px solid #d2d2d7 !important; background: #fff !important; color: #1d1d1f !important; border-radius: 999px; padding: 11px 14px; font: inherit; font-size: 15px; }
.ai-form input:focus { outline: none; border-color: #5e5ce6 !important; box-shadow: 0 0 0 4px rgba(94, 92, 230, .18); }
.ai-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; color: #fff; font-size: 18px; cursor: pointer; background: linear-gradient(120deg, #0071e3, #5e5ce6); }
.ai-enable { margin: 0 12px 12px; border: 1px dashed #b9b8f0; background: #f7f6ff; color: #4b49c6; border-radius: 12px; padding: 9px; font: inherit; font-size: 13px; cursor: pointer; }
