/* ============================================================
   INTRISIO — VIP app: your photo top left + the side menu
   (js/admin-drawer.js). Glass panel from the left, Anton wordmark,
   pill rows. Uses the vip.css tokens, so light mode just works.
   ============================================================ */

/* ---------- top row: photo + wordmark ---------- */
body.vip .vtop { display:flex; align-items:center; gap:12px; margin:0 0 14px; min-height:44px; }
body.vip .vtop-me { flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; margin:0; padding:0;
  border:0; border-radius:50%; background:transparent; cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:transform .2s var(--v-ease); }
body.vip .vtop-me:active { transform:scale(.92); }
body.vip .vtop-me .ava { --s:38px; box-shadow:0 0 0 2px var(--v-bg), 0 0 0 3.5px color-mix(in srgb, var(--acc) 75%, transparent); }
body.vip .vtop-me:focus-visible { outline:2px solid var(--acc); outline-offset:3px; }
body.vip .vtop-blank { width:38px; height:38px; border-radius:50%; background:var(--v-surface-3); }
body.vip .vtop-word { font:400 22px/1 'Anton', sans-serif; letter-spacing:.06em; text-transform:uppercase; color:var(--v-text); }
body.vip .vtop-view { margin-left:auto; padding:6px 12px; border-radius:999px; background:var(--acc, #e8743b); color:#fff; font:600 12px/1.2 var(--v-font); }
body.vip .vtop-view[hidden] { display:none; }
body.vip .vtop-view b { color:#fff; }

/* the old account pill row now lives inside the panel; never at the top of the app */
body.vip #app > .acct-bar { display:none; }

/* ---------- the panel ---------- */
html.vdr-lock, html.vdr-lock body { overflow:hidden; }
body.vip .vdr { position:fixed; inset:0; z-index:120; }
body.vip .vdr[hidden] { display:none; }
body.vip .vdr-scrim { position:absolute; inset:0; background:rgba(0,0,0,.5); opacity:0; transition:opacity .28s var(--v-ease); }
body.vip .vdr.open .vdr-scrim { opacity:1; }
body.vip .vdr-panel { position:absolute; top:0; bottom:0; left:0; width:min(340px, 86vw); display:flex; flex-direction:column; gap:6px;
  padding:calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; outline:none;
  background:color-mix(in srgb, var(--v-bg) 86%, transparent); border-right:1px solid var(--v-line-2);
  -webkit-backdrop-filter:blur(28px) saturate(170%); backdrop-filter:blur(28px) saturate(170%);
  box-shadow:24px 0 60px -20px rgba(0,0,0,.6); color:var(--v-text); font:500 15px/1.3 var(--v-font);
  transform:translateX(-102%); transition:transform .28s var(--v-ease); will-change:transform; }
body.vip .vdr.open .vdr-panel { transform:translateX(0); }

body.vip .vdr-top { display:flex; align-items:center; justify-content:space-between; min-height:40px; }
body.vip .vdr-x { margin:0 0 0 auto; width:40px; height:40px; padding:0; border:1px solid var(--v-line); border-radius:50%; background:var(--v-surface);
  color:var(--v-text-2); font:400 24px/1 var(--v-font); cursor:pointer; }
body.vip .vdr-x:hover { color:var(--v-text); background:var(--v-surface-2); }
body.vip .vdr-back { display:none; align-items:center; gap:4px; margin:0; width:auto; padding:8px 14px 8px 8px; border:1px solid var(--v-line); border-radius:999px;
  background:var(--v-surface); color:var(--v-text); font:600 13px/1 var(--v-font); letter-spacing:0; text-transform:none; cursor:pointer; }
body.vip .vdr-back .vdr-ic { width:18px; height:18px; }
body.vip .vdr.has-panel .vdr-back { display:inline-flex; }

body.vip .vdr-head { display:flex; align-items:center; gap:14px; padding:6px 6px 16px; border-bottom:1px solid var(--v-line); margin-bottom:6px; }
body.vip .vdr-head .ava { --s:58px; box-shadow:0 0 0 2px var(--v-bg), 0 0 0 3.5px color-mix(in srgb, var(--acc) 75%, transparent); }
body.vip .vdr-who { display:flex; flex-direction:column; gap:3px; min-width:0; }
body.vip .vdr-who b { font:400 24px/1.05 'Anton', sans-serif; letter-spacing:.03em; text-transform:uppercase; color:var(--v-text); }
body.vip .vdr-who span { font-size:13px; color:var(--v-text-2); }
body.vip .vdr-who em { align-self:flex-start; margin-top:4px; padding:3px 10px; border-radius:999px; background:var(--acc); color:#fff; font:600 11.5px/1.3 var(--v-font); font-style:normal; }

body.vip .vdr-list { display:flex; flex-direction:column; gap:2px; }
body.vip .vdr-h { margin:14px 10px 6px; font:700 11px/1 var(--v-font); letter-spacing:.14em; text-transform:uppercase; color:var(--v-text-3); }
body.vip .vdr-row { display:flex; align-items:center; gap:14px; width:100%; margin:0; padding:12px 12px; min-height:48px; text-align:left; cursor:pointer;
  border:0; border-radius:14px; background:transparent; color:var(--v-text); font:600 15.5px/1.2 var(--v-font); letter-spacing:0; text-transform:none;
  -webkit-tap-highlight-color:transparent; transition:background .2s; }
body.vip .vdr-row:hover, body.vip .vdr-row:active { background:var(--v-surface-2); }
body.vip .vdr-row:focus-visible { outline:2px solid var(--acc); outline-offset:-2px; }
body.vip .vdr-t { flex:1 1 auto; }
body.vip .vdr-val { flex:none; padding:4px 10px; border-radius:999px; background:var(--v-surface-3); color:var(--v-text-2); font:600 12px/1 var(--v-font); }
body.vip .vdr-ic { flex:none; display:inline-flex; width:24px; height:24px; color:var(--v-text-2); }
body.vip .vdr-ic svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body.vip .vdr-row:first-child .vdr-ic { color:var(--acc); }
body.vip .vdr-out { margin-top:10px; color:#FF6B61; }
body.vip .vdr-out .vdr-ic { color:#FF6B61; }
[data-theme="light"] body.vip .vdr-out, [data-theme="light"] body.vip .vdr-out .vdr-ic { color:#C4302B; }
body.vip .vdr-foot { margin:auto 10px 0; padding-top:18px; font-size:11.5px; color:var(--v-text-3); }

/* a sub-screen (Change PIN, People & access, See as, Install) replaces the list */
body.vip .vdr.has-panel .vdr-list, body.vip .vdr.has-panel .vdr-foot { display:none; }
body.vip .vdr-box .acct-bar { display:block; margin:0; padding:0; border:0; border-radius:0; background:none; }
body.vip .vdr-box .acct-who, body.vip .vdr-box .acct-acts, body.vip .vdr-box .acct-view { display:none; }
body.vip .vdr-box .acct-panel { margin:0; padding:4px 6px 8px; border:0; }
body.vip .vdr-box .acct-panel h3 { font:400 22px/1.1 'Anton', sans-serif; letter-spacing:.03em; text-transform:uppercase; margin:0 0 8px; }
body.vip .vdr-box .acct-panel input { max-width:none; margin:0 0 8px; }
body.vip .vdr-box .acct-people li { flex-wrap:wrap; }
body.vip .vdr-box .acct-pn { min-width:120px; }

@media (prefers-reduced-motion: reduce){
  body.vip .vdr-panel, body.vip .vdr-scrim { transition:none; }
}

/* in a browser the site header already says Intrisio: just the photo there */
body.vip:not(.app-mode) .vtop-word { display:none; }
