/* Synced copy 2.51.0 - do not edit here: change voimar-shared app-kit/appframe.css (the Shelf serves the same file as the Next apps import). */
/* VOIMAR AppFrame (voimar-shared app-kit 2.22.0, 5 Nov 2026; Leonard: "fix all mobile menu for all our pwa n learn from MAD
   execution", "focus on pwa look n feel centralisation and parity"). One frame for every VOIMAR app and portal: the PWAs
   (vDIALER, vKONNECTOR, vCOMMANDER, SMS, APN, Vault) and the server-rendered portals (the Modules Shelf). Plain CSS, class
   names vf-*, so Next.js (Tailwind v3/v4) and Jinja pages use the same file. Pattern learnt from MAD's Family Tree frame:
   - 2.27.0 (Leonard, 6 Nov 2026: "super admin always on right and customer/subscriber menus always left for all VOIMAR platforms"):
     left drawer  = the product's / customer's own menu (product colour, or the tenant's colour), MENU handle on the left edge
     right drawer = VOIMAR Super Admin menu (VOIMAR red), only for VOIMAR staff, SUPER ADMIN handle on the right edge
     (.vf-dl/.vf-dr/.vf-hl/.vf-hr = the side; .vf-mn/.vf-sa = what is in it and its colour. MAD's theme keeps Super Admin left.)
   - computer (>= 1024 px): both drawers are columns beside the page; a handle folds a column away
   - phone and tablet: the drawers slide over the page with a shade behind, the handles sit on the screen edges, and the
     five-tab bottom bar (registry pwa.bottom_bar) is always there; the top bar has Back and Home
   - works with JavaScript off: one checkbox per drawer means "the other way from the default" (open on a computer,
     closed on a phone), so no script is needed for either default; app-kit/AppFrame.tsx only adds remembering.
   Colours: --vf-accent is the product colour (every app and platform: VOIMAR red #CC0000 since 26-27 Nov 2026);
   --vf-menu is the menu drawer (the tenant's colour when the tenant has one). Black is never the page background. */
:root {
  --vf-red: #cc0000; --vf-ink: #0b0b0b; --vf-accent: #cc0000; --vf-menu: #0b0b0b; --vf-menu-text: #fff;
  --vf-page: #f4f5f7; --vf-card: #fff; --vf-line: #e3e5e9; --vf-text: #141414; --vf-muted: #5f6368;
  --vf-dl: 264px; --vf-dr: 280px; --vf-phone-drawer: min(320px, 84vw); --vf-top: 56px; --vf-tabs: 64px;
}
.vf-t { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
body.vf-body { margin: 0; font-family: Inter, Arial, Helvetica, sans-serif; }
.vf-root, body.vf-body { background: var(--vf-page); color: var(--vf-text); }
.vf { display: flex; align-items: stretch; min-height: 100dvh; }
.vf-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vf-main { flex: 1; padding: 16px 16px calc(var(--vf-tabs) + 40px + env(safe-area-inset-bottom)); max-width: 1200px; width: 100%; box-sizing: border-box; margin: 0 auto; }

/* top bar: product icon + name (+ tenant), Back, Home, notices */
.vf-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: var(--vf-top); padding: 0 12px;
  padding-top: env(safe-area-inset-top); background: var(--vf-card); border-bottom: 3px solid var(--vf-accent); box-sizing: content-box; }
/* 2.27.1 (Leonard, 6 Nov 2026: "logo always on top bar please"): every app and platform shows its logo here - a square icon as
   before, or a customer's wide logo (KESHO, GYTE, HEITA tenants) at the same height, never cropped. */
/* 2.35.0 (Leonard, 18 Nov 2026: "all systems must not use logo with background for voimar"): the logo stands on the bar itself -
   no tile, no rounded box; pass a transparent mark (brand/voimar-mark/), never an app icon. */
