/* Atlas Affiliate Portal — front-end styling (Atlas Labs: black panels, cyan accent) */
.aae-portal{
  --aae-purple:#0e1217;--aae-deep:#07090b;--aae-accent:#1e9dc0;
  --aae-bg:#0a0d10;--aae-soft:#121820;--aae-border:#232e38;--aae-strong:#2e3b47;
  --aae-text:#0e1217;--aae-ink:var(--aae-deep);--aae-muted:#5e6e7a;--aae-radius:22px;--aae-radius-sm:14px;
  color:var(--aae-text);font-family:inherit;max-width:1200px;margin:0 auto;
}
.aae-portal *{box-sizing:border-box}
.aae-flash{padding:12px 18px;border-radius:14px;margin:0 0 18px;font-weight:600}
.aae-flash--success{background:#d1e7dd;color:#0f5132}
.aae-flash--error{background:#f8d7da;color:#842029}

/* Auth */
.aae-auth{display:grid;grid-template-columns:1fr 1fr;gap:22px}
@media(max-width:780px){.aae-auth{grid-template-columns:1fr}}
.aae-card{background:#0e1217;border:1px solid var(--aae-border);border-radius:var(--aae-radius);
  padding:26px;box-shadow:0 14px 40px rgba(14,18,23,.07);margin-bottom:20px}
.aae-card h2{color:var(--aae-purple);margin:0 0 16px;font-weight:800}
.aae-card h3{color:var(--aae-purple);margin:0 0 14px;font-weight:700}
.aae-auth-card form{display:flex;flex-direction:column;gap:14px}
.aae-portal label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px}
.aae-portal input,.aae-portal select{border:1px solid var(--aae-border);border-radius:12px;
  padding:11px 14px;font-size:15px;background:var(--aae-bg);color:var(--aae-text)}
.aae-portal input:focus,.aae-portal select:focus{outline:none;border-color:var(--aae-accent);
  box-shadow:0 0 0 4px rgba(30,157,192,.15)}
.aae-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:520px){.aae-grid2{grid-template-columns:1fr}}
.aae-inline{flex-direction:row!important;align-items:center;gap:10px;font-weight:500}
.aae-inline input{width:auto}
.aae-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;
  background:var(--aae-soft);color:var(--aae-purple);border:1px solid var(--aae-border);
  border-radius:12px;padding:11px 18px;font-weight:700;cursor:pointer;text-decoration:none;
  font-size:14px;transition:.2s}
