/* PCC v2 (LOCAL BUILD, not shipped). Owner: out-app. The app-side pages outside the two apps: password reset
   (forgot-password.html), password links (auth-action.html), the sign-in redirects (login, signup, early-access),
   Delete your account, Customer Transfer, the live demo chooser and the Back Office.
   Same tokens and look as pcc-v2.css / pcc-v2-ops.css (graphite glass, Urbanist + Sora, pills, one accent).
   No company is known on these pages, so the accent is Pack Command's own blue (the husky's eyes, the same --blue
   the in-app sign-in uses). Everything is scoped to html.v2. Rules: pcc-v2-local/AGENT-RULES.md. */

/* ============================================================================================================
   0. Tokens (same names and values as pcc-v2.css / pcc-v2-ops.css)
   ============================================================================================================ */
html.v2 {
  color-scheme: dark;
  --blue: #35a7e0;
  --v2-glass: rgba(40, 40, 43, .58);
  --v2-glass2: rgba(255, 255, 255, .035);
  --v2-glass3: rgba(255, 255, 255, .06);
  --v2-line: rgba(255, 255, 255, .09);
  --v2-line2: rgba(255, 255, 255, .17);
  --v2-acc: var(--blue);
  --v2-acc2: color-mix(in srgb, var(--blue) 80%, #000);
  --v2-acc-soft: color-mix(in srgb, var(--blue) 14%, transparent);
  --v2-on: #04121e;            /* text on the accent pill: 7:1 on #35a7e0 (white would be 2.7:1) */
  --v2-money: #3ddc97;
  --v2-ice: #8fd3f4;
  --v2-good: #4ade80;
  --v2-warn: #f5a524;
  --v2-bad: #f2706b;
  --v2-gold: #f5b62b;          /* only the COMMAND in the wordmark */
  --v2-ease: cubic-bezier(.2, .8, .2, 1);
  --v2-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -20px rgba(0, 0, 0, .6);
  --v2-shadow-lg: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 80px -30px rgba(0, 0, 0, .8);
  --v2-menu: rgba(30, 30, 34, .94);
  --v2-r: 18px;
  --ink: #f0f0f2;
  --ink-2: #a3a3aa;
  --ink-3: #8a8a92;
  --ink-4: #6e6e75;
  --ui: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Sora", ui-sans-serif, system-ui, sans-serif;
  background: #0b0b0d;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) { html.v2 { scroll-behavior: smooth; } }

/* ============================================================================================================
   1. Page: graphite with the two soft glows and the faint 64px grid, fonts, focus, links
   ============================================================================================================ */
html.v2 body.pg {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: transparent; color: var(--ink);
  font-family: var(--ui); font-size: 15px; line-height: 1.55; font-weight: 500;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
html.v2 body.pg::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% 8%, rgba(143, 211, 244, .10), transparent 60%),
    radial-gradient(700px 500px at 12% 92%, var(--v2-acc-soft), transparent 60%),
    radial-gradient(1200px 800px at 50% 50%, #18181b, #0b0b0d 75%);
}
html.v2 body.pg::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--v2-line) 1px, transparent 1px), linear-gradient(90deg, var(--v2-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%);
}
html.v2 body.pg *, html.v2 body.pg *::before, html.v2 body.pg *::after { box-sizing: border-box; }
html.v2 :where(body.pg) :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
html.v2 :where(body.pg) :where(h1, h2, h3, h4) { font-family: var(--ui); font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
html.v2 body.pg :focus-visible { outline: 2px solid var(--v2-acc); outline-offset: 2px; }
html.v2 body.pg ::selection { background: color-mix(in srgb, var(--v2-acc) 40%, transparent); }
html.v2 :where(body.pg) a { color: var(--v2-acc); text-decoration: none; }
html.v2 :where(body.pg) a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Links inside sentences are underlined, so they never rely on color alone */
html.v2 :where(body.pg) :where(p, li, .pg-prose) a:not(.pg-btn) { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--v2-acc) 55%, transparent); text-underline-offset: 3px; }
html.v2 :where(body.pg) :where(p, li, .pg-prose) a:not(.pg-btn):hover { text-decoration-color: currentColor; }
/* links inside sentences get a 44px tall hit area without moving the text */
html.v2 :where(body.pg) :where(p, li, .pg-prose, .pg-crumb, .note) a:not(.pg-btn) { padding-block: 14px; margin-block: -14px; }
html.v2 :where(body.pg) :where(b, strong) { color: var(--ink); font-weight: 700; }
html.v2 body.pg input[type=checkbox], html.v2 body.pg input[type=radio] { accent-color: var(--v2-acc); }
html.v2 body.pg ::placeholder { color: var(--ink-4); opacity: 1; }
html.v2 body.pg input[type=password]:not(:placeholder-shown) { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .08em; }
html.v2 .pg-num { font-family: var(--num); font-variant-numeric: tabular-nums; }
html.v2 .pg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html.v2 body.pg *, html.v2 body.pg *::before, html.v2 body.pg *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================================================================
   2. Components (pg- prefix so they never meet a page's own classes)
   ============================================================================================================ */
/* Wordmark: the same lockup as the in-app sign-in */
html.v2 .pg-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
html.v2 .pg-brand:hover { text-decoration: none; }
html.v2 .pg-brand img { display: block; width: 40px; height: 40px; border-radius: 10px; flex: none; }
html.v2 .pg-wm { font-family: var(--ui); font-weight: 700; font-size: 19.5px; line-height: .95; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
html.v2 .pg-wm b { font-weight: 400; color: var(--v2-gold); }
html.v2 .pg-wm small { display: block; margin-top: 5px; font-size: 8.6px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }

/* Cards */
html.v2 .pg-card {
  background: var(--v2-glass); border: 1px solid var(--v2-line); border-radius: var(--v2-r); box-shadow: var(--v2-shadow);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* Buttons: pills, one filled accent per screen */
html.v2 .pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--v2-line2); background: var(--v2-glass2); color: var(--ink);
  font: 700 14.5px/1.1 var(--ui); cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
  transition: background .18s, border-color .18s, filter .18s, transform .12s; -webkit-tap-highlight-color: transparent;
}
html.v2 .pg-btn:hover { background: var(--v2-glass3); text-decoration: none; color: var(--ink); }
html.v2 .pg-btn:active { transform: scale(.97); }
html.v2 .pg-btn-primary, html.v2 .pg-btn-primary:hover {
  border-color: transparent; color: var(--v2-on); background: linear-gradient(180deg, var(--v2-acc), var(--v2-acc2));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--v2-acc) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
html.v2 .pg-btn-primary:hover { filter: brightness(1.07); color: var(--v2-on); }
html.v2 .pg-btn:disabled, html.v2 .pg-btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; filter: none; }
html.v2 .pg-btn-block { display: flex; width: 100%; }
html.v2 .pg-btn-lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
html.v2 .pg-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
html.v2 .pg-btn svg { width: 16px; height: 16px; flex: none; }

