/* Vanguard portal: desktop use of the VFPS UI kit (vfps-ui.css is a straight copy of vfps_tools/ui-standard).
   Desktop differences from the tablet kit: denser rem scale, no device safe area, selectable text
   (staff copy ids/serials), page scrolls inside .vui-screen. Only --vui-* tokens for colours. */

:root.vui {
    font-size: clamp(12px, calc(100vw / 110), 17px);
    --vui-top-inset: 0px;
    --vui-bottom-inset: 0px;
}

.vui body,
.vui #app {
    -webkit-user-select: text;
    user-select: text;
}

/* background art as the THEME behind everything (Oliver 2026-11-28, option C): city + the V on the right, only a
   light navy fade (the art is already dark on the left); the panels are slightly see-through with a soft blur */
.vg-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, #020a1499 0%, #020a1466 40%, #020a1426 72%, #020a1400 100%),
        linear-gradient(0deg, #020a14a6 0%, #020a1400 32%),
        url("bg.webp") right center / cover no-repeat;
    background-color: var(--vui-bg-page);
}

:root.vui {
    --vui-panel: #081624b8;
}
/* no backdrop-filter blur: it made the whole portal laggy (redrawn on every scroll / live update; this server renders in software over RDP), Oliver 2026-11-28 */

/* ---------------------------------------------------------------- gate: login / opening split
   Two diagonal covers (split line top-left -> bottom-right) charge up and slide apart like the boosting
   contract cards (prp-boosting tablet/css/reveal.css): shake + flickering seam, then beam, flash, ring.
   transform / opacity only. Used by login.html (closed, with the button) and app.js (opening). */
