/* App-style member area (Ryan 11/19). Loaded after site.css; everything is scoped to html.aui. */
html.aui{
  --a-bg:#06080c; --a-card:#0e131b; --a-chip:#141b26; --a-line:#1f2a38; --a-ink:#f4f7fa; --a-sub:#9aa7b6;
  --a-acc:var(--amber); --a-acc-ink:#06080c; --a-sel:#1d2633; --a-div:#0b0f15; --a-field:#121925;
}
html.aui[data-theme="light"]{
  --a-bg:#f5f6fa; --a-card:#fff; --a-chip:#fff; --a-line:#dfe3ea; --a-ink:#111827; --a-sub:#6b7280;
  --a-acc:#43760c; --a-acc-ink:#fff; --a-sel:#eceef2; --a-div:#eceef2; --a-field:#eef0f3;
}
html.aui.aui-in body{background:var(--a-bg)}
html.aui .aui-ic svg,html.aui .aui-sp svg{display:block;width:100%;height:100%}

/* Tool row: icons with labels, swipe sideways, no wrapping. */
html.aui #mtabs{display:flex;flex-wrap:nowrap;gap:4px;max-width:none;margin:0 -4px 6px;padding:4px 4px 10px;overflow-x:auto;
  scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
html.aui #mtabs::-webkit-scrollbar{display:none}
html.aui #mtabs button{flex:0 0 auto;min-width:76px;min-height:0;display:flex;flex-direction:column;align-items:center;gap:7px;padding:8px 6px 6px;
  background:none;border:0;border-radius:12px;color:var(--a-ink);font:500 .82rem/1.1 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none;
  box-shadow:none;scroll-snap-align:start;position:relative}
html.aui #mtabs .aui-ic{width:30px;height:30px;color:var(--a-ink)}
html.aui #mtabs .aui-lb{white-space:nowrap}
html.aui #mtabs button[aria-pressed="true"]{color:var(--a-ink);background:none;border:0;box-shadow:none;font-weight:700}
html.aui #mtabs button[aria-pressed="true"] .aui-ic{color:var(--a-acc)}
html.aui #mtabs button[aria-pressed="true"]::after{content:"";position:absolute;left:30%;right:30%;bottom:-2px;height:3px;border-radius:3px;background:var(--a-acc)}
html.aui #mtabs button:hover{background:var(--a-sel)}

/* Thick divider between the top area and the screen, like a native app. */
html.aui #mtabs + *{margin-top:0}
html.aui .mtab{border-top:8px solid var(--a-div);margin:0 -20px;padding:14px 20px 0}

/* Screen title row. */
html.aui .aui-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 12px}
html.aui .aui-title h2{font:800 1.45rem/1.15 Inter,system-ui,sans-serif;text-transform:none;letter-spacing:-.01em;color:var(--a-ink)}
html.aui .aui-info{width:34px;height:34px;padding:4px;border:0;background:none;color:var(--a-ink);cursor:pointer;border-radius:50%}
html.aui .aui-info[aria-expanded="true"]{color:var(--a-acc)}
html.aui .aui-help{display:none}
html.aui .aui-help.show{display:block;background:var(--a-card);border:1px solid var(--a-line);border-radius:14px;padding:12px 14px;box-shadow:0 2px 8px rgba(0,0,0,.08)}

/* Date stepper + search. */
html.aui .aui-filters{display:flex;gap:10px;align-items:center;margin:0 0 12px;flex-wrap:wrap}
html.aui .aui-hide{display:none!important}
html.aui .aui-date{display:flex;align-items:center;border:1px solid var(--a-line);background:var(--a-chip);border-radius:12px;height:42px;flex:0 0 auto}
html.aui .aui-date button{background:none;border:0;color:var(--a-ink);cursor:pointer;height:100%;display:flex;align-items:center;gap:8px;font:600 .92rem/1 Inter,system-ui,sans-serif}
html.aui .aui-step{width:38px;justify-content:center;padding:0}
html.aui .aui-step svg{width:18px;height:18px}
html.aui .aui-step:disabled{opacity:.3;cursor:default}
html.aui .aui-dlab{padding:0 6px}
html.aui .aui-dlab svg{width:18px;height:18px}
html.aui .aui-search{flex:1 1 200px;display:flex;align-items:center;gap:8px;height:42px;padding:0 14px;border-radius:21px;background:var(--a-field);color:var(--a-sub)}
html.aui .aui-search svg{width:18px;height:18px;flex:none}
html.aui .aui-search input{flex:1;min-width:0;border:0;background:none;color:var(--a-ink);font:500 .95rem Inter,system-ui,sans-serif;outline:none;padding:0}
html.aui .aui-search input::placeholder{color:var(--a-sub)}