/* Fields */
html.v2 .pg-field { display: grid; gap: 7px; text-align: left; }
html.v2 .pg-field + .pg-field { margin-top: 14px; }
html.v2 .pg-field > label, html.v2 .pg-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
html.v2 :is(.pg-field input, .pg-field select, .pg-field textarea, .pg-input) {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--v2-line2);
  background: var(--v2-glass2); color: var(--ink); font: 500 15px/1.3 var(--ui); outline: none; margin: 0;
  transition: border-color .15s, box-shadow .15s;
}
html.v2 :is(.pg-field input, .pg-field select, .pg-field textarea, .pg-input):focus { border-color: var(--v2-acc); box-shadow: 0 0 0 3px var(--v2-acc-soft); outline: none; }
html.v2 body.pg select option { background: #1c1c20; color: var(--ink); }

/* Notices and status chips */
html.v2 .pg-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  border: 1px solid color-mix(in srgb, var(--v2-acc) 35%, transparent); background: var(--v2-acc-soft); color: var(--ink-2);
}
html.v2 .pg-note.ok, html.v2 .pg-note.good { border-color: color-mix(in srgb, var(--v2-good) 38%, transparent); background: color-mix(in srgb, var(--v2-good) 9%, transparent); }
html.v2 .pg-note.warn { border-color: color-mix(in srgb, var(--v2-warn) 42%, transparent); background: color-mix(in srgb, var(--v2-warn) 10%, transparent); }
html.v2 .pg-note.bad { border-color: color-mix(in srgb, var(--v2-bad) 42%, transparent); background: color-mix(in srgb, var(--v2-bad) 10%, transparent); }
html.v2 .pg-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  font: 700 12px/1 var(--ui); color: var(--ink-2); background: var(--v2-glass2); border: 1px solid var(--v2-line2);
}
html.v2 .pg-chip.acc { color: var(--ink); background: var(--v2-acc-soft); border-color: color-mix(in srgb, var(--v2-acc) 45%, transparent); }

/* Checklist with an accent tick (brand column, delete page) */
html.v2 .pg-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
html.v2 .pg-checks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
html.v2 .pg-checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px; border-left: 2px solid var(--v2-acc); border-bottom: 2px solid var(--v2-acc); transform: rotate(-45deg); }

/* Plain list with quiet dots */
html.v2 .pg-dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
html.v2 .pg-dots li { position: relative; padding-left: 20px; color: var(--ink-2); line-height: 1.5; }
html.v2 .pg-dots li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }

/* Numbered steps (only where the content really is a sequence) */
html.v2 .pg-steps-list { list-style: none; counter-reset: pgstep; padding: 0; margin: 0; display: grid; gap: 12px; }
html.v2 .pg-steps-list > li { counter-increment: pgstep; position: relative; padding-left: 40px; min-height: 28px; color: var(--ink-2); line-height: 1.5; }
html.v2 .pg-steps-list > li::before {
  content: counter(pgstep); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 600 13px/1 var(--num); color: var(--ink); background: var(--v2-acc-soft); border: 1px solid color-mix(in srgb, var(--v2-acc) 45%, transparent);
}

/* Disclosure (folded extras) */
html.v2 .pg-fold { border: 1px solid var(--v2-line); border-radius: 16px; background: var(--v2-glass2); }
html.v2 .pg-fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  font-weight: 700; color: var(--ink); border-radius: 16px;
}
html.v2 .pg-fold > summary::-webkit-details-marker { display: none; }
html.v2 .pg-fold > summary small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
html.v2 .pg-fold > summary .pg-fold-t { flex: 1; min-width: 0; }
html.v2 .pg-fold > summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--v2-ease);
}
html.v2 .pg-fold[open] > summary::after { transform: rotate(-135deg) translateX(-2px); }
html.v2 .pg-fold > summary:hover { background: var(--v2-glass2); }
html.v2 .pg-fold-body { padding: 4px 16px 16px; }

/* Overlay dialog (demo key gate) */
html.v2 .pg-ov {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html.v2 .pg-dialog {
  width: min(420px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px 26px 24px; border-radius: 22px; text-align: center;
  background: var(--v2-menu); border: 1px solid var(--v2-line2); box-shadow: var(--v2-shadow-lg);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
@media (prefers-reduced-motion: no-preference) {
  html.v2 .pg-dialog { animation: pgPop .26s var(--v2-ease); }
  @keyframes pgPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* Phones: 44px targets, 16px inputs (no iOS zoom) */
@media (max-width: 760px) {
  html.v2 .pg-btn-sm { min-height: 44px; }
  html.v2 :is(.pg-field input, .pg-field select, .pg-field textarea, .pg-input) { font-size: 16px; }
}

/* ============================================================================================================
   3. Password reset (forgot-password.html): the in-app sign-in layout, a brand column and one glass card
   ============================================================================================================ */
html.v2 .pg-auth-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
html.v2 .pg-auth-brand { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(28px, 6vw, 96px); }
html.v2 .pg-auth-brand .pg-brand { margin-bottom: 28px; align-self: flex-start; }
html.v2 .pg-auth-brand h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
html.v2 .pg-lead { margin-top: 16px; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 46ch; text-wrap: pretty; }
html.v2 .pg-auth-brand .pg-checks { margin-top: 22px; }
html.v2 .pg-auth-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px clamp(20px, 5vw, 72px); }
html.v2 .pg-auth-mark { display: none; }
html.v2 .pg-auth-card { width: min(440px, 100%); padding: 28px 26px 22px; border-radius: 22px; border-color: var(--v2-line2); box-shadow: var(--v2-shadow-lg); }
html.v2 .pg-auth-card h2 { font-size: 23px; letter-spacing: -.02em; }
html.v2 .pg-sub { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
html.v2 .pg-sub + .pg-sub { margin-top: 12px; }
html.v2 .pg-auth-card form { margin-top: 20px; }
html.v2 .pg-auth-card .pg-btn-primary { margin-top: 16px; min-height: 48px; font-size: 15px; }
html.v2 .pg-auth-card .pg-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
html.v2 .pg-auth-card .pg-btn-row .pg-btn { flex: 1 1 160px; margin-top: 0; }
html.v2 .pg-auth-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--v2-line); text-align: center; color: var(--ink-3); font-size: 13.5px; line-height: 1.9; }
html.v2 .pg-auth-foot .pg-sep { display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px; border-radius: 50%; background: var(--ink-4); vertical-align: middle; }
html.v2 .pg-auth-foot a { font-weight: 600; }
/* The page script sets #fp-note's class to "notice mt-m [warn]" */
html.v2 .pg-auth-card .notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); border: 1px solid color-mix(in srgb, var(--v2-acc) 35%, transparent); background: var(--v2-acc-soft); }
html.v2 .pg-auth-card .notice.warn { border-color: color-mix(in srgb, var(--v2-warn) 42%, transparent); background: color-mix(in srgb, var(--v2-warn) 10%, transparent); color: var(--ink); }
html.v2 .pg-auth-card .notice .ni { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--ui); color: var(--v2-on); background: var(--v2-acc); }
html.v2 .pg-auth-card .notice.warn .ni { background: var(--v2-warn); color: #1a1205; }
@media (max-width: 860px) {
  html.v2 .pg-auth-wrap { grid-template-columns: 1fr; }
  html.v2 .pg-auth-brand { display: none; }
  html.v2 .pg-auth-side { justify-content: flex-start; padding: 28px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
  html.v2 .pg-auth-mark { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 22px 0 22px; color: var(--ink); text-align: center; }
  html.v2 .pg-auth-mark:hover { text-decoration: none; }
  html.v2 .pg-auth-mark img { width: 68px; height: 68px; border-radius: 16px; }
  html.v2 .pg-auth-mark .pg-wm { font-size: 19px; font-weight: 500; letter-spacing: .06em; }
  html.v2 .pg-auth-mark .pg-wm b { font-weight: 800; color: var(--ink); }
  html.v2 .pg-auth-mark p { color: var(--ink-2); font-size: 14.5px; max-width: 32ch; }
  html.v2 .pg-auth-card { padding: 22px 20px 18px; }
}

/* ============================================================================================================
   4. Password links (auth-action.html) and the sign-in redirects: one centered glass card
   ============================================================================================================ */
html.v2 .pg-center { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
html.v2 .pg-action-card { width: min(420px, 100%); padding: 32px 28px 26px; border-radius: 22px; border-color: var(--v2-line2); box-shadow: var(--v2-shadow-lg); text-align: center; }
html.v2 .pg-action-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
html.v2 .pg-action-brand img { width: 56px; height: 56px; border-radius: 14px; }
html.v2 .pg-action-card h1 { font-size: 23px; letter-spacing: -.02em; margin: 4px 0 6px; }
html.v2 .pg-action-card p.sub { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
html.v2 .pg-action-card label { display: block; margin: 0 0 6px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
html.v2 .pg-action-card input {
  display: block; width: 100%; min-height: 46px; margin: 0 0 14px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--v2-line2);
  background: var(--v2-glass2); color: var(--ink); font: 500 15px/1.3 var(--ui); outline: none; transition: border-color .15s, box-shadow .15s;
}
html.v2 .pg-action-card input:focus { border-color: var(--v2-acc); box-shadow: 0 0 0 3px var(--v2-acc-soft); }
html.v2 .pg-action-card .btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 6px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 15px/1.2 var(--ui); color: var(--v2-on); text-decoration: none; background: linear-gradient(180deg, var(--v2-acc), var(--v2-acc2));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--v2-acc) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); transition: filter .18s, transform .12s;
}
html.v2 .pg-action-card .btn:hover { filter: brightness(1.07); text-decoration: none; }
html.v2 .pg-action-card .btn:active { transform: scale(.97); }
html.v2 .pg-action-card .btn:disabled { opacity: .55; cursor: default; transform: none; filter: none; }
html.v2 .pg-action-card .err { min-height: 1.3em; margin-top: 12px; color: var(--v2-bad); font-size: 13.5px; font-weight: 600; }
html.v2 .pg-action-card .ok { margin: 4px 0 18px; color: var(--v2-good); font-size: 15px; font-weight: 600; }
html.v2 .pg-action-card .foot { margin-top: 16px; color: var(--ink-3); font-size: 13.5px; line-height: 1.55; }
html.v2 .pg-action-card .foot a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { html.v2 .pg-action-card { padding: 26px 20px 22px; } html.v2 .pg-action-card input { font-size: 16px; } }

/* Redirect pages (login, signup, early-access): only seen for a moment, so no white or old-look flash */
html.v2 .pg-redirect-box { display: grid; justify-items: center; gap: 14px; max-width: 360px; text-align: center; color: var(--ink-2); }
html.v2 .pg-redirect-box img { width: 56px; height: 56px; border-radius: 14px; }
html.v2 .pg-redirect-box p { font-size: 15px; }
html.v2 .pg-redirect-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 14px; }
html.v2 .pg-redirect-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ============================================================================================================
   5. Delete your account (delete-account.html): a short document page
   ============================================================================================================ */