.vf-top .vf-logo { width: auto; min-width: 36px; max-width: 160px; height: 36px; object-fit: contain; flex: none; }
.vf-top .vf-name { flex: 1; min-width: 0; line-height: 1.15; }
.vf-top .vf-name b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-top .vf-name small { display: block; font-size: 12px; color: var(--vf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--vf-line); background: var(--vf-card); color: var(--vf-text); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; }
.vf-btn:focus-visible, .vf-handle:focus-visible, .vf-tabs a:focus-visible, .vf-drawer a:focus-visible { outline: 3px solid #5b7390; outline-offset: 2px; }
.vf-pill { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--vf-accent) 12%, white); color: var(--vf-accent); text-decoration: none; white-space: nowrap; }
.vf-pill.sa { background: var(--vf-red); color: #fff; }
.vf-top .vf-actions { display: flex; align-items: center; gap: 6px; flex: none; }   /* 2.22.0: the app's own controls */
/* 2.27.2: a chooser in the middle of the top bar (a platform's tenant / ISP list, Bicom-style); the name gives it the room */
.vf-top .vf-center { flex: 1; min-width: 0; display: flex; justify-content: center; }
/* 2.29.0 (KESHO, approved): with the customer box / chooser in the middle, the top bar carries no product name text - the platform
   logo on the left is the product. */
.vf-top:has(.vf-center) .vf-name { display: none; }
.vf-top .vf-cust, .vf-top .vf-user { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--vf-line);
  border-radius: 8px; background: #fafafa; color: var(--vf-text); font-size: 14px; font-weight: 600; white-space: nowrap; min-width: 0; }
.vf-top .vf-cust { width: min(420px, 100%); }
.vf-top .vf-cust > span, .vf-top .vf-user > span { overflow: hidden; text-overflow: ellipsis; }
.vf-top .vf-user { flex: none; max-width: 240px; background: var(--vf-card); }
.vf-solid .vf-top .vf-cust, .vf-solid .vf-top .vf-user { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .3); color: #fff; }
@media (max-width: 640px) { .vf-top .vf-user > span { display: none; } .vf-top .vf-user { padding: 0 10px; } }
/* 2.22.0: a solid top bar in the product colour (the voice apps' branded bars, all VOIMAR red since 27 Nov 2026) */
.vf-solid .vf-top { background: var(--vf-accent); color: #fff; border-bottom-color: rgb(0 0 0 / .18); }
.vf-solid .vf-top .vf-name small { color: rgb(255 255 255 / .8); }
.vf-solid .vf-top .vf-btn { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .3); color: #fff; }
.vf-ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* drawers */
.vf-drawer { box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; padding: 14px 10px calc(24px + env(safe-area-inset-bottom)); }
.vf-drawer.vf-own { padding: 0 0 env(safe-area-inset-bottom); }
/* 2.27.0: a wide page (Leonard 6 Nov: "KESHO tables can display in full") - the page area uses all the width between the drawers. */
.vf-wide .vf-main { max-width: none; }
.vf-dl { background: var(--vf-red); color: #fff; }
.vf-dr { background: var(--vf-menu); color: var(--vf-menu-text); }
/* 2.27.0: the colour belongs to the content, wherever its side (wins over the side defaults above, which older markup still uses) */
.vf-drawer.vf-sa { background: var(--vf-red); color: #fff; }
.vf-drawer.vf-mn { background: var(--vf-menu); color: var(--vf-menu-text); }
.vf-drawer .vf-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid rgb(255 255 255 / .18); margin-bottom: 8px; }
/* 2.35.0: the menu's logo on the drawer itself (no box behind it), wide enough for the wordmark */
.vf-drawer .vf-head img { width: auto; max-width: 104px; height: 40px; object-fit: contain; object-position: left center; flex: none; }
.vf-drawer .vf-head b { display: block; font-size: 15px; } .vf-drawer .vf-head small { display: block; font-size: 11px; opacity: .75; letter-spacing: .06em; text-transform: uppercase; }
.vf-sec { margin: 10px 0 4px; padding: 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
/* .vf-own = a drawer whose app draws its own menu (FrameSide.ownStyles: KESHO, GYTE, HEITA keep their menus' own look) - the
   frame's link styles below do not touch it. */
.vf-drawer:not(.vf-own) a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 9px; color: inherit; text-decoration: none; font-size: 14.5px; font-weight: 600; }
.vf-drawer:not(.vf-own) a:hover { background: rgb(255 255 255 / .1); }
.vf-drawer:not(.vf-own) a[aria-current="page"] { background: rgb(255 255 255 / .18); box-shadow: inset 3px 0 0 #fff; }
.vf-drawer:not(.vf-own) a .vf-n, .vf-handle .vf-n, .vf-tabs .vf-n { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: var(--vf-red);
  font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
/* locked = not in this customer's licence (shown, never hidden: VOIMAR menus rule 22 Oct); soon = coming soon */
.vf-drawer:not(.vf-own) a.locked, .vf-drawer:not(.vf-own) a.soon { opacity: .6; }
.vf-drawer:not(.vf-own) a.locked::after, .vf-drawer:not(.vf-own) a.soon::after { margin-left: auto; font-size: 10px; font-weight: 800; text-transform: uppercase; opacity: .85; }
.vf-drawer:not(.vf-own) a.locked::after { content: "locked"; } .vf-drawer:not(.vf-own) a.soon::after { content: "soon"; }
.vf-drawer .vf-who { margin-top: 14px; padding: 10px 8px 0; border-top: 1px solid rgb(255 255 255 / .18); font-size: 12.5px; opacity: .85; word-break: break-all; }

/* handles: a vertical tab on the outer edge (phone: on the screen edge; computer: beside the column) */
.vf-handle { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 30px; padding: 12px 0; cursor: pointer; user-select: none;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; -webkit-tap-highlight-color: transparent; }
.vf-handle span.vf-ht { writing-mode: vertical-rl; transform: rotate(180deg); }
.vf-hl { background: var(--vf-red); border-radius: 0 12px 12px 0; }
.vf-hr { background: var(--vf-menu); color: var(--vf-menu-text); border-radius: 12px 0 0 12px; }
.vf-hr span.vf-ht { transform: none; }
.vf-handle.vf-sa { background: var(--vf-red); color: #fff; }
.vf-handle.vf-mn { background: var(--vf-menu); color: var(--vf-menu-text); }
.vf-handle .vf-ico { width: 16px; height: 16px; transition: transform .18s; }
.vf-handle .vf-n { margin: 0; background: #fff; color: var(--vf-red); }

/* 2.33.0 bottom bar (phone and tablet), the SAME in every app (Leonard 13 Nov 2026: "same floating bottom menu for all").
   2.51.0 (Leonard, 27 Nov 2026: "the bottom menu toggle icons like vKonnector across all apps as 1 standard"): vKONNECTOR's bar,
   measure for measure - a translucent pill in the app colour (--vf-bar: VOIMAR red by default, the person's app theme otherwise), five
   slots; the page you are on toggles into the centre (AppFrame centred(); "only 1 centre icon must be highlighted as they all toggle to
   centre"), the one big raised button (64 px, 4 px ring in the bar colour) in the main-action colour (--vf-centre: VOIMAR Black, or the
   app's own, e.g. call green). */
.vf-tabs { position: fixed; left: 12px; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 40; display: grid;
  grid-template-columns: repeat(5, 1fr); align-items: end; max-width: 512px; margin: 0 auto; height: var(--vf-tabs); padding: 0 4px; box-sizing: border-box;
  border-radius: 28px; background: color-mix(in srgb, var(--vf-bar, var(--vf-accent)) 80%, transparent); border: 1px solid rgb(255 255 255 / .15);
  box-shadow: 0 10px 30px rgb(0 0 0 / .35); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); }
.vf-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 8px 0;
  color: rgb(255 255 255 / .85); text-decoration: none; font-size: 11px; font-weight: 600; white-space: nowrap; }
.vf-tabs a > span { color: #d1d5db; }
.vf-tabs a .vf-ico { box-sizing: content-box; width: 22px; height: 22px; padding: 0; margin: 5px 9px; }
.vf-tabs a[aria-current="page"] > span { color: #fff; }
.vf-tabs a[aria-current="page"] { color: #fff; }   /* only while a live centre button holds the centre; otherwise the current page IS the centre */
.vf-tabs .vf-centre { display: flex; justify-content: center; align-items: flex-end; }
.vf-tabs .vf-centre > a, .vf-tabs .vf-centre > button { width: 100%; background: none; border: 0; font-family: inherit; font-size: 11px; font-weight: 600; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; padding: 0 0 8px; }
.vf-tabs .vf-centre > a > span, .vf-tabs .vf-centre > button > span { color: #fff; }
.vf-tabs .vf-centre .vf-ico, .vf-tabs .vf-centre a[aria-current="page"] .vf-ico { box-sizing: content-box; width: 28px; height: 28px; padding: 14px; margin: -24px 0 2px;
  border-radius: 50%; background: var(--vf-centre, #0b0b0b); border: 4px solid var(--vf-bar, var(--vf-accent)); box-shadow: 0 10px 15px rgb(0 0 0 / .3); color: #fff; }
.vf-tabs .vf-n { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }

.vf-shade { display: none; }
.vf-foot { padding: 6px 16px calc(var(--vf-tabs) + 10px + env(safe-area-inset-bottom)); text-align: right; font-size: 11px; color: var(--vf-muted); }

/* phone and tablet */
@media (max-width: 1023.98px) {
  .vf-drawer { position: fixed; top: 0; bottom: 0; z-index: 60; width: var(--vf-phone-drawer); transition: transform .22s ease, visibility .22s; visibility: hidden; }
  .vf-dl { left: 0; transform: translateX(-100%); } .vf-dr { right: 0; transform: translateX(100%); }
  #vf-l:checked ~ .vf .vf-dl, #vf-r:checked ~ .vf .vf-dr { transform: none; visibility: visible; }
  .vf-handle { position: fixed; top: 40%; z-index: 61; box-shadow: 0 2px 10px rgb(0 0 0 / .22); transition: transform .22s ease; }
  .vf-hl { left: 0; } .vf-hr { right: 0; }
  #vf-l:checked ~ .vf .vf-hl { transform: translateX(var(--vf-phone-drawer)); } #vf-r:checked ~ .vf .vf-hr { transform: translateX(calc(-1 * var(--vf-phone-drawer))); }
  #vf-l:checked ~ .vf .vf-hl .vf-ico, #vf-r:checked ~ .vf .vf-hr .vf-ico { transform: rotate(180deg); }
  #vf-l:checked ~ .vf .vf-hr, #vf-r:checked ~ .vf .vf-hl { opacity: 0; pointer-events: none; }   /* one drawer at a time */
  .vf-shade { position: fixed; inset: 0; z-index: 55; background: rgb(0 0 0 / .45); }
  #vf-l:checked ~ .vf-sl, #vf-r:checked ~ .vf-sr { display: block; }
  .vf-top .vf-home span { display: none; }
}
@media (max-width: 420px) { .vf-top .vf-pill.sa { display: none; } }   /* the Super Admin handle already says so */
@media (max-width: 360px) { .vf-tabs a { font-size: 10px; } .vf-top .vf-home { display: none; } }

/* computer: the drawers are columns, open unless folded away (the checkbox folds) */
@media (min-width: 1024px) {
  .vf-tabs { display: none; }
  .vf-main { padding-bottom: 24px; } .vf-foot { padding-bottom: 12px; }
  .vf-drawer { position: sticky; top: 0; height: 100dvh; flex: none; }
  .vf-dl { width: var(--vf-dl); order: 0; } .vf-hl { order: 1; } .vf-mid { order: 2; } .vf-hr { order: 3; } .vf-dr { width: var(--vf-dr); order: 4; }
  #vf-l:checked ~ .vf .vf-dl, #vf-r:checked ~ .vf .vf-dr { display: none; }
  .vf-handle { position: sticky; top: 40vh; align-self: flex-start; margin-top: 40vh; }
  .vf-hl .vf-ico { transform: rotate(180deg); } #vf-l:checked ~ .vf .vf-hl .vf-ico { transform: none; }
  .vf-hr .vf-ico { transform: rotate(180deg); } #vf-r:checked ~ .vf .vf-hr .vf-ico { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .vf-drawer, .vf-handle, .vf-handle .vf-ico { transition: none; } }
@media print { .vf-drawer, .vf-handle, .vf-tabs, .vf-shade { display: none !important; } }

/* 2.29.0: a big logo at the top of a drawer (same size both sides) and titled sections that fold (My Family Tree's menu, approved on KESHO) */
/* 2.51.0 (Leonard, 27 Nov 2026: "Logos should be centred on left and right menus"; replaces 2.30.0's left alignment): the menu drawer
   shows the platform logo, the Super Admin drawer the partner / customer logo, both centred, same height. */
.vf-banner { padding: 6px 10px 14px; text-align: center; }
.vf-banner img { display: inline-block; height: 64px; width: auto; max-width: 85%; object-fit: contain; object-position: center; }
.vf-banner--white img { filter: brightness(0) invert(1); }
/* 2.51.0: the drawer's title sits centred under its centred logo */
.vf-banner + .vf-head { justify-content: center; text-align: center; }
.vf-fold > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; padding: 8px; margin: 4px 0;
  border-radius: 8px; font-size: 12px; opacity: .8; }
.vf-fold > summary::-webkit-details-marker { display: none; }
.vf-fold > summary > span { flex: 1; }
.vf-fold > summary:hover { background: rgb(255 255 255 / .08); opacity: 1; }
.vf-fold > summary .vf-ico { transition: transform .15s; }
.vf-fold[open] > summary { opacity: 1; }
.vf-fold[open] > summary .vf-ico { transform: rotate(90deg); }
.vf-fold > summary .vf-n { margin-left: 0; }

/* 2.30.0 (approved on KESHO, 6 Nov 2026): first-level menu rows are UPPERCASE ("1st level menu items must always be uppercase"); the rows
   inside a folding section keep their case. Section titles carry an icon. */
.vf-drawer:not(.vf-own) a:not(.vf-fold a) { text-transform: uppercase; letter-spacing: .05em; font-size: 13.5px; }
.vf-sec--row { display: flex; align-items: center; gap: 8px; }
.vf-sec .vf-ico { width: 15px; height: 15px; flex: none; }
.vf-fold > summary > .vf-ico:first-child { transform: none !important; }

/* 2.31.0: the version + refresh sit in the top bar, small and muted, never in a drawer or under the page (Leonard 6 Nov 2026). */
.vf-top .vf-version { display: inline-flex; align-items: center; flex: none; font-size: 11px; color: var(--vf-muted); }
.vf-solid .vf-top .vf-version { color: rgb(255 255 255 / .75); }

/* 2.33.0: the profile picture (Voimar ID, Shelf /avatar via avatar.js) between Back and Home, and the greeting on home pages */
.vf-top .vf-me { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--vf-line); text-decoration: none; overflow: hidden; }
.vf-solid .vf-top .vf-me { border-color: rgb(255 255 255 / .55); }
/* 2.33.1: a picture given by address (pictureSrc) lies over the initials; a missing picture (404, empty alt) shows the initials */
.vf-top .vf-me { position: relative; }
.vf-me-ini { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--vf-accent); color: #fff;
  font-weight: 700; font-size: 14px; line-height: 1; }
.vf-me-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.vf-greet { margin: 2px 0 14px; }
.vf-greet .vf-greet-h { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0; }
@media (max-width: 400px) { .vf-top { gap: 6px; } .vf-top .vf-name small { display: none; } }   /* small phones: version + refresh stay; the name's small line goes */

/* 2.41.0 typing mode (Composer.tsx): while the message box has focus the frame's bottom bar steps aside, so the box sits on the keyboard
   (Claude mobile's way; Leonard 22 Nov 2026: "maintaining parity and 1 style across all voimar apps"). */
html[data-typing] .vf-tabs { display: none !important; }

/* 2.51.0 THE header cluster (HeaderCluster.tsx; Leonard, 27 Nov 2026: "The refresh / back / home / profile pic must 100% be the same
   across all apps"): refresh with the version under it, Back, profile picture, Home - fixed sizes, kit CSS only. A page without React
   (Jinja: Modules Shelf, GYTE, POPIA Bridge) copies this markup:
     <div class="vf-cluster"><button class="vf-rf" data-voimar-refresh><svg viewBox="0 0 24 24"><path d="M21 12a9 9 0 1 1-2.64-6.36"/>
       <path d="M21 3v6h-6"/></svg><span>v1.2.3</span></button><a class="vf-btn vf-back" href="..">..</a><a class="vf-me" ..>..</a>
       <a class="vf-btn vf-home" href="/">..<span>Home</span></a></div>
   and loads voimar-refresh.js, which wires the button and shows the same update pop-up. */
.vf-cluster { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.vf-top .vf-name + .vf-cluster, .vf-top .vf-center + .vf-cluster { margin-left: 0; }
.vf-cluster .vf-btn { height: 44px; min-width: 44px; border-radius: 12px; }
.vf-cluster .vf-home { padding: 0 14px; font-size: 16px; }
.vf-cluster .vf-me { width: 44px; height: 44px; }
.vf-rf { all: unset; box-sizing: border-box; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 44px; height: 44px; padding: 0 4px; cursor: pointer; color: var(--vf-text); -webkit-tap-highlight-color: transparent; }
.vf-rf svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vf-rf span { font: 600 10px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--vf-muted); white-space: nowrap; }
.vf-rf:disabled { opacity: .4; cursor: default; }
.vf-rf:focus-visible { outline: 3px solid #5b7390; outline-offset: 2px; border-radius: 10px; }
.vf-solid .vf-top .vf-rf { color: #fff; } .vf-solid .vf-top .vf-rf span { color: rgb(255 255 255 / .85); }
.vf-rf--new, .vf-rf--new span { color: var(--voimar-update-color, #ffd60a) !important; }
.vf-root:not(.vf-solid) .vf-rf--new, .vf-root:not(.vf-solid) .vf-rf--new span { color: var(--vf-red) !important; }
@keyframes vf-spin { to { transform: rotate(360deg); } }
.vf-spin { animation: vf-spin .8s linear infinite; }
@media (max-width: 1023.98px) { .vf-cluster { gap: 6px; } .vf-cluster .vf-home { padding: 0; } }
@media (max-width: 420px) { .vf-cluster { gap: 4px; } .vf-cluster .vf-btn, .vf-cluster .vf-me, .vf-rf { height: 40px; min-width: 40px; }
  .vf-cluster .vf-me { width: 40px; } .vf-top { gap: 8px; padding-left: 10px; padding-right: 10px; } .vf-top .vf-logo { height: 32px; min-width: 32px; }
  .vf-top .vf-name b { font-size: 15px; } }
@media (max-width: 360px) { .vf-cluster .vf-home { display: inline-flex; } }

/* 2.51.0 the "new version" pop-up (Leonard, 27 Nov 2026: "UPDATE POP UP BUTTON AT TOP RIGHT CORNER"), under the bar on the right */
.vf-upd { animation: vf-upd-in .22s ease-out; }
@keyframes vf-upd-in { from { opacity: 0; transform: translateY(-8px); } }
.vf-upd-go:hover { filter: brightness(1.08); } .vf-upd-x:hover { background: #f1f2f4; }
@media (prefers-reduced-motion: reduce) { .vf-upd { animation: none; } .vf-spin { animation: none; } }

/* 2.51.0 app colour theme (appTheme.ts, AppThemePicker.tsx; Leonard, 27 Nov 2026: "APP COLOUR THEME PICKER", "include default (meaning
   voimar red)"). data-vf-theme on .vf-root: AppFrame writes the saved choice, the picker rewrites it at once. "red" = Default = VOIMAR
   red. The colour wins over an app's own accent / menuColor (so !important, on the variables only). */
.vf-root[data-vf-theme="red"] { --vf-accent: #cc0000 !important; --vf-red: #cc0000 !important; --vf-menu: #cc0000 !important; --vf-menu-text: #fff !important; }
.vf-root[data-vf-theme="black"] { --vf-accent: #0b0b0b !important; --vf-red: #0b0b0b !important; --vf-menu: #0b0b0b !important; --vf-menu-text: #fff !important; }
.vf-root[data-vf-theme="charcoal"] { --vf-accent: #1e2025 !important; --vf-red: #1e2025 !important; --vf-menu: #1e2025 !important; --vf-menu-text: #fff !important; }
.vf-root[data-vf-theme="grey"] { --vf-accent: #e5e7eb !important; --vf-red: #e5e7eb !important; --vf-menu: #e5e7eb !important; --vf-menu-text: #141414 !important; }
.vf-root[data-vf-theme="white"] { --vf-accent: #fff !important; --vf-red: #fff !important; --vf-menu: #fff !important; --vf-menu-text: #141414 !important; }
/* --vf-bar: an app's own coloured bottom bar (vKONNECTOR's call bar) follows the theme; on the light two it stays dark, for its white labels */
.vf-root { --vf-bar: var(--vf-accent); }   /* also the bottom bar (2.51.0) */
.vf-root[data-vf-theme="grey"], .vf-root[data-vf-theme="white"] { --vf-bar: #1b1b1d; }
/* the light two carry dark text, dark lines and dark marks (the marks are white artwork, so they are drawn black) */
.vf-root[data-vf-theme="grey"] .vf-drawer.vf-sa, .vf-root[data-vf-theme="grey"] .vf-drawer.vf-mn, .vf-root[data-vf-theme="grey"] .vf-handle, .vf-root[data-vf-theme="grey"] .vf-handle.vf-sa, .vf-root[data-vf-theme="grey"] .vf-handle.vf-mn, .vf-root[data-vf-theme="grey"] .vf-dl, .vf-root[data-vf-theme="grey"] .vf-hl, .vf-root[data-vf-theme="white"] .vf-drawer.vf-sa, .vf-root[data-vf-theme="white"] .vf-drawer.vf-mn, .vf-root[data-vf-theme="white"] .vf-handle, .vf-root[data-vf-theme="white"] .vf-handle.vf-sa, .vf-root[data-vf-theme="white"] .vf-handle.vf-mn, .vf-root[data-vf-theme="white"] .vf-dl, .vf-root[data-vf-theme="white"] .vf-hl { color: #141414; }
.vf-root[data-vf-theme="grey"] .vf-drawer .vf-head, .vf-root[data-vf-theme="grey"] .vf-drawer .vf-who, .vf-root[data-vf-theme="white"] .vf-drawer .vf-head, .vf-root[data-vf-theme="white"] .vf-drawer .vf-who { border-color: rgb(0 0 0 / .12); }
.vf-root[data-vf-theme="grey"] .vf-drawer:not(.vf-own) a:hover, .vf-root[data-vf-theme="grey"] .vf-fold > summary:hover, .vf-root[data-vf-theme="white"] .vf-drawer:not(.vf-own) a:hover, .vf-root[data-vf-theme="white"] .vf-fold > summary:hover { background: rgb(0 0 0 / .05); }
.vf-root[data-vf-theme="grey"] .vf-drawer:not(.vf-own) a[aria-current="page"], .vf-root[data-vf-theme="white"] .vf-drawer:not(.vf-own) a[aria-current="page"] { background: rgb(0 0 0 / .07); box-shadow: inset 3px 0 0 #cc0000; }
.vf-root[data-vf-theme="grey"] .vf-drawer:not(.vf-own) a .vf-n, .vf-root[data-vf-theme="grey"] .vf-handle .vf-n, .vf-root[data-vf-theme="white"] .vf-drawer:not(.vf-own) a .vf-n, .vf-root[data-vf-theme="white"] .vf-handle .vf-n { background: #cc0000; color: #fff; }
.vf-root[data-vf-theme="grey"] .vf-banner img, .vf-root[data-vf-theme="grey"] .vf-banner--white img, .vf-root[data-vf-theme="grey"] .vf-top .vf-logo, .vf-root[data-vf-theme="white"] .vf-banner img, .vf-root[data-vf-theme="white"] .vf-banner--white img, .vf-root[data-vf-theme="white"] .vf-top .vf-logo { filter: brightness(0); }
.vf-root[data-vf-theme="grey"].vf-solid .vf-top, .vf-root[data-vf-theme="white"].vf-solid .vf-top { color: #141414; border-bottom: 1px solid rgb(0 0 0 / .12); }
.vf-root[data-vf-theme="grey"].vf-solid .vf-top .vf-name small, .vf-root[data-vf-theme="white"].vf-solid .vf-top .vf-name small { color: #5f6368; }
.vf-root[data-vf-theme="grey"].vf-solid .vf-top .vf-btn, .vf-root[data-vf-theme="white"].vf-solid .vf-top .vf-btn { background: rgb(0 0 0 / .04); border-color: rgb(0 0 0 / .14); color: #141414; }
.vf-root[data-vf-theme="grey"].vf-solid .vf-top .vf-me, .vf-root[data-vf-theme="white"].vf-solid .vf-top .vf-me { border-color: rgb(0 0 0 / .14); }
.vf-root[data-vf-theme="grey"].vf-solid .vf-top .vf-rf, .vf-root[data-vf-theme="white"].vf-solid .vf-top .vf-rf { color: #141414; }
.vf-root[data-vf-theme="grey"].vf-solid .vf-top .vf-rf span, .vf-root[data-vf-theme="white"].vf-solid .vf-top .vf-rf span { color: #5f6368; }
.vf-root[data-vf-theme="grey"].vf-solid .vf-top .vf-rf--new, .vf-root[data-vf-theme="grey"].vf-solid .vf-top .vf-rf--new span, .vf-root[data-vf-theme="white"].vf-solid .vf-top .vf-rf--new, .vf-root[data-vf-theme="white"].vf-solid .vf-top .vf-rf--new span { color: #cc0000 !important; }
.vf-root[data-vf-theme="grey"] .vf-me-ini, .vf-root[data-vf-theme="white"] .vf-me-ini { background: #cc0000; color: #fff; }
.vf-root[data-vf-theme="white"] .vf-drawer { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
