/* Vindicari Portal. Flat, dense, console-style. Same tokens and parts as the Vindicari Pay app. */
@font-face { font-family: 'Space Grotesk'; src: url(fonts/space-grotesk-latin.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono-latin.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }

body.vp-page {
  --bg: #07100B;
  --side: #0A140F;
  --panel: #0E1712;
  --raise: #131F18;
  --field: #09130D;
  --line: #1C2B22;
  --line-2: #2A3D31;
  --text: #ECEFEA;
  --muted: #8A9A90;
  --dim: #5D6E63;
  --brand: #0FC059;
  --brand-hi: #40F17E;
  --brand-deep: #017B3B;
  --brand-soft: rgba(15, 192, 89, .10);
  --alert: #E5484D;
  --alert-text: #F2686C;
  --alert-soft: rgba(229, 72, 77, .10);
  --warn: #E2A336;
  --warn-soft: rgba(226, 163, 54, .10);
  --r: 6px;
  --r-lg: 8px;
  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 13.5px/1.5 var(--body); letter-spacing: -.003em; -webkit-font-smoothing: antialiased;
}
html:has(body.vp-page) { margin-top: 0 !important; background: #07100B; }
.vp, .vp *, .vp-gate, .vp-gate * { box-sizing: border-box; }
.vp input, .vp textarea, .vp select, .vp button, .vp-gate input, .vp-gate button { font: inherit; color: inherit; }
.vp button { cursor: pointer; }
.vp [hidden] { display: none !important; }
.vp svg, .vp-gate svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vp a { color: var(--brand); }
.vp ::selection { background: rgba(15, 192, 89, .28); }
.vp ::-webkit-scrollbar { width: 10px; height: 10px; }
.vp ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--bg); }
.vp ::-webkit-scrollbar-track { background: transparent; }
.vp h1, .vp h2, .vp h3, .vp-gate h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; margin: 0; color: var(--text); }
.vp p { margin: 0 0 10px; }
.vp b, .vp strong { font-weight: 600; }
.vp .mono-label { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.vp .hint { color: var(--muted); font-size: 12.5px; }
.vp .muted { color: var(--dim); }
.vp .mono { font-family: var(--mono); font-size: 12.5px; }

/* ------------------------------------------------------------------ shell */
.vp { display: flex; height: 100vh; overflow: hidden; }
.vp-side { width: 224px; flex: none; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 60; }
.vp-brand { display: flex; align-items: center; gap: 9px; height: 56px; flex: none; padding: 0 18px; border-bottom: 1px solid var(--line); }
.vp-brand__mark { width: 22px !important; height: 18px !important; }
.vp-brand__word { font: 600 13px/1 var(--display); letter-spacing: .16em; }
.vp-brand__tag { font: 500 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--brand); border: 1px solid rgba(15, 192, 89, .35); padding: 3px 4px; border-radius: 3px; }
.vp-nav { flex: 1; padding: 10px; overflow-y: auto; }
.vp-nav__label { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 16px 10px 8px; }
.vp-nav__label:first-child { padding-top: 8px; }
.vp-nav__btn {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px;
  border: 0; border-radius: var(--r); background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; text-align: left;
}
.vp-nav__btn span { flex: 1; }
.vp-nav__btn:hover { background: var(--raise); color: var(--text); }
.vp-nav__btn[aria-current="page"] { background: var(--raise); color: var(--text); }
.vp-nav__btn[aria-current="page"]::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 2px; background: var(--brand); border-radius: 0 2px 2px 0; }
.vp-nav__btn[aria-current="page"] svg { color: var(--brand); }
.vp-nav__count { font: 600 10px/1 var(--mono); font-style: normal; color: #04140A; background: var(--warn); border-radius: 9px; padding: 3px 6px; }
.vp-side__foot { border-top: 1px solid var(--line); padding: 10px; display: flex; align-items: center; gap: 8px; }
.vp-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px; }
.vp-me__txt { display: flex; flex-direction: column; min-width: 0; }
.vp-me__txt strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-me__txt small { font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.vp-iconbtn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--muted) !important; }
.vp-iconbtn:hover { color: var(--text) !important; background: var(--raise); }
.vp-avatar, .vp .avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: #15241B; border: 1px solid var(--line-2); color: var(--brand-hi); font: 600 10.5px/1 var(--mono); letter-spacing: .02em; }
.vp .avatar--lg { width: 38px; height: 38px; font-size: 12.5px; }

