.ae-fanout {
  --ae-ink:#1a0e0a; --ae-copy:#3e2f28; --ae-muted:#7a6a5f; --ae-line:#eadfcd;
  --ae-cream:#f7efe2; --ae-cream-deep:#eee2cc; --ae-paper:#fffdf9;
  --ae-brand:#d8392b; --ae-brand-dark:#b92b20; --ae-good:#1f7a59; --ae-warn:#b56a16;
  width:100%; max-width:1120px; margin:32px auto 56px; color:var(--ae-ink); font-family:Inter,system-ui,-apple-system,sans-serif; line-height:1.55;
}
.ae-fanout *, .ae-fanout *::before, .ae-fanout *::after { box-sizing:border-box; }
.ae-fanout .screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ae-fanout p { margin-top:0; }
.ae-fanout h2, .ae-fanout h3, .ae-fanout h4 { color:var(--ae-ink); font-family:Fraunces,Georgia,serif; }
.ae-fanout h2 { max-width:720px; margin:0 0 14px; font-size:clamp(34px,5vw,56px); font-weight:600; line-height:1.05; letter-spacing:-.025em; }
.ae-fanout h3 { margin:0; font-size:22px; font-weight:600; line-height:1.25; }
.ae-fanout h4 { margin:0; font-size:19px; font-weight:600; line-height:1.3; }