html.v2 .pg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px); }
html.v2 .pg-top .pg-brand img { width: 34px; height: 34px; border-radius: 9px; }
html.v2 .pg-top .pg-wm { font-size: 16.5px; }
html.v2 .pg-doc-main { max-width: 1080px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 40px; }
html.v2 .pg-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13.5px; }
html.v2 .pg-crumb a { color: var(--ink-2); font-weight: 600; }
html.v2 .pg-doc-main > h1 { text-wrap: balance; margin-top: 14px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -.03em; }
html.v2 .pg-doc-main > .pg-lead { max-width: 62ch; }
html.v2 .pg-meta { margin-top: 10px; color: var(--ink-3); font-size: 13px; }
html.v2 .pg-doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
html.v2 .pg-doc-grid > .pg-card, html.v2 .pg-doc-q { padding: 24px; }
html.v2 .pg-doc-main h2 { font-size: 19px; letter-spacing: -.015em; margin-bottom: 14px; }
html.v2 .pg-doc-main .pg-card p { color: var(--ink-2); line-height: 1.6; }
html.v2 .pg-doc-main .pg-card p + p, html.v2 .pg-doc-main .pg-card ol + p, html.v2 .pg-doc-main .pg-card ul + p { margin-top: 12px; }
html.v2 .pg-doc-q { margin-top: 16px; }
html.v2 .pg-doc-q p { max-width: 80ch; }
html.v2 .pg-kept { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
html.v2 .pg-kept li { padding: 12px 14px; border-radius: 14px; background: var(--v2-glass2); border: 1px solid var(--v2-line); color: var(--ink-2); line-height: 1.5; }
html.v2 .pg-foot { max-width: 1080px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--v2-line); }
html.v2 .pg-foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
html.v2 .pg-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) {
  html.v2 .pg-doc-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  html.v2 .pg-doc-grid > .pg-card, html.v2 .pg-doc-q { padding: 20px 18px; }
  html.v2 .pg-doc-q { margin-top: 12px; }
  html.v2 .pg-top .pg-wm { font-size: 14.5px; }
}

/* ============================================================================================================
   6. Live demo chooser (live-demo.html): three big choices, a quiet industry list, the access-key dialog
   ============================================================================================================ */
html.v2 .pg-demo-main { max-width: 1120px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) calc(48px + env(safe-area-inset-bottom, 0px)); }
html.v2 .pg-demo-head { display: grid; justify-items: center; text-align: center; gap: 10px; }
html.v2 .pg-demo-head .pg-brand { margin-bottom: 18px; }
html.v2 .pg-demo-head h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
html.v2 .pg-demo-head .pg-lead { margin-top: 4px; max-width: 54ch; }
html.v2 .pg-demo-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
html.v2 .pg-pick {
  appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 24px 22px 20px; text-align: left; cursor: pointer;
  color: var(--ink); font: inherit; border-radius: 22px; border: 1px solid var(--v2-line); background: var(--v2-glass); box-shadow: var(--v2-shadow);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); transition: border-color .2s, background .2s, transform .2s var(--v2-ease);
}
html.v2 .pg-pick:hover { border-color: color-mix(in srgb, var(--v2-acc) 60%, transparent); background: rgba(46, 46, 50, .66); }
@media (prefers-reduced-motion: no-preference) { html.v2 .pg-pick:hover { transform: translateY(-2px); } }
html.v2 .pg-pick:active { transform: scale(.985); }
html.v2 .pg-pick-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--v2-acc); background: var(--v2-acc-soft); border: 1px solid color-mix(in srgb, var(--v2-acc) 30%, transparent); }
html.v2 .pg-pick-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.v2 .pg-pick-t { display: block; margin-top: 18px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
html.v2 .pg-pick-d { display: block; margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
html.v2 .pg-pick-f { display: grid; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--v2-line); width: 100%; }
html.v2 .pg-pick-f span { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
html.v2 .pg-pick-f span::before { content: ""; position: absolute; left: 2px; top: .4em; width: 11px; height: 6px; border-left: 2px solid var(--v2-acc); border-bottom: 2px solid var(--v2-acc); transform: rotate(-45deg); }
html.v2 .pg-pick-go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--v2-acc); font-weight: 700; font-size: 14.5px; }
html.v2 .pg-pick-go::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
html.v2 .pg-demo-ind { margin-top: 44px; }
html.v2 .pg-demo-ind > h2 { text-align: center; font-size: 21px; }
html.v2 .pg-demo-ind > .pg-sub { text-align: center; margin: 6px auto 0; max-width: 60ch; }
html.v2 .pg-ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
html.v2 .pg-ind {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  color: var(--ink); background: var(--v2-glass2); border: 1px solid var(--v2-line); transition: border-color .2s, background .2s;
}
html.v2 .pg-ind:hover { text-decoration: none; border-color: color-mix(in srgb, var(--v2-acc) 55%, transparent); background: var(--v2-glass3); }
html.v2 .pg-ind b { font-size: 15.5px; }
html.v2 .pg-ind .pg-ind-co { grid-column: 1; color: var(--ink-3); font-size: 13px; }
html.v2 .pg-ind .pg-ind-d { grid-column: 1; margin-top: 6px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
html.v2 .pg-ind::after { content: ""; grid-column: 2; grid-row: 1 / span 3; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--ink-3); border-top: 2px solid var(--ink-3); transform: rotate(45deg); }
html.v2 .pg-demo-foot { margin-top: 32px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
html.v2 .pg-demo-foot a { font-weight: 700; }
/* the access-key dialog (built by the page script) */
html.v2 .pg-dialog h2 { font-size: 22px; }
html.v2 .pg-dialog .pg-sub { margin: 6px 0 18px; }
html.v2 .pg-key {
  display: block; width: 100%; min-height: 52px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--v2-line2); background: var(--v2-glass2);
  color: var(--ink); font: 600 17px/1 var(--num); letter-spacing: .08em; text-align: center; text-transform: uppercase; outline: none;
}
html.v2 .pg-key:focus { border-color: var(--v2-acc); box-shadow: 0 0 0 3px var(--v2-acc-soft); }
html.v2 .pg-dialog .pg-btn-primary { margin-top: 12px; min-height: 48px; font-size: 15px; }
html.v2 .pg-err { min-height: 1.3em; margin-top: 10px; color: var(--v2-bad); font-size: 13.5px; font-weight: 600; }
html.v2 .pg-fine { margin-top: 8px; color: var(--ink-3); font-size: 13.5px; }
html.v2 .pg-req { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--v2-line); text-align: left; }
html.v2 .pg-req .pg-field + .pg-field { margin-top: 0; }
html.v2 .pg-req .pg-btn { margin-top: 4px; }
html.v2 .pg-req .pg-err { margin-top: 0; }
html.v2 .pg-ok { padding: 8px 0; text-align: center; color: var(--v2-good); font-weight: 600; font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) { html.v2 .pg-demo-picks, html.v2 .pg-ind-grid { grid-template-columns: 1fr; } html.v2 .pg-demo-picks { gap: 12px; } }
@media (max-width: 760px) {
  html.v2 .pg-demo-main { padding-top: 26px; }
  html.v2 .pg-demo-head .pg-brand { margin-bottom: 8px; }
  html.v2 .pg-demo-picks { margin-top: 24px; }
  html.v2 .pg-pick { padding: 20px 18px 18px; border-radius: 20px; }
  html.v2 .pg-pick-t { margin-top: 14px; font-size: 18.5px; }
  html.v2 .pg-demo-ind { margin-top: 34px; }
  html.v2 .pg-ind { min-height: 60px; }
  html.v2 .pg-ind .pg-ind-d { display: none; }
  html.v2 .pg-key { font-size: 17px; }
}

