/* ============================================================
   INTRISIO — the team app look (css/vip-app.css)
   Loaded last on roster.html. Apple-Music-style: big titles,
   bottom tab bar on phones, shelves of art, one action per row.
   Brand colours: navy #0A1A2E, blue #3A7BD5, cream #F0E7D6,
   gold #F4B93E, orange #FF7A1A for tags.
   Covers: the account bar (admin-auth.js), QC timeline
   (admin-checks.js), Content library (admin-library.js),
   Website view (admin-site.js) and app mode (?app=1 / installed).
   ============================================================ */
body.vip { --brand-navy:#0A1A2E; --brand-blue:#3A7BD5; --brand-cream:#F0E7D6; --brand-gold:#F4B93E; --brand-orange:#FF7A1A;
  --ok:#30D158; --warn:#FFD60A; --bad:#FF453A; }

/* ---------- account bar ---------- */
body.vip .acct-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 16px; padding:8px 8px 8px 12px;
  border:1px solid var(--v-line); border-radius:999px; background:var(--v-surface); font:500 13px/1.3 var(--v-font); color:var(--v-text-2); }
body.vip .acct-who { display:inline-flex; align-items:center; gap:8px; flex:1 1 auto; }
body.vip .acct-who b { color:var(--v-text); font-weight:650; }
body.vip .acct-acts { display:flex; gap:6px; flex-wrap:wrap; }
body.vip .acct-b { margin:0; width:auto; padding:7px 12px; border:1px solid var(--v-line); border-radius:999px; background:transparent; color:var(--v-text-2);
  font:600 12px/1 var(--v-font); letter-spacing:0; text-transform:none; cursor:pointer; transition:background .25s, color .25s; }
body.vip .acct-b:hover { background:var(--v-surface-2); color:var(--v-text); }
body.vip .acct-b.on { background:var(--acc); border-color:transparent; color:#fff; }
body.vip .acct-install { background:color-mix(in srgb, var(--acc) 18%, transparent); color:var(--v-text); border-color:transparent; }
body.vip .acct-panel { flex:1 1 100%; margin:4px 0 0; padding:16px; border-top:1px solid var(--v-line); }
body.vip .acct-panel[hidden] { display:none; }
body.vip .acct-panel h3 { margin:0 0 6px; font:700 17px/1.2 var(--v-font); color:var(--v-text); }
body.vip .acct-note { margin:0 0 12px; color:var(--v-text-2); font-size:13px; }
body.vip .acct-msg { margin:6px 0; min-height:1em; color:var(--brand-gold); font-size:13px; }
body.vip .acct-panel input { max-width:260px; margin:0 8px 8px 0; display:inline-block; width:100%; text-align:left; }
body.vip .acct-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
body.vip .acct-people { list-style:none; margin:0 0 10px; padding:0; display:flex; flex-direction:column; gap:6px; }
body.vip .acct-people li { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:var(--v-r-sm); background:var(--v-surface-2); }
body.vip .acct-pn { flex:1 1 auto; display:flex; flex-direction:column; line-height:1.25; }
body.vip .acct-pn b { color:var(--v-text); font-weight:650; }
body.vip .acct-pn small { color:var(--v-text-3); font-size:12px; }
body.vip .acct-panel ol { margin:0 0 10px 18px; color:var(--v-text-2); font-size:14px; line-height:1.6; }
body.vip .auth-hint { margin:0 0 12px; font-size:13.5px; line-height:1.45; color:var(--v-text-2); }
body.vip .auth-hint[hidden] { display:none; }

/* ---------- shared page bits for the new views ---------- */
body.vip .ax-page { padding:4px 0 24px; }
body.vip .ax-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:0 0 14px; }
body.vip .ax-title { margin:0 0 4px; font:800 clamp(28px, 6vw, 34px)/1.05 var(--v-font); letter-spacing:-.02em; color:var(--v-text); }
body.vip .ax-sub { margin:0; font-size:14px; line-height:1.45; color:var(--v-text-2); max-width:56ch; }
body.vip .ax-icon { flex:none; width:38px; height:38px; margin:0; padding:0; border:1px solid var(--v-line); border-radius:50%; background:var(--v-surface);
  color:var(--v-text); font:500 20px/1 var(--v-font); cursor:pointer; }