/* Sport pills: one row that swipes sideways and stays at the top while the list scrolls. */
html.aui .aui-pills{flex-wrap:nowrap!important;overflow-x:auto;gap:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  position:sticky;top:var(--aui-top,0px);z-index:12;background:var(--a-bg);margin:0 -20px 12px;padding:10px 20px;border-bottom:1px solid var(--a-line)}
html.aui #pr_stat.aui-pills{position:static;border-bottom:0;padding-top:0}
html.aui .aui-pills::-webkit-scrollbar{display:none}
html.aui .aui-pills button{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 15px;border-radius:19px;
  border:1px solid var(--a-line);background:var(--a-chip);color:var(--a-ink);font:700 .86rem/1 Inter,system-ui,sans-serif;letter-spacing:.01em;white-space:nowrap}
html.aui .aui-pills button span{font-weight:500;opacity:.55;font-size:.78rem}
html.aui .aui-pills button[aria-pressed="true"]{background:var(--a-sel);border:2px solid var(--a-ink);color:var(--a-ink);padding:0 14px}
html.aui .aui-sp{width:17px;height:17px;display:inline-block}

/* Sharp Money table: flat rows on the page with thin dividers, like the app. */
html.aui .sm-mtabs{border-bottom:1px solid var(--a-line);gap:24px}
html.aui .sm-mtabs button{font:600 .98rem/1 Inter,system-ui,sans-serif;text-transform:none;letter-spacing:0;color:var(--a-sub);border-bottom:0;position:relative;padding:8px 0 12px}
html.aui .sm-mtabs button[aria-pressed="true"]{color:var(--a-ink)}
html.aui .sm-mtabs button[aria-pressed="true"]::after{content:"";position:absolute;left:0;width:22px;bottom:-1px;height:4px;border-radius:4px;background:var(--a-acc)}
html.aui .sm-list{gap:0;max-width:820px}
html.aui .sm-head{font:500 .74rem/1 Inter,system-ui,sans-serif;text-transform:none;letter-spacing:0;color:var(--a-sub);padding:6px 0 10px}
html.aui .sm-game{background:none!important;border:0!important;box-shadow:none!important;border-radius:0;border-bottom:1px solid var(--a-line)!important;padding:12px 0}
html.aui .sm-team b{font:700 .98rem Inter,system-ui,sans-serif;color:var(--a-ink)}
html.aui .sm-bar{height:7px;background:var(--a-sel)}
html.aui .sm-odds{background:var(--a-field)!important;border:0!important;border-radius:10px}
html.aui .sm-foot{border-top:0;padding-top:2px}

/* Game cards and props as clean cards. */
html.aui .gm-grid > *,html.aui .pr-list > *:not(p){border-radius:14px}

/* Bottom bar and add button on phones. */
html.aui .aui-bot,html.aui .aui-fab{display:none}
@media (max-width:760px){
  html.aui.aui-in .aui-bot{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--a-card);border-top:1px solid var(--a-line);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px))}
  html.aui .aui-bot button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:0;color:var(--a-sub);
    font:500 .7rem/1 Inter,system-ui,sans-serif;padding:4px 0;cursor:pointer}
  html.aui .aui-bot .aui-ic{width:25px;height:25px}
  html.aui .aui-bot button[aria-current="page"]{color:var(--a-acc);font-weight:700}
  html.aui .aui-bot button[aria-current="page"] svg{fill:currentColor;fill-opacity:.18}
  html.aui.aui-in .aui-fab{display:flex;position:fixed;right:18px;bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:41;width:58px;height:58px;
    border-radius:50%;border:0;background:var(--a-acc);color:var(--a-acc-ink);align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.3);cursor:pointer}
  html.aui .aui-fab svg{width:28px;height:28px}
  html.aui.aui-in body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  html.aui.aui-in footer{padding-bottom:90px}
  html.aui .mtab{margin:0 -16px;padding:14px 16px 0}
  html.aui .aui-pills{margin:0 -16px 12px;padding:10px 16px}
  html.aui .aui-filters{flex-wrap:nowrap}
  html.aui .aui-search{flex:1 1 auto}
  html.aui .aui-dlab span{font-size:.86rem}
}