/* ============================================================================================================
   7. Customer Transfer (crm-transfer.html): steps with the current one obvious. The page script builds its own markup
   (files, column maps, repeats, results, documents); these rules style those classes inside body.pg-transfer.
   ============================================================================================================ */
html.v2 .pg-transfer .wrap { max-width: 1180px; margin: 0 auto; padding: 20px clamp(16px, 3vw, 32px) calc(96px + env(safe-area-inset-bottom, 0px)); }
html.v2 .pg-transfer .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html.v2 .pg-tx-back svg { width: 16px; height: 16px; margin-left: -4px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html.v2 .pg-transfer .pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 11px; border-radius: 999px; white-space: nowrap;
  font: 700 12px/1.2 var(--ui); letter-spacing: 0; color: var(--ink-2); background: var(--v2-glass2); border: 1px solid var(--v2-line2);
}
html.v2 .pg-transfer .pill.warn { color: #ffd38a; background: color-mix(in srgb, var(--v2-warn) 12%, transparent); border-color: color-mix(in srgb, var(--v2-warn) 42%, transparent); white-space: normal; }
html.v2 .pg-tx-head h1 { margin: 22px 0 8px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.03em; max-width: 22ch; text-wrap: balance; }
html.v2 .pg-tx-head .dim { max-width: 78ch; font-size: 15px; line-height: 1.6; }
html.v2 .pg-transfer .safe {
  display: inline-block; margin-top: 14px; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2);
  background: color-mix(in srgb, var(--v2-good) 8%, transparent); border: 1px solid color-mix(in srgb, var(--v2-good) 32%, transparent);
}
html.v2 .pg-transfer .safe b { color: var(--v2-good); }
html.v2 .pg-transfer p { margin: 6px 0; }
html.v2 .pg-transfer .dim { color: var(--ink-2); font-size: 14.5px; }
html.v2 .pg-transfer .hide { display: none !important; }
html.v2 .pg-transfer .mobile-menu, html.v2 .pg-transfer .site-header, html.v2 .pg-transfer .site-footer { display: none !important; }

/* layout: step rail (desktop) + one column of step cards */
html.v2 .pg-tx-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 26px; }
html.v2 .pg-tx-col { min-width: 0; }
html.v2 .pg-rail { position: sticky; top: 20px; }
html.v2 .pg-rail ol {
  list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; border-radius: 20px; background: var(--v2-glass); border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
html.v2 .pg-rail a {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 52px; padding: 8px 10px; border-radius: 14px;
  color: var(--ink); text-decoration: none; transition: background .18s;
}
html.v2 .pg-rail a:hover { background: var(--v2-glass2); text-decoration: none; }
html.v2 .pg-rail-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font: 600 13px/1 var(--num); color: var(--ink-2); background: var(--v2-glass2); border: 1px solid var(--v2-line2);
}
html.v2 .pg-rail-t { font-weight: 700; font-size: 14px; line-height: 1.25; }
html.v2 .pg-rail-t small { display: block; margin-top: 2px; font-weight: 500; font-size: 12px; color: var(--ink-3); }
html.v2 .pg-rail a.is-current { background: var(--v2-acc-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v2-acc) 45%, transparent); }
html.v2 .pg-rail a.is-current .pg-rail-n { color: var(--v2-on); border-color: transparent; background: linear-gradient(180deg, var(--v2-acc), var(--v2-acc2)); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--v2-acc) 60%, transparent); }
html.v2 .pg-rail a.is-done .pg-rail-n, html.v2 .pg-transfer .card[data-state="done"] h2 .n { font-size: 0; color: transparent; background: color-mix(in srgb, var(--v2-good) 14%, transparent); border-color: color-mix(in srgb, var(--v2-good) 45%, transparent); }
html.v2 .pg-rail a.is-done .pg-rail-n::after, html.v2 .pg-transfer .card[data-state="done"] h2 .n::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 11px; height: 6px; border-left: 2px solid var(--v2-good); border-bottom: 2px solid var(--v2-good); transform: translate(-50%, -50%) rotate(-45deg);
}
html.v2 .pg-rail a.is-todo .pg-rail-t, html.v2 .pg-rail a.is-skip .pg-rail-t { color: var(--ink-2); }
html.v2 .pg-rail a.is-skip { opacity: .6; }
html.v2 .pg-rail a[aria-disabled="true"] { cursor: default; }
html.v2 .pg-rail a[aria-disabled="true"]:hover { background: none; }

/* phones and tablets: a sticky progress bar instead of the rail */
html.v2 .pg-txbar { display: none; }
@media (max-width: 1079px) {
  html.v2 .pg-tx-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
  html.v2 .pg-rail { display: none; }
  html.v2 .pg-txbar {
    display: flex; align-items: center; gap: 14px; position: sticky; top: 8px; z-index: 30; width: 100%; min-height: 56px; padding: 9px 16px; cursor: pointer;
    border-radius: 18px; border: 1px solid var(--v2-line2); background: rgba(30, 30, 34, .82); color: var(--ink); font: inherit; text-align: left;
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .9); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  }
  html.v2 .pg-txbar-t { display: grid; min-width: 0; }
  html.v2 .pg-txbar-t small { font: 600 12px/1.3 var(--num); color: var(--ink-3); }
  html.v2 .pg-txbar-t b { font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.v2 .pg-txbar-segs { order: 2; margin-left: auto; display: flex; gap: 4px; flex: none; }
  html.v2 .pg-txbar-segs i { width: 10px; height: 6px; border-radius: 99px; background: var(--v2-glass3); border: 1px solid var(--v2-line2); }
  html.v2 .pg-txbar-segs i.is-done { background: var(--v2-good); border-color: transparent; }
  html.v2 .pg-txbar-segs i.is-current { width: 22px; background: var(--v2-acc); border-color: transparent; }
  html.v2 .pg-txbar-segs i.is-skip { opacity: .45; }
  html.v2 .pg-transfer .card { scroll-margin-top: 80px; }
}

