/* AVA R2 — preserve the existing customer shell and champagne theme.
   All overrides are confined to the AVA screen. */
#ava-panel.feature-panel{padding:12px 18px 28px;box-sizing:border-box;min-height:0}
#ava-product-r1{max-width:none;width:100%;margin:0;padding:0 8px 24px;gap:12px}
#ava-product-r1 .ava-r1-heading{gap:12px;align-items:center}
#ava-product-r1 .ava-r1-heading h1{font-size:clamp(26px,2.6vw,39px);margin:3px 0 2px;line-height:1.1}
#ava-product-r1 .ava-r1-heading p{font-size:13px;line-height:1.45}
#ava-product-r1 .ava-r1-readiness{min-height:38px;padding:8px 13px;border-radius:10px;gap:8px}
#ava-product-r1 .ava-r1-tabs{padding:3px;border-radius:10px}
#ava-product-r1 .ava-r1-tabs button{min-height:39px;padding:9px 12px}
#ava-product-r1 .ava-r1-body{gap:12px}
#ava-product-r1 .ava-r1-hero{position:relative;isolation:isolate;display:block;min-height:clamp(330px,41vh,470px);padding:clamp(24px,3vw,44px);overflow:hidden;border-radius:18px;border-color:#43382c;background:radial-gradient(ellipse at 80% 52%,#2a241e 0,#191817 45%,#131415 88%)}
.ava-r2-hero-copy{position:relative;z-index:3;width:49%;min-width:0;display:flex;flex-direction:column;justify-content:center;min-height:280px;pointer-events:none}
.ava-r2-hero-copy button{pointer-events:auto}
#ava-product-r1 .ava-r2-hero-copy h2{font-size:clamp(26px,2.35vw,38px);line-height:1.29;letter-spacing:-.06em;margin:13px 0 16px;color:#f2eee7;word-break:keep-all;white-space:normal}
.ava-r2-hero-copy h2 strong{font-weight:inherit;color:#edc89a}
#ava-product-r1 .ava-r2-hero-copy p:not(.ava-r1-eyebrow){font-size:clamp(12px,1vw,15px);line-height:1.85;color:#c5bfb6;word-break:keep-all}
.ava-r2-hero-copy .ava-r1-actions{margin-top:22px;gap:10px}
#ava-product-r1 .ava-r2-hero-copy .ava-r1-btn{min-height:43px;padding:11px 17px}
.ava-r2-hero-graph{position:absolute;inset:0 0 0 31%;z-index:1;overflow:hidden}
.ava-r2-hero-graph::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#171717 0,rgba(23,23,23,.73) 9%,rgba(23,23,23,.10) 28%,transparent 45%);border-radius:inherit}
.ava-r2-hero-note{position:absolute;bottom:12px;right:14px;z-index:4;font-size:10px;color:#ae9a80;pointer-events:none}
.ava-r2-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;min-width:0}
.ava-r2-feature{border:1px solid #3d3830;background:linear-gradient(135deg,#22211f,#18191a);border-radius:14px;padding:17px;display:grid;gap:9px;min-width:0;align-content:start;text-align:left}
.ava-r2-feature h3{margin:0;font-size:15px;font-weight:700;line-height:1.4;letter-spacing:-.025em;display:flex;gap:10px;align-items:center;word-break:keep-all}
.ava-r2-feature h3 svg{width:25px;height:25px;color:#e7bf87;flex:none}
.ava-r2-feature p{margin:0;color:#b9b3aa;line-height:1.7;font-size:12px;word-break:keep-all}
#ava-product-r1 .ava-r2-feature button{margin-top:2px;justify-self:start;font-size:11px;min-height:33px;padding:5px 9px}
#ava-product-r1 .ava-r2-map-shell{display:grid;gap:8px;min-width:0}
.ava-atlas-stage{position:relative;isolation:isolate;overflow:hidden;width:100%;min-width:0;background:radial-gradient(ellipse at 50% 48%,#251e17 0,#171716 37%,#111214 80%);border-radius:16px}
.ava-atlas-hero{height:100%;border-radius:0;background:transparent}
.ava-atlas-full{height:clamp(360px,52vh,650px);border:1px solid #3e352b}
.ava-atlas-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none}
.ava-atlas-full .ava-atlas-canvas{touch-action:none;cursor:grab}
.ava-atlas-full .ava-atlas-canvas:active{cursor:grabbing}
.ava-atlas-hero .ava-atlas-canvas{touch-action:pan-y;cursor:crosshair}
.ava-atlas-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.ava-atlas-orb{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:120px;height:120px;display:grid;place-content:center;justify-items:center;gap:4px;color:#f5d3a3;border-radius:50%;border:1.5px solid #f6c98d;box-shadow:0 0 12px #f9c37b99,0 0 30px #d9a86555,0 0 65px #c8904c33,inset 0 0 25px #e2a85855;background:radial-gradient(circle at 42% 36%,#513d26,#231d17 52%,#161513 90%);line-height:1;white-space:nowrap}
.ava-atlas-orb::before,.ava-atlas-orb::after{content:"";position:absolute;inset:-9px;border:1px solid #d5a66344;border-radius:50%;pointer-events:none}
.ava-atlas-orb::after{inset:-19px;border-style:dotted;opacity:.6}
.ava-atlas-orb strong{font-size:inherit;text-shadow:0 0 18px #e3ac7099;font-weight:750;letter-spacing:-.03em}
.ava-atlas-full .ava-atlas-orb strong{font-size:.56em;letter-spacing:.02em}
.ava-atlas-orb svg{width:1.2em;height:1.2em;filter:drop-shadow(0 0 5px #edc39266)}
#ava-product-r1 .ava-atlas-label{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:8px 12px;border-radius:99px;border:1px solid var(--region);background:#191919ed;color:#f2eae1;font-size:clamp(11px,1.05vw,14px);line-height:1.2;font-weight:700;white-space:nowrap;cursor:pointer;box-shadow:0 0 13px color-mix(in srgb,var(--region) 18%,transparent);max-width:90%}
.ava-atlas-label svg{width:18px;height:18px;flex:none;color:var(--region)}
#ava-product-r1 .ava-atlas-label:hover,#ava-product-r1 .ava-atlas-label.is-hot,#ava-product-r1 .ava-atlas-label[aria-pressed=true]{background:color-mix(in srgb,var(--region) 16%,#181719);box-shadow:0 0 22px color-mix(in srgb,var(--region) 55%,transparent);color:#fff}
.ava-atlas-tools{position:absolute;top:9px;right:9px;display:flex;gap:5px;z-index:4;background:#121314d9;padding:4px;border:1px solid #504335;border-radius:9px}
#ava-product-r1 .ava-atlas-tools button{width:34px;height:34px;border:1px solid #514434;border-radius:6px;color:#e5c398;background:#201d19;font-size:18px;font-weight:650;cursor:pointer;line-height:1;padding:0}
#ava-product-r1 .ava-atlas-tools button:hover,#ava-product-r1 .ava-atlas-tools button[aria-pressed=true]{background:#3c3022}
.ava-atlas-guide{position:absolute;left:10px;bottom:10px;font-size:10px;color:#b8a78e;padding:5px 8px;background:#141414c9;border-radius:6px;pointer-events:none}
.ava-atlas-detail{border:1px solid #41382d;border-radius:11px;background:#1a1a1b;padding:12px 15px;display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:64px}
.ava-atlas-detail>div{min-width:0}
.ava-atlas-detail strong{color:#e8c9a1;font-size:14px}
.ava-atlas-detail p{margin:4px 0 0;color:#b4aea4;font-size:12px;line-height:1.6;word-break:keep-all}
#ava-product-r1 .ava-atlas-detail button{flex:none;font-size:12px;min-height:36px}
@media(max-width:1100px){.ava-r2-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ava-r2-hero-copy{width:53%}.ava-r2-hero-graph{left:34%}}
@media(max-width:780px){
 #ava-panel.feature-panel{padding:8px 10px 18px}
 #ava-product-r1{padding:0 2px 16px;gap:10px}
 #ava-product-r1 .ava-r1-heading h1{font-size:27px}
 #ava-product-r1 .ava-r1-heading p{font-size:12px}
 #ava-product-r1 .ava-r1-readiness{font-size:11px;padding:7px 9px;gap:7px}
 #ava-product-r1 .ava-r1-readiness small{font-size:10px;margin-left:14px}
 #ava-product-r1 .ava-r1-tabs button{min-height:36px;padding:8px 10px}
 #ava-product-r1 .ava-r1-hero{padding:19px 16px 0;min-height:0;background:radial-gradient(ellipse at 55% 76%,#30261c,#171819 72%)}
 .ava-r2-hero-copy{width:100%;min-height:0;pointer-events:auto}
 #ava-product-r1 .ava-r2-hero-copy h2{font-size:clamp(24px,5.7vw,34px);margin:10px 0 12px}
 #ava-product-r1 .ava-r2-hero-copy p:not(.ava-r1-eyebrow){font-size:12px;line-height:1.75}
 .ava-r2-hero-copy .ava-r1-actions{margin-top:14px}
 #ava-product-r1 .ava-r2-hero-copy .ava-r1-btn{padding:9px 11px;font-size:12px;min-height:38px}
 .ava-r2-hero-graph{position:relative;inset:auto;height:clamp(205px,57vw,325px);margin:0 -16px}
 .ava-r2-hero-graph::after{background:linear-gradient(180deg,#171819 0,transparent 24%)}
 .ava-r2-hero-note{bottom:7px;right:8px;font-size:9px}
 .ava-r2-feature-grid{gap:8px}.ava-r2-feature{padding:12px;gap:7px}.ava-r2-feature h3{font-size:13px;gap:7px}.ava-r2-feature h3 svg{width:20px;height:20px}.ava-r2-feature p{font-size:11px}
 .ava-atlas-full{height:clamp(380px,66vh,520px);border-radius:12px}
 #ava-product-r1 .ava-atlas-label{font-size:10px;padding:6px 7px;gap:3px;min-height:30px}
 .ava-atlas-label svg{width:13px;height:13px}
 .ava-atlas-detail{padding:11px;align-items:flex-start;flex-wrap:wrap}
 .ava-atlas-tools{top:6px;right:6px;gap:3px;padding:3px}
 #ava-product-r1 .ava-atlas-tools button{width:32px;height:32px}
}
@media(prefers-reduced-motion:reduce){#ava-product-r1 *{scroll-behavior:auto!important}}

#ava-product-r1 .ava-r2-map-shell{padding:0;background:transparent;border:0;border-radius:0;justify-items:stretch}

#chat-main:has(#ava-panel:not([hidden])):focus:not(:focus-visible){outline:none}

/* R3: overview shares the memory atlas palette, without recoloring the Core shell. */
#ava-product-r1 .ava-r1-hero{background:radial-gradient(ellipse at 72% 25%,#26202f 0,transparent 46%),radial-gradient(ellipse at 91% 74%,#1c2926 0,transparent 48%),radial-gradient(ellipse at 45% 82%,#2a2029 0,transparent 38%),#151618}
.ava-r2-hero-graph::after{background:linear-gradient(90deg,#171719 0,rgba(23,23,25,.62) 9%,rgba(23,23,25,.07) 28%,transparent 45%)}
.ava-r2-feature:nth-child(1) h3 svg{color:#c8a5e8}
.ava-r2-feature:nth-child(2) h3 svg{color:#97b9ee}
.ava-r2-feature:nth-child(3) h3 svg{color:#a8cb9b}
.ava-r2-feature:nth-child(4) h3 svg{color:#e4a6ba}
@media(max-width:780px){
 #ava-product-r1 .ava-r1-hero{background:radial-gradient(ellipse at 65% 65%,#292031,transparent 55%),radial-gradient(ellipse at 95% 95%,#203129,transparent 50%),#171819}
 .ava-r2-hero-graph::after{background:linear-gradient(180deg,#171819 0,transparent 24%)}
}