/* AXIOMA Guide v1 — mobile-first interactive onboarding */
#axg-root{--axg-bg:#fff;--axg-text:#1c1b19;--axg-muted:#746f68;--axg-border:#e5e0d9;--axg-accent:#b58b52;--axg-dark:#171614;--axg-shadow:0 18px 55px rgba(20,18,14,.18);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;position:relative;z-index:2147482000}
#axg-root *{box-sizing:border-box}
.axg-launch{position:fixed;right:18px;bottom:22px;z-index:2147482002;display:flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:#171614;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.2);font:700 14px/1 inherit;cursor:pointer}
.axg-launch__mark{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#fff;color:#171614;font-size:17px;font-weight:900}
.axg-launch:focus-visible,.axg-btn:focus-visible,.axg-tour-btn:focus-visible,.axg-close:focus-visible{outline:3px solid rgba(181,139,82,.45);outline-offset:3px}
.axg-panel{position:fixed;right:18px;bottom:82px;width:min(390px,calc(100vw - 36px));max-height:min(70vh,620px);overflow:auto;z-index:2147482004;border:1px solid var(--axg-border);border-radius:22px;background:var(--axg-bg);box-shadow:var(--axg-shadow);color:var(--axg-text)}
.axg-panel[hidden],.axg-card[hidden],.axg-spotlight[hidden],.axg-nudge[hidden]{display:none!important}
.axg-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 20px 12px}
.axg-panel__head small{display:block;margin-bottom:4px;color:var(--axg-accent);font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.axg-panel__head h2{margin:0;font:700 22px/1.15 Georgia,serif}
.axg-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--axg-border);border-radius:50%;background:#fff;color:#333;font-size:23px;cursor:pointer}
.axg-panel__intro{margin:0;padding:0 20px 14px;color:var(--axg-muted);font-size:14px;line-height:1.5}
.axg-tour-list{display:grid;gap:9px;padding:0 12px 12px}
.axg-tour-btn{display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:11px;width:100%;min-height:64px;padding:11px 12px;border:1px solid var(--axg-border);border-radius:16px;background:#fff;color:var(--axg-text);text-align:left;cursor:pointer}
.axg-tour-btn:hover{background:#faf8f5}
.axg-tour-btn__icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f5f0e8;color:#6e512f;font-weight:900}
.axg-tour-btn strong{display:block;font-size:15px;line-height:1.25}
.axg-tour-btn small{display:block;margin-top:3px;color:var(--axg-muted);font-size:12px;line-height:1.35}
.axg-tour-btn__arrow{font-size:20px;color:#a09990}
.axg-panel__foot{padding:0 20px 18px;color:#999;font-size:11px;line-height:1.4}
.axg-spotlight{position:fixed;z-index:2147482001;border:2px solid #fff;border-radius:14px;box-shadow:0 0 0 9999px rgba(14,13,12,.67),0 0 0 5px rgba(181,139,82,.7);pointer-events:none;transition:top .18s ease,left .18s ease,width .18s ease,height .18s ease}
.axg-card{position:fixed;z-index:2147482005;width:min(360px,calc(100vw - 28px));border:1px solid var(--axg-border);border-radius:20px;background:#fff;box-shadow:var(--axg-shadow);color:var(--axg-text);overflow:hidden}
.axg-card__progress{height:4px;background:#eee9e2}.axg-card__progress i{display:block;height:100%;background:#b58b52;transition:width .2s ease}
.axg-card__body{padding:18px 18px 14px}
.axg-card__eyebrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#987344;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.axg-card h3{margin:0 0 7px;font:700 21px/1.2 Georgia,serif}
.axg-card p{margin:0;color:var(--axg-muted);font-size:14px;line-height:1.55}
.axg-card__missing{margin-top:8px;padding:8px 10px;border-radius:10px;background:#faf6ef;color:#806441;font-size:12px}
.axg-card__actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px 14px}
.axg-card__actions-left,.axg-card__actions-right{display:flex;gap:7px;min-width:0}
.axg-btn{min-height:42px;padding:0 13px;border:1px solid var(--axg-border);border-radius:12px;background:#fff;color:#2a2825;font:700 13px/1 inherit;cursor:pointer}
.axg-btn--primary{border-color:#171614;background:#171614;color:#fff}
.axg-btn--ghost{border-color:transparent;background:transparent;color:#857c72}
.axg-btn[disabled]{opacity:.4;cursor:default}
.axg-nudge{position:fixed;right:18px;bottom:84px;z-index:2147482003;width:min(330px,calc(100vw - 36px));padding:15px;border:1px solid var(--axg-border);border-radius:17px;background:#fff;box-shadow:var(--axg-shadow);color:var(--axg-text)}
.axg-nudge strong{display:block;margin-bottom:4px;font-size:15px}.axg-nudge p{margin:0 0 11px;color:var(--axg-muted);font-size:13px;line-height:1.4}.axg-nudge__actions{display:flex;gap:7px;flex-wrap:wrap}
.axg-target-pulse{animation:axgPulse 1.2s ease-in-out 2}
@keyframes axgPulse{50%{filter:brightness(1.08)}}
@media(max-width:760px){
  .axg-launch{right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:48px;height:48px;min-height:48px;padding:0;border-radius:50%;justify-content:center}
  .axg-launch__label{display:none}.axg-launch__mark{width:30px;height:30px}
  .axg-panel{left:0;right:0;bottom:0;width:100%;max-height:min(72vh,640px);border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .axg-panel__head{padding:19px 17px 10px}.axg-panel__intro{padding:0 17px 13px}.axg-tour-list{padding:0 10px 10px}.axg-tour-btn{min-height:70px;padding:12px}.axg-panel__foot{padding:0 17px 18px}
  .axg-card{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .axg-card__body{padding:17px 17px 13px}.axg-card h3{font-size:21px}.axg-card p{font-size:14px}.axg-card__actions{padding:0 12px 12px}.axg-btn{min-height:44px;padding:0 12px}.axg-spotlight{border-radius:12px}
  .axg-nudge{left:12px;right:12px;bottom:calc(140px + env(safe-area-inset-bottom));width:auto}
}
@media(max-width:360px){.axg-card__actions{align-items:stretch;flex-direction:column}.axg-card__actions-left,.axg-card__actions-right{width:100%}.axg-card__actions-right{justify-content:flex-end}.axg-btn{flex:1}.axg-tour-btn{grid-template-columns:38px minmax(0,1fr) 18px}.axg-tour-btn__icon{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.axg-spotlight,.axg-card__progress i{transition:none}.axg-target-pulse{animation:none}}
html[data-axioma-native-app="1"] #axg-root,body[data-ai-native-shell="1"] #axg-root{display:none!important}


/* Floating UI collision guard: keep AXIOMA Guide clear of chat and bottom navigation. */
#axg-root{--axg-launch-bottom:84px;--axg-panel-bottom:146px;--axg-nudge-bottom:146px;z-index:2147483400}
.axg-launch{bottom:var(--axg-launch-bottom);z-index:2147483502}
.axg-panel{bottom:var(--axg-panel-bottom);z-index:2147483504}
.axg-spotlight{z-index:2147483501}
.axg-card{z-index:2147483505}
.axg-nudge{bottom:var(--axg-nudge-bottom);z-index:2147483503}
@media(max-width:900px){
  .axg-launch{right:12px;bottom:calc(var(--axg-launch-bottom) + env(safe-area-inset-bottom));width:48px;height:48px;min-height:48px;padding:0;border-radius:50%;justify-content:center}
  .axg-launch__label{display:none}.axg-launch__mark{width:30px;height:30px}
  .axg-panel{left:0;right:0;bottom:0;width:100%;max-height:min(72vh,640px);border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .axg-panel__head{padding:19px 17px 10px}.axg-panel__intro{padding:0 17px 13px}.axg-tour-list{padding:0 10px 10px}.axg-tour-btn{min-height:70px;padding:12px}.axg-panel__foot{padding:0 17px 18px}
  .axg-card{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .axg-card__body{padding:17px 17px 13px}.axg-card h3{font-size:21px}.axg-card p{font-size:14px}.axg-card__actions{padding:0 12px 12px}.axg-btn{min-height:44px;padding:0 12px}.axg-spotlight{border-radius:12px}
  .axg-nudge{left:12px;right:12px;bottom:calc(var(--axg-nudge-bottom) + env(safe-area-inset-bottom));width:auto}
}