/* step cards */
html.v2 .pg-transfer .card {
  position: relative; margin-top: 16px; padding: 22px; border-radius: 20px; scroll-margin-top: 24px;
  background: var(--v2-glass); border: 1px solid var(--v2-line); box-shadow: var(--v2-shadow);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); transition: border-color .25s, box-shadow .25s;
}
html.v2 .pg-tx-col > .card:first-child { margin-top: 0; }
html.v2 .pg-transfer .card[data-state="current"] { border-color: color-mix(in srgb, var(--v2-acc) 50%, transparent); box-shadow: var(--v2-shadow), 0 0 0 1px var(--v2-acc-soft), 0 26px 60px -40px color-mix(in srgb, var(--v2-acc) 70%, transparent); }
html.v2 .pg-transfer h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 19px; letter-spacing: -.015em; }
html.v2 .pg-transfer h2:focus { outline: none; }
html.v2 .pg-transfer h2 .n {
  flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px/1 var(--num); color: var(--ink-2); background: var(--v2-glass2); border: 1px solid var(--v2-line2);
}
html.v2 .pg-transfer .card[data-state="current"] h2 .n { color: var(--v2-on); border-color: transparent; background: linear-gradient(180deg, var(--v2-acc), var(--v2-acc2)); }

/* step 1: what to export + the folded collector */
html.v2 .pg-transfer .need { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
html.v2 .pg-transfer .need div { padding: 11px 13px; border-radius: 14px; background: var(--v2-glass2); border: 1px solid var(--v2-line); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
html.v2 .pg-transfer .need b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--ink); }
html.v2 .pg-transfer .collector { margin-top: 14px; }
html.v2 .pg-transfer .collector p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
html.v2 .pg-transfer #bm {
  color: var(--ink); background: var(--v2-acc-soft); border: 1px dashed color-mix(in srgb, var(--v2-acc) 70%, transparent); box-shadow: none; cursor: grab; margin: 0 2px;
}
html.v2 .pg-transfer #bm::before { content: ""; width: 9px; height: 12px; margin-right: 2px; background: var(--v2-acc); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }

/* numbered instructions (real sequences: the collector steps, loading the import) */
html.v2 .pg-transfer ol.steps { list-style: none; counter-reset: txs; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
html.v2 .pg-transfer ol.steps > li { counter-increment: txs; position: relative; margin: 0; padding-left: 38px; min-height: 26px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
html.v2 .pg-transfer ol.steps > li::before {
  content: counter(txs); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px/1 var(--num); color: var(--ink); background: var(--v2-glass3); border: 1px solid var(--v2-line2);
}

/* step 2: drop zone, options, the files list */
html.v2 .pg-transfer .drop {
  display: grid; justify-items: center; gap: 2px; margin-top: 14px; padding: 30px 16px; border-radius: 18px; text-align: center; cursor: pointer;
  border: 2px dashed var(--v2-line2); background: var(--v2-glass2); transition: border-color .18s, background .18s;
}
html.v2 .pg-transfer .drop br { display: none; }
html.v2 .pg-transfer .drop:hover, html.v2 .pg-transfer .drop.over { border-color: var(--v2-acc); background: var(--v2-acc-soft); }
html.v2 .pg-transfer .drop b { font-size: 16px; color: var(--ink); }
html.v2 .pg-drop-ic { width: 30px; height: 30px; margin-bottom: 8px; fill: none; stroke: var(--v2-acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.v2 .pg-transfer .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
html.v2 .pg-transfer .opts label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
html.v2 .pg-transfer .opts label + label { border-top: 1px solid var(--v2-line); }
html.v2 .pg-transfer .opts input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; }
html.v2 .pg-transfer .opts small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--ink-3); }
html.v2 .pg-transfer .file { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--v2-glass2); border: 1px solid var(--v2-line); }
html.v2 .pg-transfer .file-head { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; }
html.v2 .pg-transfer .file-head .nm { flex: 1; min-width: 160px; font-weight: 700; overflow-wrap: anywhere; }
html.v2 .pg-transfer .kboxes { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 12px; }
html.v2 .pg-transfer .kbox {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--v2-glass2); border: 1px solid var(--v2-line2); transition: background .15s, border-color .15s;
}
html.v2 .pg-transfer .kbox input { margin: 0; width: 15px; height: 15px; }
html.v2 .pg-transfer .kbox.on { color: var(--ink); background: var(--v2-acc-soft); border-color: color-mix(in srgb, var(--v2-acc) 50%, transparent); }
html.v2 .pg-transfer .kbox.all.on { color: var(--ink); background: var(--v2-glass3); border-color: rgba(255, 255, 255, .3); }
html.v2 .pg-transfer .kbox.faint { opacity: .6; }
html.v2 .pg-transfer .map { display: none; margin-top: 12px; }
html.v2 .pg-transfer .file.open .map { display: block; }
html.v2 .pg-transfer .map td { vertical-align: middle; }

/* buttons the page script creates */
html.v2 .pg-transfer .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 700 14px/1.1 var(--ui); color: var(--ink); background: var(--v2-glass2); border: 1px solid var(--v2-line2); text-decoration: none; white-space: nowrap;
  transition: background .18s, filter .18s, transform .12s;
}
html.v2 .pg-transfer .btn:hover { background: var(--v2-glass3); text-decoration: none; }
html.v2 .pg-transfer .btn:active { transform: scale(.97); }
html.v2 .pg-transfer .btn.primary {
  color: var(--v2-on); border-color: transparent; background: linear-gradient(180deg, var(--v2-acc), var(--v2-acc2));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--v2-acc) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
html.v2 .pg-transfer .btn.primary:hover { filter: brightness(1.07); }
html.v2 .pg-transfer .btn.sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
html.v2 .pg-transfer .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
html.v2 .pg-transfer #go, html.v2 .pg-transfer #dl { min-height: 46px; padding: 0 24px; font-size: 15px; }
/* once an import is built, Download becomes the one filled action; Build again goes quiet */
html.v2 body.pg-built.pg-transfer #go { color: var(--ink); background: var(--v2-glass2); border-color: var(--v2-line2); box-shadow: none; }
/* after the download, proving it landed is the next action */
html.v2 .pg-transfer #dl-card[data-state="done"] #dl { color: var(--ink); background: var(--v2-glass2); border-color: var(--v2-line2); box-shadow: none; }
html.v2 .pg-transfer #verify-card[data-state="current"] label.btn { color: var(--v2-on); border-color: transparent; background: linear-gradient(180deg, var(--v2-acc), var(--v2-acc2)); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--v2-acc) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
html.v2 .pg-transfer #docs-body label { white-space: nowrap; }
html.v2 .pg-transfer label.btn { position: relative; }
html.v2 .pg-transfer label.btn:focus-within { outline: 2px solid var(--v2-acc); outline-offset: 2px; }

/* inputs the page script creates */
html.v2 .pg-transfer select, html.v2 .pg-transfer input[type=text] {
  max-width: 100%; min-height: 38px; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--v2-line2); background: var(--v2-glass2);
  color: var(--ink); font: 500 14px/1.3 var(--ui); outline: none;
}
html.v2 .pg-transfer select:focus, html.v2 .pg-transfer input[type=text]:focus { border-color: var(--v2-acc); box-shadow: 0 0 0 3px var(--v2-acc-soft); }
html.v2 .pg-transfer input.assign { width: 100%; min-width: 180px; }