.aae-btn:hover{background:var(--aae-border)}
.aae-btn--primary{background:linear-gradient(135deg,#1e9dc0,#0b5e78);color:#fff;border:none}
.aae-btn--primary:hover{filter:brightness(1.07)}
.aae-link{color:var(--aae-accent);text-decoration:none;font-weight:600}
.aae-muted{color:var(--aae-muted);font-size:13px}
.aae-code-status{font-size:13px;font-weight:700}
.aae-code-status.ok{color:#0f5132}.aae-code-status.no{color:#842029}

/* Shell */
.aae-shell{display:grid;grid-template-columns:230px 1fr;gap:24px}
.aae-side{background:linear-gradient(180deg,#07090b,#0e1217);border-radius:var(--aae-radius);
  padding:22px 14px;align-self:start;position:sticky;top:20px}
.aae-brand{color:#fff;font-weight:800;font-size:18px;padding:6px 12px 16px}
.aae-side nav{display:flex;flex-direction:column;gap:4px}
.aae-nav{color:#d8c8ff;text-decoration:none;padding:11px 14px;border-radius:12px;font-weight:600;font-size:14px}
.aae-nav:hover{background:rgba(255,255,255,.08);color:#fff}
.aae-nav.is-active{background:rgba(255,255,255,.16);color:#fff}
.aae-nav--logout{margin-top:14px;color:#f0c8d8}

.aae-main{min-width:0}
.aae-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.aae-hello{font-size:24px;font-weight:800;color:var(--aae-ink)}
.aae-tier{color:var(--aae-muted);font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px}

/* Stat cards */
.aae-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-bottom:18px}
.aae-stat{background:#0e1217;border:1px solid var(--aae-border);border-radius:18px;padding:18px 20px;
  box-shadow:0 10px 24px rgba(14,18,23,.05)}
.aae-stat-label{color:var(--aae-muted);font-size:12px;text-transform:uppercase;letter-spacing:.6px;font-weight:700}
.aae-stat-value{color:var(--aae-ink);font-size:24px;font-weight:800;margin-top:6px}

/* Tables */
.aae-table{width:100%;border-collapse:collapse;font-size:14px}
.aae-table th{background:var(--aae-soft);color:var(--aae-purple);text-align:left;padding:10px 12px;font-weight:700}
.aae-table td{border-top:1px solid var(--aae-border);padding:10px 12px}
.aae-empty{background:var(--aae-soft);border:1px dashed var(--aae-strong);border-radius:14px;
  padding:18px;color:var(--aae-muted)}

/* Links tab */
.aae-linkrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}
.aae-linkurl{background:var(--aae-soft);color:var(--aae-purple);padding:10px 14px;border-radius:12px;
  flex:1;min-width:240px;word-break:break-all}

/* Bars / funnel */
.aae-bars{display:flex;flex-direction:column;gap:10px}
.aae-bar-row{display:grid;grid-template-columns:110px 1fr 50px;gap:10px;align-items:center;font-size:13px}
.aae-bar-label{font-weight:600}
.aae-bar{background:var(--aae-soft);border-radius:999px;height:12px;overflow:hidden}
.aae-bar-fill{height:100%;background:linear-gradient(90deg,#1e9dc0,#0b5e78);border-radius:999px}
.aae-bar-n{text-align:right;font-weight:700;color:var(--aae-purple)}
.aae-funnel-row{display:grid;grid-template-columns:120px 1fr 60px;gap:12px;align-items:center;margin:8px 0}
.aae-funnel-bar{background:var(--aae-soft);border-radius:10px;height:22px;overflow:hidden}
.aae-funnel-fill{height:100%;background:linear-gradient(90deg,#1e9dc0,#0b5e78)}

/* Calendar */
.aae-cal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.aae-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.aae-cal-dow{font-weight:700;color:var(--aae-muted);text-align:center;font-size:12px;padding:4px}
.aae-cal-cell{background:var(--aae-bg);border:1px solid var(--aae-border);border-radius:10px;
  min-height:84px;padding:6px}
.aae-cal-empty{background:transparent;border:none}
.aae-cal-day{font-weight:700;color:var(--aae-purple);font-size:13px}
.aae-cal-entry{margin-top:4px;font-size:11px}
.aae-cal-entry summary{cursor:pointer;background:var(--aae-soft);border-radius:8px;padding:4px 6px;
  color:var(--aae-ink);font-weight:600;list-style:none}
.aae-cal-body{padding:6px;font-size:12px}

/* TikTok slots */
.aae-slot-day{margin:14px 0}
.aae-slot-date{font-weight:700;color:var(--aae-ink);margin-bottom:8px}
.aae-slot-row{display:flex;flex-wrap:wrap;gap:8px}
.aae-slot{border-radius:12px;padding:8px 12px;font-size:13px;font-weight:700;text-align:center;
  min-width:120px;border:1px solid var(--aae-border);display:flex;flex-direction:column;gap:2px}
.aae-slot span{font-weight:600;font-size:11px;opacity:.85}
.aae-slot--open{padding:0;border:none;background:none}
.aae-slot-btn{width:100%;border:1px dashed var(--aae-strong);background:var(--aae-bg);color:var(--aae-purple);
  border-radius:12px;padding:8px 12px;cursor:pointer;font-weight:700;display:flex;flex-direction:column;gap:2px}
.aae-slot-btn:hover{background:var(--aae-soft)}
.aae-slot-btn span{color:var(--aae-accent)}
.aae-slot--mine{background:#d1e7dd;color:#0f5132;border-color:#badbcc}
.aae-slot--pending{background:#fff6da;color:#6b4a04;border-color:#e0b43c}
.aae-slot--taken{background:#f1edf8;color:#9b8fb5}
.aae-slot-cancel{background:none;border:none;color:#842029;cursor:pointer;font-size:11px;text-decoration:underline}

.aae-payform{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}
.aae-copy{cursor:pointer}

/* Interactive calendar (month / week) */
.aae-cal2-loading{padding:30px;text-align:center;color:var(--aae-muted)}
.aae-cal2-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.aae-cal2-nav{display:flex;gap:6px}
.aae-cal2-btn{background:var(--aae-soft);border:1px solid var(--aae-border);color:var(--aae-purple);border-radius:10px;padding:7px 13px;font-weight:700;cursor:pointer;font-size:14px}
.aae-cal2-btn:hover{background:var(--aae-border)}
.aae-cal2-title{font-size:18px;font-weight:800;color:var(--aae-ink)}
.aae-cal2-toggle{display:flex;background:var(--aae-soft);border:1px solid var(--aae-border);border-radius:10px;overflow:hidden}
.aae-cal2-seg{background:none;border:none;padding:7px 15px;font-weight:700;color:var(--aae-purple);cursor:pointer;font-size:13px}
.aae-cal2-seg.on{background:linear-gradient(135deg,#1e9dc0,#0b5e78);color:#fff}
.aae-cal2-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.aae-cal2-dow{text-align:center;font-weight:700;color:var(--aae-muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px;padding:4px 0}
.aae-cal2-cell{min-width:0;min-height:92px;background:var(--aae-bg);border:1px solid var(--aae-border);border-radius:10px;padding:6px;cursor:pointer;display:flex;flex-direction:column;gap:3px;transition:.12s}
.aae-cal2-cell:hover{border-color:var(--aae-strong);background:#0e1217}
.aae-cal2-pad{background:transparent;border:none;cursor:default}
.aae-cal2-num{font-weight:700;color:var(--aae-ink);font-size:13px}
.aae-cal2-cell.is-out .aae-cal2-num{color:#33414d}
.aae-cal2-cell.is-today{border-color:var(--aae-accent);box-shadow:0 0 0 2px rgba(30,157,192,.25)}
.aae-cal2-cell.is-today .aae-cal2-num{background:var(--aae-accent);color:#fff;border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center}
.aae-cal2-cell.is-sel{background:#0e1217;border-color:var(--aae-accent)}
.aae-cal2-chip{min-width:0;max-width:100%;font-size:10px;font-weight:700;color:#fff;background:var(--c,#1e9dc0);border-radius:5px;padding:2px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aae-cal2-dots{display:none;flex-wrap:wrap;gap:3px;margin-top:auto}
.aae-cal2-dots i{width:7px;height:7px;border-radius:50%;background:var(--c,#1e9dc0);display:block}
.aae-cal2-more{font-size:10px;color:var(--aae-muted);font-weight:600}
.aae-cal2-detail{margin-top:16px;border-top:1px solid var(--aae-border);padding-top:14px;overflow:hidden}
.aae-cal2-dhead{font-size:15px;font-weight:800;color:var(--aae-purple);margin-bottom:10px}
.aae-cal2-item{background:var(--aae-bg);border:1px solid var(--aae-border);border-radius:12px;padding:12px 14px;margin-bottom:10px;overflow-wrap:anywhere;word-break:break-word;min-width:0}
.aae-cal2-itop{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.aae-cal2-pill{color:#fff;font-size:11px;font-weight:700;border-radius:999px;padding:2px 9px}
.aae-cal2-stat{font-size:11px;color:var(--aae-muted);text-transform:uppercase;letter-spacing:.5px;font-weight:700}
.aae-cal2-body{font-size:13px;color:#aebcc6;line-height:1.55;margin-bottom:6px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:640px){.aae-cal2-cell{min-height:58px;padding:5px}.aae-cal2-chip{display:none}.aae-cal2-dots{display:flex}.aae-cal2-more{display:none}.aae-cal2-title{font-size:15px}.aae-cal2-num{font-size:12px}}

/* ============================================================= */
/*  MOBILE  (must stay at the very end so it wins source-order)  */
/* ============================================================= */
.aae-tablewrap{width:100%}

@media (max-width: 820px) {
  .aae-portal{padding:0 2px}

  /* Layout → single column */
  .aae-shell{display:block}

  /* Nav → sticky horizontal scroll strip */
  .aae-side{
    position:sticky;top:0;z-index:30;margin:0 0 16px;
    padding:8px;border-radius:14px;
    background:linear-gradient(135deg,#07090b,#0e1217);
  }
  .aae-brand{display:none}
  .aae-side nav{
    display:flex;flex-direction:row;flex-wrap:nowrap;gap:6px;
    overflow-x:auto;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .aae-side nav::-webkit-scrollbar{display:none;height:0}
  .aae-nav{
    flex:0 0 auto;white-space:nowrap;
    padding:9px 14px;font-size:13px;border-radius:999px;
  }
  .aae-nav.is-active{background:#0e1217;color:#6fd9f7}
  .aae-nav--logout{margin-top:0}

  /* Topbar */
  .aae-topbar{margin-bottom:14px}
  .aae-hello{font-size:20px}

  /* Cards / spacing */
  .aae-card{padding:18px;border-radius:18px;margin-bottom:14px;box-shadow:0 6px 20px rgba(14,18,23,.06)}
  .aae-card h2{font-size:19px}
  .aae-card h3{font-size:16px}

  /* Stat cards → 2 up */
  .aae-cards{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
  .aae-stat{padding:14px;border-radius:14px}
  .aae-stat-value{font-size:20px}
  .aae-stat-label{font-size:11px}

  /* Auth / forms full width */
  .aae-auth{display:block}
  .aae-grid2{grid-template-columns:1fr}
  .aae-portal input,.aae-portal select{font-size:16px} /* prevents iOS zoom */

  /* Links */
  .aae-linkrow{flex-direction:column;align-items:stretch}
  .aae-linkurl{min-width:0;width:100%;font-size:13px}
  .aae-linkrow .aae-btn{width:100%}

  /* Bars become readable */
  .aae-bar-row{grid-template-columns:90px 1fr 56px;gap:8px;font-size:12px}
  .aae-funnel-row{grid-template-columns:96px 1fr 52px;gap:8px;font-size:12px}

  /* TABLES → stacked cards (no horizontal warping) */
  .aae-table--stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .aae-table--stack tr{
    display:block;background:#0e1217;border:1px solid var(--aae-border);
    border-radius:14px;padding:8px 14px;margin-bottom:10px;
  }
  .aae-table--stack td{
    display:flex;justify-content:space-between;align-items:center;gap:14px;
    border:none;border-bottom:1px solid var(--aae-border);
    padding:8px 0;font-size:14px;text-align:right;
  }
  .aae-table--stack tr td:last-child{border-bottom:none}
  .aae-table--stack td::before{
    content:attr(data-label);font-weight:700;color:var(--aae-muted);
    font-size:12px;text-transform:uppercase;letter-spacing:.4px;text-align:left;
  }

  /* Plain tables that aren't stacked → allow horizontal scroll */
  .aae-tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

  /* Payout form stacks */
  .aae-payform{flex-direction:column;align-items:stretch;gap:12px}
  .aae-payform .aae-btn{width:100%}

  /* TikTok slots full width */
  .aae-slot,.aae-slot-btn{min-width:0;width:100%}
  .aae-slot-row{flex-direction:column}

  /* Read-only month calendar (portal content cal) compresses */
  .aae-cal-cell{min-height:auto;padding:4px}
  .aae-cal-day{font-size:12px}
}

@media (max-width: 420px) {
  .aae-cards{grid-template-columns:1fr}
  .aae-hello{font-size:18px}
}

/* ============================================================= */
/*  REDESIGN v0.10 — profile nav, payout hero, weekly content    */
/* ============================================================= */
.aae-profile{display:flex;align-items:center;gap:10px;padding:4px 8px 16px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,.12)}
.aae-avatar{width:40px;height:40px;border-radius:50%;background:#1e9dc0;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;flex:0 0 auto}
.aae-pname{color:#fff;font-weight:700;font-size:14px;line-height:1.2}
.aae-tierbadge{display:inline-block;margin-top:3px;font-size:10px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;border-radius:999px;padding:2px 8px;background:rgba(255,255,255,.16);color:#e8dcff}
.aae-tier-gold{background:#fff0c8;color:#6b4a04}
.aae-nav{display:flex;align-items:center;gap:11px}
.aae-nav svg{width:18px;height:18px;flex:0 0 auto;opacity:.92}

.aae-cardhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.aae-cardhead h3{margin:0}

.aae-payhero{background:linear-gradient(140deg,#0b5e78,#07090b);color:#fff;border-radius:22px;padding:22px 24px;margin-bottom:16px}
.aae-payhero-label{font-size:12px;text-transform:uppercase;letter-spacing:.6px;opacity:.82;font-weight:700}
.aae-payhero-amount{font-size:34px;font-weight:800;margin:4px 0 12px;line-height:1}
.aae-payhero-amount .woocommerce-Price-amount{color:#fff}
.aae-paynote{display:flex;align-items:flex-start;gap:10px;font-size:13px;background:rgba(255,255,255,.14);border-radius:13px;padding:11px 14px;line-height:1.5}
.aae-paynote svg{width:20px;height:20px;flex:0 0 auto;margin-top:1px}
.aae-paynote strong{font-weight:800}

.aae-reflink{margin-bottom:10px}
.aae-btnrow2{display:flex;gap:10px}

.aae-week-row{display:flex;gap:12px;align-items:flex-start;padding:11px 0;border-bottom:1px solid var(--aae-border)}
.aae-week-row:last-child{border-bottom:none}
.aae-week-day{flex:0 0 auto;width:46px;text-align:center;background:var(--aae-soft);border-radius:12px;padding:7px 0}
.aae-week-day .d{font-size:18px;font-weight:800;color:var(--aae-purple);line-height:1}
.aae-week-day .m{font-size:10px;text-transform:uppercase;color:var(--aae-muted);font-weight:700;margin-top:2px}
.aae-week-tag{display:inline-block;font-size:10px;font-weight:800;color:#fff;border-radius:6px;padding:2px 8px}
.aae-week-title{font-size:14px;font-weight:700;color:var(--aae-ink);margin-top:4px}
.aae-week-sub{font-size:12px;color:var(--aae-muted);margin-top:2px}

.aae-morelist{display:flex;flex-direction:column}
.aae-more-item{display:flex;align-items:center;gap:14px;padding:15px 4px;border-bottom:1px solid var(--aae-border);font-size:15px;font-weight:700;color:var(--aae-ink);text-decoration:none}
.aae-more-item:last-child{border-bottom:none}
.aae-more-item svg{width:20px;height:20px;flex:0 0 auto;color:var(--aae-purple)}
.aae-more-item span{flex:1}
.aae-more-item svg:last-child{width:16px;height:16px;color:var(--aae-muted)}
.aae-more-logout{color:#a32d2d}.aae-more-logout svg{color:#a32d2d!important}

.aae-botnav{display:none}

/* ---- mobile: hide sidebar, show bottom tab bar (must win, stays last) ---- */
@media(max-width:820px){
  .aae-side{display:none}
  .aae-shell{display:block}
  .aae-main{padding-bottom:84px}
  .aae-payhero-amount{font-size:30px}
  .aae-botnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:99999;background:#0e1217;border-top:1px solid var(--aae-border);justify-content:space-around;align-items:center;padding:7px 4px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 22px rgba(14,18,23,.10)}
  .aae-botnav-item{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;font-weight:700;color:var(--aae-muted);text-decoration:none;flex:1;padding:2px 0}
  .aae-botnav-item svg{width:23px;height:23px}
  .aae-botnav-item.is-active{color:var(--aae-purple)}
}

/* Chart must live in a fixed-height box or Chart.js fills the whole page on mobile */
.aae-chartwrap{position:relative;height:240px;width:100%}
.aae-chartwrap canvas{position:absolute;inset:0;width:100%!important;height:100%!important}
@media(max-width:820px){.aae-chartwrap{height:200px}}

/* Revenue-generated card */
.aae-revcard{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#0e1217;border:1px solid var(--aae-border);border-radius:22px;padding:18px 22px;margin-bottom:16px;box-shadow:0 10px 24px rgba(14,18,23,.05)}
.aae-rev-label{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--aae-muted);font-weight:700}
.aae-rev-amount{font-size:30px;font-weight:800;color:var(--aae-ink);margin:4px 0 4px;line-height:1.05}
.aae-rev-sub{font-size:13px;color:var(--aae-muted);font-weight:600}
.aae-rev-icon{flex:0 0 auto;width:52px;height:52px;border-radius:16px;background:var(--aae-soft);display:flex;align-items:center;justify-content:center;color:var(--aae-purple)}
.aae-rev-icon svg{width:26px;height:26px}
.aae-btnrow2 .aae-btn{flex:1}
@media(max-width:820px){
  .aae-rev-amount{font-size:26px}
  .aae-rev-icon{width:46px;height:46px}
}

/* Announcement banner */
.aae-announce{display:flex;align-items:center;gap:11px;background:linear-gradient(135deg,#1e9dc0,#0b5e78);color:#fff;border-radius:16px;padding:13px 16px;margin-bottom:16px}
.aae-announce-icon{flex:0 0 auto;display:flex}
.aae-announce-icon svg{width:20px;height:20px}
.aae-announce-text{flex:1;font-weight:600;font-size:14px;line-height:1.4}
.aae-announce-x{flex:0 0 auto;background:rgba(255,255,255,.2);border:none;color:#fff;width:26px;height:26px;border-radius:50%;font-size:18px;line-height:1;cursor:pointer}
.aae-announce-x:hover{background:rgba(255,255,255,.32)}

/* Goal tracker */
.aae-goal-amounts{font-size:18px;margin-bottom:10px}
.aae-goal-amounts strong{color:var(--aae-ink);font-weight:800}
.aae-progress{height:12px;border-radius:999px;background:var(--aae-soft);overflow:hidden}
.aae-progress-fill{height:100%;background:linear-gradient(90deg,#1e9dc0,#0b5e78);border-radius:999px;transition:width .5s ease}
.aae-goal-msg{font-size:13px;color:var(--aae-muted);margin:10px 0 0;font-weight:600}
.aae-goal-msg--win{color:#0f7a4d}
.aae-trend{font-size:12px;font-weight:700;border-radius:999px;padding:3px 10px}
.aae-trend--up{background:#d8f5e6;color:#0f7a4d}
.aae-trend--down{background:#fde2e2;color:#b03030}

/* Achievement badges */
.aae-badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:10px}
.aae-badge{text-align:center;padding:12px 6px;border-radius:14px;background:var(--aae-soft);border:1px solid var(--aae-border);opacity:.45;filter:grayscale(1)}
.aae-badge.is-earned{opacity:1;filter:none;background:linear-gradient(160deg,#fff,#10202a);border-color:#1d3a47;box-shadow:0 6px 14px rgba(30,157,192,.14)}
.aae-badge-ico{font-size:26px;line-height:1}
.aae-badge-label{font-size:10px;font-weight:700;color:var(--aae-ink);margin-top:5px;line-height:1.2}

/* Leaderboard */
.aae-lb-me{background:var(--aae-soft)!important}
.aae-lb-me td{font-weight:700}
.aae-lb-yourow{margin-top:12px;background:linear-gradient(135deg,#1e9dc0,#0b5e78);color:#fff;border-radius:12px;padding:11px 14px;font-size:14px}
.aae-lb-yourow strong{font-weight:800}

/* Promo kit */
.aae-promo{border:1px solid var(--aae-border);border-radius:14px;padding:12px 14px;margin-bottom:10px;background:var(--aae-bg)}
.aae-promo-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.aae-promo-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;color:var(--aae-purple)}
.aae-promo-copy{padding:5px 14px;font-size:12px}
.aae-promo-text{margin:0;font-size:13px;color:var(--aae-ink);line-height:1.5}

/* Team code card */
.aae-teamcode{border:1.5px solid #1d3a47;background:linear-gradient(160deg,#fff,#10202a)}

/* Marketing assets grid */
.aae-assets-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.aae-asset{display:flex;flex-direction:column;border:1px solid var(--aae-border);border-radius:14px;overflow:hidden;background:#0e1217;text-decoration:none;transition:transform .12s ease,box-shadow .12s ease}
.aae-asset:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(14,18,23,.12)}
.aae-asset-thumb{aspect-ratio:1;background:var(--aae-soft) center/cover no-repeat}
.aae-asset-doc{background-color:#0e1217;background-size:contain;background-position:top center;border-bottom:1px solid var(--aae-border)}
.aae-asset-file{display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--aae-purple);font-size:22px}
.aae-asset-body{padding:10px 12px;display:flex;flex-direction:column;gap:3px}
.aae-asset-title{font-size:13px;font-weight:700;color:var(--aae-ink);line-height:1.3}
.aae-asset-dl{font-size:12px;font-weight:700;color:var(--aae-accent)}

/* ============================================================= */
/*  Leaderboard v2 — rankings only (no sales leaked)            */
/* ============================================================= */
.aae-lb2-banner{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#1e9dc0,#0b5e78);color:#fff;border-radius:16px;padding:15px 18px;margin:8px 0 20px}
.aae-lb2-bigrank{font-size:28px;font-weight:800;background:rgba(255,255,255,.18);border-radius:12px;padding:8px 14px;line-height:1;white-space:nowrap}
.aae-lb2-banner span{font-size:14px;line-height:1.35}
.aae-lb2-podium{display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:10px;margin-bottom:20px}
.aae-lb2-pod{display:flex;flex-direction:column;align-items:center;text-align:center}
.aae-lb2-ava{position:relative;width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;font-size:19px;background:linear-gradient(135deg,#1e9dc0,#0b5e78);box-shadow:0 6px 16px rgba(14,18,23,.22)}
.aae-lb2-medal{position:absolute;bottom:-7px;right:-7px;font-size:21px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.2))}
.aae-lb2-name{font-weight:700;color:var(--aae-ink);font-size:13px;margin-top:11px;line-height:1.2;word-break:break-word}
.aae-lb2-place{font-size:12px;font-weight:800;color:var(--aae-muted);margin-top:2px}
.aae-lb2-ped{width:100%;border-radius:12px 12px 0 0;margin-top:10px;border:1px solid var(--aae-border);border-bottom:none;background:var(--aae-soft)}
.aae-lb2-pod.is-1 .aae-lb2-ava{width:72px;height:72px;font-size:23px;background:linear-gradient(135deg,#ffd76b,#e0a106)}
.aae-lb2-pod.is-1 .aae-lb2-ped{height:66px;background:linear-gradient(180deg,#fff0c8,#ffe08a);border-color:#f0d27a}
.aae-lb2-pod.is-2 .aae-lb2-ava{background:linear-gradient(135deg,#dfe3ea,#9aa1b2)}
.aae-lb2-pod.is-2 .aae-lb2-ped{height:46px}
.aae-lb2-pod.is-3 .aae-lb2-ava{background:linear-gradient(135deg,#e6b486,#bd7c45)}
.aae-lb2-pod.is-3 .aae-lb2-ped{height:32px}
.aae-lb2-pod.is-me .aae-lb2-name{color:var(--aae-accent)}
.aae-lb2-pod.is-me .aae-lb2-ava{outline:3px solid var(--aae-accent);outline-offset:2px}
.aae-lb2-list{display:flex;flex-direction:column;gap:8px}
.aae-lb2-row{display:flex;align-items:center;gap:12px;background:var(--aae-bg);border:1px solid var(--aae-border);border-radius:12px;padding:9px 12px}
.aae-lb2-row.is-me{background:var(--aae-soft);border-color:var(--aae-accent);box-shadow:0 0 0 1px var(--aae-accent) inset}
.aae-lb2-rank{font-weight:800;color:var(--aae-muted);width:24px;text-align:center;flex:none}
.aae-lb2-rava{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#1e9dc0,#0b5e78);color:#fff;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;flex:none}
.aae-lb2-rname{font-weight:700;color:var(--aae-ink);font-size:14px}
.aae-lb2-yourow{margin-top:14px;background:var(--aae-soft);border:1px dashed var(--aae-strong);border-radius:12px;padding:12px 14px;font-size:14px;color:var(--aae-ink);text-align:center}

/* ============================================================= */
/*  AI Content Co-Pilot                                          */
/* ============================================================= */
.aae-cop-hero{background:linear-gradient(135deg,#1e9dc0,#0b5e78);color:#fff;border:none}
.aae-cop-hero h3{color:#fff;margin:14px 0 8px;font-size:20px;line-height:1.25}
.aae-cop-hero p{color:rgba(255,255,255,.92);margin:0;line-height:1.55;font-size:14px}
.aae-cop-hero strong{display:inline-block;color:#fff;background:rgba(255,255,255,.22);padding:0 7px;border-radius:6px;font-weight:800;white-space:nowrap;letter-spacing:.3px}
.aae-cop-badge{display:inline-block;background:rgba(255,255,255,.18);color:#fff;font-weight:800;font-size:12px;letter-spacing:.4px;padding:6px 12px;border-radius:999px}

.aae-cop-soon{text-align:center;padding:38px 24px}
.aae-cop-soon h3{margin:6px 0 8px;color:var(--aae-ink)}
.aae-cop-sparkbig{font-size:46px;line-height:1}

.aae-cop-gen{display:flex;flex-direction:column;gap:8px}
.aae-cop-lbl{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:var(--aae-muted);margin-top:10px}
.aae-cop-lbl:first-child{margin-top:0}
.aae-cop-sel{width:100%;padding:12px 14px;border:1.5px solid var(--aae-border);border-radius:12px;background:var(--aae-bg);color:var(--aae-text);font-size:15px;font-weight:600}
.aae-cop-sel:focus{outline:none;border-color:var(--aae-accent)}
.aae-cop-chips{display:flex;flex-wrap:wrap;gap:8px}
.aae-cop-chip{background:var(--aae-soft);border:1.5px solid var(--aae-border);color:var(--aae-purple);border-radius:999px;padding:9px 15px;font-weight:700;font-size:14px;cursor:pointer;transition:.12s}
.aae-cop-chip:hover{border-color:var(--aae-strong)}
.aae-cop-chip.on{background:linear-gradient(135deg,#1e9dc0,#0b5e78);border-color:transparent;color:#fff;box-shadow:0 4px 12px rgba(30,157,192,.3)}
.aae-cop-go{margin-top:18px;width:100%;background:linear-gradient(135deg,#1e9dc0,#0b5e78);color:#fff;border:none;border-radius:14px;padding:15px;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(11,94,120,.28);transition:.15s}
.aae-cop-go:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(11,94,120,.34)}
.aae-cop-go:active{transform:translateY(0)}

.aae-cop-out{margin-top:16px}
.aae-cop-loading{display:flex;align-items:center;justify-content:center;gap:12px;padding:34px;color:var(--aae-muted);font-weight:600}
.aae-cop-spin{width:22px;height:22px;border:3px solid var(--aae-border);border-top-color:var(--aae-accent);border-radius:50%;animation:aae-spin .8s linear infinite}
@keyframes aae-spin{to{transform:rotate(360deg)}}
.aae-cop-err{background:#fdecec;border:1px solid #f5c2c2;color:#a12d2d;border-radius:12px;padding:14px 16px;font-weight:600}

.aae-cop-pack{display:flex;flex-direction:column;gap:12px}
.aae-cop-res{background:#0e1217;border:1px solid var(--aae-border);border-radius:16px;padding:16px 18px;box-shadow:0 4px 14px rgba(14,18,23,.06)}
.aae-cop-reshead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.aae-cop-reslbl{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--aae-accent)}
.aae-cop-copy{background:var(--aae-soft);border:1px solid var(--aae-border);color:var(--aae-purple);border-radius:8px;padding:5px 12px;font-weight:700;font-size:12px;cursor:pointer;transition:.12s}
.aae-cop-copy:hover{background:var(--aae-border)}
.aae-cop-copy.is-done{background:#e6f7ec;border-color:#bfe8cd;color:#1f7a44}
.aae-cop-restext{color:var(--aae-text);font-size:15px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
.aae-cop-restext.is-hook{font-size:18px;font-weight:800;color:var(--aae-ink)}
.aae-cop-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}
.aae-cop-remix{background:var(--aae-soft);border:1.5px solid var(--aae-strong);color:var(--aae-purple);border-radius:12px;padding:11px 20px;font-weight:800;font-size:15px;cursor:pointer;transition:.12s}
.aae-cop-remix:hover{background:var(--aae-border)}
.aae-cop-quota{font-size:12px;color:var(--aae-muted);font-weight:700}

/* Co-Pilot admin setup state */
.aae-cop-setup{text-align:center;padding:30px 22px}
.aae-cop-setup h3{margin:8px 0 8px;color:var(--aae-ink)}
.aae-cop-setup p{max-width:460px;margin:0 auto 14px}
.aae-cop-steps{display:inline-block;text-align:left;margin:0 auto 18px;padding-left:20px;color:var(--aae-text);font-size:14px;line-height:1.7;max-width:440px}
.aae-cop-steps li{margin-bottom:4px}

/* Co-Pilot mobile polish (kept at end so it wins) */
@media (max-width:640px){
  .aae-cop-hero{padding:18px}
  .aae-cop-hero h3{font-size:18px;margin:12px 0 7px}
  .aae-cop-hero p{font-size:13.5px}
  .aae-cop-res{padding:14px 15px}
  .aae-cop-restext.is-hook{font-size:17px}
  .aae-cop-go{font-size:15px;padding:14px}
}

/* ---- Referral / network ---- */
.aae-refcard{border:1px solid var(--aae-border);background:linear-gradient(180deg,rgba(30,157,192,.06),transparent 60%)}
.aae-refnote{background:var(--aae-soft);border:1px solid var(--aae-border);color:var(--aae-purple);
  border-radius:12px;padding:10px 14px;margin:0 0 14px;font-size:14px}
.aae-refnote strong{color:var(--aae-ink)}

/* ============================================================= */
/*  v0.25 — shared bits                                          */
/* ============================================================= */
.aae-portal .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}
.aae-portal a:focus-visible,.aae-portal button:focus-visible,.aae-portal select:focus-visible,.aae-portal input:focus-visible{outline:3px solid var(--aae-accent);outline-offset:2px}
.aae-tag{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;border-radius:999px;padding:3px 10px;white-space:nowrap;line-height:1.3}
.aae-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.85}
.aae-tag--ok{background:#e3f6ec;color:#11724a}
.aae-tag--wait{background:#fff4d6;color:#7a5405}
.aae-tag--paid{background:#0f1c24;color:#6fd9f7}
.aae-tag--void{background:#fde8e8;color:#a52a2a}
.aae-btn.is-disabled{opacity:.4;pointer-events:none}
.aae-btn svg{width:17px;height:17px}

/* ============================================================= */
/*  Sales tab                                                    */
/* ============================================================= */
.aae-sales{--aae-money:#0f7a4d}
.aae-sales-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.aae-sales-title,.aae-lb3-title{font-size:30px;line-height:1.1;font-weight:800;color:var(--aae-ink);margin:0;letter-spacing:-.02em}
.aae-sales-sub,.aae-lb3-sub{margin:6px 0 0;color:var(--aae-muted);font-size:14.5px;line-height:1.5;max-width:58ch}
.aae-sales-csv{background:#0e1217}

.aae-sales-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.aae-chips{display:flex;gap:6px;flex-wrap:wrap}
.aae-chip{display:inline-flex;align-items:center;height:38px;padding:0 15px;border-radius:999px;border:1px solid var(--aae-border);background:#0e1217;color:var(--aae-purple);font-weight:700;font-size:13.5px;text-decoration:none;transition:background .15s,border-color .15s,color .15s}
.aae-chip:hover{border-color:var(--aae-strong);background:var(--aae-soft)}
.aae-chip.is-on{background:var(--aae-deep);border-color:var(--aae-ink);color:#fff}
.aae-chip--select{padding:0 4px 0 0;margin:0}
.aae-portal .aae-chip--select select{border:none;background:transparent;padding:0 10px 0 14px;height:36px;font-weight:700;font-size:13.5px;color:inherit;cursor:pointer;border-radius:999px}
.aae-portal .aae-chip--select.is-on select{color:#fff}
.aae-portal .aae-chip--select.is-on select option{color:var(--aae-text)}
.aae-sales-search{position:relative;flex:0 1 300px;margin:0}
.aae-sales-search svg{position:absolute;left:14px;top:50%;width:17px;height:17px;transform:translateY(-50%);color:var(--aae-muted);pointer-events:none}
.aae-portal .aae-sales-search input{width:100%;height:40px;padding:0 14px 0 40px;border-radius:999px;background:#0e1217}

.aae-sales-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:0 0 22px;background:#0e1217;border:1px solid var(--aae-border);border-radius:20px;overflow:hidden}
.aae-sstat{padding:16px 20px;border-left:1px solid var(--aae-border);min-width:0}
.aae-sstat:first-child{border-left:none}
.aae-sstat dt{font-size:13px;color:var(--aae-muted);font-weight:600}
.aae-sstat dd{margin:4px 0 0;font-size:24px;font-weight:800;color:var(--aae-ink);font-variant-numeric:tabular-nums;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aae-sstat.is-accent{background:linear-gradient(160deg,#f6f1ff,#efe6ff)}
.aae-sstat.is-accent dd{color:var(--aae-purple)}
.aae-sstat-foot{display:block;margin-top:3px;font-size:12px;font-weight:700;color:var(--aae-money)}

.aae-adjusts{background:#0e1217;border:1px dashed var(--aae-strong);border-radius:16px;padding:12px 16px;margin-bottom:22px}
.aae-adjusts-h{font-weight:800;color:var(--aae-ink);font-size:14px;margin-bottom:6px}
.aae-adjust{display:flex;align-items:center;gap:12px;padding:7px 0;border-top:1px solid var(--aae-border);font-size:14px}
.aae-adjust:first-of-type{border-top:none}
.aae-adjust-amt{font-weight:800;color:var(--aae-money);min-width:84px;font-variant-numeric:tabular-nums}
.aae-adjust-amt.is-neg{color:#a52a2a}
.aae-adjust-note{flex:1;color:var(--aae-text)}
.aae-adjust-date{color:var(--aae-muted);font-size:12.5px}

.aae-sales-found{margin:0 0 12px;color:var(--aae-muted);font-size:13.5px}
.aae-sales-found a{color:var(--aae-accent);font-weight:700}

.aae-salelist{display:flex;flex-direction:column;gap:12px}
.aae-saleday{display:flex;align-items:center;gap:12px;margin:14px 0 2px;font-size:13.5px;font-weight:800;color:var(--aae-purple)}
.aae-saleday:first-child{margin-top:0}
.aae-saleday::after{content:"";flex:1;height:1px;background:var(--aae-border)}

.aae-sale{background:#0e1217;border:1px solid var(--aae-border);border-radius:20px;overflow:hidden;box-shadow:0 1px 0 rgba(14,18,23,.04),0 10px 28px -18px rgba(14,18,23,.35)}
.aae-sale-top{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:16px 20px 12px}
.aae-sale-ava{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;color:var(--aae-purple);background:var(--aae-soft);border:1px solid var(--aae-border);flex:none}
.aae-sale-ava--sm{width:38px;height:38px;font-size:13.5px}
.aae-sale-name{margin:0;font-size:18px;line-height:1.2;font-weight:800;color:var(--aae-ink);overflow-wrap:anywhere}
.aae-sale-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:3px;font-size:13px;color:var(--aae-muted);font-weight:600}
.aae-sale-repeat{color:var(--aae-accent)}
.aae-sale-earn{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.aae-sale-amt{font-size:20px;font-weight:800;color:var(--aae-money);font-variant-numeric:tabular-nums;line-height:1}
.aae-sale-amt .woocommerce-Price-amount{color:inherit}

.aae-sale-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;padding:4px 20px 16px}
.aae-sale-lbl{font-size:12.5px;font-weight:700;color:var(--aae-muted);margin-bottom:8px}
.aae-sale-items ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.aae-sale-items li{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;margin:0}
.aae-sale-thumb{width:40px;height:40px;border-radius:11px;object-fit:cover;background:var(--aae-soft);border:1px solid var(--aae-border);display:block}
.aae-sale-thumb--txt{display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--aae-purple)}
.aae-sale-iname{font-size:14.5px;font-weight:600;color:var(--aae-text);line-height:1.35;overflow-wrap:anywhere}
.aae-sale-iqty{font-size:13.5px;font-weight:800;color:var(--aae-purple);background:var(--aae-soft);border-radius:8px;padding:3px 8px;font-variant-numeric:tabular-nums}
.aae-sale-ship address{font-style:normal;font-size:14.5px;line-height:1.55;color:var(--aae-text);padding-left:12px;border-left:3px solid var(--aae-strong)}

.aae-sale-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 20px;background:var(--aae-bg);border-top:1px solid var(--aae-border);font-size:13px}
.aae-credit{font-weight:700;border-radius:8px;padding:4px 10px;background:#0e1217;border:1px solid var(--aae-border);color:var(--aae-purple)}
.aae-credit--manual{border-style:dashed;color:#6a4ec9}
.aae-sale-total{color:var(--aae-muted);font-weight:600}
.aae-sale-total strong{color:var(--aae-ink);font-weight:800;margin-left:4px}

.aae-sale.is-void{opacity:.62}
.aae-sale.is-void .aae-sale-amt{color:var(--aae-muted);text-decoration:line-through}

.aae-sales-empty{text-align:center;background:#0e1217;border:1px dashed var(--aae-strong);border-radius:20px;padding:40px 24px}
.aae-sales-empty h3{margin:0 0 6px;color:var(--aae-ink);font-size:19px}
.aae-sales-empty p{margin:0 auto 16px;color:var(--aae-muted);max-width:46ch;line-height:1.55}

.aae-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:20px}
.aae-pager-n{font-weight:700;color:var(--aae-muted);font-size:13.5px}

/* Dashboard: recent sales */
.aae-recent{list-style:none;margin:0;padding:0}
.aae-recent-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid var(--aae-border);margin:0}
.aae-recent-row:first-child{border-top:none;padding-top:2px}
.aae-recent-main{min-width:0;display:flex;flex-direction:column}
.aae-recent-main strong{color:var(--aae-ink);font-size:15px}
.aae-recent-main span{color:var(--aae-muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aae-recent-end{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.aae-recent-end strong{color:#0f7a4d;font-variant-numeric:tabular-nums}
.aae-recent-row.is-void{opacity:.6}

/* ============================================================= */
/*  Leaderboard v3 — periods + month timeline                    */
/* ============================================================= */
.aae-lb3-head{margin-bottom:18px}
.aae-lb3-seg{display:flex;gap:4px;padding:4px;background:var(--aae-soft);border:1px solid var(--aae-border);border-radius:16px;margin-bottom:10px;overflow-x:auto;scrollbar-width:none}
.aae-lb3-seg::-webkit-scrollbar{display:none}
.aae-lb3-segbtn{flex:1 0 auto;text-align:center;padding:10px 14px;border-radius:12px;font-weight:700;font-size:14px;color:var(--aae-purple);text-decoration:none;white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s}
.aae-lb3-segbtn:hover{color:var(--aae-ink)}
.aae-lb3-segbtn.is-on{background:#0e1217;color:var(--aae-ink);box-shadow:0 1px 2px rgba(7,9,11,.08),0 6px 16px -8px rgba(7,9,11,.35)}

.aae-lb3-months{overflow-x:auto;scrollbar-width:thin;margin:0 0 18px;padding:2px 0 8px;-webkit-overflow-scrolling:touch}
.aae-lb3-mtrack{display:flex;align-items:center;gap:6px;width:max-content}
.aae-lb3-year{font-size:12px;font-weight:800;color:var(--aae-muted);padding:0 4px 0 10px}
.aae-lb3-year:first-child{padding-left:0}
.aae-lb3-month{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:58px;height:40px;padding:0 14px;border-radius:12px;border:1px solid var(--aae-border);background:#0e1217;color:var(--aae-purple);font-weight:700;font-size:14px;text-decoration:none;transition:background .15s,border-color .15s}
.aae-lb3-month:hover{border-color:var(--aae-strong);background:var(--aae-soft)}
.aae-lb3-month.is-on{background:linear-gradient(135deg,#1e9dc0,#0b5e78);border-color:transparent;color:#fff;box-shadow:0 8px 18px -8px rgba(11,94,120,.7)}
.aae-lb3-livedot{width:7px;height:7px;border-radius:50%;background:#18a864;box-shadow:0 0 0 0 rgba(24,168,100,.55);animation:aae-live 1.8s ease-out infinite}
.aae-lb3-month.is-on .aae-lb3-livedot{background:#9ff5c9}
@keyframes aae-live{0%{box-shadow:0 0 0 0 rgba(24,168,100,.5)}80%,100%{box-shadow:0 0 0 7px rgba(24,168,100,0)}}

.aae-lb3-board{background:#0e1217;border:1px solid var(--aae-border);border-radius:24px;padding:22px 22px 20px;box-shadow:0 18px 44px -30px rgba(7,9,11,.45)}
.aae-lb3-board[hidden]{display:none}
.aae-lb3-standing{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:26px}
.aae-lb3-cap{display:flex;flex-direction:column}
.aae-lb3-capname{font-size:20px;font-weight:800;color:var(--aae-ink);letter-spacing:-.01em}
.aae-lb3-capcount{font-size:13px;color:var(--aae-muted);font-weight:600;margin-top:2px}
.aae-lb3-you{display:flex;align-items:center;gap:12px;background:var(--aae-deep);color:#fff;border-radius:16px;padding:8px 16px 8px 8px}
.aae-lb3-younum{min-width:52px;height:44px;padding:0 10px;border-radius:12px;background:linear-gradient(135deg,#1e9dc0,#0b5e78);display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:800;font-variant-numeric:tabular-nums}
.aae-lb3-youtxt{display:flex;flex-direction:column;font-size:13px;color:#d9ccff;line-height:1.35}
.aae-lb3-youtxt strong{color:#fff;font-size:14px}
.aae-lb3-you.is-off{background:var(--aae-soft);color:var(--aae-ink)}
.aae-lb3-you.is-off .aae-lb3-younum{background:#0e1217;color:var(--aae-muted);border:1px solid var(--aae-border)}
.aae-lb3-you.is-off .aae-lb3-youtxt{color:var(--aae-muted)}
.aae-lb3-you.is-off .aae-lb3-youtxt strong{color:var(--aae-ink)}

.aae-lb3-podium{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:10px}
.aae-lb3-pod{display:flex;flex-direction:column;align-items:center;text-align:center;margin:0;min-width:0}
.aae-lb3-crown{font-size:24px;line-height:1;margin-bottom:4px}
.aae-lb3-ava{width:62px;height:62px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;color:#fff;background:linear-gradient(135deg,#b9a5e6,#7b64b5);border:3px solid #fff;box-shadow:0 8px 20px -8px rgba(7,9,11,.55)}
.aae-lb3-pod.is-1 .aae-lb3-ava{width:78px;height:78px;font-size:25px;background:linear-gradient(135deg,#ffd978,#d99a06)}
.aae-lb3-pod.is-2 .aae-lb3-ava{background:linear-gradient(135deg,#e7eaf0,#98a0b3)}
.aae-lb3-pod.is-3 .aae-lb3-ava{background:linear-gradient(135deg,#efc29a,#b8743e)}
.aae-lb3-podname{margin-top:10px;font-weight:800;font-size:14.5px;color:var(--aae-ink);line-height:1.25;max-width:100%;overflow-wrap:anywhere}
.aae-lb3-podname em,.aae-lb3-rname em{font-style:normal;font-size:11px;font-weight:800;color:#fff;background:var(--aae-accent);border-radius:6px;padding:1px 6px;margin-left:4px;vertical-align:2px}
.aae-lb3-podfig{font-size:12.5px;font-weight:700;color:var(--aae-muted);margin-top:2px}
.aae-lb3-step{width:100%;margin-top:12px;border-radius:14px 14px 4px 4px;display:flex;align-items:flex-start;justify-content:center;padding-top:10px;background:linear-gradient(180deg,#efe8ff,#f8f5ff);border:1px solid var(--aae-border)}
.aae-lb3-stepnum{font-size:26px;font-weight:800;color:var(--aae-strong);line-height:1}
.aae-lb3-pod.is-1 .aae-lb3-step{height:118px;background:linear-gradient(180deg,#fff0c4,#fff9e8);border-color:#f3dc92}
.aae-lb3-pod.is-1 .aae-lb3-stepnum{color:#d9a41c;font-size:34px}
.aae-lb3-pod.is-2 .aae-lb3-step{height:86px}
.aae-lb3-pod.is-3 .aae-lb3-step{height:62px}
.aae-lb3-pod.is-me .aae-lb3-ava{box-shadow:0 0 0 3px var(--aae-accent),0 8px 20px -8px rgba(7,9,11,.55)}

.aae-lb3-list,.aae-lb3-list li,.aae-lb3-podium li{font-size:14px}
.aae-lb3-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.aae-lb3-row{display:grid;grid-template-columns:30px 38px 1fr auto;gap:12px;align-items:center;padding:9px 14px 9px 10px;border-radius:14px;background:var(--aae-bg);border:1px solid transparent;margin:0}
.aae-lb3-row.is-me{background:#f1eaff;border-color:#cdb9ff}
.aae-lb3-rank{font-size:15px;text-align:center;font-weight:800;color:var(--aae-muted);font-variant-numeric:tabular-nums}
.aae-lb3-rava{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;color:var(--aae-purple);background:#0e1217;border:1px solid var(--aae-border)}
.aae-lb3-rname{font-size:14.5px;line-height:1.3;font-weight:700;color:var(--aae-ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aae-lb3-rfig{font-size:13px;font-weight:700;color:var(--aae-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.aae-lb3-chase{margin-top:14px;text-align:center;font-size:14px;color:var(--aae-ink);background:var(--aae-soft);border-radius:12px;padding:11px 14px}
.aae-lb3-empty{text-align:center;padding:26px 10px 10px}
.aae-lb3-emptyico{font-size:34px;line-height:1}
.aae-lb3-empty p{color:var(--aae-muted);margin:8px 0 0}

@media (prefers-reduced-motion: reduce){
  .aae-lb3-livedot{animation:none}
  .aae-chip,.aae-lb3-segbtn,.aae-lb3-month{transition:none}
}

/* v0.25 mobile (stays last) */
@media (max-width:820px){
  .aae-sales-title,.aae-lb3-title{font-size:25px}
  .aae-sales-bar{flex-direction:column;align-items:stretch}
  .aae-sales-bar > *{min-width:0;max-width:100%}
  .aae-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -2px;padding:0 2px 2px}
  .aae-sales-search{flex:none;width:100%}
  .aae-lb3-seg{display:grid;grid-template-columns:repeat(5,auto);overflow:visible}
  .aae-lb3-segbtn{padding:9px 4px;font-size:12.5px}
  .aae-chips::-webkit-scrollbar{display:none}
  .aae-chip{flex:none}
  .aae-sales-search{flex:1 1 auto}
  .aae-sales-stats{grid-template-columns:1fr 1fr}
  .aae-sstat:nth-child(3){border-left:none}
  .aae-sstat:nth-child(n+3){border-top:1px solid var(--aae-border)}
  .aae-sstat dd{font-size:21px}
  .aae-sale-top{grid-template-columns:auto 1fr;padding:14px 16px 10px}
  .aae-sale-earn{grid-column:1 / -1;flex-direction:row;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px dashed var(--aae-border)}
  .aae-sale-body{grid-template-columns:1fr;gap:14px;padding:4px 16px 14px}
  .aae-sale-foot{padding:10px 16px}
  .aae-lb3-board{padding:18px 14px;border-radius:20px}
  .aae-lb3-standing{flex-direction:column;align-items:stretch}
  .aae-lb3-you{justify-content:flex-start}
  .aae-lb3-ava{width:52px;height:52px;font-size:17px}
  .aae-lb3-pod.is-1 .aae-lb3-ava{width:64px;height:64px;font-size:21px}
  .aae-lb3-pod.is-1 .aae-lb3-step{height:96px}
  .aae-lb3-pod.is-2 .aae-lb3-step{height:70px}
  .aae-lb3-pod.is-3 .aae-lb3-step{height:50px}
  .aae-lb3-podname{font-size:13px}
  .aae-lb3-row{grid-template-columns:24px 34px 1fr;row-gap:2px}
  .aae-lb3-rava{width:34px;height:34px}
  .aae-lb3-rfig{grid-column:3;font-size:12px}
}

/* ============================================================= */
/*  v0.26 — replacement requests                                 */
/* ============================================================= */
.aae-reship{border-top:1px solid var(--aae-border);background:var(--aae-bg)}
.aae-reship-open{display:flex;align-items:center;gap:8px;padding:11px 20px;cursor:pointer;list-style:none;font-size:13.5px;font-weight:700;color:var(--aae-purple);user-select:none}
.aae-reship-open::-webkit-details-marker{display:none}
.aae-reship-open:hover{background:var(--aae-soft)}
.aae-reship-open svg{width:16px;height:16px;flex:none;color:#b8862a}
.aae-reship-open span::after{content:" ›";opacity:.5}
.aae-reship[open] .aae-reship-open{background:var(--aae-soft);border-bottom:1px solid var(--aae-border)}
.aae-reship[open] .aae-reship-open span::after{content:" ⌄"}
.aae-reship-form{padding:16px 20px 18px;display:flex;flex-direction:column;gap:14px}
.aae-reship-intro{margin:0;font-size:13.5px;color:var(--aae-text);line-height:1.5}
.aae-reship-form fieldset{border:none;margin:0;padding:0}
.aae-reship-form legend{font-size:12.5px;font-weight:700;color:var(--aae-muted);padding:0;margin-bottom:8px}
.aae-reship-all{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px;background:#0e1217;border:1px solid var(--aae-border);border-radius:12px;padding:11px 13px;margin-bottom:8px;cursor:pointer;font-weight:600}
.aae-reship-all input{width:auto;margin-top:2px;flex:none}
.aae-reship-all span{display:flex;flex-direction:column;gap:2px}
.aae-reship-all small{font-weight:500;color:var(--aae-muted);font-size:12.5px}
.aae-reship-all:has(input:checked){border-color:var(--aae-accent);box-shadow:0 0 0 3px rgba(30,157,192,.14)}
.aae-reship-all input:checked ~ span{color:var(--aae-ink)}
.aae-reship-items{display:none;flex-direction:column;gap:6px;margin:4px 0 0;padding-left:4px}
.aae-reship-what:has(input[value="items"]:checked) .aae-reship-items,
.aae-reship-what.pick-items .aae-reship-items{display:flex}
.aae-reship-item{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;background:#0e1217;border:1px solid var(--aae-border);border-radius:10px;padding:9px 12px;font-weight:600;cursor:pointer}
.aae-reship-item input[type=checkbox]{width:auto;flex:none;margin:0}
.aae-reship-iname{flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere}
.aae-reship-qty{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--aae-muted);font-weight:700}
.aae-portal .aae-reship-qty input{width:62px;padding:6px 8px;font-size:14px;text-align:center}
.aae-reship-reason select,.aae-portal .aae-reship-details textarea{width:100%}
.aae-portal .aae-reship-details textarea{border:1px solid var(--aae-border);border-radius:12px;padding:11px 14px;font:inherit;font-size:15px;background:var(--aae-bg);color:var(--aae-text);resize:vertical}
.aae-portal .aae-reship-details textarea:focus{outline:none;border-color:var(--aae-accent);box-shadow:0 0 0 4px rgba(30,157,192,.15)}
.aae-reship-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.aae-reship-note{font-size:12.5px;color:var(--aae-muted)}
.aae-reship-closed{margin:0;padding:11px 20px;border-top:1px solid var(--aae-border);font-size:12.5px;color:var(--aae-muted);background:var(--aae-bg)}

.aae-reship-state{display:flex;align-items:flex-start;gap:11px;padding:13px 20px;border-top:1px solid var(--aae-border);font-size:13.5px;line-height:1.5}
.aae-reship-state svg{width:19px;height:19px;flex:none;margin-top:1px}
.aae-reship-state strong{display:block;font-size:14px}
.aae-reship-state span{color:inherit;opacity:.85}
.aae-reship-state form{margin:0 0 0 auto}
.aae-reship-state.is-pending{background:#fff8e6;color:#7a5405}
.aae-reship-state.is-approved{background:#e9f8f0;color:#11724a}
.aae-reship-state.is-denied,.aae-reship-state.is-cancelled{background:var(--aae-soft);color:var(--aae-ink)}
.aae-reship-withdraw{background:none;border:1px solid currentColor;color:inherit;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;opacity:.75}
.aae-reship-withdraw:hover{opacity:1}

/* ============================================================= */
/*  v0.26 — follow-ups                                           */
/* ============================================================= */
.aae-fu-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.aae-fu-sort{margin:0}
.aae-portal .aae-fu-sort select{height:40px;border-radius:999px;background:#0e1217;font-weight:700;font-size:13.5px;color:var(--aae-purple);padding:0 14px}
.aae-fu-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:14px}
.aae-fu-card{background:#0e1217;border:1px solid var(--aae-border);border-radius:20px;padding:16px 18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 1px 0 rgba(14,18,23,.04),0 10px 28px -20px rgba(14,18,23,.4);border-left:4px solid var(--aae-strong)}
.aae-fu-card.is-fresh{border-left-color:#3fb98a}
.aae-fu-card.is-warm{border-left-color:#e0a73c}
.aae-fu-card.is-cold{border-left-color:#d9705a}
.aae-fu-top{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}
.aae-fu-who{min-width:0}
.aae-fu-who h4{margin:0;font-size:16.5px;font-weight:800;color:var(--aae-ink);line-height:1.2;overflow-wrap:anywhere}
.aae-fu-meta{display:flex;flex-direction:column;gap:1px;margin-top:3px;font-size:12.5px;color:var(--aae-muted)}
.aae-fu-days{font-weight:800;color:var(--aae-purple)}
.aae-fu-card.is-cold .aae-fu-days{color:#b4452c}
.aae-fu-value{text-align:right;display:flex;flex-direction:column;gap:1px}
.aae-fu-value strong{font-size:16px;font-weight:800;color:var(--aae-ink);font-variant-numeric:tabular-nums}
.aae-fu-value span{font-size:12px;color:var(--aae-muted);font-weight:600}
.aae-fu-last{border-top:1px solid var(--aae-border);padding-top:10px}
.aae-fu-last p{margin:0;font-size:13.5px;color:var(--aae-text);line-height:1.45}
.aae-fu-actions{display:flex;gap:8px;flex-wrap:wrap}
.aae-fu-actions .aae-btn{flex:1 1 auto;justify-content:center;font-size:13.5px;padding:10px 14px}
.aae-fu-contact{display:flex;flex-wrap:wrap;gap:6px}
.aae-fu-chip{display:inline-flex;align-items:center;gap:6px;background:var(--aae-bg);border:1px solid var(--aae-border);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:600;color:var(--aae-muted);cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aae-fu-chip:hover{border-color:var(--aae-strong);color:var(--aae-purple)}
.aae-fu-chip svg{width:14px;height:14px;flex:none}

@media (max-width:820px){
  .aae-fu-list{grid-template-columns:1fr}
  .aae-fu-head{flex-direction:column;align-items:stretch}
  .aae-fu-sort,.aae-portal .aae-fu-sort select{width:100%}
  .aae-reship-form,.aae-reship-open,.aae-reship-state,.aae-reship-closed{padding-left:16px;padding-right:16px}
  .aae-reship-state{flex-wrap:wrap}
  .aae-reship-state form{margin-left:0;width:100%}
  .aae-reship-withdraw{width:100%}
}


/* ── Atlas Labs: a dark portal that sits naturally inside the Atlas theme ── */
.aae-portal{--aae-purple:#f4f1e8;--aae-deep:#07090b;--aae-accent:#6fd9f7;--aae-bg:#0a0d10;--aae-soft:#121820;
  --aae-border:#232e38;--aae-strong:#2e3b47;--aae-text:#e4eaef;--aae-muted:#8c9aa6;--aae-ink:#f4f1e8;color:var(--aae-text)}
/* the theme underlines links in page content; the portal's nav, buttons and tiles are not text links */
html body .aae-portal a{text-decoration:none}
html body .aae-portal p a,html body .aae-portal .aae-muted a{text-decoration:underline;text-underline-offset:3px}
.aae-portal .aae-card,.aae-portal .aae-stat{box-shadow:0 18px 40px -28px rgba(0,0,0,.8)}
.aae-portal .aae-btn--primary{background:#6fd9f7;color:#04161e;border:none}
.aae-portal .aae-btn--primary:hover{background:#9ae6fb;filter:none}
.aae-portal .aae-btn{color:var(--aae-text)}
.aae-portal .aae-link{color:#6fd9f7}
.aae-portal input,.aae-portal select,.aae-portal textarea{background:var(--aae-bg);color:var(--aae-text);border-color:var(--aae-border)}
.aae-portal input::placeholder,.aae-portal textarea::placeholder{color:#5e6e7a}
.aae-portal input:focus,.aae-portal select:focus,.aae-portal textarea:focus{border-color:#6fd9f7;box-shadow:0 0 0 4px rgba(111,217,247,.14)}
.aae-portal .aae-flash--success{background:rgba(79,203,146,.12);color:#7fe0b2;border:1px solid rgba(79,203,146,.3)}
.aae-portal .aae-flash--error{background:rgba(255,107,107,.1);color:#ff9a9a;border:1px solid rgba(255,107,107,.3)}
.aae-portal .aae-code-status.ok{color:#7fe0b2}.aae-portal .aae-code-status.no{color:#ff9a9a}
html body .aae-portal .aae-btn--primary,html body .aae-portal button.aae-btn--primary,html body .aae-portal a.aae-btn--primary{background:#6fd9f7;color:#04161e;border:none}
html body .aae-portal .aae-btn--primary:hover{background:#9ae6fb;color:#04161e}
/* the theme narrows page text to a reading width; the portal is an app, give it the full width */
.atlas-content:has(.aae-portal){max-width:1200px!important}