.vp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vp-top { height: 56px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.vp-top h1 { font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-top__right { display: flex; align-items: center; gap: 10px; }
.vp-menu { display: none; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--muted); }
.vp-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.vp-chip:hover { color: var(--text); background: var(--raise); }
.vp-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.vp-chip.is-in i { background: var(--brand); }
.vp-chip.is-in { color: var(--text); }
.vp-chip.is-long i { background: var(--warn); }
.vp-chip .t { font-family: var(--mono); font-size: 12px; }
.vp-reveal[aria-pressed="true"] { color: var(--warn); border-color: rgba(226, 163, 54, .45); background: var(--warn-soft); }
.vp-content { flex: 1; overflow-y: auto; padding: 24px 28px 48px; }
.vp-panel { animation: vp-fade .14s ease-out; max-width: 1240px; }
.vp-panel[data-panel="docs"] { max-width: none; }
.vp-loading { color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 40px 0; }
.vp-loading::after { content: '...'; }
.vp-scrim { display: none; }

/* ------------------------------------------------------------------ buttons */
.vp .btn, .vp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: var(--r);
  background: var(--raise); border: 1px solid var(--line-2); color: var(--text); text-decoration: none;
  font-weight: 500; font-size: 13px; white-space: nowrap; transition: background .12s, border-color .12s; cursor: pointer;
}
.vp .btn:hover, .vp-btn:hover { background: #18261D; border-color: #355042; color: var(--text); }
.vp .btn:disabled { opacity: .45; cursor: default; }
.vp .btn--primary, .vp-btn { background: var(--brand); border-color: var(--brand); color: #04140A; font-weight: 600; }
.vp .btn--primary:hover, .vp-btn:hover { background: #22CC68; border-color: #22CC68; color: #04140A; }
.vp .btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.vp .btn--ghost:hover { background: var(--raise); border-color: var(--line); color: var(--text); }
.vp .btn--danger { background: transparent; border-color: rgba(229, 72, 77, .45); color: var(--alert-text); }
.vp .btn--danger:hover { background: var(--alert-soft); border-color: var(--alert); color: var(--alert-text); }
.vp .btn--out { background: transparent; border-color: rgba(229, 72, 77, .5); color: var(--alert-text); font-weight: 600; }
.vp .btn--out:hover { background: var(--alert-soft); border-color: var(--alert); color: var(--alert-text); }
.vp .btn--sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.vp .btn--lg { height: 40px; padding: 0 18px; font-size: 14px; }
.vp .btn svg { width: 15px; height: 15px; }
.vp .mini { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--muted); }
.vp .mini:hover { background: var(--raise); border-color: var(--line); color: var(--text); }
.vp .mini.danger:hover { color: var(--alert-text); border-color: rgba(229, 72, 77, .4); }
.vp .textlink { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }
.vp .textlink:hover { color: var(--text); }

/* ------------------------------------------------------------------ fields */
.vp .field { display: block; margin-bottom: 14px; flex: 1; min-width: 0; }
.vp .field > span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.vp .field em { font-style: normal; color: var(--dim); font-weight: 400; }
.vp .input {
  width: 100%; height: 34px; padding: 0 10px; border-radius: var(--r); margin: 0;
  background: var(--field); border: 1px solid var(--line-2); color: var(--text); outline: none; box-shadow: none;
  transition: border-color .12s, box-shadow .12s;
}
.vp textarea.input { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.vp select.input { padding-right: 28px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.vp select.input option { background: var(--panel); }
.vp .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.vp .input::placeholder { color: var(--dim); }
.vp input[type="date"].input, .vp input[type="datetime-local"].input, .vp input[type="time"].input { color-scheme: dark; font-family: var(--mono); font-size: 12.5px; }
.vp .input--mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.vp .row { display: flex; gap: 12px; }
.vp .err { color: var(--alert-text); font-size: 12.5px; margin: 2px 0 8px; }
.vp .err:empty { margin: 0; }
.vp .switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); cursor: pointer; margin: 4px 0 10px; }
.vp .switch input { appearance: none; -webkit-appearance: none; width: 30px; height: 18px; border-radius: 9px; background: var(--line-2); position: relative; margin: 0; flex: none; transition: background .15s; cursor: pointer; border: 0; }
.vp .switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #B9C4BD; transition: transform .15s, background .15s; }
.vp .switch input:checked { background: var(--brand-deep); }
.vp .switch input:checked::after { transform: translateX(12px); background: var(--brand-hi); }
.vp .checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; max-height: 210px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 10px; background: var(--field); }
.vp .checklist label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; cursor: pointer; }
.vp .checklist input { accent-color: var(--brand); margin: 0; }