/* tables */
html.v2 .pg-transfer .scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--v2-line2) transparent; }
html.v2 .pg-transfer table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
html.v2 .pg-transfer th { padding: 8px 10px; text-align: left; font: 700 11px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--v2-line); white-space: nowrap; }
html.v2 .pg-transfer td { padding: 9px 10px; text-align: left; vertical-align: top; color: var(--ink-2); border-top: 1px solid var(--v2-line); }
html.v2 .pg-transfer tbody tr:first-child td { border-top: 0; }
html.v2 .pg-transfer td b { color: var(--ink); }
html.v2 .pg-transfer td.sample { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }

/* step 3: repeat names */
html.v2 .pg-transfer .grp { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--v2-glass2); border: 1px solid var(--v2-line); }
html.v2 .pg-transfer .grp-head { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
html.v2 .pg-transfer .grp-head b { flex: 1; min-width: 150px; }
html.v2 .pg-transfer .grp table { margin-top: 8px; }
html.v2 .pg-transfer .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--v2-glass2); border: 1px solid var(--v2-line2); }
html.v2 .pg-transfer .seg label { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
html.v2 .pg-transfer .seg input { position: absolute; opacity: 0; pointer-events: none; }
html.v2 .pg-transfer .seg label.on { color: var(--ink); background: var(--v2-acc-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v2-acc) 55%, transparent); }
html.v2 .pg-transfer .seg label:has(input:focus-visible), html.v2 .pg-transfer .kbox:has(input:focus-visible) { outline: 2px solid var(--v2-acc); outline-offset: 2px; }

/* step 5: the numbers, checks, audit, warnings */
html.v2 .pg-transfer .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
html.v2 .pg-transfer .kpi { padding: 14px; border-radius: 16px; background: var(--v2-glass2); border: 1px solid var(--v2-line); }
html.v2 .pg-transfer .kpi .l { font: 600 12.5px/1.3 var(--ui); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
html.v2 .pg-transfer .kpi .v { margin-top: 6px; font: 500 24px/1.1 var(--num); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
html.v2 .pg-transfer .kpi .s { margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
html.v2 .pg-transfer .check { margin-top: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
html.v2 .pg-transfer .check.ok { background: color-mix(in srgb, var(--v2-good) 8%, transparent); border: 1px solid color-mix(in srgb, var(--v2-good) 32%, transparent); }
html.v2 .pg-transfer .check.bad { background: color-mix(in srgb, var(--v2-warn) 9%, transparent); border: 1px solid color-mix(in srgb, var(--v2-warn) 38%, transparent); }
html.v2 .pg-transfer .check b { color: var(--ink); }
html.v2 .pg-transfer .warns { margin-top: 12px; max-height: 300px; overflow: auto; border-radius: 14px; background: var(--v2-glass2); border: 1px solid var(--v2-line); }
html.v2 .pg-transfer #audit .scroll, html.v2 .pg-transfer #verify-out .scroll { margin-top: 8px; border-radius: 14px; background: var(--v2-glass2); border: 1px solid var(--v2-line); }

/* steps 6 and 7: documents, download */
html.v2 .pg-transfer .acct { margin-top: 10px; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); background: var(--v2-glass2); border: 1px solid var(--v2-line); }
html.v2 .pg-transfer .acct.in { background: color-mix(in srgb, var(--v2-good) 8%, transparent); border-color: color-mix(in srgb, var(--v2-good) 32%, transparent); }
html.v2 .pg-transfer .bar { height: 8px; margin-top: 12px; border-radius: 99px; overflow: hidden; background: var(--v2-glass3); }
html.v2 .pg-transfer .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--v2-acc), var(--v2-ice)); transition: width .2s; }

@media (max-width: 760px) {
  html.v2 .pg-transfer .wrap { padding-top: 14px; }
  html.v2 .pg-tx-head h1 { margin-top: 18px; }
  html.v2 .pg-transfer .card { padding: 18px 16px; border-radius: 18px; }
  html.v2 .pg-transfer h2 { font-size: 17.5px; }
  html.v2 .pg-transfer .need { grid-template-columns: 1fr; gap: 6px; }
  html.v2 .pg-transfer .need div { padding: 9px 12px; font-size: 13px; }
  html.v2 .pg-transfer .btn, html.v2 .pg-transfer .btn.sm, html.v2 .pg-transfer .kbox, html.v2 .pg-transfer .seg label { min-height: 44px; }
  html.v2 .pg-transfer select, html.v2 .pg-transfer input[type=text] { min-height: 44px; font-size: 16px; }
  html.v2 .pg-transfer .row > .btn, html.v2 .pg-transfer .row > label.btn { flex: 1 1 100%; }
  html.v2 .pg-transfer .seg { display: flex; width: 100%; }
  html.v2 .pg-transfer .seg label { flex: 1; justify-content: center; }
  /* column maps: one field per row (name, then the column picker, then the example) */
  html.v2 .pg-transfer .map table, html.v2 .pg-transfer .map tbody, html.v2 .pg-transfer .map tr, html.v2 .pg-transfer .map td { display: block; width: 100%; }
  html.v2 .pg-transfer .map thead { display: none; }
  html.v2 .pg-transfer .map tr { padding: 10px 0; border-top: 1px solid var(--v2-line); }
  html.v2 .pg-transfer .map tbody tr:first-child { border-top: 0; }
  html.v2 .pg-transfer .map td { border: 0; padding: 3px 0; }
  html.v2 .pg-transfer .map td select { width: 100%; }
  html.v2 .pg-transfer .map td.sample { max-width: none; white-space: normal; font-size: 12.5px; }
  html.v2 .pg-transfer .map td.sample:empty { display: none; }
}

/* ============================================================================================================
   8. Back Office (backoffice.html): internal admin. Its own <style> block stays (the V1 look without html.v2); these
   rules win under html.v2. The page script writes many inline styles that read CSS variables (--panel, --line,
   --ink2, --gold ...), so the variables are remapped to V2 values on body.pg-bo first.
   ============================================================================================================ */
html.v2 body.pg-bo {
  --bg: #0b0b0d; --panel: rgba(30, 30, 34, .96); --panel2: rgba(255, 255, 255, .045); --line: rgba(255, 255, 255, .09);
  --ink: #f0f0f2; --ink2: #a3a3aa; --gold: var(--v2-acc); --gold2: #7fcaef; --grn: var(--v2-good); --red: var(--v2-bad); --blu: var(--v2-ice);
  --bo-tint: var(--v2-acc-soft); --bo-tint-line: color-mix(in srgb, var(--v2-acc) 40%, transparent); --bo-mine: color-mix(in srgb, var(--v2-acc) 22%, transparent);
}
html.v2 body.pg-bo .wrap { max-width: 1240px; padding: 18px clamp(14px, 3vw, 32px) calc(80px + env(safe-area-inset-bottom, 0px)); }
html.v2 body.pg-bo .dim { color: var(--ink-2); }
html.v2 body.pg-bo .mono { font-family: var(--num); font-size: .82em; letter-spacing: .02em; }
html.v2 body.pg-bo .empty { color: var(--ink-3); font-size: 14px; padding: 14px 4px; }