.vg-gate { position: fixed; inset: 0; z-index: 60; overflow: hidden; --g-glow: #84d4ff; --g-charge: 700ms; --g-split: 1400ms; }
.vg-gate > div { position: absolute; pointer-events: none; }
.vg-gate-half {
    inset: 0;
    background:
        radial-gradient(110% 85% at 50% 50%, #0b213699 0%, #030b16d9 70%),
        url("bg.webp") right center / cover no-repeat,
        #020a14;
    will-change: transform;
}
.vg-gate-half.ld { clip-path: polygon(0 0, 0 100%, 100% 100%); }
.vg-gate-half.ru { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.vg-gate-seam {
    inset: 0;
    background: linear-gradient(to top right, transparent calc(50% - 1px), var(--g-glow) 50%, transparent calc(50% + 1px));
    opacity: .35;
}
.vg-gate-glow { inset: 0; background: radial-gradient(60% 60% at 50% 50%, #84d4ff40 0%, transparent 70%); opacity: 0; }
.vg-gate-beam {
    inset: -10%;
    background: linear-gradient(to top right, transparent calc(50% - 8px), var(--g-glow) calc(50% - 3px), #ffffff 50%, var(--g-glow) calc(50% + 3px), transparent calc(50% + 8px));
    opacity: 0;
}
.vg-gate-flash { inset: 0; background: radial-gradient(circle at 50% 50%, #ffffff 0%, var(--g-glow) 30%, transparent 70%); opacity: 0; }
.vg-gate-ring {
    left: 50%; top: 50%; width: 10rem; height: 10rem; margin: -5rem 0 0 -5rem;
    border: 2px solid #ffffff; border-radius: 50%;
    box-shadow: 0 0 1rem var(--g-glow);
    opacity: 0;
}
.vg-gate .vg-gate-brand {
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; pointer-events: auto;
}
.vg-gate-title { font-family: var(--vui-font-mono); font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: .32em; padding-left: .32em; color: #fff; text-shadow: 0 0 1.5rem #84d4ff99; }
.vg-gate-sub { font-family: var(--vui-font-mono); font-size: .95rem; letter-spacing: .3em; color: var(--vui-accent); }
.vg-gate-note { font-size: .85rem; color: var(--vui-text-soft); }

/* charge-up */
.vg-gate.charging .vg-gate-half { animation: g-shake var(--g-charge) linear both; }
.vg-gate.charging .vg-gate-seam { animation: g-flicker var(--g-charge) linear forwards; }
.vg-gate.charging .vg-gate-glow { animation: g-in var(--g-charge) ease-in forwards; }
@keyframes g-shake {
    0%, 100% { transform: translate(0, 0); } 15% { transform: translate(-2px, 1px); } 30% { transform: translate(2px, -1px); }
    45% { transform: translate(-1px, 2px); } 60% { transform: translate(3px, 0); } 75% { transform: translate(-3px, -1px); } 90% { transform: translate(2px, 2px); }
}
@keyframes g-flicker { 0% { opacity: .35; } 20% { opacity: .8; } 28% { opacity: .2; } 50% { opacity: .9; } 58% { opacity: .4; } 80% { opacity: 1; } 100% { opacity: 1; } }
@keyframes g-in { from { opacity: 0; } to { opacity: 1; } }

/* split: covers slide off diagonally (same curve as the contract cards) */
.vg-gate.open { pointer-events: none; }
.vg-gate.open .vg-gate-half.ld { animation: g-ld var(--g-split) cubic-bezier(.44, .26, .39, -.45) forwards; }
.vg-gate.open .vg-gate-half.ru { animation: g-ru var(--g-split) cubic-bezier(.44, .26, .39, -.45) forwards; }
.vg-gate.open .vg-gate-seam, .vg-gate.open .vg-gate-brand, .vg-gate.open .vg-gate-glow { animation: g-out .3s ease-out forwards; }
.vg-gate.open .vg-gate-beam { animation: g-beam .8s ease-out forwards; }
.vg-gate.open .vg-gate-flash { animation: g-flash .5s ease-out forwards; }
.vg-gate.open .vg-gate-ring { animation: g-ring 1.2s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes g-ld { from { transform: translate(0, 0); } to { transform: translate(-100%, 100%); } }
@keyframes g-ru { from { transform: translate(0, 0); } to { transform: translate(100%, -100%); } }
@keyframes g-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes g-beam { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes g-flash { 0% { opacity: .8; } 100% { opacity: 0; } }
@keyframes g-ring { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(5); } }
.vg-gate.open .vg-gate-brand { transform: translate(-50%, -50%); }

.vui-app { position: relative; z-index: 1; background: transparent; }
/* the kit gives `.vui #app` a solid page background (id beats class): it hid the artwork completely (found 2026-11-28) */
.vui #app.vui-app { background: transparent; }
.vui-screen { gap: 1.75rem; padding: 1.5rem 2.5rem 2.5rem; }

/* ---------------------------------------------------------------- top bar */
.vg-brand {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin-right: 1.5rem;
    font-family: var(--vui-font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .32em;
    color: var(--vui-text);
    text-shadow: 0 0 .75rem #84d4ff59;
    white-space: nowrap;
}

.vg-brand b { color: var(--vui-accent); font-weight: 700; }
.vg-brand small { font-size: .7rem; letter-spacing: .12em; color: var(--vui-muted); font-weight: 400; }
.vg-right { display: flex; align-items: center; gap: .75rem; }
.vg-link { color: var(--vui-muted); font-size: .8rem; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.vg-link:hover { color: var(--vui-text); }
.vg-seg { display: flex; border: 1px solid var(--vui-line-field); }
.vg-seg span { padding: .35rem .6rem; font-size: .75rem; color: var(--vui-muted); cursor: pointer; }
.vg-seg span.active { background: var(--vui-accent-10); color: var(--vui-accent); }
.vg-viewer { font-size: .8rem; color: var(--vui-text-soft); cursor: pointer; border-bottom: 1px dashed var(--vui-line-strong); }

/* ---------------------------------------------------------------- stats */
.vg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.vg-stat { padding: 1.1rem 1.25rem; border: 1px solid var(--vui-line); background: var(--vui-card-bg); }
.vg-stat-label { font-family: var(--vui-font-mono); font-size: .72rem; text-transform: uppercase; color: var(--vui-muted); letter-spacing: .06em; }
.vg-stat-value { margin-top: .4rem; font-family: var(--vui-font-mono); font-size: 2rem; }
.vg-stat.alert .vg-stat-value { color: var(--vui-error); }

.vg-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.vg-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.vg-panel-title { font-family: var(--vui-font-mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vui-text-soft); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.vui-panel { gap: 1rem; padding: 1.25rem 1.5rem; }

/* hourly bars */
.vg-bars { display: flex; align-items: flex-end; gap: 3px; height: 5rem; }
.vg-bars i { flex: 1; min-height: 2px; background: linear-gradient(0deg, #3d8fd6, var(--vui-accent)); opacity: .85; }
.vg-bars-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--vui-text-dim); font-family: var(--vui-font-mono); }

/* category breakdown */
.vg-cats { display: flex; flex-direction: column; gap: .45rem; }
.vg-cat-row { display: grid; grid-template-columns: 7.5rem 1fr 3.5rem; align-items: center; gap: .75rem; font-size: .8rem; cursor: pointer; }
.vg-cat-row:hover { color: var(--vui-accent); }
.vg-cat-bar { height: .45rem; background: var(--vui-line); }
.vg-cat-bar i { display: block; height: 100%; background: rgba(var(--c), .8); }
.vg-cat-row b { font-family: var(--vui-font-mono); font-weight: 400; text-align: right; }

/* ---------------------------------------------------------------- event list */
.vg-list { display: flex; flex-direction: column; gap: 2px; }
.vg-ev {
    display: grid;
    grid-template-columns: 9.5rem 7.5rem minmax(7rem, 11rem) minmax(8rem, 13rem) minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    padding: .5rem .75rem;
    border: 1px solid var(--vui-line);
    background: #08162499;
    font-size: .82rem;
    cursor: pointer;
    transition: border-color var(--vui-fast), background var(--vui-fast);
}
.vg-ev:hover { border-color: var(--vui-line-strong); background: #0f2d4799; }
.vg-ev.compact { grid-template-columns: 5.5rem 7rem minmax(0, 1fr); }
.vg-ev .t { font-family: var(--vui-font-mono); color: var(--vui-text-soft); white-space: nowrap; }
.vg-ev .ty { color: var(--vui-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-ev .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-ev .who small { color: var(--vui-muted); margin-left: .35rem; font-family: var(--vui-font-mono); }
.vg-ev .msg { color: var(--vui-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-day { margin: .9rem 0 .35rem; font-family: var(--vui-font-mono); font-size: .75rem; color: var(--vui-accent); letter-spacing: .08em; text-transform: uppercase; }
.vg-day:first-child { margin-top: 0; }

.vui-tag.vg-cat { padding: .25rem .5rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; }

/* ---------------------------------------------------------------- search form */
.vg-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem 1rem; align-items: end; }
.vg-form .wide { grid-column: span 2; }
.vg-form label { display: flex; flex-direction: column; gap: .35rem; font-family: var(--vui-font-mono); font-size: .7rem; text-transform: uppercase; color: var(--vui-muted); letter-spacing: .05em; }
.vg-form .vui-input { min-width: 0; }
.vg-form .vui-input :is(input, select) { padding: .6rem 0; font-size: .9rem; }
.vui-input select { width: 100%; border: none; outline: none; background: transparent; color: var(--vui-text); font-family: var(--vui-font); font-size: .9rem; padding: .6rem 0; }
.vui-input select option { background: var(--vui-bg-menu); color: var(--vui-text); }
.vui-input input[type="datetime-local"] { color-scheme: dark; }
.vg-form-actions { display: flex; gap: .75rem; align-items: center; justify-content: flex-end; grid-column: 1 / -1; }
.vg-check { display: flex !important; flex-direction: row !important; align-items: center; gap: .6rem !important; cursor: pointer; }
.vg-check input { accent-color: var(--vui-accent); width: 1rem; height: 1rem; }
.vg-result-head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--vui-muted); font-family: var(--vui-font-mono); }
.vg-more { display: flex; justify-content: center; padding-top: .5rem; }

/* ---------------------------------------------------------------- player */
.vg-player-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.vg-player-name { font-family: var(--vui-font-mono); font-size: 2rem; }
.vg-ids { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.vg-kv { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .45rem 1rem; font-size: .82rem; }
.vg-kv dt { font-family: var(--vui-font-mono); font-size: .7rem; text-transform: uppercase; color: var(--vui-muted); padding-top: .1rem; }
.vg-kv dd { margin: 0; word-break: break-all; }
.vg-mini { display: flex; flex-direction: column; gap: .4rem; }
.vg-mini .vui-row { padding: .55rem .75rem; font-size: .82rem; cursor: pointer; }
.vg-mini .vui-row:hover { border-color: var(--vui-line-strong); }
.vg-mini .vui-row.bad { border-color: #d8515180; background: #d851511a; }
.vg-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.vg-chip { padding: .3rem .6rem; border: 1px solid var(--vui-line-field); font-size: .72rem; text-transform: uppercase; color: var(--vui-muted); cursor: pointer; letter-spacing: .03em; }
.vg-chip:hover { color: var(--vui-text); border-color: var(--vui-line-strong); }
.vg-chip.active { border-color: var(--vui-accent); background: var(--vui-accent-10); color: var(--vui-accent); }
.vg-chip b { font-family: var(--vui-font-mono); font-weight: 400; margin-left: .35rem; color: var(--vui-text-soft); }

/* ---------------------------------------------------------------- detail drawer */
.vg-drawer-layer { position: fixed; inset: 0; z-index: 10; background: #00000080; display: flex; justify-content: flex-end; }
.vg-drawer {
    width: min(44rem, 92vw);
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem 2rem 2.5rem;
    border-left: 1px solid var(--vui-line-strong);
    background: var(--vui-panel-sheen), var(--vui-modal-bg);
    box-shadow: -1rem 0 3rem #00000080;
}
.vg-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.vg-drawer-title { font-family: var(--vui-font-mono); font-size: 1.35rem; }
.vg-drawer-msg { font-size: 1rem; line-height: 1.45; padding: 1rem 1.25rem; border: 1px solid var(--vui-line); background: var(--vui-card-bg); }
.vg-subjects { display: flex; flex-wrap: wrap; gap: .5rem; }
.vg-subject { cursor: pointer; }
.vg-subject:hover { filter: brightness(1.35); }
.vg-subject small { color: var(--vui-muted); margin-left: .35rem; }
/* "Involveret": one line per person */
.vg-people { display: grid; gap: 1px; border: 1px solid var(--vui-line); background: var(--vui-line); flex: none; }
.vg-person { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: .75rem; align-items: center; padding: .55rem .8rem; background: #03070d; }
.vg-person.main { border-left: 3px solid var(--vui-accent); }
.vg-person-name { font-weight: 700; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.vg-person-name .vg-subject { color: var(--vui-accent); cursor: pointer; }
.vg-person-role { padding: 0 .35rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--vui-text-soft); border: 1px solid var(--vui-line-strong); }
.vg-arm { border-color: rgba(255, 107, 107, .55); }
.vg-person-role.flagged { color: #fff; background: rgb(255, 0, 170); border-color: transparent; }
@media (max-width: 760px) { .vg-person { grid-template-columns: 1fr; } }

/* fight report (drawer): one line per hit. flex: none = the drawer column must never squeeze it (it did, 2026-11-28) */
.vg-drawer.wide { width: min(80rem, 97vw); }
.vg-fight-block { flex: none; }
.vg-fight-sides { display: grid; gap: .25rem; margin-bottom: .6rem; font-size: .85rem; color: var(--vui-text-soft); }
.vg-fight { display: grid; gap: 1px; margin-bottom: .4rem; border: 1px solid var(--vui-line); background: var(--vui-line); }
.vg-fight-row { display: grid; grid-template-columns: 3.8rem minmax(0, 1fr) 7.5rem 4.2rem 9.5rem 12rem; gap: .75rem; align-items: center; padding: .35rem .7rem; background: #03070d; font-size: .86rem; border-left: 3px solid transparent; }
.vg-fight-via { margin-left: .4rem; padding: 0 .35rem; font-size: .72rem; color: var(--vui-text-soft); border: 1px dashed var(--vui-line-strong); }
.vg-ok { color: var(--vui-ok); font-weight: 700; }
.vg-bad { color: var(--vui-error); font-weight: 700; }
.vg-warn { color: var(--vui-warn); font-weight: 700; }
.vg-fight-headrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vui-muted); background: #060c15; }
.vg-fight-row.flagged { border-left-color: rgb(255, 0, 170); background: #1a0414; }
.vg-fight-row.kill { border-left-color: var(--vui-error); }
.vg-fight-t { font-family: var(--vui-font-mono, Consolas, monospace); color: var(--vui-muted); font-size: .8rem; }
.vg-fight-head { color: var(--vui-error); font-weight: 700; }
.vg-fight-kill { margin-left: .4rem; padding: 0 .35rem; font-size: .72rem; font-weight: 700; color: #fff; background: var(--vui-error); }
.vg-fight-flag { margin-left: .4rem; padding: 0 .35rem; font-size: .72rem; font-weight: 700; color: #fff; background: rgb(255, 0, 170); }
@media (max-width: 760px) { .vg-fight-row { grid-template-columns: 3.2rem minmax(0, 1fr); } .vg-fight-row > :nth-child(n+3) { grid-column: 2; font-size: .78rem; } .vg-fight-headrow { display: none; } }

.vg-json { margin: 0; padding: 1rem; border: 1px solid var(--vui-line); background: #03070dcc; font-family: Consolas, monospace; font-size: .78rem; line-height: 1.45; color: var(--vui-accent-2-light); white-space: pre-wrap; word-break: break-word; }
.vg-section-label { font-family: var(--vui-font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vui-muted); }

/* overview fits the window: page doesn't scroll, the latest-logs list and the side column scroll inside */
.vui-screen.vg-fit { overflow: hidden; }
.vg-fit .vg-grid { flex: 1; min-height: 0; align-items: stretch; }
.vg-fit .vg-col { min-height: 0; }
.vg-fit .vg-side { overflow: hidden; }
.vg-fit .vg-side > .vui-panel { flex-shrink: 0; }
.vg-fit .vg-fill,
.vg-fit .vg-side > .vui-panel.vg-fill { flex: 1 1 0; min-height: 6rem; }
.vg-fill .vg-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-right: .25rem; }

.vg-error { padding: 1rem 1.25rem; border: 1px solid var(--vui-error-line); background: #d851511a; color: var(--vui-error); font-size: .9rem; }
.vg-note { font-size: .78rem; color: var(--vui-text-dim); }
.vui-loader { margin: 2rem auto; }

@media (max-width: 1100px) {
    .vg-grid { grid-template-columns: minmax(0, 1fr); }
    .vg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vg-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vg-ev { grid-template-columns: 8.5rem 6.5rem minmax(0, 1fr); }
    .vg-ev .ty, .vg-ev .who { display: none; }
}

/* ---------------------------------------------------------------- live feed */
.vg-live-dot { width: .6rem; height: .6rem; background: var(--vui-ok); box-shadow: 0 0 .5rem var(--vui-ok); animation: vg-blink 1.6s ease-in-out infinite; }
.vg-live-dot.paused { background: var(--vui-warn); box-shadow: 0 0 .5rem var(--vui-warn); animation: none; }
@keyframes vg-blink { 50% { opacity: .35; } }
.vg-fit > .vui-panel.vg-fill { flex: 1 1 0; min-height: 0; }
.vg-ev.vg-new { animation: vg-in .6s ease-out; }
@keyframes vg-in { from { opacity: 0; transform: translateY(-.4rem); } to { opacity: 1; transform: none; } }
.vg-ev.is-alert { border-color: #d8515199; background: linear-gradient(90deg, #ff3b2f26, #08162499 45%); }

/* ---------------------------------------------------------------- assets (Ejendele) + serial location */
.vg-views span { padding: .45rem .9rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.vg-asset-head { font-size: 1.1rem; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.vg-items { display: flex; flex-wrap: wrap; gap: .35rem; }
.vg-item { padding: .3rem .55rem; border: 1px solid var(--vui-line); background: #08162499; font-size: .78rem; white-space: nowrap; }
.vg-item.serial { border-color: #ff6b6b66; background: linear-gradient(90deg, #ff6b6b1a, #08162499); cursor: pointer; }
.vg-item.serial:hover { border-color: var(--vui-error); }
.vg-item small { margin-left: .35rem; font-family: var(--vui-font-mono); color: var(--vui-text-dim); }
.vg-car { display: flex; flex-direction: column; gap: .6rem; padding: .85rem 1rem; border: 1px solid var(--vui-line); background: var(--vui-card-bg); }
.vg-car + .vg-car { margin-top: .5rem; }
.vg-car-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.vg-car-head .vg-ids { margin-top: 0; }
.vg-plate { display: inline-block; padding: .15rem .5rem; border: 1px solid var(--vui-line-strong); background: #c9ecff14; font-family: var(--vui-font-mono); letter-spacing: .08em; color: var(--vui-accent-2-light); }
.vg-car-stats { font-size: .75rem; color: var(--vui-text-soft); }
.vg-car-inv { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.25rem; }
.vg-car-inv .vg-section-label, .vg-stash .vg-section-label { margin-bottom: .35rem; }
.vg-stash { padding: .5rem 0; border-top: 1px solid var(--vui-line); }
.vg-stash:first-child { border-top: none; }
@media (max-width: 1100px) { .vg-car-inv { grid-template-columns: 1fr; } }

.vui-btn.vg-small { padding: .2rem .5rem; font-size: .65rem; margin-left: .5rem; vertical-align: middle; }
.vg-tp { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Phase 8: map, cases, watchlist, together */
.vg-map-form { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.vg-map-wrap { align-items: center; }
.vg-map-wrap canvas, .vg-mini-map canvas { display: block; border: 1px solid var(--vui-line); cursor: crosshair; }
.vg-mini-map { display: flex; justify-content: center; }
.vg-select { background: var(--vui-field); color: var(--vui-text); border: 1px solid var(--vui-line-field); font-family: var(--vui-font); padding: .35rem .5rem; color-scheme: dark; }
.vg-select option { background: var(--vui-bg-menu); }
.vg-inline { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.vg-inline .vui-input { flex: 1; min-width: 10rem; }
.vg-note-text { white-space: pre-wrap; font-size: .9rem; line-height: 1.45; }

/* profile: which account + how many characters (2026-11-29) */
.vg-account-line { margin: .2rem 0 .6rem; font-size: .9rem; color: var(--vui-text-soft); }

/* cases v2 (2026-11-29): dialog that also works in-game, deleted banner, log number, red button */
.vg-ask-layer { position: fixed; inset: 0; z-index: 80; background: #000000a6; display: grid; place-items: center; }
.vg-ask { width: min(32rem, 92vw); gap: 1rem; }
.vg-ask-text { font-size: 1rem; line-height: 1.45; }
.vg-deleted { border-color: var(--vui-error); color: var(--vui-error); font-weight: 700; }
.vg-tp-gap { flex: 1; }
.vg-lognum { color: var(--vui-text-soft); font-size: .85rem; margin-right: .5rem; align-self: center; }
.vg-audit-row { align-items: flex-start; }
.vg-audit-detail { color: var(--vui-text-soft); }

/* fewer corner arrows (Oliver 2026-11-29): buttons keep only the top-left one, inputs none. Vanguard only; the kit
   (vfps_tools/ui-standard) is unchanged until Oliver decides it should apply to every VFPS UI */
.vui-btn::after { display: none; }
.vui-input::before, .vui-input::after { display: none; }

/* player search dropdown (case "Tilføj spiller") */
.vg-pick-wrap { position: relative; }
.vg-pick { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 30; max-height: 18rem; overflow-y: auto; border: 1px solid var(--vui-line-strong); background: #050d18; }
.vg-pick-row { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem .7rem; cursor: pointer; font-size: .9rem; }
.vg-pick-row:hover, .vg-pick-row.active { background: var(--vui-accent-10, #84d4ff1a); }

/* general back button, left of the page title (Oliver 2026-11-29) */
/* just an arrow, as tall as the page title, accent colour, glow on hover (Oliver: no text, theme-fit) */
.vui-page-head .vg-back { order: -1; display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; margin-right: .5rem; padding: 0; border: 0; background: none; cursor: pointer; font-size: 1.55rem; color: var(--vui-accent); align-self: center; transition: transform .15s ease, filter .15s ease; }
.vui-page-head .vg-back svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; }
.vui-page-head .vg-back:hover { transform: translateX(-3px); filter: drop-shadow(0 0 .35rem #84d4ffb3); }
.vui-page-head .vg-back + * { margin-right: auto; }

/* small icon button next to a title (rename case), same style as the back arrow (2026-11-29) */
.vg-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: .7em; height: .7em; margin-left: .55rem; padding: 0; border: 0; background: none; cursor: pointer; color: var(--vui-text-soft); vertical-align: middle; transition: color .15s ease, filter .15s ease; }
.vg-icon-btn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: miter; }
.vg-icon-btn:hover { color: var(--vui-accent); filter: drop-shadow(0 0 .35rem #84d4ffb3); }

/* copy-link button: small clean box + chain icon (top to the right), theme line + accent, glow on hover (2026-11-29) */
.vg-copy { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.1rem; height: 2.1rem; padding: .42rem; border: 1px solid var(--vui-line-strong); background: transparent; color: var(--vui-accent); cursor: pointer; align-self: center; transition: border-color .15s ease, filter .15s ease, background .15s ease; }
.vg-copy svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.vg-copy:hover { border-color: var(--vui-accent); background: #84d4ff12; filter: drop-shadow(0 0 .35rem #84d4ff80); }

/* ONE control height for everything that sits next to each other (Oliver 2026-11-29: "better the same size and a
   little too big than different sizes and goofy"): buttons, copy-link box, dropdowns, input fields */
:root.vui { --vg-ctl: 2.75rem; }
.vui-btn { height: var(--vg-ctl); padding-top: 0; padding-bottom: 0; line-height: 1; box-sizing: border-box; }
.vui-btn.vg-small { height: auto; }               /* the tiny "Fjern" inside a row stays small on purpose */
.vg-select { height: var(--vg-ctl); padding: 0 .75rem; font-size: .875rem; box-sizing: border-box; }
.vui-input { min-height: var(--vg-ctl); box-sizing: border-box; }
.vui-input input { height: calc(var(--vg-ctl) - 2px); padding-top: 0; padding-bottom: 0; font-size: .95rem; }
.vg-copy { width: var(--vg-ctl); height: var(--vg-ctl); padding: .7rem; box-sizing: border-box; }
.vg-drawer-head .vg-right, .vg-inline, .vg-tp { align-items: center; }

/* case header: one row of tags, the creation date under them (Oliver 2026-11-29) */
.vg-case-tags { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.vg-case-tags .vg-right { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem; }
.vg-case-created { font-size: .8rem; color: var(--vui-text-soft); font-family: var(--vui-font-mono); }
.vg-info-tag { --c: 132, 212, 255; }
.vg-info-tag b { color: var(--vui-text); font-weight: 700; }
/* the tags in the case header are as tall as the button beside them; the pencil follows the title size */
.vg-case-tags .vui-tag { height: var(--vg-ctl); display: inline-flex; align-items: center; gap: .35rem; padding: 0 .85rem; font-size: .85rem; box-sizing: border-box; }
.vg-icon-btn { font-size: inherit; }

/* x to remove a responsible (2026-11-29) */
.vg-x { width: 1.9rem; height: 1.9rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--vui-line-field); background: transparent; color: var(--vui-text-soft); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.vg-x:hover { border-color: var(--vui-error); color: var(--vui-error); }
.vg-inline .vg-staff-select { flex: 1; min-width: 12rem; }

/* top line: tabs, DA/EN and the close X share one height (Oliver 2026-11-29) */
:root.vui { --vg-top: 2.5rem; }
.vui-topbar .vui-tab { height: var(--vg-top); padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.vg-seg { height: var(--vg-top); box-sizing: border-box; align-items: stretch; }
.vg-seg span { display: flex; align-items: center; padding: 0 .8rem; font-size: .95rem; font-weight: 600; letter-spacing: .04em; }
/* crisp X close button */
.vg-close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--vg-top); height: var(--vg-top); padding: .68rem; border: 1px solid var(--vui-line-field); background: transparent; color: var(--vui-text-soft); cursor: pointer; box-sizing: border-box; transition: border-color .15s ease, color .15s ease, filter .15s ease; }
.vg-close svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }
.vg-close:hover { border-color: var(--vui-accent); color: #fff; filter: drop-shadow(0 0 .35rem #84d4ff80); }
.vg-drawer-head .vg-close { width: var(--vg-ctl); height: var(--vg-ctl); padding: .78rem; }

/* front page flipped (Oliver 2026-11-29): side boxes on the LEFT, latest logs on the RIGHT */
.vg-grid.vg-ov-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.vg-grid.vg-ov-flip > .vg-side { order: -1; }
/* right column: latest logs ~60%, latest staff ~40% (Oliver 2026-11-29, adjust here) */
.vg-fit .vg-ov-latest { flex: 3 1 0; }
.vg-fit .vg-ov-staff { flex: 2 1 0; }

/* 24 h graph hover tooltip: total + top 10 people that hour (2026-11-29) */
.vg-bar-tip { position: fixed; z-index: 90; display: none; min-width: 12rem; max-width: 18rem; padding: .55rem .7rem; border: 1px solid var(--vui-line-strong); background: #050d18f2; font-size: .78rem; pointer-events: none; box-shadow: 0 .4rem 1.2rem #00000080; }
.vg-bar-tip-head { margin-bottom: .35rem; color: var(--vui-text-soft); font-family: var(--vui-font-mono); }
.vg-bar-tip-head b { color: var(--vui-accent); }
.vg-bar-tip-list > div { display: flex; justify-content: space-between; gap: .8rem; padding: .1rem 0; }
.vg-bar-tip-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-bar-tip-list b { color: var(--vui-text); font-family: var(--vui-font-mono); }
.vg-bars i { cursor: default; }
.vg-bars i:hover { filter: brightness(1.35); }

/* folded "Data" section in the log drawer: arrow right = folded, down = open (Oliver 2026-11-29) */
.vg-fold { display: flex; flex-direction: column; gap: .6rem; flex: none; }
.vg-fold-head { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; padding: .2rem 0; border: 0; background: none; cursor: pointer; color: var(--vui-accent); }
.vg-fold-head svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; transition: transform .15s ease; }
.vg-fold-head[aria-expanded="true"] svg { transform: rotate(90deg); }
.vg-fold-head:hover .vg-section-label { color: var(--vui-text); }
.vg-fold-head:hover svg { filter: drop-shadow(0 0 .3rem #84d4ffb3); }

/* case list rows: tags all the same size, clear meta text (2026-11-29) */
.vg-case-row { align-items: center; gap: 1rem; }
.vg-case-row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-case-row-tags { display: flex; align-items: center; gap: .45rem; flex: none; }
.vg-case-row-tags .vui-tag { height: 1.9rem; display: inline-flex; align-items: center; padding: 0 .7rem; font-size: .78rem; box-sizing: border-box; }
.vg-case-row-meta { margin-left: .4rem; font-size: .78rem; color: var(--vui-text-soft); white-space: nowrap; }
/* the notes field */
.vg-notes { gap: .8rem; }
.vg-notes-text { width: 100%; min-height: 11rem; resize: vertical; box-sizing: border-box; padding: .8rem .9rem; border: 1px solid var(--vui-line-field); background: var(--vui-field); color: var(--vui-text); font-family: var(--vui-font); font-size: .95rem; line-height: 1.5; outline: none; }
.vg-notes-text:focus { border-color: var(--vui-accent); }
.vg-notes-text[readonly] { opacity: .85; }

/* view as role (Management): dropdown in the top line + a clear banner while active (2026-11-29) */
.vui-topbar .vg-viewas { height: var(--vg-top); min-width: 10rem; }
.vg-viewas-on { display: inline-flex; align-items: center; height: var(--vg-top); padding: 0 .8rem; border: 1px solid #ffb326; background: #ffb3261a; color: #ffb326; font-size: .85rem; letter-spacing: .04em; box-sizing: border-box; }
.vg-viewas-on b { margin-left: .35rem; color: #fff; }
.vui-topbar .vg-right .vui-btn { height: var(--vg-top); }

/* the small "Fjern" on a case line: no corner arrow, same height as the "who · when" text beside it (2026-11-29) */
.vg-item-meta { display: inline-flex; align-items: center; gap: .6rem; }
.vg-item-meta .vui-mono { line-height: 1.9rem; font-size: .8rem; }
.vui-btn.vg-small { height: 1.9rem; padding: 0 .7rem; margin-left: 0; font-size: .72rem; line-height: 1; }
.vui-btn.vg-small::before, .vui-btn.vg-small::after { display: none; }
