/* AutoTrend System — the "Get the AutoTrend app" guide (site/install.js). Its own colours, so it looks the same
   on the member pages and on the chart; dark with the chart's dark theme and the dark times of day. */
.ats-app {
  --aa-sheet: #fcfdff; --aa-text: #12141c; --aa-text-2: #2a2f3d; --aa-text-3: #62677d;
  --aa-accent: #1468c8; --aa-soft: rgba(20, 30, 50, .05); --aa-line: rgba(20, 30, 50, .12); --aa-key: #fff; --aa-on-accent: #fff;
  position: fixed; inset: 0; z-index: 1200; color: var(--aa-text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] .ats-app, html[data-phase="evening"] .ats-app, html[data-phase="night"] .ats-app {
  --aa-sheet: #1c1f2c; --aa-text: #eef0f7; --aa-text-2: #c3c7d8; --aa-text-3: #9ea3bb;
  --aa-accent: #7cc6f0; --aa-soft: rgba(255, 255, 255, .06); --aa-line: rgba(255, 255, 255, .12); --aa-key: rgba(255, 255, 255, .08); --aa-on-accent: #0e1626;
}
.ats-app-dim { position: absolute; inset: 0; background: rgba(12, 18, 32, .42); animation: aa-fade .2s ease; }
.ats-app-sheet {
  position: absolute; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-height: calc(100% - 24px); overflow-y: auto;
  border-radius: 30px; padding: 22px 20px 18px; background: var(--aa-sheet); box-shadow: 0 20px 60px rgba(10, 20, 40, .35);
  animation: aa-up .28s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 641px) {
  .ats-app-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 400px; transform: translate(-50%, -50%); animation: aa-fade .2s ease; }
  .ats-app-grab { display: none; }
}
.ats-app-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--aa-line); margin: -10px auto 14px; }
.ats-app-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ats-app-top img { width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 4px 14px rgba(20, 40, 80, .18); flex: none; }
.ats-app-top b { display: block; font-size: 19px; letter-spacing: -.2px; }
.ats-app-top small { color: var(--aa-text-3); font-size: 13.5px; }
.ats-app-why { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.ats-app-why li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--aa-text-2); }
.ats-app-why svg { color: var(--aa-accent); flex: none; }
.ats-app-steps { background: var(--aa-soft); border-radius: 20px; padding: 12px 14px; margin-bottom: 14px; }
.ats-app-steps small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--aa-text-3); margin-bottom: 4px; }
.ats-app-step { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; font-size: 15px; line-height: 1.55; }
.ats-app-n { width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--aa-accent); color: var(--aa-on-accent); font-weight: 700; font-size: 13px; line-height: 1; display: grid; place-items: center; flex: none; }
.ats-app-key { display: inline-flex; align-items: center; gap: 5px; vertical-align: -3px; background: var(--aa-key); border: 1px solid var(--aa-line); border-radius: 9px; padding: 1px 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.ats-app-key svg { color: var(--aa-accent); }
.ats-app-btns { display: flex; gap: 10px; }
.ats-app-btns button { flex: 1; height: 46px; border-radius: 23px; border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.ats-app-later { background: var(--aa-soft); color: var(--aa-text-2); }
.ats-app-go { background: linear-gradient(180deg, #2a8fd6, #0b5fb8); color: #fff; }
.ats-app-btns button:focus-visible { outline: 3px solid var(--aa-accent); outline-offset: 2px; }
@keyframes aa-fade { from { opacity: 0; } }
@keyframes aa-up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ats-app-dim, .ats-app-sheet { animation: none; } }