/* sign-in gate: one centered glass card */
html.v2 body.pg-bo .login {
  display: grid; width: min(420px, calc(100% - 32px)); max-width: none; margin: max(8vh, 28px) auto 40px; padding: 32px 28px 24px; text-align: center; border-radius: 22px;
  background: var(--v2-glass); border: 1px solid var(--v2-line2); box-shadow: var(--v2-shadow-lg);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
html.v2 body.pg-bo .pg-gate-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
html.v2 body.pg-bo .pg-gate-brand img { height: 56px; width: 56px; margin: 0; border-radius: 14px; }
html.v2 body.pg-bo .login h2 { font-size: 23px; margin: 0 0 4px; }
html.v2 body.pg-bo .login > p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 8px; }
html.v2 body.pg-bo .login .pg-field { margin-top: 14px; }
html.v2 body.pg-bo .login .pg-field input { margin: 0; min-height: 46px; }
html.v2 body.pg-bo .login .pg-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: left; }
html.v2 body.pg-bo .login .pg-check input { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; }
html.v2 body.pg-bo .login #li-go { width: 100%; min-height: 48px; margin-top: 8px; font-size: 15px; }
html.v2 body.pg-bo .pg-gate-links { margin-top: 12px; font-size: 14px; }
html.v2 body.pg-bo .pg-gate-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--v2-acc); }
html.v2 body.pg-bo .err { color: var(--v2-bad); font-size: 13.5px; font-weight: 600; margin-top: 6px; min-height: 1.3em; }

/* top bar */
html.v2 body.pg-bo .hdr {
  display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 12px 10px 14px; border-radius: 20px;
  background: var(--v2-glass); border: 1px solid var(--v2-line); box-shadow: var(--v2-shadow); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
html.v2 body.pg-bo .hdr img { height: 36px; width: 36px; border-radius: 10px; }
html.v2 body.pg-bo .hdr h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
html.v2 body.pg-bo .hdr .tag { font: 700 12px/1 var(--ui); color: var(--ink-2); border: 1px solid var(--v2-line2); background: var(--v2-glass2); border-radius: 999px; padding: 6px 10px; }
html.v2 body.pg-bo #who { color: var(--ink-3); font-size: 13px !important; }

/* buttons: quiet glass pills; the one main action of each card is filled (ids below) */
html.v2 body.pg-bo .btn, html.v2 body.pg-bo .btn.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 700 13.5px/1.1 var(--ui); color: var(--ink); background: var(--v2-glass2); border: 1px solid var(--v2-line2); white-space: nowrap; text-decoration: none;
  transition: background .18s, filter .18s, transform .12s;
}
html.v2 body.pg-bo .btn:hover { background: var(--v2-glass3); text-decoration: none; }
html.v2 body.pg-bo .btn:active { transform: scale(.97); }
html.v2 body.pg-bo .btn.sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
html.v2 body.pg-bo .btn:disabled { opacity: .5; cursor: default; transform: none; }
html.v2 body.pg-bo :is(#li-go, #bo-new-go, #k-gen, #pm-send, #em-send, #vl-save, #bm-ok) {
  color: var(--v2-on); border-color: transparent; background: linear-gradient(180deg, var(--v2-acc), var(--v2-acc2));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--v2-acc) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
html.v2 body.pg-bo :is(#li-go, #bo-new-go, #k-gen, #pm-send, #em-send, #vl-save, #bm-ok):hover { filter: brightness(1.07); }
/* a red (danger) dialog button keeps a red glow */
html.v2 body.pg-bo #bm-ok[style*="--red"] { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--v2-bad) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3); }

/* sliding-pill tabs */
html.v2 body.pg-bo .tabs {
  position: relative; display: flex; gap: 2px; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 4px; border-radius: 999px;
  background: var(--v2-glass2); border: 1px solid var(--v2-line); overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
}
html.v2 body.pg-bo .tabs::-webkit-scrollbar { display: none; }
html.v2 body.pg-bo .tabs button {
  position: relative; z-index: 1; flex: none; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-2); font: 700 14px/1 var(--ui); cursor: pointer; white-space: nowrap; transition: color .2s;
}
html.v2 body.pg-bo .tabs button:hover { color: var(--ink); }
html.v2 body.pg-bo .tabs button.on { color: var(--v2-on); background: linear-gradient(180deg, var(--v2-acc), var(--v2-acc2)); }
html.v2 body.pg-bo .tabs.has-pill button.on { background: transparent; }
html.v2 body.pg-bo .pg-tabs-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, var(--v2-acc), var(--v2-acc2)); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--v2-acc) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .38s var(--v2-ease), width .38s var(--v2-ease);
}
html.v2.v2-nomotion body.pg-bo .pg-tabs-pill { transition: none; }
@media (prefers-reduced-motion: reduce) { html.v2 body.pg-bo .pg-tabs-pill { transition: none; } }

/* KPI tiles, cards, notes */
html.v2 body.pg-bo .kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
html.v2 body.pg-bo .kpi { padding: 14px 16px; border-radius: 18px; background: var(--v2-glass); border: 1px solid var(--v2-line); box-shadow: var(--v2-shadow); }
html.v2 body.pg-bo .kpi .n { font: 500 26px/1.15 var(--num); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html.v2 body.pg-bo .kpi .l { margin-top: 4px; font: 600 12.5px/1.35 var(--ui); color: var(--ink-3); text-transform: none; letter-spacing: 0; }
html.v2 body.pg-bo .sec {
  margin-bottom: 18px; padding: 20px; border-radius: 20px; background: var(--v2-glass); border: 1px solid var(--v2-line); box-shadow: var(--v2-shadow);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
html.v2 body.pg-bo .sec h2 { color: var(--ink); font-size: 16px; letter-spacing: -.01em; margin-bottom: 10px; }
html.v2 body.pg-bo .sec .sub { color: var(--ink-3); font-size: 13px; margin: -4px 0 14px; }
html.v2 body.pg-bo .cols2 { gap: 18px; }
html.v2 body.pg-bo .note { margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; background: var(--v2-glass2); border: 1px solid var(--v2-line); color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
html.v2 body.pg-bo .note b { color: var(--ink); }
html.v2 body.pg-bo .note a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--v2-acc) 55%, transparent); text-underline-offset: 3px; }
html.v2 body.pg-bo .pg-bo-tools { margin-bottom: 18px; }
html.v2 body.pg-bo .pg-bo-tools .note { margin-bottom: 10px; background: rgba(255, 255, 255, .025); }
html.v2 body.pg-bo .pg-bo-tools .note:last-child { margin-bottom: 0; }
html.v2 body.pg-bo #k-master { border-radius: 16px !important; padding: 14px 16px !important; color: var(--ink-2); }
html.v2 body.pg-bo #k-new { border-radius: 16px !important; background: color-mix(in srgb, var(--v2-good) 9%, transparent) !important; border-color: color-mix(in srgb, var(--v2-good) 35%, transparent) !important; }
html.v2 body.pg-bo .mix .row { font-size: 14px; color: var(--ink-2); }
html.v2 body.pg-bo .mix .row b { color: var(--ink); font-family: var(--num); font-weight: 500; }
html.v2 body.pg-bo .bar { background: var(--v2-glass3); }
html.v2 body.pg-bo .bar i { background: linear-gradient(90deg, var(--v2-acc), var(--v2-ice)); }