/* ------------------------------------------------------------------ cards + lists */
.vp .grid { display: grid; gap: 14px; margin-bottom: 14px; }
.vp .grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vp .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vp .grid.side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.vp .grid.team { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.vp .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; min-width: 0; }
.vp .card + .card { margin-top: 14px; }
.vp .grid > .card + .card { margin-top: 0; }
.vp .card--flush { padding: 0; overflow: hidden; }
.vp .card--flush > .card__head { padding: 14px 16px 0; }
.vp .card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 12px; }
.vp .card__head h2 { font-size: 14px; }
.vp .card__head .acts { display: flex; gap: 6px; align-items: center; }
.vp .stat__label { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.vp .stat__value { font: 500 24px/1.1 var(--mono); letter-spacing: -.02em; }
.vp .stat__value.warn { color: var(--warn); }
.vp .stat__value.bad { color: var(--alert-text); }
.vp .stat__sub { color: var(--muted); font-size: 12px; margin-top: 6px; }
.vp .hello { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.vp .hello h2 { font-size: 20px; }
.vp .hello p { margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.vp .list { display: flex; flex-direction: column; }
.vp .li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.vp .li:first-child { border-top: 0; padding-top: 2px; }
.vp .li--click { cursor: pointer; }
.vp .li--click:hover .li__main strong { color: var(--brand-hi); }
.vp .li__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vp .li__main strong { font-weight: 500; font-size: 13.5px; }
.vp .li__main small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp .li__side { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.vp .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.vp .dot.on { background: var(--brand); }
.vp .dot.warn { background: var(--warn); }
.vp .empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 13px; }
.vp .empty svg { display: block; margin: 0 auto 10px; width: 22px; height: 22px; color: var(--dim); }
.vp .empty .btn { margin-top: 14px; }
.vp .ann { padding: 10px 0; border-top: 1px solid var(--line); }
.vp .ann:first-child { border-top: 0; padding-top: 0; }
.vp .ann h3 { font-size: 13.5px; font-family: var(--body); font-weight: 600; letter-spacing: 0; display: flex; justify-content: space-between; gap: 8px; }
.vp .ann p { color: #C9D1CB; margin: 4px 0 4px; white-space: pre-line; font-size: 13px; }
.vp .ann small { font: 500 10.5px/1 var(--mono); color: var(--dim); letter-spacing: .04em; }

/* ------------------------------------------------------------------ tables */
.vp .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.vp .toolbar select.input { width: auto; min-width: 150px; }
.vp .toolbar .search { flex: 1; min-width: 180px; }
.vp .toolbar .spacer { flex: 1; }
.vp .seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.vp .seg button { height: 30px; padding: 0 12px; border: 0; border-left: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.vp .seg button:first-child { border-left: 0; }
.vp .seg button:hover { color: var(--text); background: var(--raise); }
.vp .seg button[aria-pressed="true"] { background: var(--raise); color: var(--text); box-shadow: inset 0 -2px 0 var(--brand); }
.vp .summary { display: flex; flex-wrap: wrap; gap: 28px; padding: 0 2px 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.vp .summary span { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.vp .summary b { display: block; margin-top: 7px; font: 500 16px/1 var(--mono); color: var(--text); letter-spacing: -.01em; text-transform: none; }
.vp .tblwrap { overflow-x: auto; }
.vp .tbl { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.vp .tbl th { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-align: left; padding: 12px 10px 10px; border: 0; border-bottom: 1px solid var(--line); white-space: nowrap; background: none; }
.vp .tbl td { padding: 9px 10px; border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; background: none; }
.vp .tbl tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.vp .tbl tbody tr:last-child td { border-bottom: 0; }
.vp .tbl tr.click { cursor: pointer; }
.vp .tbl tr.click:hover td:first-child strong { color: var(--brand-hi); }
.vp .tbl tr.today td { background: rgba(15, 192, 89, .035); }
.vp .tbl tr.sub td { padding-top: 0; color: var(--muted); font-size: 12.5px; }
.vp .tbl .num { text-align: right; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.vp .tbl th.num { font-size: 10.5px; }
.vp .tbl .ref { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.vp .tbl .acts { text-align: right; white-space: nowrap; width: 70px; }
.vp .tbl .wrap { white-space: normal; color: var(--muted); font-size: 12.5px; max-width: 360px; }
.vp .tbl strong { font-weight: 500; }
.vp .tbl small { display: block; color: var(--muted); font-size: 12px; }
.vp .person-cell { display: flex; align-items: center; gap: 9px; }
.vp .person-cell .avatar { width: 24px; height: 24px; font-size: 9.5px; }
.vp .shift { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.vp .shift + .shift { margin-top: 3px; }
.vp .shift.open { color: var(--brand); }

/* ------------------------------------------------------------------ masked values */
.vp .m { cursor: pointer; border-radius: 3px; }
.vp .m .h { font-family: var(--mono); color: var(--dim); letter-spacing: .1em; border-bottom: 1px dashed var(--line-2); }
.vp .m .r { display: none; }
.vp .m.on .h, .vp.reveal-all .m .h { display: none; }
.vp .m.on .r, .vp.reveal-all .m .r { display: inline; }
.vp .m:hover .h { color: var(--muted); }

/* ------------------------------------------------------------------ badges */
.vp .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.vp .badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 4px; border: 1px solid var(--line-2); font: 500 10.5px/1 var(--mono); letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.vp .badge--ok { color: var(--brand-hi); border-color: rgba(15, 192, 89, .4); background: var(--brand-soft); }
.vp .badge--warn { color: var(--warn); border-color: rgba(226, 163, 54, .4); background: var(--warn-soft); }
.vp .badge--bad { color: var(--alert-text); border-color: rgba(229, 72, 77, .45); background: var(--alert-soft); }
.vp .badge--dim { color: var(--dim); }
.vp .badge--crit { color: #fff; border-color: var(--alert); background: var(--alert); }
.vp .st-intake { color: var(--text); }
.vp .st-active { color: var(--brand-hi); border-color: rgba(15, 192, 89, .4); }
.vp .st-waiting { color: var(--warn); border-color: rgba(226, 163, 54, .4); }
.vp .st-delivered, .vp .st-closed { color: var(--dim); }

/* ------------------------------------------------------------------ timeclock */
.vp .clock { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.vp .clock__state { display: flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.vp .clock__state.in { color: var(--brand); }
.vp .clock__time { font: 500 44px/1.05 var(--mono); letter-spacing: -.03em; margin: 12px 0 6px; font-variant-numeric: tabular-nums; }
.vp .clock__time.off { color: var(--dim); }
.vp .clock__sub { color: var(--muted); font-size: 12.5px; }
.vp .clock__act { display: flex; flex-direction: column; gap: 8px; width: 280px; }
.vp .clock__act .btn { height: 42px; font-size: 14px; }
.vp .warnbar { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(226, 163, 54, .4); background: var(--warn-soft); color: var(--text); border-radius: var(--r); padding: 10px 12px; font-size: 12.5px; margin-top: 14px; }
.vp .warnbar svg { color: var(--warn); margin-top: 1px; }
.vp .weeknav { display: flex; align-items: center; gap: 6px; }
.vp .weeknav span { font: 500 11px/1 var(--mono); color: var(--muted); letter-spacing: .04em; min-width: 110px; text-align: center; }
.vp .req { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.vp .req:first-child { border-top: 0; padding-top: 2px; }
.vp .req__main { flex: 1; min-width: 0; }
.vp .req__main strong { font-weight: 500; display: block; }
.vp .req__main small { display: block; color: var(--muted); font-size: 12px; }
.vp .req__acts { display: flex; gap: 6px; }

/* ------------------------------------------------------------------ engagements */
.vp .score { display: inline-flex; gap: 2px; vertical-align: middle; }
.vp .score i { width: 7px; height: 14px; border-radius: 1px; background: var(--line-2); }
.vp .score i.pass { background: var(--brand); }
.vp .score i.warn { background: var(--warn); }
.vp .score i.fail { background: var(--alert); }
.vp .score i.na { background: transparent; border: 1px solid var(--line-2); }
.vp .due { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.vp .due.late { color: var(--alert-text); }
.vp .due.soon { color: var(--warn); }
.vp .sev { display: inline-flex; gap: 4px; }
.vp .leads { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 14px; }
.vp .lead { border: 1px solid var(--line); border-left: 2px solid var(--brand); background: var(--panel); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.vp .lead__top { display: flex; justify-content: space-between; gap: 8px; }
.vp .lead__top strong { font-weight: 600; }
.vp .lead p { color: var(--muted); font-size: 12.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vp .lead__acts { display: flex; gap: 6px; margin-top: 4px; }
.vp .eng-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.vp .eng-head h2 { font-size: 20px; }
.vp .eng-head .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.vp .eng-head .meta b { color: var(--text); font-weight: 500; }
.vp .eng-head .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vp .back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.vp .back:hover { color: var(--text); }
.vp .checks { display: flex; flex-direction: column; }
.vp .chk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 11px 0; border-top: 1px solid var(--line); align-items: center; }
.vp .chk:first-child { border-top: 0; padding-top: 0; }
.vp .chk__name { display: flex; align-items: baseline; gap: 10px; }
.vp .chk__name b { font: 500 10.5px/1 var(--mono); color: var(--dim); }
.vp .chk__name strong { font-weight: 500; }
.vp .chk__desc { color: var(--muted); font-size: 12px; grid-column: 1; margin-left: 26px; }
.vp .chk__note { grid-column: 1 / -1; margin-left: 26px; }
.vp .chk__note .input { height: 30px; font-size: 12.5px; }
.vp .chk__by { grid-column: 1 / -1; margin-left: 26px; font: 500 10.5px/1 var(--mono); color: var(--dim); }
.vp .states { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; grid-row: 1; grid-column: 2; }
.vp .states button { height: 26px; min-width: 46px; padding: 0 8px; border: 0; border-left: 1px solid var(--line-2); background: transparent; color: var(--dim); font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.vp .states button:first-child { border-left: 0; }
.vp .states button:hover { color: var(--text); background: var(--raise); }
.vp .states button.on.pass { color: #04140A; background: var(--brand); }
.vp .states button.on.warn { color: #1B1203; background: var(--warn); }
.vp .states button.on.fail { color: #fff; background: var(--alert); }
.vp .states button.on.na { color: var(--text); background: var(--line-2); }
.vp .finding { padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.vp .finding:first-child { border-top: 0; padding-top: 2px; }
.vp .finding__top { display: flex; align-items: center; gap: 8px; }
.vp .finding__top strong { font-weight: 500; flex: 1; min-width: 0; }
.vp .finding.fixed strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dim); }
.vp .finding small { display: block; color: var(--dim); font: 500 10.5px/1.4 var(--mono); margin-top: 4px; }

/* ------------------------------------------------------------------ passwords */
.vp .bigcode { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line-2); background: var(--field); border-radius: var(--r); padding: 14px 16px; margin: 6px 0 10px; }
.vp .bigcode code { font: 600 19px/1.2 var(--mono); letter-spacing: .08em; color: var(--brand-hi); word-break: break-all; background: none; padding: 0; }
.vp .bigcode code.blur { filter: blur(7px); user-select: none; }
.vp .bigcode .acts { display: flex; gap: 6px; flex: none; }
.vp .timer { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 2px 0 6px; }
.vp .timer i { display: block; height: 100%; background: var(--brand); transition: width 1s linear; }
.vp .timer.low i { background: var(--warn); }
.vp .notecode { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.vp .notecode:first-child { border-top: 0; padding-top: 0; }
.vp .notecode small { font: 500 10.5px/1 var(--mono); color: var(--dim); letter-spacing: .04em; }
.vp .notecode code { font: 600 14px/1.3 var(--mono); letter-spacing: .06em; color: var(--brand-hi); background: none; padding: 0; word-break: break-all; }
.vp .notecode .acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 4px; }
.vp .status-box { border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; font-size: 12.5px; color: var(--muted); background: var(--field); margin: 4px 0 10px; }
.vp .status-box.warn { border-color: rgba(226, 163, 54, .4); color: var(--text); }
.vp .status-box.ok { border-color: rgba(15, 192, 89, .35); color: var(--text); }

/* ------------------------------------------------------------------ modal + toast */
.vp-modal { position: fixed; inset: 0; background: rgba(2, 6, 4, .72); display: flex; align-items: flex-start; justify-content: center; padding: 70px 20px 20px; z-index: 100; overflow-y: auto; }
.vp-modal__box { width: 540px; max-width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: vp-rise .16s ease-out; }
.vp-modal__box.sm { width: 420px; }
.vp-modal__box.lg { width: 720px; }
.vp-modal__box h3 { font-size: 17px; margin-bottom: 4px; }
.vp-modal__box > .hint { margin: 0 0 18px; }
.vp .modal__foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }
.vp .modal__foot .left { margin-right: auto; }
.vp .section { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.vp .section__title { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.vp-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--raise); border: 1px solid var(--line-2); border-left: 2px solid var(--brand); color: var(--text); padding: 10px 14px; border-radius: var(--r); font-size: 13px; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: vp-rise .16s ease-out; max-width: calc(100% - 40px); }
.vp-toast.bad { border-left-color: var(--alert); }

/* ------------------------------------------------------------------ login / gate */
.vp-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.vp-gate__card { width: 380px; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 24px; animation: vp-rise .18s ease-out; }
.vp-gate__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.vp-gate__mark { width: 26px !important; height: 21px !important; }
.vp-gate__logo span { font: 600 14px/1 var(--display); letter-spacing: .14em; }
.vp-gate__logo small { font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--brand); border: 1px solid rgba(15, 192, 89, .35); padding: 3px 5px; border-radius: 3px; }
.vp-gate h2 { font-size: 19px; margin: 0 0 6px; }
.vp-gate p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.vp-gate form p { margin: 0 0 14px; }
.vp-gate label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.vp-gate input[type="text"], .vp-gate input[type="password"], .vp-gate input[type="email"] {
  width: 100%; height: 36px; padding: 0 10px; border-radius: var(--r); background: var(--field); border: 1px solid var(--line-2); color: var(--text); outline: none;
}
.vp-gate input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.vp-gate .login-submit { margin: 18px 0 0; }
.vp-gate input[type="submit"] { width: 100%; height: 38px; border-radius: var(--r); background: var(--brand); border: 1px solid var(--brand); color: #04140A; font-weight: 600; cursor: pointer; }
.vp-gate input[type="submit"]:hover { background: #22CC68; }
.vp-gate__link { display: inline-block; margin-top: 16px; color: var(--muted); font-size: 12.5px; text-underline-offset: 3px; }
.vp-gate__link:hover { color: var(--text); }
.vp-gate .vp-btn { width: 100%; height: 38px; }

/* ------------------------------------------------------------------ Docs editor, in the portal's colours */
body.vp-page .arc-docs, body.vp-page .arc-docs-dlg, body.vp-page .arc-docs__menu {
  --d-fg: #ECEFEA; --d-sub: #C9D1CB; --d-dim: #8A9A90; --d-line: #1C2B22; --d-card: #0E1712; --d-pop: #131F18;
  --d-brand: #0FC059; --d-brand-ink: #04140A; --d-soft: rgba(15, 192, 89, .10); --d-page: #0E1712; --d-input: #09130D;
  --d-danger: #E5484D; --d-ok: #0FC059; --d-radius: 8px;
  font-family: var(--body);
}
body.vp-page .arc-docs h1, body.vp-page .arc-docs h2, body.vp-page .arc-docs h3 { font-family: var(--display); }
body.vp-page .arc-docs input, body.vp-page .arc-docs textarea, body.vp-page .arc-docs select, body.vp-page .arc-docs-dlg input, body.vp-page .arc-docs-dlg textarea, body.vp-page .arc-docs-dlg select { color-scheme: dark; }
body.vp-page .arc-docs__card.is-locked .arc-docs__card-ic, body.vp-page .arc-docs__pill--lock, body.vp-page .arc-docs__lockbadge, body.vp-page .arc-docs__banner .arc-docs__ic { color: var(--warn); }
body.vp-page .arc-docs__prose pre { background: #050B07; border: 1px solid var(--line); }
body.vp-page .arc-docs__prose code { font-family: var(--mono); }
/* docs.css forces its form fields to display:flex !important, which beat its own [hidden] rule
   (the note password field showed for Open docs). This wins on specificity. */
body.vp-page .arc-docs [hidden], body.vp-page .arc-docs-dlg [hidden] { display: none !important; }

@keyframes vp-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vp *, .vp-gate * { animation: none !important; transition: none !important; } }
@media (max-width: 1180px) {
  .vp .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp .grid.side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .vp-side { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .18s ease-out; }
  .vp.nav-open .vp-side { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .vp.nav-open .vp-scrim { display: block; position: fixed; inset: 0; background: rgba(2, 6, 4, .6); z-index: 50; }
  .vp-menu { display: inline-grid; }
  .vp-top { padding: 0 16px; }
  .vp-content { padding: 18px 16px 40px; }
  .vp .grid.two { grid-template-columns: minmax(0, 1fr); }
  .vp .clock { grid-template-columns: minmax(0, 1fr); }
  .vp .clock__act { width: 100%; }
  .vp .eng-head { flex-direction: column; }
  .vp .chk { grid-template-columns: minmax(0, 1fr); }
  .vp .states { grid-row: auto; grid-column: 1; margin-left: 26px; justify-self: start; }
  .vp-chip span { display: none; }
  .vp-chip .t { display: inline; }
}
@media (max-width: 560px) {
  .vp .grid.stats { grid-template-columns: minmax(0, 1fr); }
  .vp .row { flex-direction: column; gap: 0; }
}