/* Calendar sheet that slides up. */
.aui-sheet{position:fixed;inset:0;z-index:60}
.aui-scrim{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.aui-pane{position:absolute;left:0;right:0;bottom:0;max-width:560px;margin:0 auto;background:var(--a-card);color:var(--a-ink);border-radius:22px 22px 0 0;
  padding:10px 20px calc(24px + env(safe-area-inset-bottom,0px));animation:auiUp .22s ease-out}
@keyframes auiUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.aui-grab{display:block;width:44px;height:5px;border-radius:3px;background:var(--a-line);margin:0 auto 12px}
.aui-sh-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.aui-sh-top b{font:800 1.2rem Inter,system-ui,sans-serif}
.aui-x{width:34px;height:34px;border-radius:50%;border:0;background:var(--a-field);color:var(--a-ink);padding:8px;cursor:pointer}
.aui-x svg,.aui-pane svg{display:block;width:100%;height:100%}
.aui-wk,.aui-days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.aui-wk span{font:500 .78rem Inter,system-ui,sans-serif;color:var(--a-sub);padding:6px 0}
.aui-mo{text-align:center;font:700 1rem Inter,system-ui,sans-serif;margin:10px 0 6px}
.aui-days span,.aui-days button{height:42px;display:flex;align-items:center;justify-content:center;font:600 .95rem Inter,system-ui,sans-serif}
.aui-days span.off{color:var(--a-sub);opacity:.45}
.aui-days button{border:0;background:none;color:var(--a-ink);cursor:pointer;width:40px;margin:0 auto;border-radius:50%}
.aui-days button[aria-current="date"]{background:var(--a-acc);color:var(--a-acc-ink)}
.aui-cal-note{margin:10px 0 0;text-align:center;font-size:.8rem;color:var(--a-sub)}

/* Compact top: greeting and profile in one slim row, then the tools (round 2). */
html.aui.aui-in body,html.aui.aui-in main,html.aui.aui-in .section{background-image:none}
html.aui .jr-top{margin:0 0 6px}
html.aui .jr-top .eyebrow{display:none}
html.aui #hello{font:800 1.5rem/1.15 Inter,system-ui,sans-serif;text-transform:none;letter-spacing:-.01em;color:var(--a-ink)}
html.aui .pcard{padding:10px 12px;gap:12px;margin:0 0 12px;border-radius:16px;flex-wrap:nowrap!important;background:var(--a-card);border:1px solid var(--a-line);box-shadow:none}
html.aui .pc-av{width:44px;height:44px;font-size:1.1rem;border-width:2px}
html.aui .pc-name{font:700 1rem Inter,system-ui,sans-serif;letter-spacing:0}
html.aui .pc-bio{display:none}
html.aui .pc-edit{min-height:34px;padding:4px 14px;font-size:.95rem;width:auto!important;flex:none}
html.aui .pc-body:empty + .pc-edit,html.aui .pc-body{flex:1}
html.aui .aui-pills button[aria-pressed="true"]{background:var(--a-sel)!important;border:2px solid var(--a-ink)!important;color:var(--a-ink)!important;box-shadow:none!important}
html.aui #dpromo{margin-top:24px}
/* round 3: flat page background in both themes, tighter top, readable pill count, full search hint */
html.aui.aui-in body{background:var(--a-bg)!important;background-image:none!important}
html.aui.aui-in main.page{padding-top:14px!important}
html.aui .aui-pills button[aria-pressed="true"] span{color:var(--a-ink)!important;opacity:.7}
html.aui .aui-filters{display:flex;gap:10px}
html.aui .aui-date{flex:none}
html.aui .aui-search{flex:1;min-width:0}

/* iPad fix 11/25: own layer so the fixed bar stays pinned to the bottom edge */
html.aui .aui-bot,html.aui .aui-fab{transform:translateZ(0);-webkit-transform:translateZ(0)}