.ae-fanout__hero { position:relative; display:grid; grid-template-columns:minmax(0,1.55fr) minmax(285px,.78fr); gap:clamp(28px,6vw,70px); align-items:center; margin-bottom:28px; padding:clamp(24px,5vw,48px); overflow:hidden; border:1px solid var(--ae-line); border-radius:28px; background:radial-gradient(circle at 91% 10%,rgba(216,57,43,.14),transparent 29%),linear-gradient(135deg,#fffdf9 0%,var(--ae-cream) 100%); }
.ae-fanout__hero::after { content:""; position:absolute; right:-45px; bottom:-65px; width:210px; height:210px; border:1px solid rgba(216,57,43,.15); border-radius:50%; box-shadow:0 0 0 30px rgba(216,57,43,.04),0 0 0 62px rgba(216,57,43,.022); }
.ae-fanout__intro { position:relative; z-index:2; }
.ae-fanout__eyebrow { display:flex; align-items:center; gap:8px; margin:0 0 8px; color:var(--ae-brand); font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.ae-fanout__eyebrow > span { width:24px; height:2px; border-radius:999px; background:var(--ae-brand); }
.ae-fanout__intro > p:not(.ae-fanout__eyebrow) { max-width:680px; margin-bottom:18px; color:var(--ae-copy); font-size:17px; }
.ae-fanout__trust { display:flex; flex-wrap:wrap; gap:8px; }
.ae-fanout__trust span { display:inline-flex; align-items:center; gap:7px; padding:7px 11px; border:1px solid rgba(26,14,10,.1); border-radius:999px; background:rgba(255,255,255,.65); color:var(--ae-copy); font-size:12px; font-weight:650; }
.ae-fanout__trust span::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--ae-brand); }

.ae-fanout__visual { position:relative; z-index:1; min-height:275px; }
.ae-fanout-orbit { position:absolute; top:50%; left:50%; border:1px dashed rgba(216,57,43,.28); border-radius:50%; transform:translate(-50%,-50%); animation:ae-fanout-spin 24s linear infinite; }
.ae-fanout-orbit--one { width:170px; height:170px; }
.ae-fanout-orbit--two { width:260px; height:260px; animation-direction:reverse; animation-duration:32s; }
.ae-fanout-node { position:absolute; display:grid; place-items:center; padding:8px 11px; border:1px solid rgba(216,57,43,.16); border-radius:999px; background:rgba(255,255,255,.93); color:var(--ae-copy); box-shadow:0 10px 28px rgba(70,40,28,.1); font:700 10px/1 "JetBrains Mono",monospace; }
.ae-fanout-node--core { top:50%; left:50%; width:82px; height:82px; padding:0; border:0; border-radius:50%; background:var(--ae-brand); color:#fff; box-shadow:0 0 0 12px rgba(216,57,43,.1),0 16px 34px rgba(216,57,43,.25); transform:translate(-50%,-50%); animation:ae-fanout-pulse 3s ease-in-out infinite; }
.ae-fanout-node--a { top:13%; left:9%; animation:ae-fanout-float 4s ease-in-out infinite; }
.ae-fanout-node--b { top:11%; right:0; animation:ae-fanout-float 4.7s ease-in-out -1.1s infinite; }
.ae-fanout-node--c { bottom:11%; left:0; animation:ae-fanout-float 4.4s ease-in-out -2s infinite; }
.ae-fanout-node--d { right:5%; bottom:7%; animation:ae-fanout-float 5s ease-in-out -.6s infinite; }

.ae-fanout__form, .ae-fanout-output { overflow:hidden; border:1px solid var(--ae-line); border-radius:24px; background:var(--ae-paper); box-shadow:0 18px 50px rgba(70,40,28,.07); transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease; }
.ae-fanout__form:hover { border-color:#dfcfb6; box-shadow:0 24px 64px rgba(70,40,28,.1); }
.ae-fanout-section { padding:clamp(23px,4vw,38px); border-bottom:1px solid var(--ae-line); }
.ae-fanout-section__heading { display:flex; gap:13px; align-items:flex-start; margin-bottom:22px; }
.ae-fanout-section__heading > span { display:grid; flex:0 0 34px; height:34px; place-items:center; border-radius:50%; background:var(--ae-ink); color:var(--ae-cream); font:700 10px/1 "JetBrains Mono",monospace; }
.ae-fanout-section__heading h3 { font-size:21px; }
.ae-fanout-section__heading h3 i { margin-left:5px; color:var(--ae-muted); font:700 9px/1 "JetBrains Mono",monospace; font-style:normal; letter-spacing:.04em; text-transform:uppercase; }
.ae-fanout-section__heading p { margin:3px 0 0; color:var(--ae-muted); font-size:13px; }
.ae-fanout-grid { display:grid; gap:18px; padding-left:47px; }
.ae-fanout-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ae-fanout-field--wide { grid-column:1/-1; }
.ae-fanout-field { display:block; }
.ae-fanout-field > span { display:block; margin-bottom:7px; color:var(--ae-copy); font-weight:700; }
.ae-fanout-field > span b { color:var(--ae-brand); }
.ae-fanout-field small { display:block; margin-top:7px; color:var(--ae-muted); font-size:12px; }
.ae-fanout input, .ae-fanout select, .ae-fanout textarea { width:100%; min-height:52px; padding:10px 14px; border:1px solid #d8cab4; border-radius:13px; background:#fff; color:var(--ae-ink); font:inherit; outline:0; transition:border-color .18s ease,box-shadow .18s ease; }
.ae-fanout textarea { min-height:180px; resize:vertical; }
.ae-fanout input:hover, .ae-fanout select:hover, .ae-fanout textarea:hover { border-color:#c7b69d; }
.ae-fanout input:focus, .ae-fanout select:focus, .ae-fanout textarea:focus { border-color:var(--ae-brand); box-shadow:0 0 0 4px rgba(216,57,43,.1); }
.ae-fanout-content-input { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:16px; padding-left:47px; }
.ae-fanout-content-meter { display:grid; align-content:center; min-height:180px; padding:20px; border:1px solid var(--ae-line); border-radius:14px; background:linear-gradient(145deg,#fff 0%,var(--ae-cream) 100%); text-align:center; }
.ae-fanout-content-meter div { margin-bottom:17px; }
.ae-fanout-content-meter span { display:block; font-family:Fraunces,Georgia,serif; font-size:42px; line-height:1; }
.ae-fanout-content-meter small { color:var(--ae-muted); font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.ae-fanout-content-meter p { margin:0; color:var(--ae-muted); font-size:11px; }
.ae-fanout-actions { display:flex; flex-wrap:wrap; gap:10px; padding:26px clamp(23px,4vw,38px) 28px 85px; background:linear-gradient(90deg,rgba(247,239,226,.7),rgba(255,253,249,.4)); }
.ae-fanout-button { min-height:48px; padding:10px 20px; border:1px solid transparent; border-radius:999px; font:inherit; font-weight:750; cursor:pointer; transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.ae-fanout-button:hover { transform:translateY(-2px); }
.ae-fanout-button:active { transform:translateY(0); }
.ae-fanout-button:focus-visible { outline:3px solid rgba(216,57,43,.22); outline-offset:3px; }
.ae-fanout-button--primary { display:inline-flex; align-items:center; gap:13px; background:var(--ae-brand); color:#fff; box-shadow:0 9px 22px rgba(216,57,43,.22); }
.ae-fanout-button--primary i { display:grid; width:24px; height:24px; place-items:center; border-radius:50%; background:rgba(255,255,255,.18); font-style:normal; transition:transform .18s ease; }
.ae-fanout-button--primary:hover { background:var(--ae-brand-dark); box-shadow:0 12px 28px rgba(216,57,43,.28); }
.ae-fanout-button--primary:hover i { transform:translateX(3px); }
.ae-fanout-button--secondary { border-color:var(--ae-line); background:var(--ae-cream); color:var(--ae-ink); }
.ae-fanout-button--secondary:hover { border-color:#d6c4a9; background:var(--ae-cream-deep); }
.ae-fanout-error { margin:20px 38px 0 85px; padding:12px 14px; border-left:4px solid var(--ae-brand); border-radius:8px; background:#fff1ee; color:#8f2922; }

.ae-fanout-output { position:relative; margin-top:24px; padding:clamp(23px,4vw,38px); }
.ae-fanout-output.is-visible { animation:ae-fanout-rise .48s cubic-bezier(.22,1,.36,1) both; }
.ae-fanout-output__heading { display:flex; justify-content:space-between; align-items:center; gap:18px; padding-bottom:22px; border-bottom:1px solid var(--ae-line); }
.ae-fanout-output__heading h3 { font-size:29px; }
.ae-fanout-output__actions { display:flex; flex-wrap:wrap; gap:8px; }
.ae-fanout-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:22px 0; }
.ae-fanout-summary__item { position:relative; min-height:94px; padding:17px; overflow:hidden; border:1px solid var(--ae-line); border-radius:14px; background:linear-gradient(145deg,#fff 0%,var(--ae-cream) 100%); }
.ae-fanout-summary__item::before { content:""; position:absolute; left:0; top:0; width:4px; height:100%; background:var(--ae-brand); opacity:.78; }
.ae-fanout-summary__item strong { display:block; font-family:Fraunces,Georgia,serif; font-size:25px; line-height:1.1; }
.ae-fanout-summary__item span { color:var(--ae-muted); font-size:12px; }
.ae-fanout-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.ae-fanout-filters { display:flex; flex-wrap:wrap; gap:8px; }
.ae-fanout-filters button { min-height:38px; padding:7px 12px; border:1px solid var(--ae-line); border-radius:999px; background:#fff; color:var(--ae-copy); font:700 12px/1 Inter,sans-serif; cursor:pointer; transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease; }
.ae-fanout-filters button:hover { transform:translateY(-1px); border-color:#d1bfa5; }
.ae-fanout-filters button.is-active { border-color:var(--ae-ink); background:var(--ae-ink); color:var(--ae-cream); }
.ae-fanout-filters button span { display:inline-grid; min-width:20px; height:20px; margin-left:4px; place-items:center; border-radius:999px; background:var(--ae-cream); color:var(--ae-ink); font-size:10px; }
.ae-fanout-search { flex:0 0 220px; }
.ae-fanout-search input { min-height:40px; padding:7px 12px; font-size:12px; }
.ae-fanout-map { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ae-fanout-cluster { overflow:hidden; border:1px solid var(--ae-line); border-radius:16px; background:#fff; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.ae-fanout-cluster:hover { transform:translateY(-3px); border-color:#d8c6aa; box-shadow:0 15px 30px rgba(70,40,28,.08); }
.ae-fanout-cluster__head { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:16px 17px; background:linear-gradient(110deg,var(--ae-cream),#fff); border-bottom:1px solid var(--ae-line); }
.ae-fanout-cluster__title { display:flex; gap:10px; align-items:center; }
.ae-fanout-cluster__icon { display:grid; flex:0 0 34px; height:34px; place-items:center; border-radius:10px; background:var(--ae-ink); color:var(--ae-cream); font:800 10px/1 "JetBrains Mono",monospace; }
.ae-fanout-cluster__head h4 { font-size:18px; }
.ae-fanout-cluster__head p { margin:1px 0 0; color:var(--ae-muted); font-size:10px; }
.ae-fanout-cluster__score { text-align:right; }
.ae-fanout-cluster__score strong { display:block; font-family:Fraunces,Georgia,serif; font-size:22px; line-height:1; }
.ae-fanout-cluster__score span { color:var(--ae-muted); font-size:9px; text-transform:uppercase; }
.ae-fanout-list { margin:0; padding:4px 16px 10px; list-style:none; }
.ae-fanout-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:start; padding:13px 0; border-bottom:1px solid #f0e8dc; }
.ae-fanout-item:last-child { border-bottom:0; }
.ae-fanout-item__query { color:var(--ae-copy); font-size:13px; font-weight:650; line-height:1.42; }
.ae-fanout-item__meta { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.ae-fanout-badge { display:inline-flex; padding:4px 7px; border-radius:999px; background:var(--ae-cream); color:#69594e; font-size:8px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.ae-fanout-badge--gap { background:#fff0ed; color:var(--ae-brand-dark); }
.ae-fanout-badge--covered { background:#eaf6f0; color:#176347; }
.ae-fanout-badge--supporting { background:#eee9f6; color:#60417e; }
.ae-fanout-item__coverage { --coverage:0%; position:relative; display:grid; width:41px; height:41px; place-items:center; border-radius:50%; background:conic-gradient(var(--ae-good) var(--coverage),var(--ae-cream-deep) 0); font-size:9px; font-weight:800; }
.ae-fanout-item__coverage::before { content:""; position:absolute; inset:5px; border-radius:50%; background:#fff; }
.ae-fanout-item__coverage span { position:relative; z-index:1; }
.ae-fanout-empty { grid-column:1/-1; padding:30px; border:1px dashed #d8c6aa; border-radius:13px; background:var(--ae-cream); color:var(--ae-muted); text-align:center; }
.ae-fanout-method { margin-top:18px; padding:17px 18px; border:1px solid #ead3ad; border-left:4px solid var(--ae-warn); border-radius:10px; background:#fff7e9; }
.ae-fanout-method strong { font-family:Fraunces,Georgia,serif; font-size:18px; }
.ae-fanout-method p { margin:4px 0 0; color:#674614; font-size:13px; }

@keyframes ae-fanout-rise { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes ae-fanout-spin { to { transform:translate(-50%,-50%) rotate(360deg); } }
@keyframes ae-fanout-pulse { 0%,100% { box-shadow:0 0 0 12px rgba(216,57,43,.1),0 16px 34px rgba(216,57,43,.25); } 50% { box-shadow:0 0 0 18px rgba(216,57,43,.05),0 19px 38px rgba(216,57,43,.28); } }
@keyframes ae-fanout-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
@media(max-width:860px) { .ae-fanout__hero { grid-template-columns:1fr; } .ae-fanout__visual { display:none; } }
@media(max-width:760px) {
  .ae-fanout-grid--2, .ae-fanout-content-input, .ae-fanout-map { grid-template-columns:1fr; }
  .ae-fanout-output__heading, .ae-fanout-toolbar { align-items:flex-start; flex-direction:column; }
  .ae-fanout-output__actions, .ae-fanout-output__actions .ae-fanout-button, .ae-fanout-search { width:100%; }
  .ae-fanout-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:540px) {
  .ae-fanout { margin-top:18px; }
  .ae-fanout__hero, .ae-fanout__form, .ae-fanout-output { border-radius:18px; }
  .ae-fanout-grid, .ae-fanout-content-input { padding-left:0; }
  .ae-fanout-actions { padding-left:clamp(23px,4vw,38px); }
  .ae-fanout-actions .ae-fanout-button { justify-content:center; width:100%; }
  .ae-fanout-error { margin-right:23px; margin-left:23px; }
  .ae-fanout-summary { grid-template-columns:1fr 1fr; }
  .ae-fanout-item { grid-template-columns:1fr; }
  .ae-fanout-item__coverage { display:none; }
}
@media(prefers-reduced-motion:reduce) { .ae-fanout *, .ae-fanout *::before, .ae-fanout *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }
