/* AdvisersOS: the Guide and the one-minute tour, in every product (platform/assets/aos-guide.js, 23 Nov 2026).
   Its own colours (every product has its own variables), light and dark (:root[data-theme="dark"], as every product sets it).
   The design rules: a ✕ of 44 px at the top right, nothing below 12 px, every tap at least 44 px, nothing scrolling sideways. */
#aosg, #aosg-spot, #aosg-offer, .aosg-rail, .aosg-mp, .aosg-here {
  --g-bg: #FFFFFF; --g-page: #F4F7FA; --g-ink: #1D2B36; --g-muted: #5B6B78; --g-line: #DDE6EE; --g-deep: #163E5C; --g-blue: #1F5F8B; --g-btn: #1F5F8B;
  --g-tint: #EAF2F8; --g-green: #2BB673; --g-ring: #F2A93B; --g-key: #0F3B5C;
}
:root[data-theme="dark"] #aosg, :root[data-theme="dark"] #aosg-spot, :root[data-theme="dark"] #aosg-offer, :root[data-theme="dark"] .aosg-rail, :root[data-theme="dark"] .aosg-mp, :root[data-theme="dark"] .aosg-here {
  --g-bg: #15202B; --g-page: #0F1821; --g-ink: #EAF2F8; --g-muted: #A7B6C3; --g-line: #2A3B4C; --g-deep: #DCEBF7; --g-blue: #7DB7E2; --g-btn: #2E77B8;
  --g-tint: #1A2C3D; --g-key: #BFE0FA;
}
.aosg-k { font-weight: 700; color: var(--g-key); }

/* the window */
#aosg { position: fixed; inset: 0; z-index: 100600; background: rgba(10, 20, 30, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.aosg-win { width: min(1040px, 100%); height: min(780px, calc(100vh - 32px)); background: var(--g-bg); color: var(--g-ink); border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; overflow: hidden; font: 400 15px/1.5 Inter, system-ui, -apple-system, sans-serif; }
.aosg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px 22px; border-bottom: 1px solid var(--g-line); flex: none; }
.aosg-h b { display: block; font: 700 21px/1.2 Montserrat, Inter, sans-serif; color: var(--g-deep); }
.aosg-eb { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--g-muted); font-weight: 600; }
.aosg-close, .aosg-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--g-tint); color: var(--g-ink); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.aosg-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px 1fr; }
.aosg-list { border-right: 1px solid var(--g-line); padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; background: var(--g-page); }
.aosg-list button { text-align: left; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--g-ink); font: 600 15px/1.25 Inter, sans-serif; padding: 9px 12px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.aosg-list button small { font: 500 12px Inter, sans-serif; color: var(--g-green); }
.aosg-list button[aria-current="true"] { background: var(--g-bg); box-shadow: inset 4px 0 0 var(--g-green), 0 1px 3px rgba(0, 0, 0, .08); color: var(--g-deep); }
.aosg-page { overflow-y: auto; padding: 18px 26px 22px; min-width: 0; }
.aosg-page h3 { font: 700 13px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--g-muted); margin: 20px 0 8px; }
.aosg-purpose { font-size: 17px; line-height: 1.5; margin: 0 0 14px; }
.aosg-zh { margin: 0 0 10px; color: var(--g-muted); font-size: 13px; }
.aosg-nav { background: var(--g-tint); border-radius: 14px; padding: 2px 16px 10px; margin-top: 14px; }
.aosg-nav h3 { margin-top: 12px; }
.aosg-nav ul, .aosg-tips ul { margin: 0; padding-left: 20px; }
.aosg-nav li, .aosg-tips li { margin: 4px 0; }
.aosg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aosg-steps li { display: flex; gap: 12px; align-items: flex-start; }
.aosg-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--g-deep); color: var(--g-bg); font: 700 14px Inter, sans-serif; margin-top: 1px; }
.aosg-st { flex: 1; min-width: 0; }
.aosg-st p { margin: 0; }
.aosg-sth { display: block; font: 700 15px Inter, sans-serif; color: var(--g-deep); margin-bottom: 1px; }
.aosg-lnk { border: 0; background: none; color: var(--g-blue); font: 600 14px Inter, sans-serif; padding: 0; min-height: 36px; cursor: pointer; }
.aosg-st .aosg-lnk { min-height: 32px; padding: 6px 0 0; }
.aosg-btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--g-line); background: var(--g-bg); color: var(--g-ink); font: 600 15px Inter, sans-serif; cursor: pointer; }
.aosg-btn.pri { background: var(--g-btn); border-color: var(--g-btn); color: #fff; }
.aosg-tour { margin: 2px 0 4px; }
.aosg-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .aosg-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .aosg-list { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--g-line); max-height: 34vh; padding: 10px; }
  .aosg-list button { flex: 0 1 auto; padding: 8px 12px; background: var(--g-bg); }
  .aosg-list button small { display: none; }
  .aosg-page { padding: 16px 18px 20px; }
}
@media (max-width: 520px) { #aosg { padding: 0; } .aosg-win { height: 100%; border-radius: 0; } }

/* the ring and its words (Show me, the tour) */
#aosg-spot { position: fixed; inset: 0; z-index: 100700; }
.aosg-ring { position: fixed; border-radius: 12px; box-shadow: 0 0 0 3px var(--g-ring), 0 0 0 9999px rgba(10, 20, 30, .5); pointer-events: none; transition: all .2s ease; animation: aosgPulse 1.6s ease-in-out infinite; }
#aosg-spot.aosg-none { background: rgba(10, 20, 30, .5); }
@keyframes aosgPulse { 50% { box-shadow: 0 0 0 6px var(--g-ring), 0 0 0 9999px rgba(10, 20, 30, .5); } }
@media (prefers-reduced-motion: reduce) { .aosg-ring { animation: none; transition: none; } }
.aosg-box { position: fixed; background: var(--g-bg); color: var(--g-ink); border-radius: 16px; box-shadow: 0 12px 36px rgba(0, 0, 0, .35); padding: 14px 16px 14px; font: 400 15px/1.5 Inter, system-ui, sans-serif; }
.aosg-box .aosg-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; background: transparent; }
.aosg-box p { margin: 0 44px 10px 0; }
.aosg-c { font: 600 12px Inter, sans-serif; color: var(--g-muted); letter-spacing: .04em; margin-bottom: 4px; }
.aosg-hint { color: var(--g-muted); font-size: 13px; }
.aosg-b { display: flex; justify-content: space-between; gap: 10px; }

/* the tour offered once */
#aosg-offer { position: fixed; right: 18px; bottom: 18px; z-index: 100550; width: min(360px, calc(100vw - 36px)); background: var(--g-bg); color: var(--g-ink); border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28); border: 1px solid var(--g-line); padding: 14px 16px 10px; font: 400 14.5px/1.45 Inter, system-ui, sans-serif; }
#aosg-offer > b { display: block; font: 700 16px Inter, sans-serif; color: var(--g-deep); margin-right: 40px; }
#aosg-offer p { margin: 4px 0 12px; }
#aosg-offer .aosg-x { position: absolute; top: 4px; right: 4px; background: transparent; }
#aosg-offer .aosg-never { display: block; margin: 6px auto 0; font-size: 13px; color: var(--g-muted); min-height: 32px; }

/* the Guide at the foot of a module's step rail (Advisory), in the module menu, and in each product's own place */
.steps .aosg-rail { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 46px; margin-top: auto; padding: 8px 12px; border-radius: 14px;
  border: 1.5px dashed var(--g-line); background: transparent; color: var(--g-muted); font: 600 15px/1.2 Inter, sans-serif; cursor: pointer; }
.steps .plan-btn ~ .aosg-rail { margin-top: 0; }
.aosg-rail svg, .aosg-mp svg, .aosg-here svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aosg-rail[hidden] { display: none !important; }
.aosg-mp { display: flex !important; align-items: center; gap: 10px; color: var(--g-blue) !important; }
.aosg-here { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--g-line); background: var(--g-bg); color: var(--g-blue);
  font: 600 14.5px Inter, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; }
.aosg-here.aosg-tab { border: 0; background: transparent; padding: 0 12px; font-weight: 600; }
.aosg-here.aosg-full { width: 100%; justify-content: center; }

/* the Guide's row in the account menu (platform/assets/aos-account.js), under Today's */
.aos-panel .aos-guide-row { width: calc(100% - 36px); border: 0; text-align: left; font: inherit; cursor: pointer; }