/* tables */
html.v2 body.pg-bo table { font-size: 13.5px; }
html.v2 body.pg-bo th { padding: 8px 10px; font: 700 11px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--v2-line); }
html.v2 body.pg-bo td { padding: 10px; color: var(--ink-2); border-bottom: 1px solid var(--v2-line); }
html.v2 body.pg-bo td b { color: var(--ink); }
html.v2 body.pg-bo td.num, html.v2 body.pg-bo th.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
html.v2 body.pg-bo tr.rowbtn:hover td { background: var(--v2-glass2); }
html.v2 body.pg-bo .twrap { scrollbar-width: thin; scrollbar-color: var(--v2-line2) transparent; }
html.v2 body.pg-bo .chip { padding: 3px 10px; border-radius: 999px; font: 700 12px/1.3 var(--ui); }
html.v2 body.pg-bo .chip::first-letter { text-transform: uppercase; }
html.v2 body.pg-bo .c-grn { background: color-mix(in srgb, var(--v2-good) 14%, transparent); color: var(--v2-good); }
html.v2 body.pg-bo .c-gold { background: color-mix(in srgb, var(--v2-warn) 14%, transparent); color: var(--v2-warn); }
html.v2 body.pg-bo .c-red { background: color-mix(in srgb, var(--v2-bad) 14%, transparent); color: var(--v2-bad); }
html.v2 body.pg-bo .c-blu { background: color-mix(in srgb, var(--v2-ice) 13%, transparent); color: var(--v2-ice); }
/* an account's file */
html.v2 body.pg-bo .detail { margin: 6px 0 10px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--v2-line); }
html.v2 body.pg-bo .detail h4 { margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid var(--v2-line); font: 700 13px/1.3 var(--ui); color: var(--ink); text-transform: none; letter-spacing: 0; }
html.v2 body.pg-bo .detail h4:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
html.v2 body.pg-bo .mini td { padding: 6px 8px; border-bottom: 1px solid var(--v2-line); }

/* fields (static and script-made; the script's inline styles are older, so these win with !important) */
html.v2 body.pg-bo :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  min-height: 38px; padding: 7px 12px !important; border-radius: 12px !important; border: 1px solid var(--v2-line2) !important;
  background: var(--v2-glass2) !important; color: var(--ink) !important; font-family: var(--ui) !important; outline: none;
}
html.v2 body.pg-bo :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus { border-color: var(--v2-acc) !important; box-shadow: 0 0 0 3px var(--v2-acc-soft); }
html.v2 body.pg-bo select option { background: #1c1c20; color: var(--ink); }
html.v2 body.pg-bo input[type=checkbox] { accent-color: var(--v2-acc) !important; }

/* comms panes */
html.v2 body.pg-bo #pm-shell, html.v2 body.pg-bo #em-shell { min-width: 0; }
html.v2 body.pg-bo .pm-left { background: rgba(255, 255, 255, .015); }
html.v2 body.pg-bo #pm-threads > div, html.v2 body.pg-bo #em-threads > div { transition: background .15s; }
html.v2 body.pg-bo #pm-threads > div:hover, html.v2 body.pg-bo #em-threads > div:hover { background: var(--v2-glass2); }
html.v2 body.pg-bo .pg-bo-phone { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--v2-acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.v2 body.pg-bo .hide { display: none !important; }

/* our own Pack Ops / Command Center tabs */
html.v2 body.pg-bo .embed-host { margin: 0; border: 1px solid var(--v2-line); border-radius: 20px; }

/* the page's own dialog, toast and incoming-call bar (class hooks added in backoffice.html) */
html.v2 body.pg-bo .pg-bo-ov { background: rgba(0, 0, 0, .6) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; }
html.v2 body.pg-bo .pg-bo-dlg {
  max-width: 440px !important; padding: 24px !important; border-radius: 22px !important; background: var(--v2-menu) !important; border: 1px solid var(--v2-line2) !important;
  box-shadow: var(--v2-shadow-lg); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
html.v2 body.pg-bo .pg-bo-dlg > b { display: block; font-size: 18px !important; letter-spacing: -.01em; }
html.v2 body.pg-bo .pg-bo-dlg p { color: var(--ink-2) !important; font-size: 14px !important; }
html.v2 body.pg-bo .pg-bo-dlg label { font-size: 12.5px !important; font-weight: 600; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-2) !important; }
html.v2 body.pg-bo .pg-bo-dlg input { min-height: 46px; }
html.v2 body.pg-bo .pg-bo-dlg .btn { min-height: 42px; padding: 0 18px; }
html.v2 body.pg-bo .pg-bo-toast { background: var(--v2-menu) !important; border: 1px solid var(--v2-line2) !important; border-radius: 14px !important; font-family: var(--ui); box-shadow: var(--v2-shadow-lg) !important; bottom: max(26px, env(safe-area-inset-bottom, 0px)) !important; }
html.v2 body.pg-bo .pg-bo-callbar { background: var(--v2-menu) !important; border: 1px solid color-mix(in srgb, var(--v2-acc) 50%, transparent) !important; border-radius: 18px !important; font-family: var(--ui); }

/* phones: tables become cards (labels come from the column headings, stamped by pcc-v2-pages.js), 44px targets */
@media (max-width: 760px) {
  html.v2 body.pg-bo .hdr { padding: 10px 12px; border-radius: 18px; }
  html.v2 body.pg-bo .hdr h1 { font-size: 18px; }
  html.v2 body.pg-bo .hdr .sp { flex-basis: 100%; height: 0; }
  html.v2 body.pg-bo #who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.v2 body.pg-bo .tabs { width: 100%; }
  html.v2 body.pg-bo .tabs button { min-height: 44px; }
  html.v2 body.pg-bo .btn, html.v2 body.pg-bo .btn.sm { min-height: 44px; }
  html.v2 body.pg-bo :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { min-height: 44px; }
  html.v2 body.pg-bo .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.v2 body.pg-bo .kpi .n { font-size: 22px; }
  html.v2 body.pg-bo .sec { padding: 16px 14px; border-radius: 18px; }
  html.v2 body.pg-bo .login { padding: 28px 20px 20px; }
  html.v2 body.pg-bo .note input:not([type=checkbox]) { width: 100% !important; flex: 1 1 100%; }
  html.v2 body.pg-bo .twrap { overflow: visible; }
  html.v2 body.pg-bo .twrap table.wide { min-width: 0; }
  html.v2 body.pg-bo .twrap > table, html.v2 body.pg-bo .twrap > table > tbody, html.v2 body.pg-bo .twrap > table > tbody > tr, html.v2 body.pg-bo .twrap > table > tbody > tr > td { display: block; width: 100%; }
  html.v2 body.pg-bo .twrap > table > thead { display: none; }
  html.v2 body.pg-bo .twrap > table > tbody > tr { margin-bottom: 10px; padding: 10px 14px; border-radius: 16px; background: var(--v2-glass2); border: 1px solid var(--v2-line); }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td { display: grid; grid-template-columns: minmax(84px, 36%) minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 6px 0; border: 0; text-align: left !important; overflow-wrap: anywhere; }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td > * { grid-column: 2; justify-self: start; max-width: 100%; }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td { max-width: none !important; }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td::before { content: attr(data-label); color: var(--ink-3); font: 600 12px/1.6 var(--ui); letter-spacing: 0; }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td:not([data-label]), html.v2 body.pg-bo .twrap > table > tbody > tr > td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td:not([data-label])::before, html.v2 body.pg-bo .twrap > table > tbody > tr > td[data-label=""]::before { content: none; }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td:first-child { grid-template-columns: minmax(0, 1fr); font-size: 15px; }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td:first-child > *, html.v2 body.pg-bo .twrap > table > tbody > tr > td:not([data-label]) > * { grid-column: 1; }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td[data-label=""]:not(:first-child) { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  html.v2 body.pg-bo .twrap > table > tbody > tr > td:first-child::before { content: none; }
  html.v2 body.pg-bo .twrap > table > tbody > tr:has(> td[colspan]) { padding: 0; background: none; border: 0; }
  html.v2 body.pg-bo .twrap > table > tbody > tr.rowbtn:hover > td { background: none; }
  html.v2 body.pg-bo .twrap > table > tbody > tr.rowbtn > td:last-child:not([data-label]) { display: none; }
  html.v2 body.pg-bo .detail { padding: 14px 12px; }
  html.v2 body.pg-bo .detail b[style*="min-width:200px"] { min-width: 0 !important; }
  html.v2 body.pg-bo .embed-host { border-radius: 16px; }
}