body.vip .ax-icon:hover { background:var(--v-surface-2); }
body.vip .ax-h { margin:22px 0 10px; font:700 11px/1 var(--v-font); letter-spacing:.14em; text-transform:uppercase; color:var(--v-text-3); }
body.vip .ax-seg { display:flex; gap:2px; padding:3px; margin:0 0 12px; border-radius:12px; background:var(--v-surface); overflow-x:auto; scrollbar-width:none; }
body.vip .ax-seg::-webkit-scrollbar { display:none; }
body.vip .ax-seg-b { flex:1 0 auto; margin:0; width:auto; padding:8px 12px; border:0; border-radius:9px; background:transparent; color:var(--v-text-2);
  font:600 13px/1 var(--v-font); letter-spacing:0; text-transform:none; white-space:nowrap; cursor:pointer; transition:background .25s, color .25s; }
body.vip .ax-seg-b.on { background:var(--v-surface-3); color:var(--v-text); box-shadow:0 1px 4px rgba(0,0,0,.25); }
body.vip .ax-n { display:inline-block; min-width:18px; padding:1px 6px; margin-left:2px; border-radius:999px; background:var(--acc); color:#fff; font:700 11px/16px var(--v-font); text-align:center; }
body.vip .ax-chips { display:flex; gap:6px; margin:0 0 10px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
body.vip .ax-chips::-webkit-scrollbar { display:none; }
body.vip .ax-chip { flex:none; margin:0; width:auto; padding:7px 12px; border:1px solid var(--v-line); border-radius:999px; background:transparent; color:var(--v-text-2);
  font:600 12.5px/1 var(--v-font); letter-spacing:0; text-transform:none; cursor:pointer; }
body.vip .ax-chip.on { background:var(--v-text); color:var(--v-bg); border-color:transparent; }
body.vip .ax-search input { width:100%; margin:0 0 10px; padding:11px 14px; border-radius:12px; text-align:left; font-size:15px; }
body.vip .ax-empty { display:flex; flex-direction:column; gap:4px; padding:26px 16px; margin:8px 0; text-align:center; border:1px dashed var(--v-line-2); border-radius:var(--v-r); color:var(--v-text-2); }
body.vip .ax-empty b { color:var(--v-text); font-size:16px; }
body.vip .ax-more { display:block; margin:0 auto 14px; width:auto; padding:8px 16px; border:1px solid var(--v-line); border-radius:999px; background:transparent; color:var(--v-text-2); font:600 13px/1 var(--v-font); text-transform:none; letter-spacing:0; cursor:pointer; }

/* ---------- QC timeline ---------- */
body.vip .qc-line { list-style:none; margin:0; padding:0 0 0 18px; position:relative; }
body.vip .qc-line::before { content:''; position:absolute; left:5px; top:6px; bottom:6px; width:2px; border-radius:2px; background:var(--v-line-2); }
body.vip .qc-day { position:relative; padding:0 0 22px; }
body.vip .qc-day::before { content:''; position:absolute; left:-18px; top:6px; width:12px; height:12px; border-radius:50%; background:var(--v-bg); border:2px solid var(--v-text-3); box-sizing:border-box; }
body.vip .qc-day.is-today::before { background:var(--acc); border-color:var(--acc); box-shadow:0 0 0 5px color-mix(in srgb, var(--acc) 25%, transparent); }
body.vip .qc-day.is-past { opacity:.78; }
body.vip .qc-dayhead { display:flex; align-items:baseline; gap:8px; margin:0 0 8px; scroll-margin-top:90px; }
body.vip .qc-dayhead b { font:700 17px/1.2 var(--v-font); color:var(--v-text); }
body.vip .qc-day.is-today .qc-dayhead b { color:var(--acc); }
body.vip .qc-dayhead span { font-size:13px; color:var(--v-text-3); }
body.vip .qc-none { margin:0; font-size:13px; color:var(--v-text-3); }
body.vip .qc-card { margin:0 0 8px; border:1px solid var(--v-line); border-radius:var(--v-r-sm); background:var(--v-surface); overflow:hidden; transition:background .25s; }
body.vip .qc-card.open { background:var(--v-surface-2); border-color:var(--v-line-2); }
body.vip .qc-row { display:flex; align-items:center; gap:12px; width:100%; margin:0; padding:10px 12px; border:0; background:transparent; color:var(--v-text); text-align:left; cursor:pointer; font:500 14px/1.3 var(--v-font); letter-spacing:0; text-transform:none; }
body.vip .qc-thumb { flex:none; width:64px; height:40px; border-radius:8px; background:var(--v-surface-3) center/cover no-repeat; display:flex; align-items:center; justify-content:center; }
body.vip .qc-thumb.sq { width:44px; height:44px; }
body.vip .qc-thumb i, body.vip .lib-art i { font-style:normal; font-weight:700; color:var(--v-text-3); }
body.vip .qc-text { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
body.vip .qc-text b { font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.vip .qc-t { font-size:13px; color:var(--v-text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.vip .qc-text small { font-size:12px; color:var(--v-text-3); }
body.vip .qc-pill { flex:none; padding:4px 9px; border-radius:999px; font:700 11px/1 var(--v-font); background:var(--v-surface-3); color:var(--v-text-2); white-space:nowrap; }
body.vip .p-pass { background:color-mix(in srgb, var(--ok) 22%, transparent); color:var(--ok); }
body.vip .p-fix { background:color-mix(in srgb, var(--bad) 20%, transparent); color:var(--bad); }
body.vip .p-ready { background:color-mix(in srgb, var(--brand-blue) 25%, transparent); color:#8FC0FF; }
body.vip .p-posted { background:var(--v-surface-3); color:var(--v-text-3); }
body.vip .p-late { background:color-mix(in srgb, var(--warn) 22%, transparent); color:var(--warn); }
[data-theme="light"] body.vip .p-ready { color:#1C4A82; }
[data-theme="light"] body.vip .p-pass { color:#1B7A34; }
[data-theme="light"] body.vip .p-posted { background:var(--v-surface-3); color:var(--v-text-3); }
body.vip .p-late { color:#8A6500; }
body.vip .qc-body { padding:0 12px 12px; border-top:1px solid var(--v-line); }
body.vip .qc-player { position:relative; margin:12px 0 10px; padding-top:56.25%; border-radius:12px; overflow:hidden; background:#000; }
body.vip .qc-player iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
body.vip .qc-slides { display:flex; gap:8px; margin:12px 0 10px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
body.vip .qc-slides img { flex:none; height:220px; max-width:85%; border-radius:12px; scroll-snap-align:start; object-fit:cover; background:var(--v-surface-3); }
body.vip .qc-wait { margin:12px 0 10px; padding:14px; border-radius:12px; background:var(--v-surface-3); color:var(--v-text-2); font-size:13.5px; }
body.vip .qc-links { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
body.vip .qc-links a { padding:6px 11px; border:1px solid var(--v-line); border-radius:999px; color:var(--v-text); font-size:12.5px; font-weight:600; text-decoration:none; }
body.vip .qc-links a:hover { background:var(--v-surface-3); }
body.vip .qc-cap { margin:0 0 10px; font-size:13.5px; color:var(--v-text-2); }
body.vip .qc-cap summary { cursor:pointer; font-weight:600; color:var(--v-text); }
body.vip .qc-cap p { margin:6px 0 0; line-height:1.5; }
body.vip .qc-notes h4 { margin:0 0 6px; font:700 11px/1 var(--v-font); letter-spacing:.14em; text-transform:uppercase; color:var(--v-text-3); }
body.vip .qc-notes ul { list-style:none; margin:0 0 8px; padding:0; display:flex; flex-direction:column; gap:4px; }
body.vip .qc-notes li { display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:10px; background:var(--v-surface-3); font-size:13.5px; color:var(--v-text); }
body.vip .qc-notes li label { display:flex; align-items:center; gap:8px; flex:1 1 auto; cursor:pointer; }
body.vip .qc-notes li.done span { text-decoration:line-through; color:var(--v-text-3); }
body.vip .qc-notes li small { color:var(--v-text-3); font-size:11.5px; white-space:nowrap; }
body.vip .qc-notes input[type=checkbox] { width:auto; margin:0; accent-color:var(--ok); }
body.vip .qc-ts { padding:2px 6px; border-radius:6px; background:var(--v-surface-2); font:600 11.5px/1.3 ui-monospace, monospace; color:var(--acc); }
body.vip .qc-x { margin:0; width:auto; padding:0 6px; border:0; background:transparent; color:var(--v-text-3); font-size:18px; cursor:pointer; }
body.vip .qc-add { display:flex; gap:6px; }
body.vip .qc-add input { margin:0; padding:9px 10px; border-radius:10px; text-align:left; font-size:14px; }
body.vip .qc-time { flex:0 0 68px; }
body.vip .qc-note { flex:1 1 auto; min-width:0; }
body.vip .qc-add button, body.vip .qc-acts button { margin:0; width:auto; padding:9px 14px; border:1px solid var(--v-line); border-radius:10px; background:var(--v-surface-3); color:var(--v-text);
  font:600 13px/1 var(--v-font); letter-spacing:0; text-transform:none; cursor:pointer; }
body.vip .qc-acts { display:flex; gap:8px; margin:12px 0 0; }
body.vip .qc-acts .qc-pass { flex:1 1 auto; background:color-mix(in srgb, var(--ok) 18%, transparent); border-color:transparent; color:var(--ok); }
body.vip .qc-acts .qc-pass.on { background:var(--ok); color:#06240f; }
body.vip .qc-acts .qc-fix { flex:1 1 auto; background:color-mix(in srgb, var(--bad) 15%, transparent); border-color:transparent; color:var(--bad); }
body.vip .qc-acts .qc-fix.on { background:var(--bad); color:#fff; }
body.vip .qc-by { margin:8px 0 0; font-size:12px; color:var(--v-text-3); }
[data-theme="light"] body.vip .qc-acts .qc-pass { color:#1B7A34; }

/* ---------- Content library ---------- */
body.vip .lib-shelf { margin:0 0 22px; }
body.vip .lib-shelfhead { display:flex; align-items:center; gap:10px; margin:0 0 10px; }
body.vip .lib-shelfhead > div { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
body.vip .lib-shelfhead b { font:700 17px/1.2 var(--v-font); color:var(--v-text); }
body.vip .lib-shelfhead small { font-size:12.5px; color:var(--v-text-3); }
body.vip .lib-ava { flex:none; width:40px; height:40px; border-radius:10px; background:var(--v-surface-3) center/cover no-repeat; }
body.vip .lib-prev { flex:none; font-size:12.5px; font-weight:600; color:var(--acc); text-decoration:none; }
body.vip .lib-row { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x proximity; padding:2px 2px 6px; scrollbar-width:none; }
body.vip .lib-row::-webkit-scrollbar { display:none; }
body.vip .lib-tile { flex:none; width:150px; margin:0; padding:0; border:0; background:transparent; color:var(--v-text); text-align:left; cursor:pointer; scroll-snap-align:start;
  font:500 13px/1.3 var(--v-font); letter-spacing:0; text-transform:none; display:flex; flex-direction:column; gap:2px; }
body.vip .lib-tile.sq { width:120px; }
body.vip .lib-art { position:relative; display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:16/9; border-radius:12px; margin-bottom:6px;
  background:var(--v-surface-3) center/cover no-repeat; box-shadow:0 10px 24px -14px rgba(0,0,0,.7); transition:transform .3s var(--v-ease); }
body.vip .lib-tile.sq .lib-art { aspect-ratio:1/1; }
body.vip .lib-tile:hover .lib-art { transform:translateY(-2px); }
body.vip .lib-tile.on .lib-art { outline:2px solid var(--acc); outline-offset:2px; }
body.vip .lib-art em { position:absolute; right:6px; bottom:6px; padding:3px 7px; border-radius:999px; background:rgba(0,0,0,.6); color:#fff; font:700 10.5px/1 var(--v-font); font-style:normal; }
body.vip .lib-art em.ok { background:var(--ok); color:#06240f; }
body.vip .lib-art em.bad { background:var(--bad); }
body.vip .lib-tile.s-waiting .lib-art, body.vip .lib-tile.s-planned .lib-art, body.vip .lib-tile.s-late .lib-art { border:1px dashed var(--v-line-2); background-color:transparent; }
body.vip .lib-tile.s-late .lib-art { border-color:var(--warn); }
body.vip .lib-tile b { font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.vip .lib-tile small { font-size:12px; color:var(--v-text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.vip .lib-detail { margin:4px 0 0; padding:12px 14px 14px; border:1px solid var(--v-line-2); border-radius:var(--v-r-sm); background:var(--v-surface-2); }
body.vip .lib-dhead { display:flex; align-items:center; gap:8px; }
body.vip .lib-dhead b { font-weight:700; color:var(--v-text); }
body.vip .lib-dhead span { flex:1 1 auto; font-size:13.5px; color:var(--v-text-2); }
body.vip .lib-dhead .ax-icon { width:30px; height:30px; font-size:17px; }
body.vip .lib-meta { margin:0 0 10px; font-size:12.5px; color:var(--v-text-3); }
body.vip .lib-cap { padding:10px 12px; border-radius:10px; background:var(--v-surface-3); font-size:13.5px; color:var(--v-text-2); }
body.vip .lib-caphead { display:flex; justify-content:space-between; align-items:center; margin:0 0 4px; }
body.vip .lib-caphead b { color:var(--v-text); }
body.vip .lib-caphead button { margin:0; width:auto; padding:5px 10px; border:1px solid var(--v-line); border-radius:999px; background:transparent; color:var(--v-text); font:600 12px/1 var(--v-font); text-transform:none; letter-spacing:0; cursor:pointer; }
body.vip .lib-cap p { margin:0; line-height:1.5; }
body.vip .lib-add { margin:0 0 18px; padding:14px; border:1px solid var(--v-line-2); border-radius:var(--v-r-sm); background:var(--v-surface-2); }
body.vip .lib-add h3 { margin:0 0 4px; font:700 17px/1.2 var(--v-font); color:var(--v-text); }
body.vip .lib-add input, body.vip .lib-add select, body.vip .lib-add textarea { width:100%; margin:0 0 8px; text-align:left; padding:10px 12px; border-radius:10px; font-size:14px; }

/* ---------- Website view ---------- */
body.vip .site-list { display:flex; flex-direction:column; border:1px solid var(--v-line); border-radius:var(--v-r-sm); background:var(--v-surface); overflow:hidden; }
body.vip .site-row { display:grid; grid-template-columns:1fr auto; grid-template-areas:'name arrow' 'note arrow'; align-items:center; column-gap:10px; width:100%; margin:0; padding:11px 14px;
  border:0; border-bottom:1px solid var(--v-line); background:transparent; color:var(--v-text); text-align:left; text-decoration:none; cursor:pointer; font:500 14px/1.3 var(--v-font); letter-spacing:0; text-transform:none; }
body.vip .site-row:last-child { border-bottom:0; }
body.vip .site-row:hover, body.vip .site-row.on { background:var(--v-surface-2); }
body.vip .site-row b { grid-area:name; font-weight:600; }
body.vip .site-row small { grid-area:note; font-size:12.5px; color:var(--v-text-3); }
body.vip .site-row i { grid-area:arrow; font-style:normal; color:var(--v-text-3); font-size:18px; }
body.vip .site-frame { margin:0 0 18px; border:1px solid var(--v-line-2); border-radius:var(--v-r-sm); overflow:hidden; background:#000; }
body.vip .site-bar { display:flex; justify-content:space-between; gap:10px; padding:8px 12px; background:var(--v-surface-3); font-size:12.5px; color:var(--v-text-2); }
body.vip .site-bar a { color:var(--acc); font-weight:600; text-decoration:none; }
body.vip .site-frame iframe { display:block; width:100%; height:min(72vh, 820px); border:0; background:#fff; }

/* ---------- app mode: installed, or /vip ---------- */
body.vip .vnav-ic { display:none; }
body.vip.app-mode header, body.vip.app-mode footer, body.vip.app-mode .page-hero { display:none !important; }
body.vip.app-mode main { padding-top:max(12px, env(safe-area-inset-top)); }
body.vip.app-mode .sec-black { padding-top:8px; }
@media (max-width:760px){
  body.vip.app-mode.vip-in { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
  body.vip.app-mode .vnav { position:fixed; left:0; right:0; bottom:0; z-index:60; width:100%; margin:0; padding:8px 6px calc(10px + env(safe-area-inset-bottom)); border-radius:0; border-width:1px 0 0;
    background:color-mix(in srgb, var(--v-bg) 78%, transparent); box-shadow:0 -8px 30px -18px rgba(0,0,0,.6); justify-content:space-around; }
  body.vip.app-mode .vnav-b { flex:1 1 0; flex-direction:column; gap:5px; padding:8px 2px 6px; min-height:58px; font-size:11.5px; font-weight:600; border-radius:12px; color:var(--v-text-3); }
  body.vip.app-mode .vnav-b.on { background:transparent; box-shadow:none; color:var(--acc); }
  body.vip.app-mode .vnav-b .ava-xs { display:inline-flex; width:24px; height:24px; margin:0; }
  body.vip.app-mode .vnav-ic { display:inline-flex; width:26px; height:26px; }
  body.vip.app-mode .vnav-ic svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  body.vip.app-mode .vnav-b .vnav-n { position:absolute; top:0; right:calc(50% - 22px); min-width:16px; padding:0 4px; font-size:10px; line-height:16px; }
  body.vip.app-mode .vnav-dot { top:2px; right:calc(50% - 16px); }
  body.vip.app-mode .vsub { margin-bottom:18px; }
  body.vip.app-mode .acct-bar { border-radius:var(--v-r-sm); }
  body.vip .ax-seg-b { font-size:12.5px; padding:8px 10px; }
}
@media (display-mode: standalone){ body.vip .acct-install { display:none; } }

@media (max-width:600px){
  body.vip .acct-bar { padding:8px 10px; gap:8px; }
  body.vip .acct-who { font-size:13px; }
  body.vip .acct-acts { flex:1 1 100%; gap:5px; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  body.vip .acct-acts::-webkit-scrollbar { display:none; }
  body.vip .acct-b { flex:none; }
  body.vip .acct-b { padding:6px 10px; font-size:11.5px; }
}

/* ---------- Ask: the team question bot (admin-ask.js) ---------- */
body.vip .ask-fab { position:fixed; right:18px; bottom:22px; z-index:70; display:none; align-items:center; gap:8px; margin:0; width:auto; padding:11px 16px 11px 13px;
  border:0; border-radius:999px; background:var(--brand-blue); color:#fff; font:700 14px/1 var(--v-font); letter-spacing:0; text-transform:none; cursor:pointer;
  box-shadow:0 10px 28px rgba(0,0,0,.35); transition:transform .2s, background .25s; }
body.vip.vip-in .ask-fab { display:inline-flex; }
body.vip .ask-fab:hover { transform:translateY(-1px); background:#4a88dd; }
body.vip .ask-fab svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body.vip.app-mode .ask-fab { bottom:calc(100px + env(safe-area-inset-bottom)); right:14px; }
body.vip.ask-open .ask-fab { display:none; }

body.vip .ask-sheet { position:fixed; right:18px; bottom:22px; z-index:80; width:min(440px, calc(100vw - 24px)); height:min(640px, calc(100vh - 60px));
  display:flex; flex-direction:column; border:1px solid var(--v-line); border-radius:22px; background:#111820; color:var(--v-text);
  box-shadow:0 24px 60px rgba(0,0,0,.45); overflow:hidden; font:400 15px/1.45 var(--v-font); }
body.vip .ask-sheet[hidden] { display:none; }
body.vip .ask-head { display:flex; align-items:center; gap:8px; padding:14px 14px 12px 18px; border-bottom:1px solid var(--v-line); }
body.vip .ask-head > div { flex:1 1 auto; display:flex; flex-direction:column; line-height:1.25; min-width:0; }
body.vip .ask-head b { font-size:16px; font-weight:700; }
body.vip .ask-head small { color:var(--v-text-3); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.vip .ask-x { margin:0; width:auto; padding:6px 10px; border:1px solid var(--v-line); border-radius:999px; background:transparent; color:var(--v-text-2);
  font:600 12px/1 var(--v-font); letter-spacing:0; text-transform:none; cursor:pointer; }
body.vip .ask-x[aria-label="Close"] { font-size:20px; line-height:.8; padding:4px 10px 6px; }
body.vip .ask-x:hover { background:var(--v-surface-2); color:var(--v-text); }
body.vip .ask-log { flex:1 1 auto; overflow-y:auto; padding:14px 14px 6px; display:flex; flex-direction:column; gap:8px; -webkit-overflow-scrolling:touch; }
body.vip .ask-m { max-width:88%; padding:10px 14px; border-radius:18px; white-space:normal; word-wrap:break-word; }
body.vip .ask-m.me { align-self:flex-end; background:var(--brand-blue); color:#fff; border-bottom-right-radius:6px; }
body.vip .ask-m.bot { align-self:flex-start; background:var(--v-surface-2); color:var(--v-text); border-bottom-left-radius:6px; }
body.vip .ask-m.err { color:var(--brand-gold); }
body.vip .ask-m.wait { display:flex; gap:5px; padding:14px 16px; }
body.vip .ask-m.wait i { width:7px; height:7px; border-radius:50%; background:var(--v-text-3); animation:askDot 1s infinite ease-in-out; }
body.vip .ask-m.wait i:nth-child(2) { animation-delay:.15s; } body.vip .ask-m.wait i:nth-child(3) { animation-delay:.3s; }
@keyframes askDot { 0%,80%,100% { opacity:.3; transform:translateY(0); } 40% { opacity:1; transform:translateY(-3px); } }
body.vip .ask-empty { padding:6px 2px; }
body.vip .ask-empty p { margin:0 0 10px; color:var(--v-text-2); font-size:14px; }
body.vip .ask-chip { display:block; width:100%; margin:0 0 6px; padding:10px 14px; text-align:left; border:1px solid var(--v-line); border-radius:14px; background:transparent;
  color:var(--v-text); font:500 14px/1.3 var(--v-font); letter-spacing:0; text-transform:none; cursor:pointer; }
body.vip .ask-chip:hover { background:var(--v-surface-2); }
body.vip .ask-form { width:100%; box-sizing:border-box; display:flex; align-items:flex-end; gap:8px; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); border-top:1px solid var(--v-line); background:#0d131a; }
[data-theme="light"] body.vip .ask-sheet { background:#FFFFFF; }
[data-theme="light"] body.vip .ask-form { background:#F5F5F7; }
[data-theme="light"] body.vip .ask-m.bot { background:#ECEAE4; }
body.vip .ask-form textarea { flex:1 1 auto; width:auto; min-width:0; box-sizing:border-box; margin:0; padding:10px 14px; min-height:42px; max-height:120px; resize:none; border:1px solid var(--v-line); border-radius:21px;
  background:var(--v-surface-2); color:var(--v-text); font:400 15px/1.4 var(--v-font); }
body.vip .ask-form textarea:focus { outline:none; border-color:var(--brand-blue); }
body.vip .ask-send { flex:0 0 auto; margin:0; width:42px; height:42px; padding:0; border:0; border-radius:50%; background:var(--brand-blue); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
body.vip .ask-send svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:640px){
  body.vip .ask-sheet { right:0; bottom:0; left:0; width:100%; height:min(82vh, 100vh - 40px); border-radius:22px 22px 0 0; border-bottom:0; }
}

/* 2026-11-13 crash fix: on phones (no mouse) the frosted glass on every card and
   the fade-in on whole pages made the Team screen heavy enough to crash the app.
   Cards keep their colour and border; the bars at the top and bottom stay frosted. */
@media (hover: none){
  html body.vip .who, html body.vip .m-today, html body.vip .sq-card, html body.vip .rec, html body.vip .hub-sec,
  html body.vip .bd-new, html body.vip .ed-next, html body.vip .ed-ep, html body.vip .mb, html body.vip .dc-card {
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  html body.vip .member, html body.vip #seg-team, html body.vip #seg-roster, html body.vip .tv, html body.vip .m-sub:not([hidden]) { animation: none; }
}